Returns object hierarchy with root object introspection data. Thanks to eean.
authorRafaël Carré <funman@videolan.org>
Mon, 13 Aug 2007 15:21:43 +0000 (15:21 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 13 Aug 2007 15:21:43 +0000 (15:21 +0000)
Uses correct interface name.

modules/control/dbus.c
modules/control/dbus.h

index e8ad668..d6ed766 100644 (file)
@@ -615,7 +615,7 @@ DBUS_METHOD( Random )
  *****************************************************************************/
 
 DBUS_METHOD( handle_introspect_root )
-{ /* handles introspection of /org/videolan/vlc */
+{ /* handles introspection of root object */
     REPLY_INIT;
     OUT_ARGUMENTS;
     ADD_STRING( &psz_introspection_xml_data_root );
index 9b4508a..01e28b6 100644 (file)
@@ -88,7 +88,9 @@
 const char* psz_introspection_xml_data_root =
 "<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n"
 "\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n"
-"<node>"
+"<node>\n"
+"  <node name=\"Player\"/>\n"
+"  <node name=\"TrackList\"/>\n"
 "  <interface name=\"org.freedesktop.DBus.Introspectable\">\n"
 "    <method name=\"Introspect\">\n"
 "      <arg name=\"data\" direction=\"out\" type=\"s\"/>\n"
@@ -111,7 +113,7 @@ const char* psz_introspection_xml_data_player =
 "      <arg name=\"data\" direction=\"out\" type=\"s\"/>\n"
 "    </method>\n"
 "  </interface>\n"
-"  <interface name=\"org.videolan.vlc\">\n"
+"  <interface name=\"org.freedesktop.MediaPlayer\">\n"
 "    <method name=\"GetStatus\">\n"
 "      <arg type=\"i\" direction=\"out\" />\n"
 "    </method>\n"
@@ -160,7 +162,7 @@ const char* psz_introspection_xml_data_tracklist =
 "      <arg name=\"data\" direction=\"out\" type=\"s\"/>\n"
 "    </method>\n"
 "  </interface>\n"
-"  <interface name=\"org.videolan.vlc\">\n"
+"  <interface name=\"org.freedesktop.MediaPlayer\">\n"
 "    <method name=\"AddTrack\">\n"
 "      <arg type=\"s\" direction=\"in\" />\n"
 "      <arg type=\"b\" direction=\"in\" />\n"