From 796a0d2cfea0a648b0167cda5304737d6a256ffb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 Apr 2023 11:12:13 +0200 Subject: [PATCH] thread-loop: small cleanup Use named fields for the event, prefix function. --- src/pipewire/thread-loop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pipewire/thread-loop.c b/src/pipewire/thread-loop.c index 9e3283ecc..f6240d7d6 100644 --- a/src/pipewire/thread-loop.c +++ b/src/pipewire/thread-loop.c @@ -44,13 +44,13 @@ struct pw_thread_loop { }; /** \endcond */ -static void before(void *data) +static void impl_before(void *data) { struct pw_thread_loop *this = data; pthread_mutex_unlock(&this->lock); } -static void after(void *data) +static void impl_after(void *data) { struct pw_thread_loop *this = data; pthread_mutex_lock(&this->lock); @@ -58,8 +58,8 @@ static void after(void *data) static const struct spa_loop_control_hooks impl_hooks = { SPA_VERSION_LOOP_CONTROL_HOOKS, - before, - after, + .before = impl_before, + .after = impl_after, }; static void do_stop(void *data, uint64_t count)