summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2018-05-27 05:54:02 +0100
committerTanu Kaskinen <tanuk@iki.fi>2018-06-12 10:47:02 +0300
commit029d935137030bb577e70b98adaff4074e3af7b9 (patch)
tree7bc0bee62b1fe54db46b3315d068ef87e409af49
parent4f94219eb85fb63c1daafe4340ae5366055ab504 (diff)
downloadpulseaudio-029d935137030bb577e70b98adaff4074e3af7b9.tar.gz
stream: pa_stream_is_[suspended|corked]: 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 52b10cd44..e32dd0084 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -2740,7 +2740,7 @@ const char *pa_stream_get_device_name(const pa_stream *s) {
return s->device_name;
}
-int pa_stream_is_suspended(pa_stream *s) {
+int pa_stream_is_suspended(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
@@ -2752,7 +2752,7 @@ int pa_stream_is_suspended(pa_stream *s) {
return s->suspended;
}
-int pa_stream_is_corked(pa_stream *s) {
+int pa_stream_is_corked(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 08adc9937..89a8924c4 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -380,11 +380,11 @@ const char *pa_stream_get_device_name(const pa_stream *s);
* been suspended. This will return 0 if not, and a negative value on
* error. This function will return with -PA_ERR_NOTSUPPORTED when the
* server is older than 0.9.8. \since 0.9.8 */
-int pa_stream_is_suspended(pa_stream *s);
+int pa_stream_is_suspended(const pa_stream *s);
/** Return 1 if the this stream has been corked. This will return 0 if
* not, and a negative value on error. \since 0.9.11 */
-int pa_stream_is_corked(pa_stream *s);
+int pa_stream_is_corked(const pa_stream *s);
/** Connect the stream to a sink. It is strongly recommended to pass
* NULL in both \a dev and \a volume and to set neither