diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-05-20 02:07:32 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-20 02:47:57 -0700 |
commit | e0d6f9f0cece363fe7397e683eb5ec5d01096f51 (patch) | |
tree | d888ec6696d3e7de2ab9f91b65d7eddd93d86222 /src/call-forwarding.c | |
parent | ce3345e21d96b94999ff1bb1eb613f6eed5b1327 (diff) | |
download | ofono-e0d6f9f0cece363fe7397e683eb5ec5d01096f51.tar.gz |
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 'src/call-forwarding.c')
-rw-r--r-- | src/call-forwarding.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/call-forwarding.c b/src/call-forwarding.c index 171feee9..3d9c5c13 100644 --- a/src/call-forwarding.c +++ b/src/call-forwarding.c @@ -882,20 +882,20 @@ static DBusMessage *cf_disable_all(DBusConnection *conn, DBusMessage *msg, } static const GDBusMethodTable cf_methods[] = { - { _GDBUS_ASYNC_METHOD("GetProperties", "", "a{sv}", + { GDBUS_ASYNC_METHOD("GetProperties", NULL, GDBUS_ARGS({ "properties", "a{sv}" }), cf_get_properties) }, - { _GDBUS_ASYNC_METHOD("SetProperty", "sv", "", + { GDBUS_ASYNC_METHOD("SetProperty", GDBUS_ARGS({ "property", "s" }, { "value", "v" }), NULL, cf_set_property) }, - { _GDBUS_ASYNC_METHOD("DisableAll", "s", "", - GDBUS_ARGS({ "type", "s" }), NULL, - cf_disable_all) }, + { GDBUS_ASYNC_METHOD("DisableAll", + GDBUS_ARGS({ "type", "s" }), NULL, + cf_disable_all) }, { } }; static const GDBusSignalTable cf_signals[] = { - { _GDBUS_SIGNAL("PropertyChanged", "sv", + { GDBUS_SIGNAL("PropertyChanged", GDBUS_ARGS({ "name", "s" }, { "value", "v" })) }, { } }; |