diff --git a/libs/esl/ESL.i b/libs/esl/ESL.i index e9869579ed..116baae360 100644 --- a/libs/esl/ESL.i +++ b/libs/esl/ESL.i @@ -23,4 +23,39 @@ %newobject ESLconnection::executeAsync; #endif + +#ifdef SWIGCSHARP +//fix C# keyword event +%rename (Event) ESLevent::event; +// Rename some things to make them more .NET-like +%rename (SerializedString) ESLevent::serialized_string; +%rename (Mine) ESLevent::mine; +%rename (Serialize) ESLevent::serialize; +%rename (SetPriority) ESLevent::setPriority; +%rename (GetHeader) ESLevent::getHeader; +%rename (GetBody) ESLevent::getBody; +%rename (AddBody) ESLevent::addBody; +%rename (AddHeader) ESLevent::addHeader; +%rename (DelHeader) ESLevent::delHeader; +%rename (FirstHeader) ESLevent::firstHeader; +%rename (NextHeader) ESLevent::nextHeader; +%rename (SocketDescriptor) ESLconnection::socketDescriptor; +%rename (Connected) ESLconnection::connected; +%rename (GetInfo) ESLconnection::getInfo; +%rename (Send) ESLconnection::send; +%rename (SendRecv) ESLconnection::sendRecv; +%rename (Api) ESLconnection::api; +%rename (Bgapi) ESLconnection::bgapi; +%rename (SendEvent) ESLconnection::sendEvent; +%rename (RecvEvent) ESLconnection::recvEvent; +%rename (RecvEventTimed) ESLconnection::recvEventTimed; +%rename (Filter) ESLconnection::filter; +%rename (Events) ESLconnection::events; +%rename (Execute) ESLconnection::execute; +%rename (ExecuteAsync) ESLconnection::executeAsync; +%rename (SetAsyncExecute) ESLconnection::setAsyncExecute; +%rename (SetEventLock) ESLconnection::setEventLock; +%rename (Disconnect) ESLconnection::disconnect; +#endif + %include "esl_oop.h"