Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
74fcbb38
Commit
74fcbb38
authored
Sep 15, 2014
by
Thomas Guillem
Committed by
Max Kellermann
Sep 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android/Bridge: add shutdown()
Break the mainloop and terminate run call.
parent
9836b1dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Bridge.java
android/src/Bridge.java
+1
-0
Main.cxx
src/Main.cxx
+9
-0
No files found.
android/src/Bridge.java
View file @
74fcbb38
...
...
@@ -26,4 +26,5 @@ import android.content.Context;
*/
public
class
Bridge
{
public
static
native
void
run
(
Context
context
);
public
static
native
void
shutdown
();
}
src/Main.cxx
View file @
74fcbb38
...
...
@@ -696,6 +696,7 @@ int mpd_main(int argc, char *argv[])
#endif
delete
instance
->
event_loop
;
delete
instance
;
instance
=
nullptr
;
#ifndef ANDROID
daemonize_finish
();
#endif
...
...
@@ -727,4 +728,12 @@ Java_org_musicpd_Bridge_run(JNIEnv *env, jclass, jobject _context)
Environment
::
Deinitialise
(
env
);
}
gcc_visibility_default
JNIEXPORT
void
JNICALL
Java_org_musicpd_Bridge_shutdown
(
JNIEnv
*
,
jclass
)
{
if
(
instance
!=
nullptr
)
instance
->
event_loop
->
Break
();
}
#endif
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