From 09bde77fc798fb0f80714b77b958f24a3c2d798e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 4 Mar 2011 18:34:56 +0100 Subject: [PATCH] dbus: expose distribution name and features on manager object as properties --- TODO | 4 ++++ src/dbus-manager.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 14060a51..43ac165b 100644 --- a/TODO +++ b/TODO @@ -16,6 +16,10 @@ F15: Features: +* guarantee /etc/machineid + +* add "tainted" flag to systemctl show output + * introduce "x-systemd-automount" as alternative to the "comment=systemd.automount" mount option * show failure error string in "systemctl status" diff --git a/src/dbus-manager.c b/src/dbus-manager.c index 1b3bddc3..9b6cda8a 100644 --- a/src/dbus-manager.c +++ b/src/dbus-manager.c @@ -26,6 +26,7 @@ #include "dbus-manager.h" #include "strv.h" #include "bus-errors.h" +#include "build.h" #define BUS_MANAGER_INTERFACE_BEGIN \ " \n" @@ -146,9 +147,10 @@ " \n" \ " " - #define BUS_MANAGER_INTERFACE_PROPERTIES_GENERAL \ " \n" \ + " \n" \ + " \n" \ " \n" \ " \n" \ @@ -305,6 +307,8 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, const BusProperty properties[] = { { "org.freedesktop.systemd1.Manager", "Version", bus_property_append_string, "s", PACKAGE_STRING }, + { "org.freedesktop.systemd1.Manager", "Distribution", bus_property_append_string, "s", DISTRIBUTION }, + { "org.freedesktop.systemd1.Manager", "Features", bus_property_append_string, "s", SYSTEMD_FEATURES }, { "org.freedesktop.systemd1.Manager", "RunningAs", bus_manager_append_running_as, "s", &m->running_as }, { "org.freedesktop.systemd1.Manager", "InitRDTimestamp", bus_property_append_uint64, "t", &m->initrd_timestamp.realtime }, { "org.freedesktop.systemd1.Manager", "StartupTimestamp", bus_property_append_uint64, "t", &m->startup_timestamp.realtime }, -- 2.39.5