mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Get rid of enum type checking ugly trick
This commit is contained in:
parent
78af661d60
commit
08232943a2
6 changed files with 36 additions and 96 deletions
|
|
@ -300,22 +300,13 @@ typedef enum sndrv_seq_stop_mode snd_seq_stop_mode_t;
|
|||
|
||||
#define SND_SEQ_NONBLOCK 1
|
||||
|
||||
enum _snd_seq_type {
|
||||
typedef enum _snd_seq_type {
|
||||
SND_SEQ_TYPE_HW,
|
||||
SND_SEQ_TYPE_SHM,
|
||||
SND_SEQ_TYPE_INET,
|
||||
};
|
||||
|
||||
#ifdef SND_ENUM_TYPECHECK
|
||||
typedef struct __snd_seq_type *snd_seq_type_t;
|
||||
#else
|
||||
typedef enum _snd_seq_type snd_seq_type_t;
|
||||
#endif
|
||||
|
||||
#define SND_SEQ_TYPE_HW ((snd_seq_type_t) SND_SEQ_TYPE_HW)
|
||||
#define SND_SEQ_TYPE_SHM ((snd_seq_type_t) SND_SEQ_TYPE_SHM)
|
||||
#define SND_SEQ_TYPE_INET ((snd_seq_type_t) SND_SEQ_TYPE_INET)
|
||||
} snd_seq_type_t;
|
||||
|
||||
/** Sequencer handle */
|
||||
typedef struct _snd_seq snd_seq_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue