Author: lslezak Date: Wed Feb 4 10:49:25 2009 New Revision: 55223 URL: http://svn.opensuse.org/viewcvs/yast?rev=55223&view=rev Log: - added new lines to introspection data (better human readable output) Modified: branches/tmp/lslezak/core/liby2dbus/src/DBusServerBase.cc Modified: branches/tmp/lslezak/core/liby2dbus/src/DBusServerBase.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/core/liby2dbus/src/DBusServerBase.cc?rev=55223&r1=55222&r2=55223&view=diff ============================================================================== --- branches/tmp/lslezak/core/liby2dbus/src/DBusServerBase.cc (original) +++ branches/tmp/lslezak/core/liby2dbus/src/DBusServerBase.cc Wed Feb 4 10:49:25 2009 @@ -184,34 +184,34 @@ introspect = // introcpection data for the root node DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE - "<node>" - " <interface name='org.freedesktop.DBus.Introspectable'>" - " <method name='Introspect'>" - " <arg name='xml_data' type='s' direction='out'/>" - " </method>" - " </interface>"; + "\n<node>\n" + " <interface name='org.freedesktop.DBus.Introspectable'>\n" + " <method name='Introspect'>\n" + " <arg name='xml_data' type='s' direction='out'/>\n" + " </method>\n" + " </interface>\n"; for(Objects::const_iterator i = registered_objects.begin(); i != registered_objects.end(); ++i) { - introspect += " <node name='" + i->first + "'/>"; + introspect += " <node name='" + i->first + "'/>\n"; } // close the node section - introspect += "</node>"; + introspect += "</node>\n"; } else { introspect = // introcpection data for the root node DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE - "<node>" - " <interface name='org.freedesktop.DBus.Introspectable'>" - " <method name='Introspect'>" - " <arg name='xml_data' type='s' direction='out'/>" - " </method>" - " </interface>"; + "\n<node>\n" + " <interface name='org.freedesktop.DBus.Introspectable'>\n" + " <method name='Introspect'>\n" + " <arg name='xml_data' type='s' direction='out'/>\n" + " </method>\n" + " </interface>\n"; std::string objname = request.path(); @@ -237,7 +237,7 @@ ii != od.end(); ++ii) { - introspect += " <interface name='" + ii->first + "'>"; + introspect += " <interface name='" + ii->first + "'>\n"; InterfaceData id = ii->second; @@ -255,15 +255,15 @@ // add somthing like "<arg name='xml_data' type='s' direction='out'/>" introspect += sig.asXML(); - introspect += " </method>"; + introspect += "</method>\n"; } - introspect += " </interface>"; + introspect += " </interface>\n"; } } - introspect += " </node>"; + introspect += " </node>\n"; } // create a reply to the request -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org