From 31da2a7d3f4244eb888701cab89138234d7c2cb3 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Thu, 7 Jun 2018 04:00:42 +0100 Subject: [PATCH] context: pa_context_rttime_new: constify context pointer --- src/pulse/context.c | 2 +- src/pulse/context.h | 2 +- 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 */