summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2012-05-18 17:30:06 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-18 15:02:37 -0700
commit0bb3ef14d109f12fbb629e623b5c460915425e70 (patch)
tree643d29bb545ccbf4fb32aa436443c8977d54a74f /unit
parent77a4d3fa07101334b45c1e8d84b327effc2ff910 (diff)
downloadconnman-0bb3ef14d109f12fbb629e623b5c460915425e70.tar.gz
connman-0bb3ef14d109f12fbb629e623b5c460915425e70.tar.bz2
connman-0bb3ef14d109f12fbb629e623b5c460915425e70.zip
Convert GDBus methods and signals to use macro helpers
With these macro helpers we can separate in/out arguments and use their own vector.
Diffstat (limited to 'unit')
-rw-r--r--unit/session-api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/unit/session-api.c b/unit/session-api.c
index c5b7b6ce..27ca2c71 100644
--- a/unit/session-api.c
+++ b/unit/session-api.c
@@ -286,8 +286,10 @@ static DBusMessage *notify_update(DBusConnection *conn,
}
static const GDBusMethodTable notify_methods[] = {
- { "Release", "", "", notify_release },
- { "Update", "a{sv}", "", notify_update },
+ { _GDBUS_METHOD("Release", "", "", NULL, NULL, notify_release) },
+ { _GDBUS_METHOD("Update", "a{sv}", "",
+ GDBUS_ARGS({ "settings", "a{sv}" }), NULL,
+ notify_update) },
{ },
};