summaryrefslogtreecommitdiff
path: root/src/session.c
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 /src/session.c
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 'src/session.c')
-rw-r--r--src/session.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/session.c b/src/session.c
index 50f60618..c73db63c 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1556,10 +1556,13 @@ static DBusMessage *destroy_session(DBusConnection *conn,
}
static const GDBusMethodTable session_methods[] = {
- { "Destroy", "", "", destroy_session },
- { "Connect", "", "", connect_session },
- { "Disconnect", "", "", disconnect_session },
- { "Change", "sv", "", change_session },
+ { _GDBUS_METHOD("Destroy", "", "", NULL, NULL, destroy_session) },
+ { _GDBUS_METHOD("Connect", "", "", NULL, NULL, connect_session) },
+ { _GDBUS_METHOD("Disconnect", "", "", NULL, NULL,
+ disconnect_session ) },
+ { _GDBUS_METHOD("Change", "sv", "",
+ GDBUS_ARGS({ "name", "s" }, { "value", "v" }),
+ NULL, change_session) },
{ },
};