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
|
|
@ -5,17 +5,22 @@
|
|||
* *
|
||||
****************************************************************************/
|
||||
|
||||
/* sndrv aliasing */
|
||||
typedef struct _snd_hwdep_info snd_hwdep_info_t;
|
||||
|
||||
#ifdef SND_ENUM_TYPECHECK
|
||||
typedef struct __snd_hwdep_type *snd_hwdep_type_t;
|
||||
#else
|
||||
typedef enum sndrv_hwdep_type snd_hwdep_type_t;
|
||||
typedef struct sndrv_hwdep_info snd_hwdep_info_t;
|
||||
#define SND_HWDEP_TYPE_OPL2 SNDRV_HWDEP_TYPE_OPL2
|
||||
#define SND_HWDEP_TYPE_OPL3 SNDRV_HWDEP_TYPE_OPL3
|
||||
#define SND_HWDEP_TYPE_OPL4 SNDRV_HWDEP_TYPE_OPL4
|
||||
#define SND_HWDEP_TYPE_SB16CSP SNDRV_HWDEP_TYPE_SB16CSP
|
||||
#define SND_HWDEP_TYPE_EMU10K1 SNDRV_HWDEP_TYPE_EMU10K1
|
||||
#define SND_HWDEP_TYPE_YSS225 SNDRV_HWDEP_TYPE_YSS225
|
||||
#define SND_HWDEP_TYPE_ICS2115 SNDRV_HWDEP_TYPE_ICS2115
|
||||
#define SND_HWDEP_TYPE_LAST SNDRV_HWDEP_TYPE_LAST
|
||||
#endif
|
||||
|
||||
#define SND_HWDEP_TYPE_OPL2 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_OPL2)
|
||||
#define SND_HWDEP_TYPE_OPL3 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_OPL3)
|
||||
#define SND_HWDEP_TYPE_OPL4 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_OPL4)
|
||||
#define SND_HWDEP_TYPE_SB16CSP ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_SB16CSP)
|
||||
#define SND_HWDEP_TYPE_EMU10K1 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_EMU10K1)
|
||||
#define SND_HWDEP_TYPE_YSS225 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_YSS225)
|
||||
#define SND_HWDEP_TYPE_ICS2115 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_ICS2115)
|
||||
#define SND_HWDEP_TYPE_LAST ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_LAST)
|
||||
|
||||
#define SND_HWDEP_OPEN_READ (O_RDONLY)
|
||||
#define SND_HWDEP_OPEN_WRITE (O_WRONLY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue