libvisual  0.5.0
Typedefs | Functions
VisError

Typedefs

typedef void(* VisErrorHandlerFunc )(const char *error_msg, void *priv)
 Function signature and type for error handlers. More...
 

Functions

void visual_error_raise (const char *error_msg)
 Raises an error in LV. More...
 
void visual_error_set_handler (VisErrorHandlerFunc handler, void *priv)
 Sets the error handler callback. More...
 

Detailed Description

Typedef Documentation

typedef void(* VisErrorHandlerFunc)(const char *error_msg, void *priv)

Function signature and type for error handlers.

See Also
visual_error_set_handler()
Parameters
error_msgError message
privOptional private data passed to handler on invocation

Definition at line 42 of file lv_error.h.

Function Documentation

void visual_error_raise ( const char *  error_msg)

Raises an error in LV.

Note
By default, LV will raise the SIGTRAP signal on POSIX systems.
See Also
visual_error_set_handler()

Definition at line 37 of file lv_error.c.

void visual_error_set_handler ( VisErrorHandlerFunc  handler,
void *  priv 
)

Sets the error handler callback.

Use this to override LV's default error handler.

Parameters
handlerCustom error handler
privOptional private data to pass to handler on invocation

Definition at line 46 of file lv_error.c.