Main Page | Class List | File List | Class Members | File Members

ipod_error.h File Reference

Error handling. More...

#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.


Detailed Description

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 Documentation

typedef void(* ipod_error_func)(void *userData, const char *fmt, va_list ap)
 

An application-specific error handling routine.

Parameters:
userData additional application-specific data sent to the callback
fmt the printf-style format string
ap a vector of parameters for the format string


Function Documentation

void ipod_error const char *  fmt,
  ...
 

Error routine called by internal functions.

Parameters:
fmt printf-type format for additional parameters

void ipod_error_set_func ipod_error_func  func,
void *  userData
 

Set the callback for error handling.

Parameters:
func the error handling function
userData additional application-specific data to be sent to the error handling function


Generated on Tue Dec 13 14:55:22 2005 for libipod by  doxygen 1.3.9.1