mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Completed conf. Better name for snd_card_get_index. Cleaned card access
This commit is contained in:
parent
845d917797
commit
b5576ef229
10 changed files with 144 additions and 89 deletions
|
|
@ -38,6 +38,10 @@ int snd_config_delete(snd_config_t *config);
|
|||
|
||||
int snd_config_make(snd_config_t **config, char *key,
|
||||
snd_config_type_t type);
|
||||
int snd_config_integer_make(snd_config_t **config, char *key);
|
||||
int snd_config_real_make(snd_config_t **config, char *key);
|
||||
int snd_config_string_make(snd_config_t **config, char *key);
|
||||
int snd_config_compound_make(snd_config_t **config, char *key, int join);
|
||||
|
||||
int snd_config_integer_set(snd_config_t *config, long value);
|
||||
int snd_config_real_set(snd_config_t *config, double value);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ extern "C" {
|
|||
int snd_card_load(int card);
|
||||
int snd_cards(void);
|
||||
unsigned int snd_cards_mask(void);
|
||||
int snd_card_name(const char *name);
|
||||
int snd_card_get_index(const char *name);
|
||||
int snd_card_get_name(int card, char **name);
|
||||
int snd_card_get_longname(int card, char **name);
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ int snd_defaults_rawmidi_device(void);
|
|||
int snd_ctl_open(snd_ctl_t **handle, int card);
|
||||
int snd_ctl_close(snd_ctl_t *handle);
|
||||
int snd_ctl_file_descriptor(snd_ctl_t *handle);
|
||||
int snd_ctl_hw_info(snd_ctl_t *handle, struct snd_ctl_hw_info *info);
|
||||
int snd_ctl_hw_info(snd_ctl_t *handle, snd_ctl_hw_info_t *info);
|
||||
int snd_ctl_clist(snd_ctl_t *handle, snd_control_list_t * list);
|
||||
int snd_ctl_cinfo(snd_ctl_t *handle, snd_control_info_t * sw);
|
||||
int snd_ctl_cread(snd_ctl_t *handle, snd_control_t * control);
|
||||
|
|
@ -63,6 +63,16 @@ struct list_head {
|
|||
struct list_head *next, *prev;
|
||||
};
|
||||
|
||||
/**
|
||||
* list_entry - get the struct for this entry
|
||||
* @ptr: the &struct list_head pointer.
|
||||
* @type: the type of the struct this is embedded in.
|
||||
* @member: the name of the list_struct within the struct.
|
||||
*/
|
||||
#define list_entry(ptr, type, member) \
|
||||
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
|
||||
|
||||
|
||||
typedef struct snd_hcontrol_list_stru snd_hcontrol_list_t;
|
||||
typedef struct snd_hcontrol_stru snd_hcontrol_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -136,15 +136,6 @@ static __inline__ void list_splice(struct list_head *list, struct list_head *hea
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* list_entry - get the struct for this entry
|
||||
* @ptr: the &struct list_head pointer.
|
||||
* @type: the type of the struct this is embedded in.
|
||||
* @member: the name of the list_struct within the struct.
|
||||
*/
|
||||
#define list_entry(ptr, type, member) \
|
||||
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
|
||||
|
||||
/**
|
||||
* list_for_each - iterate over a list
|
||||
* @pos: the &struct list_head to use as a loop counter.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue