Systemd/src/systemd
Zbigniew Jędrzejewski-Szmek fa17b4e8d9 bus: optionally call a callbacks for cleanup
This adds a function sd_bus_slot_set_destroy_callback() to set a function
which can free userdata or perform other cleanups.

sd_bus_slot_get_destory_callback() queries the callback, and is included
for completeness.

Without something like this, for floating asynchronous callbacks, which might
be called or not, depending on the sequence of events, it's hard to perform
resource cleanup. The alternative would be to always perform the cleanup from
the caller too, but that requires more coordination and keeping of some shared
state. It's nicer to keep the cleanup contained between the callback and the
function that requests the callback.
2018-06-06 23:01:57 +02:00
..
_sd-common.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
meson.build meson: test out headers with more standard versions 2018-05-28 14:16:37 +02:00
sd-bus-protocol.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-bus-vtable.h ISO-C compatibility: Remove empty initializer (#8713) 2018-04-12 21:31:19 +02:00
sd-bus.h bus: optionally call a callbacks for cleanup 2018-06-06 23:01:57 +02:00
sd-daemon.h core: add a new sd_notify() message for removing fds from the FD store again 2017-11-27 17:04:04 +01:00
sd-device.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-dhcp-client.h networkd: add support to send DHCP user class option (#7499) 2018-05-07 14:21:02 +02:00
sd-dhcp-lease.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-dhcp-server.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-dhcp6-client.h dhcp6: Add functionality to request DHCPv6 IA PD 2018-01-04 15:22:44 +02:00
sd-dhcp6-lease.h dhcp6: Add function to iterate and fetch delegated prefixes 2018-01-04 15:22:44 +02:00
sd-event.h sd-event: add new API for subscribing to inotify events 2018-06-06 10:53:56 +02:00
sd-hwdb.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-id128.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-ipv4acd.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-ipv4ll.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-journal.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-lldp.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-login.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-messages.h Make taint message structured and add catalog entry 2017-12-14 22:14:38 +01:00
sd-ndisc.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-netlink.h networkd: add support for wireguard interface type 2018-01-09 14:00:49 +01:00
sd-network.h Add a "RequiredForOnline=" Link attribute for .network files (#7347) 2017-11-30 18:03:50 +01:00
sd-path.h systemd-path: allow the default search path to be queried 2018-04-16 16:09:46 +02:00
sd-radv.h radv: Add function to remove prefixes 2018-01-04 15:22:44 +02:00
sd-resolve.h sd-resolve: remove misleading casts 2018-05-22 10:09:55 +02:00
sd-utf8.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00