return -EINVAL;
}
-static snd_ctl_ops_t snd_ctl_ext_ops = {
+static const snd_ctl_ops_t snd_ctl_ext_ops = {
.close = snd_ctl_ext_close,
.nonblock = snd_ctl_ext_nonblock,
.async = snd_ctl_ext_async,
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,
snd_hwdep_type_t type;
int mode;
int poll_fd;
- snd_hwdep_ops_t *ops;
+ const snd_hwdep_ops_t *ops;
void *private_data;
};
struct _snd_input {
snd_input_type_t type;
- snd_input_ops_t *ops;
+ const snd_input_ops_t *ops;
void *private_data;
};
#endif
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,
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,
struct _snd_output {
snd_output_type_t type;
- snd_output_ops_t *ops;
+ const snd_output_ops_t *ops;
void *private_data;
};
#endif
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,
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,
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,
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;
};
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,