static void source_dispatch(void *data) { struct source_ctx *s = data; sd_event_dispatch(s->event); }
static gboolean event_dispatch(GSource *source, GSourceFunc callback, gpointer user_data) { return sd_event_dispatch(((SDEventSource *)source)->event) > 0; }