summaryrefslogtreecommitdiffstats
path: root/src/sim.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/sim.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/sim.c')
-rw-r--r--src/sim.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/sim.c b/src/sim.c
index fd8a7976..d6aba841 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -1068,30 +1068,30 @@ static DBusMessage *sim_reset_pin(DBusConnection *conn, DBusMessage *msg,
}
static const GDBusMethodTable sim_methods[] = {
- { _GDBUS_METHOD("GetProperties", "", "a{sv}",
- NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
- sim_get_properties) },
- { _GDBUS_ASYNC_METHOD("SetProperty", "sv", "",
+ { GDBUS_METHOD("GetProperties",
+ NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
+ sim_get_properties) },
+ { GDBUS_ASYNC_METHOD("SetProperty",
GDBUS_ARGS({ "property", "s" }, { "value", "v" }),
NULL, sim_set_property) },
- { _GDBUS_ASYNC_METHOD("ChangePin", "sss", "",
+ { GDBUS_ASYNC_METHOD("ChangePin",
GDBUS_ARGS({ "type", "s" }, { "oldpin", "s" },
{ "newpin", "s" }), NULL,
sim_change_pin) },
- { _GDBUS_ASYNC_METHOD("EnterPin", "ss", "",
+ { GDBUS_ASYNC_METHOD("EnterPin",
GDBUS_ARGS({ "type", "s" }, { "pin", "s" }), NULL,
sim_enter_pin) },
- { _GDBUS_ASYNC_METHOD("ResetPin", "sss", "",
+ { GDBUS_ASYNC_METHOD("ResetPin",
GDBUS_ARGS({ "type", "s" }, { "puk", "s" },
{ "newpin", "s" }), NULL,
sim_reset_pin) },
- { _GDBUS_ASYNC_METHOD("LockPin", "ss", "",
+ { GDBUS_ASYNC_METHOD("LockPin",
GDBUS_ARGS({ "type", "s" }, { "pin", "s" }), NULL,
sim_lock_pin) },
- { _GDBUS_ASYNC_METHOD("UnlockPin", "ss", "",
+ { GDBUS_ASYNC_METHOD("UnlockPin",
GDBUS_ARGS({ "type", "s" }, { "pin", "s" }), NULL,
sim_unlock_pin) },
- { _GDBUS_ASYNC_METHOD("GetIcon", "y", "ay",
+ { GDBUS_ASYNC_METHOD("GetIcon",
GDBUS_ARGS({ "id", "y" }),
GDBUS_ARGS({ "icon", "ay" }),
sim_get_icon) },
@@ -1099,7 +1099,7 @@ static const GDBusMethodTable sim_methods[] = {
};
static const GDBusSignalTable sim_signals[] = {
- { _GDBUS_SIGNAL("PropertyChanged", "sv",
+ { GDBUS_SIGNAL("PropertyChanged",
GDBUS_ARGS({ "name", "s" }, { "value", "v" })) },
{ }
};