From: Lucas De Marchi Date: Fri, 18 May 2012 20:30:12 +0000 (-0300) Subject: gdbus: add Method.NoReply annotation in introspection X-Git-Tag: 2.0_alpha~183 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6470021c2a399565d83f5085116b556fdd5a0339;p=framework%2Fconnectivity%2Fconnman.git gdbus: add Method.NoReply annotation in introspection --- 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"); } }