bus-locator: declare bus locator for oom1 and timesync1

This commit is contained in:
David Tardon
2023-05-24 08:38:53 +02:00
parent d14bd34f25
commit 1925011748
2 changed files with 14 additions and 0 deletions

View 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",

View 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