diff options
author | Abramo Bagnara <abramo@alsa-project.org> | 2001-02-05 15:44:42 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo@alsa-project.org> | 2001-02-05 15:44:42 +0000 |
commit | 5bf23ae9a1fd826533a59b603eb8d7394de6e617 (patch) | |
tree | fb1fabfc0a2d476411c741edd7896241a199b055 /include/input.h | |
parent | a83b209df2e93743487512b4b5078eef1a7c9093 (diff) |
Encapsulated hwdep. Converted all enums to type safety
Diffstat (limited to 'include/input.h')
-rw-r--r-- | include/input.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/input.h b/include/input.h index 7ed320b8..99e9864a 100644 --- a/include/input.h +++ b/include/input.h @@ -1,10 +1,19 @@ typedef struct _snd_input snd_input_t; -typedef enum _snd_input_type { +enum _snd_input_type { SND_INPUT_STDIO, SND_INPUT_BUFFER, -} snd_input_type_t; +}; + +#ifdef SND_ENUM_TYPECHECK +typedef struct __snd_input_type *snd_input_type_t; +#else +typedef enum _snd_input_type snd_input_type_t; +#endif + +#define SND_INPUT_STDIO ((snd_input_type_t) SND_INPUT_STDIO) +#define SND_INPUT_BUFFER ((snd_input_type_t) SND_INPUT_BUFFER) #ifdef __cplusplus extern "C" { |