diff options
author | Henrique Dante de Almeida <hdante@profusion.mobi> | 2012-05-18 17:30:06 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-18 15:02:37 -0700 |
commit | 0bb3ef14d109f12fbb629e623b5c460915425e70 (patch) | |
tree | 643d29bb545ccbf4fb32aa436443c8977d54a74f /plugins | |
parent | 77a4d3fa07101334b45c1e8d84b327effc2ff910 (diff) | |
download | connman-0bb3ef14d109f12fbb629e623b5c460915425e70.tar.gz connman-0bb3ef14d109f12fbb629e623b5c460915425e70.tar.bz2 connman-0bb3ef14d109f12fbb629e623b5c460915425e70.zip |
Convert GDBus methods and signals to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/nmcompat.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/nmcompat.c b/plugins/nmcompat.c index 6299c349..680cdf8f 100644 --- a/plugins/nmcompat.c +++ b/plugins/nmcompat.c @@ -221,13 +221,17 @@ static DBusMessage *property_get(DBusConnection *conn, } static const GDBusMethodTable methods[] = { - { "Get", "ss", "v", property_get }, + { _GDBUS_METHOD("Get", "ss", "v", + GDBUS_ARGS({ "interface", "s" }, { "key", "s" }), + GDBUS_ARGS({ "property", "v" }), property_get) }, { }, }; static const GDBusSignalTable signals[] = { - { "PropertiesChanged", "a{sv}" }, - { "StateChanged", "u" }, + { _GDBUS_SIGNAL("PropertiesChanged", "a{sv}", + GDBUS_ARGS({ "properties", "a{sv}" })) }, + { _GDBUS_SIGNAL("StateChanged", "u", + GDBUS_ARGS({ "state", "u" })) }, { }, }; |