summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/alsa.c2
-rw-r--r--src/driver.h2
-rw-r--r--src/dso.c2
-rw-r--r--src/gstreamer.c2
-rw-r--r--src/multi.c2
-rw-r--r--src/null.c2
-rw-r--r--src/oss.c2
-rw-r--r--src/pulse.c2
8 files changed, 8 insertions, 8 deletions
diff --git a/src/alsa.c b/src/alsa.c
index caddf90..6629b34 100644
--- a/src/alsa.c
+++ b/src/alsa.c
@@ -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);
diff --git a/src/dso.c b/src/dso.c
index c42eff2..4138d0e 100644
--- a/src/dso.c
+++ b/src/dso.c
@@ -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);
diff --git a/src/null.c b/src/null.c
index 683550e..da91e44 100644
--- a/src/null.c
+++ b/src/null.c
@@ -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;
diff --git a/src/oss.c b/src/oss.c
index b45e178..44194eb 100644
--- a/src/oss.c
+++ b/src/oss.c
@@ -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);