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:
xiaozhou233 committed 2026-10-15 20:58:23 +08:00
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
);