return 1;
}
-snd_ctl_ops_t snd_ctl_hw_ops = {
+static const snd_ctl_ops_t snd_ctl_hw_ops = {
.close = snd_ctl_hw_close,
.nonblock = snd_ctl_hw_nonblock,
.async = snd_ctl_hw_async,
void *dl_handle;
char *name;
snd_ctl_type_t type;
- snd_ctl_ops_t *ops;
+ const snd_ctl_ops_t *ops;
void *private_data;
int nonblock;
int poll_fd;
return err;
}
-snd_ctl_ops_t snd_ctl_shm_ops = {
+static const snd_ctl_ops_t snd_ctl_shm_ops = {
.close = snd_ctl_shm_close,
.nonblock = snd_ctl_shm_nonblock,
.async = snd_ctl_shm_async,
return result;
}
-snd_rawmidi_ops_t snd_rawmidi_hw_ops = {
+static const snd_rawmidi_ops_t snd_rawmidi_hw_ops = {
.close = snd_rawmidi_hw_close,
.nonblock = snd_rawmidi_hw_nonblock,
.info = snd_rawmidi_hw_info,
snd_rawmidi_stream_t stream;
int mode;
int poll_fd;
- snd_rawmidi_ops_t *ops;
+ const snd_rawmidi_ops_t *ops;
void *private_data;
size_t buffer_size;
size_t avail_min;
return result;
}
-snd_rawmidi_ops_t snd_rawmidi_virtual_ops = {
+static const snd_rawmidi_ops_t snd_rawmidi_virtual_ops = {
.close = snd_rawmidi_virtual_close,
.nonblock = snd_rawmidi_virtual_nonblock,
.info = snd_rawmidi_virtual_info,
return 0;
}
-snd_seq_ops_t snd_seq_hw_ops = {
+static const snd_seq_ops_t snd_seq_hw_ops = {
.close = snd_seq_hw_close,
.nonblock = snd_seq_hw_nonblock,
.system_info = snd_seq_hw_system_info,
int mode;
int poll_fd;
void *dl_handle;
- snd_seq_ops_t *ops;
+ const snd_seq_ops_t *ops;
void *private_data;
int client; /* client number */
/* buffers */