Systemd/src/systemd
Nathaniel McCallum 45b1f410ba Add support for SD_BUS_DEFAULT*
Currently, sd-bus supports the ability to have thread-local default busses.
However, this is less useful than it can be since all functions which
require an sd_bus* as input require the caller to pass it. This patch adds
a new macro which allows the developer to pass a constant SD_BUS_DEFAULT,
SD_BUS_DEFAULT_USER or SD_BUS_DEFAULT_SYSTEM instead. This reduces work for
the caller.

For example:

    r = sd_bus_default(&bus);
    r = sd_bus_call_method(bus, ...);
    sd_bus_unref(bus);

Becomes:

    r = sd_bus_call_method(SD_BUS_DEFAULT, ...);

If the specified thread-local default bus does not exist, the function
calls will return -ENOPKG. No bus will ever be implicitly created.
2018-01-23 09:40:25 -05:00
..
_sd-common.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01: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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-bus.h Add support for SD_BUS_DEFAULT* 2018-01-23 09:40:25 -05: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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01: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 Add support for SD_EVENT_DEFAULT 2018-01-23 09:40:25 -05: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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-radv.h radv: Add function to remove prefixes 2018-01-04 15:22:44 +02:00
sd-resolve.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-utf8.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00