VLC  4.0.0-dev
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables

Logging functions. More...

Include dependency graph for vlc_messages.h:

Go to the source code of this file.

Data Structures

struct  vlc_log_t
 Log message. More...
 
struct  vlc_logger_operations
 

Macros

#define msg_GenericVa(o, p, fmt, ap)
 
#define msg_Generic(o, p, ...)
 
#define msg_Info(p_this, ...)    msg_Generic(p_this, VLC_MSG_INFO, __VA_ARGS__)
 
#define msg_Err(p_this, ...)    msg_Generic(p_this, VLC_MSG_ERR, __VA_ARGS__)
 
#define msg_Warn(p_this, ...)    msg_Generic(p_this, VLC_MSG_WARN, __VA_ARGS__)
 
#define msg_Dbg(p_this, ...)    msg_Generic(p_this, VLC_MSG_DBG, __VA_ARGS__)
 
#define vlc_log_gen(logger, prio, ...)
 
#define vlc_info(logger, ...)   vlc_log_gen(logger, VLC_MSG_INFO, __VA_ARGS__)
 
#define vlc_error(logger, ...)   vlc_log_gen(logger, VLC_MSG_ERR, __VA_ARGS__)
 
#define vlc_warning(logger, ...)   vlc_log_gen(logger, VLC_MSG_WARN, __VA_ARGS__)
 
#define vlc_debug(logger, ...)   vlc_log_gen(logger, VLC_MSG_DBG, __VA_ARGS__)
 

Typedefs

typedef struct vlc_log_t vlc_log_t
 Log message. More...
 
typedef void(* vlc_log_cb) (void *data, int type, const vlc_log_t *item, const char *fmt, va_list args)
 Message logging callback signature. More...
 

Enumerations

enum  vlc_log_type { VLC_MSG_INFO =0 , VLC_MSG_ERR , VLC_MSG_WARN , VLC_MSG_DBG }
 Message types. More...
 

Functions

void vlc_object_Log (vlc_object_t *obj, int type, const char *module, const char *file, unsigned line, const char *func, const char *format,...)
 Emit a log message. More...
 
void vlc_object_vaLog (vlc_object_t *obj, int prio, const char *module, const char *file, unsigned line, const char *func, const char *format, va_list ap)
 Emit a log message. More...
 
const char * vlc_strerror (int)
 Formats an error message in the current locale. More...
 
const char * vlc_strerror_c (int)
 Formats an error message in the POSIX/C locale (i.e. More...
 
void vlc_Log (struct vlc_logger *const *logger, int prio, const char *type, const char *module, const char *file, unsigned line, const char *func, const char *format,...)
 
void vlc_vaLog (struct vlc_logger *const *logger, int prio, const char *type, const char *module, const char *file, unsigned line, const char *func, const char *format, va_list ap)
 
struct vlc_loggervlc_LogHeaderCreate (struct vlc_logger *parent, const char *str)
 Creates a prefixed message log. More...
 
void vlc_LogDestroy (struct vlc_logger *)
 Destroys a message log. More...
 

Variables

const char vlc_module_name []
 

Detailed Description

Logging functions.