libvlc_log_* functions provide access to the LibVLC messages log. More...
|
Data Structures | |
| struct | libvlc_log_subscriber |
| Data structure for a LibVLC logging callbacks. More... | |
Typedefs | |
| typedef void(* | libvlc_log_cb )(void *data, int level, const char *fmt, va_list args) |
| Callback prototype for LibVLC log message handler. | |
| typedef struct libvlc_log_subscriber | libvlc_log_subscriber_t |
| Data structure for a LibVLC logging callbacks. | |
Enumerations | |
| enum | libvlc_log_level { LIBVLC_DEBUG = 0, LIBVLC_NOTICE = 2, LIBVLC_WARNING = 3, LIBVLC_ERROR = 4 } |
Logging messages level. More... | |
Functions | |
| void | libvlc_log_subscribe (libvlc_log_subscriber_t *sub, libvlc_log_cb cb, void *data) |
| Registers a logging callback to LibVLC. | |
| void | libvlc_log_subscribe_file (libvlc_log_subscriber_t *sub, FILE *stream) |
| Registers a logging callback to a file. | |
| void | libvlc_log_unsubscribe (libvlc_log_subscriber_t *sub) |
| Deregisters a logging callback from LibVLC. | |
| unsigned | libvlc_get_log_verbosity (const libvlc_instance_t *p_instance) |
| Always returns minus one. | |
| void | libvlc_set_log_verbosity (libvlc_instance_t *p_instance, unsigned level) |
| This function does nothing. | |
| libvlc_log_t * | libvlc_log_open (libvlc_instance_t *p_instance) |
| This function does nothing useful. | |
| void | libvlc_log_close (libvlc_log_t *p_log) |
| Frees memory allocated by libvlc_log_open(). | |
| unsigned | libvlc_log_count (const libvlc_log_t *p_log) |
| Always returns zero. | |
| void | libvlc_log_clear (libvlc_log_t *p_log) |
| This function does nothing. | |
| libvlc_log_iterator_t * | libvlc_log_get_iterator (const libvlc_log_t *p_log) |
| This function does nothing useful. | |
| void | libvlc_log_iterator_free (libvlc_log_iterator_t *p_iter) |
| Frees memory allocated by libvlc_log_get_iterator(). | |
| int | libvlc_log_iterator_has_next (const libvlc_log_iterator_t *p_iter) |
| Always returns zero. | |
| libvlc_log_message_t * | libvlc_log_iterator_next (libvlc_log_iterator_t *p_iter, libvlc_log_message_t *p_buf) |
| Always returns NULL. | |
|
| |
| typedef struct libvlc_log_t | libvlc_log_t |
| This structure is opaque. | |
| typedef struct libvlc_log_iterator_t | libvlc_log_iterator_t |
| This structure is opaque. | |
| typedef struct libvlc_log_message_t | libvlc_log_message_t |
libvlc_log_* functions provide access to the LibVLC messages log.
This is used for logging and debugging.
| typedef void(* libvlc_log_cb)(void *data, int level, const char *fmt, va_list args) |
Callback prototype for LibVLC log message handler.
| data | data pointer as given to libvlc_log_subscribe() | |
| level | message level (enum libvlc_log_level) | |
| fmt | printf() format string (as defined by ISO C11) | |
| args | variable argument list for the format |
| typedef struct libvlc_log_iterator_t libvlc_log_iterator_t |
This structure is opaque.
It represents a libvlc log iterator
| typedef struct libvlc_log_message_t libvlc_log_message_t |
| typedef struct libvlc_log_subscriber libvlc_log_subscriber_t |
Data structure for a LibVLC logging callbacks.
| typedef struct libvlc_log_t libvlc_log_t |
This structure is opaque.
It represents a libvlc log instance
| enum libvlc_log_level |
| unsigned libvlc_get_log_verbosity | ( | const libvlc_instance_t * | p_instance | ) |
Always returns minus one.
This function is only provided for backward compatibility.
| p_instance | ignored |
| void libvlc_log_clear | ( | libvlc_log_t * | p_log | ) |
This function does nothing.
It is only provided for backward compatibility.
| p_log | ignored |
| void libvlc_log_close | ( | libvlc_log_t * | p_log | ) |
Frees memory allocated by libvlc_log_open().
| p_log | libvlc log instance or NULL |
| unsigned libvlc_log_count | ( | const libvlc_log_t * | p_log | ) |
Always returns zero.
This function is only provided for backward compatibility.
| p_log | ignored |
| libvlc_log_iterator_t* libvlc_log_get_iterator | ( | const libvlc_log_t * | p_log | ) |
This function does nothing useful.
It is only provided for backward compatibility.
| p_log | ignored |
| void libvlc_log_iterator_free | ( | libvlc_log_iterator_t * | p_iter | ) |
Frees memory allocated by libvlc_log_get_iterator().
| p_iter | libvlc log iterator or NULL |
| int libvlc_log_iterator_has_next | ( | const libvlc_log_iterator_t * | p_iter | ) |
Always returns zero.
This function is only provided for backward compatibility.
| p_iter | ignored |
| libvlc_log_message_t* libvlc_log_iterator_next | ( | libvlc_log_iterator_t * | p_iter, | |
| libvlc_log_message_t * | p_buf | |||
| ) |
Always returns NULL.
This function is only provided for backward compatibility.
| p_iter | libvlc log iterator or NULL | |
| p_buf | ignored |
| libvlc_log_t* libvlc_log_open | ( | libvlc_instance_t * | p_instance | ) |
This function does nothing useful.
It is only provided for backward compatibility.
| p_instance | libvlc instance |
| void libvlc_log_subscribe | ( | libvlc_log_subscriber_t * | sub, | |
| libvlc_log_cb | cb, | |||
| void * | data | |||
| ) |
Registers a logging callback to LibVLC.
This function is thread-safe.
| sub | uninitialized subscriber structure | |
| cb | callback function pointer | |
| data | opaque data pointer for the callback function |
| void libvlc_log_subscribe_file | ( | libvlc_log_subscriber_t * | sub, | |
| FILE * | stream | |||
| ) |
Registers a logging callback to a file.
| stream | FILE pointer opened for writing (the FILE pointer must remain valid until libvlc_log_unsubscribe()) |
| void libvlc_log_unsubscribe | ( | libvlc_log_subscriber_t * | sub | ) |
Deregisters a logging callback from LibVLC.
This function is thread-safe.
| sub | initialized subscriber structure |
| void libvlc_set_log_verbosity | ( | libvlc_instance_t * | p_instance, | |
| unsigned | level | |||
| ) |
This function does nothing.
It is only provided for backward compatibility.
| p_instance | ignored | |
| level | ignored |
1.7.1