OSDN Git Service

Added documentation for instrument and midi event functions.
[android-x86/external-alsa-lib.git] / include / global.h
1 /**
2  *  \defgroup Global Global defines
3  *  Global defines
4  *  \{
5  */
6
7 #ifdef SNDRV_LITTLE_ENDIAN
8 #define SND_LITTLE_ENDIAN SNDRV_LITTLE_ENDIAN
9 #endif
10
11 #ifdef SNDRV_BIG_ENDIAN
12 #define SND_BIG_ENDIAN SNDRV_BIG_ENDIAN
13 #endif
14
15 /** \} */
16
17 /** Async notification client handler */
18 typedef struct _snd_async_handler snd_async_handler_t;
19
20 /** Async notification callback */
21 typedef void (*snd_async_callback_t)(snd_async_handler_t *handler);
22
23 int snd_async_add_handler(snd_async_handler_t **handler, int fd, 
24                           snd_async_callback_t callback, void *private_data);
25 int snd_async_del_handler(snd_async_handler_t *handler);
26 int snd_async_handler_get_fd(snd_async_handler_t *handler);
27 void *snd_async_handler_get_callback_private(snd_async_handler_t *handler);