1 parent
24075fbd52
commit
caac928923
5 files changed
+131
-9
No files matched your search
@@ -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