[pulseaudio-commits] 6 commits - src/pulse

Tanu Kaskinen tanuk at kemper.freedesktop.org
Tue Jun 26 08:54:04 UTC 2018


 src/pulse/context.c |   12 ++++++------
 src/pulse/context.h |   12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 4e3a080d7699732be9c522be9a96d851f97fbf11
Author: Lyndon Brown <jnqnfe at gmail.com>
Date:   Thu Jun 7 04:03:45 2018 +0100

    context: pa_context_get_tile_size: constify

diff --git a/src/pulse/context.c b/src/pulse/context.c
index a5d07ed9..180e6875 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1621,7 +1621,7 @@ void pa_context_rttime_restart(const pa_context *c, pa_time_event *e, pa_usec_t
     }
 }
 
-size_t pa_context_get_tile_size(pa_context *c, const pa_sample_spec *ss) {
+size_t pa_context_get_tile_size(const pa_context *c, const pa_sample_spec *ss) {
     size_t fs, mbs;
 
     pa_assert(c);
diff --git a/src/pulse/context.h b/src/pulse/context.h
index dd90c21e..38656f8a 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -280,7 +280,7 @@ void pa_context_rttime_restart(const pa_context *c, pa_time_event *e, pa_usec_t
  * supposed to be used in a construct such as
  * pa_context_get_tile_size(pa_stream_get_context(s),
  * pa_stream_get_sample_spec(ss)); \since 0.9.20 */
-size_t pa_context_get_tile_size(pa_context *c, const pa_sample_spec *ss);
+size_t pa_context_get_tile_size(const pa_context *c, const pa_sample_spec *ss);
 
 /** Load the authentication cookie from a file. This function is primarily
  * meant for PulseAudio's own tunnel modules, which need to load the cookie

commit 351731c6972358ff7979c14cc61566856b7959f3
Author: Lyndon Brown <jnqnfe at gmail.com>
Date:   Thu Jun 7 03:56:51 2018 +0100

    context: pa_context_get_index: constify

diff --git a/src/pulse/context.c b/src/pulse/context.c
index 3f7e6534..a5d07ed9 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1361,7 +1361,7 @@ pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *ta
     return t;
 }
 
-uint32_t pa_context_get_index(pa_context *c) {
+uint32_t pa_context_get_index(const pa_context *c) {
     pa_assert(c);
     pa_assert(PA_REFCNT_VALUE(c) >= 1);
 
diff --git a/src/pulse/context.h b/src/pulse/context.h
index 7298a087..dd90c21e 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -256,7 +256,7 @@ pa_operation *pa_context_proplist_remove(pa_context *c, const char *const keys[]
  * identified in the server with. This is useful for usage with the
  * introspection functions, such as pa_context_get_client_info().
  * Returns PA_INVALID_INDEX on error. \since 0.9.11 */
-uint32_t pa_context_get_index(pa_context *s);
+uint32_t pa_context_get_index(const pa_context *s);
 
 /** Create a new timer event source for the specified time (wrapper
  * for mainloop->time_new). \since 0.9.16 */

commit b88a219f32d2c1cfe6a0287eee4f16bd430611ea
Author: Lyndon Brown <jnqnfe at gmail.com>
Date:   Thu Jun 7 03:56:16 2018 +0100

    context: pa_context_get_server_protocol_version: constify

diff --git a/src/pulse/context.c b/src/pulse/context.c
index 96193bdf..3f7e6534 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1338,7 +1338,7 @@ uint32_t pa_context_get_protocol_version(const pa_context *c) {
     return PA_PROTOCOL_VERSION;
 }
 
-uint32_t pa_context_get_server_protocol_version(pa_context *c) {
+uint32_t pa_context_get_server_protocol_version(const pa_context *c) {
     pa_assert(c);
     pa_assert(PA_REFCNT_VALUE(c) >= 1);
 
diff --git a/src/pulse/context.h b/src/pulse/context.h
index 1197a2ec..7298a087 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -240,7 +240,7 @@ uint32_t pa_context_get_protocol_version(const pa_context *c);
 
 /** Return the protocol version of the connected server.
  * Returns PA_INVALID_INDEX on error. */
-uint32_t pa_context_get_server_protocol_version(pa_context *c);
+uint32_t pa_context_get_server_protocol_version(const pa_context *c);
 
 /** Update the property list of the client, adding new entries. Please
  * note that it is highly recommended to set as many properties

commit b4b37a0e6634693714f35baaefa2faa61a6b91ec
Author: Lyndon Brown <jnqnfe at gmail.com>
Date:   Thu Jun 7 03:55:42 2018 +0100

    context: pa_context_get_server: constify

diff --git a/src/pulse/context.c b/src/pulse/context.c
index 86738ed4..96193bdf 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1319,7 +1319,7 @@ const char* pa_get_library_version(void) {
     return pa_get_headers_version();
 }
 
-const char* pa_context_get_server(pa_context *c) {
+const char* pa_context_get_server(const pa_context *c) {
     pa_assert(c);
     pa_assert(PA_REFCNT_VALUE(c) >= 1);
 
diff --git a/src/pulse/context.h b/src/pulse/context.h
index 4bf18727..1197a2ec 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -233,7 +233,7 @@ int pa_context_is_local(const pa_context *c);
 pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata);
 
 /** Return the server name this context is connected to. */
-const char* pa_context_get_server(pa_context *c);
+const char* pa_context_get_server(const pa_context *c);
 
 /** Return the protocol version of the library. */
 uint32_t pa_context_get_protocol_version(const pa_context *c);

commit 792c2f0d7b40cd88ee99163dc86d0907c50e8036
Author: Lyndon Brown <jnqnfe at gmail.com>
Date:   Thu Jun 7 03:53:45 2018 +0100

    context: pa_context_is_local: constify

diff --git a/src/pulse/context.c b/src/pulse/context.c
index 7cf96f96..86738ed4 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1275,7 +1275,7 @@ pa_operation* pa_context_set_default_source(pa_context *c, const char *name, pa_
     return o;
 }
 
-int pa_context_is_local(pa_context *c) {
+int pa_context_is_local(const pa_context *c) {
     pa_assert(c);
     pa_assert(PA_REFCNT_VALUE(c) >= 1);
 
diff --git a/src/pulse/context.h b/src/pulse/context.h
index e6e10096..4bf18727 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -227,7 +227,7 @@ pa_operation* pa_context_set_default_sink(pa_context *c, const char *name, pa_co
 pa_operation* pa_context_set_default_source(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata);
 
 /** Returns 1 when the connection is to a local daemon. Returns negative when no connection has been made yet. */
-int pa_context_is_local(pa_context *c);
+int pa_context_is_local(const pa_context *c);
 
 /** Set a different application name for context on the server. */
 pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata);

commit 3b1ecb720da4632575ed24f07847b1de831a3814
Author: Lyndon Brown <jnqnfe at gmail.com>
Date:   Thu Jun 7 03:52:50 2018 +0100

    context: pa_context_is_pending: constify

diff --git a/src/pulse/context.c b/src/pulse/context.c
index 37f81e9a..7cf96f96 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1106,7 +1106,7 @@ void pa_context_set_event_callback(pa_context *c, pa_context_event_cb_t cb, void
     c->event_userdata = userdata;
 }
 
-int pa_context_is_pending(pa_context *c) {
+int pa_context_is_pending(const pa_context *c) {
     pa_assert(c);
     pa_assert(PA_REFCNT_VALUE(c) >= 1);
 
diff --git a/src/pulse/context.h b/src/pulse/context.h
index cc96f419..e6e10096 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -193,7 +193,7 @@ void pa_context_set_event_callback(pa_context *p, pa_context_event_cb_t cb, void
 int pa_context_errno(const pa_context *c);
 
 /** Return non-zero if some data is pending to be written to the connection */
-int pa_context_is_pending(pa_context *c);
+int pa_context_is_pending(const pa_context *c);
 
 /** Return the current context status */
 pa_context_state_t pa_context_get_state(const pa_context *c);



More information about the pulseaudio-commits mailing list