1 parent
24075fbd52
commit
caac928923
5 files changed
+131
-9
No files matched your search
@@ -158,6 +158,19 @@ namespace Echoion::Api
|
||||
// on the new Core (state-transfer corruption on hot reload). Only
|
||||
// ever add new virtuals at the very end.
|
||||
virtual Result<void> reloadConfig() = 0;
|
||||
|
||||
// Managed extension reconciliation for the host updater. The
|
||||
// request and response are versioned JSON documents so the plugin
|
||||
// package format can evolve without exposing Core implementation
|
||||
// types here. Append-only ABI: do not move this entry above
|
||||
// existing methods.
|
||||
[[nodiscard]] virtual Result<std::string>
|
||||
managePluginsJson(const std::string& /*requestJson*/)
|
||||
{
|
||||
return fail(
|
||||
ErrorCode::NotSupported,
|
||||
"managed plugin updates are not supported by this Core");
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace Echoion::Api
|
||||
@@ -195,6 +195,19 @@ namespace Echoion::Api
|
||||
registerEventCallback(const EventCallback& callback) = 0;
|
||||
virtual void
|
||||
unregisterEventCallback(const EventCallback& callback) = 0;
|
||||
|
||||
// Host-owned control plane. Keep this generic JSON operation at the
|
||||
// very end of the ABI so updater/service operations can evolve
|
||||
// without shifting existing vtable entries. Hosts that do not
|
||||
// expose a control plane retain the previous behavior through this
|
||||
// default.
|
||||
[[nodiscard]] virtual Result<std::string>
|
||||
hostControl(const std::string& /*method*/,
|
||||
const std::string& /*requestJson*/)
|
||||
{
|
||||
return fail(ErrorCode::NotSupported,
|
||||
"host control is not supported by this host");
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace Echoion::Api
|
||||
Reference in new issue
Block a user