From b3489f2ee86c1d7ace388b43420a32f9a76b019c Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sun, 20 May 2012 02:07:29 -0300 Subject: Convert GDBus methods to use macro helpers With these macro helpers we can separate in/out arguments and use their own vector. --- plugins/hfp_hf.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/hfp_hf.c') diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf.c index 19a362f5..628e034b 100644 --- a/plugins/hfp_hf.c +++ b/plugins/hfp_hf.c @@ -199,10 +199,11 @@ static DBusMessage *hfp_agent_release(DBusConnection *conn, } static const GDBusMethodTable agent_methods[] = { - { "NewConnection", "hq", "", hfp_agent_new_connection, - G_DBUS_METHOD_FLAG_ASYNC }, - { "Release", "", "", hfp_agent_release }, - { NULL, NULL, NULL, NULL } + { _GDBUS_ASYNC_METHOD("NewConnection", "hq", "", + GDBUS_ARGS({ "fd", "h" }, { "version", "q" }), + NULL, hfp_agent_new_connection) }, + { _GDBUS_METHOD("Release", "", "", NULL, NULL, hfp_agent_release) }, + { } }; static int hfp_hf_probe(const char *device, const char *dev_addr, -- cgit v1.2.3