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
|
|
@ -45,7 +45,7 @@ typedef struct _snd_input_ops {
|
|||
|
||||
struct _snd_input {
|
||||
snd_input_type_t type;
|
||||
snd_input_ops_t *ops;
|
||||
const snd_input_ops_t *ops;
|
||||
void *private_data;
|
||||
};
|
||||
#endif
|
||||
|
|
@ -157,7 +157,7 @@ static int snd_input_stdio_ungetc(snd_input_t *input, int c)
|
|||
return ungetc(c, stdio->fp);
|
||||
}
|
||||
|
||||
static snd_input_ops_t snd_input_stdio_ops = {
|
||||
static const snd_input_ops_t snd_input_stdio_ops = {
|
||||
.close = snd_input_stdio_close,
|
||||
.scan = snd_input_stdio_scan,
|
||||
.gets = snd_input_stdio_gets,
|
||||
|
|
@ -283,7 +283,7 @@ static int snd_input_buffer_ungetc(snd_input_t *input, int c)
|
|||
return c;
|
||||
}
|
||||
|
||||
static snd_input_ops_t snd_input_buffer_ops = {
|
||||
static const snd_input_ops_t snd_input_buffer_ops = {
|
||||
.close = snd_input_buffer_close,
|
||||
.scan = snd_input_buffer_scan,
|
||||
.gets = snd_input_buffer_gets,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue