Functions | |
void | vbi_log_on_stderr (vbi_log_mask level, const char *context, const char *message, void *user_data) |
void | vbi_set_log_fn (vbi_log_mask mask, vbi_log_fn *log_fn, void *user_data) |
void | vbi_version (unsigned int *major, unsigned int *minor, unsigned int *micro) |
| |
enum | vbi_log_mask { VBI_LOG_ERROR = 1 << 3, VBI_LOG_WARNING = 1 << 4, VBI_LOG_NOTICE = 1 << 5, VBI_LOG_INFO = 1 << 6, VBI_LOG_DEBUG = 1 << 7, VBI_LOG_DRIVER = 1 << 8, VBI_LOG_DEBUG2 = 1 << 9, VBI_LOG_DEBUG3 = 1 << 10 } |
typedef void | vbi_log_fn (vbi_log_mask level, const char *context, const char *message, void *user_data) |
vbi_log_fn | vbi_log_on_stderr |
enum vbi_log_mask |
void vbi_log_on_stderr | ( | vbi_log_mask | level, | |
const char * | context, | |||
const char * | message, | |||
void * | user_data | |||
) |
Log function printing messages on standard output.
void vbi_set_log_fn | ( | vbi_log_mask | mask, | |
vbi_log_fn * | log_fn, | |||
void * | user_data | |||
) |
mask | Which kind of information to log. Can be 0 . | |
log_fn | This function is called with log messages. Consider vbi_log_on_stderr(). Can be NULL to disable logging. | |
user_data | User pointer passed through to the log_fn function. |
Various functions can print warnings, errors and information useful to debug the library. With this function you can enable these messages and determine a function to print them.
void vbi_version | ( | unsigned int * | major, | |
unsigned int * | minor, | |||
unsigned int * | micro | |||
) |
major | Store major number here, can be NULL. | |
minor | Store minor number here, can be NULL. | |
micro | Store micro number here, can be NULL. |
Returns the library version defined in the libzvbi.h header file when the library was compiled.