summaryrefslogtreecommitdiff
path: root/src/dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-01 00:29:17 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-01 00:29:17 +0200
commit4fd5948e74b776b6d68ba55f558da5f354179e52 (patch)
tree0bb54d1f5ac17f1de19e71357bd39e595732190c /src/dbus.c
parent6398320759ce4ed84922bb28f715d3c6c66166c4 (diff)
socket: make various socket/pipe options configurable
Diffstat (limited to 'src/dbus.c')
-rw-r--r--src/dbus.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dbus.c b/src/dbus.c
index 74b1c37dda..2c2a9cd6c2 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -1460,6 +1460,22 @@ int bus_property_append_int32(Manager *m, DBusMessageIter *i, const char *proper
return 0;
}
+int bus_property_append_size(Manager *m, DBusMessageIter *i, const char *property, void *data) {
+ uint64_t u;
+
+ assert(m);
+ assert(i);
+ assert(property);
+ assert(data);
+
+ u = (uint64_t) *(size_t*) data;
+
+ if (!dbus_message_iter_append_basic(i, DBUS_TYPE_UINT64, &u))
+ return -ENOMEM;
+
+ return 0;
+}
+
int bus_parse_strv(DBusMessage *m, char ***_l) {
DBusMessageIter iter, sub;
unsigned n = 0, i = 0;