esl_wrap.cpp 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 3.0.12
  4. *
  5. * This file is not intended to be easily readable and contains a number of
  6. * coding conventions designed to improve portability and efficiency. Do not make
  7. * changes to this file unless you know what you are doing--modify the SWIG
  8. * interface file instead.
  9. * ----------------------------------------------------------------------------- */
  10. #ifndef SWIGCSHARP
  11. #define SWIGCSHARP
  12. #endif
  13. #ifdef __cplusplus
  14. /* SwigValueWrapper is described in swig.swg */
  15. template<typename T> class SwigValueWrapper {
  16. struct SwigMovePointer {
  17. T *ptr;
  18. SwigMovePointer(T *p) : ptr(p) { }
  19. ~SwigMovePointer() { delete ptr; }
  20. SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  21. } pointer;
  22. SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  23. SwigValueWrapper(const SwigValueWrapper<T>& rhs);
  24. public:
  25. SwigValueWrapper() : pointer(0) { }
  26. SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  27. operator T&() const { return *pointer.ptr; }
  28. T *operator&() { return pointer.ptr; }
  29. };
  30. template <typename T> T SwigValueInit() {
  31. return T();
  32. }
  33. #endif
  34. /* -----------------------------------------------------------------------------
  35. * This section contains generic SWIG labels for method/variable
  36. * declarations/attributes, and other compiler dependent labels.
  37. * ----------------------------------------------------------------------------- */
  38. /* template workaround for compilers that cannot correctly implement the C++ standard */
  39. #ifndef SWIGTEMPLATEDISAMBIGUATOR
  40. # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
  41. # define SWIGTEMPLATEDISAMBIGUATOR template
  42. # elif defined(__HP_aCC)
  43. /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
  44. /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
  45. # define SWIGTEMPLATEDISAMBIGUATOR template
  46. # else
  47. # define SWIGTEMPLATEDISAMBIGUATOR
  48. # endif
  49. #endif
  50. /* inline attribute */
  51. #ifndef SWIGINLINE
  52. # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
  53. # define SWIGINLINE inline
  54. # else
  55. # define SWIGINLINE
  56. # endif
  57. #endif
  58. /* attribute recognised by some compilers to avoid 'unused' warnings */
  59. #ifndef SWIGUNUSED
  60. # if defined(__GNUC__)
  61. # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
  62. # define SWIGUNUSED __attribute__ ((__unused__))
  63. # else
  64. # define SWIGUNUSED
  65. # endif
  66. # elif defined(__ICC)
  67. # define SWIGUNUSED __attribute__ ((__unused__))
  68. # else
  69. # define SWIGUNUSED
  70. # endif
  71. #endif
  72. #ifndef SWIG_MSC_UNSUPPRESS_4505
  73. # if defined(_MSC_VER)
  74. # pragma warning(disable : 4505) /* unreferenced local function has been removed */
  75. # endif
  76. #endif
  77. #ifndef SWIGUNUSEDPARM
  78. # ifdef __cplusplus
  79. # define SWIGUNUSEDPARM(p)
  80. # else
  81. # define SWIGUNUSEDPARM(p) p SWIGUNUSED
  82. # endif
  83. #endif
  84. /* internal SWIG method */
  85. #ifndef SWIGINTERN
  86. # define SWIGINTERN static SWIGUNUSED
  87. #endif
  88. /* internal inline SWIG method */
  89. #ifndef SWIGINTERNINLINE
  90. # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
  91. #endif
  92. /* exporting methods */
  93. #if defined(__GNUC__)
  94. # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
  95. # ifndef GCC_HASCLASSVISIBILITY
  96. # define GCC_HASCLASSVISIBILITY
  97. # endif
  98. # endif
  99. #endif
  100. #ifndef SWIGEXPORT
  101. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  102. # if defined(STATIC_LINKED)
  103. # define SWIGEXPORT
  104. # else
  105. # define SWIGEXPORT __declspec(dllexport)
  106. # endif
  107. # else
  108. # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
  109. # define SWIGEXPORT __attribute__ ((visibility("default")))
  110. # else
  111. # define SWIGEXPORT
  112. # endif
  113. # endif
  114. #endif
  115. /* calling conventions for Windows */
  116. #ifndef SWIGSTDCALL
  117. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  118. # define SWIGSTDCALL __stdcall
  119. # else
  120. # define SWIGSTDCALL
  121. # endif
  122. #endif
  123. /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
  124. #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
  125. # define _CRT_SECURE_NO_DEPRECATE
  126. #endif
  127. /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
  128. #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
  129. # define _SCL_SECURE_NO_DEPRECATE
  130. #endif
  131. /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
  132. #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
  133. # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
  134. #endif
  135. /* Intel's compiler complains if a variable which was never initialised is
  136. * cast to void, which is a common idiom which we use to indicate that we
  137. * are aware a variable isn't used. So we just silence that warning.
  138. * See: https://github.com/swig/swig/issues/192 for more discussion.
  139. */
  140. #ifdef __INTEL_COMPILER
  141. # pragma warning disable 592
  142. #endif
  143. #include <stdlib.h>
  144. #include <string.h>
  145. #include <stdio.h>
  146. /* Support for throwing C# exceptions from C/C++. There are two types:
  147. * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */
  148. typedef enum {
  149. SWIG_CSharpApplicationException,
  150. SWIG_CSharpArithmeticException,
  151. SWIG_CSharpDivideByZeroException,
  152. SWIG_CSharpIndexOutOfRangeException,
  153. SWIG_CSharpInvalidCastException,
  154. SWIG_CSharpInvalidOperationException,
  155. SWIG_CSharpIOException,
  156. SWIG_CSharpNullReferenceException,
  157. SWIG_CSharpOutOfMemoryException,
  158. SWIG_CSharpOverflowException,
  159. SWIG_CSharpSystemException
  160. } SWIG_CSharpExceptionCodes;
  161. typedef enum {
  162. SWIG_CSharpArgumentException,
  163. SWIG_CSharpArgumentNullException,
  164. SWIG_CSharpArgumentOutOfRangeException
  165. } SWIG_CSharpExceptionArgumentCodes;
  166. typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *);
  167. typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *);
  168. typedef struct {
  169. SWIG_CSharpExceptionCodes code;
  170. SWIG_CSharpExceptionCallback_t callback;
  171. } SWIG_CSharpException_t;
  172. typedef struct {
  173. SWIG_CSharpExceptionArgumentCodes code;
  174. SWIG_CSharpExceptionArgumentCallback_t callback;
  175. } SWIG_CSharpExceptionArgument_t;
  176. static SWIG_CSharpException_t SWIG_csharp_exceptions[] = {
  177. { SWIG_CSharpApplicationException, NULL },
  178. { SWIG_CSharpArithmeticException, NULL },
  179. { SWIG_CSharpDivideByZeroException, NULL },
  180. { SWIG_CSharpIndexOutOfRangeException, NULL },
  181. { SWIG_CSharpInvalidCastException, NULL },
  182. { SWIG_CSharpInvalidOperationException, NULL },
  183. { SWIG_CSharpIOException, NULL },
  184. { SWIG_CSharpNullReferenceException, NULL },
  185. { SWIG_CSharpOutOfMemoryException, NULL },
  186. { SWIG_CSharpOverflowException, NULL },
  187. { SWIG_CSharpSystemException, NULL }
  188. };
  189. static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
  190. { SWIG_CSharpArgumentException, NULL },
  191. { SWIG_CSharpArgumentNullException, NULL },
  192. { SWIG_CSharpArgumentOutOfRangeException, NULL }
  193. };
  194. static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
  195. SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback;
  196. if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) {
  197. callback = SWIG_csharp_exceptions[code].callback;
  198. }
  199. callback(msg);
  200. }
  201. static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) {
  202. SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback;
  203. if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
  204. callback = SWIG_csharp_exceptions_argument[code].callback;
  205. }
  206. callback(msg, param_name);
  207. }
  208. #ifdef __cplusplus
  209. extern "C"
  210. #endif
  211. SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_ESL(
  212. SWIG_CSharpExceptionCallback_t applicationCallback,
  213. SWIG_CSharpExceptionCallback_t arithmeticCallback,
  214. SWIG_CSharpExceptionCallback_t divideByZeroCallback,
  215. SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback,
  216. SWIG_CSharpExceptionCallback_t invalidCastCallback,
  217. SWIG_CSharpExceptionCallback_t invalidOperationCallback,
  218. SWIG_CSharpExceptionCallback_t ioCallback,
  219. SWIG_CSharpExceptionCallback_t nullReferenceCallback,
  220. SWIG_CSharpExceptionCallback_t outOfMemoryCallback,
  221. SWIG_CSharpExceptionCallback_t overflowCallback,
  222. SWIG_CSharpExceptionCallback_t systemCallback) {
  223. SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback;
  224. SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback;
  225. SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback;
  226. SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback;
  227. SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback;
  228. SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback;
  229. SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback;
  230. SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback;
  231. SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback;
  232. SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback;
  233. SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback;
  234. }
  235. #ifdef __cplusplus
  236. extern "C"
  237. #endif
  238. SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_ESL(
  239. SWIG_CSharpExceptionArgumentCallback_t argumentCallback,
  240. SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback,
  241. SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) {
  242. SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback;
  243. SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback;
  244. SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback;
  245. }
  246. /* Callback for returning strings to C# without leaking memory */
  247. typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
  248. static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL;
  249. #ifdef __cplusplus
  250. extern "C"
  251. #endif
  252. SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_ESL(SWIG_CSharpStringHelperCallback callback) {
  253. SWIG_csharp_string_callback = callback;
  254. }
  255. /* Contract support */
  256. #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else
  257. #include "esl.h"
  258. #include "esl_oop.h"
  259. #ifdef __cplusplus
  260. extern "C" {
  261. #endif
  262. SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_Event_set(void * jarg1, void * jarg2) {
  263. ESLevent *arg1 = (ESLevent *) 0 ;
  264. esl_event_t *arg2 = (esl_event_t *) 0 ;
  265. arg1 = (ESLevent *)jarg1;
  266. arg2 = (esl_event_t *)jarg2;
  267. if (arg1) (arg1)->event = arg2;
  268. }
  269. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLevent_Event_get(void * jarg1) {
  270. void * jresult ;
  271. ESLevent *arg1 = (ESLevent *) 0 ;
  272. esl_event_t *result = 0 ;
  273. arg1 = (ESLevent *)jarg1;
  274. result = (esl_event_t *) ((arg1)->event);
  275. jresult = (void *)result;
  276. return jresult;
  277. }
  278. SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_SerializedString_set(void * jarg1, char * jarg2) {
  279. ESLevent *arg1 = (ESLevent *) 0 ;
  280. char *arg2 = (char *) 0 ;
  281. arg1 = (ESLevent *)jarg1;
  282. arg2 = (char *)jarg2;
  283. {
  284. delete [] arg1->serialized_string;
  285. if (arg2) {
  286. arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
  287. strcpy((char *)arg1->serialized_string, (const char *)arg2);
  288. } else {
  289. arg1->serialized_string = 0;
  290. }
  291. }
  292. }
  293. SWIGEXPORT char * SWIGSTDCALL CSharp_ESLevent_SerializedString_get(void * jarg1) {
  294. char * jresult ;
  295. ESLevent *arg1 = (ESLevent *) 0 ;
  296. char *result = 0 ;
  297. arg1 = (ESLevent *)jarg1;
  298. result = (char *) ((arg1)->serialized_string);
  299. jresult = SWIG_csharp_string_callback((const char *)result);
  300. return jresult;
  301. }
  302. SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_Mine_set(void * jarg1, int jarg2) {
  303. ESLevent *arg1 = (ESLevent *) 0 ;
  304. int arg2 ;
  305. arg1 = (ESLevent *)jarg1;
  306. arg2 = (int)jarg2;
  307. if (arg1) (arg1)->mine = arg2;
  308. }
  309. SWIGEXPORT int SWIGSTDCALL CSharp_ESLevent_Mine_get(void * jarg1) {
  310. int jresult ;
  311. ESLevent *arg1 = (ESLevent *) 0 ;
  312. int result;
  313. arg1 = (ESLevent *)jarg1;
  314. result = (int) ((arg1)->mine);
  315. jresult = result;
  316. return jresult;
  317. }
  318. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLevent__SWIG_0(char * jarg1, char * jarg2) {
  319. void * jresult ;
  320. char *arg1 = (char *) 0 ;
  321. char *arg2 = (char *) NULL ;
  322. ESLevent *result = 0 ;
  323. arg1 = (char *)jarg1;
  324. arg2 = (char *)jarg2;
  325. result = (ESLevent *)new ESLevent((char const *)arg1,(char const *)arg2);
  326. jresult = (void *)result;
  327. return jresult;
  328. }
  329. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLevent__SWIG_1(void * jarg1, int jarg2) {
  330. void * jresult ;
  331. esl_event_t *arg1 = (esl_event_t *) 0 ;
  332. int arg2 = (int) 0 ;
  333. ESLevent *result = 0 ;
  334. arg1 = (esl_event_t *)jarg1;
  335. arg2 = (int)jarg2;
  336. result = (ESLevent *)new ESLevent(arg1,arg2);
  337. jresult = (void *)result;
  338. return jresult;
  339. }
  340. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLevent__SWIG_2(void * jarg1) {
  341. void * jresult ;
  342. ESLevent *arg1 = (ESLevent *) 0 ;
  343. ESLevent *result = 0 ;
  344. arg1 = (ESLevent *)jarg1;
  345. result = (ESLevent *)new ESLevent(arg1);
  346. jresult = (void *)result;
  347. return jresult;
  348. }
  349. SWIGEXPORT void SWIGSTDCALL CSharp_delete_ESLevent(void * jarg1) {
  350. ESLevent *arg1 = (ESLevent *) 0 ;
  351. arg1 = (ESLevent *)jarg1;
  352. delete arg1;
  353. }
  354. SWIGEXPORT char * SWIGSTDCALL CSharp_ESLevent_Serialize(void * jarg1, char * jarg2) {
  355. char * jresult ;
  356. ESLevent *arg1 = (ESLevent *) 0 ;
  357. char *arg2 = (char *) NULL ;
  358. char *result = 0 ;
  359. arg1 = (ESLevent *)jarg1;
  360. arg2 = (char *)jarg2;
  361. result = (char *)(arg1)->serialize((char const *)arg2);
  362. jresult = SWIG_csharp_string_callback((const char *)result);
  363. return jresult;
  364. }
  365. SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_SetPriority(void * jarg1, void * jarg2) {
  366. unsigned int jresult ;
  367. ESLevent *arg1 = (ESLevent *) 0 ;
  368. esl_priority_t arg2 = (esl_priority_t) ESL_PRIORITY_NORMAL ;
  369. esl_priority_t *argp2 ;
  370. bool result;
  371. arg1 = (ESLevent *)jarg1;
  372. argp2 = (esl_priority_t *)jarg2;
  373. if (!argp2) {
  374. SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null esl_priority_t", 0);
  375. return 0;
  376. }
  377. arg2 = *argp2;
  378. result = (bool)(arg1)->setPriority(arg2);
  379. jresult = result;
  380. return jresult;
  381. }
  382. SWIGEXPORT char * SWIGSTDCALL CSharp_ESLevent_GetHeader(void * jarg1, char * jarg2, int jarg3) {
  383. char * jresult ;
  384. ESLevent *arg1 = (ESLevent *) 0 ;
  385. char *arg2 = (char *) 0 ;
  386. int arg3 = (int) -1 ;
  387. char *result = 0 ;
  388. arg1 = (ESLevent *)jarg1;
  389. arg2 = (char *)jarg2;
  390. arg3 = (int)jarg3;
  391. result = (char *)(arg1)->getHeader((char const *)arg2,arg3);
  392. jresult = SWIG_csharp_string_callback((const char *)result);
  393. return jresult;
  394. }
  395. SWIGEXPORT char * SWIGSTDCALL CSharp_ESLevent_GetBody(void * jarg1) {
  396. char * jresult ;
  397. ESLevent *arg1 = (ESLevent *) 0 ;
  398. char *result = 0 ;
  399. arg1 = (ESLevent *)jarg1;
  400. result = (char *)(arg1)->getBody();
  401. jresult = SWIG_csharp_string_callback((const char *)result);
  402. return jresult;
  403. }
  404. SWIGEXPORT char * SWIGSTDCALL CSharp_ESLevent_getType(void * jarg1) {
  405. char * jresult ;
  406. ESLevent *arg1 = (ESLevent *) 0 ;
  407. char *result = 0 ;
  408. arg1 = (ESLevent *)jarg1;
  409. result = (char *)(arg1)->getType();
  410. jresult = SWIG_csharp_string_callback((const char *)result);
  411. return jresult;
  412. }
  413. SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_AddBody(void * jarg1, char * jarg2) {
  414. unsigned int jresult ;
  415. ESLevent *arg1 = (ESLevent *) 0 ;
  416. char *arg2 = (char *) 0 ;
  417. bool result;
  418. arg1 = (ESLevent *)jarg1;
  419. arg2 = (char *)jarg2;
  420. result = (bool)(arg1)->addBody((char const *)arg2);
  421. jresult = result;
  422. return jresult;
  423. }
  424. SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_AddHeader(void * jarg1, char * jarg2, char * jarg3) {
  425. unsigned int jresult ;
  426. ESLevent *arg1 = (ESLevent *) 0 ;
  427. char *arg2 = (char *) 0 ;
  428. char *arg3 = (char *) 0 ;
  429. bool result;
  430. arg1 = (ESLevent *)jarg1;
  431. arg2 = (char *)jarg2;
  432. arg3 = (char *)jarg3;
  433. result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
  434. jresult = result;
  435. return jresult;
  436. }
  437. SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_pushHeader(void * jarg1, char * jarg2, char * jarg3) {
  438. unsigned int jresult ;
  439. ESLevent *arg1 = (ESLevent *) 0 ;
  440. char *arg2 = (char *) 0 ;
  441. char *arg3 = (char *) 0 ;
  442. bool result;
  443. arg1 = (ESLevent *)jarg1;
  444. arg2 = (char *)jarg2;
  445. arg3 = (char *)jarg3;
  446. result = (bool)(arg1)->pushHeader((char const *)arg2,(char const *)arg3);
  447. jresult = result;
  448. return jresult;
  449. }
  450. SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_unshiftHeader(void * jarg1, char * jarg2, char * jarg3) {
  451. unsigned int jresult ;
  452. ESLevent *arg1 = (ESLevent *) 0 ;
  453. char *arg2 = (char *) 0 ;
  454. char *arg3 = (char *) 0 ;
  455. bool result;
  456. arg1 = (ESLevent *)jarg1;
  457. arg2 = (char *)jarg2;
  458. arg3 = (char *)jarg3;
  459. result = (bool)(arg1)->unshiftHeader((char const *)arg2,(char const *)arg3);
  460. jresult = result;
  461. return jresult;
  462. }
  463. SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_DelHeader(void * jarg1, char * jarg2) {
  464. unsigned int jresult ;
  465. ESLevent *arg1 = (ESLevent *) 0 ;
  466. char *arg2 = (char *) 0 ;
  467. bool result;
  468. arg1 = (ESLevent *)jarg1;
  469. arg2 = (char *)jarg2;
  470. result = (bool)(arg1)->delHeader((char const *)arg2);
  471. jresult = result;
  472. return jresult;
  473. }
  474. SWIGEXPORT char * SWIGSTDCALL CSharp_ESLevent_FirstHeader(void * jarg1) {
  475. char * jresult ;
  476. ESLevent *arg1 = (ESLevent *) 0 ;
  477. char *result = 0 ;
  478. arg1 = (ESLevent *)jarg1;
  479. result = (char *)(arg1)->firstHeader();
  480. jresult = SWIG_csharp_string_callback((const char *)result);
  481. return jresult;
  482. }
  483. SWIGEXPORT char * SWIGSTDCALL CSharp_ESLevent_NextHeader(void * jarg1) {
  484. char * jresult ;
  485. ESLevent *arg1 = (ESLevent *) 0 ;
  486. char *result = 0 ;
  487. arg1 = (ESLevent *)jarg1;
  488. result = (char *)(arg1)->nextHeader();
  489. jresult = SWIG_csharp_string_callback((const char *)result);
  490. return jresult;
  491. }
  492. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLconnection__SWIG_0(char * jarg1, int jarg2, char * jarg3, char * jarg4) {
  493. void * jresult ;
  494. char *arg1 = (char *) 0 ;
  495. int arg2 ;
  496. char *arg3 = (char *) 0 ;
  497. char *arg4 = (char *) 0 ;
  498. ESLconnection *result = 0 ;
  499. arg1 = (char *)jarg1;
  500. arg2 = (int)jarg2;
  501. arg3 = (char *)jarg3;
  502. arg4 = (char *)jarg4;
  503. result = (ESLconnection *)new ESLconnection((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4);
  504. jresult = (void *)result;
  505. return jresult;
  506. }
  507. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLconnection__SWIG_1(char * jarg1, int jarg2, char * jarg3) {
  508. void * jresult ;
  509. char *arg1 = (char *) 0 ;
  510. int arg2 ;
  511. char *arg3 = (char *) 0 ;
  512. ESLconnection *result = 0 ;
  513. arg1 = (char *)jarg1;
  514. arg2 = (int)jarg2;
  515. arg3 = (char *)jarg3;
  516. result = (ESLconnection *)new ESLconnection((char const *)arg1,arg2,(char const *)arg3);
  517. jresult = (void *)result;
  518. return jresult;
  519. }
  520. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLconnection__SWIG_2(char * jarg1, char * jarg2, char * jarg3, char * jarg4) {
  521. void * jresult ;
  522. char *arg1 = (char *) 0 ;
  523. char *arg2 = (char *) 0 ;
  524. char *arg3 = (char *) 0 ;
  525. char *arg4 = (char *) 0 ;
  526. ESLconnection *result = 0 ;
  527. arg1 = (char *)jarg1;
  528. arg2 = (char *)jarg2;
  529. arg3 = (char *)jarg3;
  530. arg4 = (char *)jarg4;
  531. result = (ESLconnection *)new ESLconnection((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
  532. jresult = (void *)result;
  533. return jresult;
  534. }
  535. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLconnection__SWIG_3(char * jarg1, char * jarg2, char * jarg3) {
  536. void * jresult ;
  537. char *arg1 = (char *) 0 ;
  538. char *arg2 = (char *) 0 ;
  539. char *arg3 = (char *) 0 ;
  540. ESLconnection *result = 0 ;
  541. arg1 = (char *)jarg1;
  542. arg2 = (char *)jarg2;
  543. arg3 = (char *)jarg3;
  544. result = (ESLconnection *)new ESLconnection((char const *)arg1,(char const *)arg2,(char const *)arg3);
  545. jresult = (void *)result;
  546. return jresult;
  547. }
  548. SWIGEXPORT void * SWIGSTDCALL CSharp_new_ESLconnection__SWIG_4(int jarg1) {
  549. void * jresult ;
  550. int arg1 ;
  551. ESLconnection *result = 0 ;
  552. arg1 = (int)jarg1;
  553. result = (ESLconnection *)new ESLconnection(arg1);
  554. jresult = (void *)result;
  555. return jresult;
  556. }
  557. SWIGEXPORT void SWIGSTDCALL CSharp_delete_ESLconnection(void * jarg1) {
  558. ESLconnection *arg1 = (ESLconnection *) 0 ;
  559. arg1 = (ESLconnection *)jarg1;
  560. delete arg1;
  561. }
  562. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_SocketDescriptor(void * jarg1) {
  563. int jresult ;
  564. ESLconnection *arg1 = (ESLconnection *) 0 ;
  565. int result;
  566. arg1 = (ESLconnection *)jarg1;
  567. result = (int)(arg1)->socketDescriptor();
  568. jresult = result;
  569. return jresult;
  570. }
  571. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_Connected(void * jarg1) {
  572. int jresult ;
  573. ESLconnection *arg1 = (ESLconnection *) 0 ;
  574. int result;
  575. arg1 = (ESLconnection *)jarg1;
  576. result = (int)(arg1)->connected();
  577. jresult = result;
  578. return jresult;
  579. }
  580. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_GetInfo(void * jarg1) {
  581. void * jresult ;
  582. ESLconnection *arg1 = (ESLconnection *) 0 ;
  583. ESLevent *result = 0 ;
  584. arg1 = (ESLconnection *)jarg1;
  585. result = (ESLevent *)(arg1)->getInfo();
  586. jresult = (void *)result;
  587. return jresult;
  588. }
  589. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_Send(void * jarg1, char * jarg2) {
  590. int jresult ;
  591. ESLconnection *arg1 = (ESLconnection *) 0 ;
  592. char *arg2 = (char *) 0 ;
  593. int result;
  594. arg1 = (ESLconnection *)jarg1;
  595. arg2 = (char *)jarg2;
  596. result = (int)(arg1)->send((char const *)arg2);
  597. jresult = result;
  598. return jresult;
  599. }
  600. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_SendRecv(void * jarg1, char * jarg2) {
  601. void * jresult ;
  602. ESLconnection *arg1 = (ESLconnection *) 0 ;
  603. char *arg2 = (char *) 0 ;
  604. ESLevent *result = 0 ;
  605. arg1 = (ESLconnection *)jarg1;
  606. arg2 = (char *)jarg2;
  607. result = (ESLevent *)(arg1)->sendRecv((char const *)arg2);
  608. jresult = (void *)result;
  609. return jresult;
  610. }
  611. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_Api(void * jarg1, char * jarg2, char * jarg3) {
  612. void * jresult ;
  613. ESLconnection *arg1 = (ESLconnection *) 0 ;
  614. char *arg2 = (char *) 0 ;
  615. char *arg3 = (char *) NULL ;
  616. ESLevent *result = 0 ;
  617. arg1 = (ESLconnection *)jarg1;
  618. arg2 = (char *)jarg2;
  619. arg3 = (char *)jarg3;
  620. result = (ESLevent *)(arg1)->api((char const *)arg2,(char const *)arg3);
  621. jresult = (void *)result;
  622. return jresult;
  623. }
  624. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_Bgapi(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
  625. void * jresult ;
  626. ESLconnection *arg1 = (ESLconnection *) 0 ;
  627. char *arg2 = (char *) 0 ;
  628. char *arg3 = (char *) NULL ;
  629. char *arg4 = (char *) NULL ;
  630. ESLevent *result = 0 ;
  631. arg1 = (ESLconnection *)jarg1;
  632. arg2 = (char *)jarg2;
  633. arg3 = (char *)jarg3;
  634. arg4 = (char *)jarg4;
  635. result = (ESLevent *)(arg1)->bgapi((char const *)arg2,(char const *)arg3,(char const *)arg4);
  636. jresult = (void *)result;
  637. return jresult;
  638. }
  639. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_SendEvent(void * jarg1, void * jarg2) {
  640. void * jresult ;
  641. ESLconnection *arg1 = (ESLconnection *) 0 ;
  642. ESLevent *arg2 = (ESLevent *) 0 ;
  643. ESLevent *result = 0 ;
  644. arg1 = (ESLconnection *)jarg1;
  645. arg2 = (ESLevent *)jarg2;
  646. result = (ESLevent *)(arg1)->sendEvent(arg2);
  647. jresult = (void *)result;
  648. return jresult;
  649. }
  650. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_sendMSG(void * jarg1, void * jarg2, char * jarg3) {
  651. int jresult ;
  652. ESLconnection *arg1 = (ESLconnection *) 0 ;
  653. ESLevent *arg2 = (ESLevent *) 0 ;
  654. char *arg3 = (char *) NULL ;
  655. int result;
  656. arg1 = (ESLconnection *)jarg1;
  657. arg2 = (ESLevent *)jarg2;
  658. arg3 = (char *)jarg3;
  659. result = (int)(arg1)->sendMSG(arg2,(char const *)arg3);
  660. jresult = result;
  661. return jresult;
  662. }
  663. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_RecvEvent(void * jarg1) {
  664. void * jresult ;
  665. ESLconnection *arg1 = (ESLconnection *) 0 ;
  666. ESLevent *result = 0 ;
  667. arg1 = (ESLconnection *)jarg1;
  668. result = (ESLevent *)(arg1)->recvEvent();
  669. jresult = (void *)result;
  670. return jresult;
  671. }
  672. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_RecvEventTimed(void * jarg1, int jarg2) {
  673. void * jresult ;
  674. ESLconnection *arg1 = (ESLconnection *) 0 ;
  675. int arg2 ;
  676. ESLevent *result = 0 ;
  677. arg1 = (ESLconnection *)jarg1;
  678. arg2 = (int)jarg2;
  679. result = (ESLevent *)(arg1)->recvEventTimed(arg2);
  680. jresult = (void *)result;
  681. return jresult;
  682. }
  683. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_Filter(void * jarg1, char * jarg2, char * jarg3) {
  684. void * jresult ;
  685. ESLconnection *arg1 = (ESLconnection *) 0 ;
  686. char *arg2 = (char *) 0 ;
  687. char *arg3 = (char *) 0 ;
  688. ESLevent *result = 0 ;
  689. arg1 = (ESLconnection *)jarg1;
  690. arg2 = (char *)jarg2;
  691. arg3 = (char *)jarg3;
  692. result = (ESLevent *)(arg1)->filter((char const *)arg2,(char const *)arg3);
  693. jresult = (void *)result;
  694. return jresult;
  695. }
  696. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_Events(void * jarg1, char * jarg2, char * jarg3) {
  697. int jresult ;
  698. ESLconnection *arg1 = (ESLconnection *) 0 ;
  699. char *arg2 = (char *) 0 ;
  700. char *arg3 = (char *) 0 ;
  701. int result;
  702. arg1 = (ESLconnection *)jarg1;
  703. arg2 = (char *)jarg2;
  704. arg3 = (char *)jarg3;
  705. result = (int)(arg1)->events((char const *)arg2,(char const *)arg3);
  706. jresult = result;
  707. return jresult;
  708. }
  709. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_Execute(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
  710. void * jresult ;
  711. ESLconnection *arg1 = (ESLconnection *) 0 ;
  712. char *arg2 = (char *) 0 ;
  713. char *arg3 = (char *) NULL ;
  714. char *arg4 = (char *) NULL ;
  715. ESLevent *result = 0 ;
  716. arg1 = (ESLconnection *)jarg1;
  717. arg2 = (char *)jarg2;
  718. arg3 = (char *)jarg3;
  719. arg4 = (char *)jarg4;
  720. result = (ESLevent *)(arg1)->execute((char const *)arg2,(char const *)arg3,(char const *)arg4);
  721. jresult = (void *)result;
  722. return jresult;
  723. }
  724. SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_ExecuteAsync(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
  725. void * jresult ;
  726. ESLconnection *arg1 = (ESLconnection *) 0 ;
  727. char *arg2 = (char *) 0 ;
  728. char *arg3 = (char *) NULL ;
  729. char *arg4 = (char *) NULL ;
  730. ESLevent *result = 0 ;
  731. arg1 = (ESLconnection *)jarg1;
  732. arg2 = (char *)jarg2;
  733. arg3 = (char *)jarg3;
  734. arg4 = (char *)jarg4;
  735. result = (ESLevent *)(arg1)->executeAsync((char const *)arg2,(char const *)arg3,(char const *)arg4);
  736. jresult = (void *)result;
  737. return jresult;
  738. }
  739. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_SetAsyncExecute(void * jarg1, char * jarg2) {
  740. int jresult ;
  741. ESLconnection *arg1 = (ESLconnection *) 0 ;
  742. char *arg2 = (char *) 0 ;
  743. int result;
  744. arg1 = (ESLconnection *)jarg1;
  745. arg2 = (char *)jarg2;
  746. result = (int)(arg1)->setAsyncExecute((char const *)arg2);
  747. jresult = result;
  748. return jresult;
  749. }
  750. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_SetEventLock(void * jarg1, char * jarg2) {
  751. int jresult ;
  752. ESLconnection *arg1 = (ESLconnection *) 0 ;
  753. char *arg2 = (char *) 0 ;
  754. int result;
  755. arg1 = (ESLconnection *)jarg1;
  756. arg2 = (char *)jarg2;
  757. result = (int)(arg1)->setEventLock((char const *)arg2);
  758. jresult = result;
  759. return jresult;
  760. }
  761. SWIGEXPORT int SWIGSTDCALL CSharp_ESLconnection_Disconnect(void * jarg1) {
  762. int jresult ;
  763. ESLconnection *arg1 = (ESLconnection *) 0 ;
  764. int result;
  765. arg1 = (ESLconnection *)jarg1;
  766. result = (int)(arg1)->disconnect();
  767. jresult = result;
  768. return jresult;
  769. }
  770. SWIGEXPORT void SWIGSTDCALL CSharp_eslSetLogLevel(int jarg1) {
  771. int arg1 ;
  772. arg1 = (int)jarg1;
  773. eslSetLogLevel(arg1);
  774. }
  775. #ifdef __cplusplus
  776. }
  777. #endif