Added group and elements sorting

This commit is contained in:
Abramo Bagnara 2000-01-18 08:45:02 +00:00
parent 5cdac14059
commit 50b815f16a
2 changed files with 240 additions and 0 deletions

View file

@ -13,6 +13,11 @@ typedef struct snd_mixer_callbacks {
void *reserved[28]; /* reserved for the future use - must be NULL!!! */
} snd_mixer_callbacks_t;
typedef struct {
char *name;
int weight;
} snd_mixer_weight_entry_t;
#ifdef __cplusplus
extern "C" {
#endif
@ -47,6 +52,12 @@ int snd_mixer_element_has_control(snd_mixer_eid_t *eid);
int snd_mixer_element_build(snd_mixer_t *handle, snd_mixer_element_t * element);
int snd_mixer_element_free(snd_mixer_element_t * element);
void snd_mixer_sort_eid_name_index(snd_mixer_eid_t *list, int count);
void snd_mixer_sort_eid_table(snd_mixer_eid_t *list, int count, snd_mixer_weight_entry_t *table);
void snd_mixer_sort_gid_name_index(snd_mixer_gid_t *list, int count);
void snd_mixer_sort_gid_table(snd_mixer_gid_t *list, int count, snd_mixer_weight_entry_t *table);
snd_mixer_weight_entry_t *snd_mixer_default_weights;
#ifdef __cplusplus
}
#endif