alsa-lib/include/global.h

28 lines
752 B
C
Raw Normal View History

/**
* \defgroup Global Global defines
2000-11-25 16:36:18 +00:00
* Global defines
* \{
2000-11-25 16:36:18 +00:00
*/
#ifdef SNDRV_LITTLE_ENDIAN
#define SND_LITTLE_ENDIAN SNDRV_LITTLE_ENDIAN
#endif
#ifdef SNDRV_BIG_ENDIAN
#define SND_BIG_ENDIAN SNDRV_BIG_ENDIAN
#endif
/** \} */
/** Async notification client handler */
typedef struct _snd_async_handler snd_async_handler_t;
/** Async notification callback */
typedef void (*snd_async_callback_t)(snd_async_handler_t *handler);
int snd_async_add_handler(snd_async_handler_t **handler, int fd,
snd_async_callback_t callback, void *private_data);
int snd_async_del_handler(snd_async_handler_t *handler);
int snd_async_handler_get_fd(snd_async_handler_t *handler);
void *snd_async_handler_get_callback_private(snd_async_handler_t *handler);