--- gdbus/object.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdbus/object.c b/gdbus/object.c index 52803c0..1a75b45 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -163,6 +163,9 @@ static void generate_interface_xml(GString *gstr, struct interface_data *iface) gboolean deprecated = method->flags & G_DBUS_METHOD_FLAG_DEPRECATED; + gboolean noreply = method->flags & + G_DBUS_METHOD_FLAG_NOREPLY; + if (!deprecated && !strlen(method->decorated_signature) && !strlen(method->decorated_reply)) g_string_append_printf(gstr, "\t\t<method name=\"%s\"/>\n", @@ -176,6 +179,10 @@ 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"); } } -- 1.7.10 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html