Recoded the universal switch interface...

This commit is contained in:
Jaroslav Kysela 1999-05-04 19:21:28 +00:00
parent a5b307a711
commit 6e72ca3977
8 changed files with 42 additions and 204 deletions

View file

@ -5,6 +5,13 @@
* *
****************************************************************************/
typedef struct snd_ctl_callbacks {
void *private_data; /* should be used by an application */
void (*rebuild) (void *private_data);
void (*xswitch) (void *private_data, int cmd, int iface, snd_switch_list_item_t *item);
void *reserved[29]; /* reserved for the future use - must be NULL!!! */
} snd_ctl_callbacks_t;
#ifdef __cplusplus
extern "C" {
#endif
@ -51,6 +58,7 @@ int snd_ctl_rawmidi_output_switch_write(void *handle, int dev, snd_switch_t * sw
int snd_ctl_rawmidi_input_switch_list(void *handle, int dev, snd_switch_list_t *list);
int snd_ctl_rawmidi_input_switch_read(void *handle, int dev, snd_switch_t * sw);
int snd_ctl_rawmidi_input_switch_write(void *handle, int dev, snd_switch_t * sw);
int snd_ctl_read(void *handle, snd_ctl_callbacks_t * callbacks);
#ifdef __cplusplus
}

View file

@ -10,8 +10,7 @@ typedef struct snd_mixer_callbacks {
void (*rebuild) (void *private_data);
void (*element) (void *private_data, int cmd, snd_mixer_eid_t *eid);
void (*group) (void *private_data, int cmd, snd_mixer_gid_t *gid);
void (*xswitch) (void *private_data, int cmd, snd_switch_list_item_t *item);
void *reserved[27]; /* reserved for the future use - must be NULL!!! */
void *reserved[28]; /* reserved for the future use - must be NULL!!! */
} snd_mixer_callbacks_t;
#ifdef __cplusplus
@ -29,9 +28,6 @@ int snd_mixer_group(void *handle, snd_mixer_group_t * group);
int snd_mixer_element_info(void *handle, snd_mixer_element_info_t * info);
int snd_mixer_element_read(void *handle, snd_mixer_element_t * element);
int snd_mixer_element_write(void *handle, snd_mixer_element_t * element);
int snd_mixer_switch_list(void *handle, snd_switch_list_t * list);
int snd_mixer_switch_read(void *handle, snd_switch_t * sw);
int snd_mixer_switch_write(void *handle, snd_switch_t * sw);
int snd_mixer_read(void *handle, snd_mixer_callbacks_t * callbacks);
void snd_mixer_set_bit(unsigned int *bitmap, int bit, int val);

View file

@ -20,12 +20,6 @@ int snd_pcm_block_mode(void *handle, int enable);
int snd_pcm_info(void *handle, snd_pcm_info_t * info);
int snd_pcm_playback_info(void *handle, snd_pcm_playback_info_t * info);
int snd_pcm_record_info(void *handle, snd_pcm_record_info_t * info);
int snd_pcm_playback_switch_list(void *handle, snd_switch_list_t * list);
int snd_pcm_playback_switch_read(void *handle, snd_switch_t * sw);
int snd_pcm_playback_switch_write(void *handle, snd_switch_t * sw);
int snd_pcm_record_switch_list(void *handle, snd_switch_list_t * list);
int snd_pcm_record_switch_read(void *handle, snd_switch_t * sw);
int snd_pcm_record_switch_write(void *handle, snd_switch_t * sw);
int snd_pcm_playback_format(void *handle, snd_pcm_format_t * format);
int snd_pcm_record_format(void *handle, snd_pcm_format_t * format);
int snd_pcm_playback_params(void *handle, snd_pcm_playback_params_t * params);

View file

@ -18,12 +18,6 @@ int snd_rawmidi_close(void *handle);
int snd_rawmidi_file_descriptor(void *handle);
int snd_rawmidi_block_mode(void *handle, int enable);
int snd_rawmidi_info(void *handle, snd_rawmidi_info_t * info);
int snd_rawmidi_output_switch_list(void *handle, snd_switch_list_t * list);
int snd_rawmidi_output_switch_read(void *handle, snd_switch_t * sw);
int snd_rawmidi_output_switch_write(void *handle, snd_switch_t * sw);
int snd_rawmidi_input_switch_list(void *handle, snd_switch_list_t * list);
int snd_rawmidi_input_switch_read(void *handle, snd_switch_t * sw);
int snd_rawmidi_input_switch_write(void *handle, snd_switch_t * sw);
int snd_rawmidi_output_params(void *handle, snd_rawmidi_output_params_t * params);
int snd_rawmidi_input_params(void *handle, snd_rawmidi_input_params_t * params);
int snd_rawmidi_output_status(void *handle, snd_rawmidi_output_status_t * status);