Skip to content
Snippets Groups Projects
Commit c3a79834 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Added quit method

parent 8c7506a0
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,16 @@ DBUS_METHOD( Nothing )
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 )
{ /* return a string */
REPLY_INIT;
......@@ -239,6 +249,7 @@ DBUS_METHOD( handle_messages )
METHOD_FUNC( "AddMRL", AddMRL );
METHOD_FUNC( "TogglePause", TogglePause );
METHOD_FUNC( "Nothing", Nothing );
METHOD_FUNC( "Quit", Quit );
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
......
......@@ -97,6 +97,7 @@ const char* psz_introspection_xml_data =
" <arg type=\"b\" direction=\"in\" />\n"
" </method>\n"
" <method name=\"Nothing\">\n"
" <method name=\"Quit\">\n"
" </method>\n"
" </interface>\n"
"</node>\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment