summaryrefslogtreecommitdiff
path: root/src/dbus-common.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-21 01:47:53 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-21 01:47:53 +0100
commitaa001cd699a62a5a7a9b8a86c403bfe35fb73aa4 (patch)
tree9d821287e27813b9a84452e92a3c3087fd06b4d4 /src/dbus-common.c
parentc7eb4b85c3fad15a6b4d19a9ef084813812db0bb (diff)
dbus: export ControlGroupPersistent field on the bus again
Diffstat (limited to 'src/dbus-common.c')
-rw-r--r--src/dbus-common.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dbus-common.c b/src/dbus-common.c
index 50daedcf58..a072369988 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -533,6 +533,22 @@ int bus_property_append_bool(DBusMessageIter *i, const char *property, void *dat
return 0;
}
+int bus_property_append_tristate_false(DBusMessageIter *i, const char *property, void *data) {
+ int *b = data;
+ dbus_bool_t db;
+
+ assert(i);
+ assert(property);
+ assert(b);
+
+ db = *b > 0;
+
+ if (!dbus_message_iter_append_basic(i, DBUS_TYPE_BOOLEAN, &db))
+ return -ENOMEM;
+
+ return 0;
+}
+
int bus_property_append_uint64(DBusMessageIter *i, const char *property, void *data) {
assert(i);
assert(property);