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/network.c | |
parent | ce3345e21d96b94999ff1bb1eb613f6eed5b1327 (diff) | |
download | ofono-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 'src/network.c')
-rw-r--r-- | src/network.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/network.c b/src/network.c index ede8437f..32be6fcf 100644 --- a/src/network.c +++ b/src/network.c @@ -624,16 +624,16 @@ static DBusMessage *network_operator_register(DBusConnection *conn, } static const GDBusMethodTable network_operator_methods[] = { - { _GDBUS_METHOD("GetProperties", "", "a{sv}", - NULL, GDBUS_ARGS({ "properties", "a{sv}" }), - network_operator_get_properties) }, - { _GDBUS_ASYNC_METHOD("Register", "", "", NULL, NULL, + { GDBUS_METHOD("GetProperties", + NULL, GDBUS_ARGS({ "properties", "a{sv}" }), + network_operator_get_properties) }, + { GDBUS_ASYNC_METHOD("Register", NULL, NULL, network_operator_register) }, { } }; static const GDBusSignalTable network_operator_signals[] = { - { _GDBUS_SIGNAL("PropertyChanged", "sv", + { GDBUS_SIGNAL("PropertyChanged", GDBUS_ARGS({ "name", "s" }, { "value", "v" })) }, { } }; @@ -1024,22 +1024,22 @@ static DBusMessage *network_get_operators(DBusConnection *conn, } static const GDBusMethodTable network_registration_methods[] = { - { _GDBUS_METHOD("GetProperties", "", "a{sv}", + { GDBUS_METHOD("GetProperties", NULL, GDBUS_ARGS({ "properties", "a{sv}" }), network_get_properties) }, - { _GDBUS_ASYNC_METHOD("Register", "", "", + { GDBUS_ASYNC_METHOD("Register", NULL, NULL, network_register) }, - { _GDBUS_METHOD("GetOperators", "", "a(oa{sv})", + { GDBUS_METHOD("GetOperators", NULL, GDBUS_ARGS({ "operators_with_properties", "a(oa{sv})" }), network_get_operators) }, - { _GDBUS_ASYNC_METHOD("Scan", "", "a(oa{sv})", + { GDBUS_ASYNC_METHOD("Scan", NULL, GDBUS_ARGS({ "operators_with_properties", "a(oa{sv})" }), network_scan) }, { } }; static const GDBusSignalTable network_registration_signals[] = { - { _GDBUS_SIGNAL("PropertyChanged", "a{sv}", + { GDBUS_SIGNAL("PropertyChanged", GDBUS_ARGS({ "name", "s" }, { "value", "v" })) }, { } }; |