aboutsummaryrefslogtreecommitdiff
path: root/poller-pa.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-07 14:45:56 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-07 14:45:56 +0100
commit67bd22c154ccc6d32ebc0d9adcb16b4ebb33e452 (patch)
tree663b71521e8ecffde59306c5ff4f638884d19502 /poller-pa.c
parent931ae4f82f5e1f5e6405f2a44018c36a1489f930 (diff)
downloaddesktop-tools-67bd22c154ccc6d32ebc0d9adcb16b4ebb33e452.tar.gz
desktop-tools-67bd22c154ccc6d32ebc0d9adcb16b4ebb33e452.tar.xz
desktop-tools-67bd22c154ccc6d32ebc0d9adcb16b4ebb33e452.zip
poller-pa.c: abandon the idea of quitting the loop
There are no users of this API in practice, and it prevents making the libpulse dependency optional.
Diffstat (limited to 'poller-pa.c')
-rw-r--r--poller-pa.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/poller-pa.c b/poller-pa.c
index 24d70a4..3f59c1b 100644
--- a/poller-pa.c
+++ b/poller-pa.c
@@ -59,9 +59,6 @@ struct pa_defer_event
struct poller_pa
{
struct poller *poller; ///< The underlying event loop
- int result; ///< Result on quit
- bool running; ///< Not quitting
-
pa_io_event *io_list; ///< I/O events
pa_time_event *time_list; ///< Timer events
pa_defer_event *defer_list; ///< Deferred events
@@ -293,9 +290,11 @@ poller_pa_defer_set_destroy (pa_defer_event *self,
static void
poller_pa_quit (pa_mainloop_api *api, int retval)
{
- struct poller_pa *data = api->userdata;
- data->result = retval;
- data->running = false;
+ (void) api;
+ (void) retval;
+
+ // This is not called from within libpulse
+ hard_assert (!"quitting the libpulse event loop is unimplemented");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -347,15 +346,3 @@ poller_pa_destroy (struct pa_mainloop_api *api)
free (data);
free (api);
}
-
-/// Since our poller API doesn't care much about continuous operation,
-/// we need to provide that in the PulseAudio abstraction itself
-static int
-poller_pa_run (struct pa_mainloop_api *api)
-{
- struct poller_pa *data = api->userdata;
- data->running = true;
- while (data->running)
- poller_run (data->poller);
- return data->result;
-}