]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-locator: declare bus locator for oom1 and timesync1
authorDavid Tardon <dtardon@redhat.com>
Wed, 24 May 2023 06:38:53 +0000 (08:38 +0200)
committerDavid Tardon <dtardon@redhat.com>
Wed, 24 May 2023 06:50:02 +0000 (08:50 +0200)
src/shared/bus-locator.c
src/shared/bus-locator.h

index 5b9a6dbc438f681e5e817b361a8487206939ed88..ff7a872bdb3310a6ccade423f97c8e7736c26520 100644 (file)
@@ -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",
index 9662c906e18d72fba31952cd138ff30d4b3fdb6a..aa155b770b17a29919535d8af46e6fb5affa70fe 100644 (file)
@@ -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