VLC  2.2.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
Messages

This library provides basic functions for threads to interact with user interface, such as message output. More...

Data Structures

struct  vlc_log_t
 Log message. More...

Macros

#define msg_GenericVa(a, b, c, d, e)   vlc_vaLog(VLC_OBJECT(a), b, c, d, e)
#define msg_Info(p_this,...)   vlc_Log( VLC_OBJECT(p_this), VLC_MSG_INFO, MODULE_STRING, __VA_ARGS__ )
#define msg_Err(p_this,...)   vlc_Log( VLC_OBJECT(p_this), VLC_MSG_ERR, MODULE_STRING, __VA_ARGS__ )
#define msg_Warn(p_this,...)   vlc_Log( VLC_OBJECT(p_this), VLC_MSG_WARN, MODULE_STRING, __VA_ARGS__ )
#define msg_Dbg(p_this,...)   vlc_Log( VLC_OBJECT(p_this), VLC_MSG_DBG, MODULE_STRING, __VA_ARGS__ )

Typedefs

typedef struct vlc_log_t vlc_log_t
 Log message.

Enumerations

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

Functions

void vlc_Log (vlc_object_t *, int, const char *, const char *,...)
 Emit a log message.
void vlc_vaLog (vlc_object_t *, int, const char *, const char *, va_list)
 Emit a log message.
const char * vlc_strerror (int)
 Formats an error message in the current locale.
const char * vlc_strerror_c (int)
 Formats an error message in the POSIX/C locale (i.e.

Detailed Description

This library provides basic functions for threads to interact with user interface, such as message output.

Macro Definition Documentation

#define msg_Dbg (   p_this,
  ... 
)    vlc_Log( VLC_OBJECT(p_this), VLC_MSG_DBG, MODULE_STRING, __VA_ARGS__ )

Referenced by access_New(), aout_CheckReady(), aout_DecSilence(), aout_DecSynchronize(), aout_FiltersPipelineCreate(), aout_FormatPrint(), aout_FormatsPrint(), aout_RequestRestart(), aout_volume_SetFormat(), AReadBlock(), AReadStream(), Art(), ASeek(), AStreamPeekStream(), AStreamPrebufferBlock(), AStreamPrebufferStream(), AStreamReadNoSeekStream(), AStreamRefillStream(), AStreamSeekBlock(), AStreamSeekStream(), config_ChainParse(), config_OpenConfigFile(), Control(), CorksCallback(), Create(), CreateFilter(), decoder_SynchroNewPicture(), DecoderDecodeAudio(), DecoderDecodeVideo(), DecoderPlayAudio(), DecoderPlayVideo(), DeinterlaceCallback(), DeleteDecoder(), demux_New(), Destructor(), DownloadArt(), EsOutDecodersStopBuffering(), EsOutDel(), EsOutFrameNext(), EsOutProgramDel(), EsOutProgramEpg(), EsOutProgramMeta(), EsOutProgramSelect(), EsOutSend(), EsSelect(), filter_chain_AppendFilterInternal(), filter_chain_DeleteFilterInternal(), FindArt(), http_auth_ParseWwwAuthenticateHeader(), httpd_HostDelete(), ImageReadUrl(), ImageWrite(), Init(), input_EsOutNew(), input_EsOutTimeshiftNew(), input_resource_GetAout(), input_resource_PutAout(), input_SubtitleFileAdd(), InputGetExtraFilesPattern(), InputSourceInit(), installOrRemoveAddon(), libvlc_InternalCleanup(), libvlc_InternalInit(), libvlc_Quit(), LoadSlaves(), LoadSubtitles(), LoopRequest(), MainLoop(), MainLoopDemux(), MainLoopTryRepeat(), module_LoadPlugins(), module_unneed(), net_AcceptSingle(), net_Connect(), net_ConnectDgram(), net_Listen(), net_ListenSingle(), net_OpenDgram(), net_Read(), net_SetMcastHopLimit(), NextItem(), ObjectKillChildrens(), PlayItem(), playlist_Deactivate(), playlist_Destroy(), playlist_Export(), playlist_SaveArt(), playlist_sd_item_added(), playlist_ServicesDiscoveryAdd(), RequestSout(), RequestVout(), SAP_Add(), SelectClockSource(), SkipAPETag(), SkipID3Tag(), SlaveDemux(), SocksHandshakeTCP(), SocksNegotiate(), sout_AnnounceRegisterSDP(), sout_AnnounceUnRegister(), sout_InputDelete(), sout_InputNew(), sout_MuxAddStream(), sout_MuxNew(), sout_NewInstance(), sout_StreamDelete(), sout_StreamNew(), StartTitle(), stream_AccessNew(), stream_FilterChainNew(), stream_ReadLine(), subtitles_Detect(), system_Configure(), Thread(), ThreadChangeFilters(), ThreadDisplayPreparePicture(), UpdateSPU(), video_format_Print(), vlc_CPU_dump(), vlc_LogSet(), vlc_module_load(), vlc_object_waitpipe(), vlm_New(), vout_InitInterlacingSupport(), vout_ManageDisplay(), vout_NewDisplayWindow(), vout_OpenWrapper(), vout_Request(), vout_SetInterlacingState(), VoutDisplayCreateRender(), VoutDisplayEvent(), VoutDisplayEventMouse(), and VoutOsdSnapshot().

#define msg_Err (   p_this,
  ... 
)    vlc_Log( VLC_OBJECT(p_this), VLC_MSG_ERR, MODULE_STRING, __VA_ARGS__ )

Referenced by AddIntfCallback(), addons_manager_Gather(), AddressCreate(), aout_DecNew(), aout_DecPlay(), aout_FiltersNew(), aout_FiltersPipelineCreate(), aout_New(), aout_OutputNew(), aout_update_format(), AppendFilter(), AStreamControl(), AStreamSeekBlock(), AStreamSeekStream(), config_ChainParse(), config_GetFloat(), config_GetInt(), config_GetPsz(), config_LoadConfigFile(), config_OpenConfigFile(), config_PutFloat(), config_PutInt(), config_PutPsz(), config_SaveConfigFile(), Control(), ControlLocked(), ControlLockedSetPauseState(), ControlLockedSetRate(), ControlLockedSetTime(), CreateDecoder(), CreateEncoder(), CropCallback(), decoder_New(), DecoderFixTs(), DecoderGetDisplayDate(), DecoderProcess(), DecoderUnsupportedCodec(), demux_PacketizerNew(), demux_vaControlHelper(), dialog_VFatal(), DStreamControl(), EsOutAdd(), EsOutControlLocked(), filter_chain_AppendFilter(), filter_chain_AppendFilterInternal(), filter_chain_AppendFromStringInternal(), fingerprinter_Create(), GetPrevItem(), http_auth_FormatAuthorizationHeader(), http_auth_ParseAuthenticationInfoHeader(), httpd_HostCreate(), httpd_HostDelete(), httpdLoop(), ImageWriteUrl(), input_ControlPush(), input_DecoderSetCcState(), input_ExtractAttachmentAndCacheArt(), input_item_WriteMeta(), input_Start(), input_UpdateStatistic(), input_vaControl(), InputSourceInit(), InstallEntry(), intf_Create(), libvlc_InternalAddIntf(), libvlc_InternalInit(), module_Map(), net_Accept(), net_AcceptSingle(), 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(), picture_BlendSubpicture(), playlist_Activate(), playlist_Create(), playlist_Export(), playlist_fetcher_Push(), playlist_MLDump(), playlist_MLLoad(), playlist_preparser_New(), playlist_SaveArt(), PlaylistVAControl(), SAP_Add(), SelectClockSource(), SlaveDemux(), SlaveSeek(), SocksHandshakeTCP(), SocksNegotiate(), sout_AccessOutNew(), sout_AnnounceRegisterSDP(), sout_EncoderCreate(), sout_MuxAddStream(), sout_MuxDeleteStream(), sout_NewInstance(), SplitterEvent(), spu_PutSubpicture(), SpuRenderRegion(), SpuRenderSubpictures(), stream_AccessNew(), stream_BlockRemaining(), stream_ReadLine(), stream_UrlNew(), system_Configure(), ThreadChangeFilters(), ThreadDisplayRenderPicture(), ThreadExecuteCropBorder(), TsStart(), var_AddCallback(), var_GetIfIndex(), var_OptionParse(), VideoBufferNew(), vlc_http_HostNew(), vlc_https_HostNew(), vlc_InitActions(), vlc_object_find_name(), vlc_rtsp_HostNew(), vlc_sd_Start(), vlc_tls_ClientCreate(), vlc_tls_ClientSessionCreate(), vlc_tls_ServerCreate(), vlc_xlib_init(), vlm_ControlMediaAdd(), vlm_New(), vlm_OnMediaUpdate(), vlm_vaControlInternal(), vout_EnableFilter(), vout_FixLeaks(), vout_GetSnapshot(), vout_ManageDisplay(), vout_new_buffer(), vout_SendEventSourceAspect(), vout_snapshot_SaveImage(), VoutCreate(), VoutDisplayCreateRender(), VoutDisplayEvent(), VoutSaveSnapshot(), xml_Create(), and xml_ReaderCreate().

#define msg_GenericVa (   a,
  b,
  c,
  d,
 
)    vlc_vaLog(VLC_OBJECT(a), b, c, d, e)

Referenced by dialog_VFatal().

#define msg_Info (   p_this,
  ... 
)    vlc_Log( VLC_OBJECT(p_this), VLC_MSG_INFO, MODULE_STRING, __VA_ARGS__ )
#define msg_Warn (   p_this,
  ... 
)    vlc_Log( VLC_OBJECT(p_this), VLC_MSG_WARN, MODULE_STRING, __VA_ARGS__ )

Referenced by aout_DecPlay(), aout_DecSynchronize(), AStreamSeekBlock(), AStreamSeekStream(), AuthDigest(), config_ChainParse(), config_CreateDir(), config_GetIntChoices(), config_LoadConfigFile(), config_PutFloat(), config_PutInt(), config_PutPsz(), Control(), ControlPause(), ControlUnpause(), decoder_NewPicture(), decoder_NewSubpicture(), decoder_SynchroChoose(), decoder_SynchroNewPicture(), DecoderPlayAudio(), DecoderPlaySpu(), DecoderPlayVideo(), dialog_ExtensionUpdate(), DownloadArt(), DumpStructure(), EsOutFrameNext(), EsSelect(), EsUnselect(), filter_NewPicture(), filter_NewSubpicture(), FilterChainVideoFilter(), GetFilenames(), http_auth_ParseAuthenticationInfoHeader(), http_auth_ParseWwwAuthenticateHeader(), httpd_HostDelete(), httpd_UrlDelete(), httpd_UrlNew(), ImageRead(), input_clock_Update(), input_DecoderDecode(), input_ExtractAttachmentAndCacheArt(), InputSourceInit(), libvlc_InternalCleanup(), libvlc_InternalInit(), module_Load(), net_Connect(), net_ConnectDgram(), net_SetMcastHopLimit(), net_SourceSubscribe(), playlist_preparser_Push(), playlist_ServicesDiscoveryRemove(), SocksHandshakeTCP(), sout_InputSendBuffer(), sout_MuxDeleteStream(), sout_MuxSendBuffer(), spu_del_buffer(), spu_new_buffer(), SpuRenderRegion(), SpuRenderSubpictures(), StartTitle(), stream_FilterChainNew(), stream_ReadLine(), ThreadDisplayPreparePicture(), ThreadDisplayRenderPicture(), ThreadReinit(), TsAutoStop(), TsRun(), video_splitter_NewPicture(), vlc_InitAction(), vlc_probe(), vlm_New(), vout_InitWrapper(), vout_new_buffer(), vout_Request(), VoutDisplayEvent(), and VoutOsdSnapshot().

Typedef Documentation

typedef struct vlc_log_t vlc_log_t

Log message.

Enumeration Type Documentation

Message types.

Enumerator:
VLC_MSG_INFO 

Important information.

VLC_MSG_ERR 

Error.

VLC_MSG_WARN 

Warning.

VLC_MSG_DBG 

Debug.

Function Documentation

void vlc_Log ( vlc_object_t obj,
int  type,
const char *  module,
const char *  format,
  ... 
)

Emit a log message.

Parameters
objVLC object emitting the message or NULL
typeVLC_MSG_* message type (info, error, warning or debug)
modulename of module from which the message come (normally MODULE_STRING)
formatprintf-like message format

References vlc_vaLog().

Referenced by input_clock_ConvertTS().

const char* vlc_strerror ( int  errnum)

Formats an error message in the current locale.

Parameters
errnumerror 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().

const char* vlc_strerror_c ( int  errnum)

Formats an error message in the POSIX/C locale (i.e.

American English).

Parameters
errnumerror 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, and vlc_strerror_l().

Referenced by config_CreateDir(), config_LoadConfigFile(), config_OpenConfigFile(), config_SaveConfigFile(), httpd_HostCreate(), httpdLoop(), ImageWriteUrl(), libvlc_InternalCleanup(), libvlc_InternalInit(), net_Accept(), net_AcceptSingle(), 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(), playlist_Export(), playlist_MLDump(), playlist_SaveArt(), and vlc_strerror().

void vlc_vaLog ( vlc_object_t obj,
int  type,
const char *  module,
const char *  format,
va_list  args 
)