summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2018-05-27 05:51:30 +0100
committerTanu Kaskinen <tanuk@iki.fi>2018-06-12 10:43:54 +0300
commit4f94219eb85fb63c1daafe4340ae5366055ab504 (patch)
treea07aef73daf517b055697a7136e2da35947ac7b6
parente366a8fb50e224b38fef8f577012afb35eca453f (diff)
downloadpulseaudio-4f94219eb85fb63c1daafe4340ae5366055ab504.tar.gz
stream: pa_stream_get_device_[index|name]: constify
-rw-r--r--src/pulse/stream.c4
-rw-r--r--src/pulse/stream.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index bb2115ac3..52b10cd44 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -2714,7 +2714,7 @@ pa_operation* pa_stream_set_buffer_attr(pa_stream *s, const pa_buffer_attr *attr
return o;
}
-uint32_t pa_stream_get_device_index(pa_stream *s) {
+uint32_t pa_stream_get_device_index(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
@@ -2727,7 +2727,7 @@ uint32_t pa_stream_get_device_index(pa_stream *s) {
return s->device_index;
}
-const char *pa_stream_get_device_name(pa_stream *s) {
+const char *pa_stream_get_device_name(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 63289141b..08adc9937 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -363,7 +363,7 @@ uint32_t pa_stream_get_index(const pa_stream *s);
* it is recommended to use pa_stream_set_moved_callback() to be notified
* about this. This function will return with PA_INVALID_INDEX on failure,
* including the being server older than 0.9.8. \since 0.9.8 */
-uint32_t pa_stream_get_device_index(pa_stream *s);
+uint32_t pa_stream_get_device_index(const pa_stream *s);
/** Return the name of the sink or source this stream is connected to
* in the server. This is useful with the introspection
@@ -374,7 +374,7 @@ uint32_t pa_stream_get_device_index(pa_stream *s);
* it is recommended to use pa_stream_set_moved_callback() to be notified
* about this. This function will fail when the server is older than
* 0.9.8. \since 0.9.8 */
-const char *pa_stream_get_device_name(pa_stream *s);
+const char *pa_stream_get_device_name(const pa_stream *s);
/** Return 1 if the sink or source this stream is connected to has
* been suspended. This will return 0 if not, and a negative value on