mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Make all the remaining ops structure constants.
This excludes the mixer for now since it requires a change to the public headers. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
parent
8b14625cc3
commit
2eaf9403d2
8 changed files with 12 additions and 12 deletions
|
|
@ -209,7 +209,7 @@ static ssize_t snd_timer_hw_read(snd_timer_t *handle, void *buffer, size_t size)
|
|||
return result;
|
||||
}
|
||||
|
||||
static snd_timer_ops_t snd_timer_hw_ops = {
|
||||
static const snd_timer_ops_t snd_timer_hw_ops = {
|
||||
.close = snd_timer_hw_close,
|
||||
.nonblock = snd_timer_hw_nonblock,
|
||||
.async = snd_timer_hw_async,
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ struct _snd_timer {
|
|||
snd_timer_type_t type;
|
||||
int mode;
|
||||
int poll_fd;
|
||||
snd_timer_ops_t *ops;
|
||||
const snd_timer_ops_t *ops;
|
||||
void *private_data;
|
||||
struct list_head async_handlers;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ static int snd_timer_query_hw_status(snd_timer_query_t *handle, snd_timer_gstatu
|
|||
return 0;
|
||||
}
|
||||
|
||||
static snd_timer_query_ops_t snd_timer_query_hw_ops = {
|
||||
static const snd_timer_query_ops_t snd_timer_query_hw_ops = {
|
||||
.close = snd_timer_query_hw_close,
|
||||
.next_device = snd_timer_query_hw_next_device,
|
||||
.info = snd_timer_query_hw_info,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue