diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-06-28 15:59:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-06-30 15:09:19 +0200 |
commit | 9b71e4ab90b4e1cb048f4cd13e0fde6f999cf6e8 (patch) | |
tree | d7af332fd87ca635aeddc552236ab623341d7c96 /src | |
parent | c664cf56071a256121015eda330d471ff166682f (diff) | |
download | systemd-9b71e4ab90b4e1cb048f4cd13e0fde6f999cf6e8.tar.gz |
shared: actually move all BusLocator related calls to bus-locator.c
Diffstat (limited to 'src')
-rw-r--r-- | src/analyze/analyze.c | 2 | ||||
-rw-r--r-- | src/home/homectl.c | 2 | ||||
-rw-r--r-- | src/home/pam_systemd_home.c | 2 | ||||
-rw-r--r-- | src/locale/localectl.c | 2 | ||||
-rw-r--r-- | src/login/loginctl.c | 2 | ||||
-rw-r--r-- | src/login/logind-dbus.c | 1 | ||||
-rw-r--r-- | src/login/logind.c | 2 | ||||
-rw-r--r-- | src/login/pam_systemd.c | 2 | ||||
-rw-r--r-- | src/machine/machine-dbus.c | 2 | ||||
-rw-r--r-- | src/machine/machinectl.c | 2 | ||||
-rw-r--r-- | src/machine/machined-dbus.c | 2 | ||||
-rw-r--r-- | src/machine/machined.c | 2 | ||||
-rw-r--r-- | src/mount/mount-tool.c | 2 | ||||
-rw-r--r-- | src/network/networkctl.c | 4 | ||||
-rw-r--r-- | src/nspawn/nspawn-register.c | 1 | ||||
-rw-r--r-- | src/nss-mymachines/nss-mymachines.c | 2 | ||||
-rw-r--r-- | src/nss-resolve/nss-resolve.c | 2 | ||||
-rw-r--r-- | src/portable/portablectl.c | 2 | ||||
-rw-r--r-- | src/resolve/resolvectl.c | 2 | ||||
-rw-r--r-- | src/run/run.c | 2 | ||||
-rw-r--r-- | src/shared/bus-locator.c | 150 | ||||
-rw-r--r-- | src/shared/bus-locator.h | 21 | ||||
-rw-r--r-- | src/shared/bus-util.c | 150 | ||||
-rw-r--r-- | src/shared/bus-util.h | 16 | ||||
-rw-r--r-- | src/systemctl/systemctl.c | 2 | ||||
-rw-r--r-- | src/timedate/timedatectl.c | 4 | ||||
-rw-r--r-- | src/timedate/timedated.c | 2 |
27 files changed, 193 insertions, 192 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index a8bd993cbe..8911d95c07 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -17,8 +17,8 @@ #include "analyze-verify.h" #include "build.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-unit-util.h" -#include "bus-util.h" #include "calendarspec.h" #include "conf-files.h" #include "copy.h" diff --git a/src/home/homectl.c b/src/home/homectl.c index 118bf63224..47a506f5e0 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -8,7 +8,7 @@ #include "ask-password-api.h" #include "bus-common-errors.h" #include "bus-error.h" -#include "bus-util.h" +#include "bus-locator.h" #include "cgroup-util.h" #include "dns-domain.h" #include "env-util.h" diff --git a/src/home/pam_systemd_home.c b/src/home/pam_systemd_home.c index baa3586bf7..34dfd134fc 100644 --- a/src/home/pam_systemd_home.c +++ b/src/home/pam_systemd_home.c @@ -6,7 +6,7 @@ #include "sd-bus.h" #include "bus-common-errors.h" -#include "bus-util.h" +#include "bus-locator.h" #include "errno-util.h" #include "fd-util.h" #include "home-util.h" diff --git a/src/locale/localectl.c b/src/locale/localectl.c index 96fc09a570..f00f15f3fe 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -8,7 +8,7 @@ #include "sd-bus.h" #include "bus-error.h" -#include "bus-util.h" +#include "bus-locator.h" #include "fd-util.h" #include "fileio.h" #include "kbd-util.h" diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 9216224bfc..85b6e162f1 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -9,8 +9,8 @@ #include "alloc-util.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-unit-procs.h" -#include "bus-util.h" #include "cgroup-show.h" #include "cgroup-util.h" #include "format-table.h" diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 079338fbb5..98e0a6cff7 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -12,6 +12,7 @@ #include "bootspec.h" #include "bus-common-errors.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-polkit.h" #include "bus-unit-util.h" #include "bus-util.h" diff --git a/src/login/logind.c b/src/login/logind.c index 18caae3487..c50a083b03 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -10,9 +10,9 @@ #include "alloc-util.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-log-control-api.h" #include "bus-polkit.h" -#include "bus-util.h" #include "cgroup-util.h" #include "def.h" #include "device-util.h" diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index 7d48e896de..525b2a0393 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -20,7 +20,7 @@ #include "bus-common-errors.h" #include "bus-error.h" #include "bus-internal.h" -#include "bus-util.h" +#include "bus-locator.h" #include "cgroup-setup.h" #include "errno-util.h" #include "fd-util.h" diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c index 903dd8f161..a8f9d28a87 100644 --- a/src/machine/machine-dbus.c +++ b/src/machine/machine-dbus.c @@ -14,8 +14,8 @@ #include "bus-common-errors.h" #include "bus-internal.h" #include "bus-label.h" +#include "bus-locator.h" #include "bus-polkit.h" -#include "bus-util.h" #include "copy.h" #include "env-file.h" #include "env-util.h" diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index d8f4526644..bdb384fe58 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -16,9 +16,9 @@ #include "alloc-util.h" #include "bus-common-errors.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-unit-procs.h" #include "bus-unit-util.h" -#include "bus-util.h" #include "bus-wait-for-jobs.h" #include "cgroup-show.h" #include "cgroup-util.h" diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c index cbc549cb76..9fb8433592 100644 --- a/src/machine/machined-dbus.c +++ b/src/machine/machined-dbus.c @@ -8,8 +8,8 @@ #include "alloc-util.h" #include "btrfs-util.h" #include "bus-common-errors.h" +#include "bus-locator.h" #include "bus-polkit.h" -#include "bus-util.h" #include "cgroup-util.h" #include "errno-util.h" #include "fd-util.h" diff --git a/src/machine/machined.c b/src/machine/machined.c index 015622761c..4645e4ce41 100644 --- a/src/machine/machined.c +++ b/src/machine/machined.c @@ -10,9 +10,9 @@ #include "alloc-util.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-log-control-api.h" #include "bus-polkit.h" -#include "bus-util.h" #include "cgroup-util.h" #include "dirent-util.h" #include "fd-util.h" diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index ea86a6e06a..13f8a37ddf 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -6,8 +6,8 @@ #include "sd-device.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-unit-util.h" -#include "bus-util.h" #include "bus-wait-for-jobs.h" #include "device-util.h" #include "dirent-util.h" diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 8b7cf292fa..3b9da74e43 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -21,10 +21,10 @@ #include "alloc-util.h" #include "bond-util.h" +#include "bridge-util.h" #include "bus-common-errors.h" #include "bus-error.h" -#include "bus-util.h" -#include "bridge-util.h" +#include "bus-locator.h" #include "device-util.h" #include "escape.h" #include "ether-addr-util.h" diff --git a/src/nspawn/nspawn-register.c b/src/nspawn/nspawn-register.c index 64773a3d9c..50867f3843 100644 --- a/src/nspawn/nspawn-register.c +++ b/src/nspawn/nspawn-register.c @@ -3,6 +3,7 @@ #include "sd-bus.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-unit-util.h" #include "bus-util.h" #include "bus-wait-for-jobs.h" diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c index ce51fa8938..9269e7fd7b 100644 --- a/src/nss-mymachines/nss-mymachines.c +++ b/src/nss-mymachines/nss-mymachines.c @@ -8,7 +8,7 @@ #include "alloc-util.h" #include "bus-common-errors.h" -#include "bus-util.h" +#include "bus-locator.h" #include "env-util.h" #include "errno-util.h" #include "format-util.h" diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c index 0ee3ddd843..43ab521635 100644 --- a/src/nss-resolve/nss-resolve.c +++ b/src/nss-resolve/nss-resolve.c @@ -10,7 +10,7 @@ #include "sd-bus.h" #include "bus-common-errors.h" -#include "bus-util.h" +#include "bus-locator.h" #include "errno-util.h" #include "in-addr-util.h" #include "macro.h" diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 01614b6684..46bb0e5437 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -7,8 +7,8 @@ #include "alloc-util.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-unit-util.h" -#include "bus-util.h" #include "bus-wait-for-jobs.h" #include "def.h" #include "dirent-util.h" diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index a80b450bc0..838da9aae9 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -11,7 +11,7 @@ #include "alloc-util.h" #include "bus-common-errors.h" #include "bus-error.h" -#include "bus-util.h" +#include "bus-locator.h" #include "dns-domain.h" #include "escape.h" #include "format-table.h" diff --git a/src/run/run.c b/src/run/run.c index 70a27924b5..80ddd0f521 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -11,8 +11,8 @@ #include "alloc-util.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-unit-util.h" -#include "bus-util.h" #include "bus-wait-for-jobs.h" #include "calendarspec.h" #include "env-util.h" diff --git a/src/shared/bus-locator.c b/src/shared/bus-locator.c index a79699d62d..2a5aa74677 100644 --- a/src/shared/bus-locator.c +++ b/src/shared/bus-locator.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #include "bus-locator.h" +#include "macro.h" const BusLocator* const bus_home_mgr = &(BusLocator){ .destination = "org.freedesktop.home1", @@ -61,3 +62,152 @@ const BusLocator* const bus_timedate = &(BusLocator){ .path = "/org/freedesktop/timedate1", .interface = "org.freedesktop.timedate1" }; + +/* Shorthand flavors of the sd-bus convenience helpers with destination,path,interface strings encapsulated + * within a single struct. */ +int bus_call_method_async( + sd_bus *bus, + sd_bus_slot **slot, + const BusLocator *locator, + const char *member, + sd_bus_message_handler_t callback, + void *userdata, + const char *types, ...) { + + va_list ap; + int r; + + assert(locator); + + va_start(ap, types); + r = sd_bus_call_method_asyncv(bus, slot, locator->destination, locator->path, locator->interface, member, callback, userdata, types, ap); + va_end(ap); + + return r; +} + +int bus_call_method( + sd_bus *bus, + const BusLocator *locator, + const char *member, + sd_bus_error *error, + sd_bus_message **reply, + const char *types, ...) { + + va_list ap; + int r; + + assert(locator); + + va_start(ap, types); + r = sd_bus_call_methodv(bus, locator->destination, locator->path, locator->interface, member, error, reply, types, ap); + va_end(ap); + + return r; +} + +int bus_get_property( + sd_bus *bus, + const BusLocator *locator, + const char *member, + sd_bus_error *error, + sd_bus_message **reply, + const char *type) { + + assert(locator); + + return sd_bus_get_property(bus, locator->destination, locator->path, locator->interface, member, error, reply, type); +} + +int bus_get_property_trivial( + sd_bus *bus, + const BusLocator *locator, + const char *member, + sd_bus_error *error, + char type, void *ptr) { + + assert(locator); + + return sd_bus_get_property_trivial(bus, locator->destination, locator->path, locator->interface, member, error, type, ptr); +} + +int bus_get_property_string( + sd_bus *bus, + const BusLocator *locator, + const char *member, + sd_bus_error *error, + char **ret) { + + assert(locator); + + return sd_bus_get_property_string(bus, locator->destination, locator->path, locator->interface, member, error, ret); +} + +int bus_get_property_strv( + sd_bus *bus, + const BusLocator *locator, + const char *member, + sd_bus_error *error, + char ***ret) { + + assert(locator); + + return sd_bus_get_property_strv(bus, locator->destination, locator->path, locator->interface, member, error, ret); +} + +int bus_set_property( + sd_bus *bus, + const BusLocator *locator, + const char *member, + sd_bus_error *error, + const char *type, ...) { + + va_list ap; + int r; + + assert(locator); + + va_start(ap, type); + r = sd_bus_set_propertyv(bus, locator->destination, locator->path, locator->interface, member, error, type, ap); + va_end(ap); + + return r; +} + +int bus_match_signal( + sd_bus *bus, + sd_bus_slot **ret, + const BusLocator *locator, + const char *member, + sd_bus_message_handler_t callback, + void *userdata) { + + assert(locator); + + return sd_bus_match_signal(bus, ret, locator->destination, locator->path, locator->interface, member, callback, userdata); +} + +int bus_match_signal_async( + sd_bus *bus, + sd_bus_slot **ret, + const BusLocator *locator, + const char *member, + sd_bus_message_handler_t callback, + sd_bus_message_handler_t install_callback, + void *userdata) { + + assert(locator); + + return sd_bus_match_signal_async(bus, ret, locator->destination, locator->path, locator->interface, member, callback, install_callback, userdata); +} + +int bus_message_new_method_call( + sd_bus *bus, + sd_bus_message **m, + const BusLocator *locator, + const char *member) { + + assert(locator); + + return sd_bus_message_new_method_call(bus, m, locator->destination, locator->path, locator->interface, member); +} diff --git a/src/shared/bus-locator.h b/src/shared/bus-locator.h index 91a9aaf63a..2b892360b8 100644 --- a/src/shared/bus-locator.h +++ b/src/shared/bus-locator.h @@ -1,10 +1,12 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #pragma once +#include "sd-bus.h" + typedef struct BusLocator { - const char *destination; - const char *path; - const char *interface; + const char *destination; + const char *path; + const char *interface; } BusLocator; extern const BusLocator* const bus_home_mgr; @@ -17,3 +19,16 @@ extern const BusLocator* const bus_portable_mgr; extern const BusLocator* const bus_resolve_mgr; extern const BusLocator* const bus_systemd_mgr; extern const BusLocator* const bus_timedate; + +/* Shorthand flavors of the sd-bus convenience helpers with destination,path,interface strings encapsulated + * within a single struct. */ +int bus_call_method_async(sd_bus *bus, sd_bus_slot **slot, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, void *userdata, const char *types, ...); +int bus_call_method(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, sd_bus_message **reply, const char *types, ...); +int bus_get_property(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, sd_bus_message **reply, const char *type); +int bus_get_property_trivial(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, char type, void *ptr); +int bus_get_property_string(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, char **ret); +int bus_get_property_strv(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, char ***ret); +int bus_set_property(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, const char *type, ...); +int bus_match_signal(sd_bus *bus, sd_bus_slot **ret, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, void *userdata); +int bus_match_signal_async(sd_bus *bus, sd_bus_slot **ret, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, sd_bus_message_handler_t install_callback, void *userdata); +int bus_message_new_method_call(sd_bus *bus, sd_bus_message **m, const BusLocator *locator, const char *member); diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index a43fe66888..b018a9e527 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1396,153 +1396,3 @@ const struct hash_ops bus_message_hash_ops = { .compare = trivial_compare_func, .free_value = bus_message_unref_wrapper, }; - -/* Shorthand flavors of the sd-bus convenience helpers with destination,path,interface - * strings encapsulated within a single struct. - */ -int bus_call_method_async( - sd_bus *bus, - sd_bus_slot **slot, - const BusLocator *locator, - const char *member, - sd_bus_message_handler_t callback, - void *userdata, - const char *types, ...) { - - va_list ap; - int r; - - assert(locator); - - va_start(ap, types); - r = sd_bus_call_method_asyncv(bus, slot, locator->destination, locator->path, locator->interface, member, callback, userdata, types, ap); - va_end(ap); - - return r; -} - -int bus_call_method( - sd_bus *bus, - const BusLocator *locator, - const char *member, - sd_bus_error *error, - sd_bus_message **reply, - const char *types, ...) { - - va_list ap; - int r; - - assert(locator); - - va_start(ap, types); - r = sd_bus_call_methodv(bus, locator->destination, locator->path, locator->interface, member, error, reply, types, ap); - va_end(ap); - - return r; -} - -int bus_get_property( - sd_bus *bus, - const BusLocator *locator, - const char *member, - sd_bus_error *error, - sd_bus_message **reply, - const char *type) { - - assert(locator); - - return sd_bus_get_property(bus, locator->destination, locator->path, locator->interface, member, error, reply, type); -} - -int bus_get_property_trivial( - sd_bus *bus, - const BusLocator *locator, - const char *member, - sd_bus_error *error, - char type, void *ptr) { - - assert(locator); - - return sd_bus_get_property_trivial(bus, locator->destination, locator->path, locator->interface, member, error, type, ptr); -} - -int bus_get_property_string( - sd_bus *bus, - const BusLocator *locator, - const char *member, - sd_bus_error *error, - char **ret) { - - assert(locator); - - return sd_bus_get_property_string(bus, locator->destination, locator->path, locator->interface, member, error, ret); -} - -int bus_get_property_strv( - sd_bus *bus, - const BusLocator *locator, - const char *member, - sd_bus_error *error, - char ***ret) { - - assert(locator); - - return sd_bus_get_property_strv(bus, locator->destination, locator->path, locator->interface, member, error, ret); -} - -int bus_set_property( - sd_bus *bus, - const BusLocator *locator, - const char *member, - sd_bus_error *error, - const char *type, ...) { - - va_list ap; - int r; - - assert(locator); - - va_start(ap, type); - r = sd_bus_set_propertyv(bus, locator->destination, locator->path, locator->interface, member, error, type, ap); - va_end(ap); - - return r; -} - -int bus_match_signal( - sd_bus *bus, - sd_bus_slot **ret, - const BusLocator *locator, - const char *member, - sd_bus_message_handler_t callback, - void *userdata) { - - assert(locator); - - return sd_bus_match_signal(bus, ret, locator->destination, locator->path, locator->interface, member, callback, userdata); -} - -int bus_match_signal_async( - sd_bus *bus, - sd_bus_slot **ret, - const BusLocator *locator, - const char *member, - sd_bus_message_handler_t callback, - sd_bus_message_handler_t install_callback, - void *userdata) { - - assert(locator); - - return sd_bus_match_signal_async(bus, ret, locator->destination, locator->path, locator->interface, member, callback, install_callback, userdata); -} - -int bus_message_new_method_call( - sd_bus *bus, - sd_bus_message **m, - const BusLocator *locator, - const char *member) { - - assert(locator); - - return sd_bus_message_new_method_call(bus, m, locator->destination, locator->path, locator->interface, member); -} diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index 1d44cd7676..db245a791e 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -9,7 +9,6 @@ #include "sd-bus.h" #include "sd-event.h" -#include "bus-locator.h" #include "macro.h" #include "set.h" #include "string-util.h" @@ -23,7 +22,6 @@ typedef enum BusTransport { _BUS_TRANSPORT_INVALID = -1 } BusTransport; - typedef int (*bus_property_set_t) (sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_error *error, void *userdata); struct bus_properties_map { @@ -181,17 +179,3 @@ static inline int bus_open_system_watch_bind(sd_bus **ret) { int bus_reply_pair_array(sd_bus_message *m, char **l); extern const struct hash_ops bus_message_hash_ops; - -/* Shorthand flavors of the sd-bus convenience helpers with destination,path,interface - * strings encapsulated within a single struct. - */ -int bus_call_method_async(sd_bus *bus, sd_bus_slot **slot, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, void *userdata, const char *types, ...); -int bus_call_method(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, sd_bus_message **reply, const char *types, ...); -int bus_get_property(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, sd_bus_message **reply, const char *type); -int bus_get_property_trivial(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, char type, void *ptr); -int bus_get_property_string(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, char **ret); -int bus_get_property_strv(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, char ***ret); -int bus_set_property(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, const char *type, ...); -int bus_match_signal(sd_bus *bus, sd_bus_slot **ret, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, void *userdata); -int bus_match_signal_async(sd_bus *bus, sd_bus_slot **ret, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, sd_bus_message_handler_t install_callback, void *userdata); -int bus_message_new_method_call(sd_bus *bus, sd_bus_message **m, const BusLocator *locator, const char *member); diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 678982c61c..c937b1e298 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -20,10 +20,10 @@ #include "bootspec.h" #include "bus-common-errors.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-message.h" #include "bus-unit-procs.h" #include "bus-unit-util.h" -#include "bus-util.h" #include "bus-wait-for-jobs.h" #include "bus-wait-for-units.h" #include "cgroup-show.h" diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 285eba802b..97768808b7 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -9,15 +9,15 @@ #include "sd-bus.h" #include "bus-error.h" -#include "bus-util.h" +#include "bus-locator.h" #include "format-table.h" #include "in-addr-util.h" #include "main-func.h" #include "pager.h" #include "parse-util.h" #include "pretty-print.h" -#include "spawn-polkit-agent.h" #include "sparse-endian.h" +#include "spawn-polkit-agent.h" #include "string-table.h" #include "strv.h" #include "terminal-util.h" diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index afe593ff64..8ecd9d5dd3 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -12,9 +12,9 @@ #include "alloc-util.h" #include "bus-common-errors.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-log-control-api.h" #include "bus-polkit.h" -#include "bus-util.h" #include "clock-util.h" #include "conf-files.h" #include "def.h" |