2019-11-22 16:15:02 -05:00
|
|
|
#include <jni.h>
|
|
|
|
|
2020-06-19 14:35:49 -04:00
|
|
|
void registerFragment(JNIEnv *env, jobject view);
|
2019-11-22 16:15:02 -05:00
|
|
|
jboolean enabled(JNIEnv *env, jobject p);
|
|
|
|
void scan(JNIEnv *env, jobject b);
|
|
|
|
void stopScan(JNIEnv *env, jobject b);
|
|
|
|
void connect(JNIEnv *env, jobject b, jobject d);
|
2019-11-27 10:44:37 -05:00
|
|
|
void disconnect(JNIEnv *env, jobject b, jobject g);
|
2019-11-22 16:15:02 -05:00
|
|
|
void discoverServices(JNIEnv *env, jobject b, jobject p);
|
2019-11-27 10:44:37 -05:00
|
|
|
void discoverCharacteristics(JNIEnv *env, jobject b, jobject g, jobject s);
|
2019-12-10 09:13:32 -05:00
|
|
|
void readCharacteristic(JNIEnv *env, jobject b, jobject g, jobject c);
|
|
|
|
jboolean setCharacteristicNotification(JNIEnv *env, jobject b, jobject g, jobject c);
|
2019-11-22 16:15:02 -05:00
|
|
|
jint GetEnv(JavaVM *vm, JNIEnv **env, jint version);
|
|
|
|
jint AttachCurrentThread(JavaVM *vm, JNIEnv **p_env, void *thr_args);
|
|
|
|
jint DetachCurrentThread(JavaVM *vm);
|
|
|
|
jobject NewGlobalRef(JNIEnv *env, jobject o);
|