context: pa_context_rttime_new: constify context pointer
authorLyndon Brown <jnqnfe@gmail.com>
Thu, 7 Jun 2018 03:00:42 +0000 (04:00 +0100)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 21 Jun 2018 01:00:25 +0000 (06:30 +0530)
src/pulse/context.c
src/pulse/context.h

index 1f32421..c585097 100644 (file)
@@ -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);
index 37333fc..665e9f8 100644 (file)
@@ -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 */