ESL.i 2.0 KB

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