[pulseaudio-commits] Branch 'next' - 2 commits - src/pulse
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Fri Jun 15 11:22:02 UTC 2018
src/pulse/context.c | 4 ++--
src/pulse/context.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 1d0310c5f4a57cdcd6b7152dc63c856cfecb3bf7
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Thu Jun 7 04:02:16 2018 +0100
context: pa_context_rttime_restart: constify context pointer
diff --git a/src/pulse/context.c b/src/pulse/context.c
index c5850979..dc59ed2d 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1606,7 +1606,7 @@ pa_time_event* pa_context_rttime_new(const pa_context *c, pa_usec_t usec, pa_tim
return c->mainloop->time_new(c->mainloop, &tv, cb, userdata);
}
-void pa_context_rttime_restart(pa_context *c, pa_time_event *e, pa_usec_t usec) {
+void pa_context_rttime_restart(const pa_context *c, pa_time_event *e, pa_usec_t usec) {
struct timeval tv;
pa_assert(c);
diff --git a/src/pulse/context.h b/src/pulse/context.h
index 665e9f83..cc96f419 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -264,7 +264,7 @@ pa_time_event* pa_context_rttime_new(const pa_context *c, pa_usec_t usec, pa_tim
/** Restart a running or expired timer event source (wrapper for
* mainloop->time_restart). \since 0.9.16 */
-void pa_context_rttime_restart(pa_context *c, pa_time_event *e, pa_usec_t usec);
+void pa_context_rttime_restart(const pa_context *c, pa_time_event *e, pa_usec_t usec);
/** Return the optimal block size for passing around audio buffers. It
* is recommended to allocate buffers of the size returned here when
commit f502bb7cd0e9b89981e597ff1695d4ac25838a27
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Thu Jun 7 04:00:42 2018 +0100
context: pa_context_rttime_new: constify context pointer
diff --git a/src/pulse/context.c b/src/pulse/context.c
index 1f32421b..c5850979 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 37333fca..665e9f83 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 */
More information about the pulseaudio-commits
mailing list