Expose Core as a Void::Plugin (C ABI + v2 state), additive

Add a CorePlugin adapter (IS-A Void::Plugin::IPlugin and IS-A Core, hence
Api::ICoreInterface) and export the void_plugin_* C ABI from Export.cpp:
create/destroy/info plus the v2 state protocol (serialize/deserialize routed
through Core's already-Void::Json prepareForHotReload/restoreAfterHotReload).
The host recovers the bot interface by dynamic_cast-ing the IPlugin* back to
ICoreInterface*.

Additive: the legacy CreateCore/DestroyCore exports stay, so the current
dylib CoreLoader keeps working while the host migrates to
Void::Plugin::PluginManager. Verified via a dlopen smoke test (symbols
resolve; info/version correct; create/serialize/deserialize/destroy safe on
an uninitialized Core). The live hot-reload + state-survival test under
TeamSpeak is the remaining gate for the host-side loader swap. Link
Void::Plugin.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 4.8 committed 2026-06-22 21:40:42 +03:00
1 parent 32fbffa171
commit aedd3e1692
2 files changed
+91

No files matched your search

+1
View File
@@ -108,6 +108,7 @@ target_link_libraries(EchoionCore
Void::Net
Void::Sqlite
Void::Service
Void::Plugin
PRIVATE
Threads::Threads
qjs