messages.c File Reference

Include dependency graph for messages.c:


Defines

#define vlc_va_copy(dest, src)   (dest)=(src)
#define QUEUE   priv->msg_bank.queue
#define LOCK_BANK   vlc_mutex_lock( &priv->msg_bank.lock );
#define UNLOCK_BANK   vlc_mutex_unlock( &priv->msg_bank.lock );
#define DECLARE_MSG_FN(FN_NAME, FN_TYPE)
#define COL(x)   "\033[" #x ";1m"
#define RED   COL(31)
#define GREEN   COL(32)
#define YELLOW   COL(33)
#define WHITE   COL(0)
#define GRAY   "\033[0m"

Functions

static void QueueMsg (vlc_object_t *p_this, int i_type, const char *psz_module, const char *psz_format, va_list _args)
 Add a message to a queue.
static void FlushMsg (msg_queue_t *)
static void PrintMsg (vlc_object_t *, msg_item_t *)
void msg_Create (libvlc_int_t *p_libvlc)
 Initialize messages queues This function initializes all message queues.
void msg_Flush (libvlc_int_t *p_libvlc)
 Flush all message queues.
void msg_Destroy (libvlc_int_t *p_libvlc)
 Destroy the message queues.
msg_subscription_t__msg_Subscribe (vlc_object_t *p_this)
 Subscribe to a message queue.
void __msg_Unsubscribe (vlc_object_t *p_this, msg_subscription_t *p_sub)
 Unsubscribe from a message queue.
void __msg_Generic (vlc_object_t *p_this, int i_type, const char *psz_module, const char *psz_format,...)
void __msg_GenericVa (vlc_object_t *p_this, int i_type, const char *psz_module, const char *psz_format, va_list args)
void __msg_Info (vlc_object_t *p_this, const char *psz_format,...)
 Output an informational message.
void __msg_Err (vlc_object_t *p_this, const char *psz_format,...)
 Output an error message.
void __msg_Warn (vlc_object_t *p_this, const char *psz_format,...)
 Output a waring message.
void __msg_Dbg (vlc_object_t *p_this, const char *psz_format,...)
 Output a debug message.
static msg_context_tGetContext (void)
void msg_StackDestroy (void *data)
void msg_StackSet (int i_code, const char *psz_message,...)
void msg_StackAdd (const char *psz_message,...)
const char * msg_StackMsg (void)

Define Documentation

#define COL (  )     "\033[" #x ";1m"

#define DECLARE_MSG_FN ( FN_NAME,
FN_TYPE   ) 

Value:

void FN_NAME( vlc_object_t *p_this, const char *psz_format, ... ) \
    { \
        va_list args; \
        va_start( args, psz_format ); \
        QueueMsg( p_this, FN_TYPE, "unknown", psz_format, args ); \
        va_end( args ); \
    } \
    struct _

#define GRAY   "\033[0m"

#define GREEN   COL(32)

#define LOCK_BANK   vlc_mutex_lock( &priv->msg_bank.lock );

#define QUEUE   priv->msg_bank.queue

#define RED   COL(31)

#define UNLOCK_BANK   vlc_mutex_unlock( &priv->msg_bank.lock );

#define vlc_va_copy ( dest,
src   )     (dest)=(src)

#define WHITE   COL(0)

#define YELLOW   COL(33)


Function Documentation

void __msg_Dbg ( vlc_object_t p_this,
const char *  psz_format,
  ... 
)

Output a debug message.

void __msg_Err ( vlc_object_t p_this,
const char *  psz_format,
  ... 
)

Output an error message.

void __msg_Generic ( vlc_object_t p_this,
int  i_type,
const char *  psz_module,
const char *  psz_format,
  ... 
)

void __msg_GenericVa ( vlc_object_t p_this,
int  i_type,
const char *  psz_module,
const char *  psz_format,
va_list  args 
)

void __msg_Info ( vlc_object_t p_this,
const char *  psz_format,
  ... 
)

Output an informational message.

Note:
Do not use this for debug messages
See also:
input_AddInfo

msg_subscription_t* __msg_Subscribe ( vlc_object_t p_this  ) 

Subscribe to a message queue.

void __msg_Unsubscribe ( vlc_object_t p_this,
msg_subscription_t p_sub 
)

Unsubscribe from a message queue.

void __msg_Warn ( vlc_object_t p_this,
const char *  psz_format,
  ... 
)

Output a waring message.

static void FlushMsg ( msg_queue_t  )  [static]

static msg_context_t* GetContext ( void   )  [static]

void msg_Create ( libvlc_int_t p_libvlc  ) 

Initialize messages queues This function initializes all message queues.

void msg_Destroy ( libvlc_int_t p_libvlc  ) 

Destroy the message queues.

This functions prints all messages remaining in the queues, then frees all the allocated ressources No other messages interface functions should be called after this one.

void msg_Flush ( libvlc_int_t p_libvlc  ) 

Flush all message queues.

void msg_StackAdd ( const char *  psz_message,
  ... 
)

void msg_StackDestroy ( void *  data  ) 

const char* msg_StackMsg ( void   ) 

void msg_StackSet ( int  i_code,
const char *  psz_message,
  ... 
)

static void PrintMsg ( vlc_object_t ,
msg_item_t *   
) [static]

static void QueueMsg ( vlc_object_t p_this,
int  i_type,
const char *  psz_module,
const char *  psz_format,
va_list  _args 
) [static]

Add a message to a queue.

This function provides basic functionnalities to other msg_* functions. It adds a message to a queue (after having printed all stored messages if it is full). If the message can't be converted to string in memory, it issues a warning.


Generated on Wed Aug 13 08:05:40 2008 for VLC by  doxygen 1.5.1