[ESI] Add missing `const` to `Callback::get` argument

The underlying constructor requires a `const BundleType*`...
This commit is contained in:
Morten Borup Petersen 2025-07-25 09:28:10 +00:00
parent d41ea14885
commit a681fefd5e
2 changed files with 5 additions and 3 deletions

View File

@ -308,8 +308,9 @@ public:
PortMap channels);
public:
static Callback *get(AcceleratorConnection &acc, AppID id, BundleType *type,
WriteChannelPort &result, ReadChannelPort &arg);
static Callback *get(AcceleratorConnection &acc, AppID id,
const BundleType *type, WriteChannelPort &result,
ReadChannelPort &arg);
/// Connect a callback to code which will be executed when the accelerator
/// invokes the callback. The 'quick' flag indicates that the callback is

View File

@ -240,7 +240,8 @@ CallService::Callback::Callback(AcceleratorConnection &acc, AppID id,
: ServicePort(id, type, channels), acc(acc) {}
CallService::Callback *CallService::Callback::get(AcceleratorConnection &acc,
AppID id, BundleType *type,
AppID id,
const BundleType *type,
WriteChannelPort &result,
ReadChannelPort &arg) {
return new Callback(acc, id, type, {{"arg", arg}, {"result", result}});