diff options
Diffstat (limited to 'src/message-waiting.c')
-rw-r--r-- | src/message-waiting.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/message-waiting.c b/src/message-waiting.c index 19b995db..b8ced450 100644 --- a/src/message-waiting.c +++ b/src/message-waiting.c @@ -369,14 +369,18 @@ static DBusMessage *mw_set_property(DBusConnection *conn, DBusMessage *msg, } static const GDBusMethodTable message_waiting_methods[] = { - { "GetProperties", "", "a{sv}", mw_get_properties }, - { "SetProperty", "sv", "", mw_set_property, - G_DBUS_METHOD_FLAG_ASYNC }, + { _GDBUS_METHOD("GetProperties", "", "a{sv}", + NULL, GDBUS_ARGS({ "properties", "a{sv}" }), + mw_get_properties) }, + { _GDBUS_ASYNC_METHOD("SetProperty", "sv", "", + GDBUS_ARGS({ "property", "s" }, { "value", "v" }), + NULL, mw_set_property) }, { } }; static const GDBusSignalTable message_waiting_signals[] = { - { "PropertyChanged", "sv" }, + { _GDBUS_SIGNAL("PropertyChanged", "sv", + GDBUS_ARGS({ "name", "s" }, { "value", "v" })) }, { } }; |