Move the MPRIS Quit method to the root dbus object.
authorMirsal Ennaime <mirsal.ennaime@gmail.com>
Tue, 29 Apr 2008 01:16:04 +0000 (03:16 +0200)
committerMirsal Ennaime <mirsal.ennaime@gmail.com>
Tue, 29 Apr 2008 01:16:04 +0000 (03:16 +0200)
This closes #1565

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

index 1bfe3a7..2eae9d1 100644 (file)
@@ -632,6 +632,7 @@ DBUS_METHOD( handle_root )
 
     METHOD_FUNC( "Identity",                Identity );
     METHOD_FUNC( "MprisVersion",            MprisVersion );
+    METHOD_FUNC( "Quit",                    Quit );
 
     return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 }
@@ -647,7 +648,6 @@ DBUS_METHOD( handle_player )
 
     METHOD_FUNC( "Prev",                    Prev );
     METHOD_FUNC( "Next",                    Next );
-    METHOD_FUNC( "Quit",                    Quit );
     METHOD_FUNC( "Stop",                    Stop );
     METHOD_FUNC( "Play",                    Play );
     METHOD_FUNC( "Pause",                   Pause );
index 7e8864a..df74bc3 100644 (file)
@@ -101,6 +101,8 @@ const char* psz_introspection_xml_data_root =
 "    <method name=\"MprisVersion\">\n"
 "      <arg type=\"(qq)\" direction=\"out\" />\n"
 "    </method>\n"
+"    <method name=\"Quit\">\n"
+"    </method>\n"
 "  </interface>\n"
 "</node>\n"
 ;
@@ -118,8 +120,6 @@ const char* psz_introspection_xml_data_player =
 "    <method name=\"GetStatus\">\n"
 "      <arg type=\"(iiii)\" direction=\"out\" />\n"
 "    </method>\n"
-"    <method name=\"Quit\">\n"
-"    </method>\n"
 "    <method name=\"Prev\">\n"
 "    </method>\n"
 "    <method name=\"Next\">\n"