VLC  2.2.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
LibVLC error handling
LibVLC core
Collaboration diagram for LibVLC error handling:

Functions

const char * libvlc_errmsg (void)
 A human-readable error message for the last LibVLC error in the calling thread.
void libvlc_clearerr (void)
 Clears the LibVLC error status for the current thread.
const char * libvlc_vprinterr (const char *fmt, va_list ap)
 Sets the LibVLC error status and message for the current thread.
const char * libvlc_printerr (const char *fmt,...)
 Sets the LibVLC error status and message for the current thread.

Detailed Description

Function Documentation

void libvlc_clearerr ( void  )

Clears the LibVLC error status for the current thread.

This is optional. By default, the error status is automatically overridden when a new error occurs, and destroyed when the thread exits.

const char* libvlc_errmsg ( void  )

A human-readable error message for the last LibVLC error in the calling thread.

The resulting string is valid until another error occurs (at least until the next LibVLC call).

Warning
This will be NULL if there was no error.
const char* libvlc_printerr ( const char *  fmt,
  ... 
)

Sets the LibVLC error status and message for the current thread.

Any previous error is overridden.

Parameters
fmtthe format string
argsthe arguments
Returns
a nul terminated string in any case
const char* libvlc_vprinterr ( const char *  fmt,
va_list  ap 
)

Sets the LibVLC error status and message for the current thread.

Any previous error is overridden.

Parameters
fmtthe format string
apthe arguments
Returns
a nul terminated string in any case