aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-18 00:23:32 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-17 20:32:21 -0700
commit7eebe7fb415ecc8aebc936de0971431ff0956e76 (patch)
tree8b81e891c795072cd2f41e3d21a2b40302f61b16 /attrib/client.c
parentfd9148dd2587995e53ab093756106b70c476a622 (diff)
downloadbluez-7eebe7fb415ecc8aebc936de0971431ff0956e76.tar.gz
bluez-7eebe7fb415ecc8aebc936de0971431ff0956e76.tar.xz
bluez-7eebe7fb415ecc8aebc936de0971431ff0956e76.zip
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 'attrib/client.c')
-rw-r--r--attrib/client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/attrib/client.c b/attrib/client.c
index df1496f8..8fbc1cc6 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -516,10 +516,10 @@ static DBusMessage *set_property(DBusConnection *conn,
}
static const GDBusMethodTable char_methods[] = {
- { _GDBUS_METHOD("GetProperties", "", "a{sv}",
+ { GDBUS_METHOD("GetProperties",
NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
get_properties) },
- { _GDBUS_METHOD("SetProperty", "sv", "",
+ { GDBUS_METHOD("SetProperty",
GDBUS_ARGS({ "name", "s" }, { "value", "v" }), NULL,
set_property) },
{ }
@@ -1019,16 +1019,16 @@ static DBusMessage *prim_get_properties(DBusConnection *conn, DBusMessage *msg,
}
static const GDBusMethodTable prim_methods[] = {
- { _GDBUS_ASYNC_METHOD("DiscoverCharacteristics", "", "ao",
+ { GDBUS_ASYNC_METHOD("DiscoverCharacteristics",
NULL, GDBUS_ARGS({ "characteristics", "ao" }),
discover_char) },
- { _GDBUS_METHOD("RegisterCharacteristicsWatcher", "o", "",
+ { GDBUS_METHOD("RegisterCharacteristicsWatcher",
GDBUS_ARGS({ "agent", "o" }), NULL,
register_watcher) },
- { _GDBUS_METHOD("UnregisterCharacteristicsWatcher", "o", "",
+ { GDBUS_METHOD("UnregisterCharacteristicsWatcher",
GDBUS_ARGS({ "agent", "o" }), NULL,
unregister_watcher) },
- { _GDBUS_METHOD("GetProperties", "", "a{sv}",
+ { GDBUS_METHOD("GetProperties",
NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
prim_get_properties) },
{ }