diff options
Diffstat (limited to 'src/libsystemd-bus/bus-util.h')
-rw-r--r-- | src/libsystemd-bus/bus-util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-util.h b/src/libsystemd-bus/bus-util.h index 9a90c2a1e0..51e1613c17 100644 --- a/src/libsystemd-bus/bus-util.h +++ b/src/libsystemd-bus/bus-util.h @@ -54,7 +54,9 @@ int bus_map_all_properties(sd_bus *bus, int bus_async_unregister_and_exit(sd_event *e, sd_bus *bus, const char *name); -int bus_event_loop_with_idle(sd_event *e, sd_bus *bus, const char *name, usec_t timeout); +typedef bool (*check_idle_t)(void *userdata); + +int bus_event_loop_with_idle(sd_event *e, sd_bus *bus, const char *name, usec_t timeout, check_idle_t check_idle, void *userdata); int bus_name_has_owner(sd_bus *c, const char *name, sd_bus_error *error); |