diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-05-30 16:29:33 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 5e6f361df2ee37bf2ce8f71177d7aef175f11113 (patch) | |
tree | 274d35d578eaa4d81b11c35687b040502d5f33a9 /src/systemd | |
parent | a34becc09a6ec529c2067cd578ec01810b915052 (diff) |
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.
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-bus.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |