#include <stdarg.h>
Go to the source code of this file.
Typedefs | |
| typedef void(* | ipod_error_func )(void *userData, const char *fmt, va_list ap) |
| An application-specific error handling routine. | |
Functions | |
| void | ipod_error (const char *fmt,...) |
| Error routine called by internal functions. | |
| void | ipod_error_set_func (ipod_error_func func, void *userData) |
| Set the callback for error handling. | |
An application can override the default error handling routines by setting a new function. By default, the routine calls vfprintf to stderr.
| typedef void(* ipod_error_func)(void *userData, const char *fmt, va_list ap) |
An application-specific error handling routine.
| userData | additional application-specific data sent to the callback | |
| fmt | the printf-style format string | |
| ap | a vector of parameters for the format string |
| void ipod_error | ( | const char * | fmt, | |
| ... | ||||
| ) |
Error routine called by internal functions.
| fmt | printf-type format for additional parameters |
| void ipod_error_set_func | ( | ipod_error_func | func, | |
| void * | userData | |||
| ) |
Set the callback for error handling.
| func | the error handling function | |
| userData | additional application-specific data to be sent to the error handling function |
1.5.3