Skip to content

Commit

Permalink
IPC consistent message decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
sgretscher committed Oct 27, 2023
1 parent 0b72002 commit 905e54c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions TestHost/CompanionAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,11 +829,7 @@ class IPCPlugInEntry : public PlugInEntry
std::unique_ptr<PlugInInstance> createPlugInInstance () override
{
size_t remoteInstanceRef {};
ARA::IPC::RemoteCaller::CustomDecodeFunction customDecode { [&remoteInstanceRef] (const ARA::IPC::ARAIPCMessageDecoder* decoder) -> void
{
decoder->readSize (0, &remoteInstanceRef);
} };
ARA::IPC::RemoteCaller { _hostCommandsSender }.remoteCall (customDecode, kIPCCreateEffectMethodID);
ARA::IPC::RemoteCaller { _hostCommandsSender }.remoteCall (remoteInstanceRef, kIPCCreateEffectMethodID);
return std::make_unique<IPCPlugInInstance> (remoteInstanceRef, _port);
}

Expand Down

0 comments on commit 905e54c

Please sign in to comment.