2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2014-02-18 08:33:06 +01:00
|
|
|
|
|
|
|
package org.musicpd;
|
|
|
|
|
2014-03-01 20:20:29 +01:00
|
|
|
import android.content.Context;
|
|
|
|
|
2014-02-18 08:33:06 +01:00
|
|
|
/**
|
|
|
|
* Bridge to native code.
|
|
|
|
*/
|
|
|
|
public class Bridge {
|
2014-11-02 16:52:43 +01:00
|
|
|
|
|
|
|
/* used by jni */
|
|
|
|
public interface LogListener {
|
|
|
|
public void onLog(int priority, String msg);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static native void run(Context context, LogListener logListener);
|
2014-09-15 14:03:19 +02:00
|
|
|
public static native void shutdown();
|
2021-07-26 19:55:39 +02:00
|
|
|
public static native void pause();
|
2014-02-18 08:33:06 +01:00
|
|
|
}
|