diff options
author | Henrique Dante de Almeida <hdante@profusion.mobi> | 2012-05-18 17:30:06 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-18 15:02:37 -0700 |
commit | 0bb3ef14d109f12fbb629e623b5c460915425e70 (patch) | |
tree | 643d29bb545ccbf4fb32aa436443c8977d54a74f /src/session.c | |
parent | 77a4d3fa07101334b45c1e8d84b327effc2ff910 (diff) | |
download | connman-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.c | 11 |
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) }, { }, }; |