diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/hfp_hf.c | 4 | ||||
-rw-r--r-- | plugins/push-notification.c | 6 | ||||
-rw-r--r-- | plugins/smart-messaging.c | 23 |
3 files changed, 14 insertions, 19 deletions
diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf.c index 628e034b..16c7d5bd 100644 --- a/plugins/hfp_hf.c +++ b/plugins/hfp_hf.c @@ -199,10 +199,10 @@ static DBusMessage *hfp_agent_release(DBusConnection *conn, } static const GDBusMethodTable agent_methods[] = { - { _GDBUS_ASYNC_METHOD("NewConnection", "hq", "", + { GDBUS_ASYNC_METHOD("NewConnection", GDBUS_ARGS({ "fd", "h" }, { "version", "q" }), NULL, hfp_agent_new_connection) }, - { _GDBUS_METHOD("Release", "", "", NULL, NULL, hfp_agent_release) }, + { GDBUS_METHOD("Release", NULL, NULL, hfp_agent_release) }, { } }; diff --git a/plugins/push-notification.c b/plugins/push-notification.c index b916a6a6..f6ca365a 100644 --- a/plugins/push-notification.c +++ b/plugins/push-notification.c @@ -152,11 +152,9 @@ static DBusMessage *push_notification_unregister_agent(DBusConnection *conn, } static const GDBusMethodTable push_notification_methods[] = { - { _GDBUS_METHOD("RegisterAgent", "o", "", - GDBUS_ARGS({ "path", "o" }), NULL, + { GDBUS_METHOD("RegisterAgent", GDBUS_ARGS({ "path", "o" }), NULL, push_notification_register_agent) }, - { _GDBUS_METHOD("UnregisterAgent", "o", "", - GDBUS_ARGS({ "path", "o" }), NULL, + { GDBUS_METHOD("UnregisterAgent", GDBUS_ARGS({ "path", "o" }), NULL, push_notification_unregister_agent) }, { } }; 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) }, { } }; |