summaryrefslogtreecommitdiff
path: root/src/timer
diff options
context:
space:
mode:
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 19:43:33 +0100
committerDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 20:48:33 +0100
commit2eaf9403d205c71ba2008875ef42d9ae37bc3d46 (patch)
treea88005b874b4a948650fbb475fc58bc08993c994 /src/timer
parent8b14625cc3700c8efa2ae5381e4d566ed23e2fab (diff)
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>
Diffstat (limited to 'src/timer')
-rw-r--r--src/timer/timer_hw.c2
-rw-r--r--src/timer/timer_local.h2
-rw-r--r--src/timer/timer_query_hw.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/timer/timer_hw.c b/src/timer/timer_hw.c
index 5355705d..34538584 100644
--- a/src/timer/timer_hw.c
+++ b/src/timer/timer_hw.c
@@ -209,7 +209,7 @@ static ssize_t snd_timer_hw_read(snd_timer_t *handle, void *buffer, size_t size)
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,
diff --git a/src/timer/timer_local.h b/src/timer/timer_local.h
index 8f543fed..19cadfe6 100644
--- a/src/timer/timer_local.h
+++ b/src/timer/timer_local.h
@@ -45,7 +45,7 @@ struct _snd_timer {
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;
};
diff --git a/src/timer/timer_query_hw.c b/src/timer/timer_query_hw.c
index 743ee1fb..9f62b78a 100644
--- a/src/timer/timer_query_hw.c
+++ b/src/timer/timer_query_hw.c
@@ -81,7 +81,7 @@ static int snd_timer_query_hw_status(snd_timer_query_t *handle, snd_timer_gstatu
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,