diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-10 01:30:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-10 01:30:14 +0200 |
commit | 0e456f978134100d2e0cc28c7205b3abefcc9cde (patch) | |
tree | b63684ac36702f88f7fd1ceeaad4021f5f30d04d /src/dbus-path.c | |
parent | bfe95f35bf87c91d63b9d62dde5f029dd38d27a4 (diff) |
path: optionally, create watched directories in .path units
Diffstat (limited to 'src/dbus-path.c')
-rw-r--r-- | src/dbus-path.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dbus-path.c b/src/dbus-path.c index cb1d4f09cb..1e757a3060 100644 --- a/src/dbus-path.c +++ b/src/dbus-path.c @@ -29,6 +29,8 @@ " <interface name=\"org.freedesktop.systemd1.Path\">\n" \ " <property name=\"Unit\" type=\"s\" access=\"read\"/>\n" \ " <property name=\"Paths\" type=\"a(ss)\" access=\"read\"/>\n" \ + " <property name=\"MakeDirectory\" type=\"b\" access=\"read\"/>\n" \ + " <property name=\"DirectoryMode\" type=\"u\" access=\"read\"/>\n" \ " </interface>\n" #define INTROSPECTION \ @@ -93,8 +95,10 @@ static int bus_path_append_unit(Manager *m, DBusMessageIter *i, const char *prop DBusHandlerResult bus_path_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) { const BusProperty properties[] = { BUS_UNIT_PROPERTIES, - { "org.freedesktop.systemd1.Path", "Unit", bus_path_append_unit, "s", u }, - { "org.freedesktop.systemd1.Path", "Paths", bus_path_append_paths, "a(ss)", u }, + { "org.freedesktop.systemd1.Path", "Unit", bus_path_append_unit, "s", u }, + { "org.freedesktop.systemd1.Path", "Paths", bus_path_append_paths, "a(ss)", u }, + { "org.freedesktop.systemd1.Path", "MakeDirectory", bus_property_append_bool, "b", &u->path.make_directory }, + { "org.freedesktop.systemd1.Path", "DirectoryMode", bus_property_append_mode, "u", &u->path.directory_mode }, { NULL, NULL, NULL, NULL, NULL } }; |