15 lines
658 B
C
15 lines
658 B
C
#include <jni.h>
|
|
|
|
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);
|
|
void disconnect(JNIEnv *env, jobject b, jobject g);
|
|
void discoverServices(JNIEnv *env, jobject b, jobject p);
|
|
void discoverCharacteristics(JNIEnv *env, jobject b, jobject g, jobject s);
|
|
void setCharacteristicNotification(JNIEnv *env, jobject b, jobject g, jobject c);
|
|
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);
|