From 5e6f361df2ee37bf2ce8f71177d7aef175f11113 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 30 May 2018 16:29:33 +0200 Subject: sd-bus: add new sd_bus_slot_set_floating() call This new call allows explicit control of the "floating" state of a bus slot object. This is useful for creating a bus slot object first, retaining a reference to it, using it for making changes to the slot object (for example, set a description) and then handing it over to sd-bus for lifecycle management. It's also useful to fix #8551. --- src/systemd/sd-bus.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/systemd') diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index 9a6e86278..cf38e4c63 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -228,6 +228,8 @@ void *sd_bus_slot_get_userdata(sd_bus_slot *slot); void *sd_bus_slot_set_userdata(sd_bus_slot *slot, void *userdata); int sd_bus_slot_set_description(sd_bus_slot *slot, const char *description); int sd_bus_slot_get_description(sd_bus_slot *slot, const char **description); +int sd_bus_slot_get_floating(sd_bus_slot *slot); +int sd_bus_slot_set_floating(sd_bus_slot *slot, int b); sd_bus_message* sd_bus_slot_get_current_message(sd_bus_slot *slot); sd_bus_message_handler_t sd_bus_slot_get_current_handler(sd_bus_slot *bus); -- cgit v1.2.3