Commit c3a79834 authored by Rafaël Carré's avatar Rafaël Carré

Added quit method

parent 8c7506a0
...@@ -99,6 +99,16 @@ DBUS_METHOD( Nothing ) ...@@ -99,6 +99,16 @@ DBUS_METHOD( Nothing )
REPLY_SEND; REPLY_SEND;
} }
DBUS_METHOD( Quit )
{ /* exits vlc */
REPLY_INIT;
playlist_t *p_playlist = pl_Yield( (vlc_object_t*) p_this );
playlist_Stop( p_playlist );
pl_Release( ((vlc_object_t*) p_this) );
((vlc_object_t*)p_this)->b_die = VLC_TRUE;
REPLY_SEND;
}
DBUS_METHOD( GetPlayStatus ) DBUS_METHOD( GetPlayStatus )
{ /* return a string */ { /* return a string */
REPLY_INIT; REPLY_INIT;
...@@ -239,6 +249,7 @@ DBUS_METHOD( handle_messages ) ...@@ -239,6 +249,7 @@ DBUS_METHOD( handle_messages )
METHOD_FUNC( "AddMRL", AddMRL ); METHOD_FUNC( "AddMRL", AddMRL );
METHOD_FUNC( "TogglePause", TogglePause ); METHOD_FUNC( "TogglePause", TogglePause );
METHOD_FUNC( "Nothing", Nothing ); METHOD_FUNC( "Nothing", Nothing );
METHOD_FUNC( "Quit", Quit );
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
} }
......
...@@ -97,6 +97,7 @@ const char* psz_introspection_xml_data = ...@@ -97,6 +97,7 @@ const char* psz_introspection_xml_data =
" <arg type=\"b\" direction=\"in\" />\n" " <arg type=\"b\" direction=\"in\" />\n"
" </method>\n" " </method>\n"
" <method name=\"Nothing\">\n" " <method name=\"Nothing\">\n"
" <method name=\"Quit\">\n"
" </method>\n" " </method>\n"
" </interface>\n" " </interface>\n"
"</node>\n" "</node>\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment