2
0

esl_wrap.cpp 94 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423
  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 SWIGPHP
  11. #define SWIGPHP
  12. #endif
  13. #define SWIG_PREFIX ""
  14. #define SWIG_PREFIX_LEN 0
  15. #ifdef __cplusplus
  16. /* SwigValueWrapper is described in swig.swg */
  17. template<typename T> class SwigValueWrapper {
  18. struct SwigMovePointer {
  19. T *ptr;
  20. SwigMovePointer(T *p) : ptr(p) { }
  21. ~SwigMovePointer() { delete ptr; }
  22. SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  23. } pointer;
  24. SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  25. SwigValueWrapper(const SwigValueWrapper<T>& rhs);
  26. public:
  27. SwigValueWrapper() : pointer(0) { }
  28. SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  29. operator T&() const { return *pointer.ptr; }
  30. T *operator&() { return pointer.ptr; }
  31. };
  32. template <typename T> T SwigValueInit() {
  33. return T();
  34. }
  35. #endif
  36. /* -----------------------------------------------------------------------------
  37. * This section contains generic SWIG labels for method/variable
  38. * declarations/attributes, and other compiler dependent labels.
  39. * ----------------------------------------------------------------------------- */
  40. /* template workaround for compilers that cannot correctly implement the C++ standard */
  41. #ifndef SWIGTEMPLATEDISAMBIGUATOR
  42. # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
  43. # define SWIGTEMPLATEDISAMBIGUATOR template
  44. # elif defined(__HP_aCC)
  45. /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
  46. /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
  47. # define SWIGTEMPLATEDISAMBIGUATOR template
  48. # else
  49. # define SWIGTEMPLATEDISAMBIGUATOR
  50. # endif
  51. #endif
  52. /* inline attribute */
  53. #ifndef SWIGINLINE
  54. # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
  55. # define SWIGINLINE inline
  56. # else
  57. # define SWIGINLINE
  58. # endif
  59. #endif
  60. /* attribute recognised by some compilers to avoid 'unused' warnings */
  61. #ifndef SWIGUNUSED
  62. # if defined(__GNUC__)
  63. # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
  64. # define SWIGUNUSED __attribute__ ((__unused__))
  65. # else
  66. # define SWIGUNUSED
  67. # endif
  68. # elif defined(__ICC)
  69. # define SWIGUNUSED __attribute__ ((__unused__))
  70. # else
  71. # define SWIGUNUSED
  72. # endif
  73. #endif
  74. #ifndef SWIG_MSC_UNSUPPRESS_4505
  75. # if defined(_MSC_VER)
  76. # pragma warning(disable : 4505) /* unreferenced local function has been removed */
  77. # endif
  78. #endif
  79. #ifndef SWIGUNUSEDPARM
  80. # ifdef __cplusplus
  81. # define SWIGUNUSEDPARM(p)
  82. # else
  83. # define SWIGUNUSEDPARM(p) p SWIGUNUSED
  84. # endif
  85. #endif
  86. /* internal SWIG method */
  87. #ifndef SWIGINTERN
  88. # define SWIGINTERN static SWIGUNUSED
  89. #endif
  90. /* internal inline SWIG method */
  91. #ifndef SWIGINTERNINLINE
  92. # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
  93. #endif
  94. /* exporting methods */
  95. #if defined(__GNUC__)
  96. # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
  97. # ifndef GCC_HASCLASSVISIBILITY
  98. # define GCC_HASCLASSVISIBILITY
  99. # endif
  100. # endif
  101. #endif
  102. #ifndef SWIGEXPORT
  103. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  104. # if defined(STATIC_LINKED)
  105. # define SWIGEXPORT
  106. # else
  107. # define SWIGEXPORT __declspec(dllexport)
  108. # endif
  109. # else
  110. # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
  111. # define SWIGEXPORT __attribute__ ((visibility("default")))
  112. # else
  113. # define SWIGEXPORT
  114. # endif
  115. # endif
  116. #endif
  117. /* calling conventions for Windows */
  118. #ifndef SWIGSTDCALL
  119. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  120. # define SWIGSTDCALL __stdcall
  121. # else
  122. # define SWIGSTDCALL
  123. # endif
  124. #endif
  125. /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
  126. #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
  127. # define _CRT_SECURE_NO_DEPRECATE
  128. #endif
  129. /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
  130. #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
  131. # define _SCL_SECURE_NO_DEPRECATE
  132. #endif
  133. /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
  134. #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
  135. # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
  136. #endif
  137. /* Intel's compiler complains if a variable which was never initialised is
  138. * cast to void, which is a common idiom which we use to indicate that we
  139. * are aware a variable isn't used. So we just silence that warning.
  140. * See: https://github.com/swig/swig/issues/192 for more discussion.
  141. */
  142. #ifdef __INTEL_COMPILER
  143. # pragma warning disable 592
  144. #endif
  145. /* -----------------------------------------------------------------------------
  146. * swigrun.swg
  147. *
  148. * This file contains generic C API SWIG runtime support for pointer
  149. * type checking.
  150. * ----------------------------------------------------------------------------- */
  151. /* This should only be incremented when either the layout of swig_type_info changes,
  152. or for whatever reason, the runtime changes incompatibly */
  153. #define SWIG_RUNTIME_VERSION "4"
  154. /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
  155. #ifdef SWIG_TYPE_TABLE
  156. # define SWIG_QUOTE_STRING(x) #x
  157. # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
  158. # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
  159. #else
  160. # define SWIG_TYPE_TABLE_NAME
  161. #endif
  162. /*
  163. You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  164. creating a static or dynamic library from the SWIG runtime code.
  165. In 99.9% of the cases, SWIG just needs to declare them as 'static'.
  166. But only do this if strictly necessary, ie, if you have problems
  167. with your compiler or suchlike.
  168. */
  169. #ifndef SWIGRUNTIME
  170. # define SWIGRUNTIME SWIGINTERN
  171. #endif
  172. #ifndef SWIGRUNTIMEINLINE
  173. # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
  174. #endif
  175. /* Generic buffer size */
  176. #ifndef SWIG_BUFFER_SIZE
  177. # define SWIG_BUFFER_SIZE 1024
  178. #endif
  179. /* Flags for pointer conversions */
  180. #define SWIG_POINTER_DISOWN 0x1
  181. #define SWIG_CAST_NEW_MEMORY 0x2
  182. /* Flags for new pointer objects */
  183. #define SWIG_POINTER_OWN 0x1
  184. /*
  185. Flags/methods for returning states.
  186. The SWIG conversion methods, as ConvertPtr, return an integer
  187. that tells if the conversion was successful or not. And if not,
  188. an error code can be returned (see swigerrors.swg for the codes).
  189. Use the following macros/flags to set or process the returning
  190. states.
  191. In old versions of SWIG, code such as the following was usually written:
  192. if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
  193. // success code
  194. } else {
  195. //fail code
  196. }
  197. Now you can be more explicit:
  198. int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
  199. if (SWIG_IsOK(res)) {
  200. // success code
  201. } else {
  202. // fail code
  203. }
  204. which is the same really, but now you can also do
  205. Type *ptr;
  206. int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
  207. if (SWIG_IsOK(res)) {
  208. // success code
  209. if (SWIG_IsNewObj(res) {
  210. ...
  211. delete *ptr;
  212. } else {
  213. ...
  214. }
  215. } else {
  216. // fail code
  217. }
  218. I.e., now SWIG_ConvertPtr can return new objects and you can
  219. identify the case and take care of the deallocation. Of course that
  220. also requires SWIG_ConvertPtr to return new result values, such as
  221. int SWIG_ConvertPtr(obj, ptr,...) {
  222. if (<obj is ok>) {
  223. if (<need new object>) {
  224. *ptr = <ptr to new allocated object>;
  225. return SWIG_NEWOBJ;
  226. } else {
  227. *ptr = <ptr to old object>;
  228. return SWIG_OLDOBJ;
  229. }
  230. } else {
  231. return SWIG_BADOBJ;
  232. }
  233. }
  234. Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
  235. more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
  236. SWIG errors code.
  237. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
  238. allows to return the 'cast rank', for example, if you have this
  239. int food(double)
  240. int fooi(int);
  241. and you call
  242. food(1) // cast rank '1' (1 -> 1.0)
  243. fooi(1) // cast rank '0'
  244. just use the SWIG_AddCast()/SWIG_CheckState()
  245. */
  246. #define SWIG_OK (0)
  247. #define SWIG_ERROR (-1)
  248. #define SWIG_IsOK(r) (r >= 0)
  249. #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
  250. /* The CastRankLimit says how many bits are used for the cast rank */
  251. #define SWIG_CASTRANKLIMIT (1 << 8)
  252. /* The NewMask denotes the object was created (using new/malloc) */
  253. #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
  254. /* The TmpMask is for in/out typemaps that use temporal objects */
  255. #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
  256. /* Simple returning values */
  257. #define SWIG_BADOBJ (SWIG_ERROR)
  258. #define SWIG_OLDOBJ (SWIG_OK)
  259. #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
  260. #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
  261. /* Check, add and del mask methods */
  262. #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
  263. #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
  264. #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
  265. #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
  266. #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
  267. #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
  268. /* Cast-Rank Mode */
  269. #if defined(SWIG_CASTRANK_MODE)
  270. # ifndef SWIG_TypeRank
  271. # define SWIG_TypeRank unsigned long
  272. # endif
  273. # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
  274. # define SWIG_MAXCASTRANK (2)
  275. # endif
  276. # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
  277. # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
  278. SWIGINTERNINLINE int SWIG_AddCast(int r) {
  279. return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
  280. }
  281. SWIGINTERNINLINE int SWIG_CheckState(int r) {
  282. return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
  283. }
  284. #else /* no cast-rank mode */
  285. # define SWIG_AddCast(r) (r)
  286. # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
  287. #endif
  288. #include <string.h>
  289. #ifdef __cplusplus
  290. extern "C" {
  291. #endif
  292. typedef void *(*swig_converter_func)(void *, int *);
  293. typedef struct swig_type_info *(*swig_dycast_func)(void **);
  294. /* Structure to store information on one type */
  295. typedef struct swig_type_info {
  296. const char *name; /* mangled name of this type */
  297. const char *str; /* human readable name of this type */
  298. swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
  299. struct swig_cast_info *cast; /* linked list of types that can cast into this type */
  300. void *clientdata; /* language specific type data */
  301. int owndata; /* flag if the structure owns the clientdata */
  302. } swig_type_info;
  303. /* Structure to store a type and conversion function used for casting */
  304. typedef struct swig_cast_info {
  305. swig_type_info *type; /* pointer to type that is equivalent to this type */
  306. swig_converter_func converter; /* function to cast the void pointers */
  307. struct swig_cast_info *next; /* pointer to next cast in linked list */
  308. struct swig_cast_info *prev; /* pointer to the previous cast */
  309. } swig_cast_info;
  310. /* Structure used to store module information
  311. * Each module generates one structure like this, and the runtime collects
  312. * all of these structures and stores them in a circularly linked list.*/
  313. typedef struct swig_module_info {
  314. swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
  315. size_t size; /* Number of types in this module */
  316. struct swig_module_info *next; /* Pointer to next element in circularly linked list */
  317. swig_type_info **type_initial; /* Array of initially generated type structures */
  318. swig_cast_info **cast_initial; /* Array of initially generated casting structures */
  319. void *clientdata; /* Language specific module data */
  320. } swig_module_info;
  321. /*
  322. Compare two type names skipping the space characters, therefore
  323. "char*" == "char *" and "Class<int>" == "Class<int >", etc.
  324. Return 0 when the two name types are equivalent, as in
  325. strncmp, but skipping ' '.
  326. */
  327. SWIGRUNTIME int
  328. SWIG_TypeNameComp(const char *f1, const char *l1,
  329. const char *f2, const char *l2) {
  330. for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
  331. while ((*f1 == ' ') && (f1 != l1)) ++f1;
  332. while ((*f2 == ' ') && (f2 != l2)) ++f2;
  333. if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  334. }
  335. return (int)((l1 - f1) - (l2 - f2));
  336. }
  337. /*
  338. Check type equivalence in a name list like <name1>|<name2>|...
  339. Return 0 if equal, -1 if nb < tb, 1 if nb > tb
  340. */
  341. SWIGRUNTIME int
  342. SWIG_TypeCmp(const char *nb, const char *tb) {
  343. int equiv = 1;
  344. const char* te = tb + strlen(tb);
  345. const char* ne = nb;
  346. while (equiv != 0 && *ne) {
  347. for (nb = ne; *ne; ++ne) {
  348. if (*ne == '|') break;
  349. }
  350. equiv = SWIG_TypeNameComp(nb, ne, tb, te);
  351. if (*ne) ++ne;
  352. }
  353. return equiv;
  354. }
  355. /*
  356. Check type equivalence in a name list like <name1>|<name2>|...
  357. Return 0 if not equal, 1 if equal
  358. */
  359. SWIGRUNTIME int
  360. SWIG_TypeEquiv(const char *nb, const char *tb) {
  361. return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
  362. }
  363. /*
  364. Check the typename
  365. */
  366. SWIGRUNTIME swig_cast_info *
  367. SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  368. if (ty) {
  369. swig_cast_info *iter = ty->cast;
  370. while (iter) {
  371. if (strcmp(iter->type->name, c) == 0) {
  372. if (iter == ty->cast)
  373. return iter;
  374. /* Move iter to the top of the linked list */
  375. iter->prev->next = iter->next;
  376. if (iter->next)
  377. iter->next->prev = iter->prev;
  378. iter->next = ty->cast;
  379. iter->prev = 0;
  380. if (ty->cast) ty->cast->prev = iter;
  381. ty->cast = iter;
  382. return iter;
  383. }
  384. iter = iter->next;
  385. }
  386. }
  387. return 0;
  388. }
  389. /*
  390. Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
  391. */
  392. SWIGRUNTIME swig_cast_info *
  393. SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
  394. if (ty) {
  395. swig_cast_info *iter = ty->cast;
  396. while (iter) {
  397. if (iter->type == from) {
  398. if (iter == ty->cast)
  399. return iter;
  400. /* Move iter to the top of the linked list */
  401. iter->prev->next = iter->next;
  402. if (iter->next)
  403. iter->next->prev = iter->prev;
  404. iter->next = ty->cast;
  405. iter->prev = 0;
  406. if (ty->cast) ty->cast->prev = iter;
  407. ty->cast = iter;
  408. return iter;
  409. }
  410. iter = iter->next;
  411. }
  412. }
  413. return 0;
  414. }
  415. /*
  416. Cast a pointer up an inheritance hierarchy
  417. */
  418. SWIGRUNTIMEINLINE void *
  419. SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
  420. return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
  421. }
  422. /*
  423. Dynamic pointer casting. Down an inheritance hierarchy
  424. */
  425. SWIGRUNTIME swig_type_info *
  426. SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  427. swig_type_info *lastty = ty;
  428. if (!ty || !ty->dcast) return ty;
  429. while (ty && (ty->dcast)) {
  430. ty = (*ty->dcast)(ptr);
  431. if (ty) lastty = ty;
  432. }
  433. return lastty;
  434. }
  435. /*
  436. Return the name associated with this type
  437. */
  438. SWIGRUNTIMEINLINE const char *
  439. SWIG_TypeName(const swig_type_info *ty) {
  440. return ty->name;
  441. }
  442. /*
  443. Return the pretty name associated with this type,
  444. that is an unmangled type name in a form presentable to the user.
  445. */
  446. SWIGRUNTIME const char *
  447. SWIG_TypePrettyName(const swig_type_info *type) {
  448. /* The "str" field contains the equivalent pretty names of the
  449. type, separated by vertical-bar characters. We choose
  450. to print the last name, as it is often (?) the most
  451. specific. */
  452. if (!type) return NULL;
  453. if (type->str != NULL) {
  454. const char *last_name = type->str;
  455. const char *s;
  456. for (s = type->str; *s; s++)
  457. if (*s == '|') last_name = s+1;
  458. return last_name;
  459. }
  460. else
  461. return type->name;
  462. }
  463. /*
  464. Set the clientdata field for a type
  465. */
  466. SWIGRUNTIME void
  467. SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  468. swig_cast_info *cast = ti->cast;
  469. /* if (ti->clientdata == clientdata) return; */
  470. ti->clientdata = clientdata;
  471. while (cast) {
  472. if (!cast->converter) {
  473. swig_type_info *tc = cast->type;
  474. if (!tc->clientdata) {
  475. SWIG_TypeClientData(tc, clientdata);
  476. }
  477. }
  478. cast = cast->next;
  479. }
  480. }
  481. SWIGRUNTIME void
  482. SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  483. SWIG_TypeClientData(ti, clientdata);
  484. ti->owndata = 1;
  485. }
  486. /*
  487. Search for a swig_type_info structure only by mangled name
  488. Search is a O(log #types)
  489. We start searching at module start, and finish searching when start == end.
  490. Note: if start == end at the beginning of the function, we go all the way around
  491. the circular list.
  492. */
  493. SWIGRUNTIME swig_type_info *
  494. SWIG_MangledTypeQueryModule(swig_module_info *start,
  495. swig_module_info *end,
  496. const char *name) {
  497. swig_module_info *iter = start;
  498. do {
  499. if (iter->size) {
  500. size_t l = 0;
  501. size_t r = iter->size - 1;
  502. do {
  503. /* since l+r >= 0, we can (>> 1) instead (/ 2) */
  504. size_t i = (l + r) >> 1;
  505. const char *iname = iter->types[i]->name;
  506. if (iname) {
  507. int compare = strcmp(name, iname);
  508. if (compare == 0) {
  509. return iter->types[i];
  510. } else if (compare < 0) {
  511. if (i) {
  512. r = i - 1;
  513. } else {
  514. break;
  515. }
  516. } else if (compare > 0) {
  517. l = i + 1;
  518. }
  519. } else {
  520. break; /* should never happen */
  521. }
  522. } while (l <= r);
  523. }
  524. iter = iter->next;
  525. } while (iter != end);
  526. return 0;
  527. }
  528. /*
  529. Search for a swig_type_info structure for either a mangled name or a human readable name.
  530. It first searches the mangled names of the types, which is a O(log #types)
  531. If a type is not found it then searches the human readable names, which is O(#types).
  532. We start searching at module start, and finish searching when start == end.
  533. Note: if start == end at the beginning of the function, we go all the way around
  534. the circular list.
  535. */
  536. SWIGRUNTIME swig_type_info *
  537. SWIG_TypeQueryModule(swig_module_info *start,
  538. swig_module_info *end,
  539. const char *name) {
  540. /* STEP 1: Search the name field using binary search */
  541. swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  542. if (ret) {
  543. return ret;
  544. } else {
  545. /* STEP 2: If the type hasn't been found, do a complete search
  546. of the str field (the human readable name) */
  547. swig_module_info *iter = start;
  548. do {
  549. size_t i = 0;
  550. for (; i < iter->size; ++i) {
  551. if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
  552. return iter->types[i];
  553. }
  554. iter = iter->next;
  555. } while (iter != end);
  556. }
  557. /* neither found a match */
  558. return 0;
  559. }
  560. /*
  561. Pack binary data into a string
  562. */
  563. SWIGRUNTIME char *
  564. SWIG_PackData(char *c, void *ptr, size_t sz) {
  565. static const char hex[17] = "0123456789abcdef";
  566. const unsigned char *u = (unsigned char *) ptr;
  567. const unsigned char *eu = u + sz;
  568. for (; u != eu; ++u) {
  569. unsigned char uu = *u;
  570. *(c++) = hex[(uu & 0xf0) >> 4];
  571. *(c++) = hex[uu & 0xf];
  572. }
  573. return c;
  574. }
  575. /*
  576. Unpack binary data from a string
  577. */
  578. SWIGRUNTIME const char *
  579. SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  580. unsigned char *u = (unsigned char *) ptr;
  581. const unsigned char *eu = u + sz;
  582. for (; u != eu; ++u) {
  583. char d = *(c++);
  584. unsigned char uu;
  585. if ((d >= '0') && (d <= '9'))
  586. uu = (unsigned char)((d - '0') << 4);
  587. else if ((d >= 'a') && (d <= 'f'))
  588. uu = (unsigned char)((d - ('a'-10)) << 4);
  589. else
  590. return (char *) 0;
  591. d = *(c++);
  592. if ((d >= '0') && (d <= '9'))
  593. uu |= (unsigned char)(d - '0');
  594. else if ((d >= 'a') && (d <= 'f'))
  595. uu |= (unsigned char)(d - ('a'-10));
  596. else
  597. return (char *) 0;
  598. *u = uu;
  599. }
  600. return c;
  601. }
  602. /*
  603. Pack 'void *' into a string buffer.
  604. */
  605. SWIGRUNTIME char *
  606. SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  607. char *r = buff;
  608. if ((2*sizeof(void *) + 2) > bsz) return 0;
  609. *(r++) = '_';
  610. r = SWIG_PackData(r,&ptr,sizeof(void *));
  611. if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  612. strcpy(r,name);
  613. return buff;
  614. }
  615. SWIGRUNTIME const char *
  616. SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  617. if (*c != '_') {
  618. if (strcmp(c,"NULL") == 0) {
  619. *ptr = (void *) 0;
  620. return name;
  621. } else {
  622. return 0;
  623. }
  624. }
  625. return SWIG_UnpackData(++c,ptr,sizeof(void *));
  626. }
  627. SWIGRUNTIME char *
  628. SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  629. char *r = buff;
  630. size_t lname = (name ? strlen(name) : 0);
  631. if ((2*sz + 2 + lname) > bsz) return 0;
  632. *(r++) = '_';
  633. r = SWIG_PackData(r,ptr,sz);
  634. if (lname) {
  635. strncpy(r,name,lname+1);
  636. } else {
  637. *r = 0;
  638. }
  639. return buff;
  640. }
  641. SWIGRUNTIME const char *
  642. SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  643. if (*c != '_') {
  644. if (strcmp(c,"NULL") == 0) {
  645. memset(ptr,0,sz);
  646. return name;
  647. } else {
  648. return 0;
  649. }
  650. }
  651. return SWIG_UnpackData(++c,ptr,sz);
  652. }
  653. #ifdef __cplusplus
  654. }
  655. #endif
  656. /* -----------------------------------------------------------------------------
  657. * phprun.swg
  658. *
  659. * PHP runtime library
  660. * ----------------------------------------------------------------------------- */
  661. #ifdef __cplusplus
  662. extern "C" {
  663. #endif
  664. #include "zend.h"
  665. #include "zend_API.h"
  666. #include "zend_exceptions.h"
  667. #include "php.h"
  668. #if PHP_MAJOR_VERSION != 7
  669. # error These bindings need PHP7 - to generate PHP5 bindings use: swig -php5
  670. #endif
  671. #include "ext/standard/php_string.h"
  672. #include <stdlib.h> /* for abort(), used in generated code. */
  673. /* This indirection is to work around const correctness issues in older PHP.
  674. * FIXME: Remove for PHP7? Or might user code be using it? */
  675. #define SWIG_ZEND_NAMED_FE(ZN, N, A) ZEND_NAMED_FE(ZN, N, A)
  676. #define SWIG_BOOL_CONSTANT(N, V) REGISTER_BOOL_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
  677. #define SWIG_LONG_CONSTANT(N, V) REGISTER_LONG_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
  678. #define SWIG_DOUBLE_CONSTANT(N, V) REGISTER_DOUBLE_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
  679. #define SWIG_STRING_CONSTANT(N, V) REGISTER_STRING_CONSTANT(#N, (char*)V, CONST_CS | CONST_PERSISTENT)
  680. #define SWIG_CHAR_CONSTANT(N, V) do {\
  681. char swig_char = (V);\
  682. REGISTER_STRINGL_CONSTANT(#N, &swig_char, 1, CONST_CS | CONST_PERSISTENT);\
  683. } while (0)
  684. #ifdef __cplusplus
  685. }
  686. #endif
  687. #define SWIG_fail goto fail
  688. static const char *default_error_msg = "Unknown error occurred";
  689. static int default_error_code = E_ERROR;
  690. #define SWIG_PHP_Arg_Error_Msg(argnum,extramsg) "Error in argument " #argnum " "#extramsg
  691. #define SWIG_PHP_Error(code,msg) do { SWIG_ErrorCode() = code; SWIG_ErrorMsg() = msg; SWIG_fail; } while (0)
  692. #define SWIG_contract_assert(expr,msg) \
  693. if (!(expr) ) { zend_printf("Contract Assert Failed %s\n",msg ); } else
  694. /* Standard SWIG API */
  695. #define SWIG_GetModule(clientdata) SWIG_Php_GetModule()
  696. #define SWIG_SetModule(clientdata, pointer) SWIG_Php_SetModule(pointer)
  697. /* used to wrap returned objects in so we know whether they are newobject
  698. and need freeing, or not */
  699. typedef struct {
  700. void * ptr;
  701. int newobject;
  702. } swig_object_wrapper;
  703. #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
  704. static void
  705. SWIG_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject) {
  706. /*
  707. * First test for Null pointers. Return those as PHP native NULL
  708. */
  709. if (!ptr ) {
  710. ZVAL_NULL(z);
  711. return;
  712. }
  713. if (type->clientdata) {
  714. swig_object_wrapper *value;
  715. if (! (*(int *)(type->clientdata)))
  716. zend_error(E_ERROR, "Type: %s failed to register with zend",type->name);
  717. value=(swig_object_wrapper *)emalloc(sizeof(swig_object_wrapper));
  718. value->ptr=ptr;
  719. value->newobject=(newobject & 1);
  720. if ((newobject & 2) == 0) {
  721. /* Just register the pointer as a resource. */
  722. ZVAL_RES(z, zend_register_resource(value, *(int *)(type->clientdata)));
  723. } else {
  724. /*
  725. * Wrap the resource in an object, the resource will be accessible
  726. * via the "_cPtr" member. This is currently only used by
  727. * directorin typemaps.
  728. */
  729. zval resource;
  730. zend_class_entry *ce = NULL;
  731. const char *type_name = type->name+3; /* +3 so: _p_Foo -> Foo */
  732. size_t type_name_len;
  733. const char * p;
  734. HashTable * ht;
  735. /* Namespace__Foo -> Foo */
  736. /* FIXME: ugly and goes wrong for classes with __ in their names. */
  737. while ((p = strstr(type_name, "__")) != NULL) {
  738. type_name = p + 2;
  739. }
  740. type_name_len = strlen(type_name);
  741. ZVAL_RES(&resource, zend_register_resource(value, *(int *)(type->clientdata)));
  742. if (SWIG_PREFIX_LEN > 0) {
  743. zend_string * classname = zend_string_alloc(SWIG_PREFIX_LEN + type_name_len, 0);
  744. memcpy(classname->val, SWIG_PREFIX, SWIG_PREFIX_LEN);
  745. memcpy(classname->val + SWIG_PREFIX_LEN, type_name, type_name_len);
  746. ce = zend_lookup_class(classname);
  747. zend_string_release(classname);
  748. } else {
  749. zend_string * classname = zend_string_init(type_name, type_name_len, 0);
  750. ce = zend_lookup_class(classname);
  751. zend_string_release(classname);
  752. }
  753. if (ce == NULL) {
  754. /* class does not exist */
  755. ce = zend_standard_class_def;
  756. }
  757. ALLOC_HASHTABLE(ht);
  758. zend_hash_init(ht, 1, NULL, NULL, 0);
  759. zend_hash_str_update(ht, "_cPtr", sizeof("_cPtr") - 1, &resource);
  760. object_and_properties_init(z, ce, ht);
  761. }
  762. return;
  763. }
  764. zend_error(E_ERROR, "Type: %s not registered with zend",type->name);
  765. }
  766. /* This pointer conversion routine takes the native pointer p (along with
  767. its type name) and converts it by calling appropriate casting functions
  768. according to ty. The resultant pointer is returned, or NULL is returned
  769. if the pointer can't be cast.
  770. Sadly PHP has no API to find a type name from a type id, only from an
  771. instance of a resource of the type id, so we have to pass type_name as well.
  772. The two functions which might call this are:
  773. SWIG_ConvertResourcePtr which gets the type name from the resource
  774. and the registered zend destructors for which we have one per type each
  775. with the type name hard wired in. */
  776. static void *
  777. SWIG_ConvertResourceData(void * p, const char *type_name, swig_type_info *ty) {
  778. swig_cast_info *tc;
  779. void *result = 0;
  780. if (!ty) {
  781. /* They don't care about the target type, so just pass on the pointer! */
  782. return p;
  783. }
  784. if (! type_name) {
  785. /* can't convert p to ptr type ty if we don't know what type p is */
  786. return NULL;
  787. }
  788. /* convert and cast p from type_name to ptr as ty. */
  789. tc = SWIG_TypeCheck(type_name, ty);
  790. if (tc) {
  791. int newmemory = 0;
  792. result = SWIG_TypeCast(tc, p, &newmemory);
  793. assert(!newmemory); /* newmemory handling not yet implemented */
  794. }
  795. return result;
  796. }
  797. /* This function returns a pointer of type ty by extracting the pointer
  798. and type info from the resource in z. z must be a resource.
  799. If it fails, NULL is returned.
  800. It uses SWIG_ConvertResourceData to do the real work. */
  801. static void *
  802. SWIG_ConvertResourcePtr(zval *z, swig_type_info *ty, int flags) {
  803. swig_object_wrapper *value;
  804. void *p;
  805. const char *type_name;
  806. if (Z_RES_TYPE_P(z) == -1) return NULL;
  807. value = (swig_object_wrapper *) Z_RES_VAL_P(z);
  808. if (flags & SWIG_POINTER_DISOWN) {
  809. value->newobject = 0;
  810. }
  811. p = value->ptr;
  812. type_name=zend_rsrc_list_get_rsrc_type(Z_RES_P(z));
  813. return SWIG_ConvertResourceData(p, type_name, ty);
  814. }
  815. /* We allow passing of a RESOURCE pointing to the object or an OBJECT whose
  816. _cPtr is a resource pointing to the object */
  817. static int
  818. SWIG_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags) {
  819. if (z == NULL) {
  820. *ptr = 0;
  821. return 0;
  822. }
  823. switch (Z_TYPE_P(z)) {
  824. case IS_OBJECT: {
  825. HashTable * ht = Z_OBJ_HT_P(z)->get_properties(z);
  826. if (ht) {
  827. zval * _cPtr = zend_hash_str_find(ht, "_cPtr", sizeof("_cPtr") - 1);
  828. if (_cPtr) {
  829. if (Z_TYPE_P(_cPtr) == IS_INDIRECT) {
  830. _cPtr = Z_INDIRECT_P(_cPtr);
  831. }
  832. if (Z_TYPE_P(_cPtr) == IS_RESOURCE) {
  833. *ptr = SWIG_ConvertResourcePtr(_cPtr, ty, flags);
  834. return (*ptr == NULL ? -1 : 0);
  835. }
  836. }
  837. }
  838. break;
  839. }
  840. case IS_RESOURCE:
  841. *ptr = SWIG_ConvertResourcePtr(z, ty, flags);
  842. return (*ptr == NULL ? -1 : 0);
  843. case IS_NULL:
  844. *ptr = 0;
  845. return 0;
  846. }
  847. return -1;
  848. }
  849. static char const_name[] = "swig_runtime_data_type_pointer";
  850. static swig_module_info *SWIG_Php_GetModule() {
  851. zval *pointer = zend_get_constant_str(const_name, sizeof(const_name) - 1);
  852. if (pointer) {
  853. if (Z_TYPE_P(pointer) == IS_LONG) {
  854. return (swig_module_info *) pointer->value.lval;
  855. }
  856. }
  857. return NULL;
  858. }
  859. static void SWIG_Php_SetModule(swig_module_info *pointer) {
  860. REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, CONST_PERSISTENT | CONST_CS);
  861. }
  862. /* -------- TYPES TABLE (BEGIN) -------- */
  863. #define SWIGTYPE_p_ESLconnection swig_types[0]
  864. #define SWIGTYPE_p_ESLevent swig_types[1]
  865. #define SWIGTYPE_p_esl_event_t swig_types[2]
  866. #define SWIGTYPE_p_esl_priority_t swig_types[3]
  867. static swig_type_info *swig_types[5];
  868. static swig_module_info swig_module = {swig_types, 4, 0, 0, 0, 0};
  869. #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
  870. #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
  871. /* -------- TYPES TABLE (END) -------- */
  872. /* header section */
  873. ZEND_BEGIN_MODULE_GLOBALS(ESL)
  874. const char *error_msg;
  875. int error_code;
  876. ZEND_END_MODULE_GLOBALS(ESL)
  877. ZEND_DECLARE_MODULE_GLOBALS(ESL)
  878. #define SWIG_ErrorMsg() (ESL_globals.error_msg)
  879. #define SWIG_ErrorCode() (ESL_globals.error_code)
  880. #ifdef __GNUC__
  881. static void SWIG_FAIL(void) __attribute__ ((__noreturn__));
  882. #endif
  883. static void SWIG_FAIL(void) {
  884. zend_error(SWIG_ErrorCode(), "%s", SWIG_ErrorMsg());
  885. abort();
  886. }
  887. static void ESL_init_globals(zend_ESL_globals *globals ) {
  888. globals->error_msg = default_error_msg;
  889. globals->error_code = default_error_code;
  890. }
  891. static void SWIG_ResetError(void) {
  892. SWIG_ErrorMsg() = default_error_msg;
  893. SWIG_ErrorCode() = default_error_code;
  894. }
  895. ZEND_NAMED_FUNCTION(_wrap_swig_ESL_alter_newobject) {
  896. zval args[2];
  897. swig_object_wrapper *value;
  898. SWIG_ResetError();
  899. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  900. WRONG_PARAM_COUNT;
  901. }
  902. value = (swig_object_wrapper *) Z_RES_VAL(args[0]);
  903. value->newobject = zval_is_true(&args[1]);
  904. return;
  905. }
  906. ZEND_NAMED_FUNCTION(_wrap_swig_ESL_get_newobject) {
  907. zval args[1];
  908. swig_object_wrapper *value;
  909. SWIG_ResetError();
  910. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  911. WRONG_PARAM_COUNT;
  912. }
  913. value = (swig_object_wrapper *) Z_RES_VAL(args[0]);
  914. RETVAL_LONG(value->newobject);
  915. return;
  916. }
  917. #define SWIG_name "ESL"
  918. #ifdef __cplusplus
  919. extern "C" {
  920. #endif
  921. #include "php.h"
  922. #include "php_ini.h"
  923. #include "ext/standard/info.h"
  924. #include "php_ESL.h"
  925. #ifdef __cplusplus
  926. }
  927. #endif
  928. #include "esl.h"
  929. #include "esl_oop.h"
  930. /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
  931. static swig_type_info _swigt__p_ESLconnection = {"_p_ESLconnection", "ESLconnection *", 0, 0, (void*)0, 0};
  932. static swig_type_info _swigt__p_ESLevent = {"_p_ESLevent", "ESLevent *", 0, 0, (void*)0, 0};
  933. static swig_type_info _swigt__p_esl_event_t = {"_p_esl_event_t", "esl_event_t *", 0, 0, (void*)0, 0};
  934. static swig_type_info _swigt__p_esl_priority_t = {"_p_esl_priority_t", "esl_priority_t *", 0, 0, (void*)0, 0};
  935. static swig_type_info *swig_type_initial[] = {
  936. &_swigt__p_ESLconnection,
  937. &_swigt__p_ESLevent,
  938. &_swigt__p_esl_event_t,
  939. &_swigt__p_esl_priority_t,
  940. };
  941. static swig_cast_info _swigc__p_ESLconnection[] = { {&_swigt__p_ESLconnection, 0, 0, 0},{0, 0, 0, 0}};
  942. static swig_cast_info _swigc__p_ESLevent[] = { {&_swigt__p_ESLevent, 0, 0, 0},{0, 0, 0, 0}};
  943. static swig_cast_info _swigc__p_esl_event_t[] = { {&_swigt__p_esl_event_t, 0, 0, 0},{0, 0, 0, 0}};
  944. static swig_cast_info _swigc__p_esl_priority_t[] = { {&_swigt__p_esl_priority_t, 0, 0, 0},{0, 0, 0, 0}};
  945. static swig_cast_info *swig_cast_initial[] = {
  946. _swigc__p_ESLconnection,
  947. _swigc__p_ESLevent,
  948. _swigc__p_esl_event_t,
  949. _swigc__p_esl_priority_t,
  950. };
  951. /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
  952. /* end header section */
  953. /* vdecl subsection */
  954. static int le_swig__p_esl_priority_t=0; /* handle for _p_esl_priority_t */
  955. static int le_swig__p_ESLevent=0; /* handle for ESLevent */
  956. static int le_swig__p_esl_event_t=0; /* handle for _p_esl_event_t */
  957. static int le_swig__p_ESLconnection=0; /* handle for ESLconnection */
  958. /* end vdecl subsection */
  959. /* wrapper section */
  960. ZEND_NAMED_FUNCTION(_wrap_ESLevent_event_set) {
  961. ESLevent *arg1 = (ESLevent *) 0 ;
  962. esl_event_t *arg2 = (esl_event_t *) 0 ;
  963. zval args[2];
  964. SWIG_ResetError();
  965. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  966. WRONG_PARAM_COUNT;
  967. }
  968. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  969. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_event_set. Expected SWIGTYPE_p_ESLevent");
  970. }
  971. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  972. if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_esl_event_t, 0) < 0) {
  973. SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of ESLevent_event_set. Expected SWIGTYPE_p_esl_event_t");
  974. }
  975. if (arg1) (arg1)->event = arg2;
  976. thrown:
  977. return;
  978. fail:
  979. SWIG_FAIL();
  980. }
  981. ZEND_NAMED_FUNCTION(_wrap_ESLevent_event_get) {
  982. ESLevent *arg1 = (ESLevent *) 0 ;
  983. zval args[1];
  984. esl_event_t *result = 0 ;
  985. SWIG_ResetError();
  986. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  987. WRONG_PARAM_COUNT;
  988. }
  989. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  990. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_event_get. Expected SWIGTYPE_p_ESLevent");
  991. }
  992. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  993. result = (esl_event_t *) ((arg1)->event);
  994. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_esl_event_t, 0);
  995. thrown:
  996. return;
  997. fail:
  998. SWIG_FAIL();
  999. }
  1000. ZEND_NAMED_FUNCTION(_wrap_ESLevent_serialized_string_set) {
  1001. ESLevent *arg1 = (ESLevent *) 0 ;
  1002. char *arg2 = (char *) 0 ;
  1003. zval args[2];
  1004. SWIG_ResetError();
  1005. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  1006. WRONG_PARAM_COUNT;
  1007. }
  1008. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1009. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_serialized_string_set. Expected SWIGTYPE_p_ESLevent");
  1010. }
  1011. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1012. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1013. if (Z_ISNULL(args[1])) {
  1014. arg2 = (char *) 0;
  1015. } else {
  1016. convert_to_string(&args[1]);
  1017. arg2 = (char *) Z_STRVAL(args[1]);
  1018. }
  1019. /*@SWIG@*/;
  1020. {
  1021. delete [] arg1->serialized_string;
  1022. if (arg2) {
  1023. arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
  1024. strcpy((char *)arg1->serialized_string, (const char *)arg2);
  1025. } else {
  1026. arg1->serialized_string = 0;
  1027. }
  1028. }
  1029. thrown:
  1030. return;
  1031. fail:
  1032. SWIG_FAIL();
  1033. }
  1034. ZEND_NAMED_FUNCTION(_wrap_ESLevent_serialized_string_get) {
  1035. ESLevent *arg1 = (ESLevent *) 0 ;
  1036. zval args[1];
  1037. char *result = 0 ;
  1038. SWIG_ResetError();
  1039. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1040. WRONG_PARAM_COUNT;
  1041. }
  1042. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1043. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_serialized_string_get. Expected SWIGTYPE_p_ESLevent");
  1044. }
  1045. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1046. result = (char *) ((arg1)->serialized_string);
  1047. if (!result) {
  1048. RETVAL_NULL();
  1049. } else {
  1050. RETVAL_STRING((const char *)result);
  1051. }
  1052. thrown:
  1053. return;
  1054. fail:
  1055. SWIG_FAIL();
  1056. }
  1057. ZEND_NAMED_FUNCTION(_wrap_ESLevent_mine_set) {
  1058. ESLevent *arg1 = (ESLevent *) 0 ;
  1059. int arg2 ;
  1060. zval args[2];
  1061. SWIG_ResetError();
  1062. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  1063. WRONG_PARAM_COUNT;
  1064. }
  1065. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1066. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_mine_set. Expected SWIGTYPE_p_ESLevent");
  1067. }
  1068. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1069. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  1070. arg2 = (int) zval_get_long(&args[1]);
  1071. /*@SWIG@*/;
  1072. if (arg1) (arg1)->mine = arg2;
  1073. thrown:
  1074. return;
  1075. fail:
  1076. SWIG_FAIL();
  1077. }
  1078. ZEND_NAMED_FUNCTION(_wrap_ESLevent_mine_get) {
  1079. ESLevent *arg1 = (ESLevent *) 0 ;
  1080. zval args[1];
  1081. int result;
  1082. SWIG_ResetError();
  1083. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1084. WRONG_PARAM_COUNT;
  1085. }
  1086. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1087. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_mine_get. Expected SWIGTYPE_p_ESLevent");
  1088. }
  1089. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1090. result = (int) ((arg1)->mine);
  1091. RETVAL_LONG(result);
  1092. thrown:
  1093. return;
  1094. fail:
  1095. SWIG_FAIL();
  1096. }
  1097. ZEND_NAMED_FUNCTION(_wrap_new_ESLevent__SWIG_0) {
  1098. char *arg1 = (char *) 0 ;
  1099. char *arg2 = (char *) NULL ;
  1100. zval args[2];
  1101. int arg_count;
  1102. ESLevent *result = 0 ;
  1103. SWIG_ResetError();
  1104. arg_count = ZEND_NUM_ARGS();
  1105. if(arg_count<1 || arg_count>2 ||
  1106. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  1107. WRONG_PARAM_COUNT;
  1108. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1109. if (Z_ISNULL(args[0])) {
  1110. arg1 = (char *) 0;
  1111. } else {
  1112. convert_to_string(&args[0]);
  1113. arg1 = (char *) Z_STRVAL(args[0]);
  1114. }
  1115. /*@SWIG@*/;
  1116. if(arg_count > 1) {
  1117. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1118. if (Z_ISNULL(args[1])) {
  1119. arg2 = (char *) 0;
  1120. } else {
  1121. convert_to_string(&args[1]);
  1122. arg2 = (char *) Z_STRVAL(args[1]);
  1123. }
  1124. /*@SWIG@*/;
  1125. }
  1126. result = (ESLevent *)new ESLevent((char const *)arg1,(char const *)arg2);
  1127. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 1);
  1128. thrown:
  1129. return;
  1130. fail:
  1131. SWIG_FAIL();
  1132. }
  1133. ZEND_NAMED_FUNCTION(_wrap_new_ESLevent__SWIG_1) {
  1134. esl_event_t *arg1 = (esl_event_t *) 0 ;
  1135. int arg2 = (int) 0 ;
  1136. zval args[2];
  1137. int arg_count;
  1138. ESLevent *result = 0 ;
  1139. SWIG_ResetError();
  1140. arg_count = ZEND_NUM_ARGS();
  1141. if(arg_count<1 || arg_count>2 ||
  1142. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  1143. WRONG_PARAM_COUNT;
  1144. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_esl_event_t, 0) < 0) {
  1145. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of new_ESLevent. Expected SWIGTYPE_p_esl_event_t");
  1146. }
  1147. if(arg_count > 1) {
  1148. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  1149. arg2 = (int) zval_get_long(&args[1]);
  1150. /*@SWIG@*/;
  1151. }
  1152. result = (ESLevent *)new ESLevent(arg1,arg2);
  1153. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 1);
  1154. thrown:
  1155. return;
  1156. fail:
  1157. SWIG_FAIL();
  1158. }
  1159. ZEND_NAMED_FUNCTION(_wrap_new_ESLevent__SWIG_2) {
  1160. ESLevent *arg1 = (ESLevent *) 0 ;
  1161. zval args[1];
  1162. ESLevent *result = 0 ;
  1163. SWIG_ResetError();
  1164. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1165. WRONG_PARAM_COUNT;
  1166. }
  1167. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1168. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of new_ESLevent. Expected SWIGTYPE_p_ESLevent");
  1169. }
  1170. result = (ESLevent *)new ESLevent(arg1);
  1171. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 1);
  1172. thrown:
  1173. return;
  1174. fail:
  1175. SWIG_FAIL();
  1176. }
  1177. ZEND_NAMED_FUNCTION(_wrap_new_ESLevent) {
  1178. int argc;
  1179. zval argv[2];
  1180. argc = ZEND_NUM_ARGS();
  1181. zend_get_parameters_array_ex(argc, argv);
  1182. if ((argc >= 1) && (argc <= 2)) {
  1183. int _v;
  1184. {
  1185. void *tmp;
  1186. _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_esl_event_t, 0) >= 0);
  1187. }
  1188. if (_v) {
  1189. if (argc <= 1) {
  1190. _wrap_new_ESLevent__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1191. }
  1192. _v = (Z_TYPE(argv[1]) == IS_LONG);
  1193. if (_v) {
  1194. _wrap_new_ESLevent__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1195. }
  1196. }
  1197. }
  1198. if (argc == 1) {
  1199. int _v;
  1200. {
  1201. void *tmp;
  1202. _v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_ESLevent, 0) >= 0);
  1203. }
  1204. if (_v) {
  1205. _wrap_new_ESLevent__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1206. }
  1207. }
  1208. if ((argc >= 1) && (argc <= 2)) {
  1209. int _v;
  1210. _v = (Z_TYPE(argv[0]) == IS_STRING);
  1211. if (_v) {
  1212. if (argc <= 1) {
  1213. _wrap_new_ESLevent__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1214. }
  1215. _v = (Z_TYPE(argv[1]) == IS_STRING);
  1216. if (_v) {
  1217. _wrap_new_ESLevent__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1218. }
  1219. }
  1220. }
  1221. SWIG_ErrorCode() = E_ERROR;
  1222. SWIG_ErrorMsg() = "No matching function for overloaded 'new_ESLevent'";
  1223. SWIG_FAIL();
  1224. }
  1225. /* This function is designed to be called by the zend list destructors */
  1226. /* to typecast and do the actual destruction */
  1227. static void __wrap_delete_ESLevent(zend_resource *res, const char *type_name) {
  1228. swig_object_wrapper *value=(swig_object_wrapper *) res->ptr ;
  1229. void *ptr=value->ptr ;
  1230. int newobject=value->newobject ;
  1231. ESLevent *arg1 = (ESLevent *) 0 ;
  1232. efree(value);
  1233. if (! newobject) return; /* can't delete it! */
  1234. arg1 = (ESLevent *)SWIG_ConvertResourceData(ptr, type_name, SWIGTYPE_p_ESLevent);
  1235. if (! arg1) zend_error(E_ERROR, "ESLevent resource already free'd");
  1236. delete arg1;
  1237. thrown:
  1238. return;
  1239. fail:
  1240. SWIG_FAIL();
  1241. }
  1242. ZEND_NAMED_FUNCTION(_wrap_ESLevent_serialize) {
  1243. ESLevent *arg1 = (ESLevent *) 0 ;
  1244. char *arg2 = (char *) NULL ;
  1245. zval args[2];
  1246. int arg_count;
  1247. char *result = 0 ;
  1248. SWIG_ResetError();
  1249. arg_count = ZEND_NUM_ARGS();
  1250. if(arg_count<1 || arg_count>2 ||
  1251. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  1252. WRONG_PARAM_COUNT;
  1253. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1254. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_serialize. Expected SWIGTYPE_p_ESLevent");
  1255. }
  1256. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1257. if(arg_count > 1) {
  1258. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1259. if (Z_ISNULL(args[1])) {
  1260. arg2 = (char *) 0;
  1261. } else {
  1262. convert_to_string(&args[1]);
  1263. arg2 = (char *) Z_STRVAL(args[1]);
  1264. }
  1265. /*@SWIG@*/;
  1266. }
  1267. result = (char *)(arg1)->serialize((char const *)arg2);
  1268. if (!result) {
  1269. RETVAL_NULL();
  1270. } else {
  1271. RETVAL_STRING((const char *)result);
  1272. }
  1273. thrown:
  1274. return;
  1275. fail:
  1276. SWIG_FAIL();
  1277. }
  1278. ZEND_NAMED_FUNCTION(_wrap_ESLevent_setPriority) {
  1279. ESLevent *arg1 = (ESLevent *) 0 ;
  1280. esl_priority_t arg2 = (esl_priority_t) ESL_PRIORITY_NORMAL ;
  1281. esl_priority_t *tmp2 ;
  1282. zval args[2];
  1283. int arg_count;
  1284. bool result;
  1285. SWIG_ResetError();
  1286. arg_count = ZEND_NUM_ARGS();
  1287. if(arg_count<1 || arg_count>2 ||
  1288. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  1289. WRONG_PARAM_COUNT;
  1290. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1291. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_setPriority. Expected SWIGTYPE_p_ESLevent");
  1292. }
  1293. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1294. if(arg_count > 1) {
  1295. if (SWIG_ConvertPtr(&args[1], (void **) &tmp2, SWIGTYPE_p_esl_priority_t, 0) < 0 || tmp2 == NULL) {
  1296. SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of ESLevent_setPriority. Expected SWIGTYPE_p_esl_priority_t");
  1297. }
  1298. arg2 = *tmp2;
  1299. }
  1300. result = (bool)(arg1)->setPriority(arg2);
  1301. RETVAL_BOOL((result) ? 1 : 0);
  1302. thrown:
  1303. return;
  1304. fail:
  1305. SWIG_FAIL();
  1306. }
  1307. ZEND_NAMED_FUNCTION(_wrap_ESLevent_getHeader) {
  1308. ESLevent *arg1 = (ESLevent *) 0 ;
  1309. char *arg2 = (char *) 0 ;
  1310. int arg3 = (int) -1 ;
  1311. zval args[3];
  1312. int arg_count;
  1313. char *result = 0 ;
  1314. SWIG_ResetError();
  1315. arg_count = ZEND_NUM_ARGS();
  1316. if(arg_count<2 || arg_count>3 ||
  1317. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  1318. WRONG_PARAM_COUNT;
  1319. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1320. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_getHeader. Expected SWIGTYPE_p_ESLevent");
  1321. }
  1322. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1323. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1324. if (Z_ISNULL(args[1])) {
  1325. arg2 = (char *) 0;
  1326. } else {
  1327. convert_to_string(&args[1]);
  1328. arg2 = (char *) Z_STRVAL(args[1]);
  1329. }
  1330. /*@SWIG@*/;
  1331. if(arg_count > 2) {
  1332. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  1333. arg3 = (int) zval_get_long(&args[2]);
  1334. /*@SWIG@*/;
  1335. }
  1336. result = (char *)(arg1)->getHeader((char const *)arg2,arg3);
  1337. if (!result) {
  1338. RETVAL_NULL();
  1339. } else {
  1340. RETVAL_STRING((const char *)result);
  1341. }
  1342. thrown:
  1343. return;
  1344. fail:
  1345. SWIG_FAIL();
  1346. }
  1347. ZEND_NAMED_FUNCTION(_wrap_ESLevent_getBody) {
  1348. ESLevent *arg1 = (ESLevent *) 0 ;
  1349. zval args[1];
  1350. char *result = 0 ;
  1351. SWIG_ResetError();
  1352. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1353. WRONG_PARAM_COUNT;
  1354. }
  1355. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1356. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_getBody. Expected SWIGTYPE_p_ESLevent");
  1357. }
  1358. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1359. result = (char *)(arg1)->getBody();
  1360. if (!result) {
  1361. RETVAL_NULL();
  1362. } else {
  1363. RETVAL_STRING((const char *)result);
  1364. }
  1365. thrown:
  1366. return;
  1367. fail:
  1368. SWIG_FAIL();
  1369. }
  1370. ZEND_NAMED_FUNCTION(_wrap_ESLevent_getType) {
  1371. ESLevent *arg1 = (ESLevent *) 0 ;
  1372. zval args[1];
  1373. char *result = 0 ;
  1374. SWIG_ResetError();
  1375. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1376. WRONG_PARAM_COUNT;
  1377. }
  1378. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1379. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_getType. Expected SWIGTYPE_p_ESLevent");
  1380. }
  1381. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1382. result = (char *)(arg1)->getType();
  1383. if (!result) {
  1384. RETVAL_NULL();
  1385. } else {
  1386. RETVAL_STRING((const char *)result);
  1387. }
  1388. thrown:
  1389. return;
  1390. fail:
  1391. SWIG_FAIL();
  1392. }
  1393. ZEND_NAMED_FUNCTION(_wrap_ESLevent_addBody) {
  1394. ESLevent *arg1 = (ESLevent *) 0 ;
  1395. char *arg2 = (char *) 0 ;
  1396. zval args[2];
  1397. bool result;
  1398. SWIG_ResetError();
  1399. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  1400. WRONG_PARAM_COUNT;
  1401. }
  1402. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1403. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_addBody. Expected SWIGTYPE_p_ESLevent");
  1404. }
  1405. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1406. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1407. if (Z_ISNULL(args[1])) {
  1408. arg2 = (char *) 0;
  1409. } else {
  1410. convert_to_string(&args[1]);
  1411. arg2 = (char *) Z_STRVAL(args[1]);
  1412. }
  1413. /*@SWIG@*/;
  1414. result = (bool)(arg1)->addBody((char const *)arg2);
  1415. RETVAL_BOOL((result) ? 1 : 0);
  1416. thrown:
  1417. return;
  1418. fail:
  1419. SWIG_FAIL();
  1420. }
  1421. ZEND_NAMED_FUNCTION(_wrap_ESLevent_addHeader) {
  1422. ESLevent *arg1 = (ESLevent *) 0 ;
  1423. char *arg2 = (char *) 0 ;
  1424. char *arg3 = (char *) 0 ;
  1425. zval args[3];
  1426. bool result;
  1427. SWIG_ResetError();
  1428. if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  1429. WRONG_PARAM_COUNT;
  1430. }
  1431. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1432. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_addHeader. Expected SWIGTYPE_p_ESLevent");
  1433. }
  1434. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1435. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1436. if (Z_ISNULL(args[1])) {
  1437. arg2 = (char *) 0;
  1438. } else {
  1439. convert_to_string(&args[1]);
  1440. arg2 = (char *) Z_STRVAL(args[1]);
  1441. }
  1442. /*@SWIG@*/;
  1443. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1444. if (Z_ISNULL(args[2])) {
  1445. arg3 = (char *) 0;
  1446. } else {
  1447. convert_to_string(&args[2]);
  1448. arg3 = (char *) Z_STRVAL(args[2]);
  1449. }
  1450. /*@SWIG@*/;
  1451. result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
  1452. RETVAL_BOOL((result) ? 1 : 0);
  1453. thrown:
  1454. return;
  1455. fail:
  1456. SWIG_FAIL();
  1457. }
  1458. ZEND_NAMED_FUNCTION(_wrap_ESLevent_pushHeader) {
  1459. ESLevent *arg1 = (ESLevent *) 0 ;
  1460. char *arg2 = (char *) 0 ;
  1461. char *arg3 = (char *) 0 ;
  1462. zval args[3];
  1463. bool result;
  1464. SWIG_ResetError();
  1465. if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  1466. WRONG_PARAM_COUNT;
  1467. }
  1468. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1469. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_pushHeader. Expected SWIGTYPE_p_ESLevent");
  1470. }
  1471. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1472. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1473. if (Z_ISNULL(args[1])) {
  1474. arg2 = (char *) 0;
  1475. } else {
  1476. convert_to_string(&args[1]);
  1477. arg2 = (char *) Z_STRVAL(args[1]);
  1478. }
  1479. /*@SWIG@*/;
  1480. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1481. if (Z_ISNULL(args[2])) {
  1482. arg3 = (char *) 0;
  1483. } else {
  1484. convert_to_string(&args[2]);
  1485. arg3 = (char *) Z_STRVAL(args[2]);
  1486. }
  1487. /*@SWIG@*/;
  1488. result = (bool)(arg1)->pushHeader((char const *)arg2,(char const *)arg3);
  1489. RETVAL_BOOL((result) ? 1 : 0);
  1490. thrown:
  1491. return;
  1492. fail:
  1493. SWIG_FAIL();
  1494. }
  1495. ZEND_NAMED_FUNCTION(_wrap_ESLevent_unshiftHeader) {
  1496. ESLevent *arg1 = (ESLevent *) 0 ;
  1497. char *arg2 = (char *) 0 ;
  1498. char *arg3 = (char *) 0 ;
  1499. zval args[3];
  1500. bool result;
  1501. SWIG_ResetError();
  1502. if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  1503. WRONG_PARAM_COUNT;
  1504. }
  1505. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1506. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_unshiftHeader. Expected SWIGTYPE_p_ESLevent");
  1507. }
  1508. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1509. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1510. if (Z_ISNULL(args[1])) {
  1511. arg2 = (char *) 0;
  1512. } else {
  1513. convert_to_string(&args[1]);
  1514. arg2 = (char *) Z_STRVAL(args[1]);
  1515. }
  1516. /*@SWIG@*/;
  1517. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1518. if (Z_ISNULL(args[2])) {
  1519. arg3 = (char *) 0;
  1520. } else {
  1521. convert_to_string(&args[2]);
  1522. arg3 = (char *) Z_STRVAL(args[2]);
  1523. }
  1524. /*@SWIG@*/;
  1525. result = (bool)(arg1)->unshiftHeader((char const *)arg2,(char const *)arg3);
  1526. RETVAL_BOOL((result) ? 1 : 0);
  1527. thrown:
  1528. return;
  1529. fail:
  1530. SWIG_FAIL();
  1531. }
  1532. ZEND_NAMED_FUNCTION(_wrap_ESLevent_delHeader) {
  1533. ESLevent *arg1 = (ESLevent *) 0 ;
  1534. char *arg2 = (char *) 0 ;
  1535. zval args[2];
  1536. bool result;
  1537. SWIG_ResetError();
  1538. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  1539. WRONG_PARAM_COUNT;
  1540. }
  1541. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1542. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_delHeader. Expected SWIGTYPE_p_ESLevent");
  1543. }
  1544. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1545. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1546. if (Z_ISNULL(args[1])) {
  1547. arg2 = (char *) 0;
  1548. } else {
  1549. convert_to_string(&args[1]);
  1550. arg2 = (char *) Z_STRVAL(args[1]);
  1551. }
  1552. /*@SWIG@*/;
  1553. result = (bool)(arg1)->delHeader((char const *)arg2);
  1554. RETVAL_BOOL((result) ? 1 : 0);
  1555. thrown:
  1556. return;
  1557. fail:
  1558. SWIG_FAIL();
  1559. }
  1560. ZEND_NAMED_FUNCTION(_wrap_ESLevent_firstHeader) {
  1561. ESLevent *arg1 = (ESLevent *) 0 ;
  1562. zval args[1];
  1563. char *result = 0 ;
  1564. SWIG_ResetError();
  1565. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1566. WRONG_PARAM_COUNT;
  1567. }
  1568. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1569. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_firstHeader. Expected SWIGTYPE_p_ESLevent");
  1570. }
  1571. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1572. result = (char *)(arg1)->firstHeader();
  1573. if (!result) {
  1574. RETVAL_NULL();
  1575. } else {
  1576. RETVAL_STRING((const char *)result);
  1577. }
  1578. thrown:
  1579. return;
  1580. fail:
  1581. SWIG_FAIL();
  1582. }
  1583. ZEND_NAMED_FUNCTION(_wrap_ESLevent_nextHeader) {
  1584. ESLevent *arg1 = (ESLevent *) 0 ;
  1585. zval args[1];
  1586. char *result = 0 ;
  1587. SWIG_ResetError();
  1588. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1589. WRONG_PARAM_COUNT;
  1590. }
  1591. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLevent, 0) < 0) {
  1592. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLevent_nextHeader. Expected SWIGTYPE_p_ESLevent");
  1593. }
  1594. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1595. result = (char *)(arg1)->nextHeader();
  1596. if (!result) {
  1597. RETVAL_NULL();
  1598. } else {
  1599. RETVAL_STRING((const char *)result);
  1600. }
  1601. thrown:
  1602. return;
  1603. fail:
  1604. SWIG_FAIL();
  1605. }
  1606. ZEND_NAMED_FUNCTION(_wrap_new_ESLconnection__SWIG_0) {
  1607. char *arg1 = (char *) 0 ;
  1608. int arg2 ;
  1609. char *arg3 = (char *) 0 ;
  1610. char *arg4 = (char *) 0 ;
  1611. zval args[4];
  1612. ESLconnection *result = 0 ;
  1613. SWIG_ResetError();
  1614. if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) {
  1615. WRONG_PARAM_COUNT;
  1616. }
  1617. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1618. if (Z_ISNULL(args[0])) {
  1619. arg1 = (char *) 0;
  1620. } else {
  1621. convert_to_string(&args[0]);
  1622. arg1 = (char *) Z_STRVAL(args[0]);
  1623. }
  1624. /*@SWIG@*/;
  1625. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  1626. arg2 = (int) zval_get_long(&args[1]);
  1627. /*@SWIG@*/;
  1628. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1629. if (Z_ISNULL(args[2])) {
  1630. arg3 = (char *) 0;
  1631. } else {
  1632. convert_to_string(&args[2]);
  1633. arg3 = (char *) Z_STRVAL(args[2]);
  1634. }
  1635. /*@SWIG@*/;
  1636. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1637. if (Z_ISNULL(args[3])) {
  1638. arg4 = (char *) 0;
  1639. } else {
  1640. convert_to_string(&args[3]);
  1641. arg4 = (char *) Z_STRVAL(args[3]);
  1642. }
  1643. /*@SWIG@*/;
  1644. result = (ESLconnection *)new ESLconnection((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4);
  1645. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLconnection, 1);
  1646. thrown:
  1647. return;
  1648. fail:
  1649. SWIG_FAIL();
  1650. }
  1651. ZEND_NAMED_FUNCTION(_wrap_new_ESLconnection__SWIG_1) {
  1652. char *arg1 = (char *) 0 ;
  1653. int arg2 ;
  1654. char *arg3 = (char *) 0 ;
  1655. zval args[3];
  1656. ESLconnection *result = 0 ;
  1657. SWIG_ResetError();
  1658. if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  1659. WRONG_PARAM_COUNT;
  1660. }
  1661. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1662. if (Z_ISNULL(args[0])) {
  1663. arg1 = (char *) 0;
  1664. } else {
  1665. convert_to_string(&args[0]);
  1666. arg1 = (char *) Z_STRVAL(args[0]);
  1667. }
  1668. /*@SWIG@*/;
  1669. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  1670. arg2 = (int) zval_get_long(&args[1]);
  1671. /*@SWIG@*/;
  1672. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1673. if (Z_ISNULL(args[2])) {
  1674. arg3 = (char *) 0;
  1675. } else {
  1676. convert_to_string(&args[2]);
  1677. arg3 = (char *) Z_STRVAL(args[2]);
  1678. }
  1679. /*@SWIG@*/;
  1680. result = (ESLconnection *)new ESLconnection((char const *)arg1,arg2,(char const *)arg3);
  1681. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLconnection, 1);
  1682. thrown:
  1683. return;
  1684. fail:
  1685. SWIG_FAIL();
  1686. }
  1687. ZEND_NAMED_FUNCTION(_wrap_new_ESLconnection__SWIG_2) {
  1688. char *arg1 = (char *) 0 ;
  1689. char *arg2 = (char *) 0 ;
  1690. char *arg3 = (char *) 0 ;
  1691. char *arg4 = (char *) 0 ;
  1692. zval args[4];
  1693. ESLconnection *result = 0 ;
  1694. SWIG_ResetError();
  1695. if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) {
  1696. WRONG_PARAM_COUNT;
  1697. }
  1698. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1699. if (Z_ISNULL(args[0])) {
  1700. arg1 = (char *) 0;
  1701. } else {
  1702. convert_to_string(&args[0]);
  1703. arg1 = (char *) Z_STRVAL(args[0]);
  1704. }
  1705. /*@SWIG@*/;
  1706. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1707. if (Z_ISNULL(args[1])) {
  1708. arg2 = (char *) 0;
  1709. } else {
  1710. convert_to_string(&args[1]);
  1711. arg2 = (char *) Z_STRVAL(args[1]);
  1712. }
  1713. /*@SWIG@*/;
  1714. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1715. if (Z_ISNULL(args[2])) {
  1716. arg3 = (char *) 0;
  1717. } else {
  1718. convert_to_string(&args[2]);
  1719. arg3 = (char *) Z_STRVAL(args[2]);
  1720. }
  1721. /*@SWIG@*/;
  1722. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1723. if (Z_ISNULL(args[3])) {
  1724. arg4 = (char *) 0;
  1725. } else {
  1726. convert_to_string(&args[3]);
  1727. arg4 = (char *) Z_STRVAL(args[3]);
  1728. }
  1729. /*@SWIG@*/;
  1730. result = (ESLconnection *)new ESLconnection((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
  1731. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLconnection, 1);
  1732. thrown:
  1733. return;
  1734. fail:
  1735. SWIG_FAIL();
  1736. }
  1737. ZEND_NAMED_FUNCTION(_wrap_new_ESLconnection__SWIG_3) {
  1738. char *arg1 = (char *) 0 ;
  1739. char *arg2 = (char *) 0 ;
  1740. char *arg3 = (char *) 0 ;
  1741. zval args[3];
  1742. ESLconnection *result = 0 ;
  1743. SWIG_ResetError();
  1744. if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  1745. WRONG_PARAM_COUNT;
  1746. }
  1747. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1748. if (Z_ISNULL(args[0])) {
  1749. arg1 = (char *) 0;
  1750. } else {
  1751. convert_to_string(&args[0]);
  1752. arg1 = (char *) Z_STRVAL(args[0]);
  1753. }
  1754. /*@SWIG@*/;
  1755. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1756. if (Z_ISNULL(args[1])) {
  1757. arg2 = (char *) 0;
  1758. } else {
  1759. convert_to_string(&args[1]);
  1760. arg2 = (char *) Z_STRVAL(args[1]);
  1761. }
  1762. /*@SWIG@*/;
  1763. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1764. if (Z_ISNULL(args[2])) {
  1765. arg3 = (char *) 0;
  1766. } else {
  1767. convert_to_string(&args[2]);
  1768. arg3 = (char *) Z_STRVAL(args[2]);
  1769. }
  1770. /*@SWIG@*/;
  1771. result = (ESLconnection *)new ESLconnection((char const *)arg1,(char const *)arg2,(char const *)arg3);
  1772. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLconnection, 1);
  1773. thrown:
  1774. return;
  1775. fail:
  1776. SWIG_FAIL();
  1777. }
  1778. ZEND_NAMED_FUNCTION(_wrap_new_ESLconnection__SWIG_4) {
  1779. int arg1 ;
  1780. zval args[1];
  1781. ESLconnection *result = 0 ;
  1782. SWIG_ResetError();
  1783. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1784. WRONG_PARAM_COUNT;
  1785. }
  1786. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  1787. arg1 = (int) zval_get_long(&args[0]);
  1788. /*@SWIG@*/;
  1789. result = (ESLconnection *)new ESLconnection(arg1);
  1790. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLconnection, 1);
  1791. thrown:
  1792. return;
  1793. fail:
  1794. SWIG_FAIL();
  1795. }
  1796. ZEND_NAMED_FUNCTION(_wrap_new_ESLconnection) {
  1797. int argc;
  1798. zval argv[4];
  1799. argc = ZEND_NUM_ARGS();
  1800. zend_get_parameters_array_ex(argc, argv);
  1801. if (argc == 1) {
  1802. int _v;
  1803. _v = (Z_TYPE(argv[0]) == IS_LONG);
  1804. if (_v) {
  1805. _wrap_new_ESLconnection__SWIG_4(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1806. }
  1807. }
  1808. if (argc == 3) {
  1809. int _v;
  1810. _v = (Z_TYPE(argv[0]) == IS_STRING);
  1811. if (_v) {
  1812. _v = (Z_TYPE(argv[1]) == IS_LONG);
  1813. if (_v) {
  1814. _v = (Z_TYPE(argv[2]) == IS_STRING);
  1815. if (_v) {
  1816. _wrap_new_ESLconnection__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1817. }
  1818. }
  1819. }
  1820. }
  1821. if (argc == 3) {
  1822. int _v;
  1823. _v = (Z_TYPE(argv[0]) == IS_STRING);
  1824. if (_v) {
  1825. _v = (Z_TYPE(argv[1]) == IS_STRING);
  1826. if (_v) {
  1827. _v = (Z_TYPE(argv[2]) == IS_STRING);
  1828. if (_v) {
  1829. _wrap_new_ESLconnection__SWIG_3(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1830. }
  1831. }
  1832. }
  1833. }
  1834. if (argc == 4) {
  1835. int _v;
  1836. _v = (Z_TYPE(argv[0]) == IS_STRING);
  1837. if (_v) {
  1838. _v = (Z_TYPE(argv[1]) == IS_LONG);
  1839. if (_v) {
  1840. _v = (Z_TYPE(argv[2]) == IS_STRING);
  1841. if (_v) {
  1842. _v = (Z_TYPE(argv[3]) == IS_STRING);
  1843. if (_v) {
  1844. _wrap_new_ESLconnection__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1845. }
  1846. }
  1847. }
  1848. }
  1849. }
  1850. if (argc == 4) {
  1851. int _v;
  1852. _v = (Z_TYPE(argv[0]) == IS_STRING);
  1853. if (_v) {
  1854. _v = (Z_TYPE(argv[1]) == IS_STRING);
  1855. if (_v) {
  1856. _v = (Z_TYPE(argv[2]) == IS_STRING);
  1857. if (_v) {
  1858. _v = (Z_TYPE(argv[3]) == IS_STRING);
  1859. if (_v) {
  1860. _wrap_new_ESLconnection__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
  1861. }
  1862. }
  1863. }
  1864. }
  1865. }
  1866. SWIG_ErrorCode() = E_ERROR;
  1867. SWIG_ErrorMsg() = "No matching function for overloaded 'new_ESLconnection'";
  1868. SWIG_FAIL();
  1869. }
  1870. /* This function is designed to be called by the zend list destructors */
  1871. /* to typecast and do the actual destruction */
  1872. static void __wrap_delete_ESLconnection(zend_resource *res, const char *type_name) {
  1873. swig_object_wrapper *value=(swig_object_wrapper *) res->ptr ;
  1874. void *ptr=value->ptr ;
  1875. int newobject=value->newobject ;
  1876. ESLconnection *arg1 = (ESLconnection *) 0 ;
  1877. efree(value);
  1878. if (! newobject) return; /* can't delete it! */
  1879. arg1 = (ESLconnection *)SWIG_ConvertResourceData(ptr, type_name, SWIGTYPE_p_ESLconnection);
  1880. if (! arg1) zend_error(E_ERROR, "ESLconnection resource already free'd");
  1881. delete arg1;
  1882. thrown:
  1883. return;
  1884. fail:
  1885. SWIG_FAIL();
  1886. }
  1887. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_socketDescriptor) {
  1888. ESLconnection *arg1 = (ESLconnection *) 0 ;
  1889. zval args[1];
  1890. int result;
  1891. SWIG_ResetError();
  1892. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1893. WRONG_PARAM_COUNT;
  1894. }
  1895. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  1896. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_socketDescriptor. Expected SWIGTYPE_p_ESLconnection");
  1897. }
  1898. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1899. result = (int)(arg1)->socketDescriptor();
  1900. RETVAL_LONG(result);
  1901. thrown:
  1902. return;
  1903. fail:
  1904. SWIG_FAIL();
  1905. }
  1906. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_connected) {
  1907. ESLconnection *arg1 = (ESLconnection *) 0 ;
  1908. zval args[1];
  1909. int result;
  1910. SWIG_ResetError();
  1911. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1912. WRONG_PARAM_COUNT;
  1913. }
  1914. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  1915. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_connected. Expected SWIGTYPE_p_ESLconnection");
  1916. }
  1917. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1918. result = (int)(arg1)->connected();
  1919. RETVAL_LONG(result);
  1920. thrown:
  1921. return;
  1922. fail:
  1923. SWIG_FAIL();
  1924. }
  1925. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_getInfo) {
  1926. ESLconnection *arg1 = (ESLconnection *) 0 ;
  1927. zval args[1];
  1928. ESLevent *result = 0 ;
  1929. SWIG_ResetError();
  1930. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  1931. WRONG_PARAM_COUNT;
  1932. }
  1933. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  1934. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_getInfo. Expected SWIGTYPE_p_ESLconnection");
  1935. }
  1936. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1937. result = (ESLevent *)(arg1)->getInfo();
  1938. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  1939. thrown:
  1940. return;
  1941. fail:
  1942. SWIG_FAIL();
  1943. }
  1944. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_send) {
  1945. ESLconnection *arg1 = (ESLconnection *) 0 ;
  1946. char *arg2 = (char *) 0 ;
  1947. zval args[2];
  1948. int result;
  1949. SWIG_ResetError();
  1950. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  1951. WRONG_PARAM_COUNT;
  1952. }
  1953. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  1954. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_send. Expected SWIGTYPE_p_ESLconnection");
  1955. }
  1956. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1957. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1958. if (Z_ISNULL(args[1])) {
  1959. arg2 = (char *) 0;
  1960. } else {
  1961. convert_to_string(&args[1]);
  1962. arg2 = (char *) Z_STRVAL(args[1]);
  1963. }
  1964. /*@SWIG@*/;
  1965. result = (int)(arg1)->send((char const *)arg2);
  1966. RETVAL_LONG(result);
  1967. thrown:
  1968. return;
  1969. fail:
  1970. SWIG_FAIL();
  1971. }
  1972. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_sendRecv) {
  1973. ESLconnection *arg1 = (ESLconnection *) 0 ;
  1974. char *arg2 = (char *) 0 ;
  1975. zval args[2];
  1976. ESLevent *result = 0 ;
  1977. SWIG_ResetError();
  1978. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  1979. WRONG_PARAM_COUNT;
  1980. }
  1981. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  1982. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_sendRecv. Expected SWIGTYPE_p_ESLconnection");
  1983. }
  1984. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1985. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  1986. if (Z_ISNULL(args[1])) {
  1987. arg2 = (char *) 0;
  1988. } else {
  1989. convert_to_string(&args[1]);
  1990. arg2 = (char *) Z_STRVAL(args[1]);
  1991. }
  1992. /*@SWIG@*/;
  1993. result = (ESLevent *)(arg1)->sendRecv((char const *)arg2);
  1994. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  1995. thrown:
  1996. return;
  1997. fail:
  1998. SWIG_FAIL();
  1999. }
  2000. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_api) {
  2001. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2002. char *arg2 = (char *) 0 ;
  2003. char *arg3 = (char *) NULL ;
  2004. zval args[3];
  2005. int arg_count;
  2006. ESLevent *result = 0 ;
  2007. SWIG_ResetError();
  2008. arg_count = ZEND_NUM_ARGS();
  2009. if(arg_count<2 || arg_count>3 ||
  2010. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  2011. WRONG_PARAM_COUNT;
  2012. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2013. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_api. Expected SWIGTYPE_p_ESLconnection");
  2014. }
  2015. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2016. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2017. if (Z_ISNULL(args[1])) {
  2018. arg2 = (char *) 0;
  2019. } else {
  2020. convert_to_string(&args[1]);
  2021. arg2 = (char *) Z_STRVAL(args[1]);
  2022. }
  2023. /*@SWIG@*/;
  2024. if(arg_count > 2) {
  2025. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2026. if (Z_ISNULL(args[2])) {
  2027. arg3 = (char *) 0;
  2028. } else {
  2029. convert_to_string(&args[2]);
  2030. arg3 = (char *) Z_STRVAL(args[2]);
  2031. }
  2032. /*@SWIG@*/;
  2033. }
  2034. result = (ESLevent *)(arg1)->api((char const *)arg2,(char const *)arg3);
  2035. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2036. thrown:
  2037. return;
  2038. fail:
  2039. SWIG_FAIL();
  2040. }
  2041. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_bgapi) {
  2042. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2043. char *arg2 = (char *) 0 ;
  2044. char *arg3 = (char *) NULL ;
  2045. char *arg4 = (char *) NULL ;
  2046. zval args[4];
  2047. int arg_count;
  2048. ESLevent *result = 0 ;
  2049. SWIG_ResetError();
  2050. arg_count = ZEND_NUM_ARGS();
  2051. if(arg_count<2 || arg_count>4 ||
  2052. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  2053. WRONG_PARAM_COUNT;
  2054. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2055. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_bgapi. Expected SWIGTYPE_p_ESLconnection");
  2056. }
  2057. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2058. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2059. if (Z_ISNULL(args[1])) {
  2060. arg2 = (char *) 0;
  2061. } else {
  2062. convert_to_string(&args[1]);
  2063. arg2 = (char *) Z_STRVAL(args[1]);
  2064. }
  2065. /*@SWIG@*/;
  2066. if(arg_count > 2) {
  2067. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2068. if (Z_ISNULL(args[2])) {
  2069. arg3 = (char *) 0;
  2070. } else {
  2071. convert_to_string(&args[2]);
  2072. arg3 = (char *) Z_STRVAL(args[2]);
  2073. }
  2074. /*@SWIG@*/;
  2075. }
  2076. if(arg_count > 3) {
  2077. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2078. if (Z_ISNULL(args[3])) {
  2079. arg4 = (char *) 0;
  2080. } else {
  2081. convert_to_string(&args[3]);
  2082. arg4 = (char *) Z_STRVAL(args[3]);
  2083. }
  2084. /*@SWIG@*/;
  2085. }
  2086. result = (ESLevent *)(arg1)->bgapi((char const *)arg2,(char const *)arg3,(char const *)arg4);
  2087. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2088. thrown:
  2089. return;
  2090. fail:
  2091. SWIG_FAIL();
  2092. }
  2093. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_sendEvent) {
  2094. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2095. ESLevent *arg2 = (ESLevent *) 0 ;
  2096. zval args[2];
  2097. ESLevent *result = 0 ;
  2098. SWIG_ResetError();
  2099. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  2100. WRONG_PARAM_COUNT;
  2101. }
  2102. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2103. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_sendEvent. Expected SWIGTYPE_p_ESLconnection");
  2104. }
  2105. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2106. if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_ESLevent, 0) < 0) {
  2107. SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of ESLconnection_sendEvent. Expected SWIGTYPE_p_ESLevent");
  2108. }
  2109. result = (ESLevent *)(arg1)->sendEvent(arg2);
  2110. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2111. thrown:
  2112. return;
  2113. fail:
  2114. SWIG_FAIL();
  2115. }
  2116. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_sendMSG) {
  2117. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2118. ESLevent *arg2 = (ESLevent *) 0 ;
  2119. char *arg3 = (char *) NULL ;
  2120. zval args[3];
  2121. int arg_count;
  2122. int result;
  2123. SWIG_ResetError();
  2124. arg_count = ZEND_NUM_ARGS();
  2125. if(arg_count<2 || arg_count>3 ||
  2126. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  2127. WRONG_PARAM_COUNT;
  2128. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2129. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_sendMSG. Expected SWIGTYPE_p_ESLconnection");
  2130. }
  2131. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2132. if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_ESLevent, 0) < 0) {
  2133. SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of ESLconnection_sendMSG. Expected SWIGTYPE_p_ESLevent");
  2134. }
  2135. if(arg_count > 2) {
  2136. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2137. if (Z_ISNULL(args[2])) {
  2138. arg3 = (char *) 0;
  2139. } else {
  2140. convert_to_string(&args[2]);
  2141. arg3 = (char *) Z_STRVAL(args[2]);
  2142. }
  2143. /*@SWIG@*/;
  2144. }
  2145. result = (int)(arg1)->sendMSG(arg2,(char const *)arg3);
  2146. RETVAL_LONG(result);
  2147. thrown:
  2148. return;
  2149. fail:
  2150. SWIG_FAIL();
  2151. }
  2152. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_recvEvent) {
  2153. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2154. zval args[1];
  2155. ESLevent *result = 0 ;
  2156. SWIG_ResetError();
  2157. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  2158. WRONG_PARAM_COUNT;
  2159. }
  2160. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2161. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_recvEvent. Expected SWIGTYPE_p_ESLconnection");
  2162. }
  2163. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2164. result = (ESLevent *)(arg1)->recvEvent();
  2165. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2166. thrown:
  2167. return;
  2168. fail:
  2169. SWIG_FAIL();
  2170. }
  2171. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_recvEventTimed) {
  2172. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2173. int arg2 ;
  2174. zval args[2];
  2175. ESLevent *result = 0 ;
  2176. SWIG_ResetError();
  2177. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  2178. WRONG_PARAM_COUNT;
  2179. }
  2180. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2181. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_recvEventTimed. Expected SWIGTYPE_p_ESLconnection");
  2182. }
  2183. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2184. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  2185. arg2 = (int) zval_get_long(&args[1]);
  2186. /*@SWIG@*/;
  2187. result = (ESLevent *)(arg1)->recvEventTimed(arg2);
  2188. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2189. thrown:
  2190. return;
  2191. fail:
  2192. SWIG_FAIL();
  2193. }
  2194. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_filter) {
  2195. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2196. char *arg2 = (char *) 0 ;
  2197. char *arg3 = (char *) 0 ;
  2198. zval args[3];
  2199. ESLevent *result = 0 ;
  2200. SWIG_ResetError();
  2201. if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  2202. WRONG_PARAM_COUNT;
  2203. }
  2204. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2205. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_filter. Expected SWIGTYPE_p_ESLconnection");
  2206. }
  2207. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2208. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2209. if (Z_ISNULL(args[1])) {
  2210. arg2 = (char *) 0;
  2211. } else {
  2212. convert_to_string(&args[1]);
  2213. arg2 = (char *) Z_STRVAL(args[1]);
  2214. }
  2215. /*@SWIG@*/;
  2216. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2217. if (Z_ISNULL(args[2])) {
  2218. arg3 = (char *) 0;
  2219. } else {
  2220. convert_to_string(&args[2]);
  2221. arg3 = (char *) Z_STRVAL(args[2]);
  2222. }
  2223. /*@SWIG@*/;
  2224. result = (ESLevent *)(arg1)->filter((char const *)arg2,(char const *)arg3);
  2225. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2226. thrown:
  2227. return;
  2228. fail:
  2229. SWIG_FAIL();
  2230. }
  2231. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_events) {
  2232. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2233. char *arg2 = (char *) 0 ;
  2234. char *arg3 = (char *) 0 ;
  2235. zval args[3];
  2236. int result;
  2237. SWIG_ResetError();
  2238. if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  2239. WRONG_PARAM_COUNT;
  2240. }
  2241. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2242. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_events. Expected SWIGTYPE_p_ESLconnection");
  2243. }
  2244. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2245. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2246. if (Z_ISNULL(args[1])) {
  2247. arg2 = (char *) 0;
  2248. } else {
  2249. convert_to_string(&args[1]);
  2250. arg2 = (char *) Z_STRVAL(args[1]);
  2251. }
  2252. /*@SWIG@*/;
  2253. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2254. if (Z_ISNULL(args[2])) {
  2255. arg3 = (char *) 0;
  2256. } else {
  2257. convert_to_string(&args[2]);
  2258. arg3 = (char *) Z_STRVAL(args[2]);
  2259. }
  2260. /*@SWIG@*/;
  2261. result = (int)(arg1)->events((char const *)arg2,(char const *)arg3);
  2262. RETVAL_LONG(result);
  2263. thrown:
  2264. return;
  2265. fail:
  2266. SWIG_FAIL();
  2267. }
  2268. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_execute) {
  2269. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2270. char *arg2 = (char *) 0 ;
  2271. char *arg3 = (char *) NULL ;
  2272. char *arg4 = (char *) NULL ;
  2273. zval args[4];
  2274. int arg_count;
  2275. ESLevent *result = 0 ;
  2276. SWIG_ResetError();
  2277. arg_count = ZEND_NUM_ARGS();
  2278. if(arg_count<2 || arg_count>4 ||
  2279. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  2280. WRONG_PARAM_COUNT;
  2281. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2282. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_execute. Expected SWIGTYPE_p_ESLconnection");
  2283. }
  2284. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2285. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2286. if (Z_ISNULL(args[1])) {
  2287. arg2 = (char *) 0;
  2288. } else {
  2289. convert_to_string(&args[1]);
  2290. arg2 = (char *) Z_STRVAL(args[1]);
  2291. }
  2292. /*@SWIG@*/;
  2293. if(arg_count > 2) {
  2294. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2295. if (Z_ISNULL(args[2])) {
  2296. arg3 = (char *) 0;
  2297. } else {
  2298. convert_to_string(&args[2]);
  2299. arg3 = (char *) Z_STRVAL(args[2]);
  2300. }
  2301. /*@SWIG@*/;
  2302. }
  2303. if(arg_count > 3) {
  2304. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2305. if (Z_ISNULL(args[3])) {
  2306. arg4 = (char *) 0;
  2307. } else {
  2308. convert_to_string(&args[3]);
  2309. arg4 = (char *) Z_STRVAL(args[3]);
  2310. }
  2311. /*@SWIG@*/;
  2312. }
  2313. result = (ESLevent *)(arg1)->execute((char const *)arg2,(char const *)arg3,(char const *)arg4);
  2314. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2315. thrown:
  2316. return;
  2317. fail:
  2318. SWIG_FAIL();
  2319. }
  2320. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_executeAsync) {
  2321. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2322. char *arg2 = (char *) 0 ;
  2323. char *arg3 = (char *) NULL ;
  2324. char *arg4 = (char *) NULL ;
  2325. zval args[4];
  2326. int arg_count;
  2327. ESLevent *result = 0 ;
  2328. SWIG_ResetError();
  2329. arg_count = ZEND_NUM_ARGS();
  2330. if(arg_count<2 || arg_count>4 ||
  2331. zend_get_parameters_array_ex(arg_count,args)!=SUCCESS)
  2332. WRONG_PARAM_COUNT;
  2333. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2334. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_executeAsync. Expected SWIGTYPE_p_ESLconnection");
  2335. }
  2336. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2337. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2338. if (Z_ISNULL(args[1])) {
  2339. arg2 = (char *) 0;
  2340. } else {
  2341. convert_to_string(&args[1]);
  2342. arg2 = (char *) Z_STRVAL(args[1]);
  2343. }
  2344. /*@SWIG@*/;
  2345. if(arg_count > 2) {
  2346. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2347. if (Z_ISNULL(args[2])) {
  2348. arg3 = (char *) 0;
  2349. } else {
  2350. convert_to_string(&args[2]);
  2351. arg3 = (char *) Z_STRVAL(args[2]);
  2352. }
  2353. /*@SWIG@*/;
  2354. }
  2355. if(arg_count > 3) {
  2356. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2357. if (Z_ISNULL(args[3])) {
  2358. arg4 = (char *) 0;
  2359. } else {
  2360. convert_to_string(&args[3]);
  2361. arg4 = (char *) Z_STRVAL(args[3]);
  2362. }
  2363. /*@SWIG@*/;
  2364. }
  2365. result = (ESLevent *)(arg1)->executeAsync((char const *)arg2,(char const *)arg3,(char const *)arg4);
  2366. SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_ESLevent, 0);
  2367. thrown:
  2368. return;
  2369. fail:
  2370. SWIG_FAIL();
  2371. }
  2372. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_setAsyncExecute) {
  2373. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2374. char *arg2 = (char *) 0 ;
  2375. zval args[2];
  2376. int result;
  2377. SWIG_ResetError();
  2378. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  2379. WRONG_PARAM_COUNT;
  2380. }
  2381. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2382. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_setAsyncExecute. Expected SWIGTYPE_p_ESLconnection");
  2383. }
  2384. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2385. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2386. if (Z_ISNULL(args[1])) {
  2387. arg2 = (char *) 0;
  2388. } else {
  2389. convert_to_string(&args[1]);
  2390. arg2 = (char *) Z_STRVAL(args[1]);
  2391. }
  2392. /*@SWIG@*/;
  2393. result = (int)(arg1)->setAsyncExecute((char const *)arg2);
  2394. RETVAL_LONG(result);
  2395. thrown:
  2396. return;
  2397. fail:
  2398. SWIG_FAIL();
  2399. }
  2400. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_setEventLock) {
  2401. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2402. char *arg2 = (char *) 0 ;
  2403. zval args[2];
  2404. int result;
  2405. SWIG_ResetError();
  2406. if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  2407. WRONG_PARAM_COUNT;
  2408. }
  2409. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2410. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_setEventLock. Expected SWIGTYPE_p_ESLconnection");
  2411. }
  2412. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2413. /*@SWIG:/usr/share/swig3.0/php/utils.i,57,CONVERT_STRING_IN@*/
  2414. if (Z_ISNULL(args[1])) {
  2415. arg2 = (char *) 0;
  2416. } else {
  2417. convert_to_string(&args[1]);
  2418. arg2 = (char *) Z_STRVAL(args[1]);
  2419. }
  2420. /*@SWIG@*/;
  2421. result = (int)(arg1)->setEventLock((char const *)arg2);
  2422. RETVAL_LONG(result);
  2423. thrown:
  2424. return;
  2425. fail:
  2426. SWIG_FAIL();
  2427. }
  2428. ZEND_NAMED_FUNCTION(_wrap_ESLconnection_disconnect) {
  2429. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2430. zval args[1];
  2431. int result;
  2432. SWIG_ResetError();
  2433. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  2434. WRONG_PARAM_COUNT;
  2435. }
  2436. if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_ESLconnection, 0) < 0) {
  2437. SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ESLconnection_disconnect. Expected SWIGTYPE_p_ESLconnection");
  2438. }
  2439. if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2440. result = (int)(arg1)->disconnect();
  2441. RETVAL_LONG(result);
  2442. thrown:
  2443. return;
  2444. fail:
  2445. SWIG_FAIL();
  2446. }
  2447. ZEND_NAMED_FUNCTION(_wrap_eslSetLogLevel) {
  2448. int arg1 ;
  2449. zval args[1];
  2450. SWIG_ResetError();
  2451. if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  2452. WRONG_PARAM_COUNT;
  2453. }
  2454. /*@SWIG:/usr/share/swig3.0/php/utils.i,6,CONVERT_INT_IN@*/
  2455. arg1 = (int) zval_get_long(&args[0]);
  2456. /*@SWIG@*/;
  2457. eslSetLogLevel(arg1);
  2458. thrown:
  2459. return;
  2460. fail:
  2461. SWIG_FAIL();
  2462. }
  2463. static ZEND_RSRC_DTOR_FUNC(_swig_default_rsrc_destroy) {
  2464. efree(res->ptr);
  2465. }
  2466. static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_ESLevent) {
  2467. __wrap_delete_ESLevent(res, SWIGTYPE_p_ESLevent->name);
  2468. }
  2469. static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_ESLconnection) {
  2470. __wrap_delete_ESLconnection(res, SWIGTYPE_p_ESLconnection->name);
  2471. }
  2472. /* end wrapper section */
  2473. /* class entry subsection */
  2474. /* arginfo subsection */
  2475. ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_00, 0, 0, 0)
  2476. ZEND_ARG_PASS_INFO(0)
  2477. ZEND_ARG_PASS_INFO(0)
  2478. ZEND_END_ARG_INFO()
  2479. ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_0, 0, 0, 0)
  2480. ZEND_ARG_PASS_INFO(0)
  2481. ZEND_END_ARG_INFO()
  2482. ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_000, 0, 0, 0)
  2483. ZEND_ARG_PASS_INFO(0)
  2484. ZEND_ARG_PASS_INFO(0)
  2485. ZEND_ARG_PASS_INFO(0)
  2486. ZEND_END_ARG_INFO()
  2487. ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_0000, 0, 0, 0)
  2488. ZEND_ARG_PASS_INFO(0)
  2489. ZEND_ARG_PASS_INFO(0)
  2490. ZEND_ARG_PASS_INFO(0)
  2491. ZEND_ARG_PASS_INFO(0)
  2492. ZEND_END_ARG_INFO()
  2493. /* entry subsection */
  2494. /* Every non-class user visible function must have an entry here */
  2495. static zend_function_entry ESL_functions[] = {
  2496. SWIG_ZEND_NAMED_FE(eslevent_event_set,_wrap_ESLevent_event_set,swig_arginfo_00)
  2497. SWIG_ZEND_NAMED_FE(eslevent_event_get,_wrap_ESLevent_event_get,swig_arginfo_0)
  2498. SWIG_ZEND_NAMED_FE(eslevent_serialized_string_set,_wrap_ESLevent_serialized_string_set,swig_arginfo_00)
  2499. SWIG_ZEND_NAMED_FE(eslevent_serialized_string_get,_wrap_ESLevent_serialized_string_get,swig_arginfo_0)
  2500. SWIG_ZEND_NAMED_FE(eslevent_mine_set,_wrap_ESLevent_mine_set,swig_arginfo_00)
  2501. SWIG_ZEND_NAMED_FE(eslevent_mine_get,_wrap_ESLevent_mine_get,swig_arginfo_0)
  2502. SWIG_ZEND_NAMED_FE(new_eslevent,_wrap_new_ESLevent,swig_arginfo_0)
  2503. SWIG_ZEND_NAMED_FE(eslevent_serialize,_wrap_ESLevent_serialize,swig_arginfo_00)
  2504. SWIG_ZEND_NAMED_FE(eslevent_setpriority,_wrap_ESLevent_setPriority,swig_arginfo_00)
  2505. SWIG_ZEND_NAMED_FE(eslevent_getheader,_wrap_ESLevent_getHeader,swig_arginfo_000)
  2506. SWIG_ZEND_NAMED_FE(eslevent_getbody,_wrap_ESLevent_getBody,swig_arginfo_0)
  2507. SWIG_ZEND_NAMED_FE(eslevent_gettype,_wrap_ESLevent_getType,swig_arginfo_0)
  2508. SWIG_ZEND_NAMED_FE(eslevent_addbody,_wrap_ESLevent_addBody,swig_arginfo_00)
  2509. SWIG_ZEND_NAMED_FE(eslevent_addheader,_wrap_ESLevent_addHeader,swig_arginfo_000)
  2510. SWIG_ZEND_NAMED_FE(eslevent_pushheader,_wrap_ESLevent_pushHeader,swig_arginfo_000)
  2511. SWIG_ZEND_NAMED_FE(eslevent_unshiftheader,_wrap_ESLevent_unshiftHeader,swig_arginfo_000)
  2512. SWIG_ZEND_NAMED_FE(eslevent_delheader,_wrap_ESLevent_delHeader,swig_arginfo_00)
  2513. SWIG_ZEND_NAMED_FE(eslevent_firstheader,_wrap_ESLevent_firstHeader,swig_arginfo_0)
  2514. SWIG_ZEND_NAMED_FE(eslevent_nextheader,_wrap_ESLevent_nextHeader,swig_arginfo_0)
  2515. SWIG_ZEND_NAMED_FE(new_eslconnection,_wrap_new_ESLconnection,swig_arginfo_0)
  2516. SWIG_ZEND_NAMED_FE(eslconnection_socketdescriptor,_wrap_ESLconnection_socketDescriptor,swig_arginfo_0)
  2517. SWIG_ZEND_NAMED_FE(eslconnection_connected,_wrap_ESLconnection_connected,swig_arginfo_0)
  2518. SWIG_ZEND_NAMED_FE(eslconnection_getinfo,_wrap_ESLconnection_getInfo,swig_arginfo_0)
  2519. SWIG_ZEND_NAMED_FE(eslconnection_send,_wrap_ESLconnection_send,swig_arginfo_00)
  2520. SWIG_ZEND_NAMED_FE(eslconnection_sendrecv,_wrap_ESLconnection_sendRecv,swig_arginfo_00)
  2521. SWIG_ZEND_NAMED_FE(eslconnection_api,_wrap_ESLconnection_api,swig_arginfo_000)
  2522. SWIG_ZEND_NAMED_FE(eslconnection_bgapi,_wrap_ESLconnection_bgapi,swig_arginfo_0000)
  2523. SWIG_ZEND_NAMED_FE(eslconnection_sendevent,_wrap_ESLconnection_sendEvent,swig_arginfo_00)
  2524. SWIG_ZEND_NAMED_FE(eslconnection_sendmsg,_wrap_ESLconnection_sendMSG,swig_arginfo_000)
  2525. SWIG_ZEND_NAMED_FE(eslconnection_recvevent,_wrap_ESLconnection_recvEvent,swig_arginfo_0)
  2526. SWIG_ZEND_NAMED_FE(eslconnection_recveventtimed,_wrap_ESLconnection_recvEventTimed,swig_arginfo_00)
  2527. SWIG_ZEND_NAMED_FE(eslconnection_filter,_wrap_ESLconnection_filter,swig_arginfo_000)
  2528. SWIG_ZEND_NAMED_FE(eslconnection_events,_wrap_ESLconnection_events,swig_arginfo_000)
  2529. SWIG_ZEND_NAMED_FE(eslconnection_execute,_wrap_ESLconnection_execute,swig_arginfo_0000)
  2530. SWIG_ZEND_NAMED_FE(eslconnection_executeasync,_wrap_ESLconnection_executeAsync,swig_arginfo_0000)
  2531. SWIG_ZEND_NAMED_FE(eslconnection_setasyncexecute,_wrap_ESLconnection_setAsyncExecute,swig_arginfo_00)
  2532. SWIG_ZEND_NAMED_FE(eslconnection_seteventlock,_wrap_ESLconnection_setEventLock,swig_arginfo_00)
  2533. SWIG_ZEND_NAMED_FE(eslconnection_disconnect,_wrap_ESLconnection_disconnect,swig_arginfo_0)
  2534. SWIG_ZEND_NAMED_FE(eslsetloglevel,_wrap_eslSetLogLevel,swig_arginfo_0)
  2535. SWIG_ZEND_NAMED_FE(swig_ESL_alter_newobject,_wrap_swig_ESL_alter_newobject,NULL)
  2536. SWIG_ZEND_NAMED_FE(swig_ESL_get_newobject,_wrap_swig_ESL_get_newobject,NULL)
  2537. ZEND_FE_END
  2538. };
  2539. /* init section */
  2540. zend_module_entry ESL_module_entry = {
  2541. STANDARD_MODULE_HEADER,
  2542. "ESL",
  2543. ESL_functions,
  2544. PHP_MINIT(ESL),
  2545. NULL, /* No MSHUTDOWN code */
  2546. NULL, /* No RINIT code */
  2547. NULL, /* No RSHUTDOWN code */
  2548. NULL, /* No MINFO code */
  2549. NO_VERSION_YET,
  2550. STANDARD_MODULE_PROPERTIES
  2551. };
  2552. zend_module_entry* SWIG_module_entry = &ESL_module_entry;
  2553. #ifdef __cplusplus
  2554. extern "C" {
  2555. #endif
  2556. SWIGEXPORT zend_module_entry *get_module(void) { return &ESL_module_entry; }
  2557. #ifdef __cplusplus
  2558. }
  2559. #endif
  2560. #define SWIG_php_minit PHP_MINIT_FUNCTION(ESL)
  2561. /* -----------------------------------------------------------------------------
  2562. * Type initialization:
  2563. * This problem is tough by the requirement that no dynamic
  2564. * memory is used. Also, since swig_type_info structures store pointers to
  2565. * swig_cast_info structures and swig_cast_info structures store pointers back
  2566. * to swig_type_info structures, we need some lookup code at initialization.
  2567. * The idea is that swig generates all the structures that are needed.
  2568. * The runtime then collects these partially filled structures.
  2569. * The SWIG_InitializeModule function takes these initial arrays out of
  2570. * swig_module, and does all the lookup, filling in the swig_module.types
  2571. * array with the correct data and linking the correct swig_cast_info
  2572. * structures together.
  2573. *
  2574. * The generated swig_type_info structures are assigned statically to an initial
  2575. * array. We just loop through that array, and handle each type individually.
  2576. * First we lookup if this type has been already loaded, and if so, use the
  2577. * loaded structure instead of the generated one. Then we have to fill in the
  2578. * cast linked list. The cast data is initially stored in something like a
  2579. * two-dimensional array. Each row corresponds to a type (there are the same
  2580. * number of rows as there are in the swig_type_initial array). Each entry in
  2581. * a column is one of the swig_cast_info structures for that type.
  2582. * The cast_initial array is actually an array of arrays, because each row has
  2583. * a variable number of columns. So to actually build the cast linked list,
  2584. * we find the array of casts associated with the type, and loop through it
  2585. * adding the casts to the list. The one last trick we need to do is making
  2586. * sure the type pointer in the swig_cast_info struct is correct.
  2587. *
  2588. * First off, we lookup the cast->type name to see if it is already loaded.
  2589. * There are three cases to handle:
  2590. * 1) If the cast->type has already been loaded AND the type we are adding
  2591. * casting info to has not been loaded (it is in this module), THEN we
  2592. * replace the cast->type pointer with the type pointer that has already
  2593. * been loaded.
  2594. * 2) If BOTH types (the one we are adding casting info to, and the
  2595. * cast->type) are loaded, THEN the cast info has already been loaded by
  2596. * the previous module so we just ignore it.
  2597. * 3) Finally, if cast->type has not already been loaded, then we add that
  2598. * swig_cast_info to the linked list (because the cast->type) pointer will
  2599. * be correct.
  2600. * ----------------------------------------------------------------------------- */
  2601. #ifdef __cplusplus
  2602. extern "C" {
  2603. #if 0
  2604. } /* c-mode */
  2605. #endif
  2606. #endif
  2607. #if 0
  2608. #define SWIGRUNTIME_DEBUG
  2609. #endif
  2610. SWIGRUNTIME void
  2611. SWIG_InitializeModule(void *clientdata) {
  2612. size_t i;
  2613. swig_module_info *module_head, *iter;
  2614. int init;
  2615. /* check to see if the circular list has been setup, if not, set it up */
  2616. if (swig_module.next==0) {
  2617. /* Initialize the swig_module */
  2618. swig_module.type_initial = swig_type_initial;
  2619. swig_module.cast_initial = swig_cast_initial;
  2620. swig_module.next = &swig_module;
  2621. init = 1;
  2622. } else {
  2623. init = 0;
  2624. }
  2625. /* Try and load any already created modules */
  2626. module_head = SWIG_GetModule(clientdata);
  2627. if (!module_head) {
  2628. /* This is the first module loaded for this interpreter */
  2629. /* so set the swig module into the interpreter */
  2630. SWIG_SetModule(clientdata, &swig_module);
  2631. } else {
  2632. /* the interpreter has loaded a SWIG module, but has it loaded this one? */
  2633. iter=module_head;
  2634. do {
  2635. if (iter==&swig_module) {
  2636. /* Our module is already in the list, so there's nothing more to do. */
  2637. return;
  2638. }
  2639. iter=iter->next;
  2640. } while (iter!= module_head);
  2641. /* otherwise we must add our module into the list */
  2642. swig_module.next = module_head->next;
  2643. module_head->next = &swig_module;
  2644. }
  2645. /* When multiple interpreters are used, a module could have already been initialized in
  2646. a different interpreter, but not yet have a pointer in this interpreter.
  2647. In this case, we do not want to continue adding types... everything should be
  2648. set up already */
  2649. if (init == 0) return;
  2650. /* Now work on filling in swig_module.types */
  2651. #ifdef SWIGRUNTIME_DEBUG
  2652. printf("SWIG_InitializeModule: size %d\n", swig_module.size);
  2653. #endif
  2654. for (i = 0; i < swig_module.size; ++i) {
  2655. swig_type_info *type = 0;
  2656. swig_type_info *ret;
  2657. swig_cast_info *cast;
  2658. #ifdef SWIGRUNTIME_DEBUG
  2659. printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
  2660. #endif
  2661. /* if there is another module already loaded */
  2662. if (swig_module.next != &swig_module) {
  2663. type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
  2664. }
  2665. if (type) {
  2666. /* Overwrite clientdata field */
  2667. #ifdef SWIGRUNTIME_DEBUG
  2668. printf("SWIG_InitializeModule: found type %s\n", type->name);
  2669. #endif
  2670. if (swig_module.type_initial[i]->clientdata) {
  2671. type->clientdata = swig_module.type_initial[i]->clientdata;
  2672. #ifdef SWIGRUNTIME_DEBUG
  2673. printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
  2674. #endif
  2675. }
  2676. } else {
  2677. type = swig_module.type_initial[i];
  2678. }
  2679. /* Insert casting types */
  2680. cast = swig_module.cast_initial[i];
  2681. while (cast->type) {
  2682. /* Don't need to add information already in the list */
  2683. ret = 0;
  2684. #ifdef SWIGRUNTIME_DEBUG
  2685. printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
  2686. #endif
  2687. if (swig_module.next != &swig_module) {
  2688. ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
  2689. #ifdef SWIGRUNTIME_DEBUG
  2690. if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
  2691. #endif
  2692. }
  2693. if (ret) {
  2694. if (type == swig_module.type_initial[i]) {
  2695. #ifdef SWIGRUNTIME_DEBUG
  2696. printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
  2697. #endif
  2698. cast->type = ret;
  2699. ret = 0;
  2700. } else {
  2701. /* Check for casting already in the list */
  2702. swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
  2703. #ifdef SWIGRUNTIME_DEBUG
  2704. if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
  2705. #endif
  2706. if (!ocast) ret = 0;
  2707. }
  2708. }
  2709. if (!ret) {
  2710. #ifdef SWIGRUNTIME_DEBUG
  2711. printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
  2712. #endif
  2713. if (type->cast) {
  2714. type->cast->prev = cast;
  2715. cast->next = type->cast;
  2716. }
  2717. type->cast = cast;
  2718. }
  2719. cast++;
  2720. }
  2721. /* Set entry in modules->types array equal to the type */
  2722. swig_module.types[i] = type;
  2723. }
  2724. swig_module.types[i] = 0;
  2725. #ifdef SWIGRUNTIME_DEBUG
  2726. printf("**** SWIG_InitializeModule: Cast List ******\n");
  2727. for (i = 0; i < swig_module.size; ++i) {
  2728. int j = 0;
  2729. swig_cast_info *cast = swig_module.cast_initial[i];
  2730. printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
  2731. while (cast->type) {
  2732. printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
  2733. cast++;
  2734. ++j;
  2735. }
  2736. printf("---- Total casts: %d\n",j);
  2737. }
  2738. printf("**** SWIG_InitializeModule: Cast List ******\n");
  2739. #endif
  2740. }
  2741. /* This function will propagate the clientdata field of type to
  2742. * any new swig_type_info structures that have been added into the list
  2743. * of equivalent types. It is like calling
  2744. * SWIG_TypeClientData(type, clientdata) a second time.
  2745. */
  2746. SWIGRUNTIME void
  2747. SWIG_PropagateClientData(void) {
  2748. size_t i;
  2749. swig_cast_info *equiv;
  2750. static int init_run = 0;
  2751. if (init_run) return;
  2752. init_run = 1;
  2753. for (i = 0; i < swig_module.size; i++) {
  2754. if (swig_module.types[i]->clientdata) {
  2755. equiv = swig_module.types[i]->cast;
  2756. while (equiv) {
  2757. if (!equiv->converter) {
  2758. if (equiv->type && !equiv->type->clientdata)
  2759. SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
  2760. }
  2761. equiv = equiv->next;
  2762. }
  2763. }
  2764. }
  2765. }
  2766. #ifdef __cplusplus
  2767. #if 0
  2768. { /* c-mode */
  2769. #endif
  2770. }
  2771. #endif
  2772. SWIG_php_minit {
  2773. SWIG_InitializeModule(0);
  2774. /* oinit subsection */
  2775. ZEND_INIT_MODULE_GLOBALS(ESL, ESL_init_globals, NULL);
  2776. /* Register resource destructors for pointer types */
  2777. le_swig__p_esl_priority_t=zend_register_list_destructors_ex(_swig_default_rsrc_destroy, NULL, SWIGTYPE_p_esl_priority_t->name, module_number);
  2778. SWIG_TypeClientData(SWIGTYPE_p_esl_priority_t,&le_swig__p_esl_priority_t);
  2779. le_swig__p_ESLevent=zend_register_list_destructors_ex(_wrap_destroy_p_ESLevent, NULL, SWIGTYPE_p_ESLevent->name, module_number);
  2780. SWIG_TypeClientData(SWIGTYPE_p_ESLevent,&le_swig__p_ESLevent);
  2781. le_swig__p_esl_event_t=zend_register_list_destructors_ex(_swig_default_rsrc_destroy, NULL, SWIGTYPE_p_esl_event_t->name, module_number);
  2782. SWIG_TypeClientData(SWIGTYPE_p_esl_event_t,&le_swig__p_esl_event_t);
  2783. le_swig__p_ESLconnection=zend_register_list_destructors_ex(_wrap_destroy_p_ESLconnection, NULL, SWIGTYPE_p_ESLconnection->name, module_number);
  2784. SWIG_TypeClientData(SWIGTYPE_p_ESLconnection,&le_swig__p_ESLconnection);
  2785. CG(active_class_entry) = NULL;
  2786. /* end oinit subsection */
  2787. /* cinit subsection */
  2788. /* end cinit subsection */
  2789. return SUCCESS;
  2790. }
  2791. /* end init section */