20 lines
1.0 KiB
C
20 lines
1.0 KiB
C
#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);
|
|
void Clip(JNIEnv* env, jobject p, char* cdata, int datalen);
|
|
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);
|