2009-02-16 19:27:28 -05:00
|
|
|
%{
|
|
|
|
#include "esl.h"
|
|
|
|
#include "esl_oop.h"
|
|
|
|
%}
|
|
|
|
|
2009-09-02 16:28:43 -04:00
|
|
|
#ifdef SWIGPHP
|
|
|
|
%newobject ESLconnection::sendRecv();
|
|
|
|
%newobject ESLconnection::api();
|
|
|
|
%newobject ESLconnection::bgapi();
|
|
|
|
%newobject ::getInfo();
|
|
|
|
%newobject ESLconnection::filter();
|
|
|
|
%newobject ::recvEvent();
|
2010-03-05 18:10:41 -05:00
|
|
|
%newobject ::sendEvent();
|
2009-09-02 16:28:43 -04:00
|
|
|
%newobject ESLconnection::recvEventTimed();
|
|
|
|
#else
|
2009-07-08 12:35:22 -04:00
|
|
|
%newobject ESLconnection::sendRecv;
|
|
|
|
%newobject ESLconnection::api;
|
|
|
|
%newobject ESLconnection::bgapi;
|
|
|
|
%newobject ESLconnection::getInfo;
|
|
|
|
%newobject ESLconnection::filter;
|
2010-03-05 18:10:41 -05:00
|
|
|
%newobject ESLconnection::sendEvent;
|
2009-07-08 12:35:22 -04:00
|
|
|
%newobject ESLconnection::recvEvent;
|
|
|
|
%newobject ESLconnection::recvEventTimed;
|
2009-12-15 14:45:47 -05:00
|
|
|
%newobject ESLconnection::execute;
|
|
|
|
%newobject ESLconnection::executeAsync;
|
2009-09-02 16:28:43 -04:00
|
|
|
#endif
|
2009-02-17 16:41:06 -05:00
|
|
|
|
2010-01-26 21:08:41 -05:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2009-02-17 18:18:28 -05:00
|
|
|
%include "esl_oop.h"
|