Go to the documentation of this file.
27 #ifndef VLC_MESSAGES_H_
28 #define VLC_MESSAGES_H_
68 const char *file,
unsigned line,
const char *func,
71 const
char *file,
unsigned line, const
char *func,
72 const
char *format, va_list ap);
73 #define msg_GenericVa(o, p, fmt, ap) \
74 vlc_vaLog(VLC_OBJECT(o), p, vlc_module_name, __FILE__, __LINE__, \
77 #define msg_Generic(o, p, ...) \
78 vlc_Log(VLC_OBJECT(o), p, vlc_module_name, __FILE__, __LINE__, \
79 __func__, __VA_ARGS__)
80 #define msg_Info(p_this, ...) \
81 msg_Generic(p_this, VLC_MSG_INFO, __VA_ARGS__)
82 #define msg_Err(p_this, ...) \
83 msg_Generic(p_this, VLC_MSG_ERR, __VA_ARGS__)
84 #define msg_Warn(p_this, ...) \
85 msg_Generic(p_this, VLC_MSG_WARN, __VA_ARGS__)
86 #define msg_Dbg(p_this, ...) \
87 msg_Generic(p_this, VLC_MSG_DBG, __VA_ARGS__)
103 const char *fmt, va_list args);
#define VLC_FORMAT(x, y)
Definition: vlc_common.h:100
void vlc_Log(vlc_object_t *obj, int prio, const char *module, const char *file, unsigned line, const char *func, const char *format,...)
Emit a log message.
Definition: messages.c:152
#define VLC_API
Definition: fourcc_gen.c:30
void vlc_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.
Definition: messages.c:87
const char * psz_header
Additional header (used by VLM media)
Definition: vlc_messages.h:60
Important information.
Definition: vlc_messages.h:46
struct vlc_log_t vlc_log_t
Log message.
const char * psz_object_type
Emitter object type name.
Definition: vlc_messages.h:58
const char * vlc_strerror(int)
Formats an error message in the current locale.
Definition: error.c:29
Error.
Definition: vlc_messages.h:47
const char * file
Source code file name or NULL.
Definition: vlc_messages.h:61
int line
Source code file line number or -1.
Definition: vlc_messages.h:62
unsigned long tid
Emitter thread ID.
Definition: vlc_messages.h:64
Warning.
Definition: vlc_messages.h:48
The main vlc_object_t structure.
Definition: vlc_objects.h:39
const char * func
Source code calling function name or NULL.
Definition: vlc_messages.h:63
const char * psz_module
Emitter module (source code)
Definition: vlc_messages.h:59
void(* vlc_log_cb)(void *data, int type, const vlc_log_t *item, const char *fmt, va_list args)
Message logging callback signature.
Definition: vlc_messages.h:102
const char vlc_module_name[]
const char * vlc_strerror_c(int)
Formats an error message in the POSIX/C locale (i.e.
Definition: error.c:34
uintptr_t i_object_id
Emitter (temporarily) unique object ID or 0.
Definition: vlc_messages.h:57
Debug.
Definition: vlc_messages.h:49
Log message.
Definition: vlc_messages.h:55
vlc_log_type
Message types.
Definition: vlc_messages.h:44