summaryrefslogtreecommitdiff
path: root/src/pulse/internal.h
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2018-06-18 11:13:40 +0300
committerTanu Kaskinen <tanuk@iki.fi>2018-06-26 11:32:51 +0300
commite7c88ee169e07d23d6a70214dc4ef5e65db46ea3 (patch)
treef2999fd8622de914d42c018d05f2b67b9966fd9c /src/pulse/internal.h
parentd251665f223ccb9f51b81db0140fbd807413bef2 (diff)
downloadpulseaudio-e7c88ee169e07d23d6a70214dc4ef5e65db46ea3.tar.gz
context: constify pa_context_set_error()
This allows constifying public API functions that report their errors via the context error but don't modify the context in any other way. Philosophical arguments could be made why this is wrong, but I believe in practice this is a net positive change.
Diffstat (limited to 'src/pulse/internal.h')
-rw-r--r--src/pulse/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/internal.h b/src/pulse/internal.h
index 04f35e9a3..ec74f41b2 100644
--- a/src/pulse/internal.h
+++ b/src/pulse/internal.h
@@ -274,7 +274,7 @@ void pa_context_simple_ack_callback(pa_pdispatch *pd, uint32_t command, uint32_t
void pa_stream_simple_ack_callback(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
void pa_context_fail(pa_context *c, int error);
-int pa_context_set_error(pa_context *c, int error);
+int pa_context_set_error(const pa_context *c, int error);
void pa_context_set_state(pa_context *c, pa_context_state_t st);
int pa_context_handle_error(pa_context *c, uint32_t command, pa_tagstruct *t, bool fail);
pa_operation* pa_context_send_simple_command(pa_context *c, uint32_t command, void (*internal_callback)(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata), void (*cb)(void), void *userdata);