Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
c3a79834
Commit
c3a79834
authored
Nov 18, 2006
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added quit method
parent
8c7506a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
modules/control/dbus.c
modules/control/dbus.c
+11
-0
modules/control/dbus.h
modules/control/dbus.h
+1
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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