summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-19 16:19:06 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-19 16:25:11 +0100
commit6af00e06e4e9efacc5a9941eb3b9fffa1c816ee6 (patch)
treef8b8f0b2ae24a1119660cda6bb9a9de346b33869 /src
parent7bf2f4397255bc8f6cf20a0f2adab4c984ea7d14 (diff)
core: expose missing busname properties on the bus
Diffstat (limited to 'src')
-rw-r--r--src/core/busname.h4
-rw-r--r--src/core/dbus-busname.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/busname.h b/src/core/busname.h
index 0009c6a65e..ab3082bb05 100644
--- a/src/core/busname.h
+++ b/src/core/busname.h
@@ -49,7 +49,9 @@ struct BusName {
char *name;
int starter_fd;
+
bool activating;
+ bool accept_fd;
UnitRef service;
@@ -58,8 +60,6 @@ struct BusName {
sd_event_source *event_source;
- bool accept_fd;
-
LIST_HEAD(BusNamePolicy, policy);
};
diff --git a/src/core/dbus-busname.c b/src/core/dbus-busname.c
index 854491b2ee..5dd3a5e1ec 100644
--- a/src/core/dbus-busname.c
+++ b/src/core/dbus-busname.c
@@ -31,5 +31,7 @@ const sd_bus_vtable bus_busname_vtable[] = {
SD_BUS_VTABLE_START(0),
SD_BUS_PROPERTY("Name", "s", NULL, offsetof(BusName, name), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(BusName, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
+ SD_BUS_PROPERTY("Activating", "b", bus_property_get_bool, offsetof(BusName, activating), SD_BUS_VTABLE_PROPERTY_CONST),
+ SD_BUS_PROPERTY("AcceptFileDescriptors", "b", bus_property_get_bool, offsetof(BusName, accept_fd), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_VTABLE_END
};