mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
Refactor: replace eventpp with a small typed event bus
- libagent: rewrite EventBus as a type-safe dispatcher keyed by event type; listeners are invoked with the concrete event type instead of 'const void*', and the bus is mutex-protected - libagent: services subscribe/unsubscribe by event type (IService::listen no longer takes an EventId) - libagent: remove the unused MethodEntry/MethodExit events and EventMethodEntry/EventMethodExit structs - build: drop the in-tree eventpp headers (23 files) and its license
This commit is contained in:
1 parent
4c3798735b
commit
5b0a26d49e
31 files changed
+101
-5481
No files matched your search
@@ -15,12 +15,10 @@ public:
|
||||
|
||||
bool onInitialize() override {
|
||||
listen<BytecodeService, EventClassFileLoadHook>(
|
||||
EventId::ClassFileLoadHook,
|
||||
&BytecodeService::captureBytecodes
|
||||
);
|
||||
|
||||
listen<BytecodeService, EventClassFileLoadHook>(
|
||||
EventId::ClassFileLoadHook,
|
||||
&BytecodeService::patchBytecodes
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user