android: add next and previous track to the jni bridge
This will allow the android client to directly make calls to the mpd process to change tracks I went with camel case on the function names here, if you use an underscore javac generates a function tht looks like this: JNIEXPORT void JNICALL Java_org_musicpd_Bridge_play_1previous I figured what we ended up with looks a little nicer: JNIEXPORT void JNICALL Java_org_musicpd_Bridge_playPrevious
This commit is contained in:
@@ -18,4 +18,6 @@ public class Bridge {
|
||||
public static native void run(Context context, LogListener logListener);
|
||||
public static native void shutdown();
|
||||
public static native void pause();
|
||||
public static native void playNext();
|
||||
public static native void playPrevious();
|
||||
}
|
||||
|
Reference in New Issue
Block a user