mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Encapsulated hwdep. Converted all enums to type safety
This commit is contained in:
parent
a83b209df2
commit
5bf23ae9a1
32 changed files with 510 additions and 268 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue