Get rid of enum type checking ugly trick

This commit is contained in:
Abramo Bagnara 2001-03-29 10:11:38 +00:00
parent 78af661d60
commit 08232943a2
6 changed files with 36 additions and 96 deletions

View file

@ -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