ESL.i 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. %module ESL
  2. %{
  3. #include "esl.h"
  4. #include "esl_oop.h"
  5. %}
  6. #ifdef SWIGPHP
  7. %newobject ESLconnection::sendRecv();
  8. %newobject ESLconnection::api();
  9. %newobject ESLconnection::bgapi();
  10. %newobject ::getInfo();
  11. %newobject ESLconnection::filter();
  12. %newobject ::recvEvent();
  13. %newobject ::sendEvent();
  14. %newobject ESLconnection::recvEventTimed();
  15. #else
  16. %newobject ESLconnection::sendRecv;
  17. %newobject ESLconnection::api;
  18. %newobject ESLconnection::bgapi;
  19. %newobject ESLconnection::getInfo;
  20. %newobject ESLconnection::filter;
  21. %newobject ESLconnection::sendEvent;
  22. %newobject ESLconnection::recvEvent;
  23. %newobject ESLconnection::recvEventTimed;
  24. %newobject ESLconnection::execute;
  25. %newobject ESLconnection::executeAsync;
  26. #endif
  27. #ifdef SWIGCSHARP
  28. //fix C# keyword event
  29. %rename (Event) ESLevent::event;
  30. // Rename some things to make them more .NET-like
  31. %rename (SerializedString) ESLevent::serialized_string;
  32. %rename (Mine) ESLevent::mine;
  33. %rename (Serialize) ESLevent::serialize;
  34. %rename (SetPriority) ESLevent::setPriority;
  35. %rename (GetHeader) ESLevent::getHeader;
  36. %rename (GetBody) ESLevent::getBody;
  37. %rename (AddBody) ESLevent::addBody;
  38. %rename (AddHeader) ESLevent::addHeader;
  39. %rename (DelHeader) ESLevent::delHeader;
  40. %rename (FirstHeader) ESLevent::firstHeader;
  41. %rename (NextHeader) ESLevent::nextHeader;
  42. %rename (SocketDescriptor) ESLconnection::socketDescriptor;
  43. %rename (Connected) ESLconnection::connected;
  44. %rename (GetInfo) ESLconnection::getInfo;
  45. %rename (Send) ESLconnection::send;
  46. %rename (SendRecv) ESLconnection::sendRecv;
  47. %rename (Api) ESLconnection::api;
  48. %rename (Bgapi) ESLconnection::bgapi;
  49. %rename (SendEvent) ESLconnection::sendEvent;
  50. %rename (RecvEvent) ESLconnection::recvEvent;
  51. %rename (RecvEventTimed) ESLconnection::recvEventTimed;
  52. %rename (Filter) ESLconnection::filter;
  53. %rename (Events) ESLconnection::events;
  54. %rename (Execute) ESLconnection::execute;
  55. %rename (ExecuteAsync) ESLconnection::executeAsync;
  56. %rename (SetAsyncExecute) ESLconnection::setAsyncExecute;
  57. %rename (SetEventLock) ESLconnection::setEventLock;
  58. %rename (Disconnect) ESLconnection::disconnect;
  59. #endif
  60. %include "esl_oop.h"