Return-Path: From: Lucas De Marchi To: linux-bluetooth@vger.kernel.org Cc: Lucas De Marchi Subject: [PATCH RESEND BlueZ v6 11/13] gdbus: add Method.NoReply annotation in introspection Date: Fri, 18 May 2012 00:23:35 -0300 Message-Id: <1337311417-1245-12-git-send-email-lucas.demarchi@profusion.mobi> In-Reply-To: <1337311417-1245-1-git-send-email-lucas.demarchi@profusion.mobi> References: <1337311417-1245-1-git-send-email-lucas.demarchi@profusion.mobi> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- gdbus/object.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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\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\n"); + if (noreply) + g_string_append_printf(gstr, "\t\t\t\n"); + g_string_append_printf(gstr, "\t\t\n"); } } -- 1.7.10.2