summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-18 20:30:12 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2012-05-18 22:02:37 (GMT)
commit6470021c2a399565d83f5085116b556fdd5a0339 (patch)
tree9e383dd360f3147d730dd0fa5f847cab8a223aa2 /gdbus
parent47abcc6468d02011ddc9713eb5599eb51436139e (diff)
downloadconnman-6470021c2a399565d83f5085116b556fdd5a0339.zip
connman-6470021c2a399565d83f5085116b556fdd5a0339.tar.gz
connman-6470021c2a399565d83f5085116b556fdd5a0339.tar.bz2
gdbus: add Method.NoReply annotation in introspection
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/object.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 95947f3..dacbe58 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -84,8 +84,10 @@ static void generate_interface_xml(GString *gstr, struct interface_data *iface)
for (method = iface->methods; method && method->name; method++) {
gboolean deprecated = method->flags &
G_DBUS_METHOD_FLAG_DEPRECATED;
+ gboolean noreply = method->flags &
+ G_DBUS_METHOD_FLAG_NOREPLY;
- if (!deprecated &&
+ if (!deprecated && !noreply &&
!(method->in_args && method->in_args->name) &&
!(method->out_args && method->out_args->name))
g_string_append_printf(gstr, "\t\t<method name=\"%s\"/>\n",
@@ -99,6 +101,9 @@ static void generate_interface_xml(GString *gstr, struct interface_data *iface)
if (deprecated)
g_string_append_printf(gstr, "\t\t\t<annotation name=\"org.freedesktop.DBus.Deprecated\" value=\"true\"/>\n");
+ if (noreply)
+ g_string_append_printf(gstr, "\t\t\t<annotation name=\"org.freedesktop.DBus.Method.NoReply\" value=\"true\"/>\n");
+
g_string_append_printf(gstr, "\t\t</method>\n");
}
}