Merge branch 'clients/inter_client_comms' into feature/BufSTFT
commit
56a8fb1c5c
@ -0,0 +1,51 @@
|
||||
|
||||
#include "CopyReplyAddress.hpp"
|
||||
#include <SC_Win32Utils.h>
|
||||
#include <SC_ReplyImpl.hpp>
|
||||
|
||||
namespace fluid{
|
||||
namespace client{
|
||||
|
||||
void* copyReplyAddress(InterfaceTable* ft, World* inWorld, void* inreply)
|
||||
{
|
||||
|
||||
if(! inreply) return nullptr;
|
||||
|
||||
ReplyAddress* reply = (ReplyAddress*)ft->fRTAlloc(inWorld, sizeof(ReplyAddress));
|
||||
|
||||
*reply = *(static_cast<ReplyAddress*>(inreply));
|
||||
|
||||
return reply;
|
||||
}
|
||||
|
||||
void deleteReplyAddress(InterfaceTable* ft, World* inWorld, void* inreply)
|
||||
{
|
||||
if(! inreply) return;
|
||||
ft->fRTFree(inWorld,(ReplyAddress*)inreply);
|
||||
}
|
||||
|
||||
void* copyReplyAddress(void* inreply)
|
||||
{
|
||||
|
||||
if(! inreply) return nullptr;
|
||||
|
||||
ReplyAddress* reply = new ReplyAddress();
|
||||
|
||||
*reply = *(static_cast<ReplyAddress*>(inreply));
|
||||
|
||||
return reply;
|
||||
}
|
||||
|
||||
void deleteReplyAddress(void* inreply)
|
||||
{
|
||||
if(! inreply) return;
|
||||
delete (ReplyAddress*)inreply;
|
||||
}
|
||||
|
||||
void SendReply(void* inReplyAddr, char* inBuf, int inSize) {
|
||||
SendReply(static_cast<ReplyAddress*>(inReplyAddr),inBuf,inSize);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue