mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -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
|
|
@ -94,7 +94,7 @@ static ssize_t snd_hwdep_hw_read(snd_hwdep_t *hwdep, void *buffer, size_t size)
|
|||
return result;
|
||||
}
|
||||
|
||||
static snd_hwdep_ops_t snd_hwdep_hw_ops = {
|
||||
static const snd_hwdep_ops_t snd_hwdep_hw_ops = {
|
||||
.close = snd_hwdep_hw_close,
|
||||
.nonblock = snd_hwdep_hw_nonblock,
|
||||
.info = snd_hwdep_hw_info,
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ struct _snd_hwdep {
|
|||
snd_hwdep_type_t type;
|
||||
int mode;
|
||||
int poll_fd;
|
||||
snd_hwdep_ops_t *ops;
|
||||
const snd_hwdep_ops_t *ops;
|
||||
void *private_data;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue