diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-05-18 15:32:01 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-18 11:49:12 -0700 |
commit | 465439055ba535968e0e266a258700ccda492bb2 (patch) | |
tree | d772e3c7d93be98cb0d7ef06405cdc524ccbf1f3 /client/session.c | |
parent | eb26cc8520bb8e846568d3d48cc73480252a7a9d (diff) | |
download | obexd-465439055ba535968e0e266a258700ccda492bb2.tar.gz |
Convert GDBus methods to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector.
Diffstat (limited to 'client/session.c')
-rw-r--r-- | client/session.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/client/session.c b/client/session.c index 5e49f23..d528452 100644 --- a/client/session.c +++ b/client/session.c @@ -649,9 +649,15 @@ static DBusMessage *session_get_properties(DBusConnection *connection, } static const GDBusMethodTable session_methods[] = { - { "GetProperties", "", "a{sv}", session_get_properties }, - { "AssignAgent", "o", "", assign_agent }, - { "ReleaseAgent", "o", "", release_agent }, + { _GDBUS_METHOD("GetProperties", "", "a{sv}", + NULL, GDBUS_ARGS({ "properties", "a{sv}" }), + session_get_properties) }, + { _GDBUS_METHOD("AssignAgent", "o", "", + GDBUS_ARGS({ "agent", "o" }), NULL, + assign_agent) }, + { _GDBUS_METHOD("ReleaseAgent", "o", "", + GDBUS_ARGS({ "agent", "o" }), NULL, + release_agent) }, { } }; |