You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1009 B
C++
52 lines
1009 B
C++
|
|
#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);
|
|
}
|
|
|
|
|
|
}
|
|
}
|