Add introspection interface to the output of introspection calls

This provides better compatibility with some D-Bus clients, such as qdbus.
This commit is contained in:
RISKÓ Gergely 2009-09-14 17:52:43 +03:00 committed by Marcel Holtmann
parent b2bdb41bc0
commit e72d349483
1 changed files with 7 additions and 1 deletions

View File

@ -155,7 +155,13 @@ static void generate_introspection_xml(DBusConnection *conn,
gstr = g_string_new(DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE);
g_string_append_printf(gstr, "<node name=\"%s\">\n", path);
g_string_append_printf(gstr,
"<node name=\"%s\">\n"
"\t<interface name=\"org.freedesktop.DBus.Introspectable\">\n"
"\t\t<method name=\"Introspect\">\n"
"\t\t\t<arg name=\"xml_data\" type=\"s\" direction=\"out\"/>\n"
"\t\t</method>\n"
"\t</interface>\n", path);
for (list = data->interfaces; list; list = list->next) {
struct interface_data *iface = list->data;