Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
c3a79834
Commit
c3a79834
authored
Nov 18, 2006
by
Rafaël Carré
Browse files
Added quit method
parent
8c7506a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/control/dbus.c
View file @
c3a79834
...
...
@@ -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
;
}
...
...
modules/control/dbus.h
View file @
c3a79834
...
...
@@ -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
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment