2019-11-20 11:52:19 -05:00
|
|
|
#include <jni.h>
|
|
|
|
|
|
|
|
void SetLoader(JNIEnv* env, jobject context);
|
|
|
|
jclass FindClass(JNIEnv* env, char* name);
|
|
|
|
jobject CreateObject(JNIEnv* env, jclass cls);
|
|
|
|
void InitPgpConnect(JNIEnv* env);
|
|
|
|
void GetId(JNIEnv* env, jobject p, int chint);
|
|
|
|
void Decrypt(JNIEnv* env, jobject p, char* cdata, int datalen, int chint);
|
|
|
|
void Encrypt(JNIEnv* env, jobject p, char* cid, int idlen, char* cdata, int datalen, int chint);
|
2019-11-20 14:56:11 -05:00
|
|
|
void Clip(JNIEnv* env, jobject p, char* cdata, int datalen);
|
2019-11-20 11:52:19 -05:00
|
|
|
void stringResult(JNIEnv* env, jclass cls, jint requestCode, jobject response);
|
|
|
|
void CallVoidMethod(JNIEnv *env, jobject obj, jmethodID methodID);
|
|
|
|
void CallVoidMethod1(JNIEnv *env, jobject obj, jmethodID methodID, jobject arg);
|
|
|
|
jint CallIntMethod(JNIEnv *env, jobject obj, jmethodID methodID);
|
|
|
|
jmethodID GetMethodID(JNIEnv *env, jclass clazz, const char *name, const char *sig);
|
|
|
|
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);
|