stream: pa_stream_is_[suspended|corked]: constify
authorLyndon Brown <jnqnfe@gmail.com>
Sun, 27 May 2018 04:54:02 +0000 (05:54 +0100)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 21 Jun 2018 01:00:25 +0000 (06:30 +0530)
src/pulse/stream.c
src/pulse/stream.h

index 52b10cd..e32dd00 100644 (file)
@@ -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);
 
index 08adc99..89a8924 100644 (file)
@@ -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