mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			808 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			808 B
		
	
	
	
		
			C
		
	
	
	
	
	
/**
 | 
						|
 *  \defgroup Error Error handling
 | 
						|
 *  Error handling
 | 
						|
 *  \{
 | 
						|
 */
 | 
						|
 | 
						|
#define SND_ERROR_BEGIN				500000
 | 
						|
#define SND_ERROR_INCOMPATIBLE_VERSION		(SND_ERROR_BEGIN+0)
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
const char *snd_strerror(int errnum);
 | 
						|
 | 
						|
/**
 | 
						|
 * \brief Error handler
 | 
						|
 * \param file File name
 | 
						|
 * \param line Line number
 | 
						|
 * \param function Function name
 | 
						|
 * \param err errno value (or 0 if not relevant)
 | 
						|
 * \param fmt printf(3) format
 | 
						|
 * \param ... printf(3) arguments
 | 
						|
 */
 | 
						|
typedef void (snd_lib_error_handler_t)(const char *file, int line, const char *function, int err, const char *fmt, ...) /* __attribute__ ((weak, format (printf, 5, 6))) */;
 | 
						|
extern snd_lib_error_handler_t *snd_lib_error;
 | 
						|
extern int snd_lib_error_set_handler(snd_lib_error_handler_t *handler);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
/** \} */
 | 
						|
 |