mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
29 lines
566 B
C
29 lines
566 B
C
#ifndef JUICELOADER_H
|
|
#define JUICELOADER_H
|
|
|
|
#include <jni.h>
|
|
#include <jvmti.h>
|
|
|
|
typedef struct _JuiceLoaderNative {
|
|
jvmtiEnv *jvmti;
|
|
} JuiceLoaderNativeType;
|
|
extern JuiceLoaderNativeType JuiceLoaderNative;
|
|
|
|
typedef struct {
|
|
char *name;
|
|
unsigned char *bytes;
|
|
int len;
|
|
} ClassBytesCacheType;
|
|
|
|
typedef struct {
|
|
ClassBytesCacheType *arr;
|
|
int size;
|
|
int capacity;
|
|
} RetransformClassCacheType;
|
|
|
|
extern RetransformClassCacheType RetransformClassCache;
|
|
|
|
extern "C" __declspec(dllexport)
|
|
int InitJuiceLoader(JNIEnv *env, jvmtiEnv *jvmti);
|
|
|
|
#endif |