summaryrefslogtreecommitdiffstats
path: root/plugins/smart-messaging.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-20 02:07:32 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-20 02:47:57 -0700
commite0d6f9f0cece363fe7397e683eb5ec5d01096f51 (patch)
treed888ec6696d3e7de2ab9f91b65d7eddd93d86222 /plugins/smart-messaging.c
parentce3345e21d96b94999ff1bb1eb613f6eed5b1327 (diff)
downloadofono-e0d6f9f0cece363fe7397e683eb5ec5d01096f51.tar.bz2
Do not set signature and reply in GDBus tables
Use GDBUS_* macros, so signature and reply fields are not set in each method/signal.
Diffstat (limited to 'plugins/smart-messaging.c')
-rw-r--r--plugins/smart-messaging.c23
1 files changed, 10 insertions, 13 deletions
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) },
{ }
};