mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
Refactor: rebuild libagent with simplified lifecycle
- Replace eventbus/services with Agent preload/init lifecycle - Move JNI header to shared includes; add jni_common.hpp umbrella header - Reduce ClassFileLoadHook to a stub for later implementation - Add eventpp dependency - Document custom API JAR workflow (WIP)
This commit is contained in:
1 parent
3b180e7199
commit
51bcfbd549
47 files changed
+5583
-1462
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#include <jni_common.hpp>
|
||||
|
||||
void JNICALL ClassFileLoadHook(
|
||||
jvmtiEnv* jvmti_env,
|
||||
JNIEnv* jni_env,
|
||||
jclass class_being_redefined,
|
||||
jobject loader,
|
||||
const char* name,
|
||||
jobject protection_domain,
|
||||
jint class_data_len,
|
||||
const unsigned char* classbytes,
|
||||
jint* new_class_data_len,
|
||||
unsigned char** new_classbytes) {
|
||||
if (!name) {
|
||||
spdlog::warn("[ClassFileLoadHook] name is null");
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Impl & Delete this
|
||||
spdlog::trace("[ClassFileLoadHook] name: {}", name);
|
||||
}
|
||||
Reference in new issue
Block a user