From e0d6f9f0cece363fe7397e683eb5ec5d01096f51 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sun, 20 May 2012 02:07:32 -0300 Subject: Do not set signature and reply in GDBus tables Use GDBUS_* macros, so signature and reply fields are not set in each method/signal. --- src/ctm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ctm.c') diff --git a/src/ctm.c b/src/ctm.c index fd7df5e8..cb8f1476 100644 --- a/src/ctm.c +++ b/src/ctm.c @@ -203,17 +203,17 @@ static DBusMessage *ctm_set_property(DBusConnection *conn, DBusMessage *msg, } static const GDBusMethodTable ctm_methods[] = { - { _GDBUS_ASYNC_METHOD("GetProperties", "", "a{sv}", - NULL, GDBUS_ARGS({ "properties", "a{sv}" }), - ctm_get_properties) }, - { _GDBUS_ASYNC_METHOD("SetProperty", "sv", "", - GDBUS_ARGS({ "property", "s" }, { "value", "v" }), NULL, - ctm_set_property) }, + { GDBUS_ASYNC_METHOD("GetProperties", + NULL, GDBUS_ARGS({ "properties", "a{sv}" }), + ctm_get_properties) }, + { GDBUS_ASYNC_METHOD("SetProperty", + GDBUS_ARGS({ "property", "s" }, { "value", "v" }), NULL, + ctm_set_property) }, { } }; static const GDBusSignalTable ctm_signals[] = { - { _GDBUS_SIGNAL("PropertyChanged", "a{sv}", + { GDBUS_SIGNAL("PropertyChanged", GDBUS_ARGS({ "name", "s" }, { "value", "v" })) }, { } }; -- cgit v1.2.3