mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
context: pa_context_is_local: constify
This commit is contained in:
parent
3b1ecb720d
commit
792c2f0d7b
2 changed files with 2 additions and 2 deletions
|
|
@ -1275,7 +1275,7 @@ pa_operation* pa_context_set_default_source(pa_context *c, const char *name, pa_
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
int pa_context_is_local(pa_context *c) {
|
int pa_context_is_local(const pa_context *c) {
|
||||||
pa_assert(c);
|
pa_assert(c);
|
||||||
pa_assert(PA_REFCNT_VALUE(c) >= 1);
|
pa_assert(PA_REFCNT_VALUE(c) >= 1);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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. */
|
/** 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. */
|
/** 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);
|
pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue