summaryrefslogtreecommitdiffstats
path: root/src/location-reporting.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/location-reporting.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/location-reporting.c')
-rw-r--r--src/location-reporting.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/location-reporting.c b/src/location-reporting.c
index 6417330a..9ea200c2 100644
--- a/src/location-reporting.c
+++ b/src/location-reporting.c
@@ -240,16 +240,20 @@ static DBusMessage *location_reporting_release(DBusConnection *conn,
}
static const GDBusMethodTable location_reporting_methods[] = {
- { "GetProperties", "", "a{sv}", location_reporting_get_properties },
- { "Request", "", "h", location_reporting_request,
- G_DBUS_METHOD_FLAG_ASYNC },
- { "Release", "", "", location_reporting_release,
- G_DBUS_METHOD_FLAG_ASYNC },
+ { _GDBUS_METHOD("GetProperties", "", "a{sv}",
+ NULL, GDBUS_ARGS({ "properties", "a{sv}" }),
+ location_reporting_get_properties) },
+ { _GDBUS_ASYNC_METHOD("Request", "", "h",
+ NULL, GDBUS_ARGS({ "fd", "h" }),
+ location_reporting_request) },
+ { _GDBUS_ASYNC_METHOD("Release", "", "", NULL, NULL,
+ location_reporting_release) },
{ }
};
static const GDBusSignalTable location_reporting_signals[] = {
- { "PropertyChanged", "sv" },
+ { _GDBUS_SIGNAL("PropertyChanged", "sv",
+ GDBUS_ARGS({ "name", "s" }, { "value", "v" })) },
{ }
};