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. --- plugins/smart-messaging.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'plugins/smart-messaging.c') diff --git a/plugins/smart-messaging.c b/plugins/smart-messaging.c index a924f006..b368917c 100644 --- a/plugins/smart-messaging.c +++ b/plugins/smart-messaging.c @@ -269,21 +269,18 @@ static DBusMessage *smart_messaging_send_vcal(DBusConnection *conn, } static const GDBusMethodTable smart_messaging_methods[] = { - { _GDBUS_METHOD("RegisterAgent", "o", "", - GDBUS_ARGS({ "path", "o" }), NULL, + { GDBUS_METHOD("RegisterAgent", GDBUS_ARGS({ "path", "o" }), NULL, smart_messaging_register_agent) }, - { _GDBUS_METHOD("UnregisterAgent", "o", "", - GDBUS_ARGS({ "path", "o" }), NULL, + { GDBUS_METHOD("UnregisterAgent", GDBUS_ARGS({ "path", "o" }), NULL, smart_messaging_unregister_agent) }, - { _GDBUS_ASYNC_METHOD("SendBusinessCard", "say", "o", - GDBUS_ARGS({ "to", "s" }, { "card", "ay" }), - GDBUS_ARGS({ "path", "o" }), - smart_messaging_send_vcard) }, - { _GDBUS_ASYNC_METHOD("SendAppointment", "say", "o", - GDBUS_ARGS({ "to", "s" }, - { "appointment", "ay" }), - GDBUS_ARGS({ "path", "o" }), - smart_messaging_send_vcal) }, + { GDBUS_ASYNC_METHOD("SendBusinessCard", + GDBUS_ARGS({ "to", "s" }, { "card", "ay" }), + GDBUS_ARGS({ "path", "o" }), + smart_messaging_send_vcard) }, + { GDBUS_ASYNC_METHOD("SendAppointment", + GDBUS_ARGS({ "to", "s" }, { "appointment", "ay" }), + GDBUS_ARGS({ "path", "o" }), + smart_messaging_send_vcal) }, { } }; -- cgit v1.2.3