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.

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:
fmt the format string
args the 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:
fmt the format string
ap the arguments
Returns:
a nul terminated string in any case
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines