error.h
00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
#ifndef __ALSA_ERROR_H
00029
#define __ALSA_ERROR_H
00030
00031
#ifdef __cplusplus
00032
extern "C" {
00033
#endif
00034
00041 #define SND_ERROR_BEGIN 500000
00042 #define SND_ERROR_INCOMPATIBLE_VERSION (SND_ERROR_BEGIN+0)
00043 #define SND_ERROR_ALISP_NIL (SND_ERROR_BEGIN+1)
00045
const char *snd_strerror(int errnum);
00046
00059 typedef void (*
snd_lib_error_handler_t)(
const char *file,
int line,
const char *function,
int err,
const char *fmt, ...) ;
00060 extern snd_lib_error_handler_t snd_lib_error;
00061
extern int snd_lib_error_set_handler(snd_lib_error_handler_t handler);
00062
00063
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 95)
00064
#define SNDERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, __VA_ARGS__)
00065
#define SYSERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, __VA_ARGS__)
00066
#else
00067 #define SNDERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, ##args)
00068 #define SYSERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, ##args)
00069
#endif
00070
00073
#ifdef __cplusplus
00074
}
00075
#endif
00076
00077
#endif
00078
Generated on Mon Aug 16 11:46:27 2004 for ALSA project - the C library reference by
1.3.7