[pulseaudio-commits] src/pulse
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Fri Jun 29 13:05:49 UTC 2018
src/pulse/internal.h | 2 +-
src/pulse/mainloop.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7cb2e4ad3d5ebaa08330990304f232f009300017
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Wed Jun 27 04:55:13 2018 +0100
mainloop: constify is_our_api api ref
diff --git a/src/pulse/internal.h b/src/pulse/internal.h
index ec74f41b..a10b47de 100644
--- a/src/pulse/internal.h
+++ b/src/pulse/internal.h
@@ -318,6 +318,6 @@ void pa_ext_device_manager_command(pa_context *c, uint32_t tag, pa_tagstruct *t)
void pa_ext_device_restore_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
void pa_ext_stream_restore_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
-bool pa_mainloop_is_our_api(pa_mainloop_api*m);
+bool pa_mainloop_is_our_api(const pa_mainloop_api*m);
#endif
diff --git a/src/pulse/mainloop.c b/src/pulse/mainloop.c
index 7d6a99c9..03d72484 100644
--- a/src/pulse/mainloop.c
+++ b/src/pulse/mainloop.c
@@ -971,7 +971,7 @@ void pa_mainloop_set_poll_func(pa_mainloop *m, pa_poll_func poll_func, void *use
m->poll_func_userdata = userdata;
}
-bool pa_mainloop_is_our_api(pa_mainloop_api *m) {
+bool pa_mainloop_is_our_api(const pa_mainloop_api *m) {
pa_assert(m);
return m->io_new == mainloop_io_new;
More information about the pulseaudio-commits
mailing list