diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/alsa.c | 2 | ||||
-rw-r--r-- | src/driver.h | 2 | ||||
-rw-r--r-- | src/dso.c | 2 | ||||
-rw-r--r-- | src/gstreamer.c | 2 | ||||
-rw-r--r-- | src/multi.c | 2 | ||||
-rw-r--r-- | src/null.c | 2 | ||||
-rw-r--r-- | src/oss.c | 2 | ||||
-rw-r--r-- | src/pulse.c | 2 |
8 files changed, 8 insertions, 8 deletions
@@ -164,7 +164,7 @@ int driver_destroy(ca_context *c) { return CA_SUCCESS; } -int driver_change_device(ca_context *c, char *device) { +int driver_change_device(ca_context *c, const char *device) { ca_return_val_if_fail(c, CA_ERROR_INVALID); ca_return_val_if_fail(c->private, CA_ERROR_STATE); diff --git a/src/driver.h b/src/driver.h index fca5529..98b40d7 100644 --- a/src/driver.h +++ b/src/driver.h @@ -26,7 +26,7 @@ int driver_open(ca_context *c); int driver_destroy(ca_context *c); -int driver_change_device(ca_context *c, char *device); +int driver_change_device(ca_context *c, const char *device); int driver_change_props(ca_context *c, ca_proplist *changed, ca_proplist *merged); int driver_play(ca_context *c, uint32_t id, ca_proplist *p, ca_finish_callback_t cb, void *userdata); @@ -299,7 +299,7 @@ int driver_destroy(ca_context *c) { return ret; } -int driver_change_device(ca_context *c, char *device) { +int driver_change_device(ca_context *c, const char *device) { struct private_dso *p; ca_return_val_if_fail(c, CA_ERROR_INVALID); diff --git a/src/gstreamer.c b/src/gstreamer.c index caa28a6..f008849 100644 --- a/src/gstreamer.c +++ b/src/gstreamer.c @@ -178,7 +178,7 @@ int driver_destroy(ca_context *c) { return CA_SUCCESS; } -int driver_change_device(ca_context *c, char *device) { +int driver_change_device(ca_context *c, const char *device) { ca_return_val_if_fail(c, CA_ERROR_INVALID); ca_return_val_if_fail(PRIVATE(c), CA_ERROR_STATE); diff --git a/src/multi.c b/src/multi.c index 298df7d..598b1f2 100644 --- a/src/multi.c +++ b/src/multi.c @@ -197,7 +197,7 @@ int driver_destroy(ca_context *c) { return ret; } -int driver_change_device(ca_context *c, char *device) { +int driver_change_device(ca_context *c, const char *device) { ca_return_val_if_fail(c, CA_ERROR_INVALID); ca_return_val_if_fail(c->private, CA_ERROR_STATE); @@ -41,7 +41,7 @@ int driver_destroy(ca_context *c) { return CA_SUCCESS; } -int driver_change_device(ca_context *c, char *device) { +int driver_change_device(ca_context *c, const char *device) { ca_return_val_if_fail(c, CA_ERROR_INVALID); return CA_SUCCESS; @@ -181,7 +181,7 @@ int driver_destroy(ca_context *c) { return CA_SUCCESS; } -int driver_change_device(ca_context *c, char *device) { +int driver_change_device(ca_context *c, const char *device) { ca_return_val_if_fail(c, CA_ERROR_INVALID); ca_return_val_if_fail(c->private, CA_ERROR_STATE); diff --git a/src/pulse.c b/src/pulse.c index 524ac1e..11d6e52 100644 --- a/src/pulse.c +++ b/src/pulse.c @@ -381,7 +381,7 @@ int driver_destroy(ca_context *c) { return CA_SUCCESS; } -int driver_change_device(ca_context *c, char *device) { +int driver_change_device(ca_context *c, const char *device) { ca_return_val_if_fail(c, CA_ERROR_INVALID); ca_return_val_if_fail(c->private, CA_ERROR_STATE); |