Author: mvidner
Date: Fri Jul 11 15:40:36 2008
New Revision: 49000
URL: http://svn.opensuse.org/viewcvs/yast?rev=49000&view=rev
Log:
Narcissism
(make introspection pretty)
Modified:
branches/tmp/lslezak/workshop/core/scr/src/DBusServer.cc
Modified: branches/tmp/lslezak/workshop/core/scr/src/DBusServer.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/workshop/core/scr/src/DBusServer.cc?rev=49000&r1=48999&r2=49000&view=diff
==============================================================================
--- branches/tmp/lslezak/workshop/core/scr/src/DBusServer.cc (original)
+++ branches/tmp/lslezak/workshop/core/scr/src/DBusServer.cc Fri Jul 11 15:40:36 2008
@@ -157,10 +157,49 @@
// define all exported methods here
const char *introspect = (request.path() != "/SCR") ?
// introcpection data for the root node
-"<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\" \"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\"> <node> </method> </interface> </node>" :
+"<!DOCTYPE node PUBLIC '-//freedesktop//DTD D-BUS Object Introspection 1.0//EN' 'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>"
+"<node>"
+" <interface name='org.freedesktop.DBus.Introspectable'>"
+" <method name='Introspect'>"
+" <arg name='xml_data' type='s' direction='out'/>"
+" </method>"
+" </interface>"
+" <node name='SCR'/>"
+"</node>" :
// introcpection data for SCR node
-"<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\" \"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\"> <node> </method> </method></method> </method> </interface> </method> </interface> </node>";
+"<!DOCTYPE node PUBLIC '-//freedesktop//DTD D-BUS Object Introspection 1.0//EN' 'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>"
+"<node>"
+" <interface name='org.opensuse.yast.SCR'>"
+" <method name='Read'>"
+" <arg name='path' type='s' direction='in'/>"
+" <arg name='arg' type='v' direction='in'/>"
+" <arg name='opt' type='v' direction='in'/>"
+" <arg name='ret' type='v' direction='out'/>"
+" </method>"
+" <method name='Write'>"
+" <arg name='path' type='s' direction='in'/>"
+" <arg name='arg' type='v' direction='in'/>"
+" <arg name='opt' type='v' direction='in'/>"
+" <arg name='ret' type='v' direction='out'/>"
+" </method>"
+" <method name='Execute'>"
+" <arg name='path' type='s' direction='in'/>"
+" <arg name='arg' type='v' direction='in'/>"
+" <arg name='opt' type='v' direction='in'/>"
+" <arg name='ret' type='v' direction='out'/>"
+" </method>"
+" <method name='Dir'>"
+" <arg name='path' type='s' direction='in'/>"
+" <arg name='ret' type='av' direction='out'/>"
+" </method>"
+" </interface>"
+" <interface name='org.freedesktop.DBus.Introspectable'>"
+" <method name='Introspect'>"
+" <arg name='xml_data' type='s' direction='out'/>"
+" </method>"
+" </interface>"
+"</node>";
// create a reply to the request
reply.createReply(request);
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org