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:
Diego E. 'Flameeyes' Pettenò 2008-11-21 19:43:33 +01:00
parent 8b14625cc3
commit 2eaf9403d2
8 changed files with 12 additions and 12 deletions

View file

@ -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,

View file

@ -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;
};