mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Changed data type of alsa-lib handles from 'void *' to the specific type for
the handle in use. This should be more type-safe as the compiler will perform checking on type now.
This commit is contained in:
parent
9679707a00
commit
19811bb9b4
15 changed files with 417 additions and 404 deletions
|
|
@ -16,6 +16,8 @@ typedef struct snd_ctl_callbacks {
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct snd_ctl snd_ctl_t;
|
||||
|
||||
int snd_card_load(int card);
|
||||
int snd_cards(void);
|
||||
unsigned int snd_cards_mask(void);
|
||||
|
|
@ -29,36 +31,36 @@ int snd_defaults_pcm_device(void);
|
|||
int snd_defaults_rawmidi_card(void);
|
||||
int snd_defaults_rawmidi_device(void);
|
||||
|
||||
int snd_ctl_open(void **handle, int card);
|
||||
int snd_ctl_close(void *handle);
|
||||
int snd_ctl_file_descriptor(void *handle);
|
||||
int snd_ctl_hw_info(void *handle, struct snd_ctl_hw_info *info);
|
||||
int snd_ctl_switch_list(void *handle, snd_switch_list_t * list);
|
||||
int snd_ctl_switch_read(void *handle, snd_switch_t * sw);
|
||||
int snd_ctl_switch_write(void *handle, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_info(void *handle, int dev, snd_pcm_info_t * info);
|
||||
int snd_ctl_pcm_playback_info(void *handle, int dev, snd_pcm_playback_info_t * info);
|
||||
int snd_ctl_pcm_record_info(void *handle, int dev, snd_pcm_record_info_t * info);
|
||||
int snd_ctl_pcm_playback_switch_list(void *handle, int dev, snd_switch_list_t * list);
|
||||
int snd_ctl_pcm_playback_switch_read(void *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_playback_switch_write(void *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_record_switch_list(void *handle, int dev, snd_switch_list_t * list);
|
||||
int snd_ctl_pcm_record_switch_read(void *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_record_switch_write(void *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_mixer_info(void *handle, int dev, snd_mixer_info_t * info);
|
||||
int snd_ctl_mixer_switch_list(void *handle, int dev, snd_switch_list_t *list);
|
||||
int snd_ctl_mixer_switch_read(void *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_mixer_switch_write(void *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_rawmidi_info(void *handle, int dev, snd_rawmidi_info_t * info);
|
||||
int snd_ctl_rawmidi_output_info(void *handle, int dev, snd_rawmidi_output_info_t * info);
|
||||
int snd_ctl_rawmidi_input_info(void *handle, int dev, snd_rawmidi_input_info_t * info);
|
||||
int snd_ctl_rawmidi_output_switch_list(void *handle, int dev, snd_switch_list_t *list);
|
||||
int snd_ctl_rawmidi_output_switch_read(void *handle, int dev, snd_switch_t * sw);
|
||||
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);
|
||||
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_switch_list(snd_ctl_t *handle, snd_switch_list_t * list);
|
||||
int snd_ctl_switch_read(snd_ctl_t *handle, snd_switch_t * sw);
|
||||
int snd_ctl_switch_write(snd_ctl_t *handle, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_info(snd_ctl_t *handle, int dev, snd_pcm_info_t * info);
|
||||
int snd_ctl_pcm_playback_info(snd_ctl_t *handle, int dev, snd_pcm_playback_info_t * info);
|
||||
int snd_ctl_pcm_record_info(snd_ctl_t *handle, int dev, snd_pcm_record_info_t * info);
|
||||
int snd_ctl_pcm_playback_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t * list);
|
||||
int snd_ctl_pcm_playback_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_playback_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_record_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t * list);
|
||||
int snd_ctl_pcm_record_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_record_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_mixer_info(snd_ctl_t *handle, int dev, snd_mixer_info_t * info);
|
||||
int snd_ctl_mixer_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t *list);
|
||||
int snd_ctl_mixer_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_mixer_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_rawmidi_info(snd_ctl_t *handle, int dev, snd_rawmidi_info_t * info);
|
||||
int snd_ctl_rawmidi_output_info(snd_ctl_t *handle, int dev, snd_rawmidi_output_info_t * info);
|
||||
int snd_ctl_rawmidi_input_info(snd_ctl_t *handle, int dev, snd_rawmidi_input_info_t * info);
|
||||
int snd_ctl_rawmidi_output_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t *list);
|
||||
int snd_ctl_rawmidi_output_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_rawmidi_output_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_rawmidi_input_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t *list);
|
||||
int snd_ctl_rawmidi_input_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_rawmidi_input_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_read(snd_ctl_t *handle, snd_ctl_callbacks_t * callbacks);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue