summaryrefslogtreecommitdiff
path: root/include/output.h
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo@alsa-project.org>2001-02-05 15:44:42 +0000
committerAbramo Bagnara <abramo@alsa-project.org>2001-02-05 15:44:42 +0000
commit5bf23ae9a1fd826533a59b603eb8d7394de6e617 (patch)
treefb1fabfc0a2d476411c741edd7896241a199b055 /include/output.h
parenta83b209df2e93743487512b4b5078eef1a7c9093 (diff)
downloadalsa-lib-5bf23ae9a1fd826533a59b603eb8d7394de6e617.tar.gz
Encapsulated hwdep. Converted all enums to type safety
Diffstat (limited to 'include/output.h')
-rw-r--r--include/output.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/output.h b/include/output.h
index c2301949..7bed44e4 100644
--- a/include/output.h
+++ b/include/output.h
@@ -1,10 +1,20 @@
typedef struct _snd_output snd_output_t;
-typedef enum _snd_output_type {
+enum _snd_output_type {
SND_OUTPUT_STDIO,
SND_OUTPUT_BUFFER,
-} snd_output_type_t;
+};
+
+#ifdef SND_ENUM_TYPECHECK
+typedef struct __snd_output_type *snd_output_type_t;
+#else
+typedef enum _snd_output_type snd_output_type_t;
+#endif
+
+#define SND_OUTPUT_STDIO ((snd_output_type_t) SND_OUTPUT_STDIO)
+#define SND_OUTPUT_BUFFER ((snd_output_type_t) SND_OUTPUT_BUFFER)
+
#ifdef __cplusplus
extern "C" {