tinyWRAP_wrap.cxx 412 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  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 SWIGJAVA
  11. #define SWIG_DIRECTORS
  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. /* Fix for jlong on some versions of gcc on Windows */
  129. #if defined(__GNUC__) && !defined(__INTEL_COMPILER)
  130. typedef long long __int64;
  131. #endif
  132. /* Fix for jlong on 64-bit x86 Solaris */
  133. #if defined(__x86_64)
  134. # ifdef _LP64
  135. # undef _LP64
  136. # endif
  137. #endif
  138. #include <jni.h>
  139. #include <stdlib.h>
  140. #include <string.h>
  141. /* Support for throwing Java exceptions */
  142. typedef enum {
  143. SWIG_JavaOutOfMemoryError = 1,
  144. SWIG_JavaIOException,
  145. SWIG_JavaRuntimeException,
  146. SWIG_JavaIndexOutOfBoundsException,
  147. SWIG_JavaArithmeticException,
  148. SWIG_JavaIllegalArgumentException,
  149. SWIG_JavaNullPointerException,
  150. SWIG_JavaDirectorPureVirtual,
  151. SWIG_JavaUnknownError
  152. } SWIG_JavaExceptionCodes;
  153. typedef struct {
  154. SWIG_JavaExceptionCodes code;
  155. const char *java_exception;
  156. } SWIG_JavaExceptions_t;
  157. static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
  158. jclass excep;
  159. static const SWIG_JavaExceptions_t java_exceptions[] = {
  160. { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
  161. { SWIG_JavaIOException, "java/io/IOException" },
  162. { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
  163. { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
  164. { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
  165. { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
  166. { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
  167. { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
  168. { SWIG_JavaUnknownError, "java/lang/UnknownError" },
  169. { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
  170. };
  171. const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
  172. while (except_ptr->code != code && except_ptr->code)
  173. except_ptr++;
  174. jenv->ExceptionClear();
  175. excep = jenv->FindClass(except_ptr->java_exception);
  176. if (excep)
  177. jenv->ThrowNew(excep, msg);
  178. }
  179. /* Contract support */
  180. #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
  181. /* -----------------------------------------------------------------------------
  182. * director.swg
  183. *
  184. * This file contains support for director classes that proxy
  185. * method calls from C++ to Java extensions.
  186. * ----------------------------------------------------------------------------- */
  187. #ifdef __cplusplus
  188. #if defined(DEBUG_DIRECTOR_OWNED)
  189. #include <iostream>
  190. #endif
  191. namespace Swig {
  192. /* Java object wrapper */
  193. class JObjectWrapper {
  194. public:
  195. JObjectWrapper() : jthis_(NULL), weak_global_(true) {
  196. }
  197. ~JObjectWrapper() {
  198. jthis_ = NULL;
  199. weak_global_ = true;
  200. }
  201. bool set(JNIEnv *jenv, jobject jobj, bool mem_own, bool weak_global) {
  202. if (!jthis_) {
  203. weak_global_ = weak_global || !mem_own; // hold as weak global if explicitly requested or not owned
  204. if (jobj)
  205. jthis_ = weak_global_ ? jenv->NewWeakGlobalRef(jobj) : jenv->NewGlobalRef(jobj);
  206. #if defined(DEBUG_DIRECTOR_OWNED)
  207. std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> " << jthis_ << std::endl;
  208. #endif
  209. return true;
  210. } else {
  211. #if defined(DEBUG_DIRECTOR_OWNED)
  212. std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> already set" << std::endl;
  213. #endif
  214. return false;
  215. }
  216. }
  217. jobject get(JNIEnv *jenv) const {
  218. #if defined(DEBUG_DIRECTOR_OWNED)
  219. std::cout << "JObjectWrapper::get(";
  220. if (jthis_)
  221. std::cout << jthis_;
  222. else
  223. std::cout << "null";
  224. std::cout << ") -> return new local ref" << std::endl;
  225. #endif
  226. return (jthis_ ? jenv->NewLocalRef(jthis_) : jthis_);
  227. }
  228. void release(JNIEnv *jenv) {
  229. #if defined(DEBUG_DIRECTOR_OWNED)
  230. std::cout << "JObjectWrapper::release(" << jthis_ << "): " << (weak_global_ ? "weak global ref" : "global ref") << std::endl;
  231. #endif
  232. if (jthis_) {
  233. if (weak_global_) {
  234. if (jenv->IsSameObject(jthis_, NULL) == JNI_FALSE)
  235. jenv->DeleteWeakGlobalRef((jweak)jthis_);
  236. } else
  237. jenv->DeleteGlobalRef(jthis_);
  238. }
  239. jthis_ = NULL;
  240. weak_global_ = true;
  241. }
  242. /* Only call peek if you know what you are doing wrt to weak/global references */
  243. jobject peek() {
  244. return jthis_;
  245. }
  246. /* Java proxy releases ownership of C++ object, C++ object is now
  247. responsible for destruction (creates NewGlobalRef to pin Java
  248. proxy) */
  249. void java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) {
  250. if (take_or_release) { /* Java takes ownership of C++ object's lifetime. */
  251. if (!weak_global_) {
  252. jenv->DeleteGlobalRef(jthis_);
  253. jthis_ = jenv->NewWeakGlobalRef(jself);
  254. weak_global_ = true;
  255. }
  256. } else { /* Java releases ownership of C++ object's lifetime */
  257. if (weak_global_) {
  258. jenv->DeleteWeakGlobalRef((jweak)jthis_);
  259. jthis_ = jenv->NewGlobalRef(jself);
  260. weak_global_ = false;
  261. }
  262. }
  263. }
  264. private:
  265. /* pointer to Java object */
  266. jobject jthis_;
  267. /* Local or global reference flag */
  268. bool weak_global_;
  269. };
  270. /* director base class */
  271. class Director {
  272. /* pointer to Java virtual machine */
  273. JavaVM *swig_jvm_;
  274. protected:
  275. #if defined (_MSC_VER) && (_MSC_VER<1300)
  276. class JNIEnvWrapper;
  277. friend class JNIEnvWrapper;
  278. #endif
  279. /* Utility class for managing the JNI environment */
  280. class JNIEnvWrapper {
  281. const Director *director_;
  282. JNIEnv *jenv_;
  283. int env_status;
  284. public:
  285. JNIEnvWrapper(const Director *director) : director_(director), jenv_(0), env_status(0) {
  286. #if defined(__ANDROID__)
  287. JNIEnv **jenv = &jenv_;
  288. #else
  289. void **jenv = (void **)&jenv_;
  290. #endif
  291. env_status = director_->swig_jvm_->GetEnv((void **)&jenv_, JNI_VERSION_1_2);
  292. #if defined(SWIG_JAVA_ATTACH_CURRENT_THREAD_AS_DAEMON)
  293. // Attach a daemon thread to the JVM. Useful when the JVM should not wait for
  294. // the thread to exit upon shutdown. Only for jdk-1.4 and later.
  295. director_->swig_jvm_->AttachCurrentThreadAsDaemon(jenv, NULL);
  296. #else
  297. director_->swig_jvm_->AttachCurrentThread(jenv, NULL);
  298. #endif
  299. }
  300. ~JNIEnvWrapper() {
  301. #if !defined(SWIG_JAVA_NO_DETACH_CURRENT_THREAD)
  302. // Some JVMs, eg jdk-1.4.2 and lower on Solaris have a bug and crash with the DetachCurrentThread call.
  303. // However, without this call, the JVM hangs on exit when the thread was not created by the JVM and creates a memory leak.
  304. if (env_status == JNI_EDETACHED)
  305. director_->swig_jvm_->DetachCurrentThread();
  306. #endif
  307. }
  308. JNIEnv *getJNIEnv() const {
  309. return jenv_;
  310. }
  311. };
  312. /* Java object wrapper */
  313. JObjectWrapper swig_self_;
  314. /* Disconnect director from Java object */
  315. void swig_disconnect_director_self(const char *disconn_method) {
  316. JNIEnvWrapper jnienv(this) ;
  317. JNIEnv *jenv = jnienv.getJNIEnv() ;
  318. jobject jobj = swig_self_.get(jenv);
  319. #if defined(DEBUG_DIRECTOR_OWNED)
  320. std::cout << "Swig::Director::disconnect_director_self(" << jobj << ")" << std::endl;
  321. #endif
  322. if (jobj && jenv->IsSameObject(jobj, NULL) == JNI_FALSE) {
  323. jmethodID disconn_meth = jenv->GetMethodID(jenv->GetObjectClass(jobj), disconn_method, "()V");
  324. if (disconn_meth) {
  325. #if defined(DEBUG_DIRECTOR_OWNED)
  326. std::cout << "Swig::Director::disconnect_director_self upcall to " << disconn_method << std::endl;
  327. #endif
  328. jenv->CallVoidMethod(jobj, disconn_meth);
  329. }
  330. }
  331. jenv->DeleteLocalRef(jobj);
  332. }
  333. public:
  334. Director(JNIEnv *jenv) : swig_jvm_((JavaVM *) NULL), swig_self_() {
  335. /* Acquire the Java VM pointer */
  336. jenv->GetJavaVM(&swig_jvm_);
  337. }
  338. virtual ~Director() {
  339. JNIEnvWrapper jnienv(this) ;
  340. JNIEnv *jenv = jnienv.getJNIEnv() ;
  341. swig_self_.release(jenv);
  342. }
  343. bool swig_set_self(JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global) {
  344. return swig_self_.set(jenv, jself, mem_own, weak_global);
  345. }
  346. jobject swig_get_self(JNIEnv *jenv) const {
  347. return swig_self_.get(jenv);
  348. }
  349. // Change C++ object's ownership, relative to Java
  350. void swig_java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) {
  351. swig_self_.java_change_ownership(jenv, jself, take_or_release);
  352. }
  353. };
  354. }
  355. #endif /* __cplusplus */
  356. namespace Swig {
  357. namespace {
  358. jclass jclass_tinyWRAPJNI = NULL;
  359. jmethodID director_methids[37];
  360. }
  361. }
  362. #include <stdint.h> // Use the C99 official header
  363. #include "tinyWRAP_config.h"
  364. #include "DDebug.h"
  365. #include "AudioResampler.h"
  366. #include "ActionConfig.h"
  367. #include "MediaSessionMgr.h"
  368. #include "MediaContent.h"
  369. #include "SipUri.h"
  370. #include "SipMessage.h"
  371. #include "SipEvent.h"
  372. #include "SipSession.h"
  373. #include "ProxyPluginMgr.h"
  374. #include "ProxyConsumer.h"
  375. #include "ProxyProducer.h"
  376. #include "SipCallback.h"
  377. #include "SafeObject.h"
  378. #include "SipStack.h"
  379. #include "Xcap.h"
  380. #include "SMSEncoder.h"
  381. #include "Msrp.h"
  382. /* ---------------------------------------------------
  383. * C++ director class methods
  384. * --------------------------------------------------- */
  385. #include "tinyWRAP_wrap.h"
  386. SwigDirector_DDebugCallback::SwigDirector_DDebugCallback(JNIEnv *jenv) : DDebugCallback(), Swig::Director(jenv) {
  387. }
  388. SwigDirector_DDebugCallback::~SwigDirector_DDebugCallback() {
  389. swig_disconnect_director_self("swigDirectorDisconnect");
  390. }
  391. int SwigDirector_DDebugCallback::OnDebugInfo(char const *message) {
  392. int c_result = SwigValueInit< int >() ;
  393. jint jresult = 0 ;
  394. JNIEnvWrapper swigjnienv(this) ;
  395. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  396. jobject swigjobj = (jobject) NULL ;
  397. jstring jmessage = 0 ;
  398. if (!swig_override[0]) {
  399. return DDebugCallback::OnDebugInfo(message);
  400. }
  401. swigjobj = swig_get_self(jenv);
  402. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  403. jmessage = 0;
  404. if (message) {
  405. jmessage = jenv->NewStringUTF((const char *)message);
  406. if (!jmessage) return c_result;
  407. }
  408. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[0], swigjobj, jmessage);
  409. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  410. c_result = (int)jresult;
  411. } else {
  412. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  413. }
  414. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  415. return c_result;
  416. }
  417. int SwigDirector_DDebugCallback::OnDebugWarn(char const *message) {
  418. int c_result = SwigValueInit< int >() ;
  419. jint jresult = 0 ;
  420. JNIEnvWrapper swigjnienv(this) ;
  421. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  422. jobject swigjobj = (jobject) NULL ;
  423. jstring jmessage = 0 ;
  424. if (!swig_override[1]) {
  425. return DDebugCallback::OnDebugWarn(message);
  426. }
  427. swigjobj = swig_get_self(jenv);
  428. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  429. jmessage = 0;
  430. if (message) {
  431. jmessage = jenv->NewStringUTF((const char *)message);
  432. if (!jmessage) return c_result;
  433. }
  434. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[1], swigjobj, jmessage);
  435. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  436. c_result = (int)jresult;
  437. } else {
  438. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  439. }
  440. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  441. return c_result;
  442. }
  443. int SwigDirector_DDebugCallback::OnDebugError(char const *message) {
  444. int c_result = SwigValueInit< int >() ;
  445. jint jresult = 0 ;
  446. JNIEnvWrapper swigjnienv(this) ;
  447. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  448. jobject swigjobj = (jobject) NULL ;
  449. jstring jmessage = 0 ;
  450. if (!swig_override[2]) {
  451. return DDebugCallback::OnDebugError(message);
  452. }
  453. swigjobj = swig_get_self(jenv);
  454. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  455. jmessage = 0;
  456. if (message) {
  457. jmessage = jenv->NewStringUTF((const char *)message);
  458. if (!jmessage) return c_result;
  459. }
  460. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, jmessage);
  461. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  462. c_result = (int)jresult;
  463. } else {
  464. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  465. }
  466. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  467. return c_result;
  468. }
  469. int SwigDirector_DDebugCallback::OnDebugFatal(char const *message) {
  470. int c_result = SwigValueInit< int >() ;
  471. jint jresult = 0 ;
  472. JNIEnvWrapper swigjnienv(this) ;
  473. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  474. jobject swigjobj = (jobject) NULL ;
  475. jstring jmessage = 0 ;
  476. if (!swig_override[3]) {
  477. return DDebugCallback::OnDebugFatal(message);
  478. }
  479. swigjobj = swig_get_self(jenv);
  480. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  481. jmessage = 0;
  482. if (message) {
  483. jmessage = jenv->NewStringUTF((const char *)message);
  484. if (!jmessage) return c_result;
  485. }
  486. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage);
  487. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  488. c_result = (int)jresult;
  489. } else {
  490. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  491. }
  492. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  493. return c_result;
  494. }
  495. void SwigDirector_DDebugCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  496. static struct {
  497. const char *mname;
  498. const char *mdesc;
  499. jmethodID base_methid;
  500. } methods[] = {
  501. {
  502. "OnDebugInfo", "(Ljava/lang/String;)I", NULL
  503. },
  504. {
  505. "OnDebugWarn", "(Ljava/lang/String;)I", NULL
  506. },
  507. {
  508. "OnDebugError", "(Ljava/lang/String;)I", NULL
  509. },
  510. {
  511. "OnDebugFatal", "(Ljava/lang/String;)I", NULL
  512. }
  513. };
  514. static jclass baseclass = 0 ;
  515. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  516. if (!baseclass) {
  517. baseclass = jenv->FindClass("org/doubango/tinyWRAP/DDebugCallback");
  518. if (!baseclass) return;
  519. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  520. }
  521. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  522. for (int i = 0; i < 4; ++i) {
  523. if (!methods[i].base_methid) {
  524. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  525. if (!methods[i].base_methid) return;
  526. }
  527. swig_override[i] = false;
  528. if (derived) {
  529. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  530. swig_override[i] = (methid != methods[i].base_methid);
  531. jenv->ExceptionClear();
  532. }
  533. }
  534. }
  535. }
  536. SwigDirector_T140Callback::SwigDirector_T140Callback(JNIEnv *jenv) : T140Callback(), Swig::Director(jenv) {
  537. }
  538. SwigDirector_T140Callback::~SwigDirector_T140Callback() {
  539. swig_disconnect_director_self("swigDirectorDisconnect");
  540. }
  541. int SwigDirector_T140Callback::ondata(T140CallbackData const *pData) {
  542. int c_result = SwigValueInit< int >() ;
  543. jint jresult = 0 ;
  544. JNIEnvWrapper swigjnienv(this) ;
  545. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  546. jobject swigjobj = (jobject) NULL ;
  547. jlong jpData = 0 ;
  548. if (!swig_override[0]) {
  549. return T140Callback::ondata(pData);
  550. }
  551. swigjobj = swig_get_self(jenv);
  552. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  553. *((T140CallbackData **)&jpData) = (T140CallbackData *) pData;
  554. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jpData);
  555. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  556. c_result = (int)jresult;
  557. } else {
  558. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  559. }
  560. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  561. return c_result;
  562. }
  563. void SwigDirector_T140Callback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  564. static struct {
  565. const char *mname;
  566. const char *mdesc;
  567. jmethodID base_methid;
  568. } methods[] = {
  569. {
  570. "ondata", "(Lorg/doubango/tinyWRAP/T140CallbackData;)I", NULL
  571. }
  572. };
  573. static jclass baseclass = 0 ;
  574. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  575. if (!baseclass) {
  576. baseclass = jenv->FindClass("org/doubango/tinyWRAP/T140Callback");
  577. if (!baseclass) return;
  578. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  579. }
  580. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  581. for (int i = 0; i < 1; ++i) {
  582. if (!methods[i].base_methid) {
  583. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  584. if (!methods[i].base_methid) return;
  585. }
  586. swig_override[i] = false;
  587. if (derived) {
  588. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  589. swig_override[i] = (methid != methods[i].base_methid);
  590. jenv->ExceptionClear();
  591. }
  592. }
  593. }
  594. }
  595. SwigDirector_ProxyPluginMgrCallback::SwigDirector_ProxyPluginMgrCallback(JNIEnv *jenv) : ProxyPluginMgrCallback(), Swig::Director(jenv) {
  596. }
  597. SwigDirector_ProxyPluginMgrCallback::~SwigDirector_ProxyPluginMgrCallback() {
  598. swig_disconnect_director_self("swigDirectorDisconnect");
  599. }
  600. int SwigDirector_ProxyPluginMgrCallback::OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type) {
  601. int c_result = SwigValueInit< int >() ;
  602. jint jresult = 0 ;
  603. JNIEnvWrapper swigjnienv(this) ;
  604. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  605. jobject swigjobj = (jobject) NULL ;
  606. jobject jid ;
  607. jint jtype ;
  608. if (!swig_override[0]) {
  609. return ProxyPluginMgrCallback::OnPluginCreated(id,type);
  610. }
  611. swigjobj = swig_get_self(jenv);
  612. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  613. {
  614. jbyteArray ba = jenv->NewByteArray(9);
  615. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  616. jclass clazz = jenv->FindClass("java/math/BigInteger");
  617. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  618. jobject bigint;
  619. int swig_i;
  620. bae[0] = 0;
  621. for(swig_i=1; swig_i<9; swig_i++ ) {
  622. bae[swig_i] = (jbyte)(id>>8*(8-swig_i));
  623. }
  624. jenv->ReleaseByteArrayElements(ba, bae, 0);
  625. bigint = jenv->NewObject(clazz, mid, ba);
  626. jid = bigint;
  627. }
  628. jtype = (jint) type;
  629. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jid, jtype);
  630. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  631. c_result = (int)jresult;
  632. } else {
  633. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  634. }
  635. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  636. return c_result;
  637. }
  638. int SwigDirector_ProxyPluginMgrCallback::OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type) {
  639. int c_result = SwigValueInit< int >() ;
  640. jint jresult = 0 ;
  641. JNIEnvWrapper swigjnienv(this) ;
  642. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  643. jobject swigjobj = (jobject) NULL ;
  644. jobject jid ;
  645. jint jtype ;
  646. if (!swig_override[1]) {
  647. return ProxyPluginMgrCallback::OnPluginDestroyed(id,type);
  648. }
  649. swigjobj = swig_get_self(jenv);
  650. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  651. {
  652. jbyteArray ba = jenv->NewByteArray(9);
  653. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  654. jclass clazz = jenv->FindClass("java/math/BigInteger");
  655. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  656. jobject bigint;
  657. int swig_i;
  658. bae[0] = 0;
  659. for(swig_i=1; swig_i<9; swig_i++ ) {
  660. bae[swig_i] = (jbyte)(id>>8*(8-swig_i));
  661. }
  662. jenv->ReleaseByteArrayElements(ba, bae, 0);
  663. bigint = jenv->NewObject(clazz, mid, ba);
  664. jid = bigint;
  665. }
  666. jtype = (jint) type;
  667. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[6], swigjobj, jid, jtype);
  668. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  669. c_result = (int)jresult;
  670. } else {
  671. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  672. }
  673. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  674. return c_result;
  675. }
  676. void SwigDirector_ProxyPluginMgrCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  677. static struct {
  678. const char *mname;
  679. const char *mdesc;
  680. jmethodID base_methid;
  681. } methods[] = {
  682. {
  683. "OnPluginCreated", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL
  684. },
  685. {
  686. "OnPluginDestroyed", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL
  687. }
  688. };
  689. static jclass baseclass = 0 ;
  690. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  691. if (!baseclass) {
  692. baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyPluginMgrCallback");
  693. if (!baseclass) return;
  694. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  695. }
  696. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  697. for (int i = 0; i < 2; ++i) {
  698. if (!methods[i].base_methid) {
  699. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  700. if (!methods[i].base_methid) return;
  701. }
  702. swig_override[i] = false;
  703. if (derived) {
  704. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  705. swig_override[i] = (methid != methods[i].base_methid);
  706. jenv->ExceptionClear();
  707. }
  708. }
  709. }
  710. }
  711. SwigDirector_ProxyAudioConsumerCallback::SwigDirector_ProxyAudioConsumerCallback(JNIEnv *jenv) : ProxyAudioConsumerCallback(), Swig::Director(jenv) {
  712. }
  713. SwigDirector_ProxyAudioConsumerCallback::~SwigDirector_ProxyAudioConsumerCallback() {
  714. swig_disconnect_director_self("swigDirectorDisconnect");
  715. }
  716. int SwigDirector_ProxyAudioConsumerCallback::prepare(int ptime, int rate, int channels) {
  717. int c_result = SwigValueInit< int >() ;
  718. jint jresult = 0 ;
  719. JNIEnvWrapper swigjnienv(this) ;
  720. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  721. jobject swigjobj = (jobject) NULL ;
  722. jint jptime ;
  723. jint jrate ;
  724. jint jchannels ;
  725. if (!swig_override[0]) {
  726. return ProxyAudioConsumerCallback::prepare(ptime,rate,channels);
  727. }
  728. swigjobj = swig_get_self(jenv);
  729. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  730. jptime = (jint) ptime;
  731. jrate = (jint) rate;
  732. jchannels = (jint) channels;
  733. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[7], swigjobj, jptime, jrate, jchannels);
  734. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  735. c_result = (int)jresult;
  736. } else {
  737. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  738. }
  739. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  740. return c_result;
  741. }
  742. int SwigDirector_ProxyAudioConsumerCallback::start() {
  743. int c_result = SwigValueInit< int >() ;
  744. jint jresult = 0 ;
  745. JNIEnvWrapper swigjnienv(this) ;
  746. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  747. jobject swigjobj = (jobject) NULL ;
  748. if (!swig_override[1]) {
  749. return ProxyAudioConsumerCallback::start();
  750. }
  751. swigjobj = swig_get_self(jenv);
  752. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  753. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[8], swigjobj);
  754. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  755. c_result = (int)jresult;
  756. } else {
  757. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  758. }
  759. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  760. return c_result;
  761. }
  762. int SwigDirector_ProxyAudioConsumerCallback::pause() {
  763. int c_result = SwigValueInit< int >() ;
  764. jint jresult = 0 ;
  765. JNIEnvWrapper swigjnienv(this) ;
  766. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  767. jobject swigjobj = (jobject) NULL ;
  768. if (!swig_override[2]) {
  769. return ProxyAudioConsumerCallback::pause();
  770. }
  771. swigjobj = swig_get_self(jenv);
  772. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  773. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[9], swigjobj);
  774. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  775. c_result = (int)jresult;
  776. } else {
  777. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  778. }
  779. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  780. return c_result;
  781. }
  782. int SwigDirector_ProxyAudioConsumerCallback::stop() {
  783. int c_result = SwigValueInit< int >() ;
  784. jint jresult = 0 ;
  785. JNIEnvWrapper swigjnienv(this) ;
  786. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  787. jobject swigjobj = (jobject) NULL ;
  788. if (!swig_override[3]) {
  789. return ProxyAudioConsumerCallback::stop();
  790. }
  791. swigjobj = swig_get_self(jenv);
  792. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  793. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], swigjobj);
  794. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  795. c_result = (int)jresult;
  796. } else {
  797. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  798. }
  799. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  800. return c_result;
  801. }
  802. void SwigDirector_ProxyAudioConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  803. static struct {
  804. const char *mname;
  805. const char *mdesc;
  806. jmethodID base_methid;
  807. } methods[] = {
  808. {
  809. "prepare", "(III)I", NULL
  810. },
  811. {
  812. "start", "()I", NULL
  813. },
  814. {
  815. "pause", "()I", NULL
  816. },
  817. {
  818. "stop", "()I", NULL
  819. }
  820. };
  821. static jclass baseclass = 0 ;
  822. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  823. if (!baseclass) {
  824. baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioConsumerCallback");
  825. if (!baseclass) return;
  826. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  827. }
  828. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  829. for (int i = 0; i < 4; ++i) {
  830. if (!methods[i].base_methid) {
  831. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  832. if (!methods[i].base_methid) return;
  833. }
  834. swig_override[i] = false;
  835. if (derived) {
  836. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  837. swig_override[i] = (methid != methods[i].base_methid);
  838. jenv->ExceptionClear();
  839. }
  840. }
  841. }
  842. }
  843. SwigDirector_ProxyVideoConsumerCallback::SwigDirector_ProxyVideoConsumerCallback(JNIEnv *jenv) : ProxyVideoConsumerCallback(), Swig::Director(jenv) {
  844. }
  845. SwigDirector_ProxyVideoConsumerCallback::~SwigDirector_ProxyVideoConsumerCallback() {
  846. swig_disconnect_director_self("swigDirectorDisconnect");
  847. }
  848. int SwigDirector_ProxyVideoConsumerCallback::prepare(int nWidth, int nHeight, int nFps) {
  849. int c_result = SwigValueInit< int >() ;
  850. jint jresult = 0 ;
  851. JNIEnvWrapper swigjnienv(this) ;
  852. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  853. jobject swigjobj = (jobject) NULL ;
  854. jint jnWidth ;
  855. jint jnHeight ;
  856. jint jnFps ;
  857. if (!swig_override[0]) {
  858. return ProxyVideoConsumerCallback::prepare(nWidth,nHeight,nFps);
  859. }
  860. swigjobj = swig_get_self(jenv);
  861. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  862. jnWidth = (jint) nWidth;
  863. jnHeight = (jint) nHeight;
  864. jnFps = (jint) nFps;
  865. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, jnWidth, jnHeight, jnFps);
  866. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  867. c_result = (int)jresult;
  868. } else {
  869. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  870. }
  871. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  872. return c_result;
  873. }
  874. int SwigDirector_ProxyVideoConsumerCallback::consume(ProxyVideoFrame const *frame) {
  875. int c_result = SwigValueInit< int >() ;
  876. jint jresult = 0 ;
  877. JNIEnvWrapper swigjnienv(this) ;
  878. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  879. jobject swigjobj = (jobject) NULL ;
  880. jlong jframe = 0 ;
  881. if (!swig_override[1]) {
  882. return ProxyVideoConsumerCallback::consume(frame);
  883. }
  884. swigjobj = swig_get_self(jenv);
  885. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  886. *((ProxyVideoFrame **)&jframe) = (ProxyVideoFrame *) frame;
  887. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[12], swigjobj, jframe);
  888. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  889. c_result = (int)jresult;
  890. } else {
  891. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  892. }
  893. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  894. return c_result;
  895. }
  896. int SwigDirector_ProxyVideoConsumerCallback::bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize) {
  897. int c_result = SwigValueInit< int >() ;
  898. jint jresult = 0 ;
  899. JNIEnvWrapper swigjnienv(this) ;
  900. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  901. jobject swigjobj = (jobject) NULL ;
  902. jlong jnCopiedSize ;
  903. jlong jnAvailableSize ;
  904. if (!swig_override[2]) {
  905. return ProxyVideoConsumerCallback::bufferCopied(nCopiedSize,nAvailableSize);
  906. }
  907. swigjobj = swig_get_self(jenv);
  908. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  909. jnCopiedSize = (jlong) nCopiedSize;
  910. jnAvailableSize = (jlong) nAvailableSize;
  911. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, jnCopiedSize, jnAvailableSize);
  912. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  913. c_result = (int)jresult;
  914. } else {
  915. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  916. }
  917. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  918. return c_result;
  919. }
  920. int SwigDirector_ProxyVideoConsumerCallback::start() {
  921. int c_result = SwigValueInit< int >() ;
  922. jint jresult = 0 ;
  923. JNIEnvWrapper swigjnienv(this) ;
  924. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  925. jobject swigjobj = (jobject) NULL ;
  926. if (!swig_override[3]) {
  927. return ProxyVideoConsumerCallback::start();
  928. }
  929. swigjobj = swig_get_self(jenv);
  930. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  931. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj);
  932. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  933. c_result = (int)jresult;
  934. } else {
  935. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  936. }
  937. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  938. return c_result;
  939. }
  940. int SwigDirector_ProxyVideoConsumerCallback::pause() {
  941. int c_result = SwigValueInit< int >() ;
  942. jint jresult = 0 ;
  943. JNIEnvWrapper swigjnienv(this) ;
  944. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  945. jobject swigjobj = (jobject) NULL ;
  946. if (!swig_override[4]) {
  947. return ProxyVideoConsumerCallback::pause();
  948. }
  949. swigjobj = swig_get_self(jenv);
  950. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  951. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[15], swigjobj);
  952. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  953. c_result = (int)jresult;
  954. } else {
  955. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  956. }
  957. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  958. return c_result;
  959. }
  960. int SwigDirector_ProxyVideoConsumerCallback::stop() {
  961. int c_result = SwigValueInit< int >() ;
  962. jint jresult = 0 ;
  963. JNIEnvWrapper swigjnienv(this) ;
  964. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  965. jobject swigjobj = (jobject) NULL ;
  966. if (!swig_override[5]) {
  967. return ProxyVideoConsumerCallback::stop();
  968. }
  969. swigjobj = swig_get_self(jenv);
  970. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  971. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[16], swigjobj);
  972. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  973. c_result = (int)jresult;
  974. } else {
  975. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  976. }
  977. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  978. return c_result;
  979. }
  980. void SwigDirector_ProxyVideoConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  981. static struct {
  982. const char *mname;
  983. const char *mdesc;
  984. jmethodID base_methid;
  985. } methods[] = {
  986. {
  987. "prepare", "(III)I", NULL
  988. },
  989. {
  990. "consume", "(Lorg/doubango/tinyWRAP/ProxyVideoFrame;)I", NULL
  991. },
  992. {
  993. "bufferCopied", "(JJ)I", NULL
  994. },
  995. {
  996. "start", "()I", NULL
  997. },
  998. {
  999. "pause", "()I", NULL
  1000. },
  1001. {
  1002. "stop", "()I", NULL
  1003. }
  1004. };
  1005. static jclass baseclass = 0 ;
  1006. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  1007. if (!baseclass) {
  1008. baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoConsumerCallback");
  1009. if (!baseclass) return;
  1010. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  1011. }
  1012. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  1013. for (int i = 0; i < 6; ++i) {
  1014. if (!methods[i].base_methid) {
  1015. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  1016. if (!methods[i].base_methid) return;
  1017. }
  1018. swig_override[i] = false;
  1019. if (derived) {
  1020. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  1021. swig_override[i] = (methid != methods[i].base_methid);
  1022. jenv->ExceptionClear();
  1023. }
  1024. }
  1025. }
  1026. }
  1027. SwigDirector_ProxyAudioProducerCallback::SwigDirector_ProxyAudioProducerCallback(JNIEnv *jenv) : ProxyAudioProducerCallback(), Swig::Director(jenv) {
  1028. }
  1029. SwigDirector_ProxyAudioProducerCallback::~SwigDirector_ProxyAudioProducerCallback() {
  1030. swig_disconnect_director_self("swigDirectorDisconnect");
  1031. }
  1032. int SwigDirector_ProxyAudioProducerCallback::prepare(int ptime, int rate, int channels) {
  1033. int c_result = SwigValueInit< int >() ;
  1034. jint jresult = 0 ;
  1035. JNIEnvWrapper swigjnienv(this) ;
  1036. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1037. jobject swigjobj = (jobject) NULL ;
  1038. jint jptime ;
  1039. jint jrate ;
  1040. jint jchannels ;
  1041. if (!swig_override[0]) {
  1042. return ProxyAudioProducerCallback::prepare(ptime,rate,channels);
  1043. }
  1044. swigjobj = swig_get_self(jenv);
  1045. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1046. jptime = (jint) ptime;
  1047. jrate = (jint) rate;
  1048. jchannels = (jint) channels;
  1049. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[17], swigjobj, jptime, jrate, jchannels);
  1050. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1051. c_result = (int)jresult;
  1052. } else {
  1053. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1054. }
  1055. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1056. return c_result;
  1057. }
  1058. int SwigDirector_ProxyAudioProducerCallback::start() {
  1059. int c_result = SwigValueInit< int >() ;
  1060. jint jresult = 0 ;
  1061. JNIEnvWrapper swigjnienv(this) ;
  1062. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1063. jobject swigjobj = (jobject) NULL ;
  1064. if (!swig_override[1]) {
  1065. return ProxyAudioProducerCallback::start();
  1066. }
  1067. swigjobj = swig_get_self(jenv);
  1068. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1069. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[18], swigjobj);
  1070. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1071. c_result = (int)jresult;
  1072. } else {
  1073. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1074. }
  1075. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1076. return c_result;
  1077. }
  1078. int SwigDirector_ProxyAudioProducerCallback::pause() {
  1079. int c_result = SwigValueInit< int >() ;
  1080. jint jresult = 0 ;
  1081. JNIEnvWrapper swigjnienv(this) ;
  1082. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1083. jobject swigjobj = (jobject) NULL ;
  1084. if (!swig_override[2]) {
  1085. return ProxyAudioProducerCallback::pause();
  1086. }
  1087. swigjobj = swig_get_self(jenv);
  1088. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1089. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[19], swigjobj);
  1090. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1091. c_result = (int)jresult;
  1092. } else {
  1093. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1094. }
  1095. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1096. return c_result;
  1097. }
  1098. int SwigDirector_ProxyAudioProducerCallback::stop() {
  1099. int c_result = SwigValueInit< int >() ;
  1100. jint jresult = 0 ;
  1101. JNIEnvWrapper swigjnienv(this) ;
  1102. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1103. jobject swigjobj = (jobject) NULL ;
  1104. if (!swig_override[3]) {
  1105. return ProxyAudioProducerCallback::stop();
  1106. }
  1107. swigjobj = swig_get_self(jenv);
  1108. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1109. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[20], swigjobj);
  1110. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1111. c_result = (int)jresult;
  1112. } else {
  1113. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1114. }
  1115. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1116. return c_result;
  1117. }
  1118. int SwigDirector_ProxyAudioProducerCallback::fillPushBuffer() {
  1119. int c_result = SwigValueInit< int >() ;
  1120. jint jresult = 0 ;
  1121. JNIEnvWrapper swigjnienv(this) ;
  1122. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1123. jobject swigjobj = (jobject) NULL ;
  1124. if (!swig_override[4]) {
  1125. return ProxyAudioProducerCallback::fillPushBuffer();
  1126. }
  1127. swigjobj = swig_get_self(jenv);
  1128. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1129. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[21], swigjobj);
  1130. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1131. c_result = (int)jresult;
  1132. } else {
  1133. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1134. }
  1135. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1136. return c_result;
  1137. }
  1138. void SwigDirector_ProxyAudioProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  1139. static struct {
  1140. const char *mname;
  1141. const char *mdesc;
  1142. jmethodID base_methid;
  1143. } methods[] = {
  1144. {
  1145. "prepare", "(III)I", NULL
  1146. },
  1147. {
  1148. "start", "()I", NULL
  1149. },
  1150. {
  1151. "pause", "()I", NULL
  1152. },
  1153. {
  1154. "stop", "()I", NULL
  1155. },
  1156. {
  1157. "fillPushBuffer", "()I", NULL
  1158. }
  1159. };
  1160. static jclass baseclass = 0 ;
  1161. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  1162. if (!baseclass) {
  1163. baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioProducerCallback");
  1164. if (!baseclass) return;
  1165. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  1166. }
  1167. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  1168. for (int i = 0; i < 5; ++i) {
  1169. if (!methods[i].base_methid) {
  1170. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  1171. if (!methods[i].base_methid) return;
  1172. }
  1173. swig_override[i] = false;
  1174. if (derived) {
  1175. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  1176. swig_override[i] = (methid != methods[i].base_methid);
  1177. jenv->ExceptionClear();
  1178. }
  1179. }
  1180. }
  1181. }
  1182. SwigDirector_ProxyVideoProducerCallback::SwigDirector_ProxyVideoProducerCallback(JNIEnv *jenv) : ProxyVideoProducerCallback(), Swig::Director(jenv) {
  1183. }
  1184. SwigDirector_ProxyVideoProducerCallback::~SwigDirector_ProxyVideoProducerCallback() {
  1185. swig_disconnect_director_self("swigDirectorDisconnect");
  1186. }
  1187. int SwigDirector_ProxyVideoProducerCallback::prepare(int width, int height, int fps) {
  1188. int c_result = SwigValueInit< int >() ;
  1189. jint jresult = 0 ;
  1190. JNIEnvWrapper swigjnienv(this) ;
  1191. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1192. jobject swigjobj = (jobject) NULL ;
  1193. jint jwidth ;
  1194. jint jheight ;
  1195. jint jfps ;
  1196. if (!swig_override[0]) {
  1197. return ProxyVideoProducerCallback::prepare(width,height,fps);
  1198. }
  1199. swigjobj = swig_get_self(jenv);
  1200. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1201. jwidth = (jint) width;
  1202. jheight = (jint) height;
  1203. jfps = (jint) fps;
  1204. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[22], swigjobj, jwidth, jheight, jfps);
  1205. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1206. c_result = (int)jresult;
  1207. } else {
  1208. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1209. }
  1210. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1211. return c_result;
  1212. }
  1213. int SwigDirector_ProxyVideoProducerCallback::start() {
  1214. int c_result = SwigValueInit< int >() ;
  1215. jint jresult = 0 ;
  1216. JNIEnvWrapper swigjnienv(this) ;
  1217. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1218. jobject swigjobj = (jobject) NULL ;
  1219. if (!swig_override[1]) {
  1220. return ProxyVideoProducerCallback::start();
  1221. }
  1222. swigjobj = swig_get_self(jenv);
  1223. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1224. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[23], swigjobj);
  1225. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1226. c_result = (int)jresult;
  1227. } else {
  1228. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1229. }
  1230. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1231. return c_result;
  1232. }
  1233. int SwigDirector_ProxyVideoProducerCallback::pause() {
  1234. int c_result = SwigValueInit< int >() ;
  1235. jint jresult = 0 ;
  1236. JNIEnvWrapper swigjnienv(this) ;
  1237. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1238. jobject swigjobj = (jobject) NULL ;
  1239. if (!swig_override[2]) {
  1240. return ProxyVideoProducerCallback::pause();
  1241. }
  1242. swigjobj = swig_get_self(jenv);
  1243. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1244. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[24], swigjobj);
  1245. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1246. c_result = (int)jresult;
  1247. } else {
  1248. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1249. }
  1250. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1251. return c_result;
  1252. }
  1253. int SwigDirector_ProxyVideoProducerCallback::stop() {
  1254. int c_result = SwigValueInit< int >() ;
  1255. jint jresult = 0 ;
  1256. JNIEnvWrapper swigjnienv(this) ;
  1257. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1258. jobject swigjobj = (jobject) NULL ;
  1259. if (!swig_override[3]) {
  1260. return ProxyVideoProducerCallback::stop();
  1261. }
  1262. swigjobj = swig_get_self(jenv);
  1263. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1264. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[25], swigjobj);
  1265. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1266. c_result = (int)jresult;
  1267. } else {
  1268. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1269. }
  1270. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1271. return c_result;
  1272. }
  1273. void SwigDirector_ProxyVideoProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  1274. static struct {
  1275. const char *mname;
  1276. const char *mdesc;
  1277. jmethodID base_methid;
  1278. } methods[] = {
  1279. {
  1280. "prepare", "(III)I", NULL
  1281. },
  1282. {
  1283. "start", "()I", NULL
  1284. },
  1285. {
  1286. "pause", "()I", NULL
  1287. },
  1288. {
  1289. "stop", "()I", NULL
  1290. }
  1291. };
  1292. static jclass baseclass = 0 ;
  1293. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  1294. if (!baseclass) {
  1295. baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoProducerCallback");
  1296. if (!baseclass) return;
  1297. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  1298. }
  1299. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  1300. for (int i = 0; i < 4; ++i) {
  1301. if (!methods[i].base_methid) {
  1302. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  1303. if (!methods[i].base_methid) return;
  1304. }
  1305. swig_override[i] = false;
  1306. if (derived) {
  1307. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  1308. swig_override[i] = (methid != methods[i].base_methid);
  1309. jenv->ExceptionClear();
  1310. }
  1311. }
  1312. }
  1313. }
  1314. SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) {
  1315. }
  1316. SwigDirector_SipCallback::~SwigDirector_SipCallback() {
  1317. swig_disconnect_director_self("swigDirectorDisconnect");
  1318. }
  1319. int SwigDirector_SipCallback::OnDialogEvent(DialogEvent const *e) {
  1320. int c_result = SwigValueInit< int >() ;
  1321. jint jresult = 0 ;
  1322. JNIEnvWrapper swigjnienv(this) ;
  1323. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1324. jobject swigjobj = (jobject) NULL ;
  1325. jlong je = 0 ;
  1326. if (!swig_override[0]) {
  1327. return SipCallback::OnDialogEvent(e);
  1328. }
  1329. swigjobj = swig_get_self(jenv);
  1330. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1331. *((DialogEvent **)&je) = (DialogEvent *) e;
  1332. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[26], swigjobj, je);
  1333. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1334. c_result = (int)jresult;
  1335. } else {
  1336. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1337. }
  1338. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1339. return c_result;
  1340. }
  1341. int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) {
  1342. int c_result = SwigValueInit< int >() ;
  1343. jint jresult = 0 ;
  1344. JNIEnvWrapper swigjnienv(this) ;
  1345. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1346. jobject swigjobj = (jobject) NULL ;
  1347. jlong je = 0 ;
  1348. if (!swig_override[1]) {
  1349. return SipCallback::OnStackEvent(e);
  1350. }
  1351. swigjobj = swig_get_self(jenv);
  1352. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1353. *((StackEvent **)&je) = (StackEvent *) e;
  1354. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[27], swigjobj, je);
  1355. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1356. c_result = (int)jresult;
  1357. } else {
  1358. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1359. }
  1360. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1361. return c_result;
  1362. }
  1363. int SwigDirector_SipCallback::OnInviteEvent(InviteEvent const *e) {
  1364. int c_result = SwigValueInit< int >() ;
  1365. jint jresult = 0 ;
  1366. JNIEnvWrapper swigjnienv(this) ;
  1367. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1368. jobject swigjobj = (jobject) NULL ;
  1369. jlong je = 0 ;
  1370. if (!swig_override[2]) {
  1371. return SipCallback::OnInviteEvent(e);
  1372. }
  1373. swigjobj = swig_get_self(jenv);
  1374. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1375. *((InviteEvent **)&je) = (InviteEvent *) e;
  1376. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[28], swigjobj, je);
  1377. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1378. c_result = (int)jresult;
  1379. } else {
  1380. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1381. }
  1382. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1383. return c_result;
  1384. }
  1385. int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
  1386. int c_result = SwigValueInit< int >() ;
  1387. jint jresult = 0 ;
  1388. JNIEnvWrapper swigjnienv(this) ;
  1389. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1390. jobject swigjobj = (jobject) NULL ;
  1391. jlong je = 0 ;
  1392. if (!swig_override[3]) {
  1393. return SipCallback::OnMessagingEvent(e);
  1394. }
  1395. swigjobj = swig_get_self(jenv);
  1396. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1397. *((MessagingEvent **)&je) = (MessagingEvent *) e;
  1398. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[29], swigjobj, je);
  1399. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1400. c_result = (int)jresult;
  1401. } else {
  1402. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1403. }
  1404. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1405. return c_result;
  1406. }
  1407. int SwigDirector_SipCallback::OnInfoEvent(InfoEvent const *e) {
  1408. int c_result = SwigValueInit< int >() ;
  1409. jint jresult = 0 ;
  1410. JNIEnvWrapper swigjnienv(this) ;
  1411. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1412. jobject swigjobj = (jobject) NULL ;
  1413. jlong je = 0 ;
  1414. if (!swig_override[4]) {
  1415. return SipCallback::OnInfoEvent(e);
  1416. }
  1417. swigjobj = swig_get_self(jenv);
  1418. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1419. *((InfoEvent **)&je) = (InfoEvent *) e;
  1420. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[30], swigjobj, je);
  1421. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1422. c_result = (int)jresult;
  1423. } else {
  1424. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1425. }
  1426. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1427. return c_result;
  1428. }
  1429. int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) {
  1430. int c_result = SwigValueInit< int >() ;
  1431. jint jresult = 0 ;
  1432. JNIEnvWrapper swigjnienv(this) ;
  1433. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1434. jobject swigjobj = (jobject) NULL ;
  1435. jlong je = 0 ;
  1436. if (!swig_override[5]) {
  1437. return SipCallback::OnOptionsEvent(e);
  1438. }
  1439. swigjobj = swig_get_self(jenv);
  1440. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1441. *((OptionsEvent **)&je) = (OptionsEvent *) e;
  1442. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[31], swigjobj, je);
  1443. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1444. c_result = (int)jresult;
  1445. } else {
  1446. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1447. }
  1448. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1449. return c_result;
  1450. }
  1451. int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) {
  1452. int c_result = SwigValueInit< int >() ;
  1453. jint jresult = 0 ;
  1454. JNIEnvWrapper swigjnienv(this) ;
  1455. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1456. jobject swigjobj = (jobject) NULL ;
  1457. jlong je = 0 ;
  1458. if (!swig_override[6]) {
  1459. return SipCallback::OnPublicationEvent(e);
  1460. }
  1461. swigjobj = swig_get_self(jenv);
  1462. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1463. *((PublicationEvent **)&je) = (PublicationEvent *) e;
  1464. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[32], swigjobj, je);
  1465. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1466. c_result = (int)jresult;
  1467. } else {
  1468. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1469. }
  1470. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1471. return c_result;
  1472. }
  1473. int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) {
  1474. int c_result = SwigValueInit< int >() ;
  1475. jint jresult = 0 ;
  1476. JNIEnvWrapper swigjnienv(this) ;
  1477. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1478. jobject swigjobj = (jobject) NULL ;
  1479. jlong je = 0 ;
  1480. if (!swig_override[7]) {
  1481. return SipCallback::OnRegistrationEvent(e);
  1482. }
  1483. swigjobj = swig_get_self(jenv);
  1484. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1485. *((RegistrationEvent **)&je) = (RegistrationEvent *) e;
  1486. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[33], swigjobj, je);
  1487. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1488. c_result = (int)jresult;
  1489. } else {
  1490. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1491. }
  1492. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1493. return c_result;
  1494. }
  1495. int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) {
  1496. int c_result = SwigValueInit< int >() ;
  1497. jint jresult = 0 ;
  1498. JNIEnvWrapper swigjnienv(this) ;
  1499. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1500. jobject swigjobj = (jobject) NULL ;
  1501. jlong je = 0 ;
  1502. if (!swig_override[8]) {
  1503. return SipCallback::OnSubscriptionEvent(e);
  1504. }
  1505. swigjobj = swig_get_self(jenv);
  1506. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1507. *((SubscriptionEvent **)&je) = (SubscriptionEvent *) e;
  1508. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[34], swigjobj, je);
  1509. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1510. c_result = (int)jresult;
  1511. } else {
  1512. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1513. }
  1514. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1515. return c_result;
  1516. }
  1517. void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  1518. static struct {
  1519. const char *mname;
  1520. const char *mdesc;
  1521. jmethodID base_methid;
  1522. } methods[] = {
  1523. {
  1524. "OnDialogEvent", "(Lorg/doubango/tinyWRAP/DialogEvent;)I", NULL
  1525. },
  1526. {
  1527. "OnStackEvent", "(Lorg/doubango/tinyWRAP/StackEvent;)I", NULL
  1528. },
  1529. {
  1530. "OnInviteEvent", "(Lorg/doubango/tinyWRAP/InviteEvent;)I", NULL
  1531. },
  1532. {
  1533. "OnMessagingEvent", "(Lorg/doubango/tinyWRAP/MessagingEvent;)I", NULL
  1534. },
  1535. {
  1536. "OnInfoEvent", "(Lorg/doubango/tinyWRAP/InfoEvent;)I", NULL
  1537. },
  1538. {
  1539. "OnOptionsEvent", "(Lorg/doubango/tinyWRAP/OptionsEvent;)I", NULL
  1540. },
  1541. {
  1542. "OnPublicationEvent", "(Lorg/doubango/tinyWRAP/PublicationEvent;)I", NULL
  1543. },
  1544. {
  1545. "OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL
  1546. },
  1547. {
  1548. "OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL
  1549. }
  1550. };
  1551. static jclass baseclass = 0 ;
  1552. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  1553. if (!baseclass) {
  1554. baseclass = jenv->FindClass("org/doubango/tinyWRAP/SipCallback");
  1555. if (!baseclass) return;
  1556. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  1557. }
  1558. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  1559. for (int i = 0; i < 9; ++i) {
  1560. if (!methods[i].base_methid) {
  1561. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  1562. if (!methods[i].base_methid) return;
  1563. }
  1564. swig_override[i] = false;
  1565. if (derived) {
  1566. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  1567. swig_override[i] = (methid != methods[i].base_methid);
  1568. jenv->ExceptionClear();
  1569. }
  1570. }
  1571. }
  1572. }
  1573. SwigDirector_XcapCallback::SwigDirector_XcapCallback(JNIEnv *jenv) : XcapCallback(), Swig::Director(jenv) {
  1574. }
  1575. SwigDirector_XcapCallback::~SwigDirector_XcapCallback() {
  1576. swig_disconnect_director_self("swigDirectorDisconnect");
  1577. }
  1578. int SwigDirector_XcapCallback::onEvent(XcapEvent const *e) const {
  1579. int c_result = SwigValueInit< int >() ;
  1580. jint jresult = 0 ;
  1581. JNIEnvWrapper swigjnienv(this) ;
  1582. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1583. jobject swigjobj = (jobject) NULL ;
  1584. jlong je = 0 ;
  1585. if (!swig_override[0]) {
  1586. return XcapCallback::onEvent(e);
  1587. }
  1588. swigjobj = swig_get_self(jenv);
  1589. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1590. *((XcapEvent **)&je) = (XcapEvent *) e;
  1591. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[35], swigjobj, je);
  1592. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1593. c_result = (int)jresult;
  1594. } else {
  1595. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1596. }
  1597. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1598. return c_result;
  1599. }
  1600. void SwigDirector_XcapCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  1601. static struct {
  1602. const char *mname;
  1603. const char *mdesc;
  1604. jmethodID base_methid;
  1605. } methods[] = {
  1606. {
  1607. "onEvent", "(Lorg/doubango/tinyWRAP/XcapEvent;)I", NULL
  1608. }
  1609. };
  1610. static jclass baseclass = 0 ;
  1611. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  1612. if (!baseclass) {
  1613. baseclass = jenv->FindClass("org/doubango/tinyWRAP/XcapCallback");
  1614. if (!baseclass) return;
  1615. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  1616. }
  1617. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  1618. for (int i = 0; i < 1; ++i) {
  1619. if (!methods[i].base_methid) {
  1620. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  1621. if (!methods[i].base_methid) return;
  1622. }
  1623. swig_override[i] = false;
  1624. if (derived) {
  1625. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  1626. swig_override[i] = (methid != methods[i].base_methid);
  1627. jenv->ExceptionClear();
  1628. }
  1629. }
  1630. }
  1631. }
  1632. SwigDirector_MsrpCallback::SwigDirector_MsrpCallback(JNIEnv *jenv) : MsrpCallback(), Swig::Director(jenv) {
  1633. }
  1634. SwigDirector_MsrpCallback::~SwigDirector_MsrpCallback() {
  1635. swig_disconnect_director_self("swigDirectorDisconnect");
  1636. }
  1637. int SwigDirector_MsrpCallback::OnEvent(MsrpEvent const *e) {
  1638. int c_result = SwigValueInit< int >() ;
  1639. jint jresult = 0 ;
  1640. JNIEnvWrapper swigjnienv(this) ;
  1641. JNIEnv * jenv = swigjnienv.getJNIEnv() ;
  1642. jobject swigjobj = (jobject) NULL ;
  1643. jlong je = 0 ;
  1644. if (!swig_override[0]) {
  1645. return MsrpCallback::OnEvent(e);
  1646. }
  1647. swigjobj = swig_get_self(jenv);
  1648. if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
  1649. *((MsrpEvent **)&je) = (MsrpEvent *) e;
  1650. jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[36], swigjobj, je);
  1651. if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
  1652. c_result = (int)jresult;
  1653. } else {
  1654. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
  1655. }
  1656. if (swigjobj) jenv->DeleteLocalRef(swigjobj);
  1657. return c_result;
  1658. }
  1659. void SwigDirector_MsrpCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
  1660. static struct {
  1661. const char *mname;
  1662. const char *mdesc;
  1663. jmethodID base_methid;
  1664. } methods[] = {
  1665. {
  1666. "OnEvent", "(Lorg/doubango/tinyWRAP/MsrpEvent;)I", NULL
  1667. }
  1668. };
  1669. static jclass baseclass = 0 ;
  1670. if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
  1671. if (!baseclass) {
  1672. baseclass = jenv->FindClass("org/doubango/tinyWRAP/MsrpCallback");
  1673. if (!baseclass) return;
  1674. baseclass = (jclass) jenv->NewGlobalRef(baseclass);
  1675. }
  1676. bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
  1677. for (int i = 0; i < 1; ++i) {
  1678. if (!methods[i].base_methid) {
  1679. methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
  1680. if (!methods[i].base_methid) return;
  1681. }
  1682. swig_override[i] = false;
  1683. if (derived) {
  1684. jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
  1685. swig_override[i] = (methid != methods[i].base_methid);
  1686. jenv->ExceptionClear();
  1687. }
  1688. }
  1689. }
  1690. }
  1691. #ifdef __cplusplus
  1692. extern "C" {
  1693. #endif
  1694. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1DDebugCallback(JNIEnv *jenv, jclass jcls) {
  1695. jlong jresult = 0 ;
  1696. DDebugCallback *result = 0 ;
  1697. (void)jenv;
  1698. (void)jcls;
  1699. result = (DDebugCallback *)new SwigDirector_DDebugCallback(jenv);
  1700. *(DDebugCallback **)&jresult = result;
  1701. return jresult;
  1702. }
  1703. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  1704. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1705. (void)jenv;
  1706. (void)jcls;
  1707. arg1 = *(DDebugCallback **)&jarg1;
  1708. delete arg1;
  1709. }
  1710. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1711. jint jresult = 0 ;
  1712. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1713. char *arg2 = (char *) 0 ;
  1714. int result;
  1715. (void)jenv;
  1716. (void)jcls;
  1717. (void)jarg1_;
  1718. arg1 = *(DDebugCallback **)&jarg1;
  1719. arg2 = 0;
  1720. if (jarg2) {
  1721. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1722. if (!arg2) return 0;
  1723. }
  1724. result = (int)(arg1)->OnDebugInfo((char const *)arg2);
  1725. jresult = (jint)result;
  1726. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1727. return jresult;
  1728. }
  1729. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfoSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1730. jint jresult = 0 ;
  1731. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1732. char *arg2 = (char *) 0 ;
  1733. int result;
  1734. (void)jenv;
  1735. (void)jcls;
  1736. (void)jarg1_;
  1737. arg1 = *(DDebugCallback **)&jarg1;
  1738. arg2 = 0;
  1739. if (jarg2) {
  1740. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1741. if (!arg2) return 0;
  1742. }
  1743. result = (int)(arg1)->DDebugCallback::OnDebugInfo((char const *)arg2);
  1744. jresult = (jint)result;
  1745. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1746. return jresult;
  1747. }
  1748. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1749. jint jresult = 0 ;
  1750. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1751. char *arg2 = (char *) 0 ;
  1752. int result;
  1753. (void)jenv;
  1754. (void)jcls;
  1755. (void)jarg1_;
  1756. arg1 = *(DDebugCallback **)&jarg1;
  1757. arg2 = 0;
  1758. if (jarg2) {
  1759. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1760. if (!arg2) return 0;
  1761. }
  1762. result = (int)(arg1)->OnDebugWarn((char const *)arg2);
  1763. jresult = (jint)result;
  1764. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1765. return jresult;
  1766. }
  1767. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarnSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1768. jint jresult = 0 ;
  1769. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1770. char *arg2 = (char *) 0 ;
  1771. int result;
  1772. (void)jenv;
  1773. (void)jcls;
  1774. (void)jarg1_;
  1775. arg1 = *(DDebugCallback **)&jarg1;
  1776. arg2 = 0;
  1777. if (jarg2) {
  1778. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1779. if (!arg2) return 0;
  1780. }
  1781. result = (int)(arg1)->DDebugCallback::OnDebugWarn((char const *)arg2);
  1782. jresult = (jint)result;
  1783. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1784. return jresult;
  1785. }
  1786. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1787. jint jresult = 0 ;
  1788. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1789. char *arg2 = (char *) 0 ;
  1790. int result;
  1791. (void)jenv;
  1792. (void)jcls;
  1793. (void)jarg1_;
  1794. arg1 = *(DDebugCallback **)&jarg1;
  1795. arg2 = 0;
  1796. if (jarg2) {
  1797. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1798. if (!arg2) return 0;
  1799. }
  1800. result = (int)(arg1)->OnDebugError((char const *)arg2);
  1801. jresult = (jint)result;
  1802. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1803. return jresult;
  1804. }
  1805. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugErrorSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1806. jint jresult = 0 ;
  1807. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1808. char *arg2 = (char *) 0 ;
  1809. int result;
  1810. (void)jenv;
  1811. (void)jcls;
  1812. (void)jarg1_;
  1813. arg1 = *(DDebugCallback **)&jarg1;
  1814. arg2 = 0;
  1815. if (jarg2) {
  1816. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1817. if (!arg2) return 0;
  1818. }
  1819. result = (int)(arg1)->DDebugCallback::OnDebugError((char const *)arg2);
  1820. jresult = (jint)result;
  1821. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1822. return jresult;
  1823. }
  1824. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1825. jint jresult = 0 ;
  1826. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1827. char *arg2 = (char *) 0 ;
  1828. int result;
  1829. (void)jenv;
  1830. (void)jcls;
  1831. (void)jarg1_;
  1832. arg1 = *(DDebugCallback **)&jarg1;
  1833. arg2 = 0;
  1834. if (jarg2) {
  1835. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1836. if (!arg2) return 0;
  1837. }
  1838. result = (int)(arg1)->OnDebugFatal((char const *)arg2);
  1839. jresult = (jint)result;
  1840. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1841. return jresult;
  1842. }
  1843. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatalSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  1844. jint jresult = 0 ;
  1845. DDebugCallback *arg1 = (DDebugCallback *) 0 ;
  1846. char *arg2 = (char *) 0 ;
  1847. int result;
  1848. (void)jenv;
  1849. (void)jcls;
  1850. (void)jarg1_;
  1851. arg1 = *(DDebugCallback **)&jarg1;
  1852. arg2 = 0;
  1853. if (jarg2) {
  1854. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1855. if (!arg2) return 0;
  1856. }
  1857. result = (int)(arg1)->DDebugCallback::OnDebugFatal((char const *)arg2);
  1858. jresult = (jint)result;
  1859. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1860. return jresult;
  1861. }
  1862. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  1863. DDebugCallback *obj = *((DDebugCallback **)&objarg);
  1864. (void)jcls;
  1865. SwigDirector_DDebugCallback *director = static_cast<SwigDirector_DDebugCallback *>(obj);
  1866. if (director) {
  1867. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  1868. }
  1869. }
  1870. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  1871. DDebugCallback *obj = *((DDebugCallback **)&objarg);
  1872. SwigDirector_DDebugCallback *director = static_cast<SwigDirector_DDebugCallback *>(obj);
  1873. (void)jcls;
  1874. if (director) {
  1875. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  1876. }
  1877. }
  1878. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) {
  1879. jlong jresult = 0 ;
  1880. uint32_t arg1 ;
  1881. uint32_t arg2 ;
  1882. uint32_t arg3 ;
  1883. uint32_t arg4 ;
  1884. uint32_t arg5 ;
  1885. AudioResampler *result = 0 ;
  1886. (void)jenv;
  1887. (void)jcls;
  1888. arg1 = (uint32_t)jarg1;
  1889. arg2 = (uint32_t)jarg2;
  1890. arg3 = (uint32_t)jarg3;
  1891. arg4 = (uint32_t)jarg4;
  1892. arg5 = (uint32_t)jarg5;
  1893. result = (AudioResampler *)new AudioResampler(arg1,arg2,arg3,arg4,arg5);
  1894. *(AudioResampler **)&jresult = result;
  1895. return jresult;
  1896. }
  1897. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  1898. AudioResampler *arg1 = (AudioResampler *) 0 ;
  1899. (void)jenv;
  1900. (void)jcls;
  1901. arg1 = *(AudioResampler **)&jarg1;
  1902. delete arg1;
  1903. }
  1904. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  1905. jboolean jresult = 0 ;
  1906. AudioResampler *arg1 = (AudioResampler *) 0 ;
  1907. bool result;
  1908. (void)jenv;
  1909. (void)jcls;
  1910. (void)jarg1_;
  1911. arg1 = *(AudioResampler **)&jarg1;
  1912. result = (bool)(arg1)->isValid();
  1913. jresult = (jboolean)result;
  1914. return jresult;
  1915. }
  1916. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getOutputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  1917. jlong jresult = 0 ;
  1918. AudioResampler *arg1 = (AudioResampler *) 0 ;
  1919. uint32_t result;
  1920. (void)jenv;
  1921. (void)jcls;
  1922. (void)jarg1_;
  1923. arg1 = *(AudioResampler **)&jarg1;
  1924. result = (uint32_t)(arg1)->getOutputRequiredSizeInShort();
  1925. jresult = (jlong)result;
  1926. return jresult;
  1927. }
  1928. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getInputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  1929. jlong jresult = 0 ;
  1930. AudioResampler *arg1 = (AudioResampler *) 0 ;
  1931. uint32_t result;
  1932. (void)jenv;
  1933. (void)jcls;
  1934. (void)jarg1_;
  1935. arg1 = *(AudioResampler **)&jarg1;
  1936. result = (uint32_t)(arg1)->getInputRequiredSizeInShort();
  1937. jresult = (jlong)result;
  1938. return jresult;
  1939. }
  1940. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1process(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jbyteArray jarg4, jlong jarg5) {
  1941. jlong jresult = 0 ;
  1942. AudioResampler *arg1 = (AudioResampler *) 0 ;
  1943. void *arg2 = (void *) 0 ;
  1944. uint32_t arg3 ;
  1945. void *arg4 = (void *) 0 ;
  1946. uint32_t arg5 ;
  1947. uint32_t result;
  1948. (void)jenv;
  1949. (void)jcls;
  1950. (void)jarg1_;
  1951. arg1 = *(AudioResampler **)&jarg1;
  1952. arg2 = jenv->GetDirectBufferAddress(jarg2);
  1953. arg3 = (uint32_t)jarg3;
  1954. arg4 = jenv->GetDirectBufferAddress(jarg4);
  1955. arg5 = (uint32_t)jarg5;
  1956. result = (uint32_t)(arg1)->process((void const *)arg2,arg3,arg4,arg5);
  1957. jresult = (jlong)result;
  1958. return jresult;
  1959. }
  1960. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ActionConfig(JNIEnv *jenv, jclass jcls) {
  1961. jlong jresult = 0 ;
  1962. ActionConfig *result = 0 ;
  1963. (void)jenv;
  1964. (void)jcls;
  1965. result = (ActionConfig *)new ActionConfig();
  1966. *(ActionConfig **)&jresult = result;
  1967. return jresult;
  1968. }
  1969. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ActionConfig(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  1970. ActionConfig *arg1 = (ActionConfig *) 0 ;
  1971. (void)jenv;
  1972. (void)jcls;
  1973. arg1 = *(ActionConfig **)&jarg1;
  1974. delete arg1;
  1975. }
  1976. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  1977. jboolean jresult = 0 ;
  1978. ActionConfig *arg1 = (ActionConfig *) 0 ;
  1979. char *arg2 = (char *) 0 ;
  1980. char *arg3 = (char *) 0 ;
  1981. bool result;
  1982. (void)jenv;
  1983. (void)jcls;
  1984. (void)jarg1_;
  1985. arg1 = *(ActionConfig **)&jarg1;
  1986. arg2 = 0;
  1987. if (jarg2) {
  1988. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  1989. if (!arg2) return 0;
  1990. }
  1991. arg3 = 0;
  1992. if (jarg3) {
  1993. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  1994. if (!arg3) return 0;
  1995. }
  1996. result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
  1997. jresult = (jboolean)result;
  1998. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  1999. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2000. return jresult;
  2001. }
  2002. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  2003. jboolean jresult = 0 ;
  2004. ActionConfig *arg1 = (ActionConfig *) 0 ;
  2005. void *arg2 = (void *) 0 ;
  2006. unsigned int arg3 ;
  2007. bool result;
  2008. (void)jenv;
  2009. (void)jcls;
  2010. (void)jarg1_;
  2011. arg1 = *(ActionConfig **)&jarg1;
  2012. arg2 = jenv->GetDirectBufferAddress(jarg2);
  2013. arg3 = (unsigned int)jarg3;
  2014. result = (bool)(arg1)->addPayload((void const *)arg2,arg3);
  2015. jresult = (jboolean)result;
  2016. return jresult;
  2017. }
  2018. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setActiveMedia(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  2019. jboolean jresult = 0 ;
  2020. ActionConfig *arg1 = (ActionConfig *) 0 ;
  2021. twrap_media_type_t arg2 ;
  2022. bool result;
  2023. (void)jenv;
  2024. (void)jcls;
  2025. (void)jarg1_;
  2026. arg1 = *(ActionConfig **)&jarg1;
  2027. arg2 = (twrap_media_type_t)jarg2;
  2028. result = (bool)(arg1)->setActiveMedia(arg2);
  2029. jresult = (jboolean)result;
  2030. return jresult;
  2031. }
  2032. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setResponseLine(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2, jstring jarg3) {
  2033. jlong jresult = 0 ;
  2034. ActionConfig *arg1 = (ActionConfig *) 0 ;
  2035. short arg2 ;
  2036. char *arg3 = (char *) 0 ;
  2037. ActionConfig *result = 0 ;
  2038. (void)jenv;
  2039. (void)jcls;
  2040. (void)jarg1_;
  2041. arg1 = *(ActionConfig **)&jarg1;
  2042. arg2 = (short)jarg2;
  2043. arg3 = 0;
  2044. if (jarg3) {
  2045. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2046. if (!arg3) return 0;
  2047. }
  2048. result = (ActionConfig *)(arg1)->setResponseLine(arg2,(char const *)arg3);
  2049. *(ActionConfig **)&jresult = result;
  2050. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2051. return jresult;
  2052. }
  2053. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jstring jarg4) {
  2054. jlong jresult = 0 ;
  2055. ActionConfig *arg1 = (ActionConfig *) 0 ;
  2056. twrap_media_type_t arg2 ;
  2057. char *arg3 = (char *) 0 ;
  2058. char *arg4 = (char *) 0 ;
  2059. ActionConfig *result = 0 ;
  2060. (void)jenv;
  2061. (void)jcls;
  2062. (void)jarg1_;
  2063. arg1 = *(ActionConfig **)&jarg1;
  2064. arg2 = (twrap_media_type_t)jarg2;
  2065. arg3 = 0;
  2066. if (jarg3) {
  2067. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2068. if (!arg3) return 0;
  2069. }
  2070. arg4 = 0;
  2071. if (jarg4) {
  2072. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  2073. if (!arg4) return 0;
  2074. }
  2075. result = (ActionConfig *)(arg1)->setMediaString(arg2,(char const *)arg3,(char const *)arg4);
  2076. *(ActionConfig **)&jresult = result;
  2077. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2078. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  2079. return jresult;
  2080. }
  2081. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaInt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
  2082. jlong jresult = 0 ;
  2083. ActionConfig *arg1 = (ActionConfig *) 0 ;
  2084. twrap_media_type_t arg2 ;
  2085. char *arg3 = (char *) 0 ;
  2086. int arg4 ;
  2087. ActionConfig *result = 0 ;
  2088. (void)jenv;
  2089. (void)jcls;
  2090. (void)jarg1_;
  2091. arg1 = *(ActionConfig **)&jarg1;
  2092. arg2 = (twrap_media_type_t)jarg2;
  2093. arg3 = 0;
  2094. if (jarg3) {
  2095. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2096. if (!arg3) return 0;
  2097. }
  2098. arg4 = (int)jarg4;
  2099. result = (ActionConfig *)(arg1)->setMediaInt(arg2,(char const *)arg3,arg4);
  2100. *(ActionConfig **)&jresult = result;
  2101. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2102. return jresult;
  2103. }
  2104. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1QoS(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  2105. QoS *arg1 = (QoS *) 0 ;
  2106. (void)jenv;
  2107. (void)jcls;
  2108. arg1 = *(QoS **)&jarg1;
  2109. delete arg1;
  2110. }
  2111. SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getQavg(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2112. jfloat jresult = 0 ;
  2113. QoS *arg1 = (QoS *) 0 ;
  2114. float result;
  2115. (void)jenv;
  2116. (void)jcls;
  2117. (void)jarg1_;
  2118. arg1 = *(QoS **)&jarg1;
  2119. result = (float)(arg1)->getQavg();
  2120. jresult = (jfloat)result;
  2121. return jresult;
  2122. }
  2123. SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getQ1(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2124. jfloat jresult = 0 ;
  2125. QoS *arg1 = (QoS *) 0 ;
  2126. float result;
  2127. (void)jenv;
  2128. (void)jcls;
  2129. (void)jarg1_;
  2130. arg1 = *(QoS **)&jarg1;
  2131. result = (float)(arg1)->getQ1();
  2132. jresult = (jfloat)result;
  2133. return jresult;
  2134. }
  2135. SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getQ2(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2136. jfloat jresult = 0 ;
  2137. QoS *arg1 = (QoS *) 0 ;
  2138. float result;
  2139. (void)jenv;
  2140. (void)jcls;
  2141. (void)jarg1_;
  2142. arg1 = *(QoS **)&jarg1;
  2143. result = (float)(arg1)->getQ2();
  2144. jresult = (jfloat)result;
  2145. return jresult;
  2146. }
  2147. SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getQ3(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2148. jfloat jresult = 0 ;
  2149. QoS *arg1 = (QoS *) 0 ;
  2150. float result;
  2151. (void)jenv;
  2152. (void)jcls;
  2153. (void)jarg1_;
  2154. arg1 = *(QoS **)&jarg1;
  2155. result = (float)(arg1)->getQ3();
  2156. jresult = (jfloat)result;
  2157. return jresult;
  2158. }
  2159. SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getQ4(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2160. jfloat jresult = 0 ;
  2161. QoS *arg1 = (QoS *) 0 ;
  2162. float result;
  2163. (void)jenv;
  2164. (void)jcls;
  2165. (void)jarg1_;
  2166. arg1 = *(QoS **)&jarg1;
  2167. result = (float)(arg1)->getQ4();
  2168. jresult = (jfloat)result;
  2169. return jresult;
  2170. }
  2171. SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getQ5(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2172. jfloat jresult = 0 ;
  2173. QoS *arg1 = (QoS *) 0 ;
  2174. float result;
  2175. (void)jenv;
  2176. (void)jcls;
  2177. (void)jarg1_;
  2178. arg1 = *(QoS **)&jarg1;
  2179. result = (float)(arg1)->getQ5();
  2180. jresult = (jfloat)result;
  2181. return jresult;
  2182. }
  2183. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getVideoInWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2184. jlong jresult = 0 ;
  2185. QoS *arg1 = (QoS *) 0 ;
  2186. unsigned int result;
  2187. (void)jenv;
  2188. (void)jcls;
  2189. (void)jarg1_;
  2190. arg1 = *(QoS **)&jarg1;
  2191. result = (unsigned int)(arg1)->getVideoInWidth();
  2192. jresult = (jlong)result;
  2193. return jresult;
  2194. }
  2195. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getVideoOutWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2196. jlong jresult = 0 ;
  2197. QoS *arg1 = (QoS *) 0 ;
  2198. unsigned int result;
  2199. (void)jenv;
  2200. (void)jcls;
  2201. (void)jarg1_;
  2202. arg1 = *(QoS **)&jarg1;
  2203. result = (unsigned int)(arg1)->getVideoOutWidth();
  2204. jresult = (jlong)result;
  2205. return jresult;
  2206. }
  2207. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getVideoInHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2208. jlong jresult = 0 ;
  2209. QoS *arg1 = (QoS *) 0 ;
  2210. unsigned int result;
  2211. (void)jenv;
  2212. (void)jcls;
  2213. (void)jarg1_;
  2214. arg1 = *(QoS **)&jarg1;
  2215. result = (unsigned int)(arg1)->getVideoInHeight();
  2216. jresult = (jlong)result;
  2217. return jresult;
  2218. }
  2219. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getVideoOutHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2220. jlong jresult = 0 ;
  2221. QoS *arg1 = (QoS *) 0 ;
  2222. unsigned int result;
  2223. (void)jenv;
  2224. (void)jcls;
  2225. (void)jarg1_;
  2226. arg1 = *(QoS **)&jarg1;
  2227. result = (unsigned int)(arg1)->getVideoOutHeight();
  2228. jresult = (jlong)result;
  2229. return jresult;
  2230. }
  2231. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getBandwidthDownKbps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2232. jlong jresult = 0 ;
  2233. QoS *arg1 = (QoS *) 0 ;
  2234. unsigned int result;
  2235. (void)jenv;
  2236. (void)jcls;
  2237. (void)jarg1_;
  2238. arg1 = *(QoS **)&jarg1;
  2239. result = (unsigned int)(arg1)->getBandwidthDownKbps();
  2240. jresult = (jlong)result;
  2241. return jresult;
  2242. }
  2243. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getBandwidthUpKbps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2244. jlong jresult = 0 ;
  2245. QoS *arg1 = (QoS *) 0 ;
  2246. unsigned int result;
  2247. (void)jenv;
  2248. (void)jcls;
  2249. (void)jarg1_;
  2250. arg1 = *(QoS **)&jarg1;
  2251. result = (unsigned int)(arg1)->getBandwidthUpKbps();
  2252. jresult = (jlong)result;
  2253. return jresult;
  2254. }
  2255. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getVideoInAvgFps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2256. jlong jresult = 0 ;
  2257. QoS *arg1 = (QoS *) 0 ;
  2258. unsigned int result;
  2259. (void)jenv;
  2260. (void)jcls;
  2261. (void)jarg1_;
  2262. arg1 = *(QoS **)&jarg1;
  2263. result = (unsigned int)(arg1)->getVideoInAvgFps();
  2264. jresult = (jlong)result;
  2265. return jresult;
  2266. }
  2267. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getVideoDecAvgTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2268. jlong jresult = 0 ;
  2269. QoS *arg1 = (QoS *) 0 ;
  2270. unsigned int result;
  2271. (void)jenv;
  2272. (void)jcls;
  2273. (void)jarg1_;
  2274. arg1 = *(QoS **)&jarg1;
  2275. result = (unsigned int)(arg1)->getVideoDecAvgTime();
  2276. jresult = (jlong)result;
  2277. return jresult;
  2278. }
  2279. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_QoS_1getVideoEncAvgTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2280. jlong jresult = 0 ;
  2281. QoS *arg1 = (QoS *) 0 ;
  2282. unsigned int result;
  2283. (void)jenv;
  2284. (void)jcls;
  2285. (void)jarg1_;
  2286. arg1 = *(QoS **)&jarg1;
  2287. result = (unsigned int)(arg1)->getVideoEncAvgTime();
  2288. jresult = (jlong)result;
  2289. return jresult;
  2290. }
  2291. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1Codec(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  2292. Codec *arg1 = (Codec *) 0 ;
  2293. (void)jenv;
  2294. (void)jcls;
  2295. arg1 = *(Codec **)&jarg1;
  2296. delete arg1;
  2297. }
  2298. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2299. jint jresult = 0 ;
  2300. Codec *arg1 = (Codec *) 0 ;
  2301. twrap_media_type_t result;
  2302. (void)jenv;
  2303. (void)jcls;
  2304. (void)jarg1_;
  2305. arg1 = *(Codec **)&jarg1;
  2306. result = (twrap_media_type_t)(arg1)->getMediaType();
  2307. jresult = (jint)result;
  2308. return jresult;
  2309. }
  2310. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2311. jstring jresult = 0 ;
  2312. Codec *arg1 = (Codec *) 0 ;
  2313. char *result = 0 ;
  2314. (void)jenv;
  2315. (void)jcls;
  2316. (void)jarg1_;
  2317. arg1 = *(Codec **)&jarg1;
  2318. result = (char *)(arg1)->getName();
  2319. if (result) jresult = jenv->NewStringUTF((const char *)result);
  2320. return jresult;
  2321. }
  2322. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getDescription(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2323. jstring jresult = 0 ;
  2324. Codec *arg1 = (Codec *) 0 ;
  2325. char *result = 0 ;
  2326. (void)jenv;
  2327. (void)jcls;
  2328. (void)jarg1_;
  2329. arg1 = *(Codec **)&jarg1;
  2330. result = (char *)(arg1)->getDescription();
  2331. if (result) jresult = jenv->NewStringUTF((const char *)result);
  2332. return jresult;
  2333. }
  2334. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getNegFormat(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2335. jstring jresult = 0 ;
  2336. Codec *arg1 = (Codec *) 0 ;
  2337. char *result = 0 ;
  2338. (void)jenv;
  2339. (void)jcls;
  2340. (void)jarg1_;
  2341. arg1 = *(Codec **)&jarg1;
  2342. result = (char *)(arg1)->getNegFormat();
  2343. if (result) jresult = jenv->NewStringUTF((const char *)result);
  2344. return jresult;
  2345. }
  2346. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioSamplingRate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2347. jint jresult = 0 ;
  2348. Codec *arg1 = (Codec *) 0 ;
  2349. int result;
  2350. (void)jenv;
  2351. (void)jcls;
  2352. (void)jarg1_;
  2353. arg1 = *(Codec **)&jarg1;
  2354. result = (int)(arg1)->getAudioSamplingRate();
  2355. jresult = (jint)result;
  2356. return jresult;
  2357. }
  2358. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioChannels(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2359. jint jresult = 0 ;
  2360. Codec *arg1 = (Codec *) 0 ;
  2361. int result;
  2362. (void)jenv;
  2363. (void)jcls;
  2364. (void)jarg1_;
  2365. arg1 = *(Codec **)&jarg1;
  2366. result = (int)(arg1)->getAudioChannels();
  2367. jresult = (jint)result;
  2368. return jresult;
  2369. }
  2370. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioPTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  2371. jint jresult = 0 ;
  2372. Codec *arg1 = (Codec *) 0 ;
  2373. int result;
  2374. (void)jenv;
  2375. (void)jcls;
  2376. (void)jarg1_;
  2377. arg1 = *(Codec **)&jarg1;
  2378. result = (int)(arg1)->getAudioPTime();
  2379. jresult = (jint)result;
  2380. return jresult;
  2381. }
  2382. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaSessionMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  2383. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2384. (void)jenv;
  2385. (void)jcls;
  2386. arg1 = *(MediaSessionMgr **)&jarg1;
  2387. delete arg1;
  2388. }
  2389. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
  2390. jboolean jresult = 0 ;
  2391. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2392. twrap_media_type_t arg2 ;
  2393. char *arg3 = (char *) 0 ;
  2394. int32_t arg4 ;
  2395. bool result;
  2396. (void)jenv;
  2397. (void)jcls;
  2398. (void)jarg1_;
  2399. arg1 = *(MediaSessionMgr **)&jarg1;
  2400. arg2 = (twrap_media_type_t)jarg2;
  2401. arg3 = 0;
  2402. if (jarg3) {
  2403. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2404. if (!arg3) return 0;
  2405. }
  2406. arg4 = (int32_t)jarg4;
  2407. result = (bool)(arg1)->sessionSetInt32(arg2,(char const *)arg3,arg4);
  2408. jresult = (jboolean)result;
  2409. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2410. return jresult;
  2411. }
  2412. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionGetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) {
  2413. jint jresult = 0 ;
  2414. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2415. twrap_media_type_t arg2 ;
  2416. char *arg3 = (char *) 0 ;
  2417. int32_t result;
  2418. (void)jenv;
  2419. (void)jcls;
  2420. (void)jarg1_;
  2421. arg1 = *(MediaSessionMgr **)&jarg1;
  2422. arg2 = (twrap_media_type_t)jarg2;
  2423. arg3 = 0;
  2424. if (jarg3) {
  2425. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2426. if (!arg3) return 0;
  2427. }
  2428. result = (int32_t)(arg1)->sessionGetInt32(arg2,(char const *)arg3);
  2429. jresult = (jint)result;
  2430. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2431. return jresult;
  2432. }
  2433. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionGetQoS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  2434. jlong jresult = 0 ;
  2435. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2436. twrap_media_type_t arg2 ;
  2437. QoS *result = 0 ;
  2438. (void)jenv;
  2439. (void)jcls;
  2440. (void)jarg1_;
  2441. arg1 = *(MediaSessionMgr **)&jarg1;
  2442. arg2 = (twrap_media_type_t)jarg2;
  2443. result = (QoS *)(arg1)->sessionGetQoS(arg2);
  2444. *(QoS **)&jresult = result;
  2445. return jresult;
  2446. }
  2447. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
  2448. jboolean jresult = 0 ;
  2449. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2450. twrap_media_type_t arg2 ;
  2451. char *arg3 = (char *) 0 ;
  2452. int32_t arg4 ;
  2453. bool result;
  2454. (void)jenv;
  2455. (void)jcls;
  2456. (void)jarg1_;
  2457. arg1 = *(MediaSessionMgr **)&jarg1;
  2458. arg2 = (twrap_media_type_t)jarg2;
  2459. arg3 = 0;
  2460. if (jarg3) {
  2461. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2462. if (!arg3) return 0;
  2463. }
  2464. arg4 = (int32_t)jarg4;
  2465. result = (bool)(arg1)->consumerSetInt32(arg2,(char const *)arg3,arg4);
  2466. jresult = (jboolean)result;
  2467. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2468. return jresult;
  2469. }
  2470. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) {
  2471. jboolean jresult = 0 ;
  2472. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2473. twrap_media_type_t arg2 ;
  2474. char *arg3 = (char *) 0 ;
  2475. int64_t arg4 ;
  2476. bool result;
  2477. (void)jenv;
  2478. (void)jcls;
  2479. (void)jarg1_;
  2480. arg1 = *(MediaSessionMgr **)&jarg1;
  2481. arg2 = (twrap_media_type_t)jarg2;
  2482. arg3 = 0;
  2483. if (jarg3) {
  2484. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2485. if (!arg3) return 0;
  2486. }
  2487. arg4 = (int64_t)jarg4;
  2488. result = (bool)(arg1)->consumerSetInt64(arg2,(char const *)arg3,arg4);
  2489. jresult = (jboolean)result;
  2490. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2491. return jresult;
  2492. }
  2493. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
  2494. jboolean jresult = 0 ;
  2495. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2496. twrap_media_type_t arg2 ;
  2497. char *arg3 = (char *) 0 ;
  2498. int32_t arg4 ;
  2499. bool result;
  2500. (void)jenv;
  2501. (void)jcls;
  2502. (void)jarg1_;
  2503. arg1 = *(MediaSessionMgr **)&jarg1;
  2504. arg2 = (twrap_media_type_t)jarg2;
  2505. arg3 = 0;
  2506. if (jarg3) {
  2507. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2508. if (!arg3) return 0;
  2509. }
  2510. arg4 = (int32_t)jarg4;
  2511. result = (bool)(arg1)->producerSetInt32(arg2,(char const *)arg3,arg4);
  2512. jresult = (jboolean)result;
  2513. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2514. return jresult;
  2515. }
  2516. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) {
  2517. jboolean jresult = 0 ;
  2518. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2519. twrap_media_type_t arg2 ;
  2520. char *arg3 = (char *) 0 ;
  2521. int64_t arg4 ;
  2522. bool result;
  2523. (void)jenv;
  2524. (void)jcls;
  2525. (void)jarg1_;
  2526. arg1 = *(MediaSessionMgr **)&jarg1;
  2527. arg2 = (twrap_media_type_t)jarg2;
  2528. arg3 = 0;
  2529. if (jarg3) {
  2530. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  2531. if (!arg3) return 0;
  2532. }
  2533. arg4 = (int64_t)jarg4;
  2534. result = (bool)(arg1)->producerSetInt64(arg2,(char const *)arg3,arg4);
  2535. jresult = (jboolean)result;
  2536. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  2537. return jresult;
  2538. }
  2539. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerGetCodec(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  2540. jlong jresult = 0 ;
  2541. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2542. twrap_media_type_t arg2 ;
  2543. Codec *result = 0 ;
  2544. (void)jenv;
  2545. (void)jcls;
  2546. (void)jarg1_;
  2547. arg1 = *(MediaSessionMgr **)&jarg1;
  2548. arg2 = (twrap_media_type_t)jarg2;
  2549. result = (Codec *)(arg1)->producerGetCodec(arg2);
  2550. *(Codec **)&jresult = result;
  2551. return jresult;
  2552. }
  2553. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  2554. jlong jresult = 0 ;
  2555. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2556. twrap_media_type_t arg2 ;
  2557. ProxyPlugin *result = 0 ;
  2558. (void)jenv;
  2559. (void)jcls;
  2560. (void)jarg1_;
  2561. arg1 = *(MediaSessionMgr **)&jarg1;
  2562. arg2 = (twrap_media_type_t)jarg2;
  2563. result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginConsumer(arg2);
  2564. *(ProxyPlugin **)&jresult = result;
  2565. return jresult;
  2566. }
  2567. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  2568. jlong jresult = 0 ;
  2569. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2570. twrap_media_type_t arg2 ;
  2571. ProxyPlugin *result = 0 ;
  2572. (void)jenv;
  2573. (void)jcls;
  2574. (void)jarg1_;
  2575. arg1 = *(MediaSessionMgr **)&jarg1;
  2576. arg2 = (twrap_media_type_t)jarg2;
  2577. result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginProducer(arg2);
  2578. *(ProxyPlugin **)&jresult = result;
  2579. return jresult;
  2580. }
  2581. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1registerAudioPluginFromFile(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  2582. jlong jresult = 0 ;
  2583. char *arg1 = (char *) 0 ;
  2584. unsigned int result;
  2585. (void)jenv;
  2586. (void)jcls;
  2587. arg1 = 0;
  2588. if (jarg1) {
  2589. arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
  2590. if (!arg1) return 0;
  2591. }
  2592. result = (unsigned int)MediaSessionMgr::registerAudioPluginFromFile((char const *)arg1);
  2593. jresult = (jlong)result;
  2594. if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  2595. return jresult;
  2596. }
  2597. SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1getSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  2598. jobject jresult = 0 ;
  2599. MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
  2600. twrap_media_type_t arg2 ;
  2601. uint64_t result;
  2602. (void)jenv;
  2603. (void)jcls;
  2604. (void)jarg1_;
  2605. arg1 = *(MediaSessionMgr **)&jarg1;
  2606. arg2 = (twrap_media_type_t)jarg2;
  2607. result = (uint64_t)((MediaSessionMgr const *)arg1)->getSessionId(arg2);
  2608. {
  2609. jbyteArray ba = jenv->NewByteArray(9);
  2610. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  2611. jclass clazz = jenv->FindClass("java/math/BigInteger");
  2612. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  2613. jobject bigint;
  2614. int i;
  2615. bae[0] = 0;
  2616. for(i=1; i<9; i++ ) {
  2617. bae[i] = (jbyte)(result>>8*(8-i));
  2618. }
  2619. jenv->ReleaseByteArrayElements(ba, bae, 0);
  2620. bigint = jenv->NewObject(clazz, mid, ba);
  2621. jresult = bigint;
  2622. }
  2623. return jresult;
  2624. }
  2625. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetProfile(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2626. jboolean jresult = 0 ;
  2627. tmedia_profile_t arg1 ;
  2628. bool result;
  2629. (void)jenv;
  2630. (void)jcls;
  2631. arg1 = (tmedia_profile_t)jarg1;
  2632. result = (bool)MediaSessionMgr::defaultsSetProfile(arg1);
  2633. jresult = (jboolean)result;
  2634. return jresult;
  2635. }
  2636. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetProfile(JNIEnv *jenv, jclass jcls) {
  2637. jint jresult = 0 ;
  2638. tmedia_profile_t result;
  2639. (void)jenv;
  2640. (void)jcls;
  2641. result = (tmedia_profile_t)MediaSessionMgr::defaultsGetProfile();
  2642. jresult = (jint)result;
  2643. return jresult;
  2644. }
  2645. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthLevel(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2646. jboolean jresult = 0 ;
  2647. tmedia_bandwidth_level_t arg1 ;
  2648. bool result;
  2649. (void)jenv;
  2650. (void)jcls;
  2651. arg1 = (tmedia_bandwidth_level_t)jarg1;
  2652. result = (bool)MediaSessionMgr::defaultsSetBandwidthLevel(arg1);
  2653. jresult = (jboolean)result;
  2654. return jresult;
  2655. }
  2656. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetBandwidthLevel(JNIEnv *jenv, jclass jcls) {
  2657. jint jresult = 0 ;
  2658. tmedia_bandwidth_level_t result;
  2659. (void)jenv;
  2660. (void)jcls;
  2661. result = (tmedia_bandwidth_level_t)MediaSessionMgr::defaultsGetBandwidthLevel();
  2662. jresult = (jint)result;
  2663. return jresult;
  2664. }
  2665. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetCongestionCtrlEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2666. jboolean jresult = 0 ;
  2667. bool arg1 ;
  2668. bool result;
  2669. (void)jenv;
  2670. (void)jcls;
  2671. arg1 = jarg1 ? true : false;
  2672. result = (bool)MediaSessionMgr::defaultsSetCongestionCtrlEnabled(arg1);
  2673. jresult = (jboolean)result;
  2674. return jresult;
  2675. }
  2676. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoMotionRank(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2677. jboolean jresult = 0 ;
  2678. int32_t arg1 ;
  2679. bool result;
  2680. (void)jenv;
  2681. (void)jcls;
  2682. arg1 = (int32_t)jarg1;
  2683. result = (bool)MediaSessionMgr::defaultsSetVideoMotionRank(arg1);
  2684. jresult = (jboolean)result;
  2685. return jresult;
  2686. }
  2687. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoFps(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2688. jboolean jresult = 0 ;
  2689. int32_t arg1 ;
  2690. bool result;
  2691. (void)jenv;
  2692. (void)jcls;
  2693. arg1 = (int32_t)jarg1;
  2694. result = (bool)MediaSessionMgr::defaultsSetVideoFps(arg1);
  2695. jresult = (jboolean)result;
  2696. return jresult;
  2697. }
  2698. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoUploadMax(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2699. jboolean jresult = 0 ;
  2700. int32_t arg1 ;
  2701. bool result;
  2702. (void)jenv;
  2703. (void)jcls;
  2704. arg1 = (int32_t)jarg1;
  2705. result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(arg1);
  2706. jresult = (jboolean)result;
  2707. return jresult;
  2708. }
  2709. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoDownloadMax(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2710. jboolean jresult = 0 ;
  2711. int32_t arg1 ;
  2712. bool result;
  2713. (void)jenv;
  2714. (void)jcls;
  2715. arg1 = (int32_t)jarg1;
  2716. result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(arg1);
  2717. jresult = (jboolean)result;
  2718. return jresult;
  2719. }
  2720. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetPrefVideoSize(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2721. jboolean jresult = 0 ;
  2722. tmedia_pref_video_size_t arg1 ;
  2723. bool result;
  2724. (void)jenv;
  2725. (void)jcls;
  2726. arg1 = (tmedia_pref_video_size_t)jarg1;
  2727. result = (bool)MediaSessionMgr::defaultsSetPrefVideoSize(arg1);
  2728. jresult = (jboolean)result;
  2729. return jresult;
  2730. }
  2731. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetPrefVideoSizeOutRange(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  2732. jboolean jresult = 0 ;
  2733. tmedia_pref_video_size_t arg1 ;
  2734. tmedia_pref_video_size_t arg2 ;
  2735. bool result;
  2736. (void)jenv;
  2737. (void)jcls;
  2738. arg1 = (tmedia_pref_video_size_t)jarg1;
  2739. arg2 = (tmedia_pref_video_size_t)jarg2;
  2740. result = (bool)MediaSessionMgr::defaultsSetPrefVideoSizeOutRange(arg1,arg2);
  2741. jresult = (jboolean)result;
  2742. return jresult;
  2743. }
  2744. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAdaptativeVideoSizeOutEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2745. jboolean jresult = 0 ;
  2746. bool arg1 ;
  2747. bool result;
  2748. (void)jenv;
  2749. (void)jcls;
  2750. arg1 = jarg1 ? true : false;
  2751. result = (bool)MediaSessionMgr::defaultsSetAdaptativeVideoSizeOutEnabled(arg1);
  2752. jresult = (jboolean)result;
  2753. return jresult;
  2754. }
  2755. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMargin(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  2756. jboolean jresult = 0 ;
  2757. uint32_t arg1 ;
  2758. bool result;
  2759. (void)jenv;
  2760. (void)jcls;
  2761. arg1 = (uint32_t)jarg1;
  2762. result = (bool)MediaSessionMgr::defaultsSetJbMargin(arg1);
  2763. jresult = (jboolean)result;
  2764. return jresult;
  2765. }
  2766. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMaxLateRate(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  2767. jboolean jresult = 0 ;
  2768. uint32_t arg1 ;
  2769. bool result;
  2770. (void)jenv;
  2771. (void)jcls;
  2772. arg1 = (uint32_t)jarg1;
  2773. result = (bool)MediaSessionMgr::defaultsSetJbMaxLateRate(arg1);
  2774. jresult = (jboolean)result;
  2775. return jresult;
  2776. }
  2777. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoTail(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  2778. jboolean jresult = 0 ;
  2779. uint32_t arg1 ;
  2780. bool result;
  2781. (void)jenv;
  2782. (void)jcls;
  2783. arg1 = (uint32_t)jarg1;
  2784. result = (bool)MediaSessionMgr::defaultsSetEchoTail(arg1);
  2785. jresult = (jboolean)result;
  2786. return jresult;
  2787. }
  2788. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoTail(JNIEnv *jenv, jclass jcls) {
  2789. jlong jresult = 0 ;
  2790. uint32_t result;
  2791. (void)jenv;
  2792. (void)jcls;
  2793. result = (uint32_t)MediaSessionMgr::defaultsGetEchoTail();
  2794. jresult = (jlong)result;
  2795. return jresult;
  2796. }
  2797. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSkew(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  2798. jboolean jresult = 0 ;
  2799. uint32_t arg1 ;
  2800. bool result;
  2801. (void)jenv;
  2802. (void)jcls;
  2803. arg1 = (uint32_t)jarg1;
  2804. result = (bool)MediaSessionMgr::defaultsSetEchoSkew(arg1);
  2805. jresult = (jboolean)result;
  2806. return jresult;
  2807. }
  2808. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2809. jboolean jresult = 0 ;
  2810. bool arg1 ;
  2811. bool result;
  2812. (void)jenv;
  2813. (void)jcls;
  2814. arg1 = jarg1 ? true : false;
  2815. result = (bool)MediaSessionMgr::defaultsSetEchoSuppEnabled(arg1);
  2816. jresult = (jboolean)result;
  2817. return jresult;
  2818. }
  2819. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoSuppEnabled(JNIEnv *jenv, jclass jcls) {
  2820. jboolean jresult = 0 ;
  2821. bool result;
  2822. (void)jenv;
  2823. (void)jcls;
  2824. result = (bool)MediaSessionMgr::defaultsGetEchoSuppEnabled();
  2825. jresult = (jboolean)result;
  2826. return jresult;
  2827. }
  2828. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2829. jboolean jresult = 0 ;
  2830. bool arg1 ;
  2831. bool result;
  2832. (void)jenv;
  2833. (void)jcls;
  2834. arg1 = jarg1 ? true : false;
  2835. result = (bool)MediaSessionMgr::defaultsSetAgcEnabled(arg1);
  2836. jresult = (jboolean)result;
  2837. return jresult;
  2838. }
  2839. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcEnabled(JNIEnv *jenv, jclass jcls) {
  2840. jboolean jresult = 0 ;
  2841. bool result;
  2842. (void)jenv;
  2843. (void)jcls;
  2844. result = (bool)MediaSessionMgr::defaultsGetAgcEnabled();
  2845. jresult = (jboolean)result;
  2846. return jresult;
  2847. }
  2848. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcLevel(JNIEnv *jenv, jclass jcls, jfloat jarg1) {
  2849. jboolean jresult = 0 ;
  2850. float arg1 ;
  2851. bool result;
  2852. (void)jenv;
  2853. (void)jcls;
  2854. arg1 = (float)jarg1;
  2855. result = (bool)MediaSessionMgr::defaultsSetAgcLevel(arg1);
  2856. jresult = (jboolean)result;
  2857. return jresult;
  2858. }
  2859. SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcLevel(JNIEnv *jenv, jclass jcls) {
  2860. jfloat jresult = 0 ;
  2861. float result;
  2862. (void)jenv;
  2863. (void)jcls;
  2864. result = (float)MediaSessionMgr::defaultsGetAgcLevel();
  2865. jresult = (jfloat)result;
  2866. return jresult;
  2867. }
  2868. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVadEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2869. jboolean jresult = 0 ;
  2870. bool arg1 ;
  2871. bool result;
  2872. (void)jenv;
  2873. (void)jcls;
  2874. arg1 = jarg1 ? true : false;
  2875. result = (bool)MediaSessionMgr::defaultsSetVadEnabled(arg1);
  2876. jresult = (jboolean)result;
  2877. return jresult;
  2878. }
  2879. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetGetVadEnabled(JNIEnv *jenv, jclass jcls) {
  2880. jboolean jresult = 0 ;
  2881. bool result;
  2882. (void)jenv;
  2883. (void)jcls;
  2884. result = (bool)MediaSessionMgr::defaultsGetGetVadEnabled();
  2885. jresult = (jboolean)result;
  2886. return jresult;
  2887. }
  2888. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2889. jboolean jresult = 0 ;
  2890. bool arg1 ;
  2891. bool result;
  2892. (void)jenv;
  2893. (void)jcls;
  2894. arg1 = jarg1 ? true : false;
  2895. result = (bool)MediaSessionMgr::defaultsSetNoiseSuppEnabled(arg1);
  2896. jresult = (jboolean)result;
  2897. return jresult;
  2898. }
  2899. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls) {
  2900. jboolean jresult = 0 ;
  2901. bool result;
  2902. (void)jenv;
  2903. (void)jcls;
  2904. result = (bool)MediaSessionMgr::defaultsGetNoiseSuppEnabled();
  2905. jresult = (jboolean)result;
  2906. return jresult;
  2907. }
  2908. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppLevel(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2909. jboolean jresult = 0 ;
  2910. int32_t arg1 ;
  2911. bool result;
  2912. (void)jenv;
  2913. (void)jcls;
  2914. arg1 = (int32_t)jarg1;
  2915. result = (bool)MediaSessionMgr::defaultsSetNoiseSuppLevel(arg1);
  2916. jresult = (jboolean)result;
  2917. return jresult;
  2918. }
  2919. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppLevel(JNIEnv *jenv, jclass jcls) {
  2920. jint jresult = 0 ;
  2921. int32_t result;
  2922. (void)jenv;
  2923. (void)jcls;
  2924. result = (int32_t)MediaSessionMgr::defaultsGetNoiseSuppLevel();
  2925. jresult = (jint)result;
  2926. return jresult;
  2927. }
  2928. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetConditionalRingingEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2929. jboolean jresult = 0 ;
  2930. bool arg1 ;
  2931. bool result;
  2932. (void)jenv;
  2933. (void)jcls;
  2934. arg1 = jarg1 ? true : false;
  2935. result = (bool)MediaSessionMgr::defaultsSetConditionalRingingEnabled(arg1);
  2936. jresult = (jboolean)result;
  2937. return jresult;
  2938. }
  2939. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetConditionalRingingEnabled(JNIEnv *jenv, jclass jcls) {
  2940. jboolean jresult = 0 ;
  2941. bool result;
  2942. (void)jenv;
  2943. (void)jcls;
  2944. result = (bool)MediaSessionMgr::defaultsGetConditionalRingingEnabled();
  2945. jresult = (jboolean)result;
  2946. return jresult;
  2947. }
  2948. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSet100relEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  2949. jboolean jresult = 0 ;
  2950. bool arg1 ;
  2951. bool result;
  2952. (void)jenv;
  2953. (void)jcls;
  2954. arg1 = jarg1 ? true : false;
  2955. result = (bool)MediaSessionMgr::defaultsSet100relEnabled(arg1);
  2956. jresult = (jboolean)result;
  2957. return jresult;
  2958. }
  2959. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGet100relEnabled(JNIEnv *jenv, jclass jcls) {
  2960. jboolean jresult = 0 ;
  2961. bool result;
  2962. (void)jenv;
  2963. (void)jcls;
  2964. result = (bool)MediaSessionMgr::defaultsGet100relEnabled();
  2965. jresult = (jboolean)result;
  2966. return jresult;
  2967. }
  2968. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetScreenSize(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  2969. jboolean jresult = 0 ;
  2970. int32_t arg1 ;
  2971. int32_t arg2 ;
  2972. bool result;
  2973. (void)jenv;
  2974. (void)jcls;
  2975. arg1 = (int32_t)jarg1;
  2976. arg2 = (int32_t)jarg2;
  2977. result = (bool)MediaSessionMgr::defaultsSetScreenSize(arg1,arg2);
  2978. jresult = (jboolean)result;
  2979. return jresult;
  2980. }
  2981. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioGain(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  2982. jboolean jresult = 0 ;
  2983. int32_t arg1 ;
  2984. int32_t arg2 ;
  2985. bool result;
  2986. (void)jenv;
  2987. (void)jcls;
  2988. arg1 = (int32_t)jarg1;
  2989. arg2 = (int32_t)jarg2;
  2990. result = (bool)MediaSessionMgr::defaultsSetAudioGain(arg1,arg2);
  2991. jresult = (jboolean)result;
  2992. return jresult;
  2993. }
  2994. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioPtime(JNIEnv *jenv, jclass jcls, jint jarg1) {
  2995. jboolean jresult = 0 ;
  2996. int32_t arg1 ;
  2997. bool result;
  2998. (void)jenv;
  2999. (void)jcls;
  3000. arg1 = (int32_t)jarg1;
  3001. result = (bool)MediaSessionMgr::defaultsSetAudioPtime(arg1);
  3002. jresult = (jboolean)result;
  3003. return jresult;
  3004. }
  3005. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioChannels(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  3006. jboolean jresult = 0 ;
  3007. int32_t arg1 ;
  3008. int32_t arg2 ;
  3009. bool result;
  3010. (void)jenv;
  3011. (void)jcls;
  3012. arg1 = (int32_t)jarg1;
  3013. arg2 = (int32_t)jarg2;
  3014. result = (bool)MediaSessionMgr::defaultsSetAudioChannels(arg1,arg2);
  3015. jresult = (jboolean)result;
  3016. return jresult;
  3017. }
  3018. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpPortRange(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  3019. jboolean jresult = 0 ;
  3020. uint16_t arg1 ;
  3021. uint16_t arg2 ;
  3022. bool result;
  3023. (void)jenv;
  3024. (void)jcls;
  3025. arg1 = (uint16_t)jarg1;
  3026. arg2 = (uint16_t)jarg2;
  3027. result = (bool)MediaSessionMgr::defaultsSetRtpPortRange(arg1,arg2);
  3028. jresult = (jboolean)result;
  3029. return jresult;
  3030. }
  3031. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpSymetricEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3032. jboolean jresult = 0 ;
  3033. bool arg1 ;
  3034. bool result;
  3035. (void)jenv;
  3036. (void)jcls;
  3037. arg1 = jarg1 ? true : false;
  3038. result = (bool)MediaSessionMgr::defaultsSetRtpSymetricEnabled(arg1);
  3039. jresult = (jboolean)result;
  3040. return jresult;
  3041. }
  3042. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMediaType(JNIEnv *jenv, jclass jcls, jint jarg1) {
  3043. jboolean jresult = 0 ;
  3044. twrap_media_type_t arg1 ;
  3045. bool result;
  3046. (void)jenv;
  3047. (void)jcls;
  3048. arg1 = (twrap_media_type_t)jarg1;
  3049. result = (bool)MediaSessionMgr::defaultsSetMediaType(arg1);
  3050. jresult = (jboolean)result;
  3051. return jresult;
  3052. }
  3053. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVolume(JNIEnv *jenv, jclass jcls, jint jarg1) {
  3054. jboolean jresult = 0 ;
  3055. int32_t arg1 ;
  3056. bool result;
  3057. (void)jenv;
  3058. (void)jcls;
  3059. arg1 = (int32_t)jarg1;
  3060. result = (bool)MediaSessionMgr::defaultsSetVolume(arg1);
  3061. jresult = (jboolean)result;
  3062. return jresult;
  3063. }
  3064. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVolume(JNIEnv *jenv, jclass jcls) {
  3065. jint jresult = 0 ;
  3066. int32_t result;
  3067. (void)jenv;
  3068. (void)jcls;
  3069. result = (int32_t)MediaSessionMgr::defaultsGetVolume();
  3070. jresult = (jint)result;
  3071. return jresult;
  3072. }
  3073. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetInviteSessionTimers(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2) {
  3074. jboolean jresult = 0 ;
  3075. int32_t arg1 ;
  3076. char *arg2 = (char *) 0 ;
  3077. bool result;
  3078. (void)jenv;
  3079. (void)jcls;
  3080. arg1 = (int32_t)jarg1;
  3081. arg2 = 0;
  3082. if (jarg2) {
  3083. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3084. if (!arg2) return 0;
  3085. }
  3086. result = (bool)MediaSessionMgr::defaultsSetInviteSessionTimers(arg1,(char const *)arg2);
  3087. jresult = (jboolean)result;
  3088. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3089. return jresult;
  3090. }
  3091. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpMode(JNIEnv *jenv, jclass jcls, jint jarg1) {
  3092. jboolean jresult = 0 ;
  3093. tmedia_srtp_mode_t arg1 ;
  3094. bool result;
  3095. (void)jenv;
  3096. (void)jcls;
  3097. arg1 = (tmedia_srtp_mode_t)jarg1;
  3098. result = (bool)MediaSessionMgr::defaultsSetSRtpMode(arg1);
  3099. jresult = (jboolean)result;
  3100. return jresult;
  3101. }
  3102. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpMode(JNIEnv *jenv, jclass jcls) {
  3103. jint jresult = 0 ;
  3104. tmedia_srtp_mode_t result;
  3105. (void)jenv;
  3106. (void)jcls;
  3107. result = (tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode();
  3108. jresult = (jint)result;
  3109. return jresult;
  3110. }
  3111. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpType(JNIEnv *jenv, jclass jcls, jint jarg1) {
  3112. jboolean jresult = 0 ;
  3113. tmedia_srtp_type_t arg1 ;
  3114. bool result;
  3115. (void)jenv;
  3116. (void)jcls;
  3117. arg1 = (tmedia_srtp_type_t)jarg1;
  3118. result = (bool)MediaSessionMgr::defaultsSetSRtpType(arg1);
  3119. jresult = (jboolean)result;
  3120. return jresult;
  3121. }
  3122. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpType(JNIEnv *jenv, jclass jcls) {
  3123. jint jresult = 0 ;
  3124. tmedia_srtp_type_t result;
  3125. (void)jenv;
  3126. (void)jcls;
  3127. result = (tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType();
  3128. jresult = (jint)result;
  3129. return jresult;
  3130. }
  3131. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3132. jboolean jresult = 0 ;
  3133. bool arg1 ;
  3134. bool result;
  3135. (void)jenv;
  3136. (void)jcls;
  3137. arg1 = jarg1 ? true : false;
  3138. result = (bool)MediaSessionMgr::defaultsSetRtcpEnabled(arg1);
  3139. jresult = (jboolean)result;
  3140. return jresult;
  3141. }
  3142. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpEnabled(JNIEnv *jenv, jclass jcls) {
  3143. jboolean jresult = 0 ;
  3144. bool result;
  3145. (void)jenv;
  3146. (void)jcls;
  3147. result = (bool)MediaSessionMgr::defaultsGetRtcpEnabled();
  3148. jresult = (jboolean)result;
  3149. return jresult;
  3150. }
  3151. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3152. jboolean jresult = 0 ;
  3153. bool arg1 ;
  3154. bool result;
  3155. (void)jenv;
  3156. (void)jcls;
  3157. arg1 = jarg1 ? true : false;
  3158. result = (bool)MediaSessionMgr::defaultsSetRtcpMuxEnabled(arg1);
  3159. jresult = (jboolean)result;
  3160. return jresult;
  3161. }
  3162. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls) {
  3163. jboolean jresult = 0 ;
  3164. bool result;
  3165. (void)jenv;
  3166. (void)jcls;
  3167. result = (bool)MediaSessionMgr::defaultsGetRtcpMuxEnabled();
  3168. jresult = (jboolean)result;
  3169. return jresult;
  3170. }
  3171. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3172. jboolean jresult = 0 ;
  3173. bool arg1 ;
  3174. bool result;
  3175. (void)jenv;
  3176. (void)jcls;
  3177. arg1 = jarg1 ? true : false;
  3178. result = (bool)MediaSessionMgr::defaultsSetStunEnabled(arg1);
  3179. jresult = (jboolean)result;
  3180. return jresult;
  3181. }
  3182. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3183. jboolean jresult = 0 ;
  3184. bool arg1 ;
  3185. bool result;
  3186. (void)jenv;
  3187. (void)jcls;
  3188. arg1 = jarg1 ? true : false;
  3189. result = (bool)MediaSessionMgr::defaultsSetIceStunEnabled(arg1);
  3190. jresult = (jboolean)result;
  3191. return jresult;
  3192. }
  3193. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceTurnEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3194. jboolean jresult = 0 ;
  3195. bool arg1 ;
  3196. bool result;
  3197. (void)jenv;
  3198. (void)jcls;
  3199. arg1 = jarg1 ? true : false;
  3200. result = (bool)MediaSessionMgr::defaultsSetIceTurnEnabled(arg1);
  3201. jresult = (jboolean)result;
  3202. return jresult;
  3203. }
  3204. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunServer(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
  3205. jboolean jresult = 0 ;
  3206. char *arg1 = (char *) 0 ;
  3207. uint16_t arg2 ;
  3208. bool result;
  3209. (void)jenv;
  3210. (void)jcls;
  3211. arg1 = 0;
  3212. if (jarg1) {
  3213. arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
  3214. if (!arg1) return 0;
  3215. }
  3216. arg2 = (uint16_t)jarg2;
  3217. result = (bool)MediaSessionMgr::defaultsSetStunServer((char const *)arg1,arg2);
  3218. jresult = (jboolean)result;
  3219. if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  3220. return jresult;
  3221. }
  3222. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunCred(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  3223. jboolean jresult = 0 ;
  3224. char *arg1 = (char *) 0 ;
  3225. char *arg2 = (char *) 0 ;
  3226. bool result;
  3227. (void)jenv;
  3228. (void)jcls;
  3229. arg1 = 0;
  3230. if (jarg1) {
  3231. arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
  3232. if (!arg1) return 0;
  3233. }
  3234. arg2 = 0;
  3235. if (jarg2) {
  3236. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3237. if (!arg2) return 0;
  3238. }
  3239. result = (bool)MediaSessionMgr::defaultsSetStunCred((char const *)arg1,(char const *)arg2);
  3240. jresult = (jboolean)result;
  3241. if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  3242. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3243. return jresult;
  3244. }
  3245. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3246. jboolean jresult = 0 ;
  3247. bool arg1 ;
  3248. bool result;
  3249. (void)jenv;
  3250. (void)jcls;
  3251. arg1 = jarg1 ? true : false;
  3252. result = (bool)MediaSessionMgr::defaultsSetIceEnabled(arg1);
  3253. jresult = (jboolean)result;
  3254. return jresult;
  3255. }
  3256. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassEncoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3257. jboolean jresult = 0 ;
  3258. bool arg1 ;
  3259. bool result;
  3260. (void)jenv;
  3261. (void)jcls;
  3262. arg1 = jarg1 ? true : false;
  3263. result = (bool)MediaSessionMgr::defaultsSetByPassEncoding(arg1);
  3264. jresult = (jboolean)result;
  3265. return jresult;
  3266. }
  3267. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassEncoding(JNIEnv *jenv, jclass jcls) {
  3268. jboolean jresult = 0 ;
  3269. bool result;
  3270. (void)jenv;
  3271. (void)jcls;
  3272. result = (bool)MediaSessionMgr::defaultsGetByPassEncoding();
  3273. jresult = (jboolean)result;
  3274. return jresult;
  3275. }
  3276. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassDecoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3277. jboolean jresult = 0 ;
  3278. bool arg1 ;
  3279. bool result;
  3280. (void)jenv;
  3281. (void)jcls;
  3282. arg1 = jarg1 ? true : false;
  3283. result = (bool)MediaSessionMgr::defaultsSetByPassDecoding(arg1);
  3284. jresult = (jboolean)result;
  3285. return jresult;
  3286. }
  3287. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassDecoding(JNIEnv *jenv, jclass jcls) {
  3288. jboolean jresult = 0 ;
  3289. bool result;
  3290. (void)jenv;
  3291. (void)jcls;
  3292. result = (bool)MediaSessionMgr::defaultsGetByPassDecoding();
  3293. jresult = (jboolean)result;
  3294. return jresult;
  3295. }
  3296. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoJbEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3297. jboolean jresult = 0 ;
  3298. bool arg1 ;
  3299. bool result;
  3300. (void)jenv;
  3301. (void)jcls;
  3302. arg1 = jarg1 ? true : false;
  3303. result = (bool)MediaSessionMgr::defaultsSetVideoJbEnabled(arg1);
  3304. jresult = (jboolean)result;
  3305. return jresult;
  3306. }
  3307. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoJbEnabled(JNIEnv *jenv, jclass jcls) {
  3308. jboolean jresult = 0 ;
  3309. bool result;
  3310. (void)jenv;
  3311. (void)jcls;
  3312. result = (bool)MediaSessionMgr::defaultsGetVideoJbEnabled();
  3313. jresult = (jboolean)result;
  3314. return jresult;
  3315. }
  3316. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  3317. jboolean jresult = 0 ;
  3318. bool arg1 ;
  3319. bool result;
  3320. (void)jenv;
  3321. (void)jcls;
  3322. arg1 = jarg1 ? true : false;
  3323. result = (bool)MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(arg1);
  3324. jresult = (jboolean)result;
  3325. return jresult;
  3326. }
  3327. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls) {
  3328. jboolean jresult = 0 ;
  3329. bool result;
  3330. (void)jenv;
  3331. (void)jcls;
  3332. result = (bool)MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled();
  3333. jresult = (jboolean)result;
  3334. return jresult;
  3335. }
  3336. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpBuffSize(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3337. jboolean jresult = 0 ;
  3338. unsigned int arg1 ;
  3339. bool result;
  3340. (void)jenv;
  3341. (void)jcls;
  3342. arg1 = (unsigned int)jarg1;
  3343. result = (bool)MediaSessionMgr::defaultsSetRtpBuffSize(arg1);
  3344. jresult = (jboolean)result;
  3345. return jresult;
  3346. }
  3347. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtpBuffSize(JNIEnv *jenv, jclass jcls) {
  3348. jlong jresult = 0 ;
  3349. unsigned int result;
  3350. (void)jenv;
  3351. (void)jcls;
  3352. result = (unsigned int)MediaSessionMgr::defaultsGetRtpBuffSize();
  3353. jresult = (jlong)result;
  3354. return jresult;
  3355. }
  3356. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfTail(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  3357. jboolean jresult = 0 ;
  3358. unsigned int arg1 ;
  3359. unsigned int arg2 ;
  3360. bool result;
  3361. (void)jenv;
  3362. (void)jcls;
  3363. arg1 = (unsigned int)jarg1;
  3364. arg2 = (unsigned int)jarg2;
  3365. result = (bool)MediaSessionMgr::defaultsSetAvpfTail(arg1,arg2);
  3366. jresult = (jboolean)result;
  3367. return jresult;
  3368. }
  3369. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfMode(JNIEnv *jenv, jclass jcls, jint jarg1) {
  3370. jboolean jresult = 0 ;
  3371. enum tmedia_mode_e arg1 ;
  3372. bool result;
  3373. (void)jenv;
  3374. (void)jcls;
  3375. arg1 = (enum tmedia_mode_e)jarg1;
  3376. result = (bool)MediaSessionMgr::defaultsSetAvpfMode(arg1);
  3377. jresult = (jboolean)result;
  3378. return jresult;
  3379. }
  3380. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxCaptureRate(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3381. jboolean jresult = 0 ;
  3382. uint32_t arg1 ;
  3383. bool result;
  3384. (void)jenv;
  3385. (void)jcls;
  3386. arg1 = (uint32_t)jarg1;
  3387. result = (bool)MediaSessionMgr::defaultsSetOpusMaxCaptureRate(arg1);
  3388. jresult = (jboolean)result;
  3389. return jresult;
  3390. }
  3391. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxPlaybackRate(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3392. jboolean jresult = 0 ;
  3393. uint32_t arg1 ;
  3394. bool result;
  3395. (void)jenv;
  3396. (void)jcls;
  3397. arg1 = (uint32_t)jarg1;
  3398. result = (bool)MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(arg1);
  3399. jresult = (jboolean)result;
  3400. return jresult;
  3401. }
  3402. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMaxFds(JNIEnv *jenv, jclass jcls, jint jarg1) {
  3403. jboolean jresult = 0 ;
  3404. int32_t arg1 ;
  3405. bool result;
  3406. (void)jenv;
  3407. (void)jcls;
  3408. arg1 = (int32_t)jarg1;
  3409. result = (bool)MediaSessionMgr::defaultsSetMaxFds(arg1);
  3410. jresult = (jboolean)result;
  3411. return jresult;
  3412. }
  3413. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3414. MediaContent *arg1 = (MediaContent *) 0 ;
  3415. (void)jenv;
  3416. (void)jcls;
  3417. arg1 = *(MediaContent **)&jarg1;
  3418. delete arg1;
  3419. }
  3420. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3421. jstring jresult = 0 ;
  3422. MediaContent *arg1 = (MediaContent *) 0 ;
  3423. char *result = 0 ;
  3424. (void)jenv;
  3425. (void)jcls;
  3426. (void)jarg1_;
  3427. arg1 = *(MediaContent **)&jarg1;
  3428. result = (char *)(arg1)->getType();
  3429. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3430. return jresult;
  3431. }
  3432. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getDataLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3433. jlong jresult = 0 ;
  3434. MediaContent *arg1 = (MediaContent *) 0 ;
  3435. unsigned int result;
  3436. (void)jenv;
  3437. (void)jcls;
  3438. (void)jarg1_;
  3439. arg1 = *(MediaContent **)&jarg1;
  3440. result = (unsigned int)(arg1)->getDataLength();
  3441. jresult = (jlong)result;
  3442. return jresult;
  3443. }
  3444. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  3445. jlong jresult = 0 ;
  3446. MediaContent *arg1 = (MediaContent *) 0 ;
  3447. void *arg2 = (void *) 0 ;
  3448. unsigned int arg3 ;
  3449. unsigned int result;
  3450. (void)jenv;
  3451. (void)jcls;
  3452. (void)jarg1_;
  3453. arg1 = *(MediaContent **)&jarg1;
  3454. arg2 = jenv->GetDirectBufferAddress(jarg2);
  3455. arg3 = (unsigned int)jarg3;
  3456. result = (unsigned int)(arg1)->getData(arg2,arg3);
  3457. jresult = (jlong)result;
  3458. return jresult;
  3459. }
  3460. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jstring jarg3) {
  3461. jlong jresult = 0 ;
  3462. void *arg1 = (void *) 0 ;
  3463. unsigned int arg2 ;
  3464. char *arg3 = (char *) 0 ;
  3465. MediaContent *result = 0 ;
  3466. (void)jenv;
  3467. (void)jcls;
  3468. arg1 = jenv->GetDirectBufferAddress(jarg1);
  3469. arg2 = (unsigned int)jarg2;
  3470. arg3 = 0;
  3471. if (jarg3) {
  3472. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  3473. if (!arg3) return 0;
  3474. }
  3475. result = (MediaContent *)MediaContent::parse((void const *)arg1,arg2,(char const *)arg3);
  3476. *(MediaContent **)&jresult = result;
  3477. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  3478. return jresult;
  3479. }
  3480. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2) {
  3481. jlong jresult = 0 ;
  3482. void *arg1 = (void *) 0 ;
  3483. unsigned int arg2 ;
  3484. MediaContentCPIM *result = 0 ;
  3485. (void)jenv;
  3486. (void)jcls;
  3487. arg1 = jenv->GetDirectBufferAddress(jarg1);
  3488. arg2 = (unsigned int)jarg2;
  3489. result = (MediaContentCPIM *)MediaContent::parse((void const *)arg1,arg2);
  3490. *(MediaContentCPIM **)&jresult = result;
  3491. return jresult;
  3492. }
  3493. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3494. jlong jresult = 0 ;
  3495. MediaContent *arg1 = (MediaContent *) 0 ;
  3496. unsigned int result;
  3497. (void)jenv;
  3498. (void)jcls;
  3499. (void)jarg1_;
  3500. arg1 = *(MediaContent **)&jarg1;
  3501. result = (unsigned int)(arg1)->getPayloadLength();
  3502. jresult = (jlong)result;
  3503. return jresult;
  3504. }
  3505. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  3506. jlong jresult = 0 ;
  3507. MediaContent *arg1 = (MediaContent *) 0 ;
  3508. void *arg2 = (void *) 0 ;
  3509. unsigned int arg3 ;
  3510. unsigned int result;
  3511. (void)jenv;
  3512. (void)jcls;
  3513. (void)jarg1_;
  3514. arg1 = *(MediaContent **)&jarg1;
  3515. arg2 = jenv->GetDirectBufferAddress(jarg2);
  3516. arg3 = (unsigned int)jarg3;
  3517. result = (unsigned int)(arg1)->getPayload(arg2,arg3);
  3518. jresult = (jlong)result;
  3519. return jresult;
  3520. }
  3521. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContentCPIM(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3522. MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
  3523. (void)jenv;
  3524. (void)jcls;
  3525. arg1 = *(MediaContentCPIM **)&jarg1;
  3526. delete arg1;
  3527. }
  3528. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3529. jlong jresult = 0 ;
  3530. MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
  3531. unsigned int result;
  3532. (void)jenv;
  3533. (void)jcls;
  3534. (void)jarg1_;
  3535. arg1 = *(MediaContentCPIM **)&jarg1;
  3536. result = (unsigned int)(arg1)->getPayloadLength();
  3537. jresult = (jlong)result;
  3538. return jresult;
  3539. }
  3540. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  3541. jlong jresult = 0 ;
  3542. MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
  3543. void *arg2 = (void *) 0 ;
  3544. unsigned int arg3 ;
  3545. unsigned int result;
  3546. (void)jenv;
  3547. (void)jcls;
  3548. (void)jarg1_;
  3549. arg1 = *(MediaContentCPIM **)&jarg1;
  3550. arg2 = jenv->GetDirectBufferAddress(jarg2);
  3551. arg3 = (unsigned int)jarg3;
  3552. result = (unsigned int)(arg1)->getPayload(arg2,arg3);
  3553. jresult = (jlong)result;
  3554. return jresult;
  3555. }
  3556. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  3557. jstring jresult = 0 ;
  3558. MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
  3559. char *arg2 = (char *) 0 ;
  3560. char *result = 0 ;
  3561. (void)jenv;
  3562. (void)jcls;
  3563. (void)jarg1_;
  3564. arg1 = *(MediaContentCPIM **)&jarg1;
  3565. arg2 = 0;
  3566. if (jarg2) {
  3567. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3568. if (!arg2) return 0;
  3569. }
  3570. result = (char *)(arg1)->getHeaderValue((char const *)arg2);
  3571. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3572. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3573. return jresult;
  3574. }
  3575. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  3576. jlong jresult = 0 ;
  3577. char *arg1 = (char *) 0 ;
  3578. char *arg2 = (char *) 0 ;
  3579. SipUri *result = 0 ;
  3580. (void)jenv;
  3581. (void)jcls;
  3582. arg1 = 0;
  3583. if (jarg1) {
  3584. arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
  3585. if (!arg1) return 0;
  3586. }
  3587. arg2 = 0;
  3588. if (jarg2) {
  3589. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3590. if (!arg2) return 0;
  3591. }
  3592. result = (SipUri *)new SipUri((char const *)arg1,(char const *)arg2);
  3593. *(SipUri **)&jresult = result;
  3594. if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  3595. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3596. return jresult;
  3597. }
  3598. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  3599. jlong jresult = 0 ;
  3600. char *arg1 = (char *) 0 ;
  3601. SipUri *result = 0 ;
  3602. (void)jenv;
  3603. (void)jcls;
  3604. arg1 = 0;
  3605. if (jarg1) {
  3606. arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
  3607. if (!arg1) return 0;
  3608. }
  3609. result = (SipUri *)new SipUri((char const *)arg1);
  3610. *(SipUri **)&jresult = result;
  3611. if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  3612. return jresult;
  3613. }
  3614. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipUri(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3615. SipUri *arg1 = (SipUri *) 0 ;
  3616. (void)jenv;
  3617. (void)jcls;
  3618. arg1 = *(SipUri **)&jarg1;
  3619. delete arg1;
  3620. }
  3621. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  3622. jboolean jresult = 0 ;
  3623. char *arg1 = (char *) 0 ;
  3624. bool result;
  3625. (void)jenv;
  3626. (void)jcls;
  3627. arg1 = 0;
  3628. if (jarg1) {
  3629. arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
  3630. if (!arg1) return 0;
  3631. }
  3632. result = (bool)SipUri::isValid((char const *)arg1);
  3633. jresult = (jboolean)result;
  3634. if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
  3635. return jresult;
  3636. }
  3637. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3638. jboolean jresult = 0 ;
  3639. SipUri *arg1 = (SipUri *) 0 ;
  3640. bool result;
  3641. (void)jenv;
  3642. (void)jcls;
  3643. (void)jarg1_;
  3644. arg1 = *(SipUri **)&jarg1;
  3645. result = (bool)(arg1)->isValid();
  3646. jresult = (jboolean)result;
  3647. return jresult;
  3648. }
  3649. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getScheme(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3650. jstring jresult = 0 ;
  3651. SipUri *arg1 = (SipUri *) 0 ;
  3652. char *result = 0 ;
  3653. (void)jenv;
  3654. (void)jcls;
  3655. (void)jarg1_;
  3656. arg1 = *(SipUri **)&jarg1;
  3657. result = (char *)(arg1)->getScheme();
  3658. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3659. return jresult;
  3660. }
  3661. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getHost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3662. jstring jresult = 0 ;
  3663. SipUri *arg1 = (SipUri *) 0 ;
  3664. char *result = 0 ;
  3665. (void)jenv;
  3666. (void)jcls;
  3667. (void)jarg1_;
  3668. arg1 = *(SipUri **)&jarg1;
  3669. result = (char *)(arg1)->getHost();
  3670. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3671. return jresult;
  3672. }
  3673. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3674. jint jresult = 0 ;
  3675. SipUri *arg1 = (SipUri *) 0 ;
  3676. unsigned short result;
  3677. (void)jenv;
  3678. (void)jcls;
  3679. (void)jarg1_;
  3680. arg1 = *(SipUri **)&jarg1;
  3681. result = (unsigned short)(arg1)->getPort();
  3682. jresult = (jint)result;
  3683. return jresult;
  3684. }
  3685. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getUserName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3686. jstring jresult = 0 ;
  3687. SipUri *arg1 = (SipUri *) 0 ;
  3688. char *result = 0 ;
  3689. (void)jenv;
  3690. (void)jcls;
  3691. (void)jarg1_;
  3692. arg1 = *(SipUri **)&jarg1;
  3693. result = (char *)(arg1)->getUserName();
  3694. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3695. return jresult;
  3696. }
  3697. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3698. jstring jresult = 0 ;
  3699. SipUri *arg1 = (SipUri *) 0 ;
  3700. char *result = 0 ;
  3701. (void)jenv;
  3702. (void)jcls;
  3703. (void)jarg1_;
  3704. arg1 = *(SipUri **)&jarg1;
  3705. result = (char *)(arg1)->getPassword();
  3706. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3707. return jresult;
  3708. }
  3709. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3710. jstring jresult = 0 ;
  3711. SipUri *arg1 = (SipUri *) 0 ;
  3712. char *result = 0 ;
  3713. (void)jenv;
  3714. (void)jcls;
  3715. (void)jarg1_;
  3716. arg1 = *(SipUri **)&jarg1;
  3717. result = (char *)(arg1)->getDisplayName();
  3718. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3719. return jresult;
  3720. }
  3721. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  3722. jstring jresult = 0 ;
  3723. SipUri *arg1 = (SipUri *) 0 ;
  3724. char *arg2 = (char *) 0 ;
  3725. char *result = 0 ;
  3726. (void)jenv;
  3727. (void)jcls;
  3728. (void)jarg1_;
  3729. arg1 = *(SipUri **)&jarg1;
  3730. arg2 = 0;
  3731. if (jarg2) {
  3732. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3733. if (!arg2) return 0;
  3734. }
  3735. result = (char *)(arg1)->getParamValue((char const *)arg2);
  3736. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3737. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3738. return jresult;
  3739. }
  3740. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  3741. SipUri *arg1 = (SipUri *) 0 ;
  3742. char *arg2 = (char *) 0 ;
  3743. (void)jenv;
  3744. (void)jcls;
  3745. (void)jarg1_;
  3746. arg1 = *(SipUri **)&jarg1;
  3747. arg2 = 0;
  3748. if (jarg2) {
  3749. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3750. if (!arg2) return ;
  3751. }
  3752. (arg1)->setDisplayName((char const *)arg2);
  3753. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3754. }
  3755. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SdpMessage(JNIEnv *jenv, jclass jcls) {
  3756. jlong jresult = 0 ;
  3757. SdpMessage *result = 0 ;
  3758. (void)jenv;
  3759. (void)jcls;
  3760. result = (SdpMessage *)new SdpMessage();
  3761. *(SdpMessage **)&jresult = result;
  3762. return jresult;
  3763. }
  3764. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3765. SdpMessage *arg1 = (SdpMessage *) 0 ;
  3766. (void)jenv;
  3767. (void)jcls;
  3768. arg1 = *(SdpMessage **)&jarg1;
  3769. delete arg1;
  3770. }
  3771. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3, jlong jarg4) {
  3772. jstring jresult = 0 ;
  3773. SdpMessage *arg1 = (SdpMessage *) 0 ;
  3774. char *arg2 = (char *) 0 ;
  3775. char arg3 ;
  3776. unsigned int arg4 ;
  3777. char *result = 0 ;
  3778. (void)jenv;
  3779. (void)jcls;
  3780. (void)jarg1_;
  3781. arg1 = *(SdpMessage **)&jarg1;
  3782. arg2 = 0;
  3783. if (jarg2) {
  3784. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3785. if (!arg2) return 0;
  3786. }
  3787. arg3 = (char)jarg3;
  3788. arg4 = (unsigned int)jarg4;
  3789. result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3,arg4);
  3790. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3791. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3792. delete [] result;
  3793. return jresult;
  3794. }
  3795. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3) {
  3796. jstring jresult = 0 ;
  3797. SdpMessage *arg1 = (SdpMessage *) 0 ;
  3798. char *arg2 = (char *) 0 ;
  3799. char arg3 ;
  3800. char *result = 0 ;
  3801. (void)jenv;
  3802. (void)jcls;
  3803. (void)jarg1_;
  3804. arg1 = *(SdpMessage **)&jarg1;
  3805. arg2 = 0;
  3806. if (jarg2) {
  3807. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3808. if (!arg2) return 0;
  3809. }
  3810. arg3 = (char)jarg3;
  3811. result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3);
  3812. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3813. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3814. delete [] result;
  3815. return jresult;
  3816. }
  3817. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderAValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  3818. jstring jresult = 0 ;
  3819. SdpMessage *arg1 = (SdpMessage *) 0 ;
  3820. char *arg2 = (char *) 0 ;
  3821. char *arg3 = (char *) 0 ;
  3822. char *result = 0 ;
  3823. (void)jenv;
  3824. (void)jcls;
  3825. (void)jarg1_;
  3826. arg1 = *(SdpMessage **)&jarg1;
  3827. arg2 = 0;
  3828. if (jarg2) {
  3829. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3830. if (!arg2) return 0;
  3831. }
  3832. arg3 = 0;
  3833. if (jarg3) {
  3834. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  3835. if (!arg3) return 0;
  3836. }
  3837. result = (char *)(arg1)->getSdpHeaderAValue((char const *)arg2,(char const *)arg3);
  3838. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3839. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3840. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  3841. delete [] result;
  3842. return jresult;
  3843. }
  3844. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipMessage(JNIEnv *jenv, jclass jcls) {
  3845. jlong jresult = 0 ;
  3846. SipMessage *result = 0 ;
  3847. (void)jenv;
  3848. (void)jcls;
  3849. result = (SipMessage *)new SipMessage();
  3850. *(SipMessage **)&jresult = result;
  3851. return jresult;
  3852. }
  3853. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  3854. SipMessage *arg1 = (SipMessage *) 0 ;
  3855. (void)jenv;
  3856. (void)jcls;
  3857. arg1 = *(SipMessage **)&jarg1;
  3858. delete arg1;
  3859. }
  3860. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1isResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3861. jboolean jresult = 0 ;
  3862. SipMessage *arg1 = (SipMessage *) 0 ;
  3863. bool result;
  3864. (void)jenv;
  3865. (void)jcls;
  3866. (void)jarg1_;
  3867. arg1 = *(SipMessage **)&jarg1;
  3868. result = (bool)(arg1)->isResponse();
  3869. jresult = (jboolean)result;
  3870. return jresult;
  3871. }
  3872. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3873. jint jresult = 0 ;
  3874. SipMessage *arg1 = (SipMessage *) 0 ;
  3875. tsip_request_type_t result;
  3876. (void)jenv;
  3877. (void)jcls;
  3878. (void)jarg1_;
  3879. arg1 = *(SipMessage **)&jarg1;
  3880. result = (tsip_request_type_t)(arg1)->getRequestType();
  3881. jresult = (jint)result;
  3882. return jresult;
  3883. }
  3884. SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponseCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3885. jshort jresult = 0 ;
  3886. SipMessage *arg1 = (SipMessage *) 0 ;
  3887. short result;
  3888. (void)jenv;
  3889. (void)jcls;
  3890. (void)jarg1_;
  3891. arg1 = *(SipMessage **)&jarg1;
  3892. result = (short)(arg1)->getResponseCode();
  3893. jresult = (jshort)result;
  3894. return jresult;
  3895. }
  3896. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponsePhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  3897. jstring jresult = 0 ;
  3898. SipMessage *arg1 = (SipMessage *) 0 ;
  3899. char *result = 0 ;
  3900. (void)jenv;
  3901. (void)jcls;
  3902. (void)jarg1_;
  3903. arg1 = *(SipMessage **)&jarg1;
  3904. result = (char *)(arg1)->getResponsePhrase();
  3905. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3906. return jresult;
  3907. }
  3908. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
  3909. jstring jresult = 0 ;
  3910. SipMessage *arg1 = (SipMessage *) 0 ;
  3911. char *arg2 = (char *) 0 ;
  3912. unsigned int arg3 ;
  3913. char *result = 0 ;
  3914. (void)jenv;
  3915. (void)jcls;
  3916. (void)jarg1_;
  3917. arg1 = *(SipMessage **)&jarg1;
  3918. arg2 = 0;
  3919. if (jarg2) {
  3920. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3921. if (!arg2) return 0;
  3922. }
  3923. arg3 = (unsigned int)jarg3;
  3924. result = (char *)(arg1)->getSipHeaderValue((char const *)arg2,arg3);
  3925. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3926. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3927. delete [] result;
  3928. return jresult;
  3929. }
  3930. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  3931. jstring jresult = 0 ;
  3932. SipMessage *arg1 = (SipMessage *) 0 ;
  3933. char *arg2 = (char *) 0 ;
  3934. char *result = 0 ;
  3935. (void)jenv;
  3936. (void)jcls;
  3937. (void)jarg1_;
  3938. arg1 = *(SipMessage **)&jarg1;
  3939. arg2 = 0;
  3940. if (jarg2) {
  3941. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3942. if (!arg2) return 0;
  3943. }
  3944. result = (char *)(arg1)->getSipHeaderValue((char const *)arg2);
  3945. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3946. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3947. delete [] result;
  3948. return jresult;
  3949. }
  3950. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) {
  3951. jstring jresult = 0 ;
  3952. SipMessage *arg1 = (SipMessage *) 0 ;
  3953. char *arg2 = (char *) 0 ;
  3954. char *arg3 = (char *) 0 ;
  3955. unsigned int arg4 ;
  3956. char *result = 0 ;
  3957. (void)jenv;
  3958. (void)jcls;
  3959. (void)jarg1_;
  3960. arg1 = *(SipMessage **)&jarg1;
  3961. arg2 = 0;
  3962. if (jarg2) {
  3963. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3964. if (!arg2) return 0;
  3965. }
  3966. arg3 = 0;
  3967. if (jarg3) {
  3968. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  3969. if (!arg3) return 0;
  3970. }
  3971. arg4 = (unsigned int)jarg4;
  3972. result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3,arg4);
  3973. if (result) jresult = jenv->NewStringUTF((const char *)result);
  3974. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  3975. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  3976. delete [] result;
  3977. return jresult;
  3978. }
  3979. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  3980. jstring jresult = 0 ;
  3981. SipMessage *arg1 = (SipMessage *) 0 ;
  3982. char *arg2 = (char *) 0 ;
  3983. char *arg3 = (char *) 0 ;
  3984. char *result = 0 ;
  3985. (void)jenv;
  3986. (void)jcls;
  3987. (void)jarg1_;
  3988. arg1 = *(SipMessage **)&jarg1;
  3989. arg2 = 0;
  3990. if (jarg2) {
  3991. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  3992. if (!arg2) return 0;
  3993. }
  3994. arg3 = 0;
  3995. if (jarg3) {
  3996. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  3997. if (!arg3) return 0;
  3998. }
  3999. result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3);
  4000. if (result) jresult = jenv->NewStringUTF((const char *)result);
  4001. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4002. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  4003. delete [] result;
  4004. return jresult;
  4005. }
  4006. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4007. jlong jresult = 0 ;
  4008. SipMessage *arg1 = (SipMessage *) 0 ;
  4009. unsigned int result;
  4010. (void)jenv;
  4011. (void)jcls;
  4012. (void)jarg1_;
  4013. arg1 = *(SipMessage **)&jarg1;
  4014. result = (unsigned int)(arg1)->getSipContentLength();
  4015. jresult = (jlong)result;
  4016. return jresult;
  4017. }
  4018. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  4019. jlong jresult = 0 ;
  4020. SipMessage *arg1 = (SipMessage *) 0 ;
  4021. void *arg2 = (void *) 0 ;
  4022. unsigned int arg3 ;
  4023. unsigned int result;
  4024. (void)jenv;
  4025. (void)jcls;
  4026. (void)jarg1_;
  4027. arg1 = *(SipMessage **)&jarg1;
  4028. arg2 = jenv->GetDirectBufferAddress(jarg2);
  4029. arg3 = (unsigned int)jarg3;
  4030. result = (unsigned int)(arg1)->getSipContent(arg2,arg3);
  4031. jresult = (jlong)result;
  4032. return jresult;
  4033. }
  4034. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4035. jlong jresult = 0 ;
  4036. SipMessage *arg1 = (SipMessage *) 0 ;
  4037. SdpMessage *result = 0 ;
  4038. (void)jenv;
  4039. (void)jcls;
  4040. (void)jarg1_;
  4041. arg1 = *(SipMessage **)&jarg1;
  4042. result = (SdpMessage *)(arg1)->getSdpMessage();
  4043. *(SdpMessage **)&jresult = result;
  4044. return jresult;
  4045. }
  4046. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4047. SipEvent *arg1 = (SipEvent *) 0 ;
  4048. (void)jenv;
  4049. (void)jcls;
  4050. arg1 = *(SipEvent **)&jarg1;
  4051. delete arg1;
  4052. }
  4053. SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4054. jshort jresult = 0 ;
  4055. SipEvent *arg1 = (SipEvent *) 0 ;
  4056. short result;
  4057. (void)jenv;
  4058. (void)jcls;
  4059. (void)jarg1_;
  4060. arg1 = *(SipEvent **)&jarg1;
  4061. result = (short)((SipEvent const *)arg1)->getCode();
  4062. jresult = (jshort)result;
  4063. return jresult;
  4064. }
  4065. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4066. jstring jresult = 0 ;
  4067. SipEvent *arg1 = (SipEvent *) 0 ;
  4068. char *result = 0 ;
  4069. (void)jenv;
  4070. (void)jcls;
  4071. (void)jarg1_;
  4072. arg1 = *(SipEvent **)&jarg1;
  4073. result = (char *)((SipEvent const *)arg1)->getPhrase();
  4074. if (result) jresult = jenv->NewStringUTF((const char *)result);
  4075. return jresult;
  4076. }
  4077. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getBaseSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4078. jlong jresult = 0 ;
  4079. SipEvent *arg1 = (SipEvent *) 0 ;
  4080. SipSession *result = 0 ;
  4081. (void)jenv;
  4082. (void)jcls;
  4083. (void)jarg1_;
  4084. arg1 = *(SipEvent **)&jarg1;
  4085. result = (SipSession *)((SipEvent const *)arg1)->getBaseSession();
  4086. *(SipSession **)&jresult = result;
  4087. return jresult;
  4088. }
  4089. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getSipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4090. jlong jresult = 0 ;
  4091. SipEvent *arg1 = (SipEvent *) 0 ;
  4092. SipMessage *result = 0 ;
  4093. (void)jenv;
  4094. (void)jcls;
  4095. (void)jarg1_;
  4096. arg1 = *(SipEvent **)&jarg1;
  4097. result = (SipMessage *)((SipEvent const *)arg1)->getSipMessage();
  4098. *(SipMessage **)&jresult = result;
  4099. return jresult;
  4100. }
  4101. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4102. DialogEvent *arg1 = (DialogEvent *) 0 ;
  4103. (void)jenv;
  4104. (void)jcls;
  4105. arg1 = *(DialogEvent **)&jarg1;
  4106. delete arg1;
  4107. }
  4108. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1StackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4109. StackEvent *arg1 = (StackEvent *) 0 ;
  4110. (void)jenv;
  4111. (void)jcls;
  4112. arg1 = *(StackEvent **)&jarg1;
  4113. delete arg1;
  4114. }
  4115. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4116. InviteEvent *arg1 = (InviteEvent *) 0 ;
  4117. (void)jenv;
  4118. (void)jcls;
  4119. arg1 = *(InviteEvent **)&jarg1;
  4120. delete arg1;
  4121. }
  4122. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4123. jint jresult = 0 ;
  4124. InviteEvent *arg1 = (InviteEvent *) 0 ;
  4125. tsip_invite_event_type_t result;
  4126. (void)jenv;
  4127. (void)jcls;
  4128. (void)jarg1_;
  4129. arg1 = *(InviteEvent **)&jarg1;
  4130. result = (tsip_invite_event_type_t)((InviteEvent const *)arg1)->getType();
  4131. jresult = (jint)result;
  4132. return jresult;
  4133. }
  4134. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4135. jint jresult = 0 ;
  4136. InviteEvent *arg1 = (InviteEvent *) 0 ;
  4137. twrap_media_type_t result;
  4138. (void)jenv;
  4139. (void)jcls;
  4140. (void)jarg1_;
  4141. arg1 = *(InviteEvent **)&jarg1;
  4142. result = (twrap_media_type_t)((InviteEvent const *)arg1)->getMediaType();
  4143. jresult = (jint)result;
  4144. return jresult;
  4145. }
  4146. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4147. jlong jresult = 0 ;
  4148. InviteEvent *arg1 = (InviteEvent *) 0 ;
  4149. InviteSession *result = 0 ;
  4150. (void)jenv;
  4151. (void)jcls;
  4152. (void)jarg1_;
  4153. arg1 = *(InviteEvent **)&jarg1;
  4154. result = (InviteSession *)((InviteEvent const *)arg1)->getSession();
  4155. *(InviteSession **)&jresult = result;
  4156. return jresult;
  4157. }
  4158. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeCallSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4159. jlong jresult = 0 ;
  4160. InviteEvent *arg1 = (InviteEvent *) 0 ;
  4161. CallSession *result = 0 ;
  4162. (void)jenv;
  4163. (void)jcls;
  4164. (void)jarg1_;
  4165. arg1 = *(InviteEvent **)&jarg1;
  4166. result = (CallSession *)((InviteEvent const *)arg1)->takeCallSessionOwnership();
  4167. *(CallSession **)&jresult = result;
  4168. return jresult;
  4169. }
  4170. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeMsrpSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4171. jlong jresult = 0 ;
  4172. InviteEvent *arg1 = (InviteEvent *) 0 ;
  4173. MsrpSession *result = 0 ;
  4174. (void)jenv;
  4175. (void)jcls;
  4176. (void)jarg1_;
  4177. arg1 = *(InviteEvent **)&jarg1;
  4178. result = (MsrpSession *)((InviteEvent const *)arg1)->takeMsrpSessionOwnership();
  4179. *(MsrpSession **)&jresult = result;
  4180. return jresult;
  4181. }
  4182. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4183. MessagingEvent *arg1 = (MessagingEvent *) 0 ;
  4184. (void)jenv;
  4185. (void)jcls;
  4186. arg1 = *(MessagingEvent **)&jarg1;
  4187. delete arg1;
  4188. }
  4189. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4190. jint jresult = 0 ;
  4191. MessagingEvent *arg1 = (MessagingEvent *) 0 ;
  4192. tsip_message_event_type_t result;
  4193. (void)jenv;
  4194. (void)jcls;
  4195. (void)jarg1_;
  4196. arg1 = *(MessagingEvent **)&jarg1;
  4197. result = (tsip_message_event_type_t)((MessagingEvent const *)arg1)->getType();
  4198. jresult = (jint)result;
  4199. return jresult;
  4200. }
  4201. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4202. jlong jresult = 0 ;
  4203. MessagingEvent *arg1 = (MessagingEvent *) 0 ;
  4204. MessagingSession *result = 0 ;
  4205. (void)jenv;
  4206. (void)jcls;
  4207. (void)jarg1_;
  4208. arg1 = *(MessagingEvent **)&jarg1;
  4209. result = (MessagingSession *)((MessagingEvent const *)arg1)->getSession();
  4210. *(MessagingSession **)&jresult = result;
  4211. return jresult;
  4212. }
  4213. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4214. jlong jresult = 0 ;
  4215. MessagingEvent *arg1 = (MessagingEvent *) 0 ;
  4216. MessagingSession *result = 0 ;
  4217. (void)jenv;
  4218. (void)jcls;
  4219. (void)jarg1_;
  4220. arg1 = *(MessagingEvent **)&jarg1;
  4221. result = (MessagingSession *)((MessagingEvent const *)arg1)->takeSessionOwnership();
  4222. *(MessagingSession **)&jresult = result;
  4223. return jresult;
  4224. }
  4225. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4226. InfoEvent *arg1 = (InfoEvent *) 0 ;
  4227. (void)jenv;
  4228. (void)jcls;
  4229. arg1 = *(InfoEvent **)&jarg1;
  4230. delete arg1;
  4231. }
  4232. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4233. jint jresult = 0 ;
  4234. InfoEvent *arg1 = (InfoEvent *) 0 ;
  4235. tsip_info_event_type_t result;
  4236. (void)jenv;
  4237. (void)jcls;
  4238. (void)jarg1_;
  4239. arg1 = *(InfoEvent **)&jarg1;
  4240. result = (tsip_info_event_type_t)((InfoEvent const *)arg1)->getType();
  4241. jresult = (jint)result;
  4242. return jresult;
  4243. }
  4244. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4245. jlong jresult = 0 ;
  4246. InfoEvent *arg1 = (InfoEvent *) 0 ;
  4247. InfoSession *result = 0 ;
  4248. (void)jenv;
  4249. (void)jcls;
  4250. (void)jarg1_;
  4251. arg1 = *(InfoEvent **)&jarg1;
  4252. result = (InfoSession *)((InfoEvent const *)arg1)->getSession();
  4253. *(InfoSession **)&jresult = result;
  4254. return jresult;
  4255. }
  4256. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4257. jlong jresult = 0 ;
  4258. InfoEvent *arg1 = (InfoEvent *) 0 ;
  4259. InfoSession *result = 0 ;
  4260. (void)jenv;
  4261. (void)jcls;
  4262. (void)jarg1_;
  4263. arg1 = *(InfoEvent **)&jarg1;
  4264. result = (InfoSession *)((InfoEvent const *)arg1)->takeSessionOwnership();
  4265. *(InfoSession **)&jresult = result;
  4266. return jresult;
  4267. }
  4268. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4269. OptionsEvent *arg1 = (OptionsEvent *) 0 ;
  4270. (void)jenv;
  4271. (void)jcls;
  4272. arg1 = *(OptionsEvent **)&jarg1;
  4273. delete arg1;
  4274. }
  4275. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4276. jint jresult = 0 ;
  4277. OptionsEvent *arg1 = (OptionsEvent *) 0 ;
  4278. tsip_options_event_type_t result;
  4279. (void)jenv;
  4280. (void)jcls;
  4281. (void)jarg1_;
  4282. arg1 = *(OptionsEvent **)&jarg1;
  4283. result = (tsip_options_event_type_t)((OptionsEvent const *)arg1)->getType();
  4284. jresult = (jint)result;
  4285. return jresult;
  4286. }
  4287. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4288. jlong jresult = 0 ;
  4289. OptionsEvent *arg1 = (OptionsEvent *) 0 ;
  4290. OptionsSession *result = 0 ;
  4291. (void)jenv;
  4292. (void)jcls;
  4293. (void)jarg1_;
  4294. arg1 = *(OptionsEvent **)&jarg1;
  4295. result = (OptionsSession *)((OptionsEvent const *)arg1)->getSession();
  4296. *(OptionsSession **)&jresult = result;
  4297. return jresult;
  4298. }
  4299. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4300. jlong jresult = 0 ;
  4301. OptionsEvent *arg1 = (OptionsEvent *) 0 ;
  4302. OptionsSession *result = 0 ;
  4303. (void)jenv;
  4304. (void)jcls;
  4305. (void)jarg1_;
  4306. arg1 = *(OptionsEvent **)&jarg1;
  4307. result = (OptionsSession *)((OptionsEvent const *)arg1)->takeSessionOwnership();
  4308. *(OptionsSession **)&jresult = result;
  4309. return jresult;
  4310. }
  4311. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4312. PublicationEvent *arg1 = (PublicationEvent *) 0 ;
  4313. (void)jenv;
  4314. (void)jcls;
  4315. arg1 = *(PublicationEvent **)&jarg1;
  4316. delete arg1;
  4317. }
  4318. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4319. jint jresult = 0 ;
  4320. PublicationEvent *arg1 = (PublicationEvent *) 0 ;
  4321. tsip_publish_event_type_t result;
  4322. (void)jenv;
  4323. (void)jcls;
  4324. (void)jarg1_;
  4325. arg1 = *(PublicationEvent **)&jarg1;
  4326. result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType();
  4327. jresult = (jint)result;
  4328. return jresult;
  4329. }
  4330. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4331. jlong jresult = 0 ;
  4332. PublicationEvent *arg1 = (PublicationEvent *) 0 ;
  4333. PublicationSession *result = 0 ;
  4334. (void)jenv;
  4335. (void)jcls;
  4336. (void)jarg1_;
  4337. arg1 = *(PublicationEvent **)&jarg1;
  4338. result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession();
  4339. *(PublicationSession **)&jresult = result;
  4340. return jresult;
  4341. }
  4342. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4343. jlong jresult = 0 ;
  4344. PublicationEvent *arg1 = (PublicationEvent *) 0 ;
  4345. PublicationSession *result = 0 ;
  4346. (void)jenv;
  4347. (void)jcls;
  4348. (void)jarg1_;
  4349. arg1 = *(PublicationEvent **)&jarg1;
  4350. result = (PublicationSession *)((PublicationEvent const *)arg1)->takeSessionOwnership();
  4351. *(PublicationSession **)&jresult = result;
  4352. return jresult;
  4353. }
  4354. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4355. RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
  4356. (void)jenv;
  4357. (void)jcls;
  4358. arg1 = *(RegistrationEvent **)&jarg1;
  4359. delete arg1;
  4360. }
  4361. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4362. jint jresult = 0 ;
  4363. RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
  4364. tsip_register_event_type_t result;
  4365. (void)jenv;
  4366. (void)jcls;
  4367. (void)jarg1_;
  4368. arg1 = *(RegistrationEvent **)&jarg1;
  4369. result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType();
  4370. jresult = (jint)result;
  4371. return jresult;
  4372. }
  4373. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4374. jlong jresult = 0 ;
  4375. RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
  4376. RegistrationSession *result = 0 ;
  4377. (void)jenv;
  4378. (void)jcls;
  4379. (void)jarg1_;
  4380. arg1 = *(RegistrationEvent **)&jarg1;
  4381. result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession();
  4382. *(RegistrationSession **)&jresult = result;
  4383. return jresult;
  4384. }
  4385. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4386. jlong jresult = 0 ;
  4387. RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
  4388. RegistrationSession *result = 0 ;
  4389. (void)jenv;
  4390. (void)jcls;
  4391. (void)jarg1_;
  4392. arg1 = *(RegistrationEvent **)&jarg1;
  4393. result = (RegistrationSession *)((RegistrationEvent const *)arg1)->takeSessionOwnership();
  4394. *(RegistrationSession **)&jresult = result;
  4395. return jresult;
  4396. }
  4397. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4398. SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
  4399. (void)jenv;
  4400. (void)jcls;
  4401. arg1 = *(SubscriptionEvent **)&jarg1;
  4402. delete arg1;
  4403. }
  4404. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4405. jint jresult = 0 ;
  4406. SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
  4407. tsip_subscribe_event_type_t result;
  4408. (void)jenv;
  4409. (void)jcls;
  4410. (void)jarg1_;
  4411. arg1 = *(SubscriptionEvent **)&jarg1;
  4412. result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType();
  4413. jresult = (jint)result;
  4414. return jresult;
  4415. }
  4416. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4417. jlong jresult = 0 ;
  4418. SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
  4419. SubscriptionSession *result = 0 ;
  4420. (void)jenv;
  4421. (void)jcls;
  4422. (void)jarg1_;
  4423. arg1 = *(SubscriptionEvent **)&jarg1;
  4424. result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession();
  4425. *(SubscriptionSession **)&jresult = result;
  4426. return jresult;
  4427. }
  4428. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4429. jlong jresult = 0 ;
  4430. SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
  4431. SubscriptionSession *result = 0 ;
  4432. (void)jenv;
  4433. (void)jcls;
  4434. (void)jarg1_;
  4435. arg1 = *(SubscriptionEvent **)&jarg1;
  4436. result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->takeSessionOwnership();
  4437. *(SubscriptionSession **)&jresult = result;
  4438. return jresult;
  4439. }
  4440. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140CallbackData(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4441. T140CallbackData *arg1 = (T140CallbackData *) 0 ;
  4442. (void)jenv;
  4443. (void)jcls;
  4444. arg1 = *(T140CallbackData **)&jarg1;
  4445. delete arg1;
  4446. }
  4447. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4448. jint jresult = 0 ;
  4449. T140CallbackData *arg1 = (T140CallbackData *) 0 ;
  4450. enum tmedia_t140_data_type_e result;
  4451. (void)jenv;
  4452. (void)jcls;
  4453. (void)jarg1_;
  4454. arg1 = *(T140CallbackData **)&jarg1;
  4455. result = (enum tmedia_t140_data_type_e)((T140CallbackData const *)arg1)->getType();
  4456. jresult = (jint)result;
  4457. return jresult;
  4458. }
  4459. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4460. jlong jresult = 0 ;
  4461. T140CallbackData *arg1 = (T140CallbackData *) 0 ;
  4462. unsigned int result;
  4463. (void)jenv;
  4464. (void)jcls;
  4465. (void)jarg1_;
  4466. arg1 = *(T140CallbackData **)&jarg1;
  4467. result = (unsigned int)((T140CallbackData const *)arg1)->getSize();
  4468. jresult = (jlong)result;
  4469. return jresult;
  4470. }
  4471. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  4472. jlong jresult = 0 ;
  4473. T140CallbackData *arg1 = (T140CallbackData *) 0 ;
  4474. void *arg2 = (void *) 0 ;
  4475. unsigned int arg3 ;
  4476. unsigned int result;
  4477. (void)jenv;
  4478. (void)jcls;
  4479. (void)jarg1_;
  4480. arg1 = *(T140CallbackData **)&jarg1;
  4481. arg2 = jenv->GetDirectBufferAddress(jarg2);
  4482. arg3 = (unsigned int)jarg3;
  4483. result = (unsigned int)((T140CallbackData const *)arg1)->getData(arg2,arg3);
  4484. jresult = (jlong)result;
  4485. return jresult;
  4486. }
  4487. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1T140Callback(JNIEnv *jenv, jclass jcls) {
  4488. jlong jresult = 0 ;
  4489. T140Callback *result = 0 ;
  4490. (void)jenv;
  4491. (void)jcls;
  4492. result = (T140Callback *)new SwigDirector_T140Callback(jenv);
  4493. *(T140Callback **)&jresult = result;
  4494. return jresult;
  4495. }
  4496. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4497. T140Callback *arg1 = (T140Callback *) 0 ;
  4498. (void)jenv;
  4499. (void)jcls;
  4500. arg1 = *(T140Callback **)&jarg1;
  4501. delete arg1;
  4502. }
  4503. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondata(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  4504. jint jresult = 0 ;
  4505. T140Callback *arg1 = (T140Callback *) 0 ;
  4506. T140CallbackData *arg2 = (T140CallbackData *) 0 ;
  4507. int result;
  4508. (void)jenv;
  4509. (void)jcls;
  4510. (void)jarg1_;
  4511. (void)jarg2_;
  4512. arg1 = *(T140Callback **)&jarg1;
  4513. arg2 = *(T140CallbackData **)&jarg2;
  4514. result = (int)(arg1)->ondata((T140CallbackData const *)arg2);
  4515. jresult = (jint)result;
  4516. return jresult;
  4517. }
  4518. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondataSwigExplicitT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  4519. jint jresult = 0 ;
  4520. T140Callback *arg1 = (T140Callback *) 0 ;
  4521. T140CallbackData *arg2 = (T140CallbackData *) 0 ;
  4522. int result;
  4523. (void)jenv;
  4524. (void)jcls;
  4525. (void)jarg1_;
  4526. (void)jarg2_;
  4527. arg1 = *(T140Callback **)&jarg1;
  4528. arg2 = *(T140CallbackData **)&jarg2;
  4529. result = (int)(arg1)->T140Callback::ondata((T140CallbackData const *)arg2);
  4530. jresult = (jint)result;
  4531. return jresult;
  4532. }
  4533. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  4534. T140Callback *obj = *((T140Callback **)&objarg);
  4535. (void)jcls;
  4536. SwigDirector_T140Callback *director = static_cast<SwigDirector_T140Callback *>(obj);
  4537. if (director) {
  4538. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  4539. }
  4540. }
  4541. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  4542. T140Callback *obj = *((T140Callback **)&objarg);
  4543. SwigDirector_T140Callback *director = static_cast<SwigDirector_T140Callback *>(obj);
  4544. (void)jcls;
  4545. if (director) {
  4546. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  4547. }
  4548. }
  4549. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4550. jlong jresult = 0 ;
  4551. SipStack *arg1 = (SipStack *) 0 ;
  4552. SipSession *result = 0 ;
  4553. (void)jenv;
  4554. (void)jcls;
  4555. (void)jarg1_;
  4556. arg1 = *(SipStack **)&jarg1;
  4557. result = (SipSession *)new SipSession(arg1);
  4558. *(SipSession **)&jresult = result;
  4559. return jresult;
  4560. }
  4561. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4562. SipSession *arg1 = (SipSession *) 0 ;
  4563. (void)jenv;
  4564. (void)jcls;
  4565. arg1 = *(SipSession **)&jarg1;
  4566. delete arg1;
  4567. }
  4568. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1haveOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4569. jboolean jresult = 0 ;
  4570. SipSession *arg1 = (SipSession *) 0 ;
  4571. bool result;
  4572. (void)jenv;
  4573. (void)jcls;
  4574. (void)jarg1_;
  4575. arg1 = *(SipSession **)&jarg1;
  4576. result = (bool)(arg1)->haveOwnership();
  4577. jresult = (jboolean)result;
  4578. return jresult;
  4579. }
  4580. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  4581. jboolean jresult = 0 ;
  4582. SipSession *arg1 = (SipSession *) 0 ;
  4583. char *arg2 = (char *) 0 ;
  4584. char *arg3 = (char *) 0 ;
  4585. bool result;
  4586. (void)jenv;
  4587. (void)jcls;
  4588. (void)jarg1_;
  4589. arg1 = *(SipSession **)&jarg1;
  4590. arg2 = 0;
  4591. if (jarg2) {
  4592. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4593. if (!arg2) return 0;
  4594. }
  4595. arg3 = 0;
  4596. if (jarg3) {
  4597. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  4598. if (!arg3) return 0;
  4599. }
  4600. result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
  4601. jresult = (jboolean)result;
  4602. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4603. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  4604. return jresult;
  4605. }
  4606. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  4607. jboolean jresult = 0 ;
  4608. SipSession *arg1 = (SipSession *) 0 ;
  4609. char *arg2 = (char *) 0 ;
  4610. bool result;
  4611. (void)jenv;
  4612. (void)jcls;
  4613. (void)jarg1_;
  4614. arg1 = *(SipSession **)&jarg1;
  4615. arg2 = 0;
  4616. if (jarg2) {
  4617. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4618. if (!arg2) return 0;
  4619. }
  4620. result = (bool)(arg1)->removeHeader((char const *)arg2);
  4621. jresult = (jboolean)result;
  4622. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4623. return jresult;
  4624. }
  4625. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  4626. jboolean jresult = 0 ;
  4627. SipSession *arg1 = (SipSession *) 0 ;
  4628. char *arg2 = (char *) 0 ;
  4629. char *arg3 = (char *) 0 ;
  4630. bool result;
  4631. (void)jenv;
  4632. (void)jcls;
  4633. (void)jarg1_;
  4634. arg1 = *(SipSession **)&jarg1;
  4635. arg2 = 0;
  4636. if (jarg2) {
  4637. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4638. if (!arg2) return 0;
  4639. }
  4640. arg3 = 0;
  4641. if (jarg3) {
  4642. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  4643. if (!arg3) return 0;
  4644. }
  4645. result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3);
  4646. jresult = (jboolean)result;
  4647. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4648. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  4649. return jresult;
  4650. }
  4651. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  4652. jboolean jresult = 0 ;
  4653. SipSession *arg1 = (SipSession *) 0 ;
  4654. char *arg2 = (char *) 0 ;
  4655. bool result;
  4656. (void)jenv;
  4657. (void)jcls;
  4658. (void)jarg1_;
  4659. arg1 = *(SipSession **)&jarg1;
  4660. arg2 = 0;
  4661. if (jarg2) {
  4662. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4663. if (!arg2) return 0;
  4664. }
  4665. result = (bool)(arg1)->addCaps((char const *)arg2);
  4666. jresult = (jboolean)result;
  4667. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4668. return jresult;
  4669. }
  4670. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeCaps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  4671. jboolean jresult = 0 ;
  4672. SipSession *arg1 = (SipSession *) 0 ;
  4673. char *arg2 = (char *) 0 ;
  4674. bool result;
  4675. (void)jenv;
  4676. (void)jcls;
  4677. (void)jarg1_;
  4678. arg1 = *(SipSession **)&jarg1;
  4679. arg2 = 0;
  4680. if (jarg2) {
  4681. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4682. if (!arg2) return 0;
  4683. }
  4684. result = (bool)(arg1)->removeCaps((char const *)arg2);
  4685. jresult = (jboolean)result;
  4686. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4687. return jresult;
  4688. }
  4689. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setExpires(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  4690. jboolean jresult = 0 ;
  4691. SipSession *arg1 = (SipSession *) 0 ;
  4692. unsigned int arg2 ;
  4693. bool result;
  4694. (void)jenv;
  4695. (void)jcls;
  4696. (void)jarg1_;
  4697. arg1 = *(SipSession **)&jarg1;
  4698. arg2 = (unsigned int)jarg2;
  4699. result = (bool)(arg1)->setExpires(arg2);
  4700. jresult = (jboolean)result;
  4701. return jresult;
  4702. }
  4703. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  4704. jboolean jresult = 0 ;
  4705. SipSession *arg1 = (SipSession *) 0 ;
  4706. char *arg2 = (char *) 0 ;
  4707. bool result;
  4708. (void)jenv;
  4709. (void)jcls;
  4710. (void)jarg1_;
  4711. arg1 = *(SipSession **)&jarg1;
  4712. arg2 = 0;
  4713. if (jarg2) {
  4714. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4715. if (!arg2) return 0;
  4716. }
  4717. result = (bool)(arg1)->setFromUri((char const *)arg2);
  4718. jresult = (jboolean)result;
  4719. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4720. return jresult;
  4721. }
  4722. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  4723. jboolean jresult = 0 ;
  4724. SipSession *arg1 = (SipSession *) 0 ;
  4725. SipUri *arg2 = (SipUri *) 0 ;
  4726. bool result;
  4727. (void)jenv;
  4728. (void)jcls;
  4729. (void)jarg1_;
  4730. (void)jarg2_;
  4731. arg1 = *(SipSession **)&jarg1;
  4732. arg2 = *(SipUri **)&jarg2;
  4733. result = (bool)(arg1)->setFromUri((SipUri const *)arg2);
  4734. jresult = (jboolean)result;
  4735. return jresult;
  4736. }
  4737. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  4738. jboolean jresult = 0 ;
  4739. SipSession *arg1 = (SipSession *) 0 ;
  4740. char *arg2 = (char *) 0 ;
  4741. bool result;
  4742. (void)jenv;
  4743. (void)jcls;
  4744. (void)jarg1_;
  4745. arg1 = *(SipSession **)&jarg1;
  4746. arg2 = 0;
  4747. if (jarg2) {
  4748. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4749. if (!arg2) return 0;
  4750. }
  4751. result = (bool)(arg1)->setToUri((char const *)arg2);
  4752. jresult = (jboolean)result;
  4753. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4754. return jresult;
  4755. }
  4756. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  4757. jboolean jresult = 0 ;
  4758. SipSession *arg1 = (SipSession *) 0 ;
  4759. SipUri *arg2 = (SipUri *) 0 ;
  4760. bool result;
  4761. (void)jenv;
  4762. (void)jcls;
  4763. (void)jarg1_;
  4764. (void)jarg2_;
  4765. arg1 = *(SipSession **)&jarg1;
  4766. arg2 = *(SipUri **)&jarg2;
  4767. result = (bool)(arg1)->setToUri((SipUri const *)arg2);
  4768. jresult = (jboolean)result;
  4769. return jresult;
  4770. }
  4771. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setSilentHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  4772. jboolean jresult = 0 ;
  4773. SipSession *arg1 = (SipSession *) 0 ;
  4774. bool arg2 ;
  4775. bool result;
  4776. (void)jenv;
  4777. (void)jcls;
  4778. (void)jarg1_;
  4779. arg1 = *(SipSession **)&jarg1;
  4780. arg2 = jarg2 ? true : false;
  4781. result = (bool)(arg1)->setSilentHangup(arg2);
  4782. jresult = (jboolean)result;
  4783. return jresult;
  4784. }
  4785. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  4786. jboolean jresult = 0 ;
  4787. SipSession *arg1 = (SipSession *) 0 ;
  4788. char *arg2 = (char *) 0 ;
  4789. bool result;
  4790. (void)jenv;
  4791. (void)jcls;
  4792. (void)jarg1_;
  4793. arg1 = *(SipSession **)&jarg1;
  4794. arg2 = 0;
  4795. if (jarg2) {
  4796. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  4797. if (!arg2) return 0;
  4798. }
  4799. result = (bool)(arg1)->addSigCompCompartment((char const *)arg2);
  4800. jresult = (jboolean)result;
  4801. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  4802. return jresult;
  4803. }
  4804. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4805. jboolean jresult = 0 ;
  4806. SipSession *arg1 = (SipSession *) 0 ;
  4807. bool result;
  4808. (void)jenv;
  4809. (void)jcls;
  4810. (void)jarg1_;
  4811. arg1 = *(SipSession **)&jarg1;
  4812. result = (bool)(arg1)->removeSigCompCompartment();
  4813. jresult = (jboolean)result;
  4814. return jresult;
  4815. }
  4816. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4817. jlong jresult = 0 ;
  4818. SipSession *arg1 = (SipSession *) 0 ;
  4819. unsigned int result;
  4820. (void)jenv;
  4821. (void)jcls;
  4822. (void)jarg1_;
  4823. arg1 = *(SipSession **)&jarg1;
  4824. result = (unsigned int)((SipSession const *)arg1)->getId();
  4825. jresult = (jlong)result;
  4826. return jresult;
  4827. }
  4828. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4829. jlong jresult = 0 ;
  4830. SipStack *arg1 = (SipStack *) 0 ;
  4831. InviteSession *result = 0 ;
  4832. (void)jenv;
  4833. (void)jcls;
  4834. (void)jarg1_;
  4835. arg1 = *(SipStack **)&jarg1;
  4836. result = (InviteSession *)new InviteSession(arg1);
  4837. *(InviteSession **)&jresult = result;
  4838. return jresult;
  4839. }
  4840. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4841. InviteSession *arg1 = (InviteSession *) 0 ;
  4842. (void)jenv;
  4843. (void)jcls;
  4844. arg1 = *(InviteSession **)&jarg1;
  4845. delete arg1;
  4846. }
  4847. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  4848. jboolean jresult = 0 ;
  4849. InviteSession *arg1 = (InviteSession *) 0 ;
  4850. ActionConfig *arg2 = (ActionConfig *) 0 ;
  4851. bool result;
  4852. (void)jenv;
  4853. (void)jcls;
  4854. (void)jarg1_;
  4855. (void)jarg2_;
  4856. arg1 = *(InviteSession **)&jarg1;
  4857. arg2 = *(ActionConfig **)&jarg2;
  4858. result = (bool)(arg1)->accept(arg2);
  4859. jresult = (jboolean)result;
  4860. return jresult;
  4861. }
  4862. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4863. jboolean jresult = 0 ;
  4864. InviteSession *arg1 = (InviteSession *) 0 ;
  4865. bool result;
  4866. (void)jenv;
  4867. (void)jcls;
  4868. (void)jarg1_;
  4869. arg1 = *(InviteSession **)&jarg1;
  4870. result = (bool)(arg1)->accept();
  4871. jresult = (jboolean)result;
  4872. return jresult;
  4873. }
  4874. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  4875. jboolean jresult = 0 ;
  4876. InviteSession *arg1 = (InviteSession *) 0 ;
  4877. ActionConfig *arg2 = (ActionConfig *) 0 ;
  4878. bool result;
  4879. (void)jenv;
  4880. (void)jcls;
  4881. (void)jarg1_;
  4882. (void)jarg2_;
  4883. arg1 = *(InviteSession **)&jarg1;
  4884. arg2 = *(ActionConfig **)&jarg2;
  4885. result = (bool)(arg1)->hangup(arg2);
  4886. jresult = (jboolean)result;
  4887. return jresult;
  4888. }
  4889. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4890. jboolean jresult = 0 ;
  4891. InviteSession *arg1 = (InviteSession *) 0 ;
  4892. bool result;
  4893. (void)jenv;
  4894. (void)jcls;
  4895. (void)jarg1_;
  4896. arg1 = *(InviteSession **)&jarg1;
  4897. result = (bool)(arg1)->hangup();
  4898. jresult = (jboolean)result;
  4899. return jresult;
  4900. }
  4901. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  4902. jboolean jresult = 0 ;
  4903. InviteSession *arg1 = (InviteSession *) 0 ;
  4904. ActionConfig *arg2 = (ActionConfig *) 0 ;
  4905. bool result;
  4906. (void)jenv;
  4907. (void)jcls;
  4908. (void)jarg1_;
  4909. (void)jarg2_;
  4910. arg1 = *(InviteSession **)&jarg1;
  4911. arg2 = *(ActionConfig **)&jarg2;
  4912. result = (bool)(arg1)->reject(arg2);
  4913. jresult = (jboolean)result;
  4914. return jresult;
  4915. }
  4916. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4917. jboolean jresult = 0 ;
  4918. InviteSession *arg1 = (InviteSession *) 0 ;
  4919. bool result;
  4920. (void)jenv;
  4921. (void)jcls;
  4922. (void)jarg1_;
  4923. arg1 = *(InviteSession **)&jarg1;
  4924. result = (bool)(arg1)->reject();
  4925. jresult = (jboolean)result;
  4926. return jresult;
  4927. }
  4928. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
  4929. jboolean jresult = 0 ;
  4930. InviteSession *arg1 = (InviteSession *) 0 ;
  4931. void *arg2 = (void *) 0 ;
  4932. unsigned int arg3 ;
  4933. ActionConfig *arg4 = (ActionConfig *) 0 ;
  4934. bool result;
  4935. (void)jenv;
  4936. (void)jcls;
  4937. (void)jarg1_;
  4938. (void)jarg4_;
  4939. arg1 = *(InviteSession **)&jarg1;
  4940. arg2 = jenv->GetDirectBufferAddress(jarg2);
  4941. arg3 = (unsigned int)jarg3;
  4942. arg4 = *(ActionConfig **)&jarg4;
  4943. result = (bool)(arg1)->sendInfo((void const *)arg2,arg3,arg4);
  4944. jresult = (jboolean)result;
  4945. return jresult;
  4946. }
  4947. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  4948. jboolean jresult = 0 ;
  4949. InviteSession *arg1 = (InviteSession *) 0 ;
  4950. void *arg2 = (void *) 0 ;
  4951. unsigned int arg3 ;
  4952. bool result;
  4953. (void)jenv;
  4954. (void)jcls;
  4955. (void)jarg1_;
  4956. arg1 = *(InviteSession **)&jarg1;
  4957. arg2 = jenv->GetDirectBufferAddress(jarg2);
  4958. arg3 = (unsigned int)jarg3;
  4959. result = (bool)(arg1)->sendInfo((void const *)arg2,arg3);
  4960. jresult = (jboolean)result;
  4961. return jresult;
  4962. }
  4963. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1getMediaMgr(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4964. jlong jresult = 0 ;
  4965. InviteSession *arg1 = (InviteSession *) 0 ;
  4966. MediaSessionMgr *result = 0 ;
  4967. (void)jenv;
  4968. (void)jcls;
  4969. (void)jarg1_;
  4970. arg1 = *(InviteSession **)&jarg1;
  4971. result = (MediaSessionMgr *)(arg1)->getMediaMgr();
  4972. *(MediaSessionMgr **)&jresult = result;
  4973. return jresult;
  4974. }
  4975. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  4976. jlong jresult = 0 ;
  4977. SipStack *arg1 = (SipStack *) 0 ;
  4978. CallSession *result = 0 ;
  4979. (void)jenv;
  4980. (void)jcls;
  4981. (void)jarg1_;
  4982. arg1 = *(SipStack **)&jarg1;
  4983. result = (CallSession *)new CallSession(arg1);
  4984. *(CallSession **)&jresult = result;
  4985. return jresult;
  4986. }
  4987. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  4988. CallSession *arg1 = (CallSession *) 0 ;
  4989. (void)jenv;
  4990. (void)jcls;
  4991. arg1 = *(CallSession **)&jarg1;
  4992. delete arg1;
  4993. }
  4994. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
  4995. jboolean jresult = 0 ;
  4996. CallSession *arg1 = (CallSession *) 0 ;
  4997. char *arg2 = (char *) 0 ;
  4998. ActionConfig *arg3 = (ActionConfig *) 0 ;
  4999. bool result;
  5000. (void)jenv;
  5001. (void)jcls;
  5002. (void)jarg1_;
  5003. (void)jarg3_;
  5004. arg1 = *(CallSession **)&jarg1;
  5005. arg2 = 0;
  5006. if (jarg2) {
  5007. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5008. if (!arg2) return 0;
  5009. }
  5010. arg3 = *(ActionConfig **)&jarg3;
  5011. result = (bool)(arg1)->callAudio((char const *)arg2,arg3);
  5012. jresult = (jboolean)result;
  5013. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5014. return jresult;
  5015. }
  5016. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  5017. jboolean jresult = 0 ;
  5018. CallSession *arg1 = (CallSession *) 0 ;
  5019. char *arg2 = (char *) 0 ;
  5020. bool result;
  5021. (void)jenv;
  5022. (void)jcls;
  5023. (void)jarg1_;
  5024. arg1 = *(CallSession **)&jarg1;
  5025. arg2 = 0;
  5026. if (jarg2) {
  5027. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5028. if (!arg2) return 0;
  5029. }
  5030. result = (bool)(arg1)->callAudio((char const *)arg2);
  5031. jresult = (jboolean)result;
  5032. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5033. return jresult;
  5034. }
  5035. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
  5036. jboolean jresult = 0 ;
  5037. CallSession *arg1 = (CallSession *) 0 ;
  5038. SipUri *arg2 = (SipUri *) 0 ;
  5039. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5040. bool result;
  5041. (void)jenv;
  5042. (void)jcls;
  5043. (void)jarg1_;
  5044. (void)jarg2_;
  5045. (void)jarg3_;
  5046. arg1 = *(CallSession **)&jarg1;
  5047. arg2 = *(SipUri **)&jarg2;
  5048. arg3 = *(ActionConfig **)&jarg3;
  5049. result = (bool)(arg1)->callAudio((SipUri const *)arg2,arg3);
  5050. jresult = (jboolean)result;
  5051. return jresult;
  5052. }
  5053. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5054. jboolean jresult = 0 ;
  5055. CallSession *arg1 = (CallSession *) 0 ;
  5056. SipUri *arg2 = (SipUri *) 0 ;
  5057. bool result;
  5058. (void)jenv;
  5059. (void)jcls;
  5060. (void)jarg1_;
  5061. (void)jarg2_;
  5062. arg1 = *(CallSession **)&jarg1;
  5063. arg2 = *(SipUri **)&jarg2;
  5064. result = (bool)(arg1)->callAudio((SipUri const *)arg2);
  5065. jresult = (jboolean)result;
  5066. return jresult;
  5067. }
  5068. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
  5069. jboolean jresult = 0 ;
  5070. CallSession *arg1 = (CallSession *) 0 ;
  5071. char *arg2 = (char *) 0 ;
  5072. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5073. bool result;
  5074. (void)jenv;
  5075. (void)jcls;
  5076. (void)jarg1_;
  5077. (void)jarg3_;
  5078. arg1 = *(CallSession **)&jarg1;
  5079. arg2 = 0;
  5080. if (jarg2) {
  5081. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5082. if (!arg2) return 0;
  5083. }
  5084. arg3 = *(ActionConfig **)&jarg3;
  5085. result = (bool)(arg1)->callAudioVideo((char const *)arg2,arg3);
  5086. jresult = (jboolean)result;
  5087. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5088. return jresult;
  5089. }
  5090. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  5091. jboolean jresult = 0 ;
  5092. CallSession *arg1 = (CallSession *) 0 ;
  5093. char *arg2 = (char *) 0 ;
  5094. bool result;
  5095. (void)jenv;
  5096. (void)jcls;
  5097. (void)jarg1_;
  5098. arg1 = *(CallSession **)&jarg1;
  5099. arg2 = 0;
  5100. if (jarg2) {
  5101. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5102. if (!arg2) return 0;
  5103. }
  5104. result = (bool)(arg1)->callAudioVideo((char const *)arg2);
  5105. jresult = (jboolean)result;
  5106. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5107. return jresult;
  5108. }
  5109. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
  5110. jboolean jresult = 0 ;
  5111. CallSession *arg1 = (CallSession *) 0 ;
  5112. SipUri *arg2 = (SipUri *) 0 ;
  5113. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5114. bool result;
  5115. (void)jenv;
  5116. (void)jcls;
  5117. (void)jarg1_;
  5118. (void)jarg2_;
  5119. (void)jarg3_;
  5120. arg1 = *(CallSession **)&jarg1;
  5121. arg2 = *(SipUri **)&jarg2;
  5122. arg3 = *(ActionConfig **)&jarg3;
  5123. result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2,arg3);
  5124. jresult = (jboolean)result;
  5125. return jresult;
  5126. }
  5127. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5128. jboolean jresult = 0 ;
  5129. CallSession *arg1 = (CallSession *) 0 ;
  5130. SipUri *arg2 = (SipUri *) 0 ;
  5131. bool result;
  5132. (void)jenv;
  5133. (void)jcls;
  5134. (void)jarg1_;
  5135. (void)jarg2_;
  5136. arg1 = *(CallSession **)&jarg1;
  5137. arg2 = *(SipUri **)&jarg2;
  5138. result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2);
  5139. jresult = (jboolean)result;
  5140. return jresult;
  5141. }
  5142. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
  5143. jboolean jresult = 0 ;
  5144. CallSession *arg1 = (CallSession *) 0 ;
  5145. char *arg2 = (char *) 0 ;
  5146. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5147. bool result;
  5148. (void)jenv;
  5149. (void)jcls;
  5150. (void)jarg1_;
  5151. (void)jarg3_;
  5152. arg1 = *(CallSession **)&jarg1;
  5153. arg2 = 0;
  5154. if (jarg2) {
  5155. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5156. if (!arg2) return 0;
  5157. }
  5158. arg3 = *(ActionConfig **)&jarg3;
  5159. result = (bool)(arg1)->callVideo((char const *)arg2,arg3);
  5160. jresult = (jboolean)result;
  5161. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5162. return jresult;
  5163. }
  5164. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  5165. jboolean jresult = 0 ;
  5166. CallSession *arg1 = (CallSession *) 0 ;
  5167. char *arg2 = (char *) 0 ;
  5168. bool result;
  5169. (void)jenv;
  5170. (void)jcls;
  5171. (void)jarg1_;
  5172. arg1 = *(CallSession **)&jarg1;
  5173. arg2 = 0;
  5174. if (jarg2) {
  5175. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5176. if (!arg2) return 0;
  5177. }
  5178. result = (bool)(arg1)->callVideo((char const *)arg2);
  5179. jresult = (jboolean)result;
  5180. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5181. return jresult;
  5182. }
  5183. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
  5184. jboolean jresult = 0 ;
  5185. CallSession *arg1 = (CallSession *) 0 ;
  5186. SipUri *arg2 = (SipUri *) 0 ;
  5187. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5188. bool result;
  5189. (void)jenv;
  5190. (void)jcls;
  5191. (void)jarg1_;
  5192. (void)jarg2_;
  5193. (void)jarg3_;
  5194. arg1 = *(CallSession **)&jarg1;
  5195. arg2 = *(SipUri **)&jarg2;
  5196. arg3 = *(ActionConfig **)&jarg3;
  5197. result = (bool)(arg1)->callVideo((SipUri const *)arg2,arg3);
  5198. jresult = (jboolean)result;
  5199. return jresult;
  5200. }
  5201. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5202. jboolean jresult = 0 ;
  5203. CallSession *arg1 = (CallSession *) 0 ;
  5204. SipUri *arg2 = (SipUri *) 0 ;
  5205. bool result;
  5206. (void)jenv;
  5207. (void)jcls;
  5208. (void)jarg1_;
  5209. (void)jarg2_;
  5210. arg1 = *(CallSession **)&jarg1;
  5211. arg2 = *(SipUri **)&jarg2;
  5212. result = (bool)(arg1)->callVideo((SipUri const *)arg2);
  5213. jresult = (jboolean)result;
  5214. return jresult;
  5215. }
  5216. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jlong jarg4, jobject jarg4_) {
  5217. jboolean jresult = 0 ;
  5218. CallSession *arg1 = (CallSession *) 0 ;
  5219. char *arg2 = (char *) 0 ;
  5220. twrap_media_type_t arg3 ;
  5221. ActionConfig *arg4 = (ActionConfig *) 0 ;
  5222. bool result;
  5223. (void)jenv;
  5224. (void)jcls;
  5225. (void)jarg1_;
  5226. (void)jarg4_;
  5227. arg1 = *(CallSession **)&jarg1;
  5228. arg2 = 0;
  5229. if (jarg2) {
  5230. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5231. if (!arg2) return 0;
  5232. }
  5233. arg3 = (twrap_media_type_t)jarg3;
  5234. arg4 = *(ActionConfig **)&jarg4;
  5235. result = (bool)(arg1)->call((char const *)arg2,arg3,arg4);
  5236. jresult = (jboolean)result;
  5237. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5238. return jresult;
  5239. }
  5240. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
  5241. jboolean jresult = 0 ;
  5242. CallSession *arg1 = (CallSession *) 0 ;
  5243. char *arg2 = (char *) 0 ;
  5244. twrap_media_type_t arg3 ;
  5245. bool result;
  5246. (void)jenv;
  5247. (void)jcls;
  5248. (void)jarg1_;
  5249. arg1 = *(CallSession **)&jarg1;
  5250. arg2 = 0;
  5251. if (jarg2) {
  5252. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5253. if (!arg2) return 0;
  5254. }
  5255. arg3 = (twrap_media_type_t)jarg3;
  5256. result = (bool)(arg1)->call((char const *)arg2,arg3);
  5257. jresult = (jboolean)result;
  5258. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5259. return jresult;
  5260. }
  5261. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3, jlong jarg4, jobject jarg4_) {
  5262. jboolean jresult = 0 ;
  5263. CallSession *arg1 = (CallSession *) 0 ;
  5264. SipUri *arg2 = (SipUri *) 0 ;
  5265. twrap_media_type_t arg3 ;
  5266. ActionConfig *arg4 = (ActionConfig *) 0 ;
  5267. bool result;
  5268. (void)jenv;
  5269. (void)jcls;
  5270. (void)jarg1_;
  5271. (void)jarg2_;
  5272. (void)jarg4_;
  5273. arg1 = *(CallSession **)&jarg1;
  5274. arg2 = *(SipUri **)&jarg2;
  5275. arg3 = (twrap_media_type_t)jarg3;
  5276. arg4 = *(ActionConfig **)&jarg4;
  5277. result = (bool)(arg1)->call((SipUri const *)arg2,arg3,arg4);
  5278. jresult = (jboolean)result;
  5279. return jresult;
  5280. }
  5281. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3) {
  5282. jboolean jresult = 0 ;
  5283. CallSession *arg1 = (CallSession *) 0 ;
  5284. SipUri *arg2 = (SipUri *) 0 ;
  5285. twrap_media_type_t arg3 ;
  5286. bool result;
  5287. (void)jenv;
  5288. (void)jcls;
  5289. (void)jarg1_;
  5290. (void)jarg2_;
  5291. arg1 = *(CallSession **)&jarg1;
  5292. arg2 = *(SipUri **)&jarg2;
  5293. arg3 = (twrap_media_type_t)jarg3;
  5294. result = (bool)(arg1)->call((SipUri const *)arg2,arg3);
  5295. jresult = (jboolean)result;
  5296. return jresult;
  5297. }
  5298. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSessionTimer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jstring jarg3) {
  5299. jboolean jresult = 0 ;
  5300. CallSession *arg1 = (CallSession *) 0 ;
  5301. unsigned int arg2 ;
  5302. char *arg3 = (char *) 0 ;
  5303. bool result;
  5304. (void)jenv;
  5305. (void)jcls;
  5306. (void)jarg1_;
  5307. arg1 = *(CallSession **)&jarg1;
  5308. arg2 = (unsigned int)jarg2;
  5309. arg3 = 0;
  5310. if (jarg3) {
  5311. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  5312. if (!arg3) return 0;
  5313. }
  5314. result = (bool)(arg1)->setSessionTimer(arg2,(char const *)arg3);
  5315. jresult = (jboolean)result;
  5316. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  5317. return jresult;
  5318. }
  5319. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1set100rel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  5320. jboolean jresult = 0 ;
  5321. CallSession *arg1 = (CallSession *) 0 ;
  5322. bool arg2 ;
  5323. bool result;
  5324. (void)jenv;
  5325. (void)jcls;
  5326. (void)jarg1_;
  5327. arg1 = *(CallSession **)&jarg1;
  5328. arg2 = jarg2 ? true : false;
  5329. result = (bool)(arg1)->set100rel(arg2);
  5330. jresult = (jboolean)result;
  5331. return jresult;
  5332. }
  5333. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcp(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  5334. jboolean jresult = 0 ;
  5335. CallSession *arg1 = (CallSession *) 0 ;
  5336. bool arg2 ;
  5337. bool result;
  5338. (void)jenv;
  5339. (void)jcls;
  5340. (void)jarg1_;
  5341. arg1 = *(CallSession **)&jarg1;
  5342. arg2 = jarg2 ? true : false;
  5343. result = (bool)(arg1)->setRtcp(arg2);
  5344. jresult = (jboolean)result;
  5345. return jresult;
  5346. }
  5347. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcpMux(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  5348. jboolean jresult = 0 ;
  5349. CallSession *arg1 = (CallSession *) 0 ;
  5350. bool arg2 ;
  5351. bool result;
  5352. (void)jenv;
  5353. (void)jcls;
  5354. (void)jarg1_;
  5355. arg1 = *(CallSession **)&jarg1;
  5356. arg2 = jarg2 ? true : false;
  5357. result = (bool)(arg1)->setRtcpMux(arg2);
  5358. jresult = (jboolean)result;
  5359. return jresult;
  5360. }
  5361. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSRtpMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5362. jboolean jresult = 0 ;
  5363. CallSession *arg1 = (CallSession *) 0 ;
  5364. enum tmedia_srtp_mode_e arg2 ;
  5365. bool result;
  5366. (void)jenv;
  5367. (void)jcls;
  5368. (void)jarg1_;
  5369. arg1 = *(CallSession **)&jarg1;
  5370. arg2 = (enum tmedia_srtp_mode_e)jarg2;
  5371. result = (bool)(arg1)->setSRtpMode(arg2);
  5372. jresult = (jboolean)result;
  5373. return jresult;
  5374. }
  5375. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setAvpfMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5376. jboolean jresult = 0 ;
  5377. CallSession *arg1 = (CallSession *) 0 ;
  5378. enum tmedia_mode_e arg2 ;
  5379. bool result;
  5380. (void)jenv;
  5381. (void)jcls;
  5382. (void)jarg1_;
  5383. arg1 = *(CallSession **)&jarg1;
  5384. arg2 = (enum tmedia_mode_e)jarg2;
  5385. result = (bool)(arg1)->setAvpfMode(arg2);
  5386. jresult = (jboolean)result;
  5387. return jresult;
  5388. }
  5389. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  5390. jboolean jresult = 0 ;
  5391. CallSession *arg1 = (CallSession *) 0 ;
  5392. bool arg2 ;
  5393. bool result;
  5394. (void)jenv;
  5395. (void)jcls;
  5396. (void)jarg1_;
  5397. arg1 = *(CallSession **)&jarg1;
  5398. arg2 = jarg2 ? true : false;
  5399. result = (bool)(arg1)->setICE(arg2);
  5400. jresult = (jboolean)result;
  5401. return jresult;
  5402. }
  5403. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICEStun(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  5404. jboolean jresult = 0 ;
  5405. CallSession *arg1 = (CallSession *) 0 ;
  5406. bool arg2 ;
  5407. bool result;
  5408. (void)jenv;
  5409. (void)jcls;
  5410. (void)jarg1_;
  5411. arg1 = *(CallSession **)&jarg1;
  5412. arg2 = jarg2 ? true : false;
  5413. result = (bool)(arg1)->setICEStun(arg2);
  5414. jresult = (jboolean)result;
  5415. return jresult;
  5416. }
  5417. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICETurn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  5418. jboolean jresult = 0 ;
  5419. CallSession *arg1 = (CallSession *) 0 ;
  5420. bool arg2 ;
  5421. bool result;
  5422. (void)jenv;
  5423. (void)jcls;
  5424. (void)jarg1_;
  5425. arg1 = *(CallSession **)&jarg1;
  5426. arg2 = jarg2 ? true : false;
  5427. result = (bool)(arg1)->setICETurn(arg2);
  5428. jresult = (jboolean)result;
  5429. return jresult;
  5430. }
  5431. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
  5432. jboolean jresult = 0 ;
  5433. CallSession *arg1 = (CallSession *) 0 ;
  5434. char *arg2 = (char *) 0 ;
  5435. uint16_t arg3 ;
  5436. bool result;
  5437. (void)jenv;
  5438. (void)jcls;
  5439. (void)jarg1_;
  5440. arg1 = *(CallSession **)&jarg1;
  5441. arg2 = 0;
  5442. if (jarg2) {
  5443. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5444. if (!arg2) return 0;
  5445. }
  5446. arg3 = (uint16_t)jarg3;
  5447. result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3);
  5448. jresult = (jboolean)result;
  5449. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5450. return jresult;
  5451. }
  5452. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  5453. jboolean jresult = 0 ;
  5454. CallSession *arg1 = (CallSession *) 0 ;
  5455. char *arg2 = (char *) 0 ;
  5456. char *arg3 = (char *) 0 ;
  5457. bool result;
  5458. (void)jenv;
  5459. (void)jcls;
  5460. (void)jarg1_;
  5461. arg1 = *(CallSession **)&jarg1;
  5462. arg2 = 0;
  5463. if (jarg2) {
  5464. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5465. if (!arg2) return 0;
  5466. }
  5467. arg3 = 0;
  5468. if (jarg3) {
  5469. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  5470. if (!arg3) return 0;
  5471. }
  5472. result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3);
  5473. jresult = (jboolean)result;
  5474. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5475. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  5476. return jresult;
  5477. }
  5478. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoFps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5479. jboolean jresult = 0 ;
  5480. CallSession *arg1 = (CallSession *) 0 ;
  5481. int32_t arg2 ;
  5482. bool result;
  5483. (void)jenv;
  5484. (void)jcls;
  5485. (void)jarg1_;
  5486. arg1 = *(CallSession **)&jarg1;
  5487. arg2 = (int32_t)jarg2;
  5488. result = (bool)(arg1)->setVideoFps(arg2);
  5489. jresult = (jboolean)result;
  5490. return jresult;
  5491. }
  5492. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthUploadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5493. jboolean jresult = 0 ;
  5494. CallSession *arg1 = (CallSession *) 0 ;
  5495. int32_t arg2 ;
  5496. bool result;
  5497. (void)jenv;
  5498. (void)jcls;
  5499. (void)jarg1_;
  5500. arg1 = *(CallSession **)&jarg1;
  5501. arg2 = (int32_t)jarg2;
  5502. result = (bool)(arg1)->setVideoBandwidthUploadMax(arg2);
  5503. jresult = (jboolean)result;
  5504. return jresult;
  5505. }
  5506. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthDownloadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5507. jboolean jresult = 0 ;
  5508. CallSession *arg1 = (CallSession *) 0 ;
  5509. int32_t arg2 ;
  5510. bool result;
  5511. (void)jenv;
  5512. (void)jcls;
  5513. (void)jarg1_;
  5514. arg1 = *(CallSession **)&jarg1;
  5515. arg2 = (int32_t)jarg2;
  5516. result = (bool)(arg1)->setVideoBandwidthDownloadMax(arg2);
  5517. jresult = (jboolean)result;
  5518. return jresult;
  5519. }
  5520. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoPrefSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5521. jboolean jresult = 0 ;
  5522. CallSession *arg1 = (CallSession *) 0 ;
  5523. tmedia_pref_video_size_t arg2 ;
  5524. bool result;
  5525. (void)jenv;
  5526. (void)jcls;
  5527. (void)jarg1_;
  5528. arg1 = *(CallSession **)&jarg1;
  5529. arg2 = (tmedia_pref_video_size_t)jarg2;
  5530. result = (bool)(arg1)->setVideoPrefSize(arg2);
  5531. jresult = (jboolean)result;
  5532. return jresult;
  5533. }
  5534. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setQoS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
  5535. jboolean jresult = 0 ;
  5536. CallSession *arg1 = (CallSession *) 0 ;
  5537. tmedia_qos_stype_t arg2 ;
  5538. tmedia_qos_strength_t arg3 ;
  5539. bool result;
  5540. (void)jenv;
  5541. (void)jcls;
  5542. (void)jarg1_;
  5543. arg1 = *(CallSession **)&jarg1;
  5544. arg2 = (tmedia_qos_stype_t)jarg2;
  5545. arg3 = (tmedia_qos_strength_t)jarg3;
  5546. result = (bool)(arg1)->setQoS(arg2,arg3);
  5547. jresult = (jboolean)result;
  5548. return jresult;
  5549. }
  5550. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5551. jboolean jresult = 0 ;
  5552. CallSession *arg1 = (CallSession *) 0 ;
  5553. ActionConfig *arg2 = (ActionConfig *) 0 ;
  5554. bool result;
  5555. (void)jenv;
  5556. (void)jcls;
  5557. (void)jarg1_;
  5558. (void)jarg2_;
  5559. arg1 = *(CallSession **)&jarg1;
  5560. arg2 = *(ActionConfig **)&jarg2;
  5561. result = (bool)(arg1)->hold(arg2);
  5562. jresult = (jboolean)result;
  5563. return jresult;
  5564. }
  5565. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  5566. jboolean jresult = 0 ;
  5567. CallSession *arg1 = (CallSession *) 0 ;
  5568. bool result;
  5569. (void)jenv;
  5570. (void)jcls;
  5571. (void)jarg1_;
  5572. arg1 = *(CallSession **)&jarg1;
  5573. result = (bool)(arg1)->hold();
  5574. jresult = (jboolean)result;
  5575. return jresult;
  5576. }
  5577. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5578. jboolean jresult = 0 ;
  5579. CallSession *arg1 = (CallSession *) 0 ;
  5580. ActionConfig *arg2 = (ActionConfig *) 0 ;
  5581. bool result;
  5582. (void)jenv;
  5583. (void)jcls;
  5584. (void)jarg1_;
  5585. (void)jarg2_;
  5586. arg1 = *(CallSession **)&jarg1;
  5587. arg2 = *(ActionConfig **)&jarg2;
  5588. result = (bool)(arg1)->resume(arg2);
  5589. jresult = (jboolean)result;
  5590. return jresult;
  5591. }
  5592. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  5593. jboolean jresult = 0 ;
  5594. CallSession *arg1 = (CallSession *) 0 ;
  5595. bool result;
  5596. (void)jenv;
  5597. (void)jcls;
  5598. (void)jarg1_;
  5599. arg1 = *(CallSession **)&jarg1;
  5600. result = (bool)(arg1)->resume();
  5601. jresult = (jboolean)result;
  5602. return jresult;
  5603. }
  5604. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
  5605. jboolean jresult = 0 ;
  5606. CallSession *arg1 = (CallSession *) 0 ;
  5607. char *arg2 = (char *) 0 ;
  5608. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5609. bool result;
  5610. (void)jenv;
  5611. (void)jcls;
  5612. (void)jarg1_;
  5613. (void)jarg3_;
  5614. arg1 = *(CallSession **)&jarg1;
  5615. arg2 = 0;
  5616. if (jarg2) {
  5617. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5618. if (!arg2) return 0;
  5619. }
  5620. arg3 = *(ActionConfig **)&jarg3;
  5621. result = (bool)(arg1)->transfer((char const *)arg2,arg3);
  5622. jresult = (jboolean)result;
  5623. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5624. return jresult;
  5625. }
  5626. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  5627. jboolean jresult = 0 ;
  5628. CallSession *arg1 = (CallSession *) 0 ;
  5629. char *arg2 = (char *) 0 ;
  5630. bool result;
  5631. (void)jenv;
  5632. (void)jcls;
  5633. (void)jarg1_;
  5634. arg1 = *(CallSession **)&jarg1;
  5635. arg2 = 0;
  5636. if (jarg2) {
  5637. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5638. if (!arg2) return 0;
  5639. }
  5640. result = (bool)(arg1)->transfer((char const *)arg2);
  5641. jresult = (jboolean)result;
  5642. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5643. return jresult;
  5644. }
  5645. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5646. jboolean jresult = 0 ;
  5647. CallSession *arg1 = (CallSession *) 0 ;
  5648. ActionConfig *arg2 = (ActionConfig *) 0 ;
  5649. bool result;
  5650. (void)jenv;
  5651. (void)jcls;
  5652. (void)jarg1_;
  5653. (void)jarg2_;
  5654. arg1 = *(CallSession **)&jarg1;
  5655. arg2 = *(ActionConfig **)&jarg2;
  5656. result = (bool)(arg1)->acceptTransfer(arg2);
  5657. jresult = (jboolean)result;
  5658. return jresult;
  5659. }
  5660. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  5661. jboolean jresult = 0 ;
  5662. CallSession *arg1 = (CallSession *) 0 ;
  5663. bool result;
  5664. (void)jenv;
  5665. (void)jcls;
  5666. (void)jarg1_;
  5667. arg1 = *(CallSession **)&jarg1;
  5668. result = (bool)(arg1)->acceptTransfer();
  5669. jresult = (jboolean)result;
  5670. return jresult;
  5671. }
  5672. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5673. jboolean jresult = 0 ;
  5674. CallSession *arg1 = (CallSession *) 0 ;
  5675. ActionConfig *arg2 = (ActionConfig *) 0 ;
  5676. bool result;
  5677. (void)jenv;
  5678. (void)jcls;
  5679. (void)jarg1_;
  5680. (void)jarg2_;
  5681. arg1 = *(CallSession **)&jarg1;
  5682. arg2 = *(ActionConfig **)&jarg2;
  5683. result = (bool)(arg1)->rejectTransfer(arg2);
  5684. jresult = (jboolean)result;
  5685. return jresult;
  5686. }
  5687. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  5688. jboolean jresult = 0 ;
  5689. CallSession *arg1 = (CallSession *) 0 ;
  5690. bool result;
  5691. (void)jenv;
  5692. (void)jcls;
  5693. (void)jarg1_;
  5694. arg1 = *(CallSession **)&jarg1;
  5695. result = (bool)(arg1)->rejectTransfer();
  5696. jresult = (jboolean)result;
  5697. return jresult;
  5698. }
  5699. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendDTMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5700. jboolean jresult = 0 ;
  5701. CallSession *arg1 = (CallSession *) 0 ;
  5702. int arg2 ;
  5703. bool result;
  5704. (void)jenv;
  5705. (void)jcls;
  5706. (void)jarg1_;
  5707. arg1 = *(CallSession **)&jarg1;
  5708. arg2 = (int)jarg2;
  5709. result = (bool)(arg1)->sendDTMF(arg2);
  5710. jresult = (jboolean)result;
  5711. return jresult;
  5712. }
  5713. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1getSessionTransferId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  5714. jlong jresult = 0 ;
  5715. CallSession *arg1 = (CallSession *) 0 ;
  5716. unsigned int result;
  5717. (void)jenv;
  5718. (void)jcls;
  5719. (void)jarg1_;
  5720. arg1 = *(CallSession **)&jarg1;
  5721. result = (unsigned int)(arg1)->getSessionTransferId();
  5722. jresult = (jlong)result;
  5723. return jresult;
  5724. }
  5725. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3, jlong jarg4) {
  5726. jboolean jresult = 0 ;
  5727. CallSession *arg1 = (CallSession *) 0 ;
  5728. enum tmedia_t140_data_type_e arg2 ;
  5729. void *arg3 = (void *) 0 ;
  5730. unsigned int arg4 ;
  5731. bool result;
  5732. (void)jenv;
  5733. (void)jcls;
  5734. (void)jarg1_;
  5735. arg1 = *(CallSession **)&jarg1;
  5736. arg2 = (enum tmedia_t140_data_type_e)jarg2;
  5737. arg3 = jenv->GetDirectBufferAddress(jarg3);
  5738. arg4 = (unsigned int)jarg4;
  5739. result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3,arg4);
  5740. jresult = (jboolean)result;
  5741. return jresult;
  5742. }
  5743. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3) {
  5744. jboolean jresult = 0 ;
  5745. CallSession *arg1 = (CallSession *) 0 ;
  5746. enum tmedia_t140_data_type_e arg2 ;
  5747. void *arg3 = (void *) 0 ;
  5748. bool result;
  5749. (void)jenv;
  5750. (void)jcls;
  5751. (void)jarg1_;
  5752. arg1 = *(CallSession **)&jarg1;
  5753. arg2 = (enum tmedia_t140_data_type_e)jarg2;
  5754. arg3 = jenv->GetDirectBufferAddress(jarg3);
  5755. result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3);
  5756. jresult = (jboolean)result;
  5757. return jresult;
  5758. }
  5759. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  5760. jboolean jresult = 0 ;
  5761. CallSession *arg1 = (CallSession *) 0 ;
  5762. enum tmedia_t140_data_type_e arg2 ;
  5763. bool result;
  5764. (void)jenv;
  5765. (void)jcls;
  5766. (void)jarg1_;
  5767. arg1 = *(CallSession **)&jarg1;
  5768. arg2 = (enum tmedia_t140_data_type_e)jarg2;
  5769. result = (bool)(arg1)->sendT140Data(arg2);
  5770. jresult = (jboolean)result;
  5771. return jresult;
  5772. }
  5773. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5774. jboolean jresult = 0 ;
  5775. CallSession *arg1 = (CallSession *) 0 ;
  5776. T140Callback *arg2 = (T140Callback *) 0 ;
  5777. bool result;
  5778. (void)jenv;
  5779. (void)jcls;
  5780. (void)jarg1_;
  5781. (void)jarg2_;
  5782. arg1 = *(CallSession **)&jarg1;
  5783. arg2 = *(T140Callback **)&jarg2;
  5784. result = (bool)(arg1)->setT140Callback((T140Callback const *)arg2);
  5785. jresult = (jboolean)result;
  5786. return jresult;
  5787. }
  5788. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5789. jlong jresult = 0 ;
  5790. SipStack *arg1 = (SipStack *) 0 ;
  5791. MsrpCallback *arg2 = (MsrpCallback *) 0 ;
  5792. MsrpSession *result = 0 ;
  5793. (void)jenv;
  5794. (void)jcls;
  5795. (void)jarg1_;
  5796. (void)jarg2_;
  5797. arg1 = *(SipStack **)&jarg1;
  5798. arg2 = *(MsrpCallback **)&jarg2;
  5799. result = (MsrpSession *)new MsrpSession(arg1,arg2);
  5800. *(MsrpSession **)&jresult = result;
  5801. return jresult;
  5802. }
  5803. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  5804. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5805. (void)jenv;
  5806. (void)jcls;
  5807. arg1 = *(MsrpSession **)&jarg1;
  5808. delete arg1;
  5809. }
  5810. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5811. jboolean jresult = 0 ;
  5812. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5813. MsrpCallback *arg2 = (MsrpCallback *) 0 ;
  5814. bool result;
  5815. (void)jenv;
  5816. (void)jcls;
  5817. (void)jarg1_;
  5818. (void)jarg2_;
  5819. arg1 = *(MsrpSession **)&jarg1;
  5820. arg2 = *(MsrpCallback **)&jarg2;
  5821. result = (bool)(arg1)->setCallback(arg2);
  5822. jresult = (jboolean)result;
  5823. return jresult;
  5824. }
  5825. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
  5826. jboolean jresult = 0 ;
  5827. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5828. char *arg2 = (char *) 0 ;
  5829. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5830. bool result;
  5831. (void)jenv;
  5832. (void)jcls;
  5833. (void)jarg1_;
  5834. (void)jarg3_;
  5835. arg1 = *(MsrpSession **)&jarg1;
  5836. arg2 = 0;
  5837. if (jarg2) {
  5838. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5839. if (!arg2) return 0;
  5840. }
  5841. arg3 = *(ActionConfig **)&jarg3;
  5842. result = (bool)(arg1)->callMsrp((char const *)arg2,arg3);
  5843. jresult = (jboolean)result;
  5844. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5845. return jresult;
  5846. }
  5847. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  5848. jboolean jresult = 0 ;
  5849. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5850. char *arg2 = (char *) 0 ;
  5851. bool result;
  5852. (void)jenv;
  5853. (void)jcls;
  5854. (void)jarg1_;
  5855. arg1 = *(MsrpSession **)&jarg1;
  5856. arg2 = 0;
  5857. if (jarg2) {
  5858. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  5859. if (!arg2) return 0;
  5860. }
  5861. result = (bool)(arg1)->callMsrp((char const *)arg2);
  5862. jresult = (jboolean)result;
  5863. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  5864. return jresult;
  5865. }
  5866. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
  5867. jboolean jresult = 0 ;
  5868. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5869. SipUri *arg2 = (SipUri *) 0 ;
  5870. ActionConfig *arg3 = (ActionConfig *) 0 ;
  5871. bool result;
  5872. (void)jenv;
  5873. (void)jcls;
  5874. (void)jarg1_;
  5875. (void)jarg2_;
  5876. (void)jarg3_;
  5877. arg1 = *(MsrpSession **)&jarg1;
  5878. arg2 = *(SipUri **)&jarg2;
  5879. arg3 = *(ActionConfig **)&jarg3;
  5880. result = (bool)(arg1)->callMsrp((SipUri const *)arg2,arg3);
  5881. jresult = (jboolean)result;
  5882. return jresult;
  5883. }
  5884. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5885. jboolean jresult = 0 ;
  5886. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5887. SipUri *arg2 = (SipUri *) 0 ;
  5888. bool result;
  5889. (void)jenv;
  5890. (void)jcls;
  5891. (void)jarg1_;
  5892. (void)jarg2_;
  5893. arg1 = *(MsrpSession **)&jarg1;
  5894. arg2 = *(SipUri **)&jarg2;
  5895. result = (bool)(arg1)->callMsrp((SipUri const *)arg2);
  5896. jresult = (jboolean)result;
  5897. return jresult;
  5898. }
  5899. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
  5900. jboolean jresult = 0 ;
  5901. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5902. void *arg2 = (void *) 0 ;
  5903. unsigned int arg3 ;
  5904. ActionConfig *arg4 = (ActionConfig *) 0 ;
  5905. bool result;
  5906. (void)jenv;
  5907. (void)jcls;
  5908. (void)jarg1_;
  5909. (void)jarg4_;
  5910. arg1 = *(MsrpSession **)&jarg1;
  5911. arg2 = jenv->GetDirectBufferAddress(jarg2);
  5912. arg3 = (unsigned int)jarg3;
  5913. arg4 = *(ActionConfig **)&jarg4;
  5914. result = (bool)(arg1)->sendMessage((void const *)arg2,arg3,arg4);
  5915. jresult = (jboolean)result;
  5916. return jresult;
  5917. }
  5918. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  5919. jboolean jresult = 0 ;
  5920. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5921. void *arg2 = (void *) 0 ;
  5922. unsigned int arg3 ;
  5923. bool result;
  5924. (void)jenv;
  5925. (void)jcls;
  5926. (void)jarg1_;
  5927. arg1 = *(MsrpSession **)&jarg1;
  5928. arg2 = jenv->GetDirectBufferAddress(jarg2);
  5929. arg3 = (unsigned int)jarg3;
  5930. result = (bool)(arg1)->sendMessage((void const *)arg2,arg3);
  5931. jresult = (jboolean)result;
  5932. return jresult;
  5933. }
  5934. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  5935. jboolean jresult = 0 ;
  5936. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5937. ActionConfig *arg2 = (ActionConfig *) 0 ;
  5938. bool result;
  5939. (void)jenv;
  5940. (void)jcls;
  5941. (void)jarg1_;
  5942. (void)jarg2_;
  5943. arg1 = *(MsrpSession **)&jarg1;
  5944. arg2 = *(ActionConfig **)&jarg2;
  5945. result = (bool)(arg1)->sendFile(arg2);
  5946. jresult = (jboolean)result;
  5947. return jresult;
  5948. }
  5949. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  5950. jboolean jresult = 0 ;
  5951. MsrpSession *arg1 = (MsrpSession *) 0 ;
  5952. bool result;
  5953. (void)jenv;
  5954. (void)jcls;
  5955. (void)jarg1_;
  5956. arg1 = *(MsrpSession **)&jarg1;
  5957. result = (bool)(arg1)->sendFile();
  5958. jresult = (jboolean)result;
  5959. return jresult;
  5960. }
  5961. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  5962. jlong jresult = 0 ;
  5963. SipStack *arg1 = (SipStack *) 0 ;
  5964. MessagingSession *result = 0 ;
  5965. (void)jenv;
  5966. (void)jcls;
  5967. (void)jarg1_;
  5968. arg1 = *(SipStack **)&jarg1;
  5969. result = (MessagingSession *)new MessagingSession(arg1);
  5970. *(MessagingSession **)&jresult = result;
  5971. return jresult;
  5972. }
  5973. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  5974. MessagingSession *arg1 = (MessagingSession *) 0 ;
  5975. (void)jenv;
  5976. (void)jcls;
  5977. arg1 = *(MessagingSession **)&jarg1;
  5978. delete arg1;
  5979. }
  5980. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
  5981. jboolean jresult = 0 ;
  5982. MessagingSession *arg1 = (MessagingSession *) 0 ;
  5983. void *arg2 = (void *) 0 ;
  5984. unsigned int arg3 ;
  5985. ActionConfig *arg4 = (ActionConfig *) 0 ;
  5986. bool result;
  5987. (void)jenv;
  5988. (void)jcls;
  5989. (void)jarg1_;
  5990. (void)jarg4_;
  5991. arg1 = *(MessagingSession **)&jarg1;
  5992. arg2 = jenv->GetDirectBufferAddress(jarg2);
  5993. arg3 = (unsigned int)jarg3;
  5994. arg4 = *(ActionConfig **)&jarg4;
  5995. result = (bool)(arg1)->send((void const *)arg2,arg3,arg4);
  5996. jresult = (jboolean)result;
  5997. return jresult;
  5998. }
  5999. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  6000. jboolean jresult = 0 ;
  6001. MessagingSession *arg1 = (MessagingSession *) 0 ;
  6002. void *arg2 = (void *) 0 ;
  6003. unsigned int arg3 ;
  6004. bool result;
  6005. (void)jenv;
  6006. (void)jcls;
  6007. (void)jarg1_;
  6008. arg1 = *(MessagingSession **)&jarg1;
  6009. arg2 = jenv->GetDirectBufferAddress(jarg2);
  6010. arg3 = (unsigned int)jarg3;
  6011. result = (bool)(arg1)->send((void const *)arg2,arg3);
  6012. jresult = (jboolean)result;
  6013. return jresult;
  6014. }
  6015. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6016. jboolean jresult = 0 ;
  6017. MessagingSession *arg1 = (MessagingSession *) 0 ;
  6018. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6019. bool result;
  6020. (void)jenv;
  6021. (void)jcls;
  6022. (void)jarg1_;
  6023. (void)jarg2_;
  6024. arg1 = *(MessagingSession **)&jarg1;
  6025. arg2 = *(ActionConfig **)&jarg2;
  6026. result = (bool)(arg1)->accept(arg2);
  6027. jresult = (jboolean)result;
  6028. return jresult;
  6029. }
  6030. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6031. jboolean jresult = 0 ;
  6032. MessagingSession *arg1 = (MessagingSession *) 0 ;
  6033. bool result;
  6034. (void)jenv;
  6035. (void)jcls;
  6036. (void)jarg1_;
  6037. arg1 = *(MessagingSession **)&jarg1;
  6038. result = (bool)(arg1)->accept();
  6039. jresult = (jboolean)result;
  6040. return jresult;
  6041. }
  6042. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6043. jboolean jresult = 0 ;
  6044. MessagingSession *arg1 = (MessagingSession *) 0 ;
  6045. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6046. bool result;
  6047. (void)jenv;
  6048. (void)jcls;
  6049. (void)jarg1_;
  6050. (void)jarg2_;
  6051. arg1 = *(MessagingSession **)&jarg1;
  6052. arg2 = *(ActionConfig **)&jarg2;
  6053. result = (bool)(arg1)->reject(arg2);
  6054. jresult = (jboolean)result;
  6055. return jresult;
  6056. }
  6057. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6058. jboolean jresult = 0 ;
  6059. MessagingSession *arg1 = (MessagingSession *) 0 ;
  6060. bool result;
  6061. (void)jenv;
  6062. (void)jcls;
  6063. (void)jarg1_;
  6064. arg1 = *(MessagingSession **)&jarg1;
  6065. result = (bool)(arg1)->reject();
  6066. jresult = (jboolean)result;
  6067. return jresult;
  6068. }
  6069. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6070. jlong jresult = 0 ;
  6071. SipStack *arg1 = (SipStack *) 0 ;
  6072. InfoSession *result = 0 ;
  6073. (void)jenv;
  6074. (void)jcls;
  6075. (void)jarg1_;
  6076. arg1 = *(SipStack **)&jarg1;
  6077. result = (InfoSession *)new InfoSession(arg1);
  6078. *(InfoSession **)&jresult = result;
  6079. return jresult;
  6080. }
  6081. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6082. InfoSession *arg1 = (InfoSession *) 0 ;
  6083. (void)jenv;
  6084. (void)jcls;
  6085. arg1 = *(InfoSession **)&jarg1;
  6086. delete arg1;
  6087. }
  6088. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
  6089. jboolean jresult = 0 ;
  6090. InfoSession *arg1 = (InfoSession *) 0 ;
  6091. void *arg2 = (void *) 0 ;
  6092. unsigned int arg3 ;
  6093. ActionConfig *arg4 = (ActionConfig *) 0 ;
  6094. bool result;
  6095. (void)jenv;
  6096. (void)jcls;
  6097. (void)jarg1_;
  6098. (void)jarg4_;
  6099. arg1 = *(InfoSession **)&jarg1;
  6100. arg2 = jenv->GetDirectBufferAddress(jarg2);
  6101. arg3 = (unsigned int)jarg3;
  6102. arg4 = *(ActionConfig **)&jarg4;
  6103. result = (bool)(arg1)->send((void const *)arg2,arg3,arg4);
  6104. jresult = (jboolean)result;
  6105. return jresult;
  6106. }
  6107. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  6108. jboolean jresult = 0 ;
  6109. InfoSession *arg1 = (InfoSession *) 0 ;
  6110. void *arg2 = (void *) 0 ;
  6111. unsigned int arg3 ;
  6112. bool result;
  6113. (void)jenv;
  6114. (void)jcls;
  6115. (void)jarg1_;
  6116. arg1 = *(InfoSession **)&jarg1;
  6117. arg2 = jenv->GetDirectBufferAddress(jarg2);
  6118. arg3 = (unsigned int)jarg3;
  6119. result = (bool)(arg1)->send((void const *)arg2,arg3);
  6120. jresult = (jboolean)result;
  6121. return jresult;
  6122. }
  6123. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6124. jboolean jresult = 0 ;
  6125. InfoSession *arg1 = (InfoSession *) 0 ;
  6126. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6127. bool result;
  6128. (void)jenv;
  6129. (void)jcls;
  6130. (void)jarg1_;
  6131. (void)jarg2_;
  6132. arg1 = *(InfoSession **)&jarg1;
  6133. arg2 = *(ActionConfig **)&jarg2;
  6134. result = (bool)(arg1)->accept(arg2);
  6135. jresult = (jboolean)result;
  6136. return jresult;
  6137. }
  6138. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6139. jboolean jresult = 0 ;
  6140. InfoSession *arg1 = (InfoSession *) 0 ;
  6141. bool result;
  6142. (void)jenv;
  6143. (void)jcls;
  6144. (void)jarg1_;
  6145. arg1 = *(InfoSession **)&jarg1;
  6146. result = (bool)(arg1)->accept();
  6147. jresult = (jboolean)result;
  6148. return jresult;
  6149. }
  6150. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6151. jboolean jresult = 0 ;
  6152. InfoSession *arg1 = (InfoSession *) 0 ;
  6153. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6154. bool result;
  6155. (void)jenv;
  6156. (void)jcls;
  6157. (void)jarg1_;
  6158. (void)jarg2_;
  6159. arg1 = *(InfoSession **)&jarg1;
  6160. arg2 = *(ActionConfig **)&jarg2;
  6161. result = (bool)(arg1)->reject(arg2);
  6162. jresult = (jboolean)result;
  6163. return jresult;
  6164. }
  6165. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6166. jboolean jresult = 0 ;
  6167. InfoSession *arg1 = (InfoSession *) 0 ;
  6168. bool result;
  6169. (void)jenv;
  6170. (void)jcls;
  6171. (void)jarg1_;
  6172. arg1 = *(InfoSession **)&jarg1;
  6173. result = (bool)(arg1)->reject();
  6174. jresult = (jboolean)result;
  6175. return jresult;
  6176. }
  6177. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6178. jlong jresult = 0 ;
  6179. SipStack *arg1 = (SipStack *) 0 ;
  6180. OptionsSession *result = 0 ;
  6181. (void)jenv;
  6182. (void)jcls;
  6183. (void)jarg1_;
  6184. arg1 = *(SipStack **)&jarg1;
  6185. result = (OptionsSession *)new OptionsSession(arg1);
  6186. *(OptionsSession **)&jresult = result;
  6187. return jresult;
  6188. }
  6189. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6190. OptionsSession *arg1 = (OptionsSession *) 0 ;
  6191. (void)jenv;
  6192. (void)jcls;
  6193. arg1 = *(OptionsSession **)&jarg1;
  6194. delete arg1;
  6195. }
  6196. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6197. jboolean jresult = 0 ;
  6198. OptionsSession *arg1 = (OptionsSession *) 0 ;
  6199. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6200. bool result;
  6201. (void)jenv;
  6202. (void)jcls;
  6203. (void)jarg1_;
  6204. (void)jarg2_;
  6205. arg1 = *(OptionsSession **)&jarg1;
  6206. arg2 = *(ActionConfig **)&jarg2;
  6207. result = (bool)(arg1)->send(arg2);
  6208. jresult = (jboolean)result;
  6209. return jresult;
  6210. }
  6211. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6212. jboolean jresult = 0 ;
  6213. OptionsSession *arg1 = (OptionsSession *) 0 ;
  6214. bool result;
  6215. (void)jenv;
  6216. (void)jcls;
  6217. (void)jarg1_;
  6218. arg1 = *(OptionsSession **)&jarg1;
  6219. result = (bool)(arg1)->send();
  6220. jresult = (jboolean)result;
  6221. return jresult;
  6222. }
  6223. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6224. jboolean jresult = 0 ;
  6225. OptionsSession *arg1 = (OptionsSession *) 0 ;
  6226. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6227. bool result;
  6228. (void)jenv;
  6229. (void)jcls;
  6230. (void)jarg1_;
  6231. (void)jarg2_;
  6232. arg1 = *(OptionsSession **)&jarg1;
  6233. arg2 = *(ActionConfig **)&jarg2;
  6234. result = (bool)(arg1)->accept(arg2);
  6235. jresult = (jboolean)result;
  6236. return jresult;
  6237. }
  6238. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6239. jboolean jresult = 0 ;
  6240. OptionsSession *arg1 = (OptionsSession *) 0 ;
  6241. bool result;
  6242. (void)jenv;
  6243. (void)jcls;
  6244. (void)jarg1_;
  6245. arg1 = *(OptionsSession **)&jarg1;
  6246. result = (bool)(arg1)->accept();
  6247. jresult = (jboolean)result;
  6248. return jresult;
  6249. }
  6250. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6251. jboolean jresult = 0 ;
  6252. OptionsSession *arg1 = (OptionsSession *) 0 ;
  6253. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6254. bool result;
  6255. (void)jenv;
  6256. (void)jcls;
  6257. (void)jarg1_;
  6258. (void)jarg2_;
  6259. arg1 = *(OptionsSession **)&jarg1;
  6260. arg2 = *(ActionConfig **)&jarg2;
  6261. result = (bool)(arg1)->reject(arg2);
  6262. jresult = (jboolean)result;
  6263. return jresult;
  6264. }
  6265. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6266. jboolean jresult = 0 ;
  6267. OptionsSession *arg1 = (OptionsSession *) 0 ;
  6268. bool result;
  6269. (void)jenv;
  6270. (void)jcls;
  6271. (void)jarg1_;
  6272. arg1 = *(OptionsSession **)&jarg1;
  6273. result = (bool)(arg1)->reject();
  6274. jresult = (jboolean)result;
  6275. return jresult;
  6276. }
  6277. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6278. jlong jresult = 0 ;
  6279. SipStack *arg1 = (SipStack *) 0 ;
  6280. PublicationSession *result = 0 ;
  6281. (void)jenv;
  6282. (void)jcls;
  6283. (void)jarg1_;
  6284. arg1 = *(SipStack **)&jarg1;
  6285. result = (PublicationSession *)new PublicationSession(arg1);
  6286. *(PublicationSession **)&jresult = result;
  6287. return jresult;
  6288. }
  6289. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6290. PublicationSession *arg1 = (PublicationSession *) 0 ;
  6291. (void)jenv;
  6292. (void)jcls;
  6293. arg1 = *(PublicationSession **)&jarg1;
  6294. delete arg1;
  6295. }
  6296. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
  6297. jboolean jresult = 0 ;
  6298. PublicationSession *arg1 = (PublicationSession *) 0 ;
  6299. void *arg2 = (void *) 0 ;
  6300. unsigned int arg3 ;
  6301. ActionConfig *arg4 = (ActionConfig *) 0 ;
  6302. bool result;
  6303. (void)jenv;
  6304. (void)jcls;
  6305. (void)jarg1_;
  6306. (void)jarg4_;
  6307. arg1 = *(PublicationSession **)&jarg1;
  6308. arg2 = jenv->GetDirectBufferAddress(jarg2);
  6309. arg3 = (unsigned int)jarg3;
  6310. arg4 = *(ActionConfig **)&jarg4;
  6311. result = (bool)(arg1)->publish((void const *)arg2,arg3,arg4);
  6312. jresult = (jboolean)result;
  6313. return jresult;
  6314. }
  6315. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  6316. jboolean jresult = 0 ;
  6317. PublicationSession *arg1 = (PublicationSession *) 0 ;
  6318. void *arg2 = (void *) 0 ;
  6319. unsigned int arg3 ;
  6320. bool result;
  6321. (void)jenv;
  6322. (void)jcls;
  6323. (void)jarg1_;
  6324. arg1 = *(PublicationSession **)&jarg1;
  6325. arg2 = jenv->GetDirectBufferAddress(jarg2);
  6326. arg3 = (unsigned int)jarg3;
  6327. result = (bool)(arg1)->publish((void const *)arg2,arg3);
  6328. jresult = (jboolean)result;
  6329. return jresult;
  6330. }
  6331. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6332. jboolean jresult = 0 ;
  6333. PublicationSession *arg1 = (PublicationSession *) 0 ;
  6334. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6335. bool result;
  6336. (void)jenv;
  6337. (void)jcls;
  6338. (void)jarg1_;
  6339. (void)jarg2_;
  6340. arg1 = *(PublicationSession **)&jarg1;
  6341. arg2 = *(ActionConfig **)&jarg2;
  6342. result = (bool)(arg1)->unPublish(arg2);
  6343. jresult = (jboolean)result;
  6344. return jresult;
  6345. }
  6346. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6347. jboolean jresult = 0 ;
  6348. PublicationSession *arg1 = (PublicationSession *) 0 ;
  6349. bool result;
  6350. (void)jenv;
  6351. (void)jcls;
  6352. (void)jarg1_;
  6353. arg1 = *(PublicationSession **)&jarg1;
  6354. result = (bool)(arg1)->unPublish();
  6355. jresult = (jboolean)result;
  6356. return jresult;
  6357. }
  6358. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6359. jlong jresult = 0 ;
  6360. SipStack *arg1 = (SipStack *) 0 ;
  6361. RegistrationSession *result = 0 ;
  6362. (void)jenv;
  6363. (void)jcls;
  6364. (void)jarg1_;
  6365. arg1 = *(SipStack **)&jarg1;
  6366. result = (RegistrationSession *)new RegistrationSession(arg1);
  6367. *(RegistrationSession **)&jresult = result;
  6368. return jresult;
  6369. }
  6370. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6371. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6372. (void)jenv;
  6373. (void)jcls;
  6374. arg1 = *(RegistrationSession **)&jarg1;
  6375. delete arg1;
  6376. }
  6377. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6378. jboolean jresult = 0 ;
  6379. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6380. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6381. bool result;
  6382. (void)jenv;
  6383. (void)jcls;
  6384. (void)jarg1_;
  6385. (void)jarg2_;
  6386. arg1 = *(RegistrationSession **)&jarg1;
  6387. arg2 = *(ActionConfig **)&jarg2;
  6388. result = (bool)(arg1)->register_(arg2);
  6389. jresult = (jboolean)result;
  6390. return jresult;
  6391. }
  6392. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6393. jboolean jresult = 0 ;
  6394. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6395. bool result;
  6396. (void)jenv;
  6397. (void)jcls;
  6398. (void)jarg1_;
  6399. arg1 = *(RegistrationSession **)&jarg1;
  6400. result = (bool)(arg1)->register_();
  6401. jresult = (jboolean)result;
  6402. return jresult;
  6403. }
  6404. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6405. jboolean jresult = 0 ;
  6406. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6407. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6408. bool result;
  6409. (void)jenv;
  6410. (void)jcls;
  6411. (void)jarg1_;
  6412. (void)jarg2_;
  6413. arg1 = *(RegistrationSession **)&jarg1;
  6414. arg2 = *(ActionConfig **)&jarg2;
  6415. result = (bool)(arg1)->unRegister(arg2);
  6416. jresult = (jboolean)result;
  6417. return jresult;
  6418. }
  6419. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6420. jboolean jresult = 0 ;
  6421. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6422. bool result;
  6423. (void)jenv;
  6424. (void)jcls;
  6425. (void)jarg1_;
  6426. arg1 = *(RegistrationSession **)&jarg1;
  6427. result = (bool)(arg1)->unRegister();
  6428. jresult = (jboolean)result;
  6429. return jresult;
  6430. }
  6431. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6432. jboolean jresult = 0 ;
  6433. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6434. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6435. bool result;
  6436. (void)jenv;
  6437. (void)jcls;
  6438. (void)jarg1_;
  6439. (void)jarg2_;
  6440. arg1 = *(RegistrationSession **)&jarg1;
  6441. arg2 = *(ActionConfig **)&jarg2;
  6442. result = (bool)(arg1)->accept(arg2);
  6443. jresult = (jboolean)result;
  6444. return jresult;
  6445. }
  6446. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6447. jboolean jresult = 0 ;
  6448. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6449. bool result;
  6450. (void)jenv;
  6451. (void)jcls;
  6452. (void)jarg1_;
  6453. arg1 = *(RegistrationSession **)&jarg1;
  6454. result = (bool)(arg1)->accept();
  6455. jresult = (jboolean)result;
  6456. return jresult;
  6457. }
  6458. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  6459. jboolean jresult = 0 ;
  6460. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6461. ActionConfig *arg2 = (ActionConfig *) 0 ;
  6462. bool result;
  6463. (void)jenv;
  6464. (void)jcls;
  6465. (void)jarg1_;
  6466. (void)jarg2_;
  6467. arg1 = *(RegistrationSession **)&jarg1;
  6468. arg2 = *(ActionConfig **)&jarg2;
  6469. result = (bool)(arg1)->reject(arg2);
  6470. jresult = (jboolean)result;
  6471. return jresult;
  6472. }
  6473. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6474. jboolean jresult = 0 ;
  6475. RegistrationSession *arg1 = (RegistrationSession *) 0 ;
  6476. bool result;
  6477. (void)jenv;
  6478. (void)jcls;
  6479. (void)jarg1_;
  6480. arg1 = *(RegistrationSession **)&jarg1;
  6481. result = (bool)(arg1)->reject();
  6482. jresult = (jboolean)result;
  6483. return jresult;
  6484. }
  6485. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6486. jlong jresult = 0 ;
  6487. SipStack *arg1 = (SipStack *) 0 ;
  6488. SubscriptionSession *result = 0 ;
  6489. (void)jenv;
  6490. (void)jcls;
  6491. (void)jarg1_;
  6492. arg1 = *(SipStack **)&jarg1;
  6493. result = (SubscriptionSession *)new SubscriptionSession(arg1);
  6494. *(SubscriptionSession **)&jresult = result;
  6495. return jresult;
  6496. }
  6497. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6498. SubscriptionSession *arg1 = (SubscriptionSession *) 0 ;
  6499. (void)jenv;
  6500. (void)jcls;
  6501. arg1 = *(SubscriptionSession **)&jarg1;
  6502. delete arg1;
  6503. }
  6504. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1subscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6505. jboolean jresult = 0 ;
  6506. SubscriptionSession *arg1 = (SubscriptionSession *) 0 ;
  6507. bool result;
  6508. (void)jenv;
  6509. (void)jcls;
  6510. (void)jarg1_;
  6511. arg1 = *(SubscriptionSession **)&jarg1;
  6512. result = (bool)(arg1)->subscribe();
  6513. jresult = (jboolean)result;
  6514. return jresult;
  6515. }
  6516. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1unSubscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6517. jboolean jresult = 0 ;
  6518. SubscriptionSession *arg1 = (SubscriptionSession *) 0 ;
  6519. bool result;
  6520. (void)jenv;
  6521. (void)jcls;
  6522. (void)jarg1_;
  6523. arg1 = *(SubscriptionSession **)&jarg1;
  6524. result = (bool)(arg1)->unSubscribe();
  6525. jresult = (jboolean)result;
  6526. return jresult;
  6527. }
  6528. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6529. ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
  6530. (void)jenv;
  6531. (void)jcls;
  6532. arg1 = *(ProxyPluginMgr **)&jarg1;
  6533. delete arg1;
  6534. }
  6535. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1createInstance(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6536. jlong jresult = 0 ;
  6537. ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
  6538. ProxyPluginMgr *result = 0 ;
  6539. (void)jenv;
  6540. (void)jcls;
  6541. (void)jarg1_;
  6542. arg1 = *(ProxyPluginMgrCallback **)&jarg1;
  6543. result = (ProxyPluginMgr *)ProxyPluginMgr::createInstance(arg1);
  6544. *(ProxyPluginMgr **)&jresult = result;
  6545. return jresult;
  6546. }
  6547. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1getInstance(JNIEnv *jenv, jclass jcls) {
  6548. jlong jresult = 0 ;
  6549. ProxyPluginMgr *result = 0 ;
  6550. (void)jenv;
  6551. (void)jcls;
  6552. result = (ProxyPluginMgr *)ProxyPluginMgr::getInstance();
  6553. *(ProxyPluginMgr **)&jresult = result;
  6554. return jresult;
  6555. }
  6556. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
  6557. jlong jresult = 0 ;
  6558. ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
  6559. uint64_t arg2 ;
  6560. ProxyPlugin *result = 0 ;
  6561. (void)jenv;
  6562. (void)jcls;
  6563. (void)jarg1_;
  6564. arg1 = *(ProxyPluginMgr **)&jarg1;
  6565. {
  6566. jclass clazz;
  6567. jmethodID mid;
  6568. jbyteArray ba;
  6569. jbyte* bae;
  6570. jsize sz;
  6571. int i;
  6572. if (!jarg2) {
  6573. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6574. return 0;
  6575. }
  6576. clazz = jenv->GetObjectClass(jarg2);
  6577. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6578. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6579. bae = jenv->GetByteArrayElements(ba, 0);
  6580. sz = jenv->GetArrayLength(ba);
  6581. arg2 = 0;
  6582. for(i=0; i<sz; i++) {
  6583. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6584. }
  6585. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6586. }
  6587. result = (ProxyPlugin *)(arg1)->findPlugin(arg2);
  6588. *(ProxyPlugin **)&jresult = result;
  6589. return jresult;
  6590. }
  6591. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
  6592. jlong jresult = 0 ;
  6593. ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
  6594. uint64_t arg2 ;
  6595. ProxyAudioConsumer *result = 0 ;
  6596. (void)jenv;
  6597. (void)jcls;
  6598. (void)jarg1_;
  6599. arg1 = *(ProxyPluginMgr **)&jarg1;
  6600. {
  6601. jclass clazz;
  6602. jmethodID mid;
  6603. jbyteArray ba;
  6604. jbyte* bae;
  6605. jsize sz;
  6606. int i;
  6607. if (!jarg2) {
  6608. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6609. return 0;
  6610. }
  6611. clazz = jenv->GetObjectClass(jarg2);
  6612. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6613. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6614. bae = jenv->GetByteArrayElements(ba, 0);
  6615. sz = jenv->GetArrayLength(ba);
  6616. arg2 = 0;
  6617. for(i=0; i<sz; i++) {
  6618. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6619. }
  6620. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6621. }
  6622. result = (ProxyAudioConsumer *)(arg1)->findAudioConsumer(arg2);
  6623. *(ProxyAudioConsumer **)&jresult = result;
  6624. return jresult;
  6625. }
  6626. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
  6627. jlong jresult = 0 ;
  6628. ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
  6629. uint64_t arg2 ;
  6630. ProxyVideoConsumer *result = 0 ;
  6631. (void)jenv;
  6632. (void)jcls;
  6633. (void)jarg1_;
  6634. arg1 = *(ProxyPluginMgr **)&jarg1;
  6635. {
  6636. jclass clazz;
  6637. jmethodID mid;
  6638. jbyteArray ba;
  6639. jbyte* bae;
  6640. jsize sz;
  6641. int i;
  6642. if (!jarg2) {
  6643. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6644. return 0;
  6645. }
  6646. clazz = jenv->GetObjectClass(jarg2);
  6647. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6648. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6649. bae = jenv->GetByteArrayElements(ba, 0);
  6650. sz = jenv->GetArrayLength(ba);
  6651. arg2 = 0;
  6652. for(i=0; i<sz; i++) {
  6653. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6654. }
  6655. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6656. }
  6657. result = (ProxyVideoConsumer *)(arg1)->findVideoConsumer(arg2);
  6658. *(ProxyVideoConsumer **)&jresult = result;
  6659. return jresult;
  6660. }
  6661. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
  6662. jlong jresult = 0 ;
  6663. ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
  6664. uint64_t arg2 ;
  6665. ProxyAudioProducer *result = 0 ;
  6666. (void)jenv;
  6667. (void)jcls;
  6668. (void)jarg1_;
  6669. arg1 = *(ProxyPluginMgr **)&jarg1;
  6670. {
  6671. jclass clazz;
  6672. jmethodID mid;
  6673. jbyteArray ba;
  6674. jbyte* bae;
  6675. jsize sz;
  6676. int i;
  6677. if (!jarg2) {
  6678. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6679. return 0;
  6680. }
  6681. clazz = jenv->GetObjectClass(jarg2);
  6682. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6683. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6684. bae = jenv->GetByteArrayElements(ba, 0);
  6685. sz = jenv->GetArrayLength(ba);
  6686. arg2 = 0;
  6687. for(i=0; i<sz; i++) {
  6688. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6689. }
  6690. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6691. }
  6692. result = (ProxyAudioProducer *)(arg1)->findAudioProducer(arg2);
  6693. *(ProxyAudioProducer **)&jresult = result;
  6694. return jresult;
  6695. }
  6696. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
  6697. jlong jresult = 0 ;
  6698. ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
  6699. uint64_t arg2 ;
  6700. ProxyVideoProducer *result = 0 ;
  6701. (void)jenv;
  6702. (void)jcls;
  6703. (void)jarg1_;
  6704. arg1 = *(ProxyPluginMgr **)&jarg1;
  6705. {
  6706. jclass clazz;
  6707. jmethodID mid;
  6708. jbyteArray ba;
  6709. jbyte* bae;
  6710. jsize sz;
  6711. int i;
  6712. if (!jarg2) {
  6713. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6714. return 0;
  6715. }
  6716. clazz = jenv->GetObjectClass(jarg2);
  6717. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6718. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6719. bae = jenv->GetByteArrayElements(ba, 0);
  6720. sz = jenv->GetArrayLength(ba);
  6721. arg2 = 0;
  6722. for(i=0; i<sz; i++) {
  6723. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6724. }
  6725. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6726. }
  6727. result = (ProxyVideoProducer *)(arg1)->findVideoProducer(arg2);
  6728. *(ProxyVideoProducer **)&jresult = result;
  6729. return jresult;
  6730. }
  6731. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls) {
  6732. jlong jresult = 0 ;
  6733. ProxyPluginMgrCallback *result = 0 ;
  6734. (void)jenv;
  6735. (void)jcls;
  6736. result = (ProxyPluginMgrCallback *)new SwigDirector_ProxyPluginMgrCallback(jenv);
  6737. *(ProxyPluginMgrCallback **)&jresult = result;
  6738. return jresult;
  6739. }
  6740. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6741. ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
  6742. (void)jenv;
  6743. (void)jcls;
  6744. arg1 = *(ProxyPluginMgrCallback **)&jarg1;
  6745. delete arg1;
  6746. }
  6747. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreated(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
  6748. jint jresult = 0 ;
  6749. ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
  6750. uint64_t arg2 ;
  6751. enum twrap_proxy_plugin_type_e arg3 ;
  6752. int result;
  6753. (void)jenv;
  6754. (void)jcls;
  6755. (void)jarg1_;
  6756. arg1 = *(ProxyPluginMgrCallback **)&jarg1;
  6757. {
  6758. jclass clazz;
  6759. jmethodID mid;
  6760. jbyteArray ba;
  6761. jbyte* bae;
  6762. jsize sz;
  6763. int i;
  6764. if (!jarg2) {
  6765. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6766. return 0;
  6767. }
  6768. clazz = jenv->GetObjectClass(jarg2);
  6769. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6770. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6771. bae = jenv->GetByteArrayElements(ba, 0);
  6772. sz = jenv->GetArrayLength(ba);
  6773. arg2 = 0;
  6774. for(i=0; i<sz; i++) {
  6775. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6776. }
  6777. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6778. }
  6779. arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
  6780. result = (int)(arg1)->OnPluginCreated(arg2,arg3);
  6781. jresult = (jint)result;
  6782. return jresult;
  6783. }
  6784. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreatedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
  6785. jint jresult = 0 ;
  6786. ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
  6787. uint64_t arg2 ;
  6788. enum twrap_proxy_plugin_type_e arg3 ;
  6789. int result;
  6790. (void)jenv;
  6791. (void)jcls;
  6792. (void)jarg1_;
  6793. arg1 = *(ProxyPluginMgrCallback **)&jarg1;
  6794. {
  6795. jclass clazz;
  6796. jmethodID mid;
  6797. jbyteArray ba;
  6798. jbyte* bae;
  6799. jsize sz;
  6800. int i;
  6801. if (!jarg2) {
  6802. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6803. return 0;
  6804. }
  6805. clazz = jenv->GetObjectClass(jarg2);
  6806. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6807. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6808. bae = jenv->GetByteArrayElements(ba, 0);
  6809. sz = jenv->GetArrayLength(ba);
  6810. arg2 = 0;
  6811. for(i=0; i<sz; i++) {
  6812. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6813. }
  6814. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6815. }
  6816. arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
  6817. result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginCreated(arg2,arg3);
  6818. jresult = (jint)result;
  6819. return jresult;
  6820. }
  6821. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
  6822. jint jresult = 0 ;
  6823. ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
  6824. uint64_t arg2 ;
  6825. enum twrap_proxy_plugin_type_e arg3 ;
  6826. int result;
  6827. (void)jenv;
  6828. (void)jcls;
  6829. (void)jarg1_;
  6830. arg1 = *(ProxyPluginMgrCallback **)&jarg1;
  6831. {
  6832. jclass clazz;
  6833. jmethodID mid;
  6834. jbyteArray ba;
  6835. jbyte* bae;
  6836. jsize sz;
  6837. int i;
  6838. if (!jarg2) {
  6839. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6840. return 0;
  6841. }
  6842. clazz = jenv->GetObjectClass(jarg2);
  6843. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6844. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6845. bae = jenv->GetByteArrayElements(ba, 0);
  6846. sz = jenv->GetArrayLength(ba);
  6847. arg2 = 0;
  6848. for(i=0; i<sz; i++) {
  6849. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6850. }
  6851. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6852. }
  6853. arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
  6854. result = (int)(arg1)->OnPluginDestroyed(arg2,arg3);
  6855. jresult = (jint)result;
  6856. return jresult;
  6857. }
  6858. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
  6859. jint jresult = 0 ;
  6860. ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
  6861. uint64_t arg2 ;
  6862. enum twrap_proxy_plugin_type_e arg3 ;
  6863. int result;
  6864. (void)jenv;
  6865. (void)jcls;
  6866. (void)jarg1_;
  6867. arg1 = *(ProxyPluginMgrCallback **)&jarg1;
  6868. {
  6869. jclass clazz;
  6870. jmethodID mid;
  6871. jbyteArray ba;
  6872. jbyte* bae;
  6873. jsize sz;
  6874. int i;
  6875. if (!jarg2) {
  6876. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
  6877. return 0;
  6878. }
  6879. clazz = jenv->GetObjectClass(jarg2);
  6880. mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
  6881. ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
  6882. bae = jenv->GetByteArrayElements(ba, 0);
  6883. sz = jenv->GetArrayLength(ba);
  6884. arg2 = 0;
  6885. for(i=0; i<sz; i++) {
  6886. arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
  6887. }
  6888. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6889. }
  6890. arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
  6891. result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginDestroyed(arg2,arg3);
  6892. jresult = (jint)result;
  6893. return jresult;
  6894. }
  6895. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  6896. ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg);
  6897. (void)jcls;
  6898. SwigDirector_ProxyPluginMgrCallback *director = static_cast<SwigDirector_ProxyPluginMgrCallback *>(obj);
  6899. if (director) {
  6900. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  6901. }
  6902. }
  6903. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  6904. ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg);
  6905. SwigDirector_ProxyPluginMgrCallback *director = static_cast<SwigDirector_ProxyPluginMgrCallback *>(obj);
  6906. (void)jcls;
  6907. if (director) {
  6908. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  6909. }
  6910. }
  6911. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6912. ProxyPlugin *arg1 = (ProxyPlugin *) 0 ;
  6913. (void)jenv;
  6914. (void)jcls;
  6915. arg1 = *(ProxyPlugin **)&jarg1;
  6916. delete arg1;
  6917. }
  6918. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6919. jint jresult = 0 ;
  6920. ProxyPlugin *arg1 = (ProxyPlugin *) 0 ;
  6921. twrap_proxy_plugin_type_t result;
  6922. (void)jenv;
  6923. (void)jcls;
  6924. (void)jarg1_;
  6925. arg1 = *(ProxyPlugin **)&jarg1;
  6926. result = (twrap_proxy_plugin_type_t)((ProxyPlugin const *)arg1)->getType();
  6927. jresult = (jint)result;
  6928. return jresult;
  6929. }
  6930. SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  6931. jobject jresult = 0 ;
  6932. ProxyPlugin *arg1 = (ProxyPlugin *) 0 ;
  6933. uint64_t result;
  6934. (void)jenv;
  6935. (void)jcls;
  6936. (void)jarg1_;
  6937. arg1 = *(ProxyPlugin **)&jarg1;
  6938. result = (uint64_t)((ProxyPlugin const *)arg1)->getId();
  6939. {
  6940. jbyteArray ba = jenv->NewByteArray(9);
  6941. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  6942. jclass clazz = jenv->FindClass("java/math/BigInteger");
  6943. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  6944. jobject bigint;
  6945. int i;
  6946. bae[0] = 0;
  6947. for(i=1; i<9; i++ ) {
  6948. bae[i] = (jbyte)(result>>8*(8-i));
  6949. }
  6950. jenv->ReleaseByteArrayElements(ba, bae, 0);
  6951. bigint = jenv->NewObject(clazz, mid, ba);
  6952. jresult = bigint;
  6953. }
  6954. return jresult;
  6955. }
  6956. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls) {
  6957. jlong jresult = 0 ;
  6958. ProxyAudioConsumerCallback *result = 0 ;
  6959. (void)jenv;
  6960. (void)jcls;
  6961. result = (ProxyAudioConsumerCallback *)new SwigDirector_ProxyAudioConsumerCallback(jenv);
  6962. *(ProxyAudioConsumerCallback **)&jresult = result;
  6963. return jresult;
  6964. }
  6965. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  6966. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  6967. (void)jenv;
  6968. (void)jcls;
  6969. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  6970. delete arg1;
  6971. }
  6972. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  6973. jint jresult = 0 ;
  6974. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  6975. int arg2 ;
  6976. int arg3 ;
  6977. int arg4 ;
  6978. int result;
  6979. (void)jenv;
  6980. (void)jcls;
  6981. (void)jarg1_;
  6982. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  6983. arg2 = (int)jarg2;
  6984. arg3 = (int)jarg3;
  6985. arg4 = (int)jarg4;
  6986. result = (int)(arg1)->prepare(arg2,arg3,arg4);
  6987. jresult = (jint)result;
  6988. return jresult;
  6989. }
  6990. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepareSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  6991. jint jresult = 0 ;
  6992. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  6993. int arg2 ;
  6994. int arg3 ;
  6995. int arg4 ;
  6996. int result;
  6997. (void)jenv;
  6998. (void)jcls;
  6999. (void)jarg1_;
  7000. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  7001. arg2 = (int)jarg2;
  7002. arg3 = (int)jarg3;
  7003. arg4 = (int)jarg4;
  7004. result = (int)(arg1)->ProxyAudioConsumerCallback::prepare(arg2,arg3,arg4);
  7005. jresult = (jint)result;
  7006. return jresult;
  7007. }
  7008. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7009. jint jresult = 0 ;
  7010. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  7011. int result;
  7012. (void)jenv;
  7013. (void)jcls;
  7014. (void)jarg1_;
  7015. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  7016. result = (int)(arg1)->start();
  7017. jresult = (jint)result;
  7018. return jresult;
  7019. }
  7020. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1startSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7021. jint jresult = 0 ;
  7022. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  7023. int result;
  7024. (void)jenv;
  7025. (void)jcls;
  7026. (void)jarg1_;
  7027. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  7028. result = (int)(arg1)->ProxyAudioConsumerCallback::start();
  7029. jresult = (jint)result;
  7030. return jresult;
  7031. }
  7032. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7033. jint jresult = 0 ;
  7034. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  7035. int result;
  7036. (void)jenv;
  7037. (void)jcls;
  7038. (void)jarg1_;
  7039. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  7040. result = (int)(arg1)->pause();
  7041. jresult = (jint)result;
  7042. return jresult;
  7043. }
  7044. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pauseSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7045. jint jresult = 0 ;
  7046. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  7047. int result;
  7048. (void)jenv;
  7049. (void)jcls;
  7050. (void)jarg1_;
  7051. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  7052. result = (int)(arg1)->ProxyAudioConsumerCallback::pause();
  7053. jresult = (jint)result;
  7054. return jresult;
  7055. }
  7056. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7057. jint jresult = 0 ;
  7058. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  7059. int result;
  7060. (void)jenv;
  7061. (void)jcls;
  7062. (void)jarg1_;
  7063. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  7064. result = (int)(arg1)->stop();
  7065. jresult = (jint)result;
  7066. return jresult;
  7067. }
  7068. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stopSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7069. jint jresult = 0 ;
  7070. ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
  7071. int result;
  7072. (void)jenv;
  7073. (void)jcls;
  7074. (void)jarg1_;
  7075. arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
  7076. result = (int)(arg1)->ProxyAudioConsumerCallback::stop();
  7077. jresult = (jint)result;
  7078. return jresult;
  7079. }
  7080. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  7081. ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg);
  7082. (void)jcls;
  7083. SwigDirector_ProxyAudioConsumerCallback *director = static_cast<SwigDirector_ProxyAudioConsumerCallback *>(obj);
  7084. if (director) {
  7085. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  7086. }
  7087. }
  7088. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  7089. ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg);
  7090. SwigDirector_ProxyAudioConsumerCallback *director = static_cast<SwigDirector_ProxyAudioConsumerCallback *>(obj);
  7091. (void)jcls;
  7092. if (director) {
  7093. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  7094. }
  7095. }
  7096. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  7097. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7098. (void)jenv;
  7099. (void)jcls;
  7100. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7101. delete arg1;
  7102. }
  7103. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActualSndCardPlaybackParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  7104. jboolean jresult = 0 ;
  7105. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7106. int arg2 ;
  7107. int arg3 ;
  7108. int arg4 ;
  7109. bool result;
  7110. (void)jenv;
  7111. (void)jcls;
  7112. (void)jarg1_;
  7113. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7114. arg2 = (int)jarg2;
  7115. arg3 = (int)jarg3;
  7116. arg4 = (int)jarg4;
  7117. result = (bool)(arg1)->setActualSndCardPlaybackParams(arg2,arg3,arg4);
  7118. jresult = (jboolean)result;
  7119. return jresult;
  7120. }
  7121. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1queryForResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jint jarg6) {
  7122. jboolean jresult = 0 ;
  7123. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7124. uint16_t arg2 ;
  7125. uint16_t arg3 ;
  7126. uint16_t arg4 ;
  7127. uint16_t arg5 ;
  7128. uint16_t arg6 ;
  7129. bool result;
  7130. (void)jenv;
  7131. (void)jcls;
  7132. (void)jarg1_;
  7133. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7134. arg2 = (uint16_t)jarg2;
  7135. arg3 = (uint16_t)jarg3;
  7136. arg4 = (uint16_t)jarg4;
  7137. arg5 = (uint16_t)jarg5;
  7138. arg6 = (uint16_t)jarg6;
  7139. result = (bool)(arg1)->queryForResampler(arg2,arg3,arg4,arg5,arg6);
  7140. jresult = (jboolean)result;
  7141. return jresult;
  7142. }
  7143. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setPullBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  7144. jboolean jresult = 0 ;
  7145. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7146. void *arg2 = (void *) 0 ;
  7147. unsigned int arg3 ;
  7148. bool result;
  7149. (void)jenv;
  7150. (void)jcls;
  7151. (void)jarg1_;
  7152. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7153. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7154. arg3 = (unsigned int)jarg3;
  7155. result = (bool)(arg1)->setPullBuffer((void const *)arg2,arg3);
  7156. jresult = (jboolean)result;
  7157. return jresult;
  7158. }
  7159. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  7160. jlong jresult = 0 ;
  7161. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7162. void *arg2 = (void *) 0 ;
  7163. unsigned int arg3 ;
  7164. unsigned int result;
  7165. (void)jenv;
  7166. (void)jcls;
  7167. (void)jarg1_;
  7168. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7169. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7170. arg3 = (unsigned int)jarg3;
  7171. result = (unsigned int)(arg1)->pull(arg2,arg3);
  7172. jresult = (jlong)result;
  7173. return jresult;
  7174. }
  7175. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  7176. jlong jresult = 0 ;
  7177. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7178. void *arg2 = (void *) 0 ;
  7179. unsigned int result;
  7180. (void)jenv;
  7181. (void)jcls;
  7182. (void)jarg1_;
  7183. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7184. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7185. result = (unsigned int)(arg1)->pull(arg2);
  7186. jresult = (jlong)result;
  7187. return jresult;
  7188. }
  7189. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7190. jlong jresult = 0 ;
  7191. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7192. unsigned int result;
  7193. (void)jenv;
  7194. (void)jcls;
  7195. (void)jarg1_;
  7196. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7197. result = (unsigned int)(arg1)->pull();
  7198. jresult = (jlong)result;
  7199. return jresult;
  7200. }
  7201. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  7202. jboolean jresult = 0 ;
  7203. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7204. unsigned int arg2 ;
  7205. bool result;
  7206. (void)jenv;
  7207. (void)jcls;
  7208. (void)jarg1_;
  7209. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7210. arg2 = (unsigned int)jarg2;
  7211. result = (bool)(arg1)->setGain(arg2);
  7212. jresult = (jboolean)result;
  7213. return jresult;
  7214. }
  7215. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7216. jlong jresult = 0 ;
  7217. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7218. unsigned int result;
  7219. (void)jenv;
  7220. (void)jcls;
  7221. (void)jarg1_;
  7222. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7223. result = (unsigned int)(arg1)->getGain();
  7224. jresult = (jlong)result;
  7225. return jresult;
  7226. }
  7227. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7228. jboolean jresult = 0 ;
  7229. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7230. bool result;
  7231. (void)jenv;
  7232. (void)jcls;
  7233. (void)jarg1_;
  7234. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7235. result = (bool)(arg1)->reset();
  7236. jresult = (jboolean)result;
  7237. return jresult;
  7238. }
  7239. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  7240. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7241. ProxyAudioConsumerCallback *arg2 = (ProxyAudioConsumerCallback *) 0 ;
  7242. (void)jenv;
  7243. (void)jcls;
  7244. (void)jarg1_;
  7245. (void)jarg2_;
  7246. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7247. arg2 = *(ProxyAudioConsumerCallback **)&jarg2;
  7248. (arg1)->setCallback(arg2);
  7249. }
  7250. SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7251. jobject jresult = 0 ;
  7252. ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
  7253. uint64_t result;
  7254. (void)jenv;
  7255. (void)jcls;
  7256. (void)jarg1_;
  7257. arg1 = *(ProxyAudioConsumer **)&jarg1;
  7258. result = (uint64_t)(arg1)->getMediaSessionId();
  7259. {
  7260. jbyteArray ba = jenv->NewByteArray(9);
  7261. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  7262. jclass clazz = jenv->FindClass("java/math/BigInteger");
  7263. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  7264. jobject bigint;
  7265. int i;
  7266. bae[0] = 0;
  7267. for(i=1; i<9; i++ ) {
  7268. bae[i] = (jbyte)(result>>8*(8-i));
  7269. }
  7270. jenv->ReleaseByteArrayElements(ba, bae, 0);
  7271. bigint = jenv->NewObject(clazz, mid, ba);
  7272. jresult = bigint;
  7273. }
  7274. return jresult;
  7275. }
  7276. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
  7277. jboolean jresult = 0 ;
  7278. bool result;
  7279. (void)jenv;
  7280. (void)jcls;
  7281. result = (bool)ProxyAudioConsumer::registerPlugin();
  7282. jresult = (jboolean)result;
  7283. return jresult;
  7284. }
  7285. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls) {
  7286. jlong jresult = 0 ;
  7287. ProxyVideoConsumerCallback *result = 0 ;
  7288. (void)jenv;
  7289. (void)jcls;
  7290. result = (ProxyVideoConsumerCallback *)new SwigDirector_ProxyVideoConsumerCallback(jenv);
  7291. *(ProxyVideoConsumerCallback **)&jresult = result;
  7292. return jresult;
  7293. }
  7294. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  7295. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7296. (void)jenv;
  7297. (void)jcls;
  7298. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7299. delete arg1;
  7300. }
  7301. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  7302. jint jresult = 0 ;
  7303. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7304. int arg2 ;
  7305. int arg3 ;
  7306. int arg4 ;
  7307. int result;
  7308. (void)jenv;
  7309. (void)jcls;
  7310. (void)jarg1_;
  7311. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7312. arg2 = (int)jarg2;
  7313. arg3 = (int)jarg3;
  7314. arg4 = (int)jarg4;
  7315. result = (int)(arg1)->prepare(arg2,arg3,arg4);
  7316. jresult = (jint)result;
  7317. return jresult;
  7318. }
  7319. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepareSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  7320. jint jresult = 0 ;
  7321. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7322. int arg2 ;
  7323. int arg3 ;
  7324. int arg4 ;
  7325. int result;
  7326. (void)jenv;
  7327. (void)jcls;
  7328. (void)jarg1_;
  7329. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7330. arg2 = (int)jarg2;
  7331. arg3 = (int)jarg3;
  7332. arg4 = (int)jarg4;
  7333. result = (int)(arg1)->ProxyVideoConsumerCallback::prepare(arg2,arg3,arg4);
  7334. jresult = (jint)result;
  7335. return jresult;
  7336. }
  7337. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consume(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  7338. jint jresult = 0 ;
  7339. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7340. ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ;
  7341. int result;
  7342. (void)jenv;
  7343. (void)jcls;
  7344. (void)jarg1_;
  7345. (void)jarg2_;
  7346. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7347. arg2 = *(ProxyVideoFrame **)&jarg2;
  7348. result = (int)(arg1)->consume((ProxyVideoFrame const *)arg2);
  7349. jresult = (jint)result;
  7350. return jresult;
  7351. }
  7352. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consumeSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  7353. jint jresult = 0 ;
  7354. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7355. ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ;
  7356. int result;
  7357. (void)jenv;
  7358. (void)jcls;
  7359. (void)jarg1_;
  7360. (void)jarg2_;
  7361. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7362. arg2 = *(ProxyVideoFrame **)&jarg2;
  7363. result = (int)(arg1)->ProxyVideoConsumerCallback::consume((ProxyVideoFrame const *)arg2);
  7364. jresult = (jint)result;
  7365. return jresult;
  7366. }
  7367. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopied(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
  7368. jint jresult = 0 ;
  7369. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7370. unsigned int arg2 ;
  7371. unsigned int arg3 ;
  7372. int result;
  7373. (void)jenv;
  7374. (void)jcls;
  7375. (void)jarg1_;
  7376. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7377. arg2 = (unsigned int)jarg2;
  7378. arg3 = (unsigned int)jarg3;
  7379. result = (int)(arg1)->bufferCopied(arg2,arg3);
  7380. jresult = (jint)result;
  7381. return jresult;
  7382. }
  7383. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopiedSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
  7384. jint jresult = 0 ;
  7385. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7386. unsigned int arg2 ;
  7387. unsigned int arg3 ;
  7388. int result;
  7389. (void)jenv;
  7390. (void)jcls;
  7391. (void)jarg1_;
  7392. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7393. arg2 = (unsigned int)jarg2;
  7394. arg3 = (unsigned int)jarg3;
  7395. result = (int)(arg1)->ProxyVideoConsumerCallback::bufferCopied(arg2,arg3);
  7396. jresult = (jint)result;
  7397. return jresult;
  7398. }
  7399. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7400. jint jresult = 0 ;
  7401. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7402. int result;
  7403. (void)jenv;
  7404. (void)jcls;
  7405. (void)jarg1_;
  7406. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7407. result = (int)(arg1)->start();
  7408. jresult = (jint)result;
  7409. return jresult;
  7410. }
  7411. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1startSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7412. jint jresult = 0 ;
  7413. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7414. int result;
  7415. (void)jenv;
  7416. (void)jcls;
  7417. (void)jarg1_;
  7418. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7419. result = (int)(arg1)->ProxyVideoConsumerCallback::start();
  7420. jresult = (jint)result;
  7421. return jresult;
  7422. }
  7423. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7424. jint jresult = 0 ;
  7425. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7426. int result;
  7427. (void)jenv;
  7428. (void)jcls;
  7429. (void)jarg1_;
  7430. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7431. result = (int)(arg1)->pause();
  7432. jresult = (jint)result;
  7433. return jresult;
  7434. }
  7435. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pauseSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7436. jint jresult = 0 ;
  7437. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7438. int result;
  7439. (void)jenv;
  7440. (void)jcls;
  7441. (void)jarg1_;
  7442. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7443. result = (int)(arg1)->ProxyVideoConsumerCallback::pause();
  7444. jresult = (jint)result;
  7445. return jresult;
  7446. }
  7447. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7448. jint jresult = 0 ;
  7449. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7450. int result;
  7451. (void)jenv;
  7452. (void)jcls;
  7453. (void)jarg1_;
  7454. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7455. result = (int)(arg1)->stop();
  7456. jresult = (jint)result;
  7457. return jresult;
  7458. }
  7459. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stopSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7460. jint jresult = 0 ;
  7461. ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
  7462. int result;
  7463. (void)jenv;
  7464. (void)jcls;
  7465. (void)jarg1_;
  7466. arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
  7467. result = (int)(arg1)->ProxyVideoConsumerCallback::stop();
  7468. jresult = (jint)result;
  7469. return jresult;
  7470. }
  7471. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  7472. ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg);
  7473. (void)jcls;
  7474. SwigDirector_ProxyVideoConsumerCallback *director = static_cast<SwigDirector_ProxyVideoConsumerCallback *>(obj);
  7475. if (director) {
  7476. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  7477. }
  7478. }
  7479. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  7480. ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg);
  7481. SwigDirector_ProxyVideoConsumerCallback *director = static_cast<SwigDirector_ProxyVideoConsumerCallback *>(obj);
  7482. (void)jcls;
  7483. if (director) {
  7484. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  7485. }
  7486. }
  7487. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  7488. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7489. (void)jenv;
  7490. (void)jcls;
  7491. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7492. delete arg1;
  7493. }
  7494. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDisplaySize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
  7495. jboolean jresult = 0 ;
  7496. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7497. unsigned int arg2 ;
  7498. unsigned int arg3 ;
  7499. bool result;
  7500. (void)jenv;
  7501. (void)jcls;
  7502. (void)jarg1_;
  7503. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7504. arg2 = (unsigned int)jarg2;
  7505. arg3 = (unsigned int)jarg3;
  7506. result = (bool)(arg1)->setDisplaySize(arg2,arg3);
  7507. jresult = (jboolean)result;
  7508. return jresult;
  7509. }
  7510. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7511. jlong jresult = 0 ;
  7512. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7513. unsigned int result;
  7514. (void)jenv;
  7515. (void)jcls;
  7516. (void)jarg1_;
  7517. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7518. result = (unsigned int)(arg1)->getDisplayWidth();
  7519. jresult = (jlong)result;
  7520. return jresult;
  7521. }
  7522. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7523. jlong jresult = 0 ;
  7524. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7525. unsigned int result;
  7526. (void)jenv;
  7527. (void)jcls;
  7528. (void)jarg1_;
  7529. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7530. result = (unsigned int)(arg1)->getDisplayHeight();
  7531. jresult = (jlong)result;
  7532. return jresult;
  7533. }
  7534. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7535. jlong jresult = 0 ;
  7536. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7537. unsigned int result;
  7538. (void)jenv;
  7539. (void)jcls;
  7540. (void)jarg1_;
  7541. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7542. result = (unsigned int)(arg1)->getDecodedWidth();
  7543. jresult = (jlong)result;
  7544. return jresult;
  7545. }
  7546. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7547. jlong jresult = 0 ;
  7548. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7549. unsigned int result;
  7550. (void)jenv;
  7551. (void)jcls;
  7552. (void)jarg1_;
  7553. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7554. result = (unsigned int)(arg1)->getDecodedHeight();
  7555. jresult = (jlong)result;
  7556. return jresult;
  7557. }
  7558. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  7559. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7560. ProxyVideoConsumerCallback *arg2 = (ProxyVideoConsumerCallback *) 0 ;
  7561. (void)jenv;
  7562. (void)jcls;
  7563. (void)jarg1_;
  7564. (void)jarg2_;
  7565. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7566. arg2 = *(ProxyVideoConsumerCallback **)&jarg2;
  7567. (arg1)->setCallback(arg2);
  7568. }
  7569. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  7570. jboolean jresult = 0 ;
  7571. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7572. bool arg2 ;
  7573. bool result;
  7574. (void)jenv;
  7575. (void)jcls;
  7576. (void)jarg1_;
  7577. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7578. arg2 = jarg2 ? true : false;
  7579. result = (bool)(arg1)->setAutoResizeDisplay(arg2);
  7580. jresult = (jboolean)result;
  7581. return jresult;
  7582. }
  7583. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7584. jboolean jresult = 0 ;
  7585. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7586. bool result;
  7587. (void)jenv;
  7588. (void)jcls;
  7589. (void)jarg1_;
  7590. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7591. result = (bool)((ProxyVideoConsumer const *)arg1)->getAutoResizeDisplay();
  7592. jresult = (jboolean)result;
  7593. return jresult;
  7594. }
  7595. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setConsumeBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  7596. jboolean jresult = 0 ;
  7597. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7598. void *arg2 = (void *) 0 ;
  7599. unsigned int arg3 ;
  7600. bool result;
  7601. (void)jenv;
  7602. (void)jcls;
  7603. (void)jarg1_;
  7604. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7605. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7606. arg3 = (unsigned int)jarg3;
  7607. result = (bool)(arg1)->setConsumeBuffer((void const *)arg2,arg3);
  7608. jresult = (jboolean)result;
  7609. return jresult;
  7610. }
  7611. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1pull(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  7612. jlong jresult = 0 ;
  7613. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7614. void *arg2 = (void *) 0 ;
  7615. unsigned int arg3 ;
  7616. unsigned int result;
  7617. (void)jenv;
  7618. (void)jcls;
  7619. (void)jarg1_;
  7620. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7621. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7622. arg3 = (unsigned int)jarg3;
  7623. result = (unsigned int)(arg1)->pull(arg2,arg3);
  7624. jresult = (jlong)result;
  7625. return jresult;
  7626. }
  7627. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7628. jboolean jresult = 0 ;
  7629. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7630. bool result;
  7631. (void)jenv;
  7632. (void)jcls;
  7633. (void)jarg1_;
  7634. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7635. result = (bool)(arg1)->reset();
  7636. jresult = (jboolean)result;
  7637. return jresult;
  7638. }
  7639. SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7640. jobject jresult = 0 ;
  7641. ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
  7642. uint64_t result;
  7643. (void)jenv;
  7644. (void)jcls;
  7645. (void)jarg1_;
  7646. arg1 = *(ProxyVideoConsumer **)&jarg1;
  7647. result = (uint64_t)(arg1)->getMediaSessionId();
  7648. {
  7649. jbyteArray ba = jenv->NewByteArray(9);
  7650. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  7651. jclass clazz = jenv->FindClass("java/math/BigInteger");
  7652. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  7653. jobject bigint;
  7654. int i;
  7655. bae[0] = 0;
  7656. for(i=1; i<9; i++ ) {
  7657. bae[i] = (jbyte)(result>>8*(8-i));
  7658. }
  7659. jenv->ReleaseByteArrayElements(ba, bae, 0);
  7660. bigint = jenv->NewObject(clazz, mid, ba);
  7661. jresult = bigint;
  7662. }
  7663. return jresult;
  7664. }
  7665. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
  7666. jboolean jresult = 0 ;
  7667. bool result;
  7668. (void)jenv;
  7669. (void)jcls;
  7670. result = (bool)ProxyVideoConsumer::registerPlugin();
  7671. jresult = (jboolean)result;
  7672. return jresult;
  7673. }
  7674. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) {
  7675. tmedia_chroma_t arg1 ;
  7676. (void)jenv;
  7677. (void)jcls;
  7678. arg1 = (tmedia_chroma_t)jarg1;
  7679. ProxyVideoConsumer::setDefaultChroma(arg1);
  7680. }
  7681. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
  7682. bool arg1 ;
  7683. (void)jenv;
  7684. (void)jcls;
  7685. arg1 = jarg1 ? true : false;
  7686. ProxyVideoConsumer::setDefaultAutoResizeDisplay(arg1);
  7687. }
  7688. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoFrame(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  7689. ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
  7690. (void)jenv;
  7691. (void)jcls;
  7692. arg1 = *(ProxyVideoFrame **)&jarg1;
  7693. delete arg1;
  7694. }
  7695. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7696. jlong jresult = 0 ;
  7697. ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
  7698. unsigned int result;
  7699. (void)jenv;
  7700. (void)jcls;
  7701. (void)jarg1_;
  7702. arg1 = *(ProxyVideoFrame **)&jarg1;
  7703. result = (unsigned int)(arg1)->getSize();
  7704. jresult = (jlong)result;
  7705. return jresult;
  7706. }
  7707. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  7708. jlong jresult = 0 ;
  7709. ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
  7710. void *arg2 = (void *) 0 ;
  7711. unsigned int arg3 ;
  7712. unsigned int result;
  7713. (void)jenv;
  7714. (void)jcls;
  7715. (void)jarg1_;
  7716. arg1 = *(ProxyVideoFrame **)&jarg1;
  7717. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7718. arg3 = (unsigned int)jarg3;
  7719. result = (unsigned int)(arg1)->getContent(arg2,arg3);
  7720. jresult = (jlong)result;
  7721. return jresult;
  7722. }
  7723. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7724. jlong jresult = 0 ;
  7725. ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
  7726. unsigned int result;
  7727. (void)jenv;
  7728. (void)jcls;
  7729. (void)jarg1_;
  7730. arg1 = *(ProxyVideoFrame **)&jarg1;
  7731. result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameWidth();
  7732. jresult = (jlong)result;
  7733. return jresult;
  7734. }
  7735. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7736. jlong jresult = 0 ;
  7737. ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
  7738. unsigned int result;
  7739. (void)jenv;
  7740. (void)jcls;
  7741. (void)jarg1_;
  7742. arg1 = *(ProxyVideoFrame **)&jarg1;
  7743. result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameHeight();
  7744. jresult = (jlong)result;
  7745. return jresult;
  7746. }
  7747. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls) {
  7748. jlong jresult = 0 ;
  7749. ProxyAudioProducerCallback *result = 0 ;
  7750. (void)jenv;
  7751. (void)jcls;
  7752. result = (ProxyAudioProducerCallback *)new SwigDirector_ProxyAudioProducerCallback(jenv);
  7753. *(ProxyAudioProducerCallback **)&jresult = result;
  7754. return jresult;
  7755. }
  7756. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  7757. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7758. (void)jenv;
  7759. (void)jcls;
  7760. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7761. delete arg1;
  7762. }
  7763. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  7764. jint jresult = 0 ;
  7765. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7766. int arg2 ;
  7767. int arg3 ;
  7768. int arg4 ;
  7769. int result;
  7770. (void)jenv;
  7771. (void)jcls;
  7772. (void)jarg1_;
  7773. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7774. arg2 = (int)jarg2;
  7775. arg3 = (int)jarg3;
  7776. arg4 = (int)jarg4;
  7777. result = (int)(arg1)->prepare(arg2,arg3,arg4);
  7778. jresult = (jint)result;
  7779. return jresult;
  7780. }
  7781. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepareSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  7782. jint jresult = 0 ;
  7783. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7784. int arg2 ;
  7785. int arg3 ;
  7786. int arg4 ;
  7787. int result;
  7788. (void)jenv;
  7789. (void)jcls;
  7790. (void)jarg1_;
  7791. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7792. arg2 = (int)jarg2;
  7793. arg3 = (int)jarg3;
  7794. arg4 = (int)jarg4;
  7795. result = (int)(arg1)->ProxyAudioProducerCallback::prepare(arg2,arg3,arg4);
  7796. jresult = (jint)result;
  7797. return jresult;
  7798. }
  7799. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7800. jint jresult = 0 ;
  7801. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7802. int result;
  7803. (void)jenv;
  7804. (void)jcls;
  7805. (void)jarg1_;
  7806. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7807. result = (int)(arg1)->start();
  7808. jresult = (jint)result;
  7809. return jresult;
  7810. }
  7811. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1startSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7812. jint jresult = 0 ;
  7813. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7814. int result;
  7815. (void)jenv;
  7816. (void)jcls;
  7817. (void)jarg1_;
  7818. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7819. result = (int)(arg1)->ProxyAudioProducerCallback::start();
  7820. jresult = (jint)result;
  7821. return jresult;
  7822. }
  7823. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7824. jint jresult = 0 ;
  7825. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7826. int result;
  7827. (void)jenv;
  7828. (void)jcls;
  7829. (void)jarg1_;
  7830. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7831. result = (int)(arg1)->pause();
  7832. jresult = (jint)result;
  7833. return jresult;
  7834. }
  7835. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pauseSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7836. jint jresult = 0 ;
  7837. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7838. int result;
  7839. (void)jenv;
  7840. (void)jcls;
  7841. (void)jarg1_;
  7842. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7843. result = (int)(arg1)->ProxyAudioProducerCallback::pause();
  7844. jresult = (jint)result;
  7845. return jresult;
  7846. }
  7847. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7848. jint jresult = 0 ;
  7849. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7850. int result;
  7851. (void)jenv;
  7852. (void)jcls;
  7853. (void)jarg1_;
  7854. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7855. result = (int)(arg1)->stop();
  7856. jresult = (jint)result;
  7857. return jresult;
  7858. }
  7859. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stopSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7860. jint jresult = 0 ;
  7861. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7862. int result;
  7863. (void)jenv;
  7864. (void)jcls;
  7865. (void)jarg1_;
  7866. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7867. result = (int)(arg1)->ProxyAudioProducerCallback::stop();
  7868. jresult = (jint)result;
  7869. return jresult;
  7870. }
  7871. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7872. jint jresult = 0 ;
  7873. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7874. int result;
  7875. (void)jenv;
  7876. (void)jcls;
  7877. (void)jarg1_;
  7878. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7879. result = (int)(arg1)->fillPushBuffer();
  7880. jresult = (jint)result;
  7881. return jresult;
  7882. }
  7883. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBufferSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  7884. jint jresult = 0 ;
  7885. ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
  7886. int result;
  7887. (void)jenv;
  7888. (void)jcls;
  7889. (void)jarg1_;
  7890. arg1 = *(ProxyAudioProducerCallback **)&jarg1;
  7891. result = (int)(arg1)->ProxyAudioProducerCallback::fillPushBuffer();
  7892. jresult = (jint)result;
  7893. return jresult;
  7894. }
  7895. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  7896. ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg);
  7897. (void)jcls;
  7898. SwigDirector_ProxyAudioProducerCallback *director = static_cast<SwigDirector_ProxyAudioProducerCallback *>(obj);
  7899. if (director) {
  7900. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  7901. }
  7902. }
  7903. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  7904. ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg);
  7905. SwigDirector_ProxyAudioProducerCallback *director = static_cast<SwigDirector_ProxyAudioProducerCallback *>(obj);
  7906. (void)jcls;
  7907. if (director) {
  7908. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  7909. }
  7910. }
  7911. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  7912. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  7913. (void)jenv;
  7914. (void)jcls;
  7915. arg1 = *(ProxyAudioProducer **)&jarg1;
  7916. delete arg1;
  7917. }
  7918. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActualSndCardRecordParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  7919. jboolean jresult = 0 ;
  7920. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  7921. int arg2 ;
  7922. int arg3 ;
  7923. int arg4 ;
  7924. bool result;
  7925. (void)jenv;
  7926. (void)jcls;
  7927. (void)jarg1_;
  7928. arg1 = *(ProxyAudioProducer **)&jarg1;
  7929. arg2 = (int)jarg2;
  7930. arg3 = (int)jarg3;
  7931. arg4 = (int)jarg4;
  7932. result = (bool)(arg1)->setActualSndCardRecordParams(arg2,arg3,arg4);
  7933. jresult = (jboolean)result;
  7934. return jresult;
  7935. }
  7936. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jboolean jarg4) {
  7937. jboolean jresult = 0 ;
  7938. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  7939. void *arg2 = (void *) 0 ;
  7940. unsigned int arg3 ;
  7941. bool arg4 ;
  7942. bool result;
  7943. (void)jenv;
  7944. (void)jcls;
  7945. (void)jarg1_;
  7946. arg1 = *(ProxyAudioProducer **)&jarg1;
  7947. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7948. arg3 = (unsigned int)jarg3;
  7949. arg4 = jarg4 ? true : false;
  7950. result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3,arg4);
  7951. jresult = (jboolean)result;
  7952. return jresult;
  7953. }
  7954. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  7955. jboolean jresult = 0 ;
  7956. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  7957. void *arg2 = (void *) 0 ;
  7958. unsigned int arg3 ;
  7959. bool result;
  7960. (void)jenv;
  7961. (void)jcls;
  7962. (void)jarg1_;
  7963. arg1 = *(ProxyAudioProducer **)&jarg1;
  7964. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7965. arg3 = (unsigned int)jarg3;
  7966. result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3);
  7967. jresult = (jboolean)result;
  7968. return jresult;
  7969. }
  7970. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  7971. jint jresult = 0 ;
  7972. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  7973. void *arg2 = (void *) 0 ;
  7974. unsigned int arg3 ;
  7975. int result;
  7976. (void)jenv;
  7977. (void)jcls;
  7978. (void)jarg1_;
  7979. arg1 = *(ProxyAudioProducer **)&jarg1;
  7980. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7981. arg3 = (unsigned int)jarg3;
  7982. result = (int)(arg1)->push((void const *)arg2,arg3);
  7983. jresult = (jint)result;
  7984. return jresult;
  7985. }
  7986. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
  7987. jint jresult = 0 ;
  7988. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  7989. void *arg2 = (void *) 0 ;
  7990. int result;
  7991. (void)jenv;
  7992. (void)jcls;
  7993. (void)jarg1_;
  7994. arg1 = *(ProxyAudioProducer **)&jarg1;
  7995. arg2 = jenv->GetDirectBufferAddress(jarg2);
  7996. result = (int)(arg1)->push((void const *)arg2);
  7997. jresult = (jint)result;
  7998. return jresult;
  7999. }
  8000. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8001. jint jresult = 0 ;
  8002. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  8003. int result;
  8004. (void)jenv;
  8005. (void)jcls;
  8006. (void)jarg1_;
  8007. arg1 = *(ProxyAudioProducer **)&jarg1;
  8008. result = (int)(arg1)->push();
  8009. jresult = (jint)result;
  8010. return jresult;
  8011. }
  8012. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  8013. jboolean jresult = 0 ;
  8014. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  8015. unsigned int arg2 ;
  8016. bool result;
  8017. (void)jenv;
  8018. (void)jcls;
  8019. (void)jarg1_;
  8020. arg1 = *(ProxyAudioProducer **)&jarg1;
  8021. arg2 = (unsigned int)jarg2;
  8022. result = (bool)(arg1)->setGain(arg2);
  8023. jresult = (jboolean)result;
  8024. return jresult;
  8025. }
  8026. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8027. jlong jresult = 0 ;
  8028. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  8029. unsigned int result;
  8030. (void)jenv;
  8031. (void)jcls;
  8032. (void)jarg1_;
  8033. arg1 = *(ProxyAudioProducer **)&jarg1;
  8034. result = (unsigned int)(arg1)->getGain();
  8035. jresult = (jlong)result;
  8036. return jresult;
  8037. }
  8038. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8039. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  8040. ProxyAudioProducerCallback *arg2 = (ProxyAudioProducerCallback *) 0 ;
  8041. (void)jenv;
  8042. (void)jcls;
  8043. (void)jarg1_;
  8044. (void)jarg2_;
  8045. arg1 = *(ProxyAudioProducer **)&jarg1;
  8046. arg2 = *(ProxyAudioProducerCallback **)&jarg2;
  8047. (arg1)->setCallback(arg2);
  8048. }
  8049. SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8050. jobject jresult = 0 ;
  8051. ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
  8052. uint64_t result;
  8053. (void)jenv;
  8054. (void)jcls;
  8055. (void)jarg1_;
  8056. arg1 = *(ProxyAudioProducer **)&jarg1;
  8057. result = (uint64_t)(arg1)->getMediaSessionId();
  8058. {
  8059. jbyteArray ba = jenv->NewByteArray(9);
  8060. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  8061. jclass clazz = jenv->FindClass("java/math/BigInteger");
  8062. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  8063. jobject bigint;
  8064. int i;
  8065. bae[0] = 0;
  8066. for(i=1; i<9; i++ ) {
  8067. bae[i] = (jbyte)(result>>8*(8-i));
  8068. }
  8069. jenv->ReleaseByteArrayElements(ba, bae, 0);
  8070. bigint = jenv->NewObject(clazz, mid, ba);
  8071. jresult = bigint;
  8072. }
  8073. return jresult;
  8074. }
  8075. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
  8076. jboolean jresult = 0 ;
  8077. bool result;
  8078. (void)jenv;
  8079. (void)jcls;
  8080. result = (bool)ProxyAudioProducer::registerPlugin();
  8081. jresult = (jboolean)result;
  8082. return jresult;
  8083. }
  8084. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls) {
  8085. jlong jresult = 0 ;
  8086. ProxyVideoProducerCallback *result = 0 ;
  8087. (void)jenv;
  8088. (void)jcls;
  8089. result = (ProxyVideoProducerCallback *)new SwigDirector_ProxyVideoProducerCallback(jenv);
  8090. *(ProxyVideoProducerCallback **)&jresult = result;
  8091. return jresult;
  8092. }
  8093. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  8094. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8095. (void)jenv;
  8096. (void)jcls;
  8097. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8098. delete arg1;
  8099. }
  8100. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  8101. jint jresult = 0 ;
  8102. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8103. int arg2 ;
  8104. int arg3 ;
  8105. int arg4 ;
  8106. int result;
  8107. (void)jenv;
  8108. (void)jcls;
  8109. (void)jarg1_;
  8110. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8111. arg2 = (int)jarg2;
  8112. arg3 = (int)jarg3;
  8113. arg4 = (int)jarg4;
  8114. result = (int)(arg1)->prepare(arg2,arg3,arg4);
  8115. jresult = (jint)result;
  8116. return jresult;
  8117. }
  8118. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepareSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
  8119. jint jresult = 0 ;
  8120. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8121. int arg2 ;
  8122. int arg3 ;
  8123. int arg4 ;
  8124. int result;
  8125. (void)jenv;
  8126. (void)jcls;
  8127. (void)jarg1_;
  8128. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8129. arg2 = (int)jarg2;
  8130. arg3 = (int)jarg3;
  8131. arg4 = (int)jarg4;
  8132. result = (int)(arg1)->ProxyVideoProducerCallback::prepare(arg2,arg3,arg4);
  8133. jresult = (jint)result;
  8134. return jresult;
  8135. }
  8136. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8137. jint jresult = 0 ;
  8138. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8139. int result;
  8140. (void)jenv;
  8141. (void)jcls;
  8142. (void)jarg1_;
  8143. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8144. result = (int)(arg1)->start();
  8145. jresult = (jint)result;
  8146. return jresult;
  8147. }
  8148. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1startSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8149. jint jresult = 0 ;
  8150. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8151. int result;
  8152. (void)jenv;
  8153. (void)jcls;
  8154. (void)jarg1_;
  8155. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8156. result = (int)(arg1)->ProxyVideoProducerCallback::start();
  8157. jresult = (jint)result;
  8158. return jresult;
  8159. }
  8160. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8161. jint jresult = 0 ;
  8162. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8163. int result;
  8164. (void)jenv;
  8165. (void)jcls;
  8166. (void)jarg1_;
  8167. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8168. result = (int)(arg1)->pause();
  8169. jresult = (jint)result;
  8170. return jresult;
  8171. }
  8172. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pauseSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8173. jint jresult = 0 ;
  8174. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8175. int result;
  8176. (void)jenv;
  8177. (void)jcls;
  8178. (void)jarg1_;
  8179. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8180. result = (int)(arg1)->ProxyVideoProducerCallback::pause();
  8181. jresult = (jint)result;
  8182. return jresult;
  8183. }
  8184. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8185. jint jresult = 0 ;
  8186. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8187. int result;
  8188. (void)jenv;
  8189. (void)jcls;
  8190. (void)jarg1_;
  8191. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8192. result = (int)(arg1)->stop();
  8193. jresult = (jint)result;
  8194. return jresult;
  8195. }
  8196. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stopSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8197. jint jresult = 0 ;
  8198. ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
  8199. int result;
  8200. (void)jenv;
  8201. (void)jcls;
  8202. (void)jarg1_;
  8203. arg1 = *(ProxyVideoProducerCallback **)&jarg1;
  8204. result = (int)(arg1)->ProxyVideoProducerCallback::stop();
  8205. jresult = (jint)result;
  8206. return jresult;
  8207. }
  8208. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  8209. ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg);
  8210. (void)jcls;
  8211. SwigDirector_ProxyVideoProducerCallback *director = static_cast<SwigDirector_ProxyVideoProducerCallback *>(obj);
  8212. if (director) {
  8213. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  8214. }
  8215. }
  8216. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  8217. ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg);
  8218. SwigDirector_ProxyVideoProducerCallback *director = static_cast<SwigDirector_ProxyVideoProducerCallback *>(obj);
  8219. (void)jcls;
  8220. if (director) {
  8221. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  8222. }
  8223. }
  8224. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  8225. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8226. (void)jenv;
  8227. (void)jcls;
  8228. arg1 = *(ProxyVideoProducer **)&jarg1;
  8229. delete arg1;
  8230. }
  8231. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8232. jint jresult = 0 ;
  8233. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8234. int result;
  8235. (void)jenv;
  8236. (void)jcls;
  8237. (void)jarg1_;
  8238. arg1 = *(ProxyVideoProducer **)&jarg1;
  8239. result = (int)((ProxyVideoProducer const *)arg1)->getRotation();
  8240. jresult = (jint)result;
  8241. return jresult;
  8242. }
  8243. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  8244. jboolean jresult = 0 ;
  8245. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8246. int arg2 ;
  8247. bool result;
  8248. (void)jenv;
  8249. (void)jcls;
  8250. (void)jarg1_;
  8251. arg1 = *(ProxyVideoProducer **)&jarg1;
  8252. arg2 = (int)jarg2;
  8253. result = (bool)(arg1)->setRotation(arg2);
  8254. jresult = (jboolean)result;
  8255. return jresult;
  8256. }
  8257. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8258. jboolean jresult = 0 ;
  8259. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8260. bool result;
  8261. (void)jenv;
  8262. (void)jcls;
  8263. (void)jarg1_;
  8264. arg1 = *(ProxyVideoProducer **)&jarg1;
  8265. result = (bool)((ProxyVideoProducer const *)arg1)->getMirror();
  8266. jresult = (jboolean)result;
  8267. return jresult;
  8268. }
  8269. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  8270. jboolean jresult = 0 ;
  8271. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8272. bool arg2 ;
  8273. bool result;
  8274. (void)jenv;
  8275. (void)jcls;
  8276. (void)jarg1_;
  8277. arg1 = *(ProxyVideoProducer **)&jarg1;
  8278. arg2 = jarg2 ? true : false;
  8279. result = (bool)(arg1)->setMirror(arg2);
  8280. jresult = (jboolean)result;
  8281. return jresult;
  8282. }
  8283. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setActualCameraOutputSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
  8284. jboolean jresult = 0 ;
  8285. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8286. unsigned int arg2 ;
  8287. unsigned int arg3 ;
  8288. bool result;
  8289. (void)jenv;
  8290. (void)jcls;
  8291. (void)jarg1_;
  8292. arg1 = *(ProxyVideoProducer **)&jarg1;
  8293. arg2 = (unsigned int)jarg2;
  8294. arg3 = (unsigned int)jarg3;
  8295. result = (bool)(arg1)->setActualCameraOutputSize(arg2,arg3);
  8296. jresult = (jboolean)result;
  8297. return jresult;
  8298. }
  8299. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1push(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  8300. jint jresult = 0 ;
  8301. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8302. void *arg2 = (void *) 0 ;
  8303. unsigned int arg3 ;
  8304. int result;
  8305. (void)jenv;
  8306. (void)jcls;
  8307. (void)jarg1_;
  8308. arg1 = *(ProxyVideoProducer **)&jarg1;
  8309. arg2 = jenv->GetDirectBufferAddress(jarg2);
  8310. arg3 = (unsigned int)jarg3;
  8311. result = (int)(arg1)->push((void const *)arg2,arg3);
  8312. jresult = (jint)result;
  8313. return jresult;
  8314. }
  8315. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8316. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8317. ProxyVideoProducerCallback *arg2 = (ProxyVideoProducerCallback *) 0 ;
  8318. (void)jenv;
  8319. (void)jcls;
  8320. (void)jarg1_;
  8321. (void)jarg2_;
  8322. arg1 = *(ProxyVideoProducer **)&jarg1;
  8323. arg2 = *(ProxyVideoProducerCallback **)&jarg2;
  8324. (arg1)->setCallback(arg2);
  8325. }
  8326. SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8327. jobject jresult = 0 ;
  8328. ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
  8329. uint64_t result;
  8330. (void)jenv;
  8331. (void)jcls;
  8332. (void)jarg1_;
  8333. arg1 = *(ProxyVideoProducer **)&jarg1;
  8334. result = (uint64_t)(arg1)->getMediaSessionId();
  8335. {
  8336. jbyteArray ba = jenv->NewByteArray(9);
  8337. jbyte* bae = jenv->GetByteArrayElements(ba, 0);
  8338. jclass clazz = jenv->FindClass("java/math/BigInteger");
  8339. jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
  8340. jobject bigint;
  8341. int i;
  8342. bae[0] = 0;
  8343. for(i=1; i<9; i++ ) {
  8344. bae[i] = (jbyte)(result>>8*(8-i));
  8345. }
  8346. jenv->ReleaseByteArrayElements(ba, bae, 0);
  8347. bigint = jenv->NewObject(clazz, mid, ba);
  8348. jresult = bigint;
  8349. }
  8350. return jresult;
  8351. }
  8352. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
  8353. jboolean jresult = 0 ;
  8354. bool result;
  8355. (void)jenv;
  8356. (void)jcls;
  8357. result = (bool)ProxyVideoProducer::registerPlugin();
  8358. jresult = (jboolean)result;
  8359. return jresult;
  8360. }
  8361. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) {
  8362. tmedia_chroma_t arg1 ;
  8363. (void)jenv;
  8364. (void)jcls;
  8365. arg1 = (tmedia_chroma_t)jarg1;
  8366. ProxyVideoProducer::setDefaultChroma(arg1);
  8367. }
  8368. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipCallback(JNIEnv *jenv, jclass jcls) {
  8369. jlong jresult = 0 ;
  8370. SipCallback *result = 0 ;
  8371. (void)jenv;
  8372. (void)jcls;
  8373. result = (SipCallback *)new SwigDirector_SipCallback(jenv);
  8374. *(SipCallback **)&jresult = result;
  8375. return jresult;
  8376. }
  8377. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  8378. SipCallback *arg1 = (SipCallback *) 0 ;
  8379. (void)jenv;
  8380. (void)jcls;
  8381. arg1 = *(SipCallback **)&jarg1;
  8382. delete arg1;
  8383. }
  8384. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8385. jint jresult = 0 ;
  8386. SipCallback *arg1 = (SipCallback *) 0 ;
  8387. DialogEvent *arg2 = (DialogEvent *) 0 ;
  8388. int result;
  8389. (void)jenv;
  8390. (void)jcls;
  8391. (void)jarg1_;
  8392. (void)jarg2_;
  8393. arg1 = *(SipCallback **)&jarg1;
  8394. arg2 = *(DialogEvent **)&jarg2;
  8395. result = (int)(arg1)->OnDialogEvent((DialogEvent const *)arg2);
  8396. jresult = (jint)result;
  8397. return jresult;
  8398. }
  8399. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8400. jint jresult = 0 ;
  8401. SipCallback *arg1 = (SipCallback *) 0 ;
  8402. DialogEvent *arg2 = (DialogEvent *) 0 ;
  8403. int result;
  8404. (void)jenv;
  8405. (void)jcls;
  8406. (void)jarg1_;
  8407. (void)jarg2_;
  8408. arg1 = *(SipCallback **)&jarg1;
  8409. arg2 = *(DialogEvent **)&jarg2;
  8410. result = (int)(arg1)->SipCallback::OnDialogEvent((DialogEvent const *)arg2);
  8411. jresult = (jint)result;
  8412. return jresult;
  8413. }
  8414. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8415. jint jresult = 0 ;
  8416. SipCallback *arg1 = (SipCallback *) 0 ;
  8417. StackEvent *arg2 = (StackEvent *) 0 ;
  8418. int result;
  8419. (void)jenv;
  8420. (void)jcls;
  8421. (void)jarg1_;
  8422. (void)jarg2_;
  8423. arg1 = *(SipCallback **)&jarg1;
  8424. arg2 = *(StackEvent **)&jarg2;
  8425. result = (int)(arg1)->OnStackEvent((StackEvent const *)arg2);
  8426. jresult = (jint)result;
  8427. return jresult;
  8428. }
  8429. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8430. jint jresult = 0 ;
  8431. SipCallback *arg1 = (SipCallback *) 0 ;
  8432. StackEvent *arg2 = (StackEvent *) 0 ;
  8433. int result;
  8434. (void)jenv;
  8435. (void)jcls;
  8436. (void)jarg1_;
  8437. (void)jarg2_;
  8438. arg1 = *(SipCallback **)&jarg1;
  8439. arg2 = *(StackEvent **)&jarg2;
  8440. result = (int)(arg1)->SipCallback::OnStackEvent((StackEvent const *)arg2);
  8441. jresult = (jint)result;
  8442. return jresult;
  8443. }
  8444. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8445. jint jresult = 0 ;
  8446. SipCallback *arg1 = (SipCallback *) 0 ;
  8447. InviteEvent *arg2 = (InviteEvent *) 0 ;
  8448. int result;
  8449. (void)jenv;
  8450. (void)jcls;
  8451. (void)jarg1_;
  8452. (void)jarg2_;
  8453. arg1 = *(SipCallback **)&jarg1;
  8454. arg2 = *(InviteEvent **)&jarg2;
  8455. result = (int)(arg1)->OnInviteEvent((InviteEvent const *)arg2);
  8456. jresult = (jint)result;
  8457. return jresult;
  8458. }
  8459. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8460. jint jresult = 0 ;
  8461. SipCallback *arg1 = (SipCallback *) 0 ;
  8462. InviteEvent *arg2 = (InviteEvent *) 0 ;
  8463. int result;
  8464. (void)jenv;
  8465. (void)jcls;
  8466. (void)jarg1_;
  8467. (void)jarg2_;
  8468. arg1 = *(SipCallback **)&jarg1;
  8469. arg2 = *(InviteEvent **)&jarg2;
  8470. result = (int)(arg1)->SipCallback::OnInviteEvent((InviteEvent const *)arg2);
  8471. jresult = (jint)result;
  8472. return jresult;
  8473. }
  8474. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8475. jint jresult = 0 ;
  8476. SipCallback *arg1 = (SipCallback *) 0 ;
  8477. MessagingEvent *arg2 = (MessagingEvent *) 0 ;
  8478. int result;
  8479. (void)jenv;
  8480. (void)jcls;
  8481. (void)jarg1_;
  8482. (void)jarg2_;
  8483. arg1 = *(SipCallback **)&jarg1;
  8484. arg2 = *(MessagingEvent **)&jarg2;
  8485. result = (int)(arg1)->OnMessagingEvent((MessagingEvent const *)arg2);
  8486. jresult = (jint)result;
  8487. return jresult;
  8488. }
  8489. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8490. jint jresult = 0 ;
  8491. SipCallback *arg1 = (SipCallback *) 0 ;
  8492. MessagingEvent *arg2 = (MessagingEvent *) 0 ;
  8493. int result;
  8494. (void)jenv;
  8495. (void)jcls;
  8496. (void)jarg1_;
  8497. (void)jarg2_;
  8498. arg1 = *(SipCallback **)&jarg1;
  8499. arg2 = *(MessagingEvent **)&jarg2;
  8500. result = (int)(arg1)->SipCallback::OnMessagingEvent((MessagingEvent const *)arg2);
  8501. jresult = (jint)result;
  8502. return jresult;
  8503. }
  8504. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8505. jint jresult = 0 ;
  8506. SipCallback *arg1 = (SipCallback *) 0 ;
  8507. InfoEvent *arg2 = (InfoEvent *) 0 ;
  8508. int result;
  8509. (void)jenv;
  8510. (void)jcls;
  8511. (void)jarg1_;
  8512. (void)jarg2_;
  8513. arg1 = *(SipCallback **)&jarg1;
  8514. arg2 = *(InfoEvent **)&jarg2;
  8515. result = (int)(arg1)->OnInfoEvent((InfoEvent const *)arg2);
  8516. jresult = (jint)result;
  8517. return jresult;
  8518. }
  8519. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8520. jint jresult = 0 ;
  8521. SipCallback *arg1 = (SipCallback *) 0 ;
  8522. InfoEvent *arg2 = (InfoEvent *) 0 ;
  8523. int result;
  8524. (void)jenv;
  8525. (void)jcls;
  8526. (void)jarg1_;
  8527. (void)jarg2_;
  8528. arg1 = *(SipCallback **)&jarg1;
  8529. arg2 = *(InfoEvent **)&jarg2;
  8530. result = (int)(arg1)->SipCallback::OnInfoEvent((InfoEvent const *)arg2);
  8531. jresult = (jint)result;
  8532. return jresult;
  8533. }
  8534. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8535. jint jresult = 0 ;
  8536. SipCallback *arg1 = (SipCallback *) 0 ;
  8537. OptionsEvent *arg2 = (OptionsEvent *) 0 ;
  8538. int result;
  8539. (void)jenv;
  8540. (void)jcls;
  8541. (void)jarg1_;
  8542. (void)jarg2_;
  8543. arg1 = *(SipCallback **)&jarg1;
  8544. arg2 = *(OptionsEvent **)&jarg2;
  8545. result = (int)(arg1)->OnOptionsEvent((OptionsEvent const *)arg2);
  8546. jresult = (jint)result;
  8547. return jresult;
  8548. }
  8549. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8550. jint jresult = 0 ;
  8551. SipCallback *arg1 = (SipCallback *) 0 ;
  8552. OptionsEvent *arg2 = (OptionsEvent *) 0 ;
  8553. int result;
  8554. (void)jenv;
  8555. (void)jcls;
  8556. (void)jarg1_;
  8557. (void)jarg2_;
  8558. arg1 = *(SipCallback **)&jarg1;
  8559. arg2 = *(OptionsEvent **)&jarg2;
  8560. result = (int)(arg1)->SipCallback::OnOptionsEvent((OptionsEvent const *)arg2);
  8561. jresult = (jint)result;
  8562. return jresult;
  8563. }
  8564. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8565. jint jresult = 0 ;
  8566. SipCallback *arg1 = (SipCallback *) 0 ;
  8567. PublicationEvent *arg2 = (PublicationEvent *) 0 ;
  8568. int result;
  8569. (void)jenv;
  8570. (void)jcls;
  8571. (void)jarg1_;
  8572. (void)jarg2_;
  8573. arg1 = *(SipCallback **)&jarg1;
  8574. arg2 = *(PublicationEvent **)&jarg2;
  8575. result = (int)(arg1)->OnPublicationEvent((PublicationEvent const *)arg2);
  8576. jresult = (jint)result;
  8577. return jresult;
  8578. }
  8579. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8580. jint jresult = 0 ;
  8581. SipCallback *arg1 = (SipCallback *) 0 ;
  8582. PublicationEvent *arg2 = (PublicationEvent *) 0 ;
  8583. int result;
  8584. (void)jenv;
  8585. (void)jcls;
  8586. (void)jarg1_;
  8587. (void)jarg2_;
  8588. arg1 = *(SipCallback **)&jarg1;
  8589. arg2 = *(PublicationEvent **)&jarg2;
  8590. result = (int)(arg1)->SipCallback::OnPublicationEvent((PublicationEvent const *)arg2);
  8591. jresult = (jint)result;
  8592. return jresult;
  8593. }
  8594. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8595. jint jresult = 0 ;
  8596. SipCallback *arg1 = (SipCallback *) 0 ;
  8597. RegistrationEvent *arg2 = (RegistrationEvent *) 0 ;
  8598. int result;
  8599. (void)jenv;
  8600. (void)jcls;
  8601. (void)jarg1_;
  8602. (void)jarg2_;
  8603. arg1 = *(SipCallback **)&jarg1;
  8604. arg2 = *(RegistrationEvent **)&jarg2;
  8605. result = (int)(arg1)->OnRegistrationEvent((RegistrationEvent const *)arg2);
  8606. jresult = (jint)result;
  8607. return jresult;
  8608. }
  8609. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8610. jint jresult = 0 ;
  8611. SipCallback *arg1 = (SipCallback *) 0 ;
  8612. RegistrationEvent *arg2 = (RegistrationEvent *) 0 ;
  8613. int result;
  8614. (void)jenv;
  8615. (void)jcls;
  8616. (void)jarg1_;
  8617. (void)jarg2_;
  8618. arg1 = *(SipCallback **)&jarg1;
  8619. arg2 = *(RegistrationEvent **)&jarg2;
  8620. result = (int)(arg1)->SipCallback::OnRegistrationEvent((RegistrationEvent const *)arg2);
  8621. jresult = (jint)result;
  8622. return jresult;
  8623. }
  8624. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8625. jint jresult = 0 ;
  8626. SipCallback *arg1 = (SipCallback *) 0 ;
  8627. SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ;
  8628. int result;
  8629. (void)jenv;
  8630. (void)jcls;
  8631. (void)jarg1_;
  8632. (void)jarg2_;
  8633. arg1 = *(SipCallback **)&jarg1;
  8634. arg2 = *(SubscriptionEvent **)&jarg2;
  8635. result = (int)(arg1)->OnSubscriptionEvent((SubscriptionEvent const *)arg2);
  8636. jresult = (jint)result;
  8637. return jresult;
  8638. }
  8639. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8640. jint jresult = 0 ;
  8641. SipCallback *arg1 = (SipCallback *) 0 ;
  8642. SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ;
  8643. int result;
  8644. (void)jenv;
  8645. (void)jcls;
  8646. (void)jarg1_;
  8647. (void)jarg2_;
  8648. arg1 = *(SipCallback **)&jarg1;
  8649. arg2 = *(SubscriptionEvent **)&jarg2;
  8650. result = (int)(arg1)->SipCallback::OnSubscriptionEvent((SubscriptionEvent const *)arg2);
  8651. jresult = (jint)result;
  8652. return jresult;
  8653. }
  8654. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  8655. SipCallback *obj = *((SipCallback **)&objarg);
  8656. (void)jcls;
  8657. SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
  8658. if (director) {
  8659. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  8660. }
  8661. }
  8662. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  8663. SipCallback *obj = *((SipCallback **)&objarg);
  8664. SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
  8665. (void)jcls;
  8666. if (director) {
  8667. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  8668. }
  8669. }
  8670. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SafeObject(JNIEnv *jenv, jclass jcls) {
  8671. jlong jresult = 0 ;
  8672. SafeObject *result = 0 ;
  8673. (void)jenv;
  8674. (void)jcls;
  8675. result = (SafeObject *)new SafeObject();
  8676. *(SafeObject **)&jresult = result;
  8677. return jresult;
  8678. }
  8679. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SafeObject(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  8680. SafeObject *arg1 = (SafeObject *) 0 ;
  8681. (void)jenv;
  8682. (void)jcls;
  8683. arg1 = *(SafeObject **)&jarg1;
  8684. delete arg1;
  8685. }
  8686. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1Lock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8687. jint jresult = 0 ;
  8688. SafeObject *arg1 = (SafeObject *) 0 ;
  8689. int result;
  8690. (void)jenv;
  8691. (void)jcls;
  8692. (void)jarg1_;
  8693. arg1 = *(SafeObject **)&jarg1;
  8694. result = (int)((SafeObject const *)arg1)->Lock();
  8695. jresult = (jint)result;
  8696. return jresult;
  8697. }
  8698. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1UnLock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8699. jint jresult = 0 ;
  8700. SafeObject *arg1 = (SafeObject *) 0 ;
  8701. int result;
  8702. (void)jenv;
  8703. (void)jcls;
  8704. (void)jarg1_;
  8705. arg1 = *(SafeObject **)&jarg1;
  8706. result = (int)((SafeObject const *)arg1)->UnLock();
  8707. jresult = (jint)result;
  8708. return jresult;
  8709. }
  8710. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
  8711. jlong jresult = 0 ;
  8712. SipCallback *arg1 = (SipCallback *) 0 ;
  8713. char *arg2 = (char *) 0 ;
  8714. char *arg3 = (char *) 0 ;
  8715. char *arg4 = (char *) 0 ;
  8716. SipStack *result = 0 ;
  8717. (void)jenv;
  8718. (void)jcls;
  8719. (void)jarg1_;
  8720. arg1 = *(SipCallback **)&jarg1;
  8721. arg2 = 0;
  8722. if (jarg2) {
  8723. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8724. if (!arg2) return 0;
  8725. }
  8726. arg3 = 0;
  8727. if (jarg3) {
  8728. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  8729. if (!arg3) return 0;
  8730. }
  8731. arg4 = 0;
  8732. if (jarg4) {
  8733. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  8734. if (!arg4) return 0;
  8735. }
  8736. result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
  8737. *(SipStack **)&jresult = result;
  8738. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8739. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  8740. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  8741. return jresult;
  8742. }
  8743. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  8744. SipStack *arg1 = (SipStack *) 0 ;
  8745. (void)jenv;
  8746. (void)jcls;
  8747. arg1 = *(SipStack **)&jarg1;
  8748. delete arg1;
  8749. }
  8750. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  8751. jboolean jresult = 0 ;
  8752. SipStack *arg1 = (SipStack *) 0 ;
  8753. bool result;
  8754. (void)jenv;
  8755. (void)jcls;
  8756. (void)jarg1_;
  8757. arg1 = *(SipStack **)&jarg1;
  8758. result = (bool)(arg1)->start();
  8759. jresult = (jboolean)result;
  8760. return jresult;
  8761. }
  8762. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  8763. jboolean jresult = 0 ;
  8764. SipStack *arg1 = (SipStack *) 0 ;
  8765. DDebugCallback *arg2 = (DDebugCallback *) 0 ;
  8766. bool result;
  8767. (void)jenv;
  8768. (void)jcls;
  8769. (void)jarg1_;
  8770. (void)jarg2_;
  8771. arg1 = *(SipStack **)&jarg1;
  8772. arg2 = *(DDebugCallback **)&jarg2;
  8773. result = (bool)(arg1)->setDebugCallback(arg2);
  8774. jresult = (jboolean)result;
  8775. return jresult;
  8776. }
  8777. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8778. jboolean jresult = 0 ;
  8779. SipStack *arg1 = (SipStack *) 0 ;
  8780. char *arg2 = (char *) 0 ;
  8781. bool result;
  8782. (void)jenv;
  8783. (void)jcls;
  8784. (void)jarg1_;
  8785. arg1 = *(SipStack **)&jarg1;
  8786. arg2 = 0;
  8787. if (jarg2) {
  8788. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8789. if (!arg2) return 0;
  8790. }
  8791. result = (bool)(arg1)->setDisplayName((char const *)arg2);
  8792. jresult = (jboolean)result;
  8793. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8794. return jresult;
  8795. }
  8796. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setRealm(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8797. jboolean jresult = 0 ;
  8798. SipStack *arg1 = (SipStack *) 0 ;
  8799. char *arg2 = (char *) 0 ;
  8800. bool result;
  8801. (void)jenv;
  8802. (void)jcls;
  8803. (void)jarg1_;
  8804. arg1 = *(SipStack **)&jarg1;
  8805. arg2 = 0;
  8806. if (jarg2) {
  8807. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8808. if (!arg2) return 0;
  8809. }
  8810. result = (bool)(arg1)->setRealm((char const *)arg2);
  8811. jresult = (jboolean)result;
  8812. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8813. return jresult;
  8814. }
  8815. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8816. jboolean jresult = 0 ;
  8817. SipStack *arg1 = (SipStack *) 0 ;
  8818. char *arg2 = (char *) 0 ;
  8819. bool result;
  8820. (void)jenv;
  8821. (void)jcls;
  8822. (void)jarg1_;
  8823. arg1 = *(SipStack **)&jarg1;
  8824. arg2 = 0;
  8825. if (jarg2) {
  8826. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8827. if (!arg2) return 0;
  8828. }
  8829. result = (bool)(arg1)->setIMPI((char const *)arg2);
  8830. jresult = (jboolean)result;
  8831. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8832. return jresult;
  8833. }
  8834. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPU(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8835. jboolean jresult = 0 ;
  8836. SipStack *arg1 = (SipStack *) 0 ;
  8837. char *arg2 = (char *) 0 ;
  8838. bool result;
  8839. (void)jenv;
  8840. (void)jcls;
  8841. (void)jarg1_;
  8842. arg1 = *(SipStack **)&jarg1;
  8843. arg2 = 0;
  8844. if (jarg2) {
  8845. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8846. if (!arg2) return 0;
  8847. }
  8848. result = (bool)(arg1)->setIMPU((char const *)arg2);
  8849. jresult = (jboolean)result;
  8850. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8851. return jresult;
  8852. }
  8853. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8854. jboolean jresult = 0 ;
  8855. SipStack *arg1 = (SipStack *) 0 ;
  8856. char *arg2 = (char *) 0 ;
  8857. bool result;
  8858. (void)jenv;
  8859. (void)jcls;
  8860. (void)jarg1_;
  8861. arg1 = *(SipStack **)&jarg1;
  8862. arg2 = 0;
  8863. if (jarg2) {
  8864. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8865. if (!arg2) return 0;
  8866. }
  8867. result = (bool)(arg1)->setPassword((char const *)arg2);
  8868. jresult = (jboolean)result;
  8869. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8870. return jresult;
  8871. }
  8872. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8873. jboolean jresult = 0 ;
  8874. SipStack *arg1 = (SipStack *) 0 ;
  8875. char *arg2 = (char *) 0 ;
  8876. bool result;
  8877. (void)jenv;
  8878. (void)jcls;
  8879. (void)jarg1_;
  8880. arg1 = *(SipStack **)&jarg1;
  8881. arg2 = 0;
  8882. if (jarg2) {
  8883. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8884. if (!arg2) return 0;
  8885. }
  8886. result = (bool)(arg1)->setAMF((char const *)arg2);
  8887. jresult = (jboolean)result;
  8888. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8889. return jresult;
  8890. }
  8891. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setOperatorId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8892. jboolean jresult = 0 ;
  8893. SipStack *arg1 = (SipStack *) 0 ;
  8894. char *arg2 = (char *) 0 ;
  8895. bool result;
  8896. (void)jenv;
  8897. (void)jcls;
  8898. (void)jarg1_;
  8899. arg1 = *(SipStack **)&jarg1;
  8900. arg2 = 0;
  8901. if (jarg2) {
  8902. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8903. if (!arg2) return 0;
  8904. }
  8905. result = (bool)(arg1)->setOperatorId((char const *)arg2);
  8906. jresult = (jboolean)result;
  8907. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8908. return jresult;
  8909. }
  8910. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jstring jarg4, jstring jarg5) {
  8911. jboolean jresult = 0 ;
  8912. SipStack *arg1 = (SipStack *) 0 ;
  8913. char *arg2 = (char *) 0 ;
  8914. unsigned short arg3 ;
  8915. char *arg4 = (char *) 0 ;
  8916. char *arg5 = (char *) 0 ;
  8917. bool result;
  8918. (void)jenv;
  8919. (void)jcls;
  8920. (void)jarg1_;
  8921. arg1 = *(SipStack **)&jarg1;
  8922. arg2 = 0;
  8923. if (jarg2) {
  8924. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8925. if (!arg2) return 0;
  8926. }
  8927. arg3 = (unsigned short)jarg3;
  8928. arg4 = 0;
  8929. if (jarg4) {
  8930. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  8931. if (!arg4) return 0;
  8932. }
  8933. arg5 = 0;
  8934. if (jarg5) {
  8935. arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
  8936. if (!arg5) return 0;
  8937. }
  8938. result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5);
  8939. jresult = (jboolean)result;
  8940. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8941. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  8942. if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
  8943. return jresult;
  8944. }
  8945. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  8946. jboolean jresult = 0 ;
  8947. SipStack *arg1 = (SipStack *) 0 ;
  8948. char *arg2 = (char *) 0 ;
  8949. char *arg3 = (char *) 0 ;
  8950. bool result;
  8951. (void)jenv;
  8952. (void)jcls;
  8953. (void)jarg1_;
  8954. arg1 = *(SipStack **)&jarg1;
  8955. arg2 = 0;
  8956. if (jarg2) {
  8957. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8958. if (!arg2) return 0;
  8959. }
  8960. arg3 = 0;
  8961. if (jarg3) {
  8962. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  8963. if (!arg3) return 0;
  8964. }
  8965. result = (bool)(arg1)->setLocalIP((char const *)arg2,(char const *)arg3);
  8966. jresult = (jboolean)result;
  8967. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8968. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  8969. return jresult;
  8970. }
  8971. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  8972. jboolean jresult = 0 ;
  8973. SipStack *arg1 = (SipStack *) 0 ;
  8974. char *arg2 = (char *) 0 ;
  8975. bool result;
  8976. (void)jenv;
  8977. (void)jcls;
  8978. (void)jarg1_;
  8979. arg1 = *(SipStack **)&jarg1;
  8980. arg2 = 0;
  8981. if (jarg2) {
  8982. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  8983. if (!arg2) return 0;
  8984. }
  8985. result = (bool)(arg1)->setLocalIP((char const *)arg2);
  8986. jresult = (jboolean)result;
  8987. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  8988. return jresult;
  8989. }
  8990. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) {
  8991. jboolean jresult = 0 ;
  8992. SipStack *arg1 = (SipStack *) 0 ;
  8993. unsigned short arg2 ;
  8994. char *arg3 = (char *) 0 ;
  8995. bool result;
  8996. (void)jenv;
  8997. (void)jcls;
  8998. (void)jarg1_;
  8999. arg1 = *(SipStack **)&jarg1;
  9000. arg2 = (unsigned short)jarg2;
  9001. arg3 = 0;
  9002. if (jarg3) {
  9003. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9004. if (!arg3) return 0;
  9005. }
  9006. result = (bool)(arg1)->setLocalPort(arg2,(char const *)arg3);
  9007. jresult = (jboolean)result;
  9008. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9009. return jresult;
  9010. }
  9011. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
  9012. jboolean jresult = 0 ;
  9013. SipStack *arg1 = (SipStack *) 0 ;
  9014. unsigned short arg2 ;
  9015. bool result;
  9016. (void)jenv;
  9017. (void)jcls;
  9018. (void)jarg1_;
  9019. arg1 = *(SipStack **)&jarg1;
  9020. arg2 = (unsigned short)jarg2;
  9021. result = (bool)(arg1)->setLocalPort(arg2);
  9022. jresult = (jboolean)result;
  9023. return jresult;
  9024. }
  9025. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setEarlyIMS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  9026. jboolean jresult = 0 ;
  9027. SipStack *arg1 = (SipStack *) 0 ;
  9028. bool arg2 ;
  9029. bool result;
  9030. (void)jenv;
  9031. (void)jcls;
  9032. (void)jarg1_;
  9033. arg1 = *(SipStack **)&jarg1;
  9034. arg2 = jarg2 ? true : false;
  9035. result = (bool)(arg1)->setEarlyIMS(arg2);
  9036. jresult = (jboolean)result;
  9037. return jresult;
  9038. }
  9039. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  9040. jboolean jresult = 0 ;
  9041. SipStack *arg1 = (SipStack *) 0 ;
  9042. char *arg2 = (char *) 0 ;
  9043. char *arg3 = (char *) 0 ;
  9044. bool result;
  9045. (void)jenv;
  9046. (void)jcls;
  9047. (void)jarg1_;
  9048. arg1 = *(SipStack **)&jarg1;
  9049. arg2 = 0;
  9050. if (jarg2) {
  9051. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9052. if (!arg2) return 0;
  9053. }
  9054. arg3 = 0;
  9055. if (jarg3) {
  9056. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9057. if (!arg3) return 0;
  9058. }
  9059. result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
  9060. jresult = (jboolean)result;
  9061. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9062. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9063. return jresult;
  9064. }
  9065. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  9066. jboolean jresult = 0 ;
  9067. SipStack *arg1 = (SipStack *) 0 ;
  9068. char *arg2 = (char *) 0 ;
  9069. bool result;
  9070. (void)jenv;
  9071. (void)jcls;
  9072. (void)jarg1_;
  9073. arg1 = *(SipStack **)&jarg1;
  9074. arg2 = 0;
  9075. if (jarg2) {
  9076. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9077. if (!arg2) return 0;
  9078. }
  9079. result = (bool)(arg1)->removeHeader((char const *)arg2);
  9080. jresult = (jboolean)result;
  9081. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9082. return jresult;
  9083. }
  9084. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addDnsServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  9085. jboolean jresult = 0 ;
  9086. SipStack *arg1 = (SipStack *) 0 ;
  9087. char *arg2 = (char *) 0 ;
  9088. bool result;
  9089. (void)jenv;
  9090. (void)jcls;
  9091. (void)jarg1_;
  9092. arg1 = *(SipStack **)&jarg1;
  9093. arg2 = 0;
  9094. if (jarg2) {
  9095. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9096. if (!arg2) return 0;
  9097. }
  9098. result = (bool)(arg1)->addDnsServer((char const *)arg2);
  9099. jresult = (jboolean)result;
  9100. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9101. return jresult;
  9102. }
  9103. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDnsDiscovery(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  9104. jboolean jresult = 0 ;
  9105. SipStack *arg1 = (SipStack *) 0 ;
  9106. bool arg2 ;
  9107. bool result;
  9108. (void)jenv;
  9109. (void)jcls;
  9110. (void)jarg1_;
  9111. arg1 = *(SipStack **)&jarg1;
  9112. arg2 = jarg2 ? true : false;
  9113. result = (bool)(arg1)->setDnsDiscovery(arg2);
  9114. jresult = (jboolean)result;
  9115. return jresult;
  9116. }
  9117. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAoR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
  9118. jboolean jresult = 0 ;
  9119. SipStack *arg1 = (SipStack *) 0 ;
  9120. char *arg2 = (char *) 0 ;
  9121. int arg3 ;
  9122. bool result;
  9123. (void)jenv;
  9124. (void)jcls;
  9125. (void)jarg1_;
  9126. arg1 = *(SipStack **)&jarg1;
  9127. arg2 = 0;
  9128. if (jarg2) {
  9129. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9130. if (!arg2) return 0;
  9131. }
  9132. arg3 = (int)jarg3;
  9133. result = (bool)(arg1)->setAoR((char const *)arg2,arg3);
  9134. jresult = (jboolean)result;
  9135. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9136. return jresult;
  9137. }
  9138. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSigCompParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4, jboolean jarg5) {
  9139. jboolean jresult = 0 ;
  9140. SipStack *arg1 = (SipStack *) 0 ;
  9141. unsigned int arg2 ;
  9142. unsigned int arg3 ;
  9143. unsigned int arg4 ;
  9144. bool arg5 ;
  9145. bool result;
  9146. (void)jenv;
  9147. (void)jcls;
  9148. (void)jarg1_;
  9149. arg1 = *(SipStack **)&jarg1;
  9150. arg2 = (unsigned int)jarg2;
  9151. arg3 = (unsigned int)jarg3;
  9152. arg4 = (unsigned int)jarg4;
  9153. arg5 = jarg5 ? true : false;
  9154. result = (bool)(arg1)->setSigCompParams(arg2,arg3,arg4,arg5);
  9155. jresult = (jboolean)result;
  9156. return jresult;
  9157. }
  9158. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  9159. jboolean jresult = 0 ;
  9160. SipStack *arg1 = (SipStack *) 0 ;
  9161. char *arg2 = (char *) 0 ;
  9162. bool result;
  9163. (void)jenv;
  9164. (void)jcls;
  9165. (void)jarg1_;
  9166. arg1 = *(SipStack **)&jarg1;
  9167. arg2 = 0;
  9168. if (jarg2) {
  9169. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9170. if (!arg2) return 0;
  9171. }
  9172. result = (bool)(arg1)->addSigCompCompartment((char const *)arg2);
  9173. jresult = (jboolean)result;
  9174. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9175. return jresult;
  9176. }
  9177. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  9178. jboolean jresult = 0 ;
  9179. SipStack *arg1 = (SipStack *) 0 ;
  9180. char *arg2 = (char *) 0 ;
  9181. bool result;
  9182. (void)jenv;
  9183. (void)jcls;
  9184. (void)jarg1_;
  9185. arg1 = *(SipStack **)&jarg1;
  9186. arg2 = 0;
  9187. if (jarg2) {
  9188. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9189. if (!arg2) return 0;
  9190. }
  9191. result = (bool)(arg1)->removeSigCompCompartment((char const *)arg2);
  9192. jresult = (jboolean)result;
  9193. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9194. return jresult;
  9195. }
  9196. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabledForICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  9197. jboolean jresult = 0 ;
  9198. SipStack *arg1 = (SipStack *) 0 ;
  9199. bool arg2 ;
  9200. bool result;
  9201. (void)jenv;
  9202. (void)jcls;
  9203. (void)jarg1_;
  9204. arg1 = *(SipStack **)&jarg1;
  9205. arg2 = jarg2 ? true : false;
  9206. result = (bool)(arg1)->setSTUNEnabledForICE(arg2);
  9207. jresult = (jboolean)result;
  9208. return jresult;
  9209. }
  9210. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
  9211. jboolean jresult = 0 ;
  9212. SipStack *arg1 = (SipStack *) 0 ;
  9213. char *arg2 = (char *) 0 ;
  9214. unsigned short arg3 ;
  9215. bool result;
  9216. (void)jenv;
  9217. (void)jcls;
  9218. (void)jarg1_;
  9219. arg1 = *(SipStack **)&jarg1;
  9220. arg2 = 0;
  9221. if (jarg2) {
  9222. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9223. if (!arg2) return 0;
  9224. }
  9225. arg3 = (unsigned short)jarg3;
  9226. result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3);
  9227. jresult = (jboolean)result;
  9228. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9229. return jresult;
  9230. }
  9231. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  9232. jboolean jresult = 0 ;
  9233. SipStack *arg1 = (SipStack *) 0 ;
  9234. char *arg2 = (char *) 0 ;
  9235. char *arg3 = (char *) 0 ;
  9236. bool result;
  9237. (void)jenv;
  9238. (void)jcls;
  9239. (void)jarg1_;
  9240. arg1 = *(SipStack **)&jarg1;
  9241. arg2 = 0;
  9242. if (jarg2) {
  9243. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9244. if (!arg2) return 0;
  9245. }
  9246. arg3 = 0;
  9247. if (jarg3) {
  9248. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9249. if (!arg3) return 0;
  9250. }
  9251. result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3);
  9252. jresult = (jboolean)result;
  9253. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9254. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9255. return jresult;
  9256. }
  9257. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabled(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  9258. jboolean jresult = 0 ;
  9259. SipStack *arg1 = (SipStack *) 0 ;
  9260. bool arg2 ;
  9261. bool result;
  9262. (void)jenv;
  9263. (void)jcls;
  9264. (void)jarg1_;
  9265. arg1 = *(SipStack **)&jarg1;
  9266. arg2 = jarg2 ? true : false;
  9267. result = (bool)(arg1)->setSTUNEnabled(arg2);
  9268. jresult = (jboolean)result;
  9269. return jresult;
  9270. }
  9271. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setTLSSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  9272. jboolean jresult = 0 ;
  9273. SipStack *arg1 = (SipStack *) 0 ;
  9274. bool arg2 ;
  9275. bool result;
  9276. (void)jenv;
  9277. (void)jcls;
  9278. (void)jarg1_;
  9279. arg1 = *(SipStack **)&jarg1;
  9280. arg2 = jarg2 ? true : false;
  9281. result = (bool)(arg1)->setTLSSecAgree(arg2);
  9282. jresult = (jboolean)result;
  9283. return jresult;
  9284. }
  9285. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) {
  9286. jboolean jresult = 0 ;
  9287. SipStack *arg1 = (SipStack *) 0 ;
  9288. char *arg2 = (char *) 0 ;
  9289. char *arg3 = (char *) 0 ;
  9290. char *arg4 = (char *) 0 ;
  9291. bool arg5 ;
  9292. bool result;
  9293. (void)jenv;
  9294. (void)jcls;
  9295. (void)jarg1_;
  9296. arg1 = *(SipStack **)&jarg1;
  9297. arg2 = 0;
  9298. if (jarg2) {
  9299. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9300. if (!arg2) return 0;
  9301. }
  9302. arg3 = 0;
  9303. if (jarg3) {
  9304. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9305. if (!arg3) return 0;
  9306. }
  9307. arg4 = 0;
  9308. if (jarg4) {
  9309. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9310. if (!arg4) return 0;
  9311. }
  9312. arg5 = jarg5 ? true : false;
  9313. result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
  9314. jresult = (jboolean)result;
  9315. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9316. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9317. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9318. return jresult;
  9319. }
  9320. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
  9321. jboolean jresult = 0 ;
  9322. SipStack *arg1 = (SipStack *) 0 ;
  9323. char *arg2 = (char *) 0 ;
  9324. char *arg3 = (char *) 0 ;
  9325. char *arg4 = (char *) 0 ;
  9326. bool result;
  9327. (void)jenv;
  9328. (void)jcls;
  9329. (void)jarg1_;
  9330. arg1 = *(SipStack **)&jarg1;
  9331. arg2 = 0;
  9332. if (jarg2) {
  9333. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9334. if (!arg2) return 0;
  9335. }
  9336. arg3 = 0;
  9337. if (jarg3) {
  9338. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9339. if (!arg3) return 0;
  9340. }
  9341. arg4 = 0;
  9342. if (jarg4) {
  9343. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9344. if (!arg4) return 0;
  9345. }
  9346. result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4);
  9347. jresult = (jboolean)result;
  9348. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9349. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9350. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9351. return jresult;
  9352. }
  9353. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) {
  9354. jboolean jresult = 0 ;
  9355. SipStack *arg1 = (SipStack *) 0 ;
  9356. char *arg2 = (char *) 0 ;
  9357. char *arg3 = (char *) 0 ;
  9358. char *arg4 = (char *) 0 ;
  9359. bool arg5 ;
  9360. bool result;
  9361. (void)jenv;
  9362. (void)jcls;
  9363. (void)jarg1_;
  9364. arg1 = *(SipStack **)&jarg1;
  9365. arg2 = 0;
  9366. if (jarg2) {
  9367. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9368. if (!arg2) return 0;
  9369. }
  9370. arg3 = 0;
  9371. if (jarg3) {
  9372. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9373. if (!arg3) return 0;
  9374. }
  9375. arg4 = 0;
  9376. if (jarg4) {
  9377. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9378. if (!arg4) return 0;
  9379. }
  9380. arg5 = jarg5 ? true : false;
  9381. result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
  9382. jresult = (jboolean)result;
  9383. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9384. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9385. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9386. return jresult;
  9387. }
  9388. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
  9389. jboolean jresult = 0 ;
  9390. SipStack *arg1 = (SipStack *) 0 ;
  9391. char *arg2 = (char *) 0 ;
  9392. char *arg3 = (char *) 0 ;
  9393. char *arg4 = (char *) 0 ;
  9394. bool result;
  9395. (void)jenv;
  9396. (void)jcls;
  9397. (void)jarg1_;
  9398. arg1 = *(SipStack **)&jarg1;
  9399. arg2 = 0;
  9400. if (jarg2) {
  9401. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9402. if (!arg2) return 0;
  9403. }
  9404. arg3 = 0;
  9405. if (jarg3) {
  9406. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9407. if (!arg3) return 0;
  9408. }
  9409. arg4 = 0;
  9410. if (jarg4) {
  9411. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9412. if (!arg4) return 0;
  9413. }
  9414. result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4);
  9415. jresult = (jboolean)result;
  9416. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9417. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9418. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9419. return jresult;
  9420. }
  9421. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
  9422. jboolean jresult = 0 ;
  9423. SipStack *arg1 = (SipStack *) 0 ;
  9424. bool arg2 ;
  9425. bool result;
  9426. (void)jenv;
  9427. (void)jcls;
  9428. (void)jarg1_;
  9429. arg1 = *(SipStack **)&jarg1;
  9430. arg2 = jarg2 ? true : false;
  9431. result = (bool)(arg1)->setIPSecSecAgree(arg2);
  9432. jresult = (jboolean)result;
  9433. return jresult;
  9434. }
  9435. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecParameters(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  9436. jboolean jresult = 0 ;
  9437. SipStack *arg1 = (SipStack *) 0 ;
  9438. char *arg2 = (char *) 0 ;
  9439. char *arg3 = (char *) 0 ;
  9440. char *arg4 = (char *) 0 ;
  9441. char *arg5 = (char *) 0 ;
  9442. bool result;
  9443. (void)jenv;
  9444. (void)jcls;
  9445. (void)jarg1_;
  9446. arg1 = *(SipStack **)&jarg1;
  9447. arg2 = 0;
  9448. if (jarg2) {
  9449. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9450. if (!arg2) return 0;
  9451. }
  9452. arg3 = 0;
  9453. if (jarg3) {
  9454. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9455. if (!arg3) return 0;
  9456. }
  9457. arg4 = 0;
  9458. if (jarg4) {
  9459. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9460. if (!arg4) return 0;
  9461. }
  9462. arg5 = 0;
  9463. if (jarg5) {
  9464. arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
  9465. if (!arg5) return 0;
  9466. }
  9467. result = (bool)(arg1)->setIPSecParameters((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
  9468. jresult = (jboolean)result;
  9469. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9470. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9471. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9472. if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
  9473. return jresult;
  9474. }
  9475. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsENUM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
  9476. jstring jresult = 0 ;
  9477. SipStack *arg1 = (SipStack *) 0 ;
  9478. char *arg2 = (char *) 0 ;
  9479. char *arg3 = (char *) 0 ;
  9480. char *arg4 = (char *) 0 ;
  9481. char *result = 0 ;
  9482. (void)jenv;
  9483. (void)jcls;
  9484. (void)jarg1_;
  9485. arg1 = *(SipStack **)&jarg1;
  9486. arg2 = 0;
  9487. if (jarg2) {
  9488. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9489. if (!arg2) return 0;
  9490. }
  9491. arg3 = 0;
  9492. if (jarg3) {
  9493. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9494. if (!arg3) return 0;
  9495. }
  9496. arg4 = 0;
  9497. if (jarg4) {
  9498. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9499. if (!arg4) return 0;
  9500. }
  9501. result = (char *)(arg1)->dnsENUM((char const *)arg2,(char const *)arg3,(char const *)arg4);
  9502. if (result) jresult = jenv->NewStringUTF((const char *)result);
  9503. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9504. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9505. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9506. delete [] result;
  9507. return jresult;
  9508. }
  9509. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsNaptrSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jintArray jarg4) {
  9510. jstring jresult = 0 ;
  9511. SipStack *arg1 = (SipStack *) 0 ;
  9512. char *arg2 = (char *) 0 ;
  9513. char *arg3 = (char *) 0 ;
  9514. unsigned short *arg4 = (unsigned short *) 0 ;
  9515. unsigned short temp4 ;
  9516. char *result = 0 ;
  9517. (void)jenv;
  9518. (void)jcls;
  9519. (void)jarg1_;
  9520. arg1 = *(SipStack **)&jarg1;
  9521. arg2 = 0;
  9522. if (jarg2) {
  9523. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9524. if (!arg2) return 0;
  9525. }
  9526. arg3 = 0;
  9527. if (jarg3) {
  9528. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9529. if (!arg3) return 0;
  9530. }
  9531. {
  9532. if (!jarg4) {
  9533. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
  9534. return 0;
  9535. }
  9536. if (jenv->GetArrayLength(jarg4) == 0) {
  9537. SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
  9538. return 0;
  9539. }
  9540. temp4 = (unsigned short)0;
  9541. arg4 = &temp4;
  9542. }
  9543. result = (char *)(arg1)->dnsNaptrSrv((char const *)arg2,(char const *)arg3,arg4);
  9544. if (result) jresult = jenv->NewStringUTF((const char *)result);
  9545. {
  9546. jint jvalue = (jint)temp4;
  9547. jenv->SetIntArrayRegion(jarg4, 0, 1, &jvalue);
  9548. }
  9549. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9550. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9551. delete [] result;
  9552. return jresult;
  9553. }
  9554. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) {
  9555. jstring jresult = 0 ;
  9556. SipStack *arg1 = (SipStack *) 0 ;
  9557. char *arg2 = (char *) 0 ;
  9558. unsigned short *arg3 = (unsigned short *) 0 ;
  9559. unsigned short temp3 ;
  9560. char *result = 0 ;
  9561. (void)jenv;
  9562. (void)jcls;
  9563. (void)jarg1_;
  9564. arg1 = *(SipStack **)&jarg1;
  9565. arg2 = 0;
  9566. if (jarg2) {
  9567. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9568. if (!arg2) return 0;
  9569. }
  9570. {
  9571. if (!jarg3) {
  9572. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
  9573. return 0;
  9574. }
  9575. if (jenv->GetArrayLength(jarg3) == 0) {
  9576. SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
  9577. return 0;
  9578. }
  9579. temp3 = (unsigned short)0;
  9580. arg3 = &temp3;
  9581. }
  9582. result = (char *)(arg1)->dnsSrv((char const *)arg2,arg3);
  9583. if (result) jresult = jenv->NewStringUTF((const char *)result);
  9584. {
  9585. jint jvalue = (jint)temp3;
  9586. jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue);
  9587. }
  9588. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9589. delete [] result;
  9590. return jresult;
  9591. }
  9592. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setMaxFDs(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  9593. jboolean jresult = 0 ;
  9594. SipStack *arg1 = (SipStack *) 0 ;
  9595. unsigned int arg2 ;
  9596. bool result;
  9597. (void)jenv;
  9598. (void)jcls;
  9599. (void)jarg1_;
  9600. arg1 = *(SipStack **)&jarg1;
  9601. arg2 = (unsigned int)jarg2;
  9602. result = (bool)(arg1)->setMaxFDs(arg2);
  9603. jresult = (jboolean)result;
  9604. return jresult;
  9605. }
  9606. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getLocalIPnPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) {
  9607. jstring jresult = 0 ;
  9608. SipStack *arg1 = (SipStack *) 0 ;
  9609. char *arg2 = (char *) 0 ;
  9610. unsigned short *arg3 = (unsigned short *) 0 ;
  9611. unsigned short temp3 ;
  9612. char *result = 0 ;
  9613. (void)jenv;
  9614. (void)jcls;
  9615. (void)jarg1_;
  9616. arg1 = *(SipStack **)&jarg1;
  9617. arg2 = 0;
  9618. if (jarg2) {
  9619. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9620. if (!arg2) return 0;
  9621. }
  9622. {
  9623. if (!jarg3) {
  9624. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
  9625. return 0;
  9626. }
  9627. if (jenv->GetArrayLength(jarg3) == 0) {
  9628. SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
  9629. return 0;
  9630. }
  9631. temp3 = (unsigned short)0;
  9632. arg3 = &temp3;
  9633. }
  9634. result = (char *)(arg1)->getLocalIPnPort((char const *)arg2,arg3);
  9635. if (result) jresult = jenv->NewStringUTF((const char *)result);
  9636. {
  9637. jint jvalue = (jint)temp3;
  9638. jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue);
  9639. }
  9640. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9641. delete [] result;
  9642. return jresult;
  9643. }
  9644. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getPreferredIdentity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9645. jstring jresult = 0 ;
  9646. SipStack *arg1 = (SipStack *) 0 ;
  9647. char *result = 0 ;
  9648. (void)jenv;
  9649. (void)jcls;
  9650. (void)jarg1_;
  9651. arg1 = *(SipStack **)&jarg1;
  9652. result = (char *)(arg1)->getPreferredIdentity();
  9653. if (result) jresult = jenv->NewStringUTF((const char *)result);
  9654. delete [] result;
  9655. return jresult;
  9656. }
  9657. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9658. jboolean jresult = 0 ;
  9659. SipStack *arg1 = (SipStack *) 0 ;
  9660. bool result;
  9661. (void)jenv;
  9662. (void)jcls;
  9663. (void)jarg1_;
  9664. arg1 = *(SipStack **)&jarg1;
  9665. result = (bool)(arg1)->isValid();
  9666. jresult = (jboolean)result;
  9667. return jresult;
  9668. }
  9669. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9670. jboolean jresult = 0 ;
  9671. SipStack *arg1 = (SipStack *) 0 ;
  9672. bool result;
  9673. (void)jenv;
  9674. (void)jcls;
  9675. (void)jarg1_;
  9676. arg1 = *(SipStack **)&jarg1;
  9677. result = (bool)(arg1)->stop();
  9678. jresult = (jboolean)result;
  9679. return jresult;
  9680. }
  9681. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1initialize(JNIEnv *jenv, jclass jcls) {
  9682. jboolean jresult = 0 ;
  9683. bool result;
  9684. (void)jenv;
  9685. (void)jcls;
  9686. result = (bool)SipStack::initialize();
  9687. jresult = (jboolean)result;
  9688. return jresult;
  9689. }
  9690. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1deInitialize(JNIEnv *jenv, jclass jcls) {
  9691. jboolean jresult = 0 ;
  9692. bool result;
  9693. (void)jenv;
  9694. (void)jcls;
  9695. result = (bool)SipStack::deInitialize();
  9696. jresult = (jboolean)result;
  9697. return jresult;
  9698. }
  9699. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs(JNIEnv *jenv, jclass jcls, jint jarg1) {
  9700. tdav_codec_id_t arg1 ;
  9701. (void)jenv;
  9702. (void)jcls;
  9703. arg1 = (tdav_codec_id_t)jarg1;
  9704. SipStack::setCodecs(arg1);
  9705. }
  9706. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs_12(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  9707. int64_t arg1 ;
  9708. (void)jenv;
  9709. (void)jcls;
  9710. arg1 = (int64_t)jarg1;
  9711. SipStack::setCodecs_2(arg1);
  9712. }
  9713. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  9714. jboolean jresult = 0 ;
  9715. tdav_codec_id_t arg1 ;
  9716. int arg2 ;
  9717. bool result;
  9718. (void)jenv;
  9719. (void)jcls;
  9720. arg1 = (tdav_codec_id_t)jarg1;
  9721. arg2 = (int)jarg2;
  9722. result = (bool)SipStack::setCodecPriority(arg1,arg2);
  9723. jresult = (jboolean)result;
  9724. return jresult;
  9725. }
  9726. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority_12(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
  9727. jboolean jresult = 0 ;
  9728. int arg1 ;
  9729. int arg2 ;
  9730. bool result;
  9731. (void)jenv;
  9732. (void)jcls;
  9733. arg1 = (int)jarg1;
  9734. arg2 = (int)jarg2;
  9735. result = (bool)SipStack::setCodecPriority_2(arg1,arg2);
  9736. jresult = (jboolean)result;
  9737. return jresult;
  9738. }
  9739. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isCodecSupported(JNIEnv *jenv, jclass jcls, jint jarg1) {
  9740. jboolean jresult = 0 ;
  9741. tdav_codec_id_t arg1 ;
  9742. bool result;
  9743. (void)jenv;
  9744. (void)jcls;
  9745. arg1 = (tdav_codec_id_t)jarg1;
  9746. result = (bool)SipStack::isCodecSupported(arg1);
  9747. jresult = (jboolean)result;
  9748. return jresult;
  9749. }
  9750. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isIPSecSupported(JNIEnv *jenv, jclass jcls) {
  9751. jboolean jresult = 0 ;
  9752. bool result;
  9753. (void)jenv;
  9754. (void)jcls;
  9755. result = (bool)SipStack::isIPSecSupported();
  9756. jresult = (jboolean)result;
  9757. return jresult;
  9758. }
  9759. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9760. jlong jresult = 0 ;
  9761. XcapStack *arg1 = (XcapStack *) 0 ;
  9762. XcapSelector *result = 0 ;
  9763. (void)jenv;
  9764. (void)jcls;
  9765. (void)jarg1_;
  9766. arg1 = *(XcapStack **)&jarg1;
  9767. result = (XcapSelector *)new XcapSelector(arg1);
  9768. *(XcapSelector **)&jresult = result;
  9769. return jresult;
  9770. }
  9771. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  9772. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9773. (void)jenv;
  9774. (void)jcls;
  9775. arg1 = *(XcapSelector **)&jarg1;
  9776. delete arg1;
  9777. }
  9778. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  9779. jlong jresult = 0 ;
  9780. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9781. char *arg2 = (char *) 0 ;
  9782. XcapSelector *result = 0 ;
  9783. (void)jenv;
  9784. (void)jcls;
  9785. (void)jarg1_;
  9786. arg1 = *(XcapSelector **)&jarg1;
  9787. arg2 = 0;
  9788. if (jarg2) {
  9789. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9790. if (!arg2) return 0;
  9791. }
  9792. result = (XcapSelector *)(arg1)->setAUID((char const *)arg2);
  9793. *(XcapSelector **)&jresult = result;
  9794. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9795. return jresult;
  9796. }
  9797. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  9798. jlong jresult = 0 ;
  9799. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9800. char *arg2 = (char *) 0 ;
  9801. XcapSelector *result = 0 ;
  9802. (void)jenv;
  9803. (void)jcls;
  9804. (void)jarg1_;
  9805. arg1 = *(XcapSelector **)&jarg1;
  9806. arg2 = 0;
  9807. if (jarg2) {
  9808. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9809. if (!arg2) return 0;
  9810. }
  9811. result = (XcapSelector *)(arg1)->setName((char const *)arg2);
  9812. *(XcapSelector **)&jresult = result;
  9813. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9814. return jresult;
  9815. }
  9816. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
  9817. jlong jresult = 0 ;
  9818. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9819. char *arg2 = (char *) 0 ;
  9820. char *arg3 = (char *) 0 ;
  9821. char *arg4 = (char *) 0 ;
  9822. XcapSelector *result = 0 ;
  9823. (void)jenv;
  9824. (void)jcls;
  9825. (void)jarg1_;
  9826. arg1 = *(XcapSelector **)&jarg1;
  9827. arg2 = 0;
  9828. if (jarg2) {
  9829. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9830. if (!arg2) return 0;
  9831. }
  9832. arg3 = 0;
  9833. if (jarg3) {
  9834. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9835. if (!arg3) return 0;
  9836. }
  9837. arg4 = 0;
  9838. if (jarg4) {
  9839. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9840. if (!arg4) return 0;
  9841. }
  9842. result = (XcapSelector *)(arg1)->setAttribute((char const *)arg2,(char const *)arg3,(char const *)arg4);
  9843. *(XcapSelector **)&jresult = result;
  9844. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9845. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9846. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9847. return jresult;
  9848. }
  9849. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPos(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
  9850. jlong jresult = 0 ;
  9851. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9852. char *arg2 = (char *) 0 ;
  9853. unsigned int arg3 ;
  9854. XcapSelector *result = 0 ;
  9855. (void)jenv;
  9856. (void)jcls;
  9857. (void)jarg1_;
  9858. arg1 = *(XcapSelector **)&jarg1;
  9859. arg2 = 0;
  9860. if (jarg2) {
  9861. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9862. if (!arg2) return 0;
  9863. }
  9864. arg3 = (unsigned int)jarg3;
  9865. result = (XcapSelector *)(arg1)->setPos((char const *)arg2,arg3);
  9866. *(XcapSelector **)&jresult = result;
  9867. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9868. return jresult;
  9869. }
  9870. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPosAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) {
  9871. jlong jresult = 0 ;
  9872. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9873. char *arg2 = (char *) 0 ;
  9874. unsigned int arg3 ;
  9875. char *arg4 = (char *) 0 ;
  9876. char *arg5 = (char *) 0 ;
  9877. XcapSelector *result = 0 ;
  9878. (void)jenv;
  9879. (void)jcls;
  9880. (void)jarg1_;
  9881. arg1 = *(XcapSelector **)&jarg1;
  9882. arg2 = 0;
  9883. if (jarg2) {
  9884. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9885. if (!arg2) return 0;
  9886. }
  9887. arg3 = (unsigned int)jarg3;
  9888. arg4 = 0;
  9889. if (jarg4) {
  9890. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  9891. if (!arg4) return 0;
  9892. }
  9893. arg5 = 0;
  9894. if (jarg5) {
  9895. arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
  9896. if (!arg5) return 0;
  9897. }
  9898. result = (XcapSelector *)(arg1)->setPosAttribute((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5);
  9899. *(XcapSelector **)&jresult = result;
  9900. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9901. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  9902. if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
  9903. return jresult;
  9904. }
  9905. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setNamespace(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  9906. jlong jresult = 0 ;
  9907. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9908. char *arg2 = (char *) 0 ;
  9909. char *arg3 = (char *) 0 ;
  9910. XcapSelector *result = 0 ;
  9911. (void)jenv;
  9912. (void)jcls;
  9913. (void)jarg1_;
  9914. arg1 = *(XcapSelector **)&jarg1;
  9915. arg2 = 0;
  9916. if (jarg2) {
  9917. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  9918. if (!arg2) return 0;
  9919. }
  9920. arg3 = 0;
  9921. if (jarg3) {
  9922. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  9923. if (!arg3) return 0;
  9924. }
  9925. result = (XcapSelector *)(arg1)->setNamespace((char const *)arg2,(char const *)arg3);
  9926. *(XcapSelector **)&jresult = result;
  9927. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  9928. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  9929. return jresult;
  9930. }
  9931. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1getString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9932. jstring jresult = 0 ;
  9933. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9934. char *result = 0 ;
  9935. (void)jenv;
  9936. (void)jcls;
  9937. (void)jarg1_;
  9938. arg1 = *(XcapSelector **)&jarg1;
  9939. result = (char *)(arg1)->getString();
  9940. if (result) jresult = jenv->NewStringUTF((const char *)result);
  9941. delete [] result;
  9942. return jresult;
  9943. }
  9944. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9945. XcapSelector *arg1 = (XcapSelector *) 0 ;
  9946. (void)jenv;
  9947. (void)jcls;
  9948. (void)jarg1_;
  9949. arg1 = *(XcapSelector **)&jarg1;
  9950. (arg1)->reset();
  9951. }
  9952. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapMessage(JNIEnv *jenv, jclass jcls) {
  9953. jlong jresult = 0 ;
  9954. XcapMessage *result = 0 ;
  9955. (void)jenv;
  9956. (void)jcls;
  9957. result = (XcapMessage *)new XcapMessage();
  9958. *(XcapMessage **)&jresult = result;
  9959. return jresult;
  9960. }
  9961. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  9962. XcapMessage *arg1 = (XcapMessage *) 0 ;
  9963. (void)jenv;
  9964. (void)jcls;
  9965. arg1 = *(XcapMessage **)&jarg1;
  9966. delete arg1;
  9967. }
  9968. SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9969. jshort jresult = 0 ;
  9970. XcapMessage *arg1 = (XcapMessage *) 0 ;
  9971. short result;
  9972. (void)jenv;
  9973. (void)jcls;
  9974. (void)jarg1_;
  9975. arg1 = *(XcapMessage **)&jarg1;
  9976. result = (short)((XcapMessage const *)arg1)->getCode();
  9977. jresult = (jshort)result;
  9978. return jresult;
  9979. }
  9980. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  9981. jstring jresult = 0 ;
  9982. XcapMessage *arg1 = (XcapMessage *) 0 ;
  9983. char *result = 0 ;
  9984. (void)jenv;
  9985. (void)jcls;
  9986. (void)jarg1_;
  9987. arg1 = *(XcapMessage **)&jarg1;
  9988. result = (char *)((XcapMessage const *)arg1)->getPhrase();
  9989. if (result) jresult = jenv->NewStringUTF((const char *)result);
  9990. return jresult;
  9991. }
  9992. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
  9993. jstring jresult = 0 ;
  9994. XcapMessage *arg1 = (XcapMessage *) 0 ;
  9995. char *arg2 = (char *) 0 ;
  9996. unsigned int arg3 ;
  9997. char *result = 0 ;
  9998. (void)jenv;
  9999. (void)jcls;
  10000. (void)jarg1_;
  10001. arg1 = *(XcapMessage **)&jarg1;
  10002. arg2 = 0;
  10003. if (jarg2) {
  10004. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10005. if (!arg2) return 0;
  10006. }
  10007. arg3 = (unsigned int)jarg3;
  10008. result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2,arg3);
  10009. if (result) jresult = jenv->NewStringUTF((const char *)result);
  10010. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10011. delete [] result;
  10012. return jresult;
  10013. }
  10014. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10015. jstring jresult = 0 ;
  10016. XcapMessage *arg1 = (XcapMessage *) 0 ;
  10017. char *arg2 = (char *) 0 ;
  10018. char *result = 0 ;
  10019. (void)jenv;
  10020. (void)jcls;
  10021. (void)jarg1_;
  10022. arg1 = *(XcapMessage **)&jarg1;
  10023. arg2 = 0;
  10024. if (jarg2) {
  10025. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10026. if (!arg2) return 0;
  10027. }
  10028. result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2);
  10029. if (result) jresult = jenv->NewStringUTF((const char *)result);
  10030. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10031. delete [] result;
  10032. return jresult;
  10033. }
  10034. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) {
  10035. jstring jresult = 0 ;
  10036. XcapMessage *arg1 = (XcapMessage *) 0 ;
  10037. char *arg2 = (char *) 0 ;
  10038. char *arg3 = (char *) 0 ;
  10039. unsigned int arg4 ;
  10040. char *result = 0 ;
  10041. (void)jenv;
  10042. (void)jcls;
  10043. (void)jarg1_;
  10044. arg1 = *(XcapMessage **)&jarg1;
  10045. arg2 = 0;
  10046. if (jarg2) {
  10047. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10048. if (!arg2) return 0;
  10049. }
  10050. arg3 = 0;
  10051. if (jarg3) {
  10052. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10053. if (!arg3) return 0;
  10054. }
  10055. arg4 = (unsigned int)jarg4;
  10056. result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3,arg4);
  10057. if (result) jresult = jenv->NewStringUTF((const char *)result);
  10058. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10059. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10060. delete [] result;
  10061. return jresult;
  10062. }
  10063. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  10064. jstring jresult = 0 ;
  10065. XcapMessage *arg1 = (XcapMessage *) 0 ;
  10066. char *arg2 = (char *) 0 ;
  10067. char *arg3 = (char *) 0 ;
  10068. char *result = 0 ;
  10069. (void)jenv;
  10070. (void)jcls;
  10071. (void)jarg1_;
  10072. arg1 = *(XcapMessage **)&jarg1;
  10073. arg2 = 0;
  10074. if (jarg2) {
  10075. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10076. if (!arg2) return 0;
  10077. }
  10078. arg3 = 0;
  10079. if (jarg3) {
  10080. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10081. if (!arg3) return 0;
  10082. }
  10083. result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3);
  10084. if (result) jresult = jenv->NewStringUTF((const char *)result);
  10085. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10086. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10087. delete [] result;
  10088. return jresult;
  10089. }
  10090. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10091. jlong jresult = 0 ;
  10092. XcapMessage *arg1 = (XcapMessage *) 0 ;
  10093. unsigned int result;
  10094. (void)jenv;
  10095. (void)jcls;
  10096. (void)jarg1_;
  10097. arg1 = *(XcapMessage **)&jarg1;
  10098. result = (unsigned int)(arg1)->getXcapContentLength();
  10099. jresult = (jlong)result;
  10100. return jresult;
  10101. }
  10102. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  10103. jlong jresult = 0 ;
  10104. XcapMessage *arg1 = (XcapMessage *) 0 ;
  10105. void *arg2 = (void *) 0 ;
  10106. unsigned int arg3 ;
  10107. unsigned int result;
  10108. (void)jenv;
  10109. (void)jcls;
  10110. (void)jarg1_;
  10111. arg1 = *(XcapMessage **)&jarg1;
  10112. arg2 = jenv->GetDirectBufferAddress(jarg2);
  10113. arg3 = (unsigned int)jarg3;
  10114. result = (unsigned int)(arg1)->getXcapContent(arg2,arg3);
  10115. jresult = (jlong)result;
  10116. return jresult;
  10117. }
  10118. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  10119. XcapEvent *arg1 = (XcapEvent *) 0 ;
  10120. (void)jenv;
  10121. (void)jcls;
  10122. arg1 = *(XcapEvent **)&jarg1;
  10123. delete arg1;
  10124. }
  10125. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10126. jint jresult = 0 ;
  10127. XcapEvent *arg1 = (XcapEvent *) 0 ;
  10128. thttp_event_type_t result;
  10129. (void)jenv;
  10130. (void)jcls;
  10131. (void)jarg1_;
  10132. arg1 = *(XcapEvent **)&jarg1;
  10133. result = (thttp_event_type_t)(arg1)->getType();
  10134. jresult = (jint)result;
  10135. return jresult;
  10136. }
  10137. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getXcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10138. jlong jresult = 0 ;
  10139. XcapEvent *arg1 = (XcapEvent *) 0 ;
  10140. XcapMessage *result = 0 ;
  10141. (void)jenv;
  10142. (void)jcls;
  10143. (void)jarg1_;
  10144. arg1 = *(XcapEvent **)&jarg1;
  10145. result = (XcapMessage *)((XcapEvent const *)arg1)->getXcapMessage();
  10146. *(XcapMessage **)&jresult = result;
  10147. return jresult;
  10148. }
  10149. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapCallback(JNIEnv *jenv, jclass jcls) {
  10150. jlong jresult = 0 ;
  10151. XcapCallback *result = 0 ;
  10152. (void)jenv;
  10153. (void)jcls;
  10154. result = (XcapCallback *)new SwigDirector_XcapCallback(jenv);
  10155. *(XcapCallback **)&jresult = result;
  10156. return jresult;
  10157. }
  10158. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  10159. XcapCallback *arg1 = (XcapCallback *) 0 ;
  10160. (void)jenv;
  10161. (void)jcls;
  10162. arg1 = *(XcapCallback **)&jarg1;
  10163. delete arg1;
  10164. }
  10165. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  10166. jint jresult = 0 ;
  10167. XcapCallback *arg1 = (XcapCallback *) 0 ;
  10168. XcapEvent *arg2 = (XcapEvent *) 0 ;
  10169. int result;
  10170. (void)jenv;
  10171. (void)jcls;
  10172. (void)jarg1_;
  10173. (void)jarg2_;
  10174. arg1 = *(XcapCallback **)&jarg1;
  10175. arg2 = *(XcapEvent **)&jarg2;
  10176. result = (int)((XcapCallback const *)arg1)->onEvent((XcapEvent const *)arg2);
  10177. jresult = (jint)result;
  10178. return jresult;
  10179. }
  10180. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEventSwigExplicitXcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  10181. jint jresult = 0 ;
  10182. XcapCallback *arg1 = (XcapCallback *) 0 ;
  10183. XcapEvent *arg2 = (XcapEvent *) 0 ;
  10184. int result;
  10185. (void)jenv;
  10186. (void)jcls;
  10187. (void)jarg1_;
  10188. (void)jarg2_;
  10189. arg1 = *(XcapCallback **)&jarg1;
  10190. arg2 = *(XcapEvent **)&jarg2;
  10191. result = (int)((XcapCallback const *)arg1)->XcapCallback::onEvent((XcapEvent const *)arg2);
  10192. jresult = (jint)result;
  10193. return jresult;
  10194. }
  10195. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  10196. XcapCallback *obj = *((XcapCallback **)&objarg);
  10197. (void)jcls;
  10198. SwigDirector_XcapCallback *director = static_cast<SwigDirector_XcapCallback *>(obj);
  10199. if (director) {
  10200. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  10201. }
  10202. }
  10203. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  10204. XcapCallback *obj = *((XcapCallback **)&objarg);
  10205. SwigDirector_XcapCallback *director = static_cast<SwigDirector_XcapCallback *>(obj);
  10206. (void)jcls;
  10207. if (director) {
  10208. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  10209. }
  10210. }
  10211. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
  10212. jlong jresult = 0 ;
  10213. XcapCallback *arg1 = (XcapCallback *) 0 ;
  10214. char *arg2 = (char *) 0 ;
  10215. char *arg3 = (char *) 0 ;
  10216. char *arg4 = (char *) 0 ;
  10217. XcapStack *result = 0 ;
  10218. (void)jenv;
  10219. (void)jcls;
  10220. (void)jarg1_;
  10221. arg1 = *(XcapCallback **)&jarg1;
  10222. arg2 = 0;
  10223. if (jarg2) {
  10224. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10225. if (!arg2) return 0;
  10226. }
  10227. arg3 = 0;
  10228. if (jarg3) {
  10229. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10230. if (!arg3) return 0;
  10231. }
  10232. arg4 = 0;
  10233. if (jarg4) {
  10234. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  10235. if (!arg4) return 0;
  10236. }
  10237. result = (XcapStack *)new XcapStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
  10238. *(XcapStack **)&jresult = result;
  10239. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10240. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10241. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  10242. return jresult;
  10243. }
  10244. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  10245. XcapStack *arg1 = (XcapStack *) 0 ;
  10246. (void)jenv;
  10247. (void)jcls;
  10248. arg1 = *(XcapStack **)&jarg1;
  10249. delete arg1;
  10250. }
  10251. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1registerAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jboolean jarg6) {
  10252. jboolean jresult = 0 ;
  10253. XcapStack *arg1 = (XcapStack *) 0 ;
  10254. char *arg2 = (char *) 0 ;
  10255. char *arg3 = (char *) 0 ;
  10256. char *arg4 = (char *) 0 ;
  10257. char *arg5 = (char *) 0 ;
  10258. bool arg6 ;
  10259. bool result;
  10260. (void)jenv;
  10261. (void)jcls;
  10262. (void)jarg1_;
  10263. arg1 = *(XcapStack **)&jarg1;
  10264. arg2 = 0;
  10265. if (jarg2) {
  10266. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10267. if (!arg2) return 0;
  10268. }
  10269. arg3 = 0;
  10270. if (jarg3) {
  10271. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10272. if (!arg3) return 0;
  10273. }
  10274. arg4 = 0;
  10275. if (jarg4) {
  10276. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  10277. if (!arg4) return 0;
  10278. }
  10279. arg5 = 0;
  10280. if (jarg5) {
  10281. arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
  10282. if (!arg5) return 0;
  10283. }
  10284. arg6 = jarg6 ? true : false;
  10285. result = (bool)(arg1)->registerAUID((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
  10286. jresult = (jboolean)result;
  10287. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10288. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10289. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  10290. if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
  10291. return jresult;
  10292. }
  10293. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10294. jboolean jresult = 0 ;
  10295. XcapStack *arg1 = (XcapStack *) 0 ;
  10296. bool result;
  10297. (void)jenv;
  10298. (void)jcls;
  10299. (void)jarg1_;
  10300. arg1 = *(XcapStack **)&jarg1;
  10301. result = (bool)(arg1)->start();
  10302. jresult = (jboolean)result;
  10303. return jresult;
  10304. }
  10305. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setCredentials(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  10306. jboolean jresult = 0 ;
  10307. XcapStack *arg1 = (XcapStack *) 0 ;
  10308. char *arg2 = (char *) 0 ;
  10309. char *arg3 = (char *) 0 ;
  10310. bool result;
  10311. (void)jenv;
  10312. (void)jcls;
  10313. (void)jarg1_;
  10314. arg1 = *(XcapStack **)&jarg1;
  10315. arg2 = 0;
  10316. if (jarg2) {
  10317. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10318. if (!arg2) return 0;
  10319. }
  10320. arg3 = 0;
  10321. if (jarg3) {
  10322. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10323. if (!arg3) return 0;
  10324. }
  10325. result = (bool)(arg1)->setCredentials((char const *)arg2,(char const *)arg3);
  10326. jresult = (jboolean)result;
  10327. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10328. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10329. return jresult;
  10330. }
  10331. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setXcapRoot(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10332. jboolean jresult = 0 ;
  10333. XcapStack *arg1 = (XcapStack *) 0 ;
  10334. char *arg2 = (char *) 0 ;
  10335. bool result;
  10336. (void)jenv;
  10337. (void)jcls;
  10338. (void)jarg1_;
  10339. arg1 = *(XcapStack **)&jarg1;
  10340. arg2 = 0;
  10341. if (jarg2) {
  10342. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10343. if (!arg2) return 0;
  10344. }
  10345. result = (bool)(arg1)->setXcapRoot((char const *)arg2);
  10346. jresult = (jboolean)result;
  10347. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10348. return jresult;
  10349. }
  10350. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalIP(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10351. jboolean jresult = 0 ;
  10352. XcapStack *arg1 = (XcapStack *) 0 ;
  10353. char *arg2 = (char *) 0 ;
  10354. bool result;
  10355. (void)jenv;
  10356. (void)jcls;
  10357. (void)jarg1_;
  10358. arg1 = *(XcapStack **)&jarg1;
  10359. arg2 = 0;
  10360. if (jarg2) {
  10361. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10362. if (!arg2) return 0;
  10363. }
  10364. result = (bool)(arg1)->setLocalIP((char const *)arg2);
  10365. jresult = (jboolean)result;
  10366. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10367. return jresult;
  10368. }
  10369. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  10370. jboolean jresult = 0 ;
  10371. XcapStack *arg1 = (XcapStack *) 0 ;
  10372. unsigned int arg2 ;
  10373. bool result;
  10374. (void)jenv;
  10375. (void)jcls;
  10376. (void)jarg1_;
  10377. arg1 = *(XcapStack **)&jarg1;
  10378. arg2 = (unsigned int)jarg2;
  10379. result = (bool)(arg1)->setLocalPort(arg2);
  10380. jresult = (jboolean)result;
  10381. return jresult;
  10382. }
  10383. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  10384. jboolean jresult = 0 ;
  10385. XcapStack *arg1 = (XcapStack *) 0 ;
  10386. char *arg2 = (char *) 0 ;
  10387. char *arg3 = (char *) 0 ;
  10388. bool result;
  10389. (void)jenv;
  10390. (void)jcls;
  10391. (void)jarg1_;
  10392. arg1 = *(XcapStack **)&jarg1;
  10393. arg2 = 0;
  10394. if (jarg2) {
  10395. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10396. if (!arg2) return 0;
  10397. }
  10398. arg3 = 0;
  10399. if (jarg3) {
  10400. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10401. if (!arg3) return 0;
  10402. }
  10403. result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
  10404. jresult = (jboolean)result;
  10405. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10406. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10407. return jresult;
  10408. }
  10409. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10410. jboolean jresult = 0 ;
  10411. XcapStack *arg1 = (XcapStack *) 0 ;
  10412. char *arg2 = (char *) 0 ;
  10413. bool result;
  10414. (void)jenv;
  10415. (void)jcls;
  10416. (void)jarg1_;
  10417. arg1 = *(XcapStack **)&jarg1;
  10418. arg2 = 0;
  10419. if (jarg2) {
  10420. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10421. if (!arg2) return 0;
  10422. }
  10423. result = (bool)(arg1)->removeHeader((char const *)arg2);
  10424. jresult = (jboolean)result;
  10425. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10426. return jresult;
  10427. }
  10428. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setTimeout(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
  10429. jboolean jresult = 0 ;
  10430. XcapStack *arg1 = (XcapStack *) 0 ;
  10431. unsigned int arg2 ;
  10432. bool result;
  10433. (void)jenv;
  10434. (void)jcls;
  10435. (void)jarg1_;
  10436. arg1 = *(XcapStack **)&jarg1;
  10437. arg2 = (unsigned int)jarg2;
  10438. result = (bool)(arg1)->setTimeout(arg2);
  10439. jresult = (jboolean)result;
  10440. return jresult;
  10441. }
  10442. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10443. jboolean jresult = 0 ;
  10444. XcapStack *arg1 = (XcapStack *) 0 ;
  10445. char *arg2 = (char *) 0 ;
  10446. bool result;
  10447. (void)jenv;
  10448. (void)jcls;
  10449. (void)jarg1_;
  10450. arg1 = *(XcapStack **)&jarg1;
  10451. arg2 = 0;
  10452. if (jarg2) {
  10453. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10454. if (!arg2) return 0;
  10455. }
  10456. result = (bool)(arg1)->getDocument((char const *)arg2);
  10457. jresult = (jboolean)result;
  10458. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10459. return jresult;
  10460. }
  10461. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10462. jboolean jresult = 0 ;
  10463. XcapStack *arg1 = (XcapStack *) 0 ;
  10464. char *arg2 = (char *) 0 ;
  10465. bool result;
  10466. (void)jenv;
  10467. (void)jcls;
  10468. (void)jarg1_;
  10469. arg1 = *(XcapStack **)&jarg1;
  10470. arg2 = 0;
  10471. if (jarg2) {
  10472. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10473. if (!arg2) return 0;
  10474. }
  10475. result = (bool)(arg1)->getElement((char const *)arg2);
  10476. jresult = (jboolean)result;
  10477. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10478. return jresult;
  10479. }
  10480. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10481. jboolean jresult = 0 ;
  10482. XcapStack *arg1 = (XcapStack *) 0 ;
  10483. char *arg2 = (char *) 0 ;
  10484. bool result;
  10485. (void)jenv;
  10486. (void)jcls;
  10487. (void)jarg1_;
  10488. arg1 = *(XcapStack **)&jarg1;
  10489. arg2 = 0;
  10490. if (jarg2) {
  10491. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10492. if (!arg2) return 0;
  10493. }
  10494. result = (bool)(arg1)->getAttribute((char const *)arg2);
  10495. jresult = (jboolean)result;
  10496. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10497. return jresult;
  10498. }
  10499. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10500. jboolean jresult = 0 ;
  10501. XcapStack *arg1 = (XcapStack *) 0 ;
  10502. char *arg2 = (char *) 0 ;
  10503. bool result;
  10504. (void)jenv;
  10505. (void)jcls;
  10506. (void)jarg1_;
  10507. arg1 = *(XcapStack **)&jarg1;
  10508. arg2 = 0;
  10509. if (jarg2) {
  10510. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10511. if (!arg2) return 0;
  10512. }
  10513. result = (bool)(arg1)->deleteDocument((char const *)arg2);
  10514. jresult = (jboolean)result;
  10515. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10516. return jresult;
  10517. }
  10518. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10519. jboolean jresult = 0 ;
  10520. XcapStack *arg1 = (XcapStack *) 0 ;
  10521. char *arg2 = (char *) 0 ;
  10522. bool result;
  10523. (void)jenv;
  10524. (void)jcls;
  10525. (void)jarg1_;
  10526. arg1 = *(XcapStack **)&jarg1;
  10527. arg2 = 0;
  10528. if (jarg2) {
  10529. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10530. if (!arg2) return 0;
  10531. }
  10532. result = (bool)(arg1)->deleteElement((char const *)arg2);
  10533. jresult = (jboolean)result;
  10534. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10535. return jresult;
  10536. }
  10537. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  10538. jboolean jresult = 0 ;
  10539. XcapStack *arg1 = (XcapStack *) 0 ;
  10540. char *arg2 = (char *) 0 ;
  10541. bool result;
  10542. (void)jenv;
  10543. (void)jcls;
  10544. (void)jarg1_;
  10545. arg1 = *(XcapStack **)&jarg1;
  10546. arg2 = 0;
  10547. if (jarg2) {
  10548. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10549. if (!arg2) return 0;
  10550. }
  10551. result = (bool)(arg1)->deleteAttribute((char const *)arg2);
  10552. jresult = (jboolean)result;
  10553. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10554. return jresult;
  10555. }
  10556. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4, jstring jarg5) {
  10557. jboolean jresult = 0 ;
  10558. XcapStack *arg1 = (XcapStack *) 0 ;
  10559. char *arg2 = (char *) 0 ;
  10560. void *arg3 = (void *) 0 ;
  10561. unsigned int arg4 ;
  10562. char *arg5 = (char *) 0 ;
  10563. bool result;
  10564. (void)jenv;
  10565. (void)jcls;
  10566. (void)jarg1_;
  10567. arg1 = *(XcapStack **)&jarg1;
  10568. arg2 = 0;
  10569. if (jarg2) {
  10570. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10571. if (!arg2) return 0;
  10572. }
  10573. arg3 = jenv->GetDirectBufferAddress(jarg3);
  10574. arg4 = (unsigned int)jarg4;
  10575. arg5 = 0;
  10576. if (jarg5) {
  10577. arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
  10578. if (!arg5) return 0;
  10579. }
  10580. result = (bool)(arg1)->putDocument((char const *)arg2,(void const *)arg3,arg4,(char const *)arg5);
  10581. jresult = (jboolean)result;
  10582. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10583. if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
  10584. return jresult;
  10585. }
  10586. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) {
  10587. jboolean jresult = 0 ;
  10588. XcapStack *arg1 = (XcapStack *) 0 ;
  10589. char *arg2 = (char *) 0 ;
  10590. void *arg3 = (void *) 0 ;
  10591. unsigned int arg4 ;
  10592. bool result;
  10593. (void)jenv;
  10594. (void)jcls;
  10595. (void)jarg1_;
  10596. arg1 = *(XcapStack **)&jarg1;
  10597. arg2 = 0;
  10598. if (jarg2) {
  10599. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10600. if (!arg2) return 0;
  10601. }
  10602. arg3 = jenv->GetDirectBufferAddress(jarg3);
  10603. arg4 = (unsigned int)jarg4;
  10604. result = (bool)(arg1)->putElement((char const *)arg2,(void const *)arg3,arg4);
  10605. jresult = (jboolean)result;
  10606. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10607. return jresult;
  10608. }
  10609. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) {
  10610. jboolean jresult = 0 ;
  10611. XcapStack *arg1 = (XcapStack *) 0 ;
  10612. char *arg2 = (char *) 0 ;
  10613. void *arg3 = (void *) 0 ;
  10614. unsigned int arg4 ;
  10615. bool result;
  10616. (void)jenv;
  10617. (void)jcls;
  10618. (void)jarg1_;
  10619. arg1 = *(XcapStack **)&jarg1;
  10620. arg2 = 0;
  10621. if (jarg2) {
  10622. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10623. if (!arg2) return 0;
  10624. }
  10625. arg3 = jenv->GetDirectBufferAddress(jarg3);
  10626. arg4 = (unsigned int)jarg4;
  10627. result = (bool)(arg1)->putAttribute((char const *)arg2,(void const *)arg3,arg4);
  10628. jresult = (jboolean)result;
  10629. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10630. return jresult;
  10631. }
  10632. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10633. jboolean jresult = 0 ;
  10634. XcapStack *arg1 = (XcapStack *) 0 ;
  10635. bool result;
  10636. (void)jenv;
  10637. (void)jcls;
  10638. (void)jarg1_;
  10639. arg1 = *(XcapStack **)&jarg1;
  10640. result = (bool)(arg1)->stop();
  10641. jresult = (jboolean)result;
  10642. return jresult;
  10643. }
  10644. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RPMessage(JNIEnv *jenv, jclass jcls) {
  10645. jlong jresult = 0 ;
  10646. RPMessage *result = 0 ;
  10647. (void)jenv;
  10648. (void)jcls;
  10649. result = (RPMessage *)new RPMessage();
  10650. *(RPMessage **)&jresult = result;
  10651. return jresult;
  10652. }
  10653. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RPMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  10654. RPMessage *arg1 = (RPMessage *) 0 ;
  10655. (void)jenv;
  10656. (void)jcls;
  10657. arg1 = *(RPMessage **)&jarg1;
  10658. delete arg1;
  10659. }
  10660. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10661. jint jresult = 0 ;
  10662. RPMessage *arg1 = (RPMessage *) 0 ;
  10663. twrap_rpmessage_type_t result;
  10664. (void)jenv;
  10665. (void)jcls;
  10666. (void)jarg1_;
  10667. arg1 = *(RPMessage **)&jarg1;
  10668. result = (twrap_rpmessage_type_t)(arg1)->getType();
  10669. jresult = (jint)result;
  10670. return jresult;
  10671. }
  10672. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10673. jlong jresult = 0 ;
  10674. RPMessage *arg1 = (RPMessage *) 0 ;
  10675. unsigned int result;
  10676. (void)jenv;
  10677. (void)jcls;
  10678. (void)jarg1_;
  10679. arg1 = *(RPMessage **)&jarg1;
  10680. result = (unsigned int)(arg1)->getPayloadLength();
  10681. jresult = (jlong)result;
  10682. return jresult;
  10683. }
  10684. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  10685. jlong jresult = 0 ;
  10686. RPMessage *arg1 = (RPMessage *) 0 ;
  10687. void *arg2 = (void *) 0 ;
  10688. unsigned int arg3 ;
  10689. unsigned int result;
  10690. (void)jenv;
  10691. (void)jcls;
  10692. (void)jarg1_;
  10693. arg1 = *(RPMessage **)&jarg1;
  10694. arg2 = jenv->GetDirectBufferAddress(jarg2);
  10695. arg3 = (unsigned int)jarg3;
  10696. result = (unsigned int)(arg1)->getPayload(arg2,arg3);
  10697. jresult = (jlong)result;
  10698. return jresult;
  10699. }
  10700. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SMSData(JNIEnv *jenv, jclass jcls) {
  10701. jlong jresult = 0 ;
  10702. SMSData *result = 0 ;
  10703. (void)jenv;
  10704. (void)jcls;
  10705. result = (SMSData *)new SMSData();
  10706. *(SMSData **)&jresult = result;
  10707. return jresult;
  10708. }
  10709. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSData(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  10710. SMSData *arg1 = (SMSData *) 0 ;
  10711. (void)jenv;
  10712. (void)jcls;
  10713. arg1 = *(SMSData **)&jarg1;
  10714. delete arg1;
  10715. }
  10716. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10717. jint jresult = 0 ;
  10718. SMSData *arg1 = (SMSData *) 0 ;
  10719. twrap_sms_type_t result;
  10720. (void)jenv;
  10721. (void)jcls;
  10722. (void)jarg1_;
  10723. arg1 = *(SMSData **)&jarg1;
  10724. result = (twrap_sms_type_t)(arg1)->getType();
  10725. jresult = (jint)result;
  10726. return jresult;
  10727. }
  10728. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getMR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10729. jint jresult = 0 ;
  10730. SMSData *arg1 = (SMSData *) 0 ;
  10731. int result;
  10732. (void)jenv;
  10733. (void)jcls;
  10734. (void)jarg1_;
  10735. arg1 = *(SMSData **)&jarg1;
  10736. result = (int)(arg1)->getMR();
  10737. jresult = (jint)result;
  10738. return jresult;
  10739. }
  10740. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10741. jlong jresult = 0 ;
  10742. SMSData *arg1 = (SMSData *) 0 ;
  10743. unsigned int result;
  10744. (void)jenv;
  10745. (void)jcls;
  10746. (void)jarg1_;
  10747. arg1 = *(SMSData **)&jarg1;
  10748. result = (unsigned int)(arg1)->getPayloadLength();
  10749. jresult = (jlong)result;
  10750. return jresult;
  10751. }
  10752. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  10753. jlong jresult = 0 ;
  10754. SMSData *arg1 = (SMSData *) 0 ;
  10755. void *arg2 = (void *) 0 ;
  10756. unsigned int arg3 ;
  10757. unsigned int result;
  10758. (void)jenv;
  10759. (void)jcls;
  10760. (void)jarg1_;
  10761. arg1 = *(SMSData **)&jarg1;
  10762. arg2 = jenv->GetDirectBufferAddress(jarg2);
  10763. arg3 = (unsigned int)jarg3;
  10764. result = (unsigned int)(arg1)->getPayload(arg2,arg3);
  10765. jresult = (jlong)result;
  10766. return jresult;
  10767. }
  10768. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getOA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10769. jstring jresult = 0 ;
  10770. SMSData *arg1 = (SMSData *) 0 ;
  10771. char *result = 0 ;
  10772. (void)jenv;
  10773. (void)jcls;
  10774. (void)jarg1_;
  10775. arg1 = *(SMSData **)&jarg1;
  10776. result = (char *)(arg1)->getOA();
  10777. if (result) jresult = jenv->NewStringUTF((const char *)result);
  10778. return jresult;
  10779. }
  10780. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getDA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10781. jstring jresult = 0 ;
  10782. SMSData *arg1 = (SMSData *) 0 ;
  10783. char *result = 0 ;
  10784. (void)jenv;
  10785. (void)jcls;
  10786. (void)jarg1_;
  10787. arg1 = *(SMSData **)&jarg1;
  10788. result = (char *)(arg1)->getDA();
  10789. if (result) jresult = jenv->NewStringUTF((const char *)result);
  10790. return jresult;
  10791. }
  10792. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeSubmit(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
  10793. jlong jresult = 0 ;
  10794. int arg1 ;
  10795. char *arg2 = (char *) 0 ;
  10796. char *arg3 = (char *) 0 ;
  10797. char *arg4 = (char *) 0 ;
  10798. RPMessage *result = 0 ;
  10799. (void)jenv;
  10800. (void)jcls;
  10801. arg1 = (int)jarg1;
  10802. arg2 = 0;
  10803. if (jarg2) {
  10804. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10805. if (!arg2) return 0;
  10806. }
  10807. arg3 = 0;
  10808. if (jarg3) {
  10809. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10810. if (!arg3) return 0;
  10811. }
  10812. arg4 = 0;
  10813. if (jarg4) {
  10814. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  10815. if (!arg4) return 0;
  10816. }
  10817. result = (RPMessage *)SMSEncoder::encodeSubmit(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
  10818. *(RPMessage **)&jresult = result;
  10819. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10820. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10821. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  10822. return jresult;
  10823. }
  10824. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeDeliver(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
  10825. jlong jresult = 0 ;
  10826. int arg1 ;
  10827. char *arg2 = (char *) 0 ;
  10828. char *arg3 = (char *) 0 ;
  10829. char *arg4 = (char *) 0 ;
  10830. RPMessage *result = 0 ;
  10831. (void)jenv;
  10832. (void)jcls;
  10833. arg1 = (int)jarg1;
  10834. arg2 = 0;
  10835. if (jarg2) {
  10836. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10837. if (!arg2) return 0;
  10838. }
  10839. arg3 = 0;
  10840. if (jarg3) {
  10841. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10842. if (!arg3) return 0;
  10843. }
  10844. arg4 = 0;
  10845. if (jarg4) {
  10846. arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
  10847. if (!arg4) return 0;
  10848. }
  10849. result = (RPMessage *)SMSEncoder::encodeDeliver(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
  10850. *(RPMessage **)&jresult = result;
  10851. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10852. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10853. if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
  10854. return jresult;
  10855. }
  10856. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeACK(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) {
  10857. jlong jresult = 0 ;
  10858. int arg1 ;
  10859. char *arg2 = (char *) 0 ;
  10860. char *arg3 = (char *) 0 ;
  10861. bool arg4 ;
  10862. RPMessage *result = 0 ;
  10863. (void)jenv;
  10864. (void)jcls;
  10865. arg1 = (int)jarg1;
  10866. arg2 = 0;
  10867. if (jarg2) {
  10868. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10869. if (!arg2) return 0;
  10870. }
  10871. arg3 = 0;
  10872. if (jarg3) {
  10873. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10874. if (!arg3) return 0;
  10875. }
  10876. arg4 = jarg4 ? true : false;
  10877. result = (RPMessage *)SMSEncoder::encodeACK(arg1,(char const *)arg2,(char const *)arg3,arg4);
  10878. *(RPMessage **)&jresult = result;
  10879. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10880. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10881. return jresult;
  10882. }
  10883. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeError(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) {
  10884. jlong jresult = 0 ;
  10885. int arg1 ;
  10886. char *arg2 = (char *) 0 ;
  10887. char *arg3 = (char *) 0 ;
  10888. bool arg4 ;
  10889. RPMessage *result = 0 ;
  10890. (void)jenv;
  10891. (void)jcls;
  10892. arg1 = (int)jarg1;
  10893. arg2 = 0;
  10894. if (jarg2) {
  10895. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  10896. if (!arg2) return 0;
  10897. }
  10898. arg3 = 0;
  10899. if (jarg3) {
  10900. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  10901. if (!arg3) return 0;
  10902. }
  10903. arg4 = jarg4 ? true : false;
  10904. result = (RPMessage *)SMSEncoder::encodeError(arg1,(char const *)arg2,(char const *)arg3,arg4);
  10905. *(RPMessage **)&jresult = result;
  10906. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  10907. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  10908. return jresult;
  10909. }
  10910. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1decode(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jboolean jarg3) {
  10911. jlong jresult = 0 ;
  10912. void *arg1 = (void *) 0 ;
  10913. unsigned int arg2 ;
  10914. bool arg3 ;
  10915. SMSData *result = 0 ;
  10916. (void)jenv;
  10917. (void)jcls;
  10918. arg1 = jenv->GetDirectBufferAddress(jarg1);
  10919. arg2 = (unsigned int)jarg2;
  10920. arg3 = jarg3 ? true : false;
  10921. result = (SMSData *)SMSEncoder::decode((void const *)arg1,arg2,arg3);
  10922. *(SMSData **)&jresult = result;
  10923. return jresult;
  10924. }
  10925. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSEncoder(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  10926. SMSEncoder *arg1 = (SMSEncoder *) 0 ;
  10927. (void)jenv;
  10928. (void)jcls;
  10929. arg1 = *(SMSEncoder **)&jarg1;
  10930. delete arg1;
  10931. }
  10932. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpMessage(JNIEnv *jenv, jclass jcls) {
  10933. jlong jresult = 0 ;
  10934. MsrpMessage *result = 0 ;
  10935. (void)jenv;
  10936. (void)jcls;
  10937. result = (MsrpMessage *)new MsrpMessage();
  10938. *(MsrpMessage **)&jresult = result;
  10939. return jresult;
  10940. }
  10941. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  10942. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  10943. (void)jenv;
  10944. (void)jcls;
  10945. arg1 = *(MsrpMessage **)&jarg1;
  10946. delete arg1;
  10947. }
  10948. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isRequest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10949. jboolean jresult = 0 ;
  10950. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  10951. bool result;
  10952. (void)jenv;
  10953. (void)jcls;
  10954. (void)jarg1_;
  10955. arg1 = *(MsrpMessage **)&jarg1;
  10956. result = (bool)(arg1)->isRequest();
  10957. jresult = (jboolean)result;
  10958. return jresult;
  10959. }
  10960. SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10961. jshort jresult = 0 ;
  10962. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  10963. short result;
  10964. (void)jenv;
  10965. (void)jcls;
  10966. (void)jarg1_;
  10967. arg1 = *(MsrpMessage **)&jarg1;
  10968. result = (short)(arg1)->getCode();
  10969. jresult = (jshort)result;
  10970. return jresult;
  10971. }
  10972. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10973. jstring jresult = 0 ;
  10974. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  10975. char *result = 0 ;
  10976. (void)jenv;
  10977. (void)jcls;
  10978. (void)jarg1_;
  10979. arg1 = *(MsrpMessage **)&jarg1;
  10980. result = (char *)(arg1)->getPhrase();
  10981. if (result) jresult = jenv->NewStringUTF((const char *)result);
  10982. return jresult;
  10983. }
  10984. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  10985. jint jresult = 0 ;
  10986. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  10987. tmsrp_request_type_t result;
  10988. (void)jenv;
  10989. (void)jcls;
  10990. (void)jarg1_;
  10991. arg1 = *(MsrpMessage **)&jarg1;
  10992. result = (tmsrp_request_type_t)(arg1)->getRequestType();
  10993. jresult = (jint)result;
  10994. return jresult;
  10995. }
  10996. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getByteRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlongArray jarg2, jlongArray jarg3, jlongArray jarg4) {
  10997. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  10998. int64_t *arg2 = (int64_t *) 0 ;
  10999. int64_t *arg3 = (int64_t *) 0 ;
  11000. int64_t *arg4 = (int64_t *) 0 ;
  11001. int64_t temp2 ;
  11002. int64_t temp3 ;
  11003. int64_t temp4 ;
  11004. (void)jenv;
  11005. (void)jcls;
  11006. (void)jarg1_;
  11007. arg1 = *(MsrpMessage **)&jarg1;
  11008. {
  11009. if (!jarg2) {
  11010. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
  11011. return ;
  11012. }
  11013. if (jenv->GetArrayLength(jarg2) == 0) {
  11014. SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
  11015. return ;
  11016. }
  11017. temp2 = (int64_t)0;
  11018. arg2 = &temp2;
  11019. }
  11020. {
  11021. if (!jarg3) {
  11022. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
  11023. return ;
  11024. }
  11025. if (jenv->GetArrayLength(jarg3) == 0) {
  11026. SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
  11027. return ;
  11028. }
  11029. temp3 = (int64_t)0;
  11030. arg3 = &temp3;
  11031. }
  11032. {
  11033. if (!jarg4) {
  11034. SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
  11035. return ;
  11036. }
  11037. if (jenv->GetArrayLength(jarg4) == 0) {
  11038. SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
  11039. return ;
  11040. }
  11041. temp4 = (int64_t)0;
  11042. arg4 = &temp4;
  11043. }
  11044. (arg1)->getByteRange(arg2,arg3,arg4);
  11045. {
  11046. jlong jvalue = (jlong)temp2;
  11047. jenv->SetLongArrayRegion(jarg2, 0, 1, &jvalue);
  11048. }
  11049. {
  11050. jlong jvalue = (jlong)temp3;
  11051. jenv->SetLongArrayRegion(jarg3, 0, 1, &jvalue);
  11052. }
  11053. {
  11054. jlong jvalue = (jlong)temp4;
  11055. jenv->SetLongArrayRegion(jarg4, 0, 1, &jvalue);
  11056. }
  11057. }
  11058. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isLastChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  11059. jboolean jresult = 0 ;
  11060. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  11061. bool result;
  11062. (void)jenv;
  11063. (void)jcls;
  11064. (void)jarg1_;
  11065. arg1 = *(MsrpMessage **)&jarg1;
  11066. result = (bool)(arg1)->isLastChunck();
  11067. jresult = (jboolean)result;
  11068. return jresult;
  11069. }
  11070. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isFirstChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  11071. jboolean jresult = 0 ;
  11072. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  11073. bool result;
  11074. (void)jenv;
  11075. (void)jcls;
  11076. (void)jarg1_;
  11077. arg1 = *(MsrpMessage **)&jarg1;
  11078. result = (bool)(arg1)->isFirstChunck();
  11079. jresult = (jboolean)result;
  11080. return jresult;
  11081. }
  11082. SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isSuccessReport(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  11083. jboolean jresult = 0 ;
  11084. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  11085. bool result;
  11086. (void)jenv;
  11087. (void)jcls;
  11088. (void)jarg1_;
  11089. arg1 = *(MsrpMessage **)&jarg1;
  11090. result = (bool)(arg1)->isSuccessReport();
  11091. jresult = (jboolean)result;
  11092. return jresult;
  11093. }
  11094. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
  11095. jstring jresult = 0 ;
  11096. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  11097. char *arg2 = (char *) 0 ;
  11098. char *result = 0 ;
  11099. (void)jenv;
  11100. (void)jcls;
  11101. (void)jarg1_;
  11102. arg1 = *(MsrpMessage **)&jarg1;
  11103. arg2 = 0;
  11104. if (jarg2) {
  11105. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  11106. if (!arg2) return 0;
  11107. }
  11108. result = (char *)(arg1)->getMsrpHeaderValue((char const *)arg2);
  11109. if (result) jresult = jenv->NewStringUTF((const char *)result);
  11110. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  11111. delete [] result;
  11112. return jresult;
  11113. }
  11114. SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
  11115. jstring jresult = 0 ;
  11116. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  11117. char *arg2 = (char *) 0 ;
  11118. char *arg3 = (char *) 0 ;
  11119. char *result = 0 ;
  11120. (void)jenv;
  11121. (void)jcls;
  11122. (void)jarg1_;
  11123. arg1 = *(MsrpMessage **)&jarg1;
  11124. arg2 = 0;
  11125. if (jarg2) {
  11126. arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
  11127. if (!arg2) return 0;
  11128. }
  11129. arg3 = 0;
  11130. if (jarg3) {
  11131. arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
  11132. if (!arg3) return 0;
  11133. }
  11134. result = (char *)(arg1)->getMsrpHeaderParamValue((char const *)arg2,(char const *)arg3);
  11135. if (result) jresult = jenv->NewStringUTF((const char *)result);
  11136. if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
  11137. if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
  11138. delete [] result;
  11139. return jresult;
  11140. }
  11141. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  11142. jlong jresult = 0 ;
  11143. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  11144. unsigned int result;
  11145. (void)jenv;
  11146. (void)jcls;
  11147. (void)jarg1_;
  11148. arg1 = *(MsrpMessage **)&jarg1;
  11149. result = (unsigned int)(arg1)->getMsrpContentLength();
  11150. jresult = (jlong)result;
  11151. return jresult;
  11152. }
  11153. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
  11154. jlong jresult = 0 ;
  11155. MsrpMessage *arg1 = (MsrpMessage *) 0 ;
  11156. void *arg2 = (void *) 0 ;
  11157. unsigned int arg3 ;
  11158. unsigned int result;
  11159. (void)jenv;
  11160. (void)jcls;
  11161. (void)jarg1_;
  11162. arg1 = *(MsrpMessage **)&jarg1;
  11163. arg2 = jenv->GetDirectBufferAddress(jarg2);
  11164. arg3 = (unsigned int)jarg3;
  11165. result = (unsigned int)(arg1)->getMsrpContent(arg2,arg3);
  11166. jresult = (jlong)result;
  11167. return jresult;
  11168. }
  11169. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11170. MsrpEvent *arg1 = (MsrpEvent *) 0 ;
  11171. (void)jenv;
  11172. (void)jcls;
  11173. arg1 = *(MsrpEvent **)&jarg1;
  11174. delete arg1;
  11175. }
  11176. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  11177. jint jresult = 0 ;
  11178. MsrpEvent *arg1 = (MsrpEvent *) 0 ;
  11179. tmsrp_event_type_t result;
  11180. (void)jenv;
  11181. (void)jcls;
  11182. (void)jarg1_;
  11183. arg1 = *(MsrpEvent **)&jarg1;
  11184. result = (tmsrp_event_type_t)(arg1)->getType();
  11185. jresult = (jint)result;
  11186. return jresult;
  11187. }
  11188. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getSipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  11189. jlong jresult = 0 ;
  11190. MsrpEvent *arg1 = (MsrpEvent *) 0 ;
  11191. MsrpSession *result = 0 ;
  11192. (void)jenv;
  11193. (void)jcls;
  11194. (void)jarg1_;
  11195. arg1 = *(MsrpEvent **)&jarg1;
  11196. result = (MsrpSession *)(arg1)->getSipSession();
  11197. *(MsrpSession **)&jresult = result;
  11198. return jresult;
  11199. }
  11200. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
  11201. jlong jresult = 0 ;
  11202. MsrpEvent *arg1 = (MsrpEvent *) 0 ;
  11203. MsrpMessage *result = 0 ;
  11204. (void)jenv;
  11205. (void)jcls;
  11206. (void)jarg1_;
  11207. arg1 = *(MsrpEvent **)&jarg1;
  11208. result = (MsrpMessage *)((MsrpEvent const *)arg1)->getMessage();
  11209. *(MsrpMessage **)&jresult = result;
  11210. return jresult;
  11211. }
  11212. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpCallback(JNIEnv *jenv, jclass jcls) {
  11213. jlong jresult = 0 ;
  11214. MsrpCallback *result = 0 ;
  11215. (void)jenv;
  11216. (void)jcls;
  11217. result = (MsrpCallback *)new SwigDirector_MsrpCallback(jenv);
  11218. *(MsrpCallback **)&jresult = result;
  11219. return jresult;
  11220. }
  11221. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11222. MsrpCallback *arg1 = (MsrpCallback *) 0 ;
  11223. (void)jenv;
  11224. (void)jcls;
  11225. arg1 = *(MsrpCallback **)&jarg1;
  11226. delete arg1;
  11227. }
  11228. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  11229. jint jresult = 0 ;
  11230. MsrpCallback *arg1 = (MsrpCallback *) 0 ;
  11231. MsrpEvent *arg2 = (MsrpEvent *) 0 ;
  11232. int result;
  11233. (void)jenv;
  11234. (void)jcls;
  11235. (void)jarg1_;
  11236. (void)jarg2_;
  11237. arg1 = *(MsrpCallback **)&jarg1;
  11238. arg2 = *(MsrpEvent **)&jarg2;
  11239. result = (int)(arg1)->OnEvent((MsrpEvent const *)arg2);
  11240. jresult = (jint)result;
  11241. return jresult;
  11242. }
  11243. SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEventSwigExplicitMsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
  11244. jint jresult = 0 ;
  11245. MsrpCallback *arg1 = (MsrpCallback *) 0 ;
  11246. MsrpEvent *arg2 = (MsrpEvent *) 0 ;
  11247. int result;
  11248. (void)jenv;
  11249. (void)jcls;
  11250. (void)jarg1_;
  11251. (void)jarg2_;
  11252. arg1 = *(MsrpCallback **)&jarg1;
  11253. arg2 = *(MsrpEvent **)&jarg2;
  11254. result = (int)(arg1)->MsrpCallback::OnEvent((MsrpEvent const *)arg2);
  11255. jresult = (jint)result;
  11256. return jresult;
  11257. }
  11258. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
  11259. MsrpCallback *obj = *((MsrpCallback **)&objarg);
  11260. (void)jcls;
  11261. SwigDirector_MsrpCallback *director = static_cast<SwigDirector_MsrpCallback *>(obj);
  11262. if (director) {
  11263. director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
  11264. }
  11265. }
  11266. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
  11267. MsrpCallback *obj = *((MsrpCallback **)&objarg);
  11268. SwigDirector_MsrpCallback *director = static_cast<SwigDirector_MsrpCallback *>(obj);
  11269. (void)jcls;
  11270. if (director) {
  11271. director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
  11272. }
  11273. }
  11274. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11275. jlong baseptr = 0;
  11276. (void)jenv;
  11277. (void)jcls;
  11278. *(MediaContent **)&baseptr = *(MediaContentCPIM **)&jarg1;
  11279. return baseptr;
  11280. }
  11281. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DialogEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11282. jlong baseptr = 0;
  11283. (void)jenv;
  11284. (void)jcls;
  11285. *(SipEvent **)&baseptr = *(DialogEvent **)&jarg1;
  11286. return baseptr;
  11287. }
  11288. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_StackEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11289. jlong baseptr = 0;
  11290. (void)jenv;
  11291. (void)jcls;
  11292. *(SipEvent **)&baseptr = *(StackEvent **)&jarg1;
  11293. return baseptr;
  11294. }
  11295. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11296. jlong baseptr = 0;
  11297. (void)jenv;
  11298. (void)jcls;
  11299. *(SipEvent **)&baseptr = *(InviteEvent **)&jarg1;
  11300. return baseptr;
  11301. }
  11302. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11303. jlong baseptr = 0;
  11304. (void)jenv;
  11305. (void)jcls;
  11306. *(SipEvent **)&baseptr = *(MessagingEvent **)&jarg1;
  11307. return baseptr;
  11308. }
  11309. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11310. jlong baseptr = 0;
  11311. (void)jenv;
  11312. (void)jcls;
  11313. *(SipEvent **)&baseptr = *(InfoEvent **)&jarg1;
  11314. return baseptr;
  11315. }
  11316. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11317. jlong baseptr = 0;
  11318. (void)jenv;
  11319. (void)jcls;
  11320. *(SipEvent **)&baseptr = *(OptionsEvent **)&jarg1;
  11321. return baseptr;
  11322. }
  11323. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11324. jlong baseptr = 0;
  11325. (void)jenv;
  11326. (void)jcls;
  11327. *(SipEvent **)&baseptr = *(PublicationEvent **)&jarg1;
  11328. return baseptr;
  11329. }
  11330. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11331. jlong baseptr = 0;
  11332. (void)jenv;
  11333. (void)jcls;
  11334. *(SipEvent **)&baseptr = *(RegistrationEvent **)&jarg1;
  11335. return baseptr;
  11336. }
  11337. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11338. jlong baseptr = 0;
  11339. (void)jenv;
  11340. (void)jcls;
  11341. *(SipEvent **)&baseptr = *(SubscriptionEvent **)&jarg1;
  11342. return baseptr;
  11343. }
  11344. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11345. jlong baseptr = 0;
  11346. (void)jenv;
  11347. (void)jcls;
  11348. *(SipSession **)&baseptr = *(InviteSession **)&jarg1;
  11349. return baseptr;
  11350. }
  11351. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11352. jlong baseptr = 0;
  11353. (void)jenv;
  11354. (void)jcls;
  11355. *(InviteSession **)&baseptr = *(CallSession **)&jarg1;
  11356. return baseptr;
  11357. }
  11358. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11359. jlong baseptr = 0;
  11360. (void)jenv;
  11361. (void)jcls;
  11362. *(InviteSession **)&baseptr = *(MsrpSession **)&jarg1;
  11363. return baseptr;
  11364. }
  11365. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11366. jlong baseptr = 0;
  11367. (void)jenv;
  11368. (void)jcls;
  11369. *(SipSession **)&baseptr = *(MessagingSession **)&jarg1;
  11370. return baseptr;
  11371. }
  11372. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11373. jlong baseptr = 0;
  11374. (void)jenv;
  11375. (void)jcls;
  11376. *(SipSession **)&baseptr = *(InfoSession **)&jarg1;
  11377. return baseptr;
  11378. }
  11379. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11380. jlong baseptr = 0;
  11381. (void)jenv;
  11382. (void)jcls;
  11383. *(SipSession **)&baseptr = *(OptionsSession **)&jarg1;
  11384. return baseptr;
  11385. }
  11386. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11387. jlong baseptr = 0;
  11388. (void)jenv;
  11389. (void)jcls;
  11390. *(SipSession **)&baseptr = *(PublicationSession **)&jarg1;
  11391. return baseptr;
  11392. }
  11393. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11394. jlong baseptr = 0;
  11395. (void)jenv;
  11396. (void)jcls;
  11397. *(SipSession **)&baseptr = *(RegistrationSession **)&jarg1;
  11398. return baseptr;
  11399. }
  11400. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11401. jlong baseptr = 0;
  11402. (void)jenv;
  11403. (void)jcls;
  11404. *(SipSession **)&baseptr = *(SubscriptionSession **)&jarg1;
  11405. return baseptr;
  11406. }
  11407. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11408. jlong baseptr = 0;
  11409. (void)jenv;
  11410. (void)jcls;
  11411. *(ProxyPlugin **)&baseptr = *(ProxyAudioConsumer **)&jarg1;
  11412. return baseptr;
  11413. }
  11414. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11415. jlong baseptr = 0;
  11416. (void)jenv;
  11417. (void)jcls;
  11418. *(ProxyPlugin **)&baseptr = *(ProxyVideoConsumer **)&jarg1;
  11419. return baseptr;
  11420. }
  11421. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11422. jlong baseptr = 0;
  11423. (void)jenv;
  11424. (void)jcls;
  11425. *(ProxyPlugin **)&baseptr = *(ProxyAudioProducer **)&jarg1;
  11426. return baseptr;
  11427. }
  11428. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11429. jlong baseptr = 0;
  11430. (void)jenv;
  11431. (void)jcls;
  11432. *(ProxyPlugin **)&baseptr = *(ProxyVideoProducer **)&jarg1;
  11433. return baseptr;
  11434. }
  11435. SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  11436. jlong baseptr = 0;
  11437. (void)jenv;
  11438. (void)jcls;
  11439. *(SafeObject **)&baseptr = *(SipStack **)&jarg1;
  11440. return baseptr;
  11441. }
  11442. SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1init(JNIEnv *jenv, jclass jcls) {
  11443. int i;
  11444. static struct {
  11445. const char *method;
  11446. const char *signature;
  11447. } methods[37] = {
  11448. {
  11449. "SwigDirector_DDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
  11450. },
  11451. {
  11452. "SwigDirector_DDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
  11453. },
  11454. {
  11455. "SwigDirector_DDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
  11456. },
  11457. {
  11458. "SwigDirector_DDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
  11459. },
  11460. {
  11461. "SwigDirector_T140Callback_ondata", "(Lorg/doubango/tinyWRAP/T140Callback;J)I"
  11462. },
  11463. {
  11464. "SwigDirector_ProxyPluginMgrCallback_OnPluginCreated", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I"
  11465. },
  11466. {
  11467. "SwigDirector_ProxyPluginMgrCallback_OnPluginDestroyed", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I"
  11468. },
  11469. {
  11470. "SwigDirector_ProxyAudioConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;III)I"
  11471. },
  11472. {
  11473. "SwigDirector_ProxyAudioConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I"
  11474. },
  11475. {
  11476. "SwigDirector_ProxyAudioConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I"
  11477. },
  11478. {
  11479. "SwigDirector_ProxyAudioConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I"
  11480. },
  11481. {
  11482. "SwigDirector_ProxyVideoConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;III)I"
  11483. },
  11484. {
  11485. "SwigDirector_ProxyVideoConsumerCallback_consume", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;J)I"
  11486. },
  11487. {
  11488. "SwigDirector_ProxyVideoConsumerCallback_bufferCopied", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;JJ)I"
  11489. },
  11490. {
  11491. "SwigDirector_ProxyVideoConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I"
  11492. },
  11493. {
  11494. "SwigDirector_ProxyVideoConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I"
  11495. },
  11496. {
  11497. "SwigDirector_ProxyVideoConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I"
  11498. },
  11499. {
  11500. "SwigDirector_ProxyAudioProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;III)I"
  11501. },
  11502. {
  11503. "SwigDirector_ProxyAudioProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
  11504. },
  11505. {
  11506. "SwigDirector_ProxyAudioProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
  11507. },
  11508. {
  11509. "SwigDirector_ProxyAudioProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
  11510. },
  11511. {
  11512. "SwigDirector_ProxyAudioProducerCallback_fillPushBuffer", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
  11513. },
  11514. {
  11515. "SwigDirector_ProxyVideoProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;III)I"
  11516. },
  11517. {
  11518. "SwigDirector_ProxyVideoProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I"
  11519. },
  11520. {
  11521. "SwigDirector_ProxyVideoProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I"
  11522. },
  11523. {
  11524. "SwigDirector_ProxyVideoProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I"
  11525. },
  11526. {
  11527. "SwigDirector_SipCallback_OnDialogEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11528. },
  11529. {
  11530. "SwigDirector_SipCallback_OnStackEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11531. },
  11532. {
  11533. "SwigDirector_SipCallback_OnInviteEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11534. },
  11535. {
  11536. "SwigDirector_SipCallback_OnMessagingEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11537. },
  11538. {
  11539. "SwigDirector_SipCallback_OnInfoEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11540. },
  11541. {
  11542. "SwigDirector_SipCallback_OnOptionsEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11543. },
  11544. {
  11545. "SwigDirector_SipCallback_OnPublicationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11546. },
  11547. {
  11548. "SwigDirector_SipCallback_OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11549. },
  11550. {
  11551. "SwigDirector_SipCallback_OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
  11552. },
  11553. {
  11554. "SwigDirector_XcapCallback_onEvent", "(Lorg/doubango/tinyWRAP/XcapCallback;J)I"
  11555. },
  11556. {
  11557. "SwigDirector_MsrpCallback_OnEvent", "(Lorg/doubango/tinyWRAP/MsrpCallback;J)I"
  11558. }
  11559. };
  11560. Swig::jclass_tinyWRAPJNI = (jclass) jenv->NewGlobalRef(jcls);
  11561. if (!Swig::jclass_tinyWRAPJNI) return;
  11562. for (i = 0; i < (int) (sizeof(methods)/sizeof(methods[0])); ++i) {
  11563. Swig::director_methids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature);
  11564. if (!Swig::director_methids[i]) return;
  11565. }
  11566. }
  11567. #ifdef __cplusplus
  11568. }
  11569. #endif