With these macro helpers we can separate in/out arguments and use their own vector. --- src/client.c | 6 ++++-- src/manager.c | 9 +++++++-- 2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/client.c b/src/client.c index b2735d9..807fd25 100644 --- a/src/client.c +++ b/src/client.c @@ -105,8 +105,10 @@ static DBusMessage *find_proxy_for_url(DBusConnection *conn, } static const GDBusMethodTable client_methods[] = { - { "FindProxyForURL", "ss", "s", find_proxy_for_url, - G_DBUS_METHOD_FLAG_ASYNC }, + { _GDBUS_ASYNC_METHOD("FindProxyForURL", "ss", "s", + GDBUS_ARGS({ "url", "s" }, { "host", "s" }), + GDBUS_ARGS({ "proxy", "s" }), + find_proxy_for_url) }, { }, }; diff --git a/src/manager.c b/src/manager.c index 9e2b4f3..5c13427 100644 --- a/src/manager.c +++ b/src/manager.c @@ -282,8 +282,13 @@ static DBusMessage *destroy_proxy_config(DBusConnection *conn, } static const GDBusMethodTable manager_methods[] = { - { "CreateProxyConfiguration", "a{sv}", "o", create_proxy_config }, - { "DestroyProxyConfiguration", "o", "", destroy_proxy_config }, + { _GDBUS_METHOD("CreateProxyConfiguration", "a{sv}", "o", + GDBUS_ARGS({ "settings", "a{sv}" }), + GDBUS_ARGS({ "path", "o" }), + create_proxy_config) }, + { _GDBUS_METHOD("DestroyProxyConfiguration", "o", "", + GDBUS_ARGS({ "configuration" , "o" }), NULL, + destroy_proxy_config) }, { }, }; -- 1.7.10.2 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman