Message logs.
More...
|
#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__) |
|
|
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...
|
|
Message logs.
Functions for modules to emit log messages.
◆ msg_Dbg
◆ msg_Err
◆ msg_Generic
#define msg_Generic |
( |
|
o, |
|
|
|
p, |
|
|
|
... |
|
) |
| |
Value:
__func__, __VA_ARGS__)
const char vlc_module_name[]
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.
Definition: objects.c:163
#define VLC_OBJECT(x)
Type-safe vlc_object_t cast.
Definition: vlc_objects.h:71
◆ msg_GenericVa
#define msg_GenericVa |
( |
|
o, |
|
|
|
p, |
|
|
|
fmt, |
|
|
|
ap |
|
) |
| |
Value:
__func__, fmt, ap)
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.
Definition: objects.c:147
◆ msg_Info
◆ msg_Warn
◆ vlc_log_t
◆ vlc_log_type
Message types.
Enumerator |
---|
VLC_MSG_INFO | Important information.
|
VLC_MSG_ERR | Error.
|
VLC_MSG_WARN | Warning.
|
VLC_MSG_DBG | Debug.
|
◆ vlc_LogSet()
◆ vlc_object_Log()
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.
- Parameters
-
obj | VLC object emitting the message or NULL |
type | VLC_MSG_* message type (info, error, warning or debug) |
module | name of module from which the message come (normally vlc_module_name) |
file | source module file name (normally FILE) or NULL |
line | function call source line number (normally LINE) or 0 |
func | calling function name (normally func) or NULL |
format | printf-like message format |
References vlc_object_vaLog().
◆ vlc_object_vaLog()
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 |
|
) |
| |
◆ vlc_strerror()
const char * vlc_strerror |
( |
int |
errnum | ) |
|
Formats an error message in the current locale.
- Parameters
-
errnum | error number (as in errno.h) |
- Returns
- A string pointer, valid until the next call to a function of the strerror() family in the same thread. This function cannot fail.
References vlc_strerror_c(), and vlc_strerror_l().
◆ vlc_strerror_c()
const char * vlc_strerror_c |
( |
int |
errnum | ) |
|
Formats an error message in the POSIX/C locale (i.e.
American English).
- Parameters
-
errnum | error number (as in errno.h) |
- Returns
- A string pointer, valid until the next call to a function of the strerror() family in the same thread. This function cannot fail.
References _, wsaerrmsg_t::msg, vlc_strerror_l(), and wsaerrmsg.
Referenced by config_CreateDir(), config_LoadConfigFile(), config_OpenConfigFile(), config_SaveConfigFile(), httpdLoop(), ImageWriteUrl(), input_SaveArt(), libvlc_InternalCleanup(), net_Accept(), net_Connect(), net_ConnectDgram(), net_Listen(), net_ListenSingle(), net_OpenDgram(), net_Read(), net_SetMcastHopLimit(), net_SetMcastOut(), net_SetupDgramSocket(), net_Socket(), net_SourceSubscribe(), net_Subscribe(), net_Write(), OpenURL(), rtp_dgram_thread(), vlc_h1_request(), vlc_playlist_Export(), vlc_stream_ReadLine(), vlc_strerror(), vlc_thread_fatal_print(), vlc_tls_SocketOpenTCP(), and vlc_tls_SocketOpenTLS().
◆ vlc_module_name
const char vlc_module_name[] |
|
extern |