From: David Tardon Date: Wed, 24 May 2023 06:38:53 +0000 (+0200) Subject: bus-locator: declare bus locator for oom1 and timesync1 X-Git-Tag: v254-rc1~397^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1925011748844b3e9e5dd49cf92afb85133043ab;p=thirdparty%2Fsystemd.git bus-locator: declare bus locator for oom1 and timesync1 --- diff --git a/src/shared/bus-locator.c b/src/shared/bus-locator.c index 5b9a6dbc438..ff7a872bdb3 100644 --- a/src/shared/bus-locator.c +++ b/src/shared/bus-locator.c @@ -39,6 +39,12 @@ const BusLocator* const bus_network_mgr = &(BusLocator){ .interface = "org.freedesktop.network1.Manager" }; +const BusLocator* const bus_oom_mgr = &(BusLocator){ + .destination = "org.freedesktop.oom1", + .path = "/org/freedesktop/oom1", + .interface = "org.freedesktop.oom1.Manager" +}; + const BusLocator* const bus_portable_mgr = &(BusLocator){ .destination = "org.freedesktop.portable1", .path = "/org/freedesktop/portable1", @@ -63,6 +69,12 @@ const BusLocator* const bus_timedate = &(BusLocator){ .interface = "org.freedesktop.timedate1" }; +const BusLocator* const bus_timesync_mgr = &(BusLocator){ + .destination = "org.freedesktop.timesync1", + .path = "/org/freedesktop/timesync1", + .interface = "org.freedesktop.timesync1.Manager" +}; + const BusLocator* const bus_hostname = &(BusLocator){ .destination = "org.freedesktop.hostname1", .path = "/org/freedesktop/hostname1", diff --git a/src/shared/bus-locator.h b/src/shared/bus-locator.h index 9662c906e18..aa155b770b1 100644 --- a/src/shared/bus-locator.h +++ b/src/shared/bus-locator.h @@ -15,10 +15,12 @@ extern const BusLocator* const bus_locale; extern const BusLocator* const bus_login_mgr; extern const BusLocator* const bus_machine_mgr; extern const BusLocator* const bus_network_mgr; +extern const BusLocator* const bus_oom_mgr; 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; +extern const BusLocator* const bus_timesync_mgr; extern const BusLocator* const bus_hostname; /* Shorthand flavors of the sd-bus convenience helpers with destination,path,interface strings encapsulated