2
0

esl_wrap.cpp 128 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 3.0.2
  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. #define SWIGPERL
  11. #define SWIG_CASTRANK_MODE
  12. #ifdef __cplusplus
  13. /* SwigValueWrapper is described in swig.swg */
  14. template<typename T> class SwigValueWrapper {
  15. struct SwigMovePointer {
  16. T *ptr;
  17. SwigMovePointer(T *p) : ptr(p) { }
  18. ~SwigMovePointer() { delete ptr; }
  19. SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  20. } pointer;
  21. SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  22. SwigValueWrapper(const SwigValueWrapper<T>& rhs);
  23. public:
  24. SwigValueWrapper() : pointer(0) { }
  25. SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  26. operator T&() const { return *pointer.ptr; }
  27. T *operator&() { return pointer.ptr; }
  28. };
  29. template <typename T> T SwigValueInit() {
  30. return T();
  31. }
  32. #endif
  33. /* -----------------------------------------------------------------------------
  34. * This section contains generic SWIG labels for method/variable
  35. * declarations/attributes, and other compiler dependent labels.
  36. * ----------------------------------------------------------------------------- */
  37. /* template workaround for compilers that cannot correctly implement the C++ standard */
  38. #ifndef SWIGTEMPLATEDISAMBIGUATOR
  39. # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
  40. # define SWIGTEMPLATEDISAMBIGUATOR template
  41. # elif defined(__HP_aCC)
  42. /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
  43. /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
  44. # define SWIGTEMPLATEDISAMBIGUATOR template
  45. # else
  46. # define SWIGTEMPLATEDISAMBIGUATOR
  47. # endif
  48. #endif
  49. /* inline attribute */
  50. #ifndef SWIGINLINE
  51. # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
  52. # define SWIGINLINE inline
  53. # else
  54. # define SWIGINLINE
  55. # endif
  56. #endif
  57. /* attribute recognised by some compilers to avoid 'unused' warnings */
  58. #ifndef SWIGUNUSED
  59. # if defined(__GNUC__)
  60. # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
  61. # define SWIGUNUSED __attribute__ ((__unused__))
  62. # else
  63. # define SWIGUNUSED
  64. # endif
  65. # elif defined(__ICC)
  66. # define SWIGUNUSED __attribute__ ((__unused__))
  67. # else
  68. # define SWIGUNUSED
  69. # endif
  70. #endif
  71. #ifndef SWIG_MSC_UNSUPPRESS_4505
  72. # if defined(_MSC_VER)
  73. # pragma warning(disable : 4505) /* unreferenced local function has been removed */
  74. # endif
  75. #endif
  76. #ifndef SWIGUNUSEDPARM
  77. # ifdef __cplusplus
  78. # define SWIGUNUSEDPARM(p)
  79. # else
  80. # define SWIGUNUSEDPARM(p) p SWIGUNUSED
  81. # endif
  82. #endif
  83. /* internal SWIG method */
  84. #ifndef SWIGINTERN
  85. # define SWIGINTERN static SWIGUNUSED
  86. #endif
  87. /* internal inline SWIG method */
  88. #ifndef SWIGINTERNINLINE
  89. # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
  90. #endif
  91. /* exporting methods */
  92. #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
  93. # ifndef GCC_HASCLASSVISIBILITY
  94. # define GCC_HASCLASSVISIBILITY
  95. # endif
  96. #endif
  97. #ifndef SWIGEXPORT
  98. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  99. # if defined(STATIC_LINKED)
  100. # define SWIGEXPORT
  101. # else
  102. # define SWIGEXPORT __declspec(dllexport)
  103. # endif
  104. # else
  105. # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
  106. # define SWIGEXPORT __attribute__ ((visibility("default")))
  107. # else
  108. # define SWIGEXPORT
  109. # endif
  110. # endif
  111. #endif
  112. /* calling conventions for Windows */
  113. #ifndef SWIGSTDCALL
  114. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  115. # define SWIGSTDCALL __stdcall
  116. # else
  117. # define SWIGSTDCALL
  118. # endif
  119. #endif
  120. /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
  121. #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
  122. # define _CRT_SECURE_NO_DEPRECATE
  123. #endif
  124. /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
  125. #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
  126. # define _SCL_SECURE_NO_DEPRECATE
  127. #endif
  128. /* -----------------------------------------------------------------------------
  129. * swigrun.swg
  130. *
  131. * This file contains generic C API SWIG runtime support for pointer
  132. * type checking.
  133. * ----------------------------------------------------------------------------- */
  134. /* This should only be incremented when either the layout of swig_type_info changes,
  135. or for whatever reason, the runtime changes incompatibly */
  136. #define SWIG_RUNTIME_VERSION "4"
  137. /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
  138. #ifdef SWIG_TYPE_TABLE
  139. # define SWIG_QUOTE_STRING(x) #x
  140. # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
  141. # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
  142. #else
  143. # define SWIG_TYPE_TABLE_NAME
  144. #endif
  145. /*
  146. You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  147. creating a static or dynamic library from the SWIG runtime code.
  148. In 99.9% of the cases, SWIG just needs to declare them as 'static'.
  149. But only do this if strictly necessary, ie, if you have problems
  150. with your compiler or suchlike.
  151. */
  152. #ifndef SWIGRUNTIME
  153. # define SWIGRUNTIME SWIGINTERN
  154. #endif
  155. #ifndef SWIGRUNTIMEINLINE
  156. # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
  157. #endif
  158. /* Generic buffer size */
  159. #ifndef SWIG_BUFFER_SIZE
  160. # define SWIG_BUFFER_SIZE 1024
  161. #endif
  162. /* Flags for pointer conversions */
  163. #define SWIG_POINTER_DISOWN 0x1
  164. #define SWIG_CAST_NEW_MEMORY 0x2
  165. /* Flags for new pointer objects */
  166. #define SWIG_POINTER_OWN 0x1
  167. /*
  168. Flags/methods for returning states.
  169. The SWIG conversion methods, as ConvertPtr, return an integer
  170. that tells if the conversion was successful or not. And if not,
  171. an error code can be returned (see swigerrors.swg for the codes).
  172. Use the following macros/flags to set or process the returning
  173. states.
  174. In old versions of SWIG, code such as the following was usually written:
  175. if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
  176. // success code
  177. } else {
  178. //fail code
  179. }
  180. Now you can be more explicit:
  181. int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
  182. if (SWIG_IsOK(res)) {
  183. // success code
  184. } else {
  185. // fail code
  186. }
  187. which is the same really, but now you can also do
  188. Type *ptr;
  189. int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
  190. if (SWIG_IsOK(res)) {
  191. // success code
  192. if (SWIG_IsNewObj(res) {
  193. ...
  194. delete *ptr;
  195. } else {
  196. ...
  197. }
  198. } else {
  199. // fail code
  200. }
  201. I.e., now SWIG_ConvertPtr can return new objects and you can
  202. identify the case and take care of the deallocation. Of course that
  203. also requires SWIG_ConvertPtr to return new result values, such as
  204. int SWIG_ConvertPtr(obj, ptr,...) {
  205. if (<obj is ok>) {
  206. if (<need new object>) {
  207. *ptr = <ptr to new allocated object>;
  208. return SWIG_NEWOBJ;
  209. } else {
  210. *ptr = <ptr to old object>;
  211. return SWIG_OLDOBJ;
  212. }
  213. } else {
  214. return SWIG_BADOBJ;
  215. }
  216. }
  217. Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
  218. more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
  219. SWIG errors code.
  220. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
  221. allows to return the 'cast rank', for example, if you have this
  222. int food(double)
  223. int fooi(int);
  224. and you call
  225. food(1) // cast rank '1' (1 -> 1.0)
  226. fooi(1) // cast rank '0'
  227. just use the SWIG_AddCast()/SWIG_CheckState()
  228. */
  229. #define SWIG_OK (0)
  230. #define SWIG_ERROR (-1)
  231. #define SWIG_IsOK(r) (r >= 0)
  232. #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
  233. /* The CastRankLimit says how many bits are used for the cast rank */
  234. #define SWIG_CASTRANKLIMIT (1 << 8)
  235. /* The NewMask denotes the object was created (using new/malloc) */
  236. #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
  237. /* The TmpMask is for in/out typemaps that use temporal objects */
  238. #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
  239. /* Simple returning values */
  240. #define SWIG_BADOBJ (SWIG_ERROR)
  241. #define SWIG_OLDOBJ (SWIG_OK)
  242. #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
  243. #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
  244. /* Check, add and del mask methods */
  245. #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
  246. #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
  247. #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
  248. #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
  249. #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
  250. #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
  251. /* Cast-Rank Mode */
  252. #if defined(SWIG_CASTRANK_MODE)
  253. # ifndef SWIG_TypeRank
  254. # define SWIG_TypeRank unsigned long
  255. # endif
  256. # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
  257. # define SWIG_MAXCASTRANK (2)
  258. # endif
  259. # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
  260. # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
  261. SWIGINTERNINLINE int SWIG_AddCast(int r) {
  262. return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
  263. }
  264. SWIGINTERNINLINE int SWIG_CheckState(int r) {
  265. return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
  266. }
  267. #else /* no cast-rank mode */
  268. # define SWIG_AddCast(r) (r)
  269. # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
  270. #endif
  271. #include <string.h>
  272. #ifdef __cplusplus
  273. extern "C" {
  274. #endif
  275. typedef void *(*swig_converter_func)(void *, int *);
  276. typedef struct swig_type_info *(*swig_dycast_func)(void **);
  277. /* Structure to store information on one type */
  278. typedef struct swig_type_info {
  279. const char *name; /* mangled name of this type */
  280. const char *str; /* human readable name of this type */
  281. swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
  282. struct swig_cast_info *cast; /* linked list of types that can cast into this type */
  283. void *clientdata; /* language specific type data */
  284. int owndata; /* flag if the structure owns the clientdata */
  285. } swig_type_info;
  286. /* Structure to store a type and conversion function used for casting */
  287. typedef struct swig_cast_info {
  288. swig_type_info *type; /* pointer to type that is equivalent to this type */
  289. swig_converter_func converter; /* function to cast the void pointers */
  290. struct swig_cast_info *next; /* pointer to next cast in linked list */
  291. struct swig_cast_info *prev; /* pointer to the previous cast */
  292. } swig_cast_info;
  293. /* Structure used to store module information
  294. * Each module generates one structure like this, and the runtime collects
  295. * all of these structures and stores them in a circularly linked list.*/
  296. typedef struct swig_module_info {
  297. swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
  298. size_t size; /* Number of types in this module */
  299. struct swig_module_info *next; /* Pointer to next element in circularly linked list */
  300. swig_type_info **type_initial; /* Array of initially generated type structures */
  301. swig_cast_info **cast_initial; /* Array of initially generated casting structures */
  302. void *clientdata; /* Language specific module data */
  303. } swig_module_info;
  304. /*
  305. Compare two type names skipping the space characters, therefore
  306. "char*" == "char *" and "Class<int>" == "Class<int >", etc.
  307. Return 0 when the two name types are equivalent, as in
  308. strncmp, but skipping ' '.
  309. */
  310. SWIGRUNTIME int
  311. SWIG_TypeNameComp(const char *f1, const char *l1,
  312. const char *f2, const char *l2) {
  313. for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
  314. while ((*f1 == ' ') && (f1 != l1)) ++f1;
  315. while ((*f2 == ' ') && (f2 != l2)) ++f2;
  316. if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  317. }
  318. return (int)((l1 - f1) - (l2 - f2));
  319. }
  320. /*
  321. Check type equivalence in a name list like <name1>|<name2>|...
  322. Return 0 if equal, -1 if nb < tb, 1 if nb > tb
  323. */
  324. SWIGRUNTIME int
  325. SWIG_TypeCmp(const char *nb, const char *tb) {
  326. int equiv = 1;
  327. const char* te = tb + strlen(tb);
  328. const char* ne = nb;
  329. while (equiv != 0 && *ne) {
  330. for (nb = ne; *ne; ++ne) {
  331. if (*ne == '|') break;
  332. }
  333. equiv = SWIG_TypeNameComp(nb, ne, tb, te);
  334. if (*ne) ++ne;
  335. }
  336. return equiv;
  337. }
  338. /*
  339. Check type equivalence in a name list like <name1>|<name2>|...
  340. Return 0 if not equal, 1 if equal
  341. */
  342. SWIGRUNTIME int
  343. SWIG_TypeEquiv(const char *nb, const char *tb) {
  344. return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
  345. }
  346. /*
  347. Check the typename
  348. */
  349. SWIGRUNTIME swig_cast_info *
  350. SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  351. if (ty) {
  352. swig_cast_info *iter = ty->cast;
  353. while (iter) {
  354. if (strcmp(iter->type->name, c) == 0) {
  355. if (iter == ty->cast)
  356. return iter;
  357. /* Move iter to the top of the linked list */
  358. iter->prev->next = iter->next;
  359. if (iter->next)
  360. iter->next->prev = iter->prev;
  361. iter->next = ty->cast;
  362. iter->prev = 0;
  363. if (ty->cast) ty->cast->prev = iter;
  364. ty->cast = iter;
  365. return iter;
  366. }
  367. iter = iter->next;
  368. }
  369. }
  370. return 0;
  371. }
  372. /*
  373. Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
  374. */
  375. SWIGRUNTIME swig_cast_info *
  376. SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
  377. if (ty) {
  378. swig_cast_info *iter = ty->cast;
  379. while (iter) {
  380. if (iter->type == from) {
  381. if (iter == ty->cast)
  382. return iter;
  383. /* Move iter to the top of the linked list */
  384. iter->prev->next = iter->next;
  385. if (iter->next)
  386. iter->next->prev = iter->prev;
  387. iter->next = ty->cast;
  388. iter->prev = 0;
  389. if (ty->cast) ty->cast->prev = iter;
  390. ty->cast = iter;
  391. return iter;
  392. }
  393. iter = iter->next;
  394. }
  395. }
  396. return 0;
  397. }
  398. /*
  399. Cast a pointer up an inheritance hierarchy
  400. */
  401. SWIGRUNTIMEINLINE void *
  402. SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
  403. return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
  404. }
  405. /*
  406. Dynamic pointer casting. Down an inheritance hierarchy
  407. */
  408. SWIGRUNTIME swig_type_info *
  409. SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  410. swig_type_info *lastty = ty;
  411. if (!ty || !ty->dcast) return ty;
  412. while (ty && (ty->dcast)) {
  413. ty = (*ty->dcast)(ptr);
  414. if (ty) lastty = ty;
  415. }
  416. return lastty;
  417. }
  418. /*
  419. Return the name associated with this type
  420. */
  421. SWIGRUNTIMEINLINE const char *
  422. SWIG_TypeName(const swig_type_info *ty) {
  423. return ty->name;
  424. }
  425. /*
  426. Return the pretty name associated with this type,
  427. that is an unmangled type name in a form presentable to the user.
  428. */
  429. SWIGRUNTIME const char *
  430. SWIG_TypePrettyName(const swig_type_info *type) {
  431. /* The "str" field contains the equivalent pretty names of the
  432. type, separated by vertical-bar characters. We choose
  433. to print the last name, as it is often (?) the most
  434. specific. */
  435. if (!type) return NULL;
  436. if (type->str != NULL) {
  437. const char *last_name = type->str;
  438. const char *s;
  439. for (s = type->str; *s; s++)
  440. if (*s == '|') last_name = s+1;
  441. return last_name;
  442. }
  443. else
  444. return type->name;
  445. }
  446. /*
  447. Set the clientdata field for a type
  448. */
  449. SWIGRUNTIME void
  450. SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  451. swig_cast_info *cast = ti->cast;
  452. /* if (ti->clientdata == clientdata) return; */
  453. ti->clientdata = clientdata;
  454. while (cast) {
  455. if (!cast->converter) {
  456. swig_type_info *tc = cast->type;
  457. if (!tc->clientdata) {
  458. SWIG_TypeClientData(tc, clientdata);
  459. }
  460. }
  461. cast = cast->next;
  462. }
  463. }
  464. SWIGRUNTIME void
  465. SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  466. SWIG_TypeClientData(ti, clientdata);
  467. ti->owndata = 1;
  468. }
  469. /*
  470. Search for a swig_type_info structure only by mangled name
  471. Search is a O(log #types)
  472. We start searching at module start, and finish searching when start == end.
  473. Note: if start == end at the beginning of the function, we go all the way around
  474. the circular list.
  475. */
  476. SWIGRUNTIME swig_type_info *
  477. SWIG_MangledTypeQueryModule(swig_module_info *start,
  478. swig_module_info *end,
  479. const char *name) {
  480. swig_module_info *iter = start;
  481. do {
  482. if (iter->size) {
  483. size_t l = 0;
  484. size_t r = iter->size - 1;
  485. do {
  486. /* since l+r >= 0, we can (>> 1) instead (/ 2) */
  487. size_t i = (l + r) >> 1;
  488. const char *iname = iter->types[i]->name;
  489. if (iname) {
  490. int compare = strcmp(name, iname);
  491. if (compare == 0) {
  492. return iter->types[i];
  493. } else if (compare < 0) {
  494. if (i) {
  495. r = i - 1;
  496. } else {
  497. break;
  498. }
  499. } else if (compare > 0) {
  500. l = i + 1;
  501. }
  502. } else {
  503. break; /* should never happen */
  504. }
  505. } while (l <= r);
  506. }
  507. iter = iter->next;
  508. } while (iter != end);
  509. return 0;
  510. }
  511. /*
  512. Search for a swig_type_info structure for either a mangled name or a human readable name.
  513. It first searches the mangled names of the types, which is a O(log #types)
  514. If a type is not found it then searches the human readable names, which is O(#types).
  515. We start searching at module start, and finish searching when start == end.
  516. Note: if start == end at the beginning of the function, we go all the way around
  517. the circular list.
  518. */
  519. SWIGRUNTIME swig_type_info *
  520. SWIG_TypeQueryModule(swig_module_info *start,
  521. swig_module_info *end,
  522. const char *name) {
  523. /* STEP 1: Search the name field using binary search */
  524. swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  525. if (ret) {
  526. return ret;
  527. } else {
  528. /* STEP 2: If the type hasn't been found, do a complete search
  529. of the str field (the human readable name) */
  530. swig_module_info *iter = start;
  531. do {
  532. size_t i = 0;
  533. for (; i < iter->size; ++i) {
  534. if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
  535. return iter->types[i];
  536. }
  537. iter = iter->next;
  538. } while (iter != end);
  539. }
  540. /* neither found a match */
  541. return 0;
  542. }
  543. /*
  544. Pack binary data into a string
  545. */
  546. SWIGRUNTIME char *
  547. SWIG_PackData(char *c, void *ptr, size_t sz) {
  548. static const char hex[17] = "0123456789abcdef";
  549. const unsigned char *u = (unsigned char *) ptr;
  550. const unsigned char *eu = u + sz;
  551. for (; u != eu; ++u) {
  552. unsigned char uu = *u;
  553. *(c++) = hex[(uu & 0xf0) >> 4];
  554. *(c++) = hex[uu & 0xf];
  555. }
  556. return c;
  557. }
  558. /*
  559. Unpack binary data from a string
  560. */
  561. SWIGRUNTIME const char *
  562. SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  563. unsigned char *u = (unsigned char *) ptr;
  564. const unsigned char *eu = u + sz;
  565. for (; u != eu; ++u) {
  566. char d = *(c++);
  567. unsigned char uu;
  568. if ((d >= '0') && (d <= '9'))
  569. uu = ((d - '0') << 4);
  570. else if ((d >= 'a') && (d <= 'f'))
  571. uu = ((d - ('a'-10)) << 4);
  572. else
  573. return (char *) 0;
  574. d = *(c++);
  575. if ((d >= '0') && (d <= '9'))
  576. uu |= (d - '0');
  577. else if ((d >= 'a') && (d <= 'f'))
  578. uu |= (d - ('a'-10));
  579. else
  580. return (char *) 0;
  581. *u = uu;
  582. }
  583. return c;
  584. }
  585. /*
  586. Pack 'void *' into a string buffer.
  587. */
  588. SWIGRUNTIME char *
  589. SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  590. char *r = buff;
  591. if ((2*sizeof(void *) + 2) > bsz) return 0;
  592. *(r++) = '_';
  593. r = SWIG_PackData(r,&ptr,sizeof(void *));
  594. if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  595. strcpy(r,name);
  596. return buff;
  597. }
  598. SWIGRUNTIME const char *
  599. SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  600. if (*c != '_') {
  601. if (strcmp(c,"NULL") == 0) {
  602. *ptr = (void *) 0;
  603. return name;
  604. } else {
  605. return 0;
  606. }
  607. }
  608. return SWIG_UnpackData(++c,ptr,sizeof(void *));
  609. }
  610. SWIGRUNTIME char *
  611. SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  612. char *r = buff;
  613. size_t lname = (name ? strlen(name) : 0);
  614. if ((2*sz + 2 + lname) > bsz) return 0;
  615. *(r++) = '_';
  616. r = SWIG_PackData(r,ptr,sz);
  617. if (lname) {
  618. strncpy(r,name,lname+1);
  619. } else {
  620. *r = 0;
  621. }
  622. return buff;
  623. }
  624. SWIGRUNTIME const char *
  625. SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  626. if (*c != '_') {
  627. if (strcmp(c,"NULL") == 0) {
  628. memset(ptr,0,sz);
  629. return name;
  630. } else {
  631. return 0;
  632. }
  633. }
  634. return SWIG_UnpackData(++c,ptr,sz);
  635. }
  636. #ifdef __cplusplus
  637. }
  638. #endif
  639. /* Errors in SWIG */
  640. #define SWIG_UnknownError -1
  641. #define SWIG_IOError -2
  642. #define SWIG_RuntimeError -3
  643. #define SWIG_IndexError -4
  644. #define SWIG_TypeError -5
  645. #define SWIG_DivisionByZero -6
  646. #define SWIG_OverflowError -7
  647. #define SWIG_SyntaxError -8
  648. #define SWIG_ValueError -9
  649. #define SWIG_SystemError -10
  650. #define SWIG_AttributeError -11
  651. #define SWIG_MemoryError -12
  652. #define SWIG_NullReferenceError -13
  653. #ifdef __cplusplus
  654. /* Needed on some windows machines---since MS plays funny games with the header files under C++ */
  655. #include <math.h>
  656. #include <stdlib.h>
  657. extern "C" {
  658. #endif
  659. #include "EXTERN.h"
  660. #include "perl.h"
  661. #include "XSUB.h"
  662. /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */
  663. /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */
  664. #ifndef PERL_REVISION
  665. # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
  666. # define PERL_PATCHLEVEL_H_IMPLICIT
  667. # include <patchlevel.h>
  668. # endif
  669. # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
  670. # include <could_not_find_Perl_patchlevel.h>
  671. # endif
  672. # ifndef PERL_REVISION
  673. # define PERL_REVISION (5)
  674. # define PERL_VERSION PATCHLEVEL
  675. # define PERL_SUBVERSION SUBVERSION
  676. # endif
  677. #endif
  678. #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
  679. #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
  680. #endif
  681. #ifndef SvIOK_UV
  682. # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
  683. #endif
  684. #ifndef SvUOK
  685. # define SvUOK(sv) SvIOK_UV(sv)
  686. #endif
  687. #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
  688. # define PL_sv_undef sv_undef
  689. # define PL_na na
  690. # define PL_errgv errgv
  691. # define PL_sv_no sv_no
  692. # define PL_sv_yes sv_yes
  693. # define PL_markstack_ptr markstack_ptr
  694. #endif
  695. #ifndef IVSIZE
  696. # ifdef LONGSIZE
  697. # define IVSIZE LONGSIZE
  698. # else
  699. # define IVSIZE 4 /* A bold guess, but the best we can make. */
  700. # endif
  701. #endif
  702. #ifndef INT2PTR
  703. # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
  704. # define PTRV UV
  705. # define INT2PTR(any,d) (any)(d)
  706. # else
  707. # if PTRSIZE == LONGSIZE
  708. # define PTRV unsigned long
  709. # else
  710. # define PTRV unsigned
  711. # endif
  712. # define INT2PTR(any,d) (any)(PTRV)(d)
  713. # endif
  714. # define NUM2PTR(any,d) (any)(PTRV)(d)
  715. # define PTR2IV(p) INT2PTR(IV,p)
  716. # define PTR2UV(p) INT2PTR(UV,p)
  717. # define PTR2NV(p) NUM2PTR(NV,p)
  718. # if PTRSIZE == LONGSIZE
  719. # define PTR2ul(p) (unsigned long)(p)
  720. # else
  721. # define PTR2ul(p) INT2PTR(unsigned long,p)
  722. # endif
  723. #endif /* !INT2PTR */
  724. #ifndef SvPV_nolen
  725. # define SvPV_nolen(x) SvPV(x,PL_na)
  726. #endif
  727. #ifndef get_sv
  728. # define get_sv perl_get_sv
  729. #endif
  730. #ifndef ERRSV
  731. # define ERRSV get_sv("@",FALSE)
  732. #endif
  733. #ifndef pTHX_
  734. #define pTHX_
  735. #endif
  736. #include <string.h>
  737. #ifdef __cplusplus
  738. }
  739. #endif
  740. /* -----------------------------------------------------------------------------
  741. * error manipulation
  742. * ----------------------------------------------------------------------------- */
  743. SWIGINTERN const char*
  744. SWIG_Perl_ErrorType(int code) {
  745. switch(code) {
  746. case SWIG_MemoryError:
  747. return "MemoryError";
  748. case SWIG_IOError:
  749. return "IOError";
  750. case SWIG_RuntimeError:
  751. return "RuntimeError";
  752. case SWIG_IndexError:
  753. return "IndexError";
  754. case SWIG_TypeError:
  755. return "TypeError";
  756. case SWIG_DivisionByZero:
  757. return "ZeroDivisionError";
  758. case SWIG_OverflowError:
  759. return "OverflowError";
  760. case SWIG_SyntaxError:
  761. return "SyntaxError";
  762. case SWIG_ValueError:
  763. return "ValueError";
  764. case SWIG_SystemError:
  765. return "SystemError";
  766. case SWIG_AttributeError:
  767. return "AttributeError";
  768. default:
  769. return "RuntimeError";
  770. }
  771. }
  772. /* -----------------------------------------------------------------------------
  773. * perlrun.swg
  774. *
  775. * This file contains the runtime support for Perl modules
  776. * and includes code for managing global variables and pointer
  777. * type checking.
  778. * ----------------------------------------------------------------------------- */
  779. #ifdef PERL_OBJECT
  780. #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
  781. #define SWIG_PERL_OBJECT_CALL pPerl,
  782. #else
  783. #define SWIG_PERL_OBJECT_DECL
  784. #define SWIG_PERL_OBJECT_CALL
  785. #endif
  786. /* Common SWIG API */
  787. /* for raw pointers */
  788. #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
  789. #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
  790. #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
  791. #define swig_owntype int
  792. /* for raw packed data */
  793. #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
  794. #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
  795. /* for class or struct pointers */
  796. #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
  797. #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
  798. /* for C or C++ function pointers */
  799. #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
  800. #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
  801. /* for C++ member pointers, ie, member methods */
  802. #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty)
  803. #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type)
  804. /* Runtime API */
  805. #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata)
  806. #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
  807. /* Error manipulation */
  808. #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
  809. #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg)
  810. #define SWIG_fail goto fail
  811. /* Perl-specific SWIG API */
  812. #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
  813. #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
  814. #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)
  815. #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1)
  816. #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1)
  817. #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2)
  818. #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2)
  819. /* -----------------------------------------------------------------------------
  820. * pointers/data manipulation
  821. * ----------------------------------------------------------------------------- */
  822. /* For backward compatibility only */
  823. #define SWIG_POINTER_EXCEPTION 0
  824. #ifdef __cplusplus
  825. extern "C" {
  826. #endif
  827. #define SWIG_OWNER SWIG_POINTER_OWN
  828. #define SWIG_SHADOW SWIG_OWNER << 1
  829. #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
  830. /* SWIG Perl macros */
  831. /* Macro to declare an XS function */
  832. #ifndef XSPROTO
  833. # define XSPROTO(name) void name(pTHX_ CV* cv)
  834. #endif
  835. /* Macro to call an XS function */
  836. #ifdef PERL_OBJECT
  837. # define SWIG_CALLXS(_name) _name(cv,pPerl)
  838. #else
  839. # ifndef MULTIPLICITY
  840. # define SWIG_CALLXS(_name) _name(cv)
  841. # else
  842. # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
  843. # endif
  844. #endif
  845. #ifdef PERL_OBJECT
  846. #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this;
  847. #ifdef __cplusplus
  848. extern "C" {
  849. #endif
  850. typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
  851. #ifdef __cplusplus
  852. }
  853. #endif
  854. #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
  855. #define SWIGCLASS_STATIC
  856. #else /* PERL_OBJECT */
  857. #define MAGIC_PPERL
  858. #define SWIGCLASS_STATIC static SWIGUNUSED
  859. #ifndef MULTIPLICITY
  860. #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
  861. #ifdef __cplusplus
  862. extern "C" {
  863. #endif
  864. typedef int (*SwigMagicFunc)(SV *, MAGIC *);
  865. #ifdef __cplusplus
  866. }
  867. #endif
  868. #else /* MULTIPLICITY */
  869. #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
  870. #ifdef __cplusplus
  871. extern "C" {
  872. #endif
  873. typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
  874. #ifdef __cplusplus
  875. }
  876. #endif
  877. #endif /* MULTIPLICITY */
  878. #endif /* PERL_OBJECT */
  879. # ifdef PERL_OBJECT
  880. # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
  881. static void SWIG_Perl_croak_null(CPerlObj *pPerl)
  882. # else
  883. static void SWIG_croak_null()
  884. # endif
  885. {
  886. SV *err = get_sv("@", GV_ADD);
  887. # if (PERL_VERSION < 6)
  888. croak("%_", err);
  889. # else
  890. if (sv_isobject(err))
  891. croak(0);
  892. else
  893. croak("%s", SvPV_nolen(err));
  894. # endif
  895. }
  896. /*
  897. Define how strict is the cast between strings and integers/doubles
  898. when overloading between these types occurs.
  899. The default is making it as strict as possible by using SWIG_AddCast
  900. when needed.
  901. You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
  902. disable the SWIG_AddCast, making the casting between string and
  903. numbers less strict.
  904. In the end, we try to solve the overloading between strings and
  905. numerical types in the more natural way, but if you can avoid it,
  906. well, avoid it using %rename, for example.
  907. */
  908. #ifndef SWIG_PERL_NO_STRICT_STR2NUM
  909. # ifndef SWIG_PERL_STRICT_STR2NUM
  910. # define SWIG_PERL_STRICT_STR2NUM
  911. # endif
  912. #endif
  913. #ifdef SWIG_PERL_STRICT_STR2NUM
  914. /* string takes precedence */
  915. #define SWIG_Str2NumCast(x) SWIG_AddCast(x)
  916. #else
  917. /* number takes precedence */
  918. #define SWIG_Str2NumCast(x) x
  919. #endif
  920. #include <stdlib.h>
  921. SWIGRUNTIME const char *
  922. SWIG_Perl_TypeProxyName(const swig_type_info *type) {
  923. if (!type) return NULL;
  924. if (type->clientdata != NULL) {
  925. return (const char*) type->clientdata;
  926. }
  927. else {
  928. return type->name;
  929. }
  930. }
  931. /* Identical to SWIG_TypeCheck, except for strcmp comparison */
  932. SWIGRUNTIME swig_cast_info *
  933. SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
  934. if (ty) {
  935. swig_cast_info *iter = ty->cast;
  936. while (iter) {
  937. if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) {
  938. if (iter == ty->cast)
  939. return iter;
  940. /* Move iter to the top of the linked list */
  941. iter->prev->next = iter->next;
  942. if (iter->next)
  943. iter->next->prev = iter->prev;
  944. iter->next = ty->cast;
  945. iter->prev = 0;
  946. if (ty->cast) ty->cast->prev = iter;
  947. ty->cast = iter;
  948. return iter;
  949. }
  950. iter = iter->next;
  951. }
  952. }
  953. return 0;
  954. }
  955. /* Function for getting a pointer value */
  956. SWIGRUNTIME int
  957. SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
  958. swig_cast_info *tc;
  959. void *voidptr = (void *)0;
  960. SV *tsv = 0;
  961. if (own)
  962. *own = 0;
  963. /* If magical, apply more magic */
  964. if (SvGMAGICAL(sv))
  965. mg_get(sv);
  966. /* Check to see if this is an object */
  967. if (sv_isobject(sv)) {
  968. IV tmp = 0;
  969. tsv = (SV*) SvRV(sv);
  970. if ((SvTYPE(tsv) == SVt_PVHV)) {
  971. MAGIC *mg;
  972. if (SvMAGICAL(tsv)) {
  973. mg = mg_find(tsv,'P');
  974. if (mg) {
  975. sv = mg->mg_obj;
  976. if (sv_isobject(sv)) {
  977. tsv = (SV*)SvRV(sv);
  978. tmp = SvIV(tsv);
  979. }
  980. }
  981. } else {
  982. return SWIG_ERROR;
  983. }
  984. } else {
  985. tmp = SvIV(tsv);
  986. }
  987. voidptr = INT2PTR(void *,tmp);
  988. } else if (! SvOK(sv)) { /* Check for undef */
  989. *(ptr) = (void *) 0;
  990. return SWIG_OK;
  991. } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */
  992. if (!SvROK(sv)) {
  993. /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */
  994. if (SvIOK(sv)) {
  995. return SWIG_ERROR;
  996. } else {
  997. /* NULL pointer (reference to undef). */
  998. *(ptr) = (void *) 0;
  999. return SWIG_OK;
  1000. }
  1001. } else {
  1002. return SWIG_ERROR;
  1003. }
  1004. } else { /* Don't know what it is */
  1005. return SWIG_ERROR;
  1006. }
  1007. if (_t) {
  1008. /* Now see if the types match */
  1009. char *_c = HvNAME(SvSTASH(SvRV(sv)));
  1010. tc = SWIG_TypeProxyCheck(_c,_t);
  1011. #ifdef SWIG_DIRECTORS
  1012. if (!tc && !sv_derived_from(sv,SWIG_Perl_TypeProxyName(_t))) {
  1013. #else
  1014. if (!tc) {
  1015. #endif
  1016. return SWIG_ERROR;
  1017. }
  1018. {
  1019. int newmemory = 0;
  1020. *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
  1021. if (newmemory == SWIG_CAST_NEW_MEMORY) {
  1022. assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
  1023. if (own)
  1024. *own = *own | SWIG_CAST_NEW_MEMORY;
  1025. }
  1026. }
  1027. } else {
  1028. *ptr = voidptr;
  1029. }
  1030. /*
  1031. * DISOWN implementation: we need a perl guru to check this one.
  1032. */
  1033. if (tsv && (flags & SWIG_POINTER_DISOWN)) {
  1034. /*
  1035. * almost copy paste code from below SWIG_POINTER_OWN setting
  1036. */
  1037. SV *obj = sv;
  1038. HV *stash = SvSTASH(SvRV(obj));
  1039. GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
  1040. if (isGV(gv)) {
  1041. HV *hv = GvHVn(gv);
  1042. /*
  1043. * To set ownership (see below), a newSViv(1) entry is added.
  1044. * Hence, to remove ownership, we delete the entry.
  1045. */
  1046. if (hv_exists_ent(hv, obj, 0)) {
  1047. hv_delete_ent(hv, obj, 0, 0);
  1048. }
  1049. }
  1050. }
  1051. return SWIG_OK;
  1052. }
  1053. SWIGRUNTIME int
  1054. SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
  1055. return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
  1056. }
  1057. SWIGRUNTIME void
  1058. SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
  1059. if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
  1060. SV *self;
  1061. SV *obj=newSV(0);
  1062. HV *hash=newHV();
  1063. HV *stash;
  1064. sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr);
  1065. stash=SvSTASH(SvRV(obj));
  1066. if (flags & SWIG_POINTER_OWN) {
  1067. HV *hv;
  1068. GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
  1069. if (!isGV(gv))
  1070. gv_init(gv, stash, "OWNER", 5, FALSE);
  1071. hv=GvHVn(gv);
  1072. hv_store_ent(hv, obj, newSViv(1), 0);
  1073. }
  1074. sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
  1075. SvREFCNT_dec(obj);
  1076. self=newRV_noinc((SV *)hash);
  1077. sv_setsv(sv, self);
  1078. SvREFCNT_dec((SV *)self);
  1079. sv_bless(sv, stash);
  1080. }
  1081. else {
  1082. sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr);
  1083. }
  1084. }
  1085. SWIGRUNTIMEINLINE SV *
  1086. SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
  1087. SV *result = sv_newmortal();
  1088. SWIG_MakePtr(result, ptr, t, flags);
  1089. return result;
  1090. }
  1091. SWIGRUNTIME void
  1092. SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
  1093. char result[1024];
  1094. char *r = result;
  1095. if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
  1096. *(r++) = '_';
  1097. r = SWIG_PackData(r,ptr,sz);
  1098. strcpy(r,SWIG_Perl_TypeProxyName(type));
  1099. sv_setpv(sv, result);
  1100. }
  1101. SWIGRUNTIME SV *
  1102. SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
  1103. SV *result = sv_newmortal();
  1104. SWIG_Perl_MakePackedObj(result, ptr, sz, type);
  1105. return result;
  1106. }
  1107. /* Convert a packed value value */
  1108. SWIGRUNTIME int
  1109. SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
  1110. swig_cast_info *tc;
  1111. const char *c = 0;
  1112. if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
  1113. c = SvPV_nolen(obj);
  1114. /* Pointer values must start with leading underscore */
  1115. if (*c != '_') return SWIG_ERROR;
  1116. c++;
  1117. c = SWIG_UnpackData(c,ptr,sz);
  1118. if (ty) {
  1119. tc = SWIG_TypeCheck(c,ty);
  1120. if (!tc) return SWIG_ERROR;
  1121. }
  1122. return SWIG_OK;
  1123. }
  1124. /* Macros for low-level exception handling */
  1125. #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
  1126. typedef XSPROTO(SwigPerlWrapper);
  1127. typedef SwigPerlWrapper *SwigPerlWrapperPtr;
  1128. /* Structure for command table */
  1129. typedef struct {
  1130. const char *name;
  1131. SwigPerlWrapperPtr wrapper;
  1132. } swig_command_info;
  1133. /* Information for constant table */
  1134. #define SWIG_INT 1
  1135. #define SWIG_FLOAT 2
  1136. #define SWIG_STRING 3
  1137. #define SWIG_POINTER 4
  1138. #define SWIG_BINARY 5
  1139. /* Constant information structure */
  1140. typedef struct swig_constant_info {
  1141. int type;
  1142. const char *name;
  1143. long lvalue;
  1144. double dvalue;
  1145. void *pvalue;
  1146. swig_type_info **ptype;
  1147. } swig_constant_info;
  1148. /* Structure for variable table */
  1149. typedef struct {
  1150. const char *name;
  1151. SwigMagicFunc set;
  1152. SwigMagicFunc get;
  1153. swig_type_info **type;
  1154. } swig_variable_info;
  1155. /* Magic variable code */
  1156. #ifndef PERL_OBJECT
  1157. # ifdef __cplusplus
  1158. # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c)
  1159. # else
  1160. # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c)
  1161. # endif
  1162. # ifndef MULTIPLICITY
  1163. SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
  1164. # else
  1165. SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
  1166. # endif
  1167. #else
  1168. # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
  1169. SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *))
  1170. #endif
  1171. {
  1172. MAGIC *mg;
  1173. sv_magic(sv,sv,'U',name,strlen(name));
  1174. mg = mg_find(sv,'U');
  1175. mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
  1176. mg->mg_virtual->svt_get = (SwigMagicFunc) get;
  1177. mg->mg_virtual->svt_set = (SwigMagicFunc) set;
  1178. mg->mg_virtual->svt_len = 0;
  1179. mg->mg_virtual->svt_clear = 0;
  1180. mg->mg_virtual->svt_free = 0;
  1181. }
  1182. SWIGRUNTIME swig_module_info *
  1183. SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
  1184. static void *type_pointer = (void *)0;
  1185. SV *pointer;
  1186. /* first check if pointer already created */
  1187. if (!type_pointer) {
  1188. pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
  1189. if (pointer && SvOK(pointer)) {
  1190. type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
  1191. }
  1192. }
  1193. return (swig_module_info *) type_pointer;
  1194. }
  1195. SWIGRUNTIME void
  1196. SWIG_Perl_SetModule(swig_module_info *module) {
  1197. SV *pointer;
  1198. /* create a new pointer */
  1199. pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
  1200. sv_setiv(pointer, PTR2IV(module));
  1201. }
  1202. #ifdef __cplusplus
  1203. }
  1204. #endif
  1205. /* Workaround perl5 global namespace pollution. Note that undefining library
  1206. * functions like fopen will not solve the problem on all platforms as fopen
  1207. * might be a macro on Windows but not necessarily on other operating systems. */
  1208. #ifdef do_open
  1209. #undef do_open
  1210. #endif
  1211. #ifdef do_close
  1212. #undef do_close
  1213. #endif
  1214. #ifdef do_exec
  1215. #undef do_exec
  1216. #endif
  1217. #ifdef scalar
  1218. #undef scalar
  1219. #endif
  1220. #ifdef list
  1221. #undef list
  1222. #endif
  1223. #ifdef apply
  1224. #undef apply
  1225. #endif
  1226. #ifdef convert
  1227. #undef convert
  1228. #endif
  1229. #ifdef Error
  1230. #undef Error
  1231. #endif
  1232. #ifdef form
  1233. #undef form
  1234. #endif
  1235. #ifdef vform
  1236. #undef vform
  1237. #endif
  1238. #ifdef LABEL
  1239. #undef LABEL
  1240. #endif
  1241. #ifdef METHOD
  1242. #undef METHOD
  1243. #endif
  1244. #ifdef Move
  1245. #undef Move
  1246. #endif
  1247. #ifdef yylex
  1248. #undef yylex
  1249. #endif
  1250. #ifdef yyparse
  1251. #undef yyparse
  1252. #endif
  1253. #ifdef yyerror
  1254. #undef yyerror
  1255. #endif
  1256. #ifdef invert
  1257. #undef invert
  1258. #endif
  1259. #ifdef ref
  1260. #undef ref
  1261. #endif
  1262. #ifdef read
  1263. #undef read
  1264. #endif
  1265. #ifdef write
  1266. #undef write
  1267. #endif
  1268. #ifdef eof
  1269. #undef eof
  1270. #endif
  1271. #ifdef close
  1272. #undef close
  1273. #endif
  1274. #ifdef rewind
  1275. #undef rewind
  1276. #endif
  1277. #ifdef free
  1278. #undef free
  1279. #endif
  1280. #ifdef malloc
  1281. #undef malloc
  1282. #endif
  1283. #ifdef calloc
  1284. #undef calloc
  1285. #endif
  1286. #ifdef Stat
  1287. #undef Stat
  1288. #endif
  1289. #ifdef check
  1290. #undef check
  1291. #endif
  1292. #ifdef seekdir
  1293. #undef seekdir
  1294. #endif
  1295. #ifdef open
  1296. #undef open
  1297. #endif
  1298. #ifdef readdir
  1299. #undef readdir
  1300. #endif
  1301. #ifdef bind
  1302. #undef bind
  1303. #endif
  1304. #ifdef access
  1305. #undef access
  1306. #endif
  1307. #ifdef stat
  1308. #undef stat
  1309. #endif
  1310. #ifdef bool
  1311. /* Leave if macro is from C99 stdbool.h */
  1312. #ifndef __bool_true_false_are_defined
  1313. #undef bool
  1314. #endif
  1315. #endif
  1316. #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
  1317. #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
  1318. /* -------- TYPES TABLE (BEGIN) -------- */
  1319. #define SWIGTYPE_p_ESLconnection swig_types[0]
  1320. #define SWIGTYPE_p_ESLevent swig_types[1]
  1321. #define SWIGTYPE_p_char swig_types[2]
  1322. #define SWIGTYPE_p_esl_event_t swig_types[3]
  1323. #define SWIGTYPE_p_esl_priority_t swig_types[4]
  1324. static swig_type_info *swig_types[6];
  1325. static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
  1326. #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
  1327. #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
  1328. /* -------- TYPES TABLE (END) -------- */
  1329. #define SWIG_init boot_ESL
  1330. #define SWIG_name "ESLc::boot_ESL"
  1331. #define SWIG_prefix "ESLc::"
  1332. #define SWIGVERSION 0x030002
  1333. #define SWIG_VERSION SWIGVERSION
  1334. #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
  1335. #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
  1336. #include <stdexcept>
  1337. #ifdef __cplusplus
  1338. extern "C"
  1339. #endif
  1340. #ifndef PERL_OBJECT
  1341. #ifndef MULTIPLICITY
  1342. SWIGEXPORT void SWIG_init (CV* cv);
  1343. #else
  1344. SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
  1345. #endif
  1346. #else
  1347. SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
  1348. #endif
  1349. #include "esl.h"
  1350. #include "esl_oop.h"
  1351. SWIGINTERN swig_type_info*
  1352. SWIG_pchar_descriptor(void)
  1353. {
  1354. static int init = 0;
  1355. static swig_type_info* info = 0;
  1356. if (!init) {
  1357. info = SWIG_TypeQuery("_p_char");
  1358. init = 1;
  1359. }
  1360. return info;
  1361. }
  1362. SWIGINTERN int
  1363. SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
  1364. {
  1365. if (SvMAGICAL(obj)) {
  1366. SV *tmp = sv_newmortal();
  1367. SvSetSV(tmp, obj);
  1368. obj = tmp;
  1369. }
  1370. if (SvPOK(obj)) {
  1371. STRLEN len = 0;
  1372. char *cstr = SvPV(obj, len);
  1373. size_t size = len + 1;
  1374. if (cptr) {
  1375. if (alloc) {
  1376. if (*alloc == SWIG_NEWOBJ) {
  1377. *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
  1378. } else {
  1379. *cptr = cstr;
  1380. *alloc = SWIG_OLDOBJ;
  1381. }
  1382. }
  1383. }
  1384. if (psize) *psize = size;
  1385. return SWIG_OK;
  1386. } else {
  1387. swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
  1388. if (pchar_descriptor) {
  1389. char* vptr = 0;
  1390. if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
  1391. if (cptr) *cptr = vptr;
  1392. if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
  1393. if (alloc) *alloc = SWIG_OLDOBJ;
  1394. return SWIG_OK;
  1395. }
  1396. }
  1397. }
  1398. return SWIG_TypeError;
  1399. }
  1400. SWIGINTERNINLINE SV *
  1401. SWIG_FromCharPtrAndSize(const char* carray, size_t size)
  1402. {
  1403. SV *obj = sv_newmortal();
  1404. if (carray) {
  1405. sv_setpvn(obj, carray, size);
  1406. } else {
  1407. sv_setsv(obj, &PL_sv_undef);
  1408. }
  1409. return obj;
  1410. }
  1411. SWIGINTERNINLINE SV *
  1412. SWIG_FromCharPtr(const char *cptr)
  1413. {
  1414. return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
  1415. }
  1416. #include <limits.h>
  1417. #if !defined(SWIG_NO_LLONG_MAX)
  1418. # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
  1419. # define LLONG_MAX __LONG_LONG_MAX__
  1420. # define LLONG_MIN (-LLONG_MAX - 1LL)
  1421. # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
  1422. # endif
  1423. #endif
  1424. SWIGINTERN int
  1425. SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
  1426. {
  1427. if (SvNIOK(obj)) {
  1428. if (val) *val = SvNV(obj);
  1429. return SWIG_OK;
  1430. } else if (SvIOK(obj)) {
  1431. if (val) *val = (double) SvIV(obj);
  1432. return SWIG_AddCast(SWIG_OK);
  1433. } else {
  1434. const char *nptr = SvPV_nolen(obj);
  1435. if (nptr) {
  1436. char *endptr;
  1437. double v;
  1438. errno = 0;
  1439. v = strtod(nptr, &endptr);
  1440. if (errno == ERANGE) {
  1441. errno = 0;
  1442. return SWIG_OverflowError;
  1443. } else {
  1444. if (*endptr == '\0') {
  1445. if (val) *val = v;
  1446. return SWIG_Str2NumCast(SWIG_OK);
  1447. }
  1448. }
  1449. }
  1450. }
  1451. return SWIG_TypeError;
  1452. }
  1453. #include <float.h>
  1454. #include <math.h>
  1455. SWIGINTERNINLINE int
  1456. SWIG_CanCastAsInteger(double *d, double min, double max) {
  1457. double x = *d;
  1458. if ((min <= x && x <= max)) {
  1459. double fx = floor(x);
  1460. double cx = ceil(x);
  1461. double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
  1462. if ((errno == EDOM) || (errno == ERANGE)) {
  1463. errno = 0;
  1464. } else {
  1465. double summ, reps, diff;
  1466. if (rd < x) {
  1467. diff = x - rd;
  1468. } else if (rd > x) {
  1469. diff = rd - x;
  1470. } else {
  1471. return 1;
  1472. }
  1473. summ = rd + x;
  1474. reps = diff/summ;
  1475. if (reps < 8*DBL_EPSILON) {
  1476. *d = rd;
  1477. return 1;
  1478. }
  1479. }
  1480. }
  1481. return 0;
  1482. }
  1483. SWIGINTERN int
  1484. SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
  1485. {
  1486. if (SvUOK(obj)) {
  1487. UV v = SvUV(obj);
  1488. if (v <= LONG_MAX) {
  1489. if (val) *val = v;
  1490. return SWIG_OK;
  1491. }
  1492. return SWIG_OverflowError;
  1493. } else if (SvIOK(obj)) {
  1494. IV v = SvIV(obj);
  1495. if (v >= LONG_MIN && v <= LONG_MAX) {
  1496. if(val) *val = v;
  1497. return SWIG_OK;
  1498. }
  1499. return SWIG_OverflowError;
  1500. } else {
  1501. int dispatch = 0;
  1502. const char *nptr = SvPV_nolen(obj);
  1503. if (nptr) {
  1504. char *endptr;
  1505. long v;
  1506. errno = 0;
  1507. v = strtol(nptr, &endptr,0);
  1508. if (errno == ERANGE) {
  1509. errno = 0;
  1510. return SWIG_OverflowError;
  1511. } else {
  1512. if (*endptr == '\0') {
  1513. if (val) *val = v;
  1514. return SWIG_Str2NumCast(SWIG_OK);
  1515. }
  1516. }
  1517. }
  1518. if (!dispatch) {
  1519. double d;
  1520. int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
  1521. if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
  1522. if (val) *val = (long)(d);
  1523. return res;
  1524. }
  1525. }
  1526. }
  1527. return SWIG_TypeError;
  1528. }
  1529. SWIGINTERN int
  1530. SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
  1531. {
  1532. long v;
  1533. int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
  1534. if (SWIG_IsOK(res)) {
  1535. if ((v < INT_MIN || v > INT_MAX)) {
  1536. return SWIG_OverflowError;
  1537. } else {
  1538. if (val) *val = static_cast< int >(v);
  1539. }
  1540. }
  1541. return res;
  1542. }
  1543. SWIGINTERNINLINE SV *
  1544. SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
  1545. {
  1546. SV *sv;
  1547. if (value >= IV_MIN && value <= IV_MAX)
  1548. sv = newSViv(value);
  1549. else
  1550. sv = newSVpvf("%ld", value);
  1551. return sv_2mortal(sv);
  1552. }
  1553. SWIGINTERNINLINE SV *
  1554. SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
  1555. {
  1556. return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
  1557. }
  1558. SWIGINTERNINLINE SV *
  1559. SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value)
  1560. {
  1561. return boolSV(value);
  1562. }
  1563. #ifdef __cplusplus
  1564. extern "C" {
  1565. #endif
  1566. #ifdef PERL_OBJECT
  1567. #define MAGIC_CLASS _wrap_ESL_var::
  1568. class _wrap_ESL_var : public CPerlObj {
  1569. public:
  1570. #else
  1571. #define MAGIC_CLASS
  1572. #endif
  1573. SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
  1574. MAGIC_PPERL
  1575. croak("Value is read-only.");
  1576. return 0;
  1577. }
  1578. #ifdef PERL_OBJECT
  1579. };
  1580. #endif
  1581. #ifdef __cplusplus
  1582. }
  1583. #endif
  1584. #ifdef __cplusplus
  1585. extern "C" {
  1586. #endif
  1587. XS(_wrap_ESLevent_event_set) {
  1588. {
  1589. ESLevent *arg1 = (ESLevent *) 0 ;
  1590. esl_event_t *arg2 = (esl_event_t *) 0 ;
  1591. void *argp1 = 0 ;
  1592. int res1 = 0 ;
  1593. void *argp2 = 0 ;
  1594. int res2 = 0 ;
  1595. int argvi = 0;
  1596. dXSARGS;
  1597. if ((items < 2) || (items > 2)) {
  1598. SWIG_croak("Usage: ESLevent_event_set(self,event);");
  1599. }
  1600. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1601. if (!SWIG_IsOK(res1)) {
  1602. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_event_set" "', argument " "1"" of type '" "ESLevent *""'");
  1603. }
  1604. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1605. res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_esl_event_t, SWIG_POINTER_DISOWN | 0 );
  1606. if (!SWIG_IsOK(res2)) {
  1607. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_event_set" "', argument " "2"" of type '" "esl_event_t *""'");
  1608. }
  1609. arg2 = reinterpret_cast< esl_event_t * >(argp2);
  1610. if (arg1) (arg1)->event = arg2;
  1611. ST(argvi) = sv_newmortal();
  1612. XSRETURN(argvi);
  1613. fail:
  1614. SWIG_croak_null();
  1615. }
  1616. }
  1617. XS(_wrap_ESLevent_event_get) {
  1618. {
  1619. ESLevent *arg1 = (ESLevent *) 0 ;
  1620. void *argp1 = 0 ;
  1621. int res1 = 0 ;
  1622. int argvi = 0;
  1623. esl_event_t *result = 0 ;
  1624. dXSARGS;
  1625. if ((items < 1) || (items > 1)) {
  1626. SWIG_croak("Usage: ESLevent_event_get(self);");
  1627. }
  1628. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1629. if (!SWIG_IsOK(res1)) {
  1630. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_event_get" "', argument " "1"" of type '" "ESLevent *""'");
  1631. }
  1632. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1633. result = (esl_event_t *) ((arg1)->event);
  1634. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_esl_event_t, 0 | 0); argvi++ ;
  1635. XSRETURN(argvi);
  1636. fail:
  1637. SWIG_croak_null();
  1638. }
  1639. }
  1640. XS(_wrap_ESLevent_serialized_string_set) {
  1641. {
  1642. ESLevent *arg1 = (ESLevent *) 0 ;
  1643. char *arg2 = (char *) 0 ;
  1644. void *argp1 = 0 ;
  1645. int res1 = 0 ;
  1646. int res2 ;
  1647. char *buf2 = 0 ;
  1648. int alloc2 = 0 ;
  1649. int argvi = 0;
  1650. dXSARGS;
  1651. if ((items < 2) || (items > 2)) {
  1652. SWIG_croak("Usage: ESLevent_serialized_string_set(self,serialized_string);");
  1653. }
  1654. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1655. if (!SWIG_IsOK(res1)) {
  1656. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_serialized_string_set" "', argument " "1"" of type '" "ESLevent *""'");
  1657. }
  1658. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1659. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  1660. if (!SWIG_IsOK(res2)) {
  1661. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_serialized_string_set" "', argument " "2"" of type '" "char *""'");
  1662. }
  1663. arg2 = reinterpret_cast< char * >(buf2);
  1664. if (arg1->serialized_string) delete[] arg1->serialized_string;
  1665. if (arg2) {
  1666. size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
  1667. arg1->serialized_string = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
  1668. } else {
  1669. arg1->serialized_string = 0;
  1670. }
  1671. ST(argvi) = sv_newmortal();
  1672. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  1673. XSRETURN(argvi);
  1674. fail:
  1675. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  1676. SWIG_croak_null();
  1677. }
  1678. }
  1679. XS(_wrap_ESLevent_serialized_string_get) {
  1680. {
  1681. ESLevent *arg1 = (ESLevent *) 0 ;
  1682. void *argp1 = 0 ;
  1683. int res1 = 0 ;
  1684. int argvi = 0;
  1685. char *result = 0 ;
  1686. dXSARGS;
  1687. if ((items < 1) || (items > 1)) {
  1688. SWIG_croak("Usage: ESLevent_serialized_string_get(self);");
  1689. }
  1690. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1691. if (!SWIG_IsOK(res1)) {
  1692. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_serialized_string_get" "', argument " "1"" of type '" "ESLevent *""'");
  1693. }
  1694. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1695. result = (char *) ((arg1)->serialized_string);
  1696. ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
  1697. XSRETURN(argvi);
  1698. fail:
  1699. SWIG_croak_null();
  1700. }
  1701. }
  1702. XS(_wrap_ESLevent_mine_set) {
  1703. {
  1704. ESLevent *arg1 = (ESLevent *) 0 ;
  1705. int arg2 ;
  1706. void *argp1 = 0 ;
  1707. int res1 = 0 ;
  1708. int val2 ;
  1709. int ecode2 = 0 ;
  1710. int argvi = 0;
  1711. dXSARGS;
  1712. if ((items < 2) || (items > 2)) {
  1713. SWIG_croak("Usage: ESLevent_mine_set(self,mine);");
  1714. }
  1715. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1716. if (!SWIG_IsOK(res1)) {
  1717. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_mine_set" "', argument " "1"" of type '" "ESLevent *""'");
  1718. }
  1719. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1720. ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
  1721. if (!SWIG_IsOK(ecode2)) {
  1722. SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ESLevent_mine_set" "', argument " "2"" of type '" "int""'");
  1723. }
  1724. arg2 = static_cast< int >(val2);
  1725. if (arg1) (arg1)->mine = arg2;
  1726. ST(argvi) = sv_newmortal();
  1727. XSRETURN(argvi);
  1728. fail:
  1729. SWIG_croak_null();
  1730. }
  1731. }
  1732. XS(_wrap_ESLevent_mine_get) {
  1733. {
  1734. ESLevent *arg1 = (ESLevent *) 0 ;
  1735. void *argp1 = 0 ;
  1736. int res1 = 0 ;
  1737. int argvi = 0;
  1738. int result;
  1739. dXSARGS;
  1740. if ((items < 1) || (items > 1)) {
  1741. SWIG_croak("Usage: ESLevent_mine_get(self);");
  1742. }
  1743. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1744. if (!SWIG_IsOK(res1)) {
  1745. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_mine_get" "', argument " "1"" of type '" "ESLevent *""'");
  1746. }
  1747. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1748. result = (int) ((arg1)->mine);
  1749. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  1750. XSRETURN(argvi);
  1751. fail:
  1752. SWIG_croak_null();
  1753. }
  1754. }
  1755. XS(_wrap_new_ESLevent__SWIG_0) {
  1756. {
  1757. char *arg1 = (char *) 0 ;
  1758. char *arg2 = (char *) NULL ;
  1759. int res1 ;
  1760. char *buf1 = 0 ;
  1761. int alloc1 = 0 ;
  1762. int res2 ;
  1763. char *buf2 = 0 ;
  1764. int alloc2 = 0 ;
  1765. int argvi = 0;
  1766. ESLevent *result = 0 ;
  1767. dXSARGS;
  1768. if ((items < 1) || (items > 2)) {
  1769. SWIG_croak("Usage: new_ESLevent(type,subclass_name);");
  1770. }
  1771. res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
  1772. if (!SWIG_IsOK(res1)) {
  1773. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESLevent" "', argument " "1"" of type '" "char const *""'");
  1774. }
  1775. arg1 = reinterpret_cast< char * >(buf1);
  1776. if (items > 1) {
  1777. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  1778. if (!SWIG_IsOK(res2)) {
  1779. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ESLevent" "', argument " "2"" of type '" "char const *""'");
  1780. }
  1781. arg2 = reinterpret_cast< char * >(buf2);
  1782. }
  1783. result = (ESLevent *)new ESLevent((char const *)arg1,(char const *)arg2);
  1784. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  1785. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  1786. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  1787. XSRETURN(argvi);
  1788. fail:
  1789. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  1790. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  1791. SWIG_croak_null();
  1792. }
  1793. }
  1794. XS(_wrap_new_ESLevent__SWIG_1) {
  1795. {
  1796. esl_event_t *arg1 = (esl_event_t *) 0 ;
  1797. int arg2 = (int) 0 ;
  1798. void *argp1 = 0 ;
  1799. int res1 = 0 ;
  1800. int val2 ;
  1801. int ecode2 = 0 ;
  1802. int argvi = 0;
  1803. ESLevent *result = 0 ;
  1804. dXSARGS;
  1805. if ((items < 1) || (items > 2)) {
  1806. SWIG_croak("Usage: new_ESLevent(wrap_me,free_me);");
  1807. }
  1808. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_esl_event_t, 0 | 0 );
  1809. if (!SWIG_IsOK(res1)) {
  1810. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESLevent" "', argument " "1"" of type '" "esl_event_t *""'");
  1811. }
  1812. arg1 = reinterpret_cast< esl_event_t * >(argp1);
  1813. if (items > 1) {
  1814. ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
  1815. if (!SWIG_IsOK(ecode2)) {
  1816. SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ESLevent" "', argument " "2"" of type '" "int""'");
  1817. }
  1818. arg2 = static_cast< int >(val2);
  1819. }
  1820. result = (ESLevent *)new ESLevent(arg1,arg2);
  1821. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  1822. XSRETURN(argvi);
  1823. fail:
  1824. SWIG_croak_null();
  1825. }
  1826. }
  1827. XS(_wrap_new_ESLevent__SWIG_2) {
  1828. {
  1829. ESLevent *arg1 = (ESLevent *) 0 ;
  1830. void *argp1 = 0 ;
  1831. int res1 = 0 ;
  1832. int argvi = 0;
  1833. ESLevent *result = 0 ;
  1834. dXSARGS;
  1835. if ((items < 1) || (items > 1)) {
  1836. SWIG_croak("Usage: new_ESLevent(me);");
  1837. }
  1838. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1839. if (!SWIG_IsOK(res1)) {
  1840. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESLevent" "', argument " "1"" of type '" "ESLevent *""'");
  1841. }
  1842. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1843. result = (ESLevent *)new ESLevent(arg1);
  1844. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  1845. XSRETURN(argvi);
  1846. fail:
  1847. SWIG_croak_null();
  1848. }
  1849. }
  1850. XS(_wrap_new_ESLevent) {
  1851. dXSARGS;
  1852. {
  1853. unsigned long _index = 0;
  1854. SWIG_TypeRank _rank = 0;
  1855. if ((items >= 1) && (items <= 2)) {
  1856. SWIG_TypeRank _ranki = 0;
  1857. SWIG_TypeRank _rankm = 0;
  1858. SWIG_TypeRank _pi = 1;
  1859. int _v = 0;
  1860. {
  1861. void *vptr = 0;
  1862. int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_esl_event_t, 0);
  1863. _v = SWIG_CheckState(res);
  1864. }
  1865. if (!_v) goto check_1;
  1866. _ranki += _v*_pi;
  1867. _rankm += _pi;
  1868. _pi *= SWIG_MAXCASTRANK;
  1869. if (items > 1) {
  1870. {
  1871. {
  1872. int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
  1873. _v = SWIG_CheckState(res);
  1874. }
  1875. }
  1876. if (!_v) goto check_1;
  1877. _ranki += _v*_pi;
  1878. _rankm += _pi;
  1879. _pi *= SWIG_MAXCASTRANK;
  1880. }
  1881. if (!_index || (_ranki < _rank)) {
  1882. _rank = _ranki; _index = 1;
  1883. if (_rank == _rankm) goto dispatch;
  1884. }
  1885. }
  1886. check_1:
  1887. if (items == 1) {
  1888. SWIG_TypeRank _ranki = 0;
  1889. SWIG_TypeRank _rankm = 0;
  1890. SWIG_TypeRank _pi = 1;
  1891. int _v = 0;
  1892. {
  1893. void *vptr = 0;
  1894. int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ESLevent, 0);
  1895. _v = SWIG_CheckState(res);
  1896. }
  1897. if (!_v) goto check_2;
  1898. _ranki += _v*_pi;
  1899. _rankm += _pi;
  1900. _pi *= SWIG_MAXCASTRANK;
  1901. if (!_index || (_ranki < _rank)) {
  1902. _rank = _ranki; _index = 2;
  1903. if (_rank == _rankm) goto dispatch;
  1904. }
  1905. }
  1906. check_2:
  1907. if ((items >= 1) && (items <= 2)) {
  1908. SWIG_TypeRank _ranki = 0;
  1909. SWIG_TypeRank _rankm = 0;
  1910. SWIG_TypeRank _pi = 1;
  1911. int _v = 0;
  1912. {
  1913. int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
  1914. _v = SWIG_CheckState(res);
  1915. }
  1916. if (!_v) goto check_3;
  1917. _ranki += _v*_pi;
  1918. _rankm += _pi;
  1919. _pi *= SWIG_MAXCASTRANK;
  1920. if (items > 1) {
  1921. {
  1922. int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0);
  1923. _v = SWIG_CheckState(res);
  1924. }
  1925. if (!_v) goto check_3;
  1926. _ranki += _v*_pi;
  1927. _rankm += _pi;
  1928. _pi *= SWIG_MAXCASTRANK;
  1929. }
  1930. if (!_index || (_ranki < _rank)) {
  1931. _rank = _ranki; _index = 3;
  1932. if (_rank == _rankm) goto dispatch;
  1933. }
  1934. }
  1935. check_3:
  1936. dispatch:
  1937. switch(_index) {
  1938. case 1:
  1939. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLevent__SWIG_1); return;
  1940. case 2:
  1941. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLevent__SWIG_2); return;
  1942. case 3:
  1943. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLevent__SWIG_0); return;
  1944. }
  1945. }
  1946. croak("No matching function for overloaded 'new_ESLevent'");
  1947. XSRETURN(0);
  1948. }
  1949. XS(_wrap_delete_ESLevent) {
  1950. {
  1951. ESLevent *arg1 = (ESLevent *) 0 ;
  1952. void *argp1 = 0 ;
  1953. int res1 = 0 ;
  1954. int argvi = 0;
  1955. dXSARGS;
  1956. if ((items < 1) || (items > 1)) {
  1957. SWIG_croak("Usage: delete_ESLevent(self);");
  1958. }
  1959. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, SWIG_POINTER_DISOWN | 0 );
  1960. if (!SWIG_IsOK(res1)) {
  1961. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ESLevent" "', argument " "1"" of type '" "ESLevent *""'");
  1962. }
  1963. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1964. delete arg1;
  1965. ST(argvi) = sv_newmortal();
  1966. XSRETURN(argvi);
  1967. fail:
  1968. SWIG_croak_null();
  1969. }
  1970. }
  1971. XS(_wrap_ESLevent_serialize) {
  1972. {
  1973. ESLevent *arg1 = (ESLevent *) 0 ;
  1974. char *arg2 = (char *) NULL ;
  1975. void *argp1 = 0 ;
  1976. int res1 = 0 ;
  1977. int res2 ;
  1978. char *buf2 = 0 ;
  1979. int alloc2 = 0 ;
  1980. int argvi = 0;
  1981. char *result = 0 ;
  1982. dXSARGS;
  1983. if ((items < 1) || (items > 2)) {
  1984. SWIG_croak("Usage: ESLevent_serialize(self,format);");
  1985. }
  1986. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  1987. if (!SWIG_IsOK(res1)) {
  1988. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_serialize" "', argument " "1"" of type '" "ESLevent *""'");
  1989. }
  1990. arg1 = reinterpret_cast< ESLevent * >(argp1);
  1991. if (items > 1) {
  1992. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  1993. if (!SWIG_IsOK(res2)) {
  1994. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_serialize" "', argument " "2"" of type '" "char const *""'");
  1995. }
  1996. arg2 = reinterpret_cast< char * >(buf2);
  1997. }
  1998. result = (char *)(arg1)->serialize((char const *)arg2);
  1999. ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
  2000. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2001. XSRETURN(argvi);
  2002. fail:
  2003. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2004. SWIG_croak_null();
  2005. }
  2006. }
  2007. XS(_wrap_ESLevent_setPriority) {
  2008. {
  2009. ESLevent *arg1 = (ESLevent *) 0 ;
  2010. esl_priority_t arg2 = (esl_priority_t) ESL_PRIORITY_NORMAL ;
  2011. void *argp1 = 0 ;
  2012. int res1 = 0 ;
  2013. void *argp2 ;
  2014. int res2 = 0 ;
  2015. int argvi = 0;
  2016. bool result;
  2017. dXSARGS;
  2018. if ((items < 1) || (items > 2)) {
  2019. SWIG_croak("Usage: ESLevent_setPriority(self,priority);");
  2020. }
  2021. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2022. if (!SWIG_IsOK(res1)) {
  2023. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_setPriority" "', argument " "1"" of type '" "ESLevent *""'");
  2024. }
  2025. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2026. if (items > 1) {
  2027. {
  2028. res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_esl_priority_t, 0 );
  2029. if (!SWIG_IsOK(res2)) {
  2030. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_setPriority" "', argument " "2"" of type '" "esl_priority_t""'");
  2031. }
  2032. if (!argp2) {
  2033. SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ESLevent_setPriority" "', argument " "2"" of type '" "esl_priority_t""'");
  2034. } else {
  2035. arg2 = *(reinterpret_cast< esl_priority_t * >(argp2));
  2036. }
  2037. }
  2038. }
  2039. result = (bool)(arg1)->setPriority(arg2);
  2040. ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
  2041. XSRETURN(argvi);
  2042. fail:
  2043. SWIG_croak_null();
  2044. }
  2045. }
  2046. XS(_wrap_ESLevent_getHeader) {
  2047. {
  2048. ESLevent *arg1 = (ESLevent *) 0 ;
  2049. char *arg2 = (char *) 0 ;
  2050. int arg3 = (int) -1 ;
  2051. void *argp1 = 0 ;
  2052. int res1 = 0 ;
  2053. int res2 ;
  2054. char *buf2 = 0 ;
  2055. int alloc2 = 0 ;
  2056. int val3 ;
  2057. int ecode3 = 0 ;
  2058. int argvi = 0;
  2059. char *result = 0 ;
  2060. dXSARGS;
  2061. if ((items < 2) || (items > 3)) {
  2062. SWIG_croak("Usage: ESLevent_getHeader(self,header_name,idx);");
  2063. }
  2064. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2065. if (!SWIG_IsOK(res1)) {
  2066. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_getHeader" "', argument " "1"" of type '" "ESLevent *""'");
  2067. }
  2068. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2069. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2070. if (!SWIG_IsOK(res2)) {
  2071. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_getHeader" "', argument " "2"" of type '" "char const *""'");
  2072. }
  2073. arg2 = reinterpret_cast< char * >(buf2);
  2074. if (items > 2) {
  2075. ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
  2076. if (!SWIG_IsOK(ecode3)) {
  2077. SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ESLevent_getHeader" "', argument " "3"" of type '" "int""'");
  2078. }
  2079. arg3 = static_cast< int >(val3);
  2080. }
  2081. result = (char *)(arg1)->getHeader((char const *)arg2,arg3);
  2082. ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
  2083. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2084. XSRETURN(argvi);
  2085. fail:
  2086. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2087. SWIG_croak_null();
  2088. }
  2089. }
  2090. XS(_wrap_ESLevent_getBody) {
  2091. {
  2092. ESLevent *arg1 = (ESLevent *) 0 ;
  2093. void *argp1 = 0 ;
  2094. int res1 = 0 ;
  2095. int argvi = 0;
  2096. char *result = 0 ;
  2097. dXSARGS;
  2098. if ((items < 1) || (items > 1)) {
  2099. SWIG_croak("Usage: ESLevent_getBody(self);");
  2100. }
  2101. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2102. if (!SWIG_IsOK(res1)) {
  2103. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_getBody" "', argument " "1"" of type '" "ESLevent *""'");
  2104. }
  2105. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2106. result = (char *)(arg1)->getBody();
  2107. ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
  2108. XSRETURN(argvi);
  2109. fail:
  2110. SWIG_croak_null();
  2111. }
  2112. }
  2113. XS(_wrap_ESLevent_getType) {
  2114. {
  2115. ESLevent *arg1 = (ESLevent *) 0 ;
  2116. void *argp1 = 0 ;
  2117. int res1 = 0 ;
  2118. int argvi = 0;
  2119. char *result = 0 ;
  2120. dXSARGS;
  2121. if ((items < 1) || (items > 1)) {
  2122. SWIG_croak("Usage: ESLevent_getType(self);");
  2123. }
  2124. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2125. if (!SWIG_IsOK(res1)) {
  2126. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_getType" "', argument " "1"" of type '" "ESLevent *""'");
  2127. }
  2128. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2129. result = (char *)(arg1)->getType();
  2130. ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
  2131. XSRETURN(argvi);
  2132. fail:
  2133. SWIG_croak_null();
  2134. }
  2135. }
  2136. XS(_wrap_ESLevent_addBody) {
  2137. {
  2138. ESLevent *arg1 = (ESLevent *) 0 ;
  2139. char *arg2 = (char *) 0 ;
  2140. void *argp1 = 0 ;
  2141. int res1 = 0 ;
  2142. int res2 ;
  2143. char *buf2 = 0 ;
  2144. int alloc2 = 0 ;
  2145. int argvi = 0;
  2146. bool result;
  2147. dXSARGS;
  2148. if ((items < 2) || (items > 2)) {
  2149. SWIG_croak("Usage: ESLevent_addBody(self,value);");
  2150. }
  2151. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2152. if (!SWIG_IsOK(res1)) {
  2153. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_addBody" "', argument " "1"" of type '" "ESLevent *""'");
  2154. }
  2155. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2156. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2157. if (!SWIG_IsOK(res2)) {
  2158. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_addBody" "', argument " "2"" of type '" "char const *""'");
  2159. }
  2160. arg2 = reinterpret_cast< char * >(buf2);
  2161. result = (bool)(arg1)->addBody((char const *)arg2);
  2162. ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
  2163. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2164. XSRETURN(argvi);
  2165. fail:
  2166. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2167. SWIG_croak_null();
  2168. }
  2169. }
  2170. XS(_wrap_ESLevent_addHeader) {
  2171. {
  2172. ESLevent *arg1 = (ESLevent *) 0 ;
  2173. char *arg2 = (char *) 0 ;
  2174. char *arg3 = (char *) 0 ;
  2175. void *argp1 = 0 ;
  2176. int res1 = 0 ;
  2177. int res2 ;
  2178. char *buf2 = 0 ;
  2179. int alloc2 = 0 ;
  2180. int res3 ;
  2181. char *buf3 = 0 ;
  2182. int alloc3 = 0 ;
  2183. int argvi = 0;
  2184. bool result;
  2185. dXSARGS;
  2186. if ((items < 3) || (items > 3)) {
  2187. SWIG_croak("Usage: ESLevent_addHeader(self,header_name,value);");
  2188. }
  2189. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2190. if (!SWIG_IsOK(res1)) {
  2191. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_addHeader" "', argument " "1"" of type '" "ESLevent *""'");
  2192. }
  2193. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2194. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2195. if (!SWIG_IsOK(res2)) {
  2196. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_addHeader" "', argument " "2"" of type '" "char const *""'");
  2197. }
  2198. arg2 = reinterpret_cast< char * >(buf2);
  2199. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  2200. if (!SWIG_IsOK(res3)) {
  2201. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLevent_addHeader" "', argument " "3"" of type '" "char const *""'");
  2202. }
  2203. arg3 = reinterpret_cast< char * >(buf3);
  2204. result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
  2205. ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
  2206. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2207. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2208. XSRETURN(argvi);
  2209. fail:
  2210. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2211. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2212. SWIG_croak_null();
  2213. }
  2214. }
  2215. XS(_wrap_ESLevent_pushHeader) {
  2216. {
  2217. ESLevent *arg1 = (ESLevent *) 0 ;
  2218. char *arg2 = (char *) 0 ;
  2219. char *arg3 = (char *) 0 ;
  2220. void *argp1 = 0 ;
  2221. int res1 = 0 ;
  2222. int res2 ;
  2223. char *buf2 = 0 ;
  2224. int alloc2 = 0 ;
  2225. int res3 ;
  2226. char *buf3 = 0 ;
  2227. int alloc3 = 0 ;
  2228. int argvi = 0;
  2229. bool result;
  2230. dXSARGS;
  2231. if ((items < 3) || (items > 3)) {
  2232. SWIG_croak("Usage: ESLevent_pushHeader(self,header_name,value);");
  2233. }
  2234. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2235. if (!SWIG_IsOK(res1)) {
  2236. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_pushHeader" "', argument " "1"" of type '" "ESLevent *""'");
  2237. }
  2238. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2239. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2240. if (!SWIG_IsOK(res2)) {
  2241. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_pushHeader" "', argument " "2"" of type '" "char const *""'");
  2242. }
  2243. arg2 = reinterpret_cast< char * >(buf2);
  2244. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  2245. if (!SWIG_IsOK(res3)) {
  2246. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLevent_pushHeader" "', argument " "3"" of type '" "char const *""'");
  2247. }
  2248. arg3 = reinterpret_cast< char * >(buf3);
  2249. result = (bool)(arg1)->pushHeader((char const *)arg2,(char const *)arg3);
  2250. ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
  2251. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2252. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2253. XSRETURN(argvi);
  2254. fail:
  2255. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2256. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2257. SWIG_croak_null();
  2258. }
  2259. }
  2260. XS(_wrap_ESLevent_unshiftHeader) {
  2261. {
  2262. ESLevent *arg1 = (ESLevent *) 0 ;
  2263. char *arg2 = (char *) 0 ;
  2264. char *arg3 = (char *) 0 ;
  2265. void *argp1 = 0 ;
  2266. int res1 = 0 ;
  2267. int res2 ;
  2268. char *buf2 = 0 ;
  2269. int alloc2 = 0 ;
  2270. int res3 ;
  2271. char *buf3 = 0 ;
  2272. int alloc3 = 0 ;
  2273. int argvi = 0;
  2274. bool result;
  2275. dXSARGS;
  2276. if ((items < 3) || (items > 3)) {
  2277. SWIG_croak("Usage: ESLevent_unshiftHeader(self,header_name,value);");
  2278. }
  2279. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2280. if (!SWIG_IsOK(res1)) {
  2281. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_unshiftHeader" "', argument " "1"" of type '" "ESLevent *""'");
  2282. }
  2283. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2284. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2285. if (!SWIG_IsOK(res2)) {
  2286. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_unshiftHeader" "', argument " "2"" of type '" "char const *""'");
  2287. }
  2288. arg2 = reinterpret_cast< char * >(buf2);
  2289. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  2290. if (!SWIG_IsOK(res3)) {
  2291. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLevent_unshiftHeader" "', argument " "3"" of type '" "char const *""'");
  2292. }
  2293. arg3 = reinterpret_cast< char * >(buf3);
  2294. result = (bool)(arg1)->unshiftHeader((char const *)arg2,(char const *)arg3);
  2295. ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
  2296. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2297. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2298. XSRETURN(argvi);
  2299. fail:
  2300. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2301. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2302. SWIG_croak_null();
  2303. }
  2304. }
  2305. XS(_wrap_ESLevent_delHeader) {
  2306. {
  2307. ESLevent *arg1 = (ESLevent *) 0 ;
  2308. char *arg2 = (char *) 0 ;
  2309. void *argp1 = 0 ;
  2310. int res1 = 0 ;
  2311. int res2 ;
  2312. char *buf2 = 0 ;
  2313. int alloc2 = 0 ;
  2314. int argvi = 0;
  2315. bool result;
  2316. dXSARGS;
  2317. if ((items < 2) || (items > 2)) {
  2318. SWIG_croak("Usage: ESLevent_delHeader(self,header_name);");
  2319. }
  2320. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2321. if (!SWIG_IsOK(res1)) {
  2322. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_delHeader" "', argument " "1"" of type '" "ESLevent *""'");
  2323. }
  2324. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2325. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2326. if (!SWIG_IsOK(res2)) {
  2327. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLevent_delHeader" "', argument " "2"" of type '" "char const *""'");
  2328. }
  2329. arg2 = reinterpret_cast< char * >(buf2);
  2330. result = (bool)(arg1)->delHeader((char const *)arg2);
  2331. ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
  2332. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2333. XSRETURN(argvi);
  2334. fail:
  2335. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2336. SWIG_croak_null();
  2337. }
  2338. }
  2339. XS(_wrap_ESLevent_firstHeader) {
  2340. {
  2341. ESLevent *arg1 = (ESLevent *) 0 ;
  2342. void *argp1 = 0 ;
  2343. int res1 = 0 ;
  2344. int argvi = 0;
  2345. char *result = 0 ;
  2346. dXSARGS;
  2347. if ((items < 1) || (items > 1)) {
  2348. SWIG_croak("Usage: ESLevent_firstHeader(self);");
  2349. }
  2350. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2351. if (!SWIG_IsOK(res1)) {
  2352. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_firstHeader" "', argument " "1"" of type '" "ESLevent *""'");
  2353. }
  2354. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2355. result = (char *)(arg1)->firstHeader();
  2356. ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
  2357. XSRETURN(argvi);
  2358. fail:
  2359. SWIG_croak_null();
  2360. }
  2361. }
  2362. XS(_wrap_ESLevent_nextHeader) {
  2363. {
  2364. ESLevent *arg1 = (ESLevent *) 0 ;
  2365. void *argp1 = 0 ;
  2366. int res1 = 0 ;
  2367. int argvi = 0;
  2368. char *result = 0 ;
  2369. dXSARGS;
  2370. if ((items < 1) || (items > 1)) {
  2371. SWIG_croak("Usage: ESLevent_nextHeader(self);");
  2372. }
  2373. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
  2374. if (!SWIG_IsOK(res1)) {
  2375. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLevent_nextHeader" "', argument " "1"" of type '" "ESLevent *""'");
  2376. }
  2377. arg1 = reinterpret_cast< ESLevent * >(argp1);
  2378. result = (char *)(arg1)->nextHeader();
  2379. ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
  2380. XSRETURN(argvi);
  2381. fail:
  2382. SWIG_croak_null();
  2383. }
  2384. }
  2385. XS(_wrap_new_ESLconnection__SWIG_0) {
  2386. {
  2387. char *arg1 = (char *) 0 ;
  2388. int arg2 ;
  2389. char *arg3 = (char *) 0 ;
  2390. char *arg4 = (char *) 0 ;
  2391. int res1 ;
  2392. char *buf1 = 0 ;
  2393. int alloc1 = 0 ;
  2394. int val2 ;
  2395. int ecode2 = 0 ;
  2396. int res3 ;
  2397. char *buf3 = 0 ;
  2398. int alloc3 = 0 ;
  2399. int res4 ;
  2400. char *buf4 = 0 ;
  2401. int alloc4 = 0 ;
  2402. int argvi = 0;
  2403. ESLconnection *result = 0 ;
  2404. dXSARGS;
  2405. if ((items < 4) || (items > 4)) {
  2406. SWIG_croak("Usage: new_ESLconnection(host,port,user,password);");
  2407. }
  2408. res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
  2409. if (!SWIG_IsOK(res1)) {
  2410. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESLconnection" "', argument " "1"" of type '" "char const *""'");
  2411. }
  2412. arg1 = reinterpret_cast< char * >(buf1);
  2413. ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
  2414. if (!SWIG_IsOK(ecode2)) {
  2415. SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ESLconnection" "', argument " "2"" of type '" "int""'");
  2416. }
  2417. arg2 = static_cast< int >(val2);
  2418. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  2419. if (!SWIG_IsOK(res3)) {
  2420. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ESLconnection" "', argument " "3"" of type '" "char const *""'");
  2421. }
  2422. arg3 = reinterpret_cast< char * >(buf3);
  2423. res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
  2424. if (!SWIG_IsOK(res4)) {
  2425. SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ESLconnection" "', argument " "4"" of type '" "char const *""'");
  2426. }
  2427. arg4 = reinterpret_cast< char * >(buf4);
  2428. result = (ESLconnection *)new ESLconnection((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4);
  2429. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLconnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  2430. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2431. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2432. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  2433. XSRETURN(argvi);
  2434. fail:
  2435. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2436. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2437. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  2438. SWIG_croak_null();
  2439. }
  2440. }
  2441. XS(_wrap_new_ESLconnection__SWIG_1) {
  2442. {
  2443. char *arg1 = (char *) 0 ;
  2444. int arg2 ;
  2445. char *arg3 = (char *) 0 ;
  2446. int res1 ;
  2447. char *buf1 = 0 ;
  2448. int alloc1 = 0 ;
  2449. int val2 ;
  2450. int ecode2 = 0 ;
  2451. int res3 ;
  2452. char *buf3 = 0 ;
  2453. int alloc3 = 0 ;
  2454. int argvi = 0;
  2455. ESLconnection *result = 0 ;
  2456. dXSARGS;
  2457. if ((items < 3) || (items > 3)) {
  2458. SWIG_croak("Usage: new_ESLconnection(host,port,password);");
  2459. }
  2460. res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
  2461. if (!SWIG_IsOK(res1)) {
  2462. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESLconnection" "', argument " "1"" of type '" "char const *""'");
  2463. }
  2464. arg1 = reinterpret_cast< char * >(buf1);
  2465. ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
  2466. if (!SWIG_IsOK(ecode2)) {
  2467. SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ESLconnection" "', argument " "2"" of type '" "int""'");
  2468. }
  2469. arg2 = static_cast< int >(val2);
  2470. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  2471. if (!SWIG_IsOK(res3)) {
  2472. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ESLconnection" "', argument " "3"" of type '" "char const *""'");
  2473. }
  2474. arg3 = reinterpret_cast< char * >(buf3);
  2475. result = (ESLconnection *)new ESLconnection((char const *)arg1,arg2,(char const *)arg3);
  2476. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLconnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  2477. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2478. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2479. XSRETURN(argvi);
  2480. fail:
  2481. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2482. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2483. SWIG_croak_null();
  2484. }
  2485. }
  2486. XS(_wrap_new_ESLconnection__SWIG_2) {
  2487. {
  2488. char *arg1 = (char *) 0 ;
  2489. char *arg2 = (char *) 0 ;
  2490. char *arg3 = (char *) 0 ;
  2491. char *arg4 = (char *) 0 ;
  2492. int res1 ;
  2493. char *buf1 = 0 ;
  2494. int alloc1 = 0 ;
  2495. int res2 ;
  2496. char *buf2 = 0 ;
  2497. int alloc2 = 0 ;
  2498. int res3 ;
  2499. char *buf3 = 0 ;
  2500. int alloc3 = 0 ;
  2501. int res4 ;
  2502. char *buf4 = 0 ;
  2503. int alloc4 = 0 ;
  2504. int argvi = 0;
  2505. ESLconnection *result = 0 ;
  2506. dXSARGS;
  2507. if ((items < 4) || (items > 4)) {
  2508. SWIG_croak("Usage: new_ESLconnection(host,port,user,password);");
  2509. }
  2510. res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
  2511. if (!SWIG_IsOK(res1)) {
  2512. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESLconnection" "', argument " "1"" of type '" "char const *""'");
  2513. }
  2514. arg1 = reinterpret_cast< char * >(buf1);
  2515. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2516. if (!SWIG_IsOK(res2)) {
  2517. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ESLconnection" "', argument " "2"" of type '" "char const *""'");
  2518. }
  2519. arg2 = reinterpret_cast< char * >(buf2);
  2520. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  2521. if (!SWIG_IsOK(res3)) {
  2522. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ESLconnection" "', argument " "3"" of type '" "char const *""'");
  2523. }
  2524. arg3 = reinterpret_cast< char * >(buf3);
  2525. res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
  2526. if (!SWIG_IsOK(res4)) {
  2527. SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ESLconnection" "', argument " "4"" of type '" "char const *""'");
  2528. }
  2529. arg4 = reinterpret_cast< char * >(buf4);
  2530. result = (ESLconnection *)new ESLconnection((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
  2531. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLconnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  2532. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2533. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2534. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2535. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  2536. XSRETURN(argvi);
  2537. fail:
  2538. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2539. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2540. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2541. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  2542. SWIG_croak_null();
  2543. }
  2544. }
  2545. XS(_wrap_new_ESLconnection__SWIG_3) {
  2546. {
  2547. char *arg1 = (char *) 0 ;
  2548. char *arg2 = (char *) 0 ;
  2549. char *arg3 = (char *) 0 ;
  2550. int res1 ;
  2551. char *buf1 = 0 ;
  2552. int alloc1 = 0 ;
  2553. int res2 ;
  2554. char *buf2 = 0 ;
  2555. int alloc2 = 0 ;
  2556. int res3 ;
  2557. char *buf3 = 0 ;
  2558. int alloc3 = 0 ;
  2559. int argvi = 0;
  2560. ESLconnection *result = 0 ;
  2561. dXSARGS;
  2562. if ((items < 3) || (items > 3)) {
  2563. SWIG_croak("Usage: new_ESLconnection(host,port,password);");
  2564. }
  2565. res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
  2566. if (!SWIG_IsOK(res1)) {
  2567. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESLconnection" "', argument " "1"" of type '" "char const *""'");
  2568. }
  2569. arg1 = reinterpret_cast< char * >(buf1);
  2570. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2571. if (!SWIG_IsOK(res2)) {
  2572. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ESLconnection" "', argument " "2"" of type '" "char const *""'");
  2573. }
  2574. arg2 = reinterpret_cast< char * >(buf2);
  2575. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  2576. if (!SWIG_IsOK(res3)) {
  2577. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ESLconnection" "', argument " "3"" of type '" "char const *""'");
  2578. }
  2579. arg3 = reinterpret_cast< char * >(buf3);
  2580. result = (ESLconnection *)new ESLconnection((char const *)arg1,(char const *)arg2,(char const *)arg3);
  2581. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLconnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  2582. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2583. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2584. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2585. XSRETURN(argvi);
  2586. fail:
  2587. if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
  2588. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2589. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  2590. SWIG_croak_null();
  2591. }
  2592. }
  2593. XS(_wrap_new_ESLconnection__SWIG_4) {
  2594. {
  2595. int arg1 ;
  2596. int val1 ;
  2597. int ecode1 = 0 ;
  2598. int argvi = 0;
  2599. ESLconnection *result = 0 ;
  2600. dXSARGS;
  2601. if ((items < 1) || (items > 1)) {
  2602. SWIG_croak("Usage: new_ESLconnection(socket);");
  2603. }
  2604. ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
  2605. if (!SWIG_IsOK(ecode1)) {
  2606. SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ESLconnection" "', argument " "1"" of type '" "int""'");
  2607. }
  2608. arg1 = static_cast< int >(val1);
  2609. result = (ESLconnection *)new ESLconnection(arg1);
  2610. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLconnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  2611. XSRETURN(argvi);
  2612. fail:
  2613. SWIG_croak_null();
  2614. }
  2615. }
  2616. XS(_wrap_new_ESLconnection) {
  2617. dXSARGS;
  2618. {
  2619. unsigned long _index = 0;
  2620. SWIG_TypeRank _rank = 0;
  2621. if (items == 1) {
  2622. SWIG_TypeRank _ranki = 0;
  2623. SWIG_TypeRank _rankm = 0;
  2624. SWIG_TypeRank _pi = 1;
  2625. int _v = 0;
  2626. {
  2627. {
  2628. int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL);
  2629. _v = SWIG_CheckState(res);
  2630. }
  2631. }
  2632. if (!_v) goto check_1;
  2633. _ranki += _v*_pi;
  2634. _rankm += _pi;
  2635. _pi *= SWIG_MAXCASTRANK;
  2636. if (!_index || (_ranki < _rank)) {
  2637. _rank = _ranki; _index = 1;
  2638. if (_rank == _rankm) goto dispatch;
  2639. }
  2640. }
  2641. check_1:
  2642. if (items == 3) {
  2643. SWIG_TypeRank _ranki = 0;
  2644. SWIG_TypeRank _rankm = 0;
  2645. SWIG_TypeRank _pi = 1;
  2646. int _v = 0;
  2647. {
  2648. int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
  2649. _v = SWIG_CheckState(res);
  2650. }
  2651. if (!_v) goto check_2;
  2652. _ranki += _v*_pi;
  2653. _rankm += _pi;
  2654. _pi *= SWIG_MAXCASTRANK;
  2655. {
  2656. {
  2657. int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
  2658. _v = SWIG_CheckState(res);
  2659. }
  2660. }
  2661. if (!_v) goto check_2;
  2662. _ranki += _v*_pi;
  2663. _rankm += _pi;
  2664. _pi *= SWIG_MAXCASTRANK;
  2665. {
  2666. int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0);
  2667. _v = SWIG_CheckState(res);
  2668. }
  2669. if (!_v) goto check_2;
  2670. _ranki += _v*_pi;
  2671. _rankm += _pi;
  2672. _pi *= SWIG_MAXCASTRANK;
  2673. if (!_index || (_ranki < _rank)) {
  2674. _rank = _ranki; _index = 2;
  2675. if (_rank == _rankm) goto dispatch;
  2676. }
  2677. }
  2678. check_2:
  2679. if (items == 3) {
  2680. SWIG_TypeRank _ranki = 0;
  2681. SWIG_TypeRank _rankm = 0;
  2682. SWIG_TypeRank _pi = 1;
  2683. int _v = 0;
  2684. {
  2685. int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
  2686. _v = SWIG_CheckState(res);
  2687. }
  2688. if (!_v) goto check_3;
  2689. _ranki += _v*_pi;
  2690. _rankm += _pi;
  2691. _pi *= SWIG_MAXCASTRANK;
  2692. {
  2693. int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0);
  2694. _v = SWIG_CheckState(res);
  2695. }
  2696. if (!_v) goto check_3;
  2697. _ranki += _v*_pi;
  2698. _rankm += _pi;
  2699. _pi *= SWIG_MAXCASTRANK;
  2700. {
  2701. int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0);
  2702. _v = SWIG_CheckState(res);
  2703. }
  2704. if (!_v) goto check_3;
  2705. _ranki += _v*_pi;
  2706. _rankm += _pi;
  2707. _pi *= SWIG_MAXCASTRANK;
  2708. if (!_index || (_ranki < _rank)) {
  2709. _rank = _ranki; _index = 3;
  2710. if (_rank == _rankm) goto dispatch;
  2711. }
  2712. }
  2713. check_3:
  2714. if (items == 4) {
  2715. SWIG_TypeRank _ranki = 0;
  2716. SWIG_TypeRank _rankm = 0;
  2717. SWIG_TypeRank _pi = 1;
  2718. int _v = 0;
  2719. {
  2720. int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
  2721. _v = SWIG_CheckState(res);
  2722. }
  2723. if (!_v) goto check_4;
  2724. _ranki += _v*_pi;
  2725. _rankm += _pi;
  2726. _pi *= SWIG_MAXCASTRANK;
  2727. {
  2728. {
  2729. int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
  2730. _v = SWIG_CheckState(res);
  2731. }
  2732. }
  2733. if (!_v) goto check_4;
  2734. _ranki += _v*_pi;
  2735. _rankm += _pi;
  2736. _pi *= SWIG_MAXCASTRANK;
  2737. {
  2738. int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0);
  2739. _v = SWIG_CheckState(res);
  2740. }
  2741. if (!_v) goto check_4;
  2742. _ranki += _v*_pi;
  2743. _rankm += _pi;
  2744. _pi *= SWIG_MAXCASTRANK;
  2745. {
  2746. int res = SWIG_AsCharPtrAndSize(ST(3), 0, NULL, 0);
  2747. _v = SWIG_CheckState(res);
  2748. }
  2749. if (!_v) goto check_4;
  2750. _ranki += _v*_pi;
  2751. _rankm += _pi;
  2752. _pi *= SWIG_MAXCASTRANK;
  2753. if (!_index || (_ranki < _rank)) {
  2754. _rank = _ranki; _index = 4;
  2755. if (_rank == _rankm) goto dispatch;
  2756. }
  2757. }
  2758. check_4:
  2759. if (items == 4) {
  2760. SWIG_TypeRank _ranki = 0;
  2761. SWIG_TypeRank _rankm = 0;
  2762. SWIG_TypeRank _pi = 1;
  2763. int _v = 0;
  2764. {
  2765. int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
  2766. _v = SWIG_CheckState(res);
  2767. }
  2768. if (!_v) goto check_5;
  2769. _ranki += _v*_pi;
  2770. _rankm += _pi;
  2771. _pi *= SWIG_MAXCASTRANK;
  2772. {
  2773. int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0);
  2774. _v = SWIG_CheckState(res);
  2775. }
  2776. if (!_v) goto check_5;
  2777. _ranki += _v*_pi;
  2778. _rankm += _pi;
  2779. _pi *= SWIG_MAXCASTRANK;
  2780. {
  2781. int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0);
  2782. _v = SWIG_CheckState(res);
  2783. }
  2784. if (!_v) goto check_5;
  2785. _ranki += _v*_pi;
  2786. _rankm += _pi;
  2787. _pi *= SWIG_MAXCASTRANK;
  2788. {
  2789. int res = SWIG_AsCharPtrAndSize(ST(3), 0, NULL, 0);
  2790. _v = SWIG_CheckState(res);
  2791. }
  2792. if (!_v) goto check_5;
  2793. _ranki += _v*_pi;
  2794. _rankm += _pi;
  2795. _pi *= SWIG_MAXCASTRANK;
  2796. if (!_index || (_ranki < _rank)) {
  2797. _rank = _ranki; _index = 5;
  2798. if (_rank == _rankm) goto dispatch;
  2799. }
  2800. }
  2801. check_5:
  2802. dispatch:
  2803. switch(_index) {
  2804. case 1:
  2805. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLconnection__SWIG_4); return;
  2806. case 2:
  2807. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLconnection__SWIG_1); return;
  2808. case 3:
  2809. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLconnection__SWIG_3); return;
  2810. case 4:
  2811. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLconnection__SWIG_0); return;
  2812. case 5:
  2813. PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ESLconnection__SWIG_2); return;
  2814. }
  2815. }
  2816. croak("No matching function for overloaded 'new_ESLconnection'");
  2817. XSRETURN(0);
  2818. }
  2819. XS(_wrap_delete_ESLconnection) {
  2820. {
  2821. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2822. void *argp1 = 0 ;
  2823. int res1 = 0 ;
  2824. int argvi = 0;
  2825. dXSARGS;
  2826. if ((items < 1) || (items > 1)) {
  2827. SWIG_croak("Usage: delete_ESLconnection(self);");
  2828. }
  2829. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, SWIG_POINTER_DISOWN | 0 );
  2830. if (!SWIG_IsOK(res1)) {
  2831. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ESLconnection" "', argument " "1"" of type '" "ESLconnection *""'");
  2832. }
  2833. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  2834. delete arg1;
  2835. ST(argvi) = sv_newmortal();
  2836. XSRETURN(argvi);
  2837. fail:
  2838. SWIG_croak_null();
  2839. }
  2840. }
  2841. XS(_wrap_ESLconnection_socketDescriptor) {
  2842. {
  2843. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2844. void *argp1 = 0 ;
  2845. int res1 = 0 ;
  2846. int argvi = 0;
  2847. int result;
  2848. dXSARGS;
  2849. if ((items < 1) || (items > 1)) {
  2850. SWIG_croak("Usage: ESLconnection_socketDescriptor(self);");
  2851. }
  2852. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  2853. if (!SWIG_IsOK(res1)) {
  2854. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_socketDescriptor" "', argument " "1"" of type '" "ESLconnection *""'");
  2855. }
  2856. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  2857. result = (int)(arg1)->socketDescriptor();
  2858. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  2859. XSRETURN(argvi);
  2860. fail:
  2861. SWIG_croak_null();
  2862. }
  2863. }
  2864. XS(_wrap_ESLconnection_connected) {
  2865. {
  2866. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2867. void *argp1 = 0 ;
  2868. int res1 = 0 ;
  2869. int argvi = 0;
  2870. int result;
  2871. dXSARGS;
  2872. if ((items < 1) || (items > 1)) {
  2873. SWIG_croak("Usage: ESLconnection_connected(self);");
  2874. }
  2875. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  2876. if (!SWIG_IsOK(res1)) {
  2877. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_connected" "', argument " "1"" of type '" "ESLconnection *""'");
  2878. }
  2879. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  2880. result = (int)(arg1)->connected();
  2881. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  2882. XSRETURN(argvi);
  2883. fail:
  2884. SWIG_croak_null();
  2885. }
  2886. }
  2887. XS(_wrap_ESLconnection_getInfo) {
  2888. {
  2889. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2890. void *argp1 = 0 ;
  2891. int res1 = 0 ;
  2892. int argvi = 0;
  2893. ESLevent *result = 0 ;
  2894. dXSARGS;
  2895. if ((items < 1) || (items > 1)) {
  2896. SWIG_croak("Usage: ESLconnection_getInfo(self);");
  2897. }
  2898. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  2899. if (!SWIG_IsOK(res1)) {
  2900. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_getInfo" "', argument " "1"" of type '" "ESLconnection *""'");
  2901. }
  2902. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  2903. result = (ESLevent *)(arg1)->getInfo();
  2904. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  2905. XSRETURN(argvi);
  2906. fail:
  2907. SWIG_croak_null();
  2908. }
  2909. }
  2910. XS(_wrap_ESLconnection_send) {
  2911. {
  2912. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2913. char *arg2 = (char *) 0 ;
  2914. void *argp1 = 0 ;
  2915. int res1 = 0 ;
  2916. int res2 ;
  2917. char *buf2 = 0 ;
  2918. int alloc2 = 0 ;
  2919. int argvi = 0;
  2920. int result;
  2921. dXSARGS;
  2922. if ((items < 2) || (items > 2)) {
  2923. SWIG_croak("Usage: ESLconnection_send(self,cmd);");
  2924. }
  2925. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  2926. if (!SWIG_IsOK(res1)) {
  2927. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_send" "', argument " "1"" of type '" "ESLconnection *""'");
  2928. }
  2929. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  2930. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2931. if (!SWIG_IsOK(res2)) {
  2932. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_send" "', argument " "2"" of type '" "char const *""'");
  2933. }
  2934. arg2 = reinterpret_cast< char * >(buf2);
  2935. result = (int)(arg1)->send((char const *)arg2);
  2936. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  2937. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2938. XSRETURN(argvi);
  2939. fail:
  2940. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2941. SWIG_croak_null();
  2942. }
  2943. }
  2944. XS(_wrap_ESLconnection_sendRecv) {
  2945. {
  2946. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2947. char *arg2 = (char *) 0 ;
  2948. void *argp1 = 0 ;
  2949. int res1 = 0 ;
  2950. int res2 ;
  2951. char *buf2 = 0 ;
  2952. int alloc2 = 0 ;
  2953. int argvi = 0;
  2954. ESLevent *result = 0 ;
  2955. dXSARGS;
  2956. if ((items < 2) || (items > 2)) {
  2957. SWIG_croak("Usage: ESLconnection_sendRecv(self,cmd);");
  2958. }
  2959. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  2960. if (!SWIG_IsOK(res1)) {
  2961. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_sendRecv" "', argument " "1"" of type '" "ESLconnection *""'");
  2962. }
  2963. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  2964. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  2965. if (!SWIG_IsOK(res2)) {
  2966. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_sendRecv" "', argument " "2"" of type '" "char const *""'");
  2967. }
  2968. arg2 = reinterpret_cast< char * >(buf2);
  2969. result = (ESLevent *)(arg1)->sendRecv((char const *)arg2);
  2970. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  2971. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2972. XSRETURN(argvi);
  2973. fail:
  2974. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  2975. SWIG_croak_null();
  2976. }
  2977. }
  2978. XS(_wrap_ESLconnection_api) {
  2979. {
  2980. ESLconnection *arg1 = (ESLconnection *) 0 ;
  2981. char *arg2 = (char *) 0 ;
  2982. char *arg3 = (char *) NULL ;
  2983. void *argp1 = 0 ;
  2984. int res1 = 0 ;
  2985. int res2 ;
  2986. char *buf2 = 0 ;
  2987. int alloc2 = 0 ;
  2988. int res3 ;
  2989. char *buf3 = 0 ;
  2990. int alloc3 = 0 ;
  2991. int argvi = 0;
  2992. ESLevent *result = 0 ;
  2993. dXSARGS;
  2994. if ((items < 2) || (items > 3)) {
  2995. SWIG_croak("Usage: ESLconnection_api(self,cmd,arg);");
  2996. }
  2997. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  2998. if (!SWIG_IsOK(res1)) {
  2999. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_api" "', argument " "1"" of type '" "ESLconnection *""'");
  3000. }
  3001. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3002. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3003. if (!SWIG_IsOK(res2)) {
  3004. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_api" "', argument " "2"" of type '" "char const *""'");
  3005. }
  3006. arg2 = reinterpret_cast< char * >(buf2);
  3007. if (items > 2) {
  3008. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  3009. if (!SWIG_IsOK(res3)) {
  3010. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_api" "', argument " "3"" of type '" "char const *""'");
  3011. }
  3012. arg3 = reinterpret_cast< char * >(buf3);
  3013. }
  3014. result = (ESLevent *)(arg1)->api((char const *)arg2,(char const *)arg3);
  3015. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3016. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3017. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3018. XSRETURN(argvi);
  3019. fail:
  3020. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3021. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3022. SWIG_croak_null();
  3023. }
  3024. }
  3025. XS(_wrap_ESLconnection_bgapi) {
  3026. {
  3027. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3028. char *arg2 = (char *) 0 ;
  3029. char *arg3 = (char *) NULL ;
  3030. char *arg4 = (char *) NULL ;
  3031. void *argp1 = 0 ;
  3032. int res1 = 0 ;
  3033. int res2 ;
  3034. char *buf2 = 0 ;
  3035. int alloc2 = 0 ;
  3036. int res3 ;
  3037. char *buf3 = 0 ;
  3038. int alloc3 = 0 ;
  3039. int res4 ;
  3040. char *buf4 = 0 ;
  3041. int alloc4 = 0 ;
  3042. int argvi = 0;
  3043. ESLevent *result = 0 ;
  3044. dXSARGS;
  3045. if ((items < 2) || (items > 4)) {
  3046. SWIG_croak("Usage: ESLconnection_bgapi(self,cmd,arg,job_uuid);");
  3047. }
  3048. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3049. if (!SWIG_IsOK(res1)) {
  3050. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_bgapi" "', argument " "1"" of type '" "ESLconnection *""'");
  3051. }
  3052. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3053. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3054. if (!SWIG_IsOK(res2)) {
  3055. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_bgapi" "', argument " "2"" of type '" "char const *""'");
  3056. }
  3057. arg2 = reinterpret_cast< char * >(buf2);
  3058. if (items > 2) {
  3059. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  3060. if (!SWIG_IsOK(res3)) {
  3061. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_bgapi" "', argument " "3"" of type '" "char const *""'");
  3062. }
  3063. arg3 = reinterpret_cast< char * >(buf3);
  3064. }
  3065. if (items > 3) {
  3066. res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
  3067. if (!SWIG_IsOK(res4)) {
  3068. SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ESLconnection_bgapi" "', argument " "4"" of type '" "char const *""'");
  3069. }
  3070. arg4 = reinterpret_cast< char * >(buf4);
  3071. }
  3072. result = (ESLevent *)(arg1)->bgapi((char const *)arg2,(char const *)arg3,(char const *)arg4);
  3073. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3074. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3075. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3076. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  3077. XSRETURN(argvi);
  3078. fail:
  3079. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3080. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3081. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  3082. SWIG_croak_null();
  3083. }
  3084. }
  3085. XS(_wrap_ESLconnection_sendEvent) {
  3086. {
  3087. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3088. ESLevent *arg2 = (ESLevent *) 0 ;
  3089. void *argp1 = 0 ;
  3090. int res1 = 0 ;
  3091. void *argp2 = 0 ;
  3092. int res2 = 0 ;
  3093. int argvi = 0;
  3094. ESLevent *result = 0 ;
  3095. dXSARGS;
  3096. if ((items < 2) || (items > 2)) {
  3097. SWIG_croak("Usage: ESLconnection_sendEvent(self,send_me);");
  3098. }
  3099. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3100. if (!SWIG_IsOK(res1)) {
  3101. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_sendEvent" "', argument " "1"" of type '" "ESLconnection *""'");
  3102. }
  3103. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3104. res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ESLevent, 0 | 0 );
  3105. if (!SWIG_IsOK(res2)) {
  3106. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_sendEvent" "', argument " "2"" of type '" "ESLevent *""'");
  3107. }
  3108. arg2 = reinterpret_cast< ESLevent * >(argp2);
  3109. result = (ESLevent *)(arg1)->sendEvent(arg2);
  3110. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3111. XSRETURN(argvi);
  3112. fail:
  3113. SWIG_croak_null();
  3114. }
  3115. }
  3116. XS(_wrap_ESLconnection_sendMSG) {
  3117. {
  3118. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3119. ESLevent *arg2 = (ESLevent *) 0 ;
  3120. char *arg3 = (char *) NULL ;
  3121. void *argp1 = 0 ;
  3122. int res1 = 0 ;
  3123. void *argp2 = 0 ;
  3124. int res2 = 0 ;
  3125. int res3 ;
  3126. char *buf3 = 0 ;
  3127. int alloc3 = 0 ;
  3128. int argvi = 0;
  3129. int result;
  3130. dXSARGS;
  3131. if ((items < 2) || (items > 3)) {
  3132. SWIG_croak("Usage: ESLconnection_sendMSG(self,send_me,uuid);");
  3133. }
  3134. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3135. if (!SWIG_IsOK(res1)) {
  3136. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_sendMSG" "', argument " "1"" of type '" "ESLconnection *""'");
  3137. }
  3138. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3139. res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ESLevent, 0 | 0 );
  3140. if (!SWIG_IsOK(res2)) {
  3141. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_sendMSG" "', argument " "2"" of type '" "ESLevent *""'");
  3142. }
  3143. arg2 = reinterpret_cast< ESLevent * >(argp2);
  3144. if (items > 2) {
  3145. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  3146. if (!SWIG_IsOK(res3)) {
  3147. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_sendMSG" "', argument " "3"" of type '" "char const *""'");
  3148. }
  3149. arg3 = reinterpret_cast< char * >(buf3);
  3150. }
  3151. result = (int)(arg1)->sendMSG(arg2,(char const *)arg3);
  3152. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  3153. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3154. XSRETURN(argvi);
  3155. fail:
  3156. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3157. SWIG_croak_null();
  3158. }
  3159. }
  3160. XS(_wrap_ESLconnection_recvEvent) {
  3161. {
  3162. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3163. void *argp1 = 0 ;
  3164. int res1 = 0 ;
  3165. int argvi = 0;
  3166. ESLevent *result = 0 ;
  3167. dXSARGS;
  3168. if ((items < 1) || (items > 1)) {
  3169. SWIG_croak("Usage: ESLconnection_recvEvent(self);");
  3170. }
  3171. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3172. if (!SWIG_IsOK(res1)) {
  3173. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_recvEvent" "', argument " "1"" of type '" "ESLconnection *""'");
  3174. }
  3175. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3176. result = (ESLevent *)(arg1)->recvEvent();
  3177. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3178. XSRETURN(argvi);
  3179. fail:
  3180. SWIG_croak_null();
  3181. }
  3182. }
  3183. XS(_wrap_ESLconnection_recvEventTimed) {
  3184. {
  3185. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3186. int arg2 ;
  3187. void *argp1 = 0 ;
  3188. int res1 = 0 ;
  3189. int val2 ;
  3190. int ecode2 = 0 ;
  3191. int argvi = 0;
  3192. ESLevent *result = 0 ;
  3193. dXSARGS;
  3194. if ((items < 2) || (items > 2)) {
  3195. SWIG_croak("Usage: ESLconnection_recvEventTimed(self,ms);");
  3196. }
  3197. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3198. if (!SWIG_IsOK(res1)) {
  3199. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_recvEventTimed" "', argument " "1"" of type '" "ESLconnection *""'");
  3200. }
  3201. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3202. ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
  3203. if (!SWIG_IsOK(ecode2)) {
  3204. SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ESLconnection_recvEventTimed" "', argument " "2"" of type '" "int""'");
  3205. }
  3206. arg2 = static_cast< int >(val2);
  3207. result = (ESLevent *)(arg1)->recvEventTimed(arg2);
  3208. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3209. XSRETURN(argvi);
  3210. fail:
  3211. SWIG_croak_null();
  3212. }
  3213. }
  3214. XS(_wrap_ESLconnection_filter) {
  3215. {
  3216. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3217. char *arg2 = (char *) 0 ;
  3218. char *arg3 = (char *) 0 ;
  3219. void *argp1 = 0 ;
  3220. int res1 = 0 ;
  3221. int res2 ;
  3222. char *buf2 = 0 ;
  3223. int alloc2 = 0 ;
  3224. int res3 ;
  3225. char *buf3 = 0 ;
  3226. int alloc3 = 0 ;
  3227. int argvi = 0;
  3228. ESLevent *result = 0 ;
  3229. dXSARGS;
  3230. if ((items < 3) || (items > 3)) {
  3231. SWIG_croak("Usage: ESLconnection_filter(self,header,value);");
  3232. }
  3233. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3234. if (!SWIG_IsOK(res1)) {
  3235. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_filter" "', argument " "1"" of type '" "ESLconnection *""'");
  3236. }
  3237. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3238. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3239. if (!SWIG_IsOK(res2)) {
  3240. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_filter" "', argument " "2"" of type '" "char const *""'");
  3241. }
  3242. arg2 = reinterpret_cast< char * >(buf2);
  3243. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  3244. if (!SWIG_IsOK(res3)) {
  3245. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_filter" "', argument " "3"" of type '" "char const *""'");
  3246. }
  3247. arg3 = reinterpret_cast< char * >(buf3);
  3248. result = (ESLevent *)(arg1)->filter((char const *)arg2,(char const *)arg3);
  3249. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3250. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3251. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3252. XSRETURN(argvi);
  3253. fail:
  3254. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3255. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3256. SWIG_croak_null();
  3257. }
  3258. }
  3259. XS(_wrap_ESLconnection_events) {
  3260. {
  3261. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3262. char *arg2 = (char *) 0 ;
  3263. char *arg3 = (char *) 0 ;
  3264. void *argp1 = 0 ;
  3265. int res1 = 0 ;
  3266. int res2 ;
  3267. char *buf2 = 0 ;
  3268. int alloc2 = 0 ;
  3269. int res3 ;
  3270. char *buf3 = 0 ;
  3271. int alloc3 = 0 ;
  3272. int argvi = 0;
  3273. int result;
  3274. dXSARGS;
  3275. if ((items < 3) || (items > 3)) {
  3276. SWIG_croak("Usage: ESLconnection_events(self,etype,value);");
  3277. }
  3278. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3279. if (!SWIG_IsOK(res1)) {
  3280. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_events" "', argument " "1"" of type '" "ESLconnection *""'");
  3281. }
  3282. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3283. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3284. if (!SWIG_IsOK(res2)) {
  3285. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_events" "', argument " "2"" of type '" "char const *""'");
  3286. }
  3287. arg2 = reinterpret_cast< char * >(buf2);
  3288. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  3289. if (!SWIG_IsOK(res3)) {
  3290. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_events" "', argument " "3"" of type '" "char const *""'");
  3291. }
  3292. arg3 = reinterpret_cast< char * >(buf3);
  3293. result = (int)(arg1)->events((char const *)arg2,(char const *)arg3);
  3294. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  3295. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3296. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3297. XSRETURN(argvi);
  3298. fail:
  3299. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3300. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3301. SWIG_croak_null();
  3302. }
  3303. }
  3304. XS(_wrap_ESLconnection_execute) {
  3305. {
  3306. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3307. char *arg2 = (char *) 0 ;
  3308. char *arg3 = (char *) NULL ;
  3309. char *arg4 = (char *) NULL ;
  3310. void *argp1 = 0 ;
  3311. int res1 = 0 ;
  3312. int res2 ;
  3313. char *buf2 = 0 ;
  3314. int alloc2 = 0 ;
  3315. int res3 ;
  3316. char *buf3 = 0 ;
  3317. int alloc3 = 0 ;
  3318. int res4 ;
  3319. char *buf4 = 0 ;
  3320. int alloc4 = 0 ;
  3321. int argvi = 0;
  3322. ESLevent *result = 0 ;
  3323. dXSARGS;
  3324. if ((items < 2) || (items > 4)) {
  3325. SWIG_croak("Usage: ESLconnection_execute(self,app,arg,uuid);");
  3326. }
  3327. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3328. if (!SWIG_IsOK(res1)) {
  3329. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_execute" "', argument " "1"" of type '" "ESLconnection *""'");
  3330. }
  3331. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3332. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3333. if (!SWIG_IsOK(res2)) {
  3334. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_execute" "', argument " "2"" of type '" "char const *""'");
  3335. }
  3336. arg2 = reinterpret_cast< char * >(buf2);
  3337. if (items > 2) {
  3338. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  3339. if (!SWIG_IsOK(res3)) {
  3340. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_execute" "', argument " "3"" of type '" "char const *""'");
  3341. }
  3342. arg3 = reinterpret_cast< char * >(buf3);
  3343. }
  3344. if (items > 3) {
  3345. res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
  3346. if (!SWIG_IsOK(res4)) {
  3347. SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ESLconnection_execute" "', argument " "4"" of type '" "char const *""'");
  3348. }
  3349. arg4 = reinterpret_cast< char * >(buf4);
  3350. }
  3351. result = (ESLevent *)(arg1)->execute((char const *)arg2,(char const *)arg3,(char const *)arg4);
  3352. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3353. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3354. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3355. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  3356. XSRETURN(argvi);
  3357. fail:
  3358. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3359. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3360. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  3361. SWIG_croak_null();
  3362. }
  3363. }
  3364. XS(_wrap_ESLconnection_executeAsync) {
  3365. {
  3366. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3367. char *arg2 = (char *) 0 ;
  3368. char *arg3 = (char *) NULL ;
  3369. char *arg4 = (char *) NULL ;
  3370. void *argp1 = 0 ;
  3371. int res1 = 0 ;
  3372. int res2 ;
  3373. char *buf2 = 0 ;
  3374. int alloc2 = 0 ;
  3375. int res3 ;
  3376. char *buf3 = 0 ;
  3377. int alloc3 = 0 ;
  3378. int res4 ;
  3379. char *buf4 = 0 ;
  3380. int alloc4 = 0 ;
  3381. int argvi = 0;
  3382. ESLevent *result = 0 ;
  3383. dXSARGS;
  3384. if ((items < 2) || (items > 4)) {
  3385. SWIG_croak("Usage: ESLconnection_executeAsync(self,app,arg,uuid);");
  3386. }
  3387. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3388. if (!SWIG_IsOK(res1)) {
  3389. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_executeAsync" "', argument " "1"" of type '" "ESLconnection *""'");
  3390. }
  3391. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3392. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3393. if (!SWIG_IsOK(res2)) {
  3394. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_executeAsync" "', argument " "2"" of type '" "char const *""'");
  3395. }
  3396. arg2 = reinterpret_cast< char * >(buf2);
  3397. if (items > 2) {
  3398. res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
  3399. if (!SWIG_IsOK(res3)) {
  3400. SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_executeAsync" "', argument " "3"" of type '" "char const *""'");
  3401. }
  3402. arg3 = reinterpret_cast< char * >(buf3);
  3403. }
  3404. if (items > 3) {
  3405. res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
  3406. if (!SWIG_IsOK(res4)) {
  3407. SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ESLconnection_executeAsync" "', argument " "4"" of type '" "char const *""'");
  3408. }
  3409. arg4 = reinterpret_cast< char * >(buf4);
  3410. }
  3411. result = (ESLevent *)(arg1)->executeAsync((char const *)arg2,(char const *)arg3,(char const *)arg4);
  3412. ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
  3413. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3414. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3415. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  3416. XSRETURN(argvi);
  3417. fail:
  3418. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3419. if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
  3420. if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
  3421. SWIG_croak_null();
  3422. }
  3423. }
  3424. XS(_wrap_ESLconnection_setAsyncExecute) {
  3425. {
  3426. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3427. char *arg2 = (char *) 0 ;
  3428. void *argp1 = 0 ;
  3429. int res1 = 0 ;
  3430. int res2 ;
  3431. char *buf2 = 0 ;
  3432. int alloc2 = 0 ;
  3433. int argvi = 0;
  3434. int result;
  3435. dXSARGS;
  3436. if ((items < 2) || (items > 2)) {
  3437. SWIG_croak("Usage: ESLconnection_setAsyncExecute(self,val);");
  3438. }
  3439. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3440. if (!SWIG_IsOK(res1)) {
  3441. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_setAsyncExecute" "', argument " "1"" of type '" "ESLconnection *""'");
  3442. }
  3443. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3444. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3445. if (!SWIG_IsOK(res2)) {
  3446. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_setAsyncExecute" "', argument " "2"" of type '" "char const *""'");
  3447. }
  3448. arg2 = reinterpret_cast< char * >(buf2);
  3449. result = (int)(arg1)->setAsyncExecute((char const *)arg2);
  3450. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  3451. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3452. XSRETURN(argvi);
  3453. fail:
  3454. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3455. SWIG_croak_null();
  3456. }
  3457. }
  3458. XS(_wrap_ESLconnection_setEventLock) {
  3459. {
  3460. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3461. char *arg2 = (char *) 0 ;
  3462. void *argp1 = 0 ;
  3463. int res1 = 0 ;
  3464. int res2 ;
  3465. char *buf2 = 0 ;
  3466. int alloc2 = 0 ;
  3467. int argvi = 0;
  3468. int result;
  3469. dXSARGS;
  3470. if ((items < 2) || (items > 2)) {
  3471. SWIG_croak("Usage: ESLconnection_setEventLock(self,val);");
  3472. }
  3473. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3474. if (!SWIG_IsOK(res1)) {
  3475. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_setEventLock" "', argument " "1"" of type '" "ESLconnection *""'");
  3476. }
  3477. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3478. res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
  3479. if (!SWIG_IsOK(res2)) {
  3480. SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESLconnection_setEventLock" "', argument " "2"" of type '" "char const *""'");
  3481. }
  3482. arg2 = reinterpret_cast< char * >(buf2);
  3483. result = (int)(arg1)->setEventLock((char const *)arg2);
  3484. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  3485. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3486. XSRETURN(argvi);
  3487. fail:
  3488. if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  3489. SWIG_croak_null();
  3490. }
  3491. }
  3492. XS(_wrap_ESLconnection_disconnect) {
  3493. {
  3494. ESLconnection *arg1 = (ESLconnection *) 0 ;
  3495. void *argp1 = 0 ;
  3496. int res1 = 0 ;
  3497. int argvi = 0;
  3498. int result;
  3499. dXSARGS;
  3500. if ((items < 1) || (items > 1)) {
  3501. SWIG_croak("Usage: ESLconnection_disconnect(self);");
  3502. }
  3503. res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ESLconnection, 0 | 0 );
  3504. if (!SWIG_IsOK(res1)) {
  3505. SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESLconnection_disconnect" "', argument " "1"" of type '" "ESLconnection *""'");
  3506. }
  3507. arg1 = reinterpret_cast< ESLconnection * >(argp1);
  3508. result = (int)(arg1)->disconnect();
  3509. ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
  3510. XSRETURN(argvi);
  3511. fail:
  3512. SWIG_croak_null();
  3513. }
  3514. }
  3515. XS(_wrap_eslSetLogLevel) {
  3516. {
  3517. int arg1 ;
  3518. int val1 ;
  3519. int ecode1 = 0 ;
  3520. int argvi = 0;
  3521. dXSARGS;
  3522. if ((items < 1) || (items > 1)) {
  3523. SWIG_croak("Usage: eslSetLogLevel(level);");
  3524. }
  3525. ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
  3526. if (!SWIG_IsOK(ecode1)) {
  3527. SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "eslSetLogLevel" "', argument " "1"" of type '" "int""'");
  3528. }
  3529. arg1 = static_cast< int >(val1);
  3530. eslSetLogLevel(arg1);
  3531. ST(argvi) = sv_newmortal();
  3532. XSRETURN(argvi);
  3533. fail:
  3534. SWIG_croak_null();
  3535. }
  3536. }
  3537. /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
  3538. static swig_type_info _swigt__p_ESLconnection = {"_p_ESLconnection", "ESLconnection *", 0, 0, (void*)"ESL::ESLconnection", 0};
  3539. static swig_type_info _swigt__p_ESLevent = {"_p_ESLevent", "ESLevent *", 0, 0, (void*)"ESL::ESLevent", 0};
  3540. static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
  3541. static swig_type_info _swigt__p_esl_event_t = {"_p_esl_event_t", "esl_event_t *", 0, 0, (void*)0, 0};
  3542. static swig_type_info _swigt__p_esl_priority_t = {"_p_esl_priority_t", "esl_priority_t *", 0, 0, (void*)0, 0};
  3543. static swig_type_info *swig_type_initial[] = {
  3544. &_swigt__p_ESLconnection,
  3545. &_swigt__p_ESLevent,
  3546. &_swigt__p_char,
  3547. &_swigt__p_esl_event_t,
  3548. &_swigt__p_esl_priority_t,
  3549. };
  3550. static swig_cast_info _swigc__p_ESLconnection[] = { {&_swigt__p_ESLconnection, 0, 0, 0},{0, 0, 0, 0}};
  3551. static swig_cast_info _swigc__p_ESLevent[] = { {&_swigt__p_ESLevent, 0, 0, 0},{0, 0, 0, 0}};
  3552. static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
  3553. static swig_cast_info _swigc__p_esl_event_t[] = { {&_swigt__p_esl_event_t, 0, 0, 0},{0, 0, 0, 0}};
  3554. static swig_cast_info _swigc__p_esl_priority_t[] = { {&_swigt__p_esl_priority_t, 0, 0, 0},{0, 0, 0, 0}};
  3555. static swig_cast_info *swig_cast_initial[] = {
  3556. _swigc__p_ESLconnection,
  3557. _swigc__p_ESLevent,
  3558. _swigc__p_char,
  3559. _swigc__p_esl_event_t,
  3560. _swigc__p_esl_priority_t,
  3561. };
  3562. /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
  3563. static swig_constant_info swig_constants[] = {
  3564. {0,0,0,0,0,0}
  3565. };
  3566. #ifdef __cplusplus
  3567. }
  3568. #endif
  3569. static swig_variable_info swig_variables[] = {
  3570. {0,0,0,0}
  3571. };
  3572. static swig_command_info swig_commands[] = {
  3573. {"ESLc::ESLevent_event_set", _wrap_ESLevent_event_set},
  3574. {"ESLc::ESLevent_event_get", _wrap_ESLevent_event_get},
  3575. {"ESLc::ESLevent_serialized_string_set", _wrap_ESLevent_serialized_string_set},
  3576. {"ESLc::ESLevent_serialized_string_get", _wrap_ESLevent_serialized_string_get},
  3577. {"ESLc::ESLevent_mine_set", _wrap_ESLevent_mine_set},
  3578. {"ESLc::ESLevent_mine_get", _wrap_ESLevent_mine_get},
  3579. {"ESLc::new_ESLevent", _wrap_new_ESLevent},
  3580. {"ESLc::delete_ESLevent", _wrap_delete_ESLevent},
  3581. {"ESLc::ESLevent_serialize", _wrap_ESLevent_serialize},
  3582. {"ESLc::ESLevent_setPriority", _wrap_ESLevent_setPriority},
  3583. {"ESLc::ESLevent_getHeader", _wrap_ESLevent_getHeader},
  3584. {"ESLc::ESLevent_getBody", _wrap_ESLevent_getBody},
  3585. {"ESLc::ESLevent_getType", _wrap_ESLevent_getType},
  3586. {"ESLc::ESLevent_addBody", _wrap_ESLevent_addBody},
  3587. {"ESLc::ESLevent_addHeader", _wrap_ESLevent_addHeader},
  3588. {"ESLc::ESLevent_pushHeader", _wrap_ESLevent_pushHeader},
  3589. {"ESLc::ESLevent_unshiftHeader", _wrap_ESLevent_unshiftHeader},
  3590. {"ESLc::ESLevent_delHeader", _wrap_ESLevent_delHeader},
  3591. {"ESLc::ESLevent_firstHeader", _wrap_ESLevent_firstHeader},
  3592. {"ESLc::ESLevent_nextHeader", _wrap_ESLevent_nextHeader},
  3593. {"ESLc::new_ESLconnection", _wrap_new_ESLconnection},
  3594. {"ESLc::delete_ESLconnection", _wrap_delete_ESLconnection},
  3595. {"ESLc::ESLconnection_socketDescriptor", _wrap_ESLconnection_socketDescriptor},
  3596. {"ESLc::ESLconnection_connected", _wrap_ESLconnection_connected},
  3597. {"ESLc::ESLconnection_getInfo", _wrap_ESLconnection_getInfo},
  3598. {"ESLc::ESLconnection_send", _wrap_ESLconnection_send},
  3599. {"ESLc::ESLconnection_sendRecv", _wrap_ESLconnection_sendRecv},
  3600. {"ESLc::ESLconnection_api", _wrap_ESLconnection_api},
  3601. {"ESLc::ESLconnection_bgapi", _wrap_ESLconnection_bgapi},
  3602. {"ESLc::ESLconnection_sendEvent", _wrap_ESLconnection_sendEvent},
  3603. {"ESLc::ESLconnection_sendMSG", _wrap_ESLconnection_sendMSG},
  3604. {"ESLc::ESLconnection_recvEvent", _wrap_ESLconnection_recvEvent},
  3605. {"ESLc::ESLconnection_recvEventTimed", _wrap_ESLconnection_recvEventTimed},
  3606. {"ESLc::ESLconnection_filter", _wrap_ESLconnection_filter},
  3607. {"ESLc::ESLconnection_events", _wrap_ESLconnection_events},
  3608. {"ESLc::ESLconnection_execute", _wrap_ESLconnection_execute},
  3609. {"ESLc::ESLconnection_executeAsync", _wrap_ESLconnection_executeAsync},
  3610. {"ESLc::ESLconnection_setAsyncExecute", _wrap_ESLconnection_setAsyncExecute},
  3611. {"ESLc::ESLconnection_setEventLock", _wrap_ESLconnection_setEventLock},
  3612. {"ESLc::ESLconnection_disconnect", _wrap_ESLconnection_disconnect},
  3613. {"ESLc::eslSetLogLevel", _wrap_eslSetLogLevel},
  3614. {0,0}
  3615. };
  3616. /* -----------------------------------------------------------------------------
  3617. * Type initialization:
  3618. * This problem is tough by the requirement that no dynamic
  3619. * memory is used. Also, since swig_type_info structures store pointers to
  3620. * swig_cast_info structures and swig_cast_info structures store pointers back
  3621. * to swig_type_info structures, we need some lookup code at initialization.
  3622. * The idea is that swig generates all the structures that are needed.
  3623. * The runtime then collects these partially filled structures.
  3624. * The SWIG_InitializeModule function takes these initial arrays out of
  3625. * swig_module, and does all the lookup, filling in the swig_module.types
  3626. * array with the correct data and linking the correct swig_cast_info
  3627. * structures together.
  3628. *
  3629. * The generated swig_type_info structures are assigned statically to an initial
  3630. * array. We just loop through that array, and handle each type individually.
  3631. * First we lookup if this type has been already loaded, and if so, use the
  3632. * loaded structure instead of the generated one. Then we have to fill in the
  3633. * cast linked list. The cast data is initially stored in something like a
  3634. * two-dimensional array. Each row corresponds to a type (there are the same
  3635. * number of rows as there are in the swig_type_initial array). Each entry in
  3636. * a column is one of the swig_cast_info structures for that type.
  3637. * The cast_initial array is actually an array of arrays, because each row has
  3638. * a variable number of columns. So to actually build the cast linked list,
  3639. * we find the array of casts associated with the type, and loop through it
  3640. * adding the casts to the list. The one last trick we need to do is making
  3641. * sure the type pointer in the swig_cast_info struct is correct.
  3642. *
  3643. * First off, we lookup the cast->type name to see if it is already loaded.
  3644. * There are three cases to handle:
  3645. * 1) If the cast->type has already been loaded AND the type we are adding
  3646. * casting info to has not been loaded (it is in this module), THEN we
  3647. * replace the cast->type pointer with the type pointer that has already
  3648. * been loaded.
  3649. * 2) If BOTH types (the one we are adding casting info to, and the
  3650. * cast->type) are loaded, THEN the cast info has already been loaded by
  3651. * the previous module so we just ignore it.
  3652. * 3) Finally, if cast->type has not already been loaded, then we add that
  3653. * swig_cast_info to the linked list (because the cast->type) pointer will
  3654. * be correct.
  3655. * ----------------------------------------------------------------------------- */
  3656. #ifdef __cplusplus
  3657. extern "C" {
  3658. #if 0
  3659. } /* c-mode */
  3660. #endif
  3661. #endif
  3662. #if 0
  3663. #define SWIGRUNTIME_DEBUG
  3664. #endif
  3665. SWIGRUNTIME void
  3666. SWIG_InitializeModule(void *clientdata) {
  3667. size_t i;
  3668. swig_module_info *module_head, *iter;
  3669. int found, init;
  3670. /* check to see if the circular list has been setup, if not, set it up */
  3671. if (swig_module.next==0) {
  3672. /* Initialize the swig_module */
  3673. swig_module.type_initial = swig_type_initial;
  3674. swig_module.cast_initial = swig_cast_initial;
  3675. swig_module.next = &swig_module;
  3676. init = 1;
  3677. } else {
  3678. init = 0;
  3679. }
  3680. /* Try and load any already created modules */
  3681. module_head = SWIG_GetModule(clientdata);
  3682. if (!module_head) {
  3683. /* This is the first module loaded for this interpreter */
  3684. /* so set the swig module into the interpreter */
  3685. SWIG_SetModule(clientdata, &swig_module);
  3686. module_head = &swig_module;
  3687. } else {
  3688. /* the interpreter has loaded a SWIG module, but has it loaded this one? */
  3689. found=0;
  3690. iter=module_head;
  3691. do {
  3692. if (iter==&swig_module) {
  3693. found=1;
  3694. break;
  3695. }
  3696. iter=iter->next;
  3697. } while (iter!= module_head);
  3698. /* if the is found in the list, then all is done and we may leave */
  3699. if (found) return;
  3700. /* otherwise we must add out module into the list */
  3701. swig_module.next = module_head->next;
  3702. module_head->next = &swig_module;
  3703. }
  3704. /* When multiple interpreters are used, a module could have already been initialized in
  3705. a different interpreter, but not yet have a pointer in this interpreter.
  3706. In this case, we do not want to continue adding types... everything should be
  3707. set up already */
  3708. if (init == 0) return;
  3709. /* Now work on filling in swig_module.types */
  3710. #ifdef SWIGRUNTIME_DEBUG
  3711. printf("SWIG_InitializeModule: size %d\n", swig_module.size);
  3712. #endif
  3713. for (i = 0; i < swig_module.size; ++i) {
  3714. swig_type_info *type = 0;
  3715. swig_type_info *ret;
  3716. swig_cast_info *cast;
  3717. #ifdef SWIGRUNTIME_DEBUG
  3718. printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
  3719. #endif
  3720. /* if there is another module already loaded */
  3721. if (swig_module.next != &swig_module) {
  3722. type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
  3723. }
  3724. if (type) {
  3725. /* Overwrite clientdata field */
  3726. #ifdef SWIGRUNTIME_DEBUG
  3727. printf("SWIG_InitializeModule: found type %s\n", type->name);
  3728. #endif
  3729. if (swig_module.type_initial[i]->clientdata) {
  3730. type->clientdata = swig_module.type_initial[i]->clientdata;
  3731. #ifdef SWIGRUNTIME_DEBUG
  3732. printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
  3733. #endif
  3734. }
  3735. } else {
  3736. type = swig_module.type_initial[i];
  3737. }
  3738. /* Insert casting types */
  3739. cast = swig_module.cast_initial[i];
  3740. while (cast->type) {
  3741. /* Don't need to add information already in the list */
  3742. ret = 0;
  3743. #ifdef SWIGRUNTIME_DEBUG
  3744. printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
  3745. #endif
  3746. if (swig_module.next != &swig_module) {
  3747. ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
  3748. #ifdef SWIGRUNTIME_DEBUG
  3749. if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
  3750. #endif
  3751. }
  3752. if (ret) {
  3753. if (type == swig_module.type_initial[i]) {
  3754. #ifdef SWIGRUNTIME_DEBUG
  3755. printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
  3756. #endif
  3757. cast->type = ret;
  3758. ret = 0;
  3759. } else {
  3760. /* Check for casting already in the list */
  3761. swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
  3762. #ifdef SWIGRUNTIME_DEBUG
  3763. if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
  3764. #endif
  3765. if (!ocast) ret = 0;
  3766. }
  3767. }
  3768. if (!ret) {
  3769. #ifdef SWIGRUNTIME_DEBUG
  3770. printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
  3771. #endif
  3772. if (type->cast) {
  3773. type->cast->prev = cast;
  3774. cast->next = type->cast;
  3775. }
  3776. type->cast = cast;
  3777. }
  3778. cast++;
  3779. }
  3780. /* Set entry in modules->types array equal to the type */
  3781. swig_module.types[i] = type;
  3782. }
  3783. swig_module.types[i] = 0;
  3784. #ifdef SWIGRUNTIME_DEBUG
  3785. printf("**** SWIG_InitializeModule: Cast List ******\n");
  3786. for (i = 0; i < swig_module.size; ++i) {
  3787. int j = 0;
  3788. swig_cast_info *cast = swig_module.cast_initial[i];
  3789. printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
  3790. while (cast->type) {
  3791. printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
  3792. cast++;
  3793. ++j;
  3794. }
  3795. printf("---- Total casts: %d\n",j);
  3796. }
  3797. printf("**** SWIG_InitializeModule: Cast List ******\n");
  3798. #endif
  3799. }
  3800. /* This function will propagate the clientdata field of type to
  3801. * any new swig_type_info structures that have been added into the list
  3802. * of equivalent types. It is like calling
  3803. * SWIG_TypeClientData(type, clientdata) a second time.
  3804. */
  3805. SWIGRUNTIME void
  3806. SWIG_PropagateClientData(void) {
  3807. size_t i;
  3808. swig_cast_info *equiv;
  3809. static int init_run = 0;
  3810. if (init_run) return;
  3811. init_run = 1;
  3812. for (i = 0; i < swig_module.size; i++) {
  3813. if (swig_module.types[i]->clientdata) {
  3814. equiv = swig_module.types[i]->cast;
  3815. while (equiv) {
  3816. if (!equiv->converter) {
  3817. if (equiv->type && !equiv->type->clientdata)
  3818. SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
  3819. }
  3820. equiv = equiv->next;
  3821. }
  3822. }
  3823. }
  3824. }
  3825. #ifdef __cplusplus
  3826. #if 0
  3827. {
  3828. /* c-mode */
  3829. #endif
  3830. }
  3831. #endif
  3832. #ifdef __cplusplus
  3833. extern "C"
  3834. #endif
  3835. XS(SWIG_init) {
  3836. dXSARGS;
  3837. int i;
  3838. SWIG_InitializeModule(0);
  3839. /* Install commands */
  3840. for (i = 0; swig_commands[i].name; i++) {
  3841. /* Casts only needed for Perl < 5.10. */
  3842. #ifdef __cplusplus
  3843. newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
  3844. #else
  3845. newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
  3846. #endif
  3847. }
  3848. /* Install variables */
  3849. for (i = 0; swig_variables[i].name; i++) {
  3850. SV *sv;
  3851. sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
  3852. if (swig_variables[i].type) {
  3853. SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
  3854. } else {
  3855. sv_setiv(sv,(IV) 0);
  3856. }
  3857. swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
  3858. }
  3859. /* Install constant */
  3860. for (i = 0; swig_constants[i].type; i++) {
  3861. SV *sv;
  3862. sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
  3863. switch(swig_constants[i].type) {
  3864. case SWIG_INT:
  3865. sv_setiv(sv, (IV) swig_constants[i].lvalue);
  3866. break;
  3867. case SWIG_FLOAT:
  3868. sv_setnv(sv, (double) swig_constants[i].dvalue);
  3869. break;
  3870. case SWIG_STRING:
  3871. sv_setpv(sv, (const char *) swig_constants[i].pvalue);
  3872. break;
  3873. case SWIG_POINTER:
  3874. SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
  3875. break;
  3876. case SWIG_BINARY:
  3877. SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
  3878. break;
  3879. default:
  3880. break;
  3881. }
  3882. SvREADONLY_on(sv);
  3883. }
  3884. SWIG_TypeClientData(SWIGTYPE_p_ESLevent, (void*) "ESL::ESLevent");
  3885. SWIG_TypeClientData(SWIGTYPE_p_ESLconnection, (void*) "ESL::ESLconnection");
  3886. ST(0) = &PL_sv_yes;
  3887. XSRETURN(1);
  3888. }