D-Bus, The Repeat method should be part of /Player, not /TrackList
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 24 Jun 2007 21:47:14 +0000 (21:47 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 24 Jun 2007 21:47:14 +0000 (21:47 +0000)
Patch by Mirsal ENNAIME, as usual.

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

index f4fab78..9d762cf 100644 (file)
@@ -667,6 +667,7 @@ DBUS_METHOD( handle_player )
     METHOD_FUNC( "Stop",                    Stop );
     METHOD_FUNC( "Play",                    Play );
     METHOD_FUNC( "Pause",                   Pause );
     METHOD_FUNC( "Stop",                    Stop );
     METHOD_FUNC( "Play",                    Play );
     METHOD_FUNC( "Pause",                   Pause );
+    METHOD_FUNC( "Repeat",                  Repeat );
     METHOD_FUNC( "VolumeSet",               VolumeSet );
     METHOD_FUNC( "VolumeGet",               VolumeGet );
     METHOD_FUNC( "PositionSet",             PositionSet );
     METHOD_FUNC( "VolumeSet",               VolumeSet );
     METHOD_FUNC( "VolumeGet",               VolumeGet );
     METHOD_FUNC( "PositionSet",             PositionSet );
@@ -691,7 +692,6 @@ DBUS_METHOD( handle_tracklist )
     METHOD_FUNC( "AddTrack",                AddTrack );
     METHOD_FUNC( "DelTrack",                DelTrack );
     METHOD_FUNC( "Loop",                    Loop );
     METHOD_FUNC( "AddTrack",                AddTrack );
     METHOD_FUNC( "DelTrack",                DelTrack );
     METHOD_FUNC( "Loop",                    Loop );
-    METHOD_FUNC( "Repeat",                  Repeat );
     METHOD_FUNC( "Random",                  Random );
 
     return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
     METHOD_FUNC( "Random",                  Random );
 
     return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
index cad2ce4..cd26335 100644 (file)
@@ -127,6 +127,9 @@ const char* psz_introspection_xml_data_player =
 "    </method>\n"
 "    <method name=\"Pause\">\n"
 "    </method>\n"
 "    </method>\n"
 "    <method name=\"Pause\">\n"
 "    </method>\n"
+"    <method name=\"Repeat\">\n"
+"      <arg type=\"b\" direction=\"in\" />\n"
+"    </method>\n"
 "    <method name=\"VolumeSet\">\n"
 "      <arg type=\"i\" direction=\"in\" />\n"
 "    </method>\n"
 "    <method name=\"VolumeSet\">\n"
 "      <arg type=\"i\" direction=\"in\" />\n"
 "    </method>\n"
@@ -176,9 +179,6 @@ const char* psz_introspection_xml_data_tracklist =
 "    <method name=\"Loop\">\n"
 "      <arg type=\"b\" direction=\"in\" />\n"
 "    </method>\n"
 "    <method name=\"Loop\">\n"
 "      <arg type=\"b\" direction=\"in\" />\n"
 "    </method>\n"
-"    <method name=\"Repeat\">\n"
-"      <arg type=\"b\" direction=\"in\" />\n"
-"    </method>\n"
 "    <method name=\"Random\">\n"
 "      <arg type=\"b\" direction=\"in\" />\n"
 "    </method>\n"
 "    <method name=\"Random\">\n"
 "      <arg type=\"b\" direction=\"in\" />\n"
 "    </method>\n"