summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2018-06-07 04:00:42 +0100
committerTanu Kaskinen <tanuk@iki.fi>2018-06-15 14:17:21 +0300
commitf502bb7cd0e9b89981e597ff1695d4ac25838a27 (patch)
tree37eb1483325578d31530df0520c43a0d3f16c2b3
parent62cd37548c57ac4acfb07521fb602b39ab4a8aea (diff)
downloadpulseaudio-f502bb7cd0e9b89981e597ff1695d4ac25838a27.tar.gz
context: pa_context_rttime_new: constify context pointer
-rw-r--r--src/pulse/context.c2
-rw-r--r--src/pulse/context.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c
index 1f32421b8..c5850979b 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1591,7 +1591,7 @@ finish:
pa_proplist_free(pl);
}
-pa_time_event* pa_context_rttime_new(pa_context *c, pa_usec_t usec, pa_time_event_cb_t cb, void *userdata) {
+pa_time_event* pa_context_rttime_new(const pa_context *c, pa_usec_t usec, pa_time_event_cb_t cb, void *userdata) {
struct timeval tv;
pa_assert(c);
diff --git a/src/pulse/context.h b/src/pulse/context.h
index 37333fca7..665e9f835 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -260,7 +260,7 @@ uint32_t pa_context_get_index(pa_context *s);
/** Create a new timer event source for the specified time (wrapper
* for mainloop->time_new). \since 0.9.16 */
-pa_time_event* pa_context_rttime_new(pa_context *c, pa_usec_t usec, pa_time_event_cb_t cb, void *userdata);
+pa_time_event* pa_context_rttime_new(const pa_context *c, pa_usec_t usec, pa_time_event_cb_t cb, void *userdata);
/** Restart a running or expired timer event source (wrapper for
* mainloop->time_restart). \since 0.9.16 */