mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04: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
|
|
@ -44,7 +44,7 @@ typedef struct _snd_output_ops {
|
|||
|
||||
struct _snd_output {
|
||||
snd_output_type_t type;
|
||||
snd_output_ops_t *ops;
|
||||
const snd_output_ops_t *ops;
|
||||
void *private_data;
|
||||
};
|
||||
#endif
|
||||
|
|
@ -165,7 +165,7 @@ static int snd_output_stdio_flush(snd_output_t *output)
|
|||
return fflush(stdio->fp);
|
||||
}
|
||||
|
||||
static snd_output_ops_t snd_output_stdio_ops = {
|
||||
static const snd_output_ops_t snd_output_stdio_ops = {
|
||||
.close = snd_output_stdio_close,
|
||||
.print = snd_output_stdio_print,
|
||||
.puts = snd_output_stdio_puts,
|
||||
|
|
@ -323,7 +323,7 @@ static int snd_output_buffer_flush(snd_output_t *output ATTRIBUTE_UNUSED)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static snd_output_ops_t snd_output_buffer_ops = {
|
||||
static const snd_output_ops_t snd_output_buffer_ops = {
|
||||
.close = snd_output_buffer_close,
|
||||
.print = snd_output_buffer_print,
|
||||
.puts = snd_output_buffer_puts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue