\
/* Messages header */ \
char *psz_header; \
+ int i_flags; \
\
/* Thread properties, if any */ \
vlc_bool_t b_thread; \
#define FIND_STRICT 0x0010
+/* Object flags */
+#define OBJECT_FLAGS_NODBG 0x0001
+#define OBJECT_FLAGS_QUIET 0x0002
+#define OBJECT_FLAGS_NOINTERACT 0x0004
+
/*****************************************************************************
* The vlc_object_t type. Yes, it's that simple :-)
*****************************************************************************/
/* Allocate descriptor */
p_input = Create( p_parent, p_item, NULL, VLC_TRUE );
+ p_input->i_flags |= OBJECT_FLAGS_NODBG;
+ p_input->i_flags |= OBJECT_FLAGS_NOINTERACT;
/* Now we can attach our new input */
vlc_object_attach( p_input, p_parent );
p_dialog->i_id = ++p_interaction->i_last_id;
}
+ if( p_this->i_flags & OBJECT_FLAGS_NOINTERACT )
+ {
+ return;
+ }
+
p_dialog->p_interaction = p_interaction;
p_dialog->p_parent = p_this;
{
case ANSWERED_DIALOG:
// Ask interface to hide it
- msg_Dbg( p_interaction, "Hiding dialog %i", p_dialog->i_id );
p_dialog->i_action = INTERACT_HIDE;
val.p_address = p_dialog;
if( p_interaction->p_intf )
if( p_interaction->p_intf )
var_Set( p_interaction->p_intf, "interaction", val );
p_dialog->i_status = SENT_DIALOG;
- msg_Dbg( p_interaction, "Updating dialog %i, %i widgets",
- p_dialog->i_id, p_dialog->i_widgets );
break;
case HIDDEN_DIALOG:
if( !(p_dialog->i_flags & DIALOG_GOT_ANSWER) ) break;
if( !(p_dialog->i_flags & DIALOG_REUSABLE) )
{
- msg_Dbg( p_interaction, "Destroying dialog %i",
- p_dialog->i_id );
p_dialog->i_action = INTERACT_DESTROY;
val.p_address = p_dialog;
if( p_interaction->p_intf )
}
break;
case DESTROYED_DIALOG:
- msg_Dbg( p_interaction, "Removing dialog %i",
- p_dialog->i_id );
// Interface has now destroyed it, remove it
REMOVE_ELEM( p_interaction->pp_dialogs, p_interaction->i_dialogs,
i_index);
#endif
int i;
+ if( p_this->i_flags & OBJECT_FLAGS_QUIET ||
+ (p_this->i_flags & OBJECT_FLAGS_NODBG &&
+ i_type == VLC_MSG_DBG ) )
+ {
+ return;
+ }
+
/*
* Convert message to string
*/
if( p_module != NULL )
{
- msg_Dbg( p_module, "using %s module \"%s\"",
+ msg_Dbg( p_this, "using %s module \"%s\"",
psz_capability, p_module->psz_object_name );
}
else if( p_first == NULL )
p_module->pf_deactivate( p_this );
}
- msg_Dbg( p_module, "removing module \"%s\"", p_module->psz_object_name );
+ msg_Dbg( p_this, "removing module \"%s\"", p_module->psz_object_name );
vlc_object_release( p_module );
p_new->psz_header = NULL;
+ p_new->i_flags = 0;
+ if( p_this->i_flags & OBJECT_FLAGS_NODBG )
+ p_new->i_flags |= OBJECT_FLAGS_NODBG;
+ if( p_this->i_flags & OBJECT_FLAGS_QUIET )
+ p_new->i_flags |= OBJECT_FLAGS_QUIET;
+ if( p_this->i_flags & OBJECT_FLAGS_NOINTERACT )
+ p_new->i_flags |= OBJECT_FLAGS_NOINTERACT;
+
p_new->i_vars = 0;
p_new->p_vars = (variable_t *)malloc( 16 * sizeof( variable_t ) );