summaryrefslogtreecommitdiffstats
path: root/src/manager.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-20 02:07:29 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-20 02:47:57 -0700
commitb3489f2ee86c1d7ace388b43420a32f9a76b019c (patch)
tree90688955099f3fe63186caa79d9d7bcbb2f82770 /src/manager.c
parent8e815c100b566e1de1f5e555e0291f6610a08cd7 (diff)
downloadofono-b3489f2ee86c1d7ace388b43420a32f9a76b019c.tar.bz2
Convert GDBus methods to use macro helpers
With these macro helpers we can separate in/out arguments and use their own vector.
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/manager.c b/src/manager.c
index ac729dca..18df9946 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -81,13 +81,17 @@ static DBusMessage *manager_get_modems(DBusConnection *conn,
}
static const GDBusMethodTable manager_methods[] = {
- { "GetModems", "", "a(oa{sv})", manager_get_modems },
+ { _GDBUS_METHOD("GetModems", "", "a(oa{sv})",
+ NULL, GDBUS_ARGS({ "modems", "a(oa{sv})" }),
+ manager_get_modems) },
{ }
};
static const GDBusSignalTable manager_signals[] = {
- { "ModemAdded", "oa{sv}" },
- { "ModemRemoved", "o" },
+ { _GDBUS_SIGNAL("ModemAdded", "oa{sv}",
+ GDBUS_ARGS({ "modems", "a(oa{sv})" })) },
+ { _GDBUS_SIGNAL("ModemRemoved", "o",
+ GDBUS_ARGS({ "path", "o" })) },
{ }
};