summaryrefslogtreecommitdiffstats
path: root/src/ussd.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 /src/ussd.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 'src/ussd.c')
-rw-r--r--src/ussd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ussd.c b/src/ussd.c
index 3a95c4e6..29cf1b49 100644
--- a/src/ussd.c
+++ b/src/ussd.c
@@ -729,27 +729,27 @@ static DBusMessage *ussd_get_properties(DBusConnection *conn,
}
static const GDBusMethodTable ussd_methods[] = {
- { _GDBUS_ASYNC_METHOD("Initiate", "s", "sv",
+ { GDBUS_ASYNC_METHOD("Initiate",
GDBUS_ARGS({ "command", "s" }),
GDBUS_ARGS({ "result_name", "s" }, { "value", "v" }),
ussd_initiate) },
- { _GDBUS_ASYNC_METHOD("Respond", "s", "s",
+ { GDBUS_ASYNC_METHOD("Respond",
GDBUS_ARGS({ "reply", "s" }),
GDBUS_ARGS({ "result", "s" }),
ussd_respond) },
- { _GDBUS_ASYNC_METHOD("Cancel", "", "", NULL, NULL, ussd_cancel) },
- { _GDBUS_METHOD("GetProperties", "", "a{sv}",
- NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
- ussd_get_properties) },
+ { GDBUS_ASYNC_METHOD("Cancel", NULL, NULL, ussd_cancel) },
+ { GDBUS_METHOD("GetProperties",
+ NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
+ ussd_get_properties) },
{ }
};
static const GDBusSignalTable ussd_signals[] = {
- { _GDBUS_SIGNAL("NotificationReceived", "s",
+ { GDBUS_SIGNAL("NotificationReceived",
GDBUS_ARGS({ "message", "s" })) },
- { _GDBUS_SIGNAL("RequestReceived", "s",
+ { GDBUS_SIGNAL("RequestReceived",
GDBUS_ARGS({ "message", "s" })) },
- { _GDBUS_SIGNAL("PropertyChanged", "sv",
+ { GDBUS_SIGNAL("PropertyChanged",
GDBUS_ARGS({ "name", "s" }, { "value", "v" })) },
{ }
};