| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404 |
- // Code generated for linux/riscv64 by 'generator --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libXau/include/linux/riscv64 -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libXdmcp/include/linux/riscv64 -lXau -lXdmcp -o libxcb.go --package-name libxcb src/.libs/libxcb.a', DO NOT EDIT.
- //go:build linux && riscv64
- package libxcb
- import (
- "reflect"
- "unsafe"
- "modernc.org/libXau"
- "modernc.org/libXdmcp"
- "modernc.org/libc"
- )
- var _ reflect.Type
- var _ unsafe.Pointer
- const m_AF_ALG = "PF_ALG"
- const m_AF_APPLETALK = "PF_APPLETALK"
- const m_AF_ASH = "PF_ASH"
- const m_AF_ATMPVC = "PF_ATMPVC"
- const m_AF_ATMSVC = "PF_ATMSVC"
- const m_AF_AX25 = "PF_AX25"
- const m_AF_BLUETOOTH = "PF_BLUETOOTH"
- const m_AF_BRIDGE = "PF_BRIDGE"
- const m_AF_CAIF = "PF_CAIF"
- const m_AF_CAN = "PF_CAN"
- const m_AF_DECnet = "PF_DECnet"
- const m_AF_ECONET = "PF_ECONET"
- const m_AF_FILE = "AF_LOCAL"
- const m_AF_IB = "PF_IB"
- const m_AF_IEEE802154 = "PF_IEEE802154"
- const m_AF_INET = "PF_INET"
- const m_AF_INET6 = "PF_INET6"
- const m_AF_IPX = "PF_IPX"
- const m_AF_IRDA = "PF_IRDA"
- const m_AF_ISDN = "PF_ISDN"
- const m_AF_IUCV = "PF_IUCV"
- const m_AF_KCM = "PF_KCM"
- const m_AF_KEY = "PF_KEY"
- const m_AF_LLC = "PF_LLC"
- const m_AF_LOCAL = "PF_LOCAL"
- const m_AF_MAX = "PF_MAX"
- const m_AF_MPLS = "PF_MPLS"
- const m_AF_NETBEUI = "PF_NETBEUI"
- const m_AF_NETLINK = "PF_NETLINK"
- const m_AF_NETROM = "PF_NETROM"
- const m_AF_NFC = "PF_NFC"
- const m_AF_PACKET = "PF_PACKET"
- const m_AF_PHONET = "PF_PHONET"
- const m_AF_PPPOX = "PF_PPPOX"
- const m_AF_QIPCRTR = "PF_QIPCRTR"
- const m_AF_RDS = "PF_RDS"
- const m_AF_ROSE = "PF_ROSE"
- const m_AF_ROUTE = "PF_ROUTE"
- const m_AF_RXRPC = "PF_RXRPC"
- const m_AF_SECURITY = "PF_SECURITY"
- const m_AF_SMC = "PF_SMC"
- const m_AF_SNA = "PF_SNA"
- const m_AF_TIPC = "PF_TIPC"
- const m_AF_UNIX = "AF_LOCAL"
- const m_AF_UNSPEC = "PF_UNSPEC"
- const m_AF_VSOCK = "PF_VSOCK"
- const m_AF_WANPIPE = "PF_WANPIPE"
- const m_AF_X25 = "PF_X25"
- const m_AF_XDP = "PF_XDP"
- const m_ARG_MAX = 131072
- const m_AT_EACCESS = 0x200
- const m_AT_EMPTY_PATH = 0x1000
- const m_AT_NO_AUTOMOUNT = 0x800
- const m_AT_RECURSIVE = 0x8000
- const m_AT_REMOVEDIR = 0x200
- const m_AT_STATX_DONT_SYNC = 0x4000
- const m_AT_STATX_FORCE_SYNC = 0x2000
- const m_AT_STATX_SYNC_AS_STAT = 0x0000
- const m_AT_STATX_SYNC_TYPE = 0x6000
- const m_AT_SYMLINK_FOLLOW = 0x400
- const m_AT_SYMLINK_NOFOLLOW = 0x100
- const m_BC_BASE_MAX = 99
- const m_BC_DIM_MAX = 2048
- const m_BC_SCALE_MAX = 99
- const m_BC_STRING_MAX = 1000
- const m_BIG_ENDIAN = "__BIG_ENDIAN"
- const m_BUFSIZ = 1024
- const m_BYTE_ORDER = "__BYTE_ORDER"
- const m_CHARCLASS_NAME_MAX = 14
- const m_CHAR_BIT = 8
- const m_CHAR_MAX = 255
- const m_CHAR_MIN = 0
- const m_CLOCKS_PER_SEC = 1000000
- const m_CLOCK_BOOTTIME = 7
- const m_CLOCK_BOOTTIME_ALARM = 9
- const m_CLOCK_MONOTONIC = 1
- const m_CLOCK_MONOTONIC_COARSE = 6
- const m_CLOCK_MONOTONIC_RAW = 4
- const m_CLOCK_PROCESS_CPUTIME_ID = 2
- const m_CLOCK_REALTIME = 0
- const m_CLOCK_REALTIME_ALARM = 8
- const m_CLOCK_REALTIME_COARSE = 5
- const m_CLOCK_SGI_CYCLE = 10
- const m_CLOCK_TAI = 11
- const m_CLOCK_THREAD_CPUTIME_ID = 3
- const m_CLONE_CHILD_CLEARTID = 0x00200000
- const m_CLONE_CHILD_SETTID = 0x01000000
- const m_CLONE_DETACHED = 0x00400000
- const m_CLONE_FILES = 0x00000400
- const m_CLONE_FS = 0x00000200
- const m_CLONE_IO = 0x80000000
- const m_CLONE_NEWCGROUP = 0x02000000
- const m_CLONE_NEWIPC = 0x08000000
- const m_CLONE_NEWNET = 0x40000000
- const m_CLONE_NEWNS = 0x00020000
- const m_CLONE_NEWPID = 0x20000000
- const m_CLONE_NEWTIME = 0x00000080
- const m_CLONE_NEWUSER = 0x10000000
- const m_CLONE_NEWUTS = 0x04000000
- const m_CLONE_PARENT = 0x00008000
- const m_CLONE_PARENT_SETTID = 0x00100000
- const m_CLONE_PIDFD = 0x00001000
- const m_CLONE_PTRACE = 0x00002000
- const m_CLONE_SETTLS = 0x00080000
- const m_CLONE_SIGHAND = 0x00000800
- const m_CLONE_SYSVSEM = 0x00040000
- const m_CLONE_THREAD = 0x00010000
- const m_CLONE_UNTRACED = 0x00800000
- const m_CLONE_VFORK = 0x00004000
- const m_CLONE_VM = 0x00000100
- const m_COLL_WEIGHTS_MAX = 2
- const m_CPU_SETSIZE = 1024
- const m_CSIGNAL = 0x000000ff
- const m_DELAYTIMER_MAX = 0x7fffffff
- const m_DN_ACCESS = 0x00000001
- const m_DN_ATTRIB = 0x00000020
- const m_DN_CREATE = 0x00000004
- const m_DN_DELETE = 0x00000008
- const m_DN_MODIFY = 0x00000002
- const m_DN_MULTISHOT = 0x80000000
- const m_DN_RENAME = 0x00000010
- const m_E2BIG = 7
- const m_EACCES = 13
- const m_EADDRINUSE = 98
- const m_EADDRNOTAVAIL = 99
- const m_EADV = 68
- const m_EAFNOSUPPORT = 97
- const m_EAGAIN = 11
- const m_EALREADY = 114
- const m_EBADE = 52
- const m_EBADF = 9
- const m_EBADFD = 77
- const m_EBADMSG = 74
- const m_EBADR = 53
- const m_EBADRQC = 56
- const m_EBADSLT = 57
- const m_EBFONT = 59
- const m_EBUSY = 16
- const m_ECANCELED = 125
- const m_ECHILD = 10
- const m_ECHRNG = 44
- const m_ECOMM = 70
- const m_ECONNABORTED = 103
- const m_ECONNREFUSED = 111
- const m_ECONNRESET = 104
- const m_EDEADLK = 35
- const m_EDEADLOCK = "EDEADLK"
- const m_EDESTADDRREQ = 89
- const m_EDOM = 33
- const m_EDOTDOT = 73
- const m_EDQUOT = 122
- const m_EEXIST = 17
- const m_EFAULT = 14
- const m_EFBIG = 27
- const m_EHOSTDOWN = 112
- const m_EHOSTUNREACH = 113
- const m_EHWPOISON = 133
- const m_EIDRM = 43
- const m_EILSEQ = 84
- const m_EINPROGRESS = 115
- const m_EINTR = 4
- const m_EINVAL = 22
- const m_EIO = 5
- const m_EISCONN = 106
- const m_EISDIR = 21
- const m_EISNAM = 120
- const m_EKEYEXPIRED = 127
- const m_EKEYREJECTED = 129
- const m_EKEYREVOKED = 128
- const m_EL2HLT = 51
- const m_EL2NSYNC = 45
- const m_EL3HLT = 46
- const m_EL3RST = 47
- const m_ELIBACC = 79
- const m_ELIBBAD = 80
- const m_ELIBEXEC = 83
- const m_ELIBMAX = 82
- const m_ELIBSCN = 81
- const m_ELNRNG = 48
- const m_ELOOP = 40
- const m_EMEDIUMTYPE = 124
- const m_EMFILE = 24
- const m_EMLINK = 31
- const m_EMSGSIZE = 90
- const m_EMULTIHOP = 72
- const m_ENAMETOOLONG = 36
- const m_ENAVAIL = 119
- const m_ENETDOWN = 100
- const m_ENETRESET = 102
- const m_ENETUNREACH = 101
- const m_ENFILE = 23
- const m_ENOANO = 55
- const m_ENOBUFS = 105
- const m_ENOCSI = 50
- const m_ENODATA = 61
- const m_ENODEV = 19
- const m_ENOENT = 2
- const m_ENOEXEC = 8
- const m_ENOKEY = 126
- const m_ENOLCK = 37
- const m_ENOLINK = 67
- const m_ENOMEDIUM = 123
- const m_ENOMEM = 12
- const m_ENOMSG = 42
- const m_ENONET = 64
- const m_ENOPKG = 65
- const m_ENOPROTOOPT = 92
- const m_ENOSPC = 28
- const m_ENOSR = 63
- const m_ENOSTR = 60
- const m_ENOSYS = 38
- const m_ENOTBLK = 15
- const m_ENOTCONN = 107
- const m_ENOTDIR = 20
- const m_ENOTEMPTY = 39
- const m_ENOTNAM = 118
- const m_ENOTRECOVERABLE = 131
- const m_ENOTSOCK = 88
- const m_ENOTSUP = "EOPNOTSUPP"
- const m_ENOTTY = 25
- const m_ENOTUNIQ = 76
- const m_ENXIO = 6
- const m_EOPNOTSUPP = 95
- const m_EOVERFLOW = 75
- const m_EOWNERDEAD = 130
- const m_EPERM = 1
- const m_EPFNOSUPPORT = 96
- const m_EPIPE = 32
- const m_EPROTO = 71
- const m_EPROTONOSUPPORT = 93
- const m_EPROTOTYPE = 91
- const m_ERANGE = 34
- const m_EREMCHG = 78
- const m_EREMOTE = 66
- const m_EREMOTEIO = 121
- const m_ERESTART = 85
- const m_ERFKILL = 132
- const m_EROFS = 30
- const m_ESHUTDOWN = 108
- const m_ESOCKTNOSUPPORT = 94
- const m_ESPIPE = 29
- const m_ESRCH = 3
- const m_ESRMNT = 69
- const m_ESTALE = 116
- const m_ESTRPIPE = 86
- const m_ETIME = 62
- const m_ETIMEDOUT = 110
- const m_ETOOMANYREFS = 109
- const m_ETXTBSY = 26
- const m_EUCLEAN = 117
- const m_EUNATCH = 49
- const m_EUSERS = 87
- const m_EWOULDBLOCK = "EAGAIN"
- const m_EXDEV = 18
- const m_EXFULL = 54
- const m_EXIT_FAILURE = 1
- const m_EXIT_SUCCESS = 0
- const m_EXPR_NEST_MAX = 32
- const m_FALLOC_FL_KEEP_SIZE = 1
- const m_FALLOC_FL_PUNCH_HOLE = 2
- const m_FAPPEND = "O_APPEND"
- const m_FASYNC = "O_ASYNC"
- const m_FD_CLOEXEC = 1
- const m_FD_SETSIZE = 1024
- const m_FFSYNC = "O_SYNC"
- const m_FILENAME_MAX = 4096
- const m_FILESIZEBITS = 64
- const m_FNDELAY = "O_NDELAY"
- const m_FNONBLOCK = "O_NONBLOCK"
- const m_FOPEN_MAX = 1000
- const m_F_ADD_SEALS = 1033
- const m_F_CANCELLK = 1029
- const m_F_DUPFD = 0
- const m_F_DUPFD_CLOEXEC = 1030
- const m_F_GETFD = 1
- const m_F_GETFL = 3
- const m_F_GETLEASE = 1025
- const m_F_GETLK = 5
- const m_F_GETOWN = 9
- const m_F_GETOWNER_UIDS = 17
- const m_F_GETOWN_EX = 16
- const m_F_GETPIPE_SZ = 1032
- const m_F_GETSIG = 11
- const m_F_GET_FILE_RW_HINT = 1037
- const m_F_GET_RW_HINT = 1035
- const m_F_GET_SEALS = 1034
- const m_F_LOCK = 1
- const m_F_NOTIFY = 1026
- const m_F_OFD_GETLK = 36
- const m_F_OFD_SETLK = 37
- const m_F_OFD_SETLKW = 38
- const m_F_OK = 0
- const m_F_OWNER_GID = 2
- const m_F_OWNER_PGRP = 2
- const m_F_OWNER_PID = 1
- const m_F_OWNER_TID = 0
- const m_F_RDLCK = 0
- const m_F_SEAL_FUTURE_WRITE = 0x0010
- const m_F_SEAL_GROW = 0x0004
- const m_F_SEAL_SEAL = 0x0001
- const m_F_SEAL_SHRINK = 0x0002
- const m_F_SEAL_WRITE = 0x0008
- const m_F_SETFD = 2
- const m_F_SETFL = 4
- const m_F_SETLEASE = 1024
- const m_F_SETLK = 6
- const m_F_SETLKW = 7
- const m_F_SETOWN = 8
- const m_F_SETOWN_EX = 15
- const m_F_SETPIPE_SZ = 1031
- const m_F_SETSIG = 10
- const m_F_SET_FILE_RW_HINT = 1038
- const m_F_SET_RW_HINT = 1036
- const m_F_TEST = 3
- const m_F_TLOCK = 2
- const m_F_ULOCK = 0
- const m_F_UNLCK = 2
- const m_F_WRLCK = 1
- const m_HASXDMAUTH = 1
- const m_HAVE_ABSTRACT_SOCKETS = 1
- const m_HAVE_CONFIG_H = 1
- const m_HAVE_DLFCN_H = 1
- const m_HAVE_GETADDRINFO = 1
- const m_HAVE_INTTYPES_H = 1
- const m_HAVE_SENDMSG = 1
- const m_HAVE_STDINT_H = 1
- const m_HAVE_STDIO_H = 1
- const m_HAVE_STDLIB_H = 1
- const m_HAVE_STRINGS_H = 1
- const m_HAVE_STRING_H = 1
- const m_HAVE_SYS_STAT_H = 1
- const m_HAVE_SYS_TYPES_H = 1
- const m_HAVE_UNISTD_H = 1
- const m_HAVE_WCHAR_H = 1
- const m_HOST_NAME_MAX = 255
- const m_INET6_ADDRSTRLEN = 46
- const m_INET_ADDRSTRLEN = 16
- const m_INT16_MAX = 0x7fff
- const m_INT32_MAX = 0x7fffffff
- const m_INT64_MAX = 0x7fffffffffffffff
- const m_INT8_MAX = 0x7f
- const m_INTMAX_MAX = "INT64_MAX"
- const m_INTMAX_MIN = "INT64_MIN"
- const m_INTPTR_MAX = "INT64_MAX"
- const m_INTPTR_MIN = "INT64_MIN"
- const m_INT_FAST16_MAX = "INT32_MAX"
- const m_INT_FAST16_MIN = "INT32_MIN"
- const m_INT_FAST32_MAX = "INT32_MAX"
- const m_INT_FAST32_MIN = "INT32_MIN"
- const m_INT_FAST64_MAX = "INT64_MAX"
- const m_INT_FAST64_MIN = "INT64_MIN"
- const m_INT_FAST8_MAX = "INT8_MAX"
- const m_INT_FAST8_MIN = "INT8_MIN"
- const m_INT_LEAST16_MAX = "INT16_MAX"
- const m_INT_LEAST16_MIN = "INT16_MIN"
- const m_INT_LEAST32_MAX = "INT32_MAX"
- const m_INT_LEAST32_MIN = "INT32_MIN"
- const m_INT_LEAST64_MAX = "INT64_MAX"
- const m_INT_LEAST64_MIN = "INT64_MIN"
- const m_INT_LEAST8_MAX = "INT8_MAX"
- const m_INT_LEAST8_MIN = "INT8_MIN"
- const m_INT_MAX = 0x7fffffff
- const m_IN_CLASSA_MAX = 128
- const m_IN_CLASSA_NET = 0xff000000
- const m_IN_CLASSA_NSHIFT = 24
- const m_IN_CLASSB_MAX = 65536
- const m_IN_CLASSB_NET = 0xffff0000
- const m_IN_CLASSB_NSHIFT = 16
- const m_IN_CLASSC_NET = 0xffffff00
- const m_IN_CLASSC_NSHIFT = 8
- const m_IN_LOOPBACKNET = 127
- const m_IOV_MAX = 1024
- const m_IPPORT_RESERVED = 1024
- const m_IPPROTO_AH = 51
- const m_IPPROTO_BEETPH = 94
- const m_IPPROTO_COMP = 108
- const m_IPPROTO_DCCP = 33
- const m_IPPROTO_DSTOPTS = 60
- const m_IPPROTO_EGP = 8
- const m_IPPROTO_ENCAP = 98
- const m_IPPROTO_ESP = 50
- const m_IPPROTO_ETHERNET = 143
- const m_IPPROTO_FRAGMENT = 44
- const m_IPPROTO_GRE = 47
- const m_IPPROTO_HOPOPTS = 0
- const m_IPPROTO_ICMP = 1
- const m_IPPROTO_ICMPV6 = 58
- const m_IPPROTO_IDP = 22
- const m_IPPROTO_IGMP = 2
- const m_IPPROTO_IP = 0
- const m_IPPROTO_IPIP = 4
- const m_IPPROTO_IPV6 = 41
- const m_IPPROTO_MAX = 263
- const m_IPPROTO_MH = 135
- const m_IPPROTO_MPLS = 137
- const m_IPPROTO_MPTCP = 262
- const m_IPPROTO_MTP = 92
- const m_IPPROTO_NONE = 59
- const m_IPPROTO_PIM = 103
- const m_IPPROTO_PUP = 12
- const m_IPPROTO_RAW = 255
- const m_IPPROTO_ROUTING = 43
- const m_IPPROTO_RSVP = 46
- const m_IPPROTO_SCTP = 132
- const m_IPPROTO_TCP = 6
- const m_IPPROTO_TP = 29
- const m_IPPROTO_UDP = 17
- const m_IPPROTO_UDPLITE = 136
- const m_IPV6_2292DSTOPTS = 4
- const m_IPV6_2292HOPLIMIT = 8
- const m_IPV6_2292HOPOPTS = 3
- const m_IPV6_2292PKTINFO = 2
- const m_IPV6_2292PKTOPTIONS = 6
- const m_IPV6_2292RTHDR = 5
- const m_IPV6_ADDRFORM = 1
- const m_IPV6_ADDR_PREFERENCES = 72
- const m_IPV6_ADD_MEMBERSHIP = "IPV6_JOIN_GROUP"
- const m_IPV6_AUTHHDR = 10
- const m_IPV6_AUTOFLOWLABEL = 70
- const m_IPV6_CHECKSUM = 7
- const m_IPV6_DONTFRAG = 62
- const m_IPV6_DROP_MEMBERSHIP = "IPV6_LEAVE_GROUP"
- const m_IPV6_DSTOPTS = 59
- const m_IPV6_FREEBIND = 78
- const m_IPV6_HDRINCL = 36
- const m_IPV6_HOPLIMIT = 52
- const m_IPV6_HOPOPTS = 54
- const m_IPV6_IPSEC_POLICY = 34
- const m_IPV6_JOIN_ANYCAST = 27
- const m_IPV6_JOIN_GROUP = 20
- const m_IPV6_LEAVE_ANYCAST = 28
- const m_IPV6_LEAVE_GROUP = 21
- const m_IPV6_MINHOPCOUNT = 73
- const m_IPV6_MTU = 24
- const m_IPV6_MTU_DISCOVER = 23
- const m_IPV6_MULTICAST_ALL = 29
- const m_IPV6_MULTICAST_HOPS = 18
- const m_IPV6_MULTICAST_IF = 17
- const m_IPV6_MULTICAST_LOOP = 19
- const m_IPV6_NEXTHOP = 9
- const m_IPV6_ORIGDSTADDR = 74
- const m_IPV6_PATHMTU = 61
- const m_IPV6_PKTINFO = 50
- const m_IPV6_PMTUDISC_DO = 2
- const m_IPV6_PMTUDISC_DONT = 0
- const m_IPV6_PMTUDISC_INTERFACE = 4
- const m_IPV6_PMTUDISC_OMIT = 5
- const m_IPV6_PMTUDISC_PROBE = 3
- const m_IPV6_PMTUDISC_WANT = 1
- const m_IPV6_PREFER_SRC_CGA = 0x0008
- const m_IPV6_PREFER_SRC_COA = 0x0004
- const m_IPV6_PREFER_SRC_HOME = 0x0400
- const m_IPV6_PREFER_SRC_NONCGA = 0x0800
- const m_IPV6_PREFER_SRC_PUBLIC = 0x0002
- const m_IPV6_PREFER_SRC_PUBTMP_DEFAULT = 0x0100
- const m_IPV6_PREFER_SRC_TMP = 0x0001
- const m_IPV6_RECVDSTOPTS = 58
- const m_IPV6_RECVERR = 25
- const m_IPV6_RECVFRAGSIZE = 77
- const m_IPV6_RECVHOPLIMIT = 51
- const m_IPV6_RECVHOPOPTS = 53
- const m_IPV6_RECVORIGDSTADDR = "IPV6_ORIGDSTADDR"
- const m_IPV6_RECVPATHMTU = 60
- const m_IPV6_RECVPKTINFO = 49
- const m_IPV6_RECVRTHDR = 56
- const m_IPV6_RECVTCLASS = 66
- const m_IPV6_ROUTER_ALERT = 22
- const m_IPV6_ROUTER_ALERT_ISOLATE = 30
- const m_IPV6_RTHDR = 57
- const m_IPV6_RTHDRDSTOPTS = 55
- const m_IPV6_RTHDR_LOOSE = 0
- const m_IPV6_RTHDR_STRICT = 1
- const m_IPV6_RTHDR_TYPE_0 = 0
- const m_IPV6_RXDSTOPTS = "IPV6_DSTOPTS"
- const m_IPV6_RXHOPOPTS = "IPV6_HOPOPTS"
- const m_IPV6_TCLASS = 67
- const m_IPV6_TRANSPARENT = 75
- const m_IPV6_UNICAST_HOPS = 16
- const m_IPV6_UNICAST_IF = 76
- const m_IPV6_V6ONLY = 26
- const m_IPV6_XFRM_POLICY = 35
- const m_IP_ADD_MEMBERSHIP = 35
- const m_IP_ADD_SOURCE_MEMBERSHIP = 39
- const m_IP_BIND_ADDRESS_NO_PORT = 24
- const m_IP_BLOCK_SOURCE = 38
- const m_IP_CHECKSUM = 23
- const m_IP_DEFAULT_MULTICAST_LOOP = 1
- const m_IP_DEFAULT_MULTICAST_TTL = 1
- const m_IP_DROP_MEMBERSHIP = 36
- const m_IP_DROP_SOURCE_MEMBERSHIP = 40
- const m_IP_FREEBIND = 15
- const m_IP_HDRINCL = 3
- const m_IP_IPSEC_POLICY = 16
- const m_IP_MAX_MEMBERSHIPS = 20
- const m_IP_MINTTL = 21
- const m_IP_MSFILTER = 41
- const m_IP_MTU = 14
- const m_IP_MTU_DISCOVER = 10
- const m_IP_MULTICAST_ALL = 49
- const m_IP_MULTICAST_IF = 32
- const m_IP_MULTICAST_LOOP = 34
- const m_IP_MULTICAST_TTL = 33
- const m_IP_NODEFRAG = 22
- const m_IP_OPTIONS = 4
- const m_IP_ORIGDSTADDR = 20
- const m_IP_PASSSEC = 18
- const m_IP_PKTINFO = 8
- const m_IP_PKTOPTIONS = 9
- const m_IP_PMTUDISC = 10
- const m_IP_PMTUDISC_DO = 2
- const m_IP_PMTUDISC_DONT = 0
- const m_IP_PMTUDISC_INTERFACE = 4
- const m_IP_PMTUDISC_OMIT = 5
- const m_IP_PMTUDISC_PROBE = 3
- const m_IP_PMTUDISC_WANT = 1
- const m_IP_RECVERR = 11
- const m_IP_RECVERR_RFC4884 = 26
- const m_IP_RECVFRAGSIZE = 25
- const m_IP_RECVOPTS = 6
- const m_IP_RECVORIGDSTADDR = "IP_ORIGDSTADDR"
- const m_IP_RECVRETOPTS = "IP_RETOPTS"
- const m_IP_RECVTOS = 13
- const m_IP_RECVTTL = 12
- const m_IP_RETOPTS = 7
- const m_IP_ROUTER_ALERT = 5
- const m_IP_TOS = 1
- const m_IP_TRANSPARENT = 19
- const m_IP_TTL = 2
- const m_IP_UNBLOCK_SOURCE = 37
- const m_IP_UNICAST_IF = 50
- const m_IP_XFRM_POLICY = 17
- const m_LINE_MAX = 4096
- const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
- const m_LLONG_MAX = 0x7fffffffffffffff
- const m_LOGIN_NAME_MAX = 256
- const m_LONG_BIT = 64
- const m_LONG_MAX = "__LONG_MAX"
- const m_LT_OBJDIR = ".libs/"
- const m_L_INCR = 1
- const m_L_SET = 0
- const m_L_XTND = 2
- const m_L_ctermid = 20
- const m_L_cuserid = 20
- const m_L_tmpnam = 20
- const m_MAX_HANDLE_SZ = 128
- const m_MB_LEN_MAX = 4
- const m_MCAST_BLOCK_SOURCE = 43
- const m_MCAST_EXCLUDE = 0
- const m_MCAST_INCLUDE = 1
- const m_MCAST_JOIN_GROUP = 42
- const m_MCAST_JOIN_SOURCE_GROUP = 46
- const m_MCAST_LEAVE_GROUP = 45
- const m_MCAST_LEAVE_SOURCE_GROUP = 47
- const m_MCAST_MSFILTER = 48
- const m_MCAST_UNBLOCK_SOURCE = 44
- const m_MQ_PRIO_MAX = 32768
- const m_MSG_BATCH = 0x40000
- const m_MSG_CMSG_CLOEXEC = 0x40000000
- const m_MSG_CONFIRM = 0x0800
- const m_MSG_CTRUNC = 0x0008
- const m_MSG_DONTROUTE = 0x0004
- const m_MSG_DONTWAIT = 0x0040
- const m_MSG_EOR = 0x0080
- const m_MSG_ERRQUEUE = 0x2000
- const m_MSG_FASTOPEN = 0x20000000
- const m_MSG_FIN = 0x0200
- const m_MSG_MORE = 0x8000
- const m_MSG_NOSIGNAL = 0x4000
- const m_MSG_OOB = 0x0001
- const m_MSG_PEEK = 0x0002
- const m_MSG_PROXY = 0x0010
- const m_MSG_RST = 0x1000
- const m_MSG_SYN = 0x0400
- const m_MSG_TRUNC = 0x0020
- const m_MSG_WAITALL = 0x0100
- const m_MSG_WAITFORONE = 0x10000
- const m_MSG_ZEROCOPY = 0x4000000
- const m_NAME_MAX = 255
- const m_NDEBUG = 1
- const m_NGROUPS_MAX = 32
- const m_NL_ARGMAX = 9
- const m_NL_LANGMAX = 32
- const m_NL_MSGMAX = 32767
- const m_NL_NMAX = 16
- const m_NL_SETMAX = 255
- const m_NL_TEXTMAX = 2048
- const m_NZERO = 20
- const m_O_APPEND = 02000
- const m_O_ASYNC = 020000
- const m_O_CLOEXEC = 02000000
- const m_O_CREAT = 0100
- const m_O_DIRECT = 040000
- const m_O_DIRECTORY = 0200000
- const m_O_DSYNC = 010000
- const m_O_EXCL = 0200
- const m_O_EXEC = "O_PATH"
- const m_O_LARGEFILE = 0100000
- const m_O_NDELAY = "O_NONBLOCK"
- const m_O_NOATIME = 01000000
- const m_O_NOCTTY = 0400
- const m_O_NOFOLLOW = 0400000
- const m_O_NONBLOCK = 2048
- const m_O_PATH = 010000000
- const m_O_RDONLY = 00
- const m_O_RDWR = 02
- const m_O_RSYNC = 04010000
- const m_O_SEARCH = "O_PATH"
- const m_O_SYNC = 04010000
- const m_O_TMPFILE = 020200000
- const m_O_TRUNC = 01000
- const m_O_TTY_INIT = 0
- const m_O_WRONLY = 01
- const m_PACKAGE = "libxcb"
- const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues"
- const m_PACKAGE_NAME = "libxcb"
- const m_PACKAGE_STRING = "libxcb 1.17.0"
- const m_PACKAGE_TARNAME = "libxcb"
- const m_PACKAGE_URL = ""
- const m_PACKAGE_VERSION = "1.17.0"
- const m_PACKAGE_VERSION_MAJOR = 1
- const m_PACKAGE_VERSION_MINOR = 17
- const m_PACKAGE_VERSION_PATCHLEVEL = 0
- const m_PATH_MAX = 4096
- const m_PDP_ENDIAN = "__PDP_ENDIAN"
- const m_PF_ALG = 38
- const m_PF_APPLETALK = 5
- const m_PF_ASH = 18
- const m_PF_ATMPVC = 8
- const m_PF_ATMSVC = 20
- const m_PF_AX25 = 3
- const m_PF_BLUETOOTH = 31
- const m_PF_BRIDGE = 7
- const m_PF_CAIF = 37
- const m_PF_CAN = 29
- const m_PF_DECnet = 12
- const m_PF_ECONET = 19
- const m_PF_FILE = "PF_LOCAL"
- const m_PF_IB = 27
- const m_PF_IEEE802154 = 36
- const m_PF_INET = 2
- const m_PF_INET6 = 10
- const m_PF_IPX = 4
- const m_PF_IRDA = 23
- const m_PF_ISDN = 34
- const m_PF_IUCV = 32
- const m_PF_KCM = 41
- const m_PF_KEY = 15
- const m_PF_LLC = 26
- const m_PF_LOCAL = 1
- const m_PF_MAX = 45
- const m_PF_MPLS = 28
- const m_PF_NETBEUI = 13
- const m_PF_NETLINK = 16
- const m_PF_NETROM = 6
- const m_PF_NFC = 39
- const m_PF_PACKET = 17
- const m_PF_PHONET = 35
- const m_PF_PPPOX = 24
- const m_PF_QIPCRTR = 42
- const m_PF_RDS = 21
- const m_PF_ROSE = 11
- const m_PF_ROUTE = "PF_NETLINK"
- const m_PF_RXRPC = 33
- const m_PF_SECURITY = 14
- const m_PF_SMC = 43
- const m_PF_SNA = 22
- const m_PF_TIPC = 30
- const m_PF_UNIX = "PF_LOCAL"
- const m_PF_UNSPEC = 0
- const m_PF_VSOCK = 40
- const m_PF_WANPIPE = 25
- const m_PF_X25 = 9
- const m_PF_XDP = 44
- const m_PIPE_BUF = 4096
- const m_POLLERR = 0x008
- const m_POLLHUP = 0x010
- const m_POLLIN = 1
- const m_POLLMSG = 0x400
- const m_POLLNVAL = 0x020
- const m_POLLOUT = 4
- const m_POLLPRI = 0x002
- const m_POLLRDBAND = 0x080
- const m_POLLRDHUP = 0x2000
- const m_POLLRDNORM = 0x040
- const m_POLLWRBAND = 0x200
- const m_POLLWRNORM = 0x100
- const m_POSIX_CLOSE_RESTART = 0
- const m_POSIX_FADV_DONTNEED = 4
- const m_POSIX_FADV_NOREUSE = 5
- const m_POSIX_FADV_NORMAL = 0
- const m_POSIX_FADV_RANDOM = 1
- const m_POSIX_FADV_SEQUENTIAL = 2
- const m_POSIX_FADV_WILLNEED = 3
- const m_PRIX16 = "X"
- const m_PRIX32 = "X"
- const m_PRIX8 = "X"
- const m_PRIXFAST16 = "X"
- const m_PRIXFAST32 = "X"
- const m_PRIXFAST8 = "X"
- const m_PRIXLEAST16 = "X"
- const m_PRIXLEAST32 = "X"
- const m_PRIXLEAST8 = "X"
- const m_PRId16 = "d"
- const m_PRId32 = "d"
- const m_PRId8 = "d"
- const m_PRIdFAST16 = "d"
- const m_PRIdFAST32 = "d"
- const m_PRIdFAST8 = "d"
- const m_PRIdLEAST16 = "d"
- const m_PRIdLEAST32 = "d"
- const m_PRIdLEAST8 = "d"
- const m_PRIi16 = "i"
- const m_PRIi32 = "i"
- const m_PRIi8 = "i"
- const m_PRIiFAST16 = "i"
- const m_PRIiFAST32 = "i"
- const m_PRIiFAST8 = "i"
- const m_PRIiLEAST16 = "i"
- const m_PRIiLEAST32 = "i"
- const m_PRIiLEAST8 = "i"
- const m_PRIo16 = "o"
- const m_PRIo32 = "o"
- const m_PRIo8 = "o"
- const m_PRIoFAST16 = "o"
- const m_PRIoFAST32 = "o"
- const m_PRIoFAST8 = "o"
- const m_PRIoLEAST16 = "o"
- const m_PRIoLEAST32 = "o"
- const m_PRIoLEAST8 = "o"
- const m_PRIu16 = "u"
- const m_PRIu32 = "u"
- const m_PRIu8 = "u"
- const m_PRIuFAST16 = "u"
- const m_PRIuFAST32 = "u"
- const m_PRIuFAST8 = "u"
- const m_PRIuLEAST16 = "u"
- const m_PRIuLEAST32 = "u"
- const m_PRIuLEAST8 = "u"
- const m_PRIx16 = "x"
- const m_PRIx32 = "x"
- const m_PRIx8 = "x"
- const m_PRIxFAST16 = "x"
- const m_PRIxFAST32 = "x"
- const m_PRIxFAST8 = "x"
- const m_PRIxLEAST16 = "x"
- const m_PRIxLEAST32 = "x"
- const m_PRIxLEAST8 = "x"
- const m_PTHREAD_CANCEL_ASYNCHRONOUS = 1
- const m_PTHREAD_CANCEL_DEFERRED = 0
- const m_PTHREAD_CANCEL_DISABLE = 1
- const m_PTHREAD_CANCEL_ENABLE = 0
- const m_PTHREAD_CANCEL_MASKED = 2
- const m_PTHREAD_CREATE_DETACHED = 1
- const m_PTHREAD_CREATE_JOINABLE = 0
- const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
- const m_PTHREAD_EXPLICIT_SCHED = 1
- const m_PTHREAD_INHERIT_SCHED = 0
- const m_PTHREAD_KEYS_MAX = 128
- const m_PTHREAD_MUTEX_DEFAULT = 0
- const m_PTHREAD_MUTEX_ERRORCHECK = 2
- const m_PTHREAD_MUTEX_NORMAL = 0
- const m_PTHREAD_MUTEX_RECURSIVE = 1
- const m_PTHREAD_MUTEX_ROBUST = 1
- const m_PTHREAD_MUTEX_STALLED = 0
- const m_PTHREAD_ONCE_INIT = 0
- const m_PTHREAD_PRIO_INHERIT = 1
- const m_PTHREAD_PRIO_NONE = 0
- const m_PTHREAD_PRIO_PROTECT = 2
- const m_PTHREAD_PROCESS_PRIVATE = 0
- const m_PTHREAD_PROCESS_SHARED = 1
- const m_PTHREAD_SCOPE_PROCESS = 1
- const m_PTHREAD_SCOPE_SYSTEM = 0
- const m_PTHREAD_STACK_MIN = 2048
- const m_PTRDIFF_MAX = "INT64_MAX"
- const m_PTRDIFF_MIN = "INT64_MIN"
- const m_P_tmpdir = "/tmp"
- const m_RAND_MAX = 0x7fffffff
- const m_RE_DUP_MAX = 255
- const m_RWF_APPEND = 0x00000010
- const m_RWF_DSYNC = 0x00000002
- const m_RWF_HIPRI = 0x00000001
- const m_RWF_NOWAIT = 0x00000008
- const m_RWF_SYNC = 0x00000004
- const m_RWF_WRITE_LIFE_NOT_SET = 0
- const m_RWH_WRITE_LIFE_EXTREME = 5
- const m_RWH_WRITE_LIFE_LONG = 4
- const m_RWH_WRITE_LIFE_MEDIUM = 3
- const m_RWH_WRITE_LIFE_NONE = 1
- const m_RWH_WRITE_LIFE_SHORT = 2
- const m_R_OK = 4
- const m_SCHAR_MAX = 127
- const m_SCHED_BATCH = 3
- const m_SCHED_DEADLINE = 6
- const m_SCHED_FIFO = 1
- const m_SCHED_IDLE = 5
- const m_SCHED_OTHER = 0
- const m_SCHED_RESET_ON_FORK = 0x40000000
- const m_SCHED_RR = 2
- const m_SCM_CREDENTIALS = 0x02
- const m_SCM_RIGHTS = 1
- const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
- const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
- const m_SCM_TIMESTAMPING_OPT_STATS = 54
- const m_SCM_TIMESTAMPING_PKTINFO = 58
- const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
- const m_SCM_TXTIME = "SO_TXTIME"
- const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
- const m_SCNd16 = "hd"
- const m_SCNd32 = "d"
- const m_SCNd8 = "hhd"
- const m_SCNdFAST16 = "d"
- const m_SCNdFAST32 = "d"
- const m_SCNdFAST8 = "hhd"
- const m_SCNdLEAST16 = "hd"
- const m_SCNdLEAST32 = "d"
- const m_SCNdLEAST8 = "hhd"
- const m_SCNi16 = "hi"
- const m_SCNi32 = "i"
- const m_SCNi8 = "hhi"
- const m_SCNiFAST16 = "i"
- const m_SCNiFAST32 = "i"
- const m_SCNiFAST8 = "hhi"
- const m_SCNiLEAST16 = "hi"
- const m_SCNiLEAST32 = "i"
- const m_SCNiLEAST8 = "hhi"
- const m_SCNo16 = "ho"
- const m_SCNo32 = "o"
- const m_SCNo8 = "hho"
- const m_SCNoFAST16 = "o"
- const m_SCNoFAST32 = "o"
- const m_SCNoFAST8 = "hho"
- const m_SCNoLEAST16 = "ho"
- const m_SCNoLEAST32 = "o"
- const m_SCNoLEAST8 = "hho"
- const m_SCNu16 = "hu"
- const m_SCNu32 = "u"
- const m_SCNu8 = "hhu"
- const m_SCNuFAST16 = "u"
- const m_SCNuFAST32 = "u"
- const m_SCNuFAST8 = "hhu"
- const m_SCNuLEAST16 = "hu"
- const m_SCNuLEAST32 = "u"
- const m_SCNuLEAST8 = "hhu"
- const m_SCNx16 = "hx"
- const m_SCNx32 = "x"
- const m_SCNx8 = "hhx"
- const m_SCNxFAST16 = "x"
- const m_SCNxFAST32 = "x"
- const m_SCNxFAST8 = "hhx"
- const m_SCNxLEAST16 = "hx"
- const m_SCNxLEAST32 = "x"
- const m_SCNxLEAST8 = "hhx"
- const m_SEEK_DATA = 3
- const m_SEEK_HOLE = 4
- const m_SEM_NSEMS_MAX = 256
- const m_SEM_VALUE_MAX = 0x7fffffff
- const m_SHRT_MAX = 0x7fff
- const m_SHUT_RD = 0
- const m_SHUT_RDWR = 2
- const m_SHUT_WR = 1
- const m_SIG_ATOMIC_MAX = "INT32_MAX"
- const m_SIG_ATOMIC_MIN = "INT32_MIN"
- const m_SIZE_MAX = "UINT64_MAX"
- const m_SOCK_CLOEXEC = 02000000
- const m_SOCK_DCCP = 6
- const m_SOCK_DGRAM = 2
- const m_SOCK_NONBLOCK = 04000
- const m_SOCK_PACKET = 10
- const m_SOCK_RAW = 3
- const m_SOCK_RDM = 4
- const m_SOCK_SEQPACKET = 5
- const m_SOCK_STREAM = 1
- const m_SOL_AAL = 265
- const m_SOL_ALG = 279
- const m_SOL_ATM = 264
- const m_SOL_BLUETOOTH = 274
- const m_SOL_CAIF = 278
- const m_SOL_DCCP = 269
- const m_SOL_DECNET = 261
- const m_SOL_ICMPV6 = 58
- const m_SOL_IP = 0
- const m_SOL_IPV6 = 41
- const m_SOL_IRDA = 266
- const m_SOL_IUCV = 277
- const m_SOL_KCM = 281
- const m_SOL_LLC = 268
- const m_SOL_NETBEUI = 267
- const m_SOL_NETLINK = 270
- const m_SOL_NFC = 280
- const m_SOL_PACKET = 263
- const m_SOL_PNPIPE = 275
- const m_SOL_PPPOL2TP = 273
- const m_SOL_RAW = 255
- const m_SOL_RDS = 276
- const m_SOL_RXRPC = 272
- const m_SOL_SOCKET = 1
- const m_SOL_TIPC = 271
- const m_SOL_TLS = 282
- const m_SOL_X25 = 262
- const m_SOL_XDP = 283
- const m_SOMAXCONN = 128
- const m_SO_ACCEPTCONN = 30
- const m_SO_ATTACH_BPF = 50
- const m_SO_ATTACH_FILTER = 26
- const m_SO_ATTACH_REUSEPORT_CBPF = 51
- const m_SO_ATTACH_REUSEPORT_EBPF = 52
- const m_SO_BINDTODEVICE = 25
- const m_SO_BINDTOIFINDEX = 62
- const m_SO_BPF_EXTENSIONS = 48
- const m_SO_BROADCAST = 6
- const m_SO_BSDCOMPAT = 14
- const m_SO_BUSY_POLL = 46
- const m_SO_BUSY_POLL_BUDGET = 70
- const m_SO_CNX_ADVICE = 53
- const m_SO_COOKIE = 57
- const m_SO_DEBUG = 1
- const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
- const m_SO_DETACH_FILTER = 27
- const m_SO_DETACH_REUSEPORT_BPF = 68
- const m_SO_DOMAIN = 39
- const m_SO_DONTROUTE = 5
- const m_SO_ERROR = 4
- const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
- const m_SO_INCOMING_CPU = 49
- const m_SO_INCOMING_NAPI_ID = 56
- const m_SO_KEEPALIVE = 9
- const m_SO_LINGER = 13
- const m_SO_LOCK_FILTER = 44
- const m_SO_MARK = 36
- const m_SO_MAX_PACING_RATE = 47
- const m_SO_MEMINFO = 55
- const m_SO_NOFCS = 43
- const m_SO_NO_CHECK = 11
- const m_SO_OOBINLINE = 10
- const m_SO_PASSCRED = 16
- const m_SO_PASSSEC = 34
- const m_SO_PEEK_OFF = 42
- const m_SO_PEERCRED = 17
- const m_SO_PEERGROUPS = 59
- const m_SO_PEERNAME = 28
- const m_SO_PEERSEC = 31
- const m_SO_PREFER_BUSY_POLL = 69
- const m_SO_PRIORITY = 12
- const m_SO_PROTOCOL = 38
- const m_SO_RCVBUF = 8
- const m_SO_RCVBUFFORCE = 33
- const m_SO_RCVLOWAT = 18
- const m_SO_RCVTIMEO = 20
- const m_SO_REUSEADDR = 2
- const m_SO_REUSEPORT = 15
- const m_SO_RXQ_OVFL = 40
- const m_SO_SECURITY_AUTHENTICATION = 22
- const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
- const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
- const m_SO_SELECT_ERR_QUEUE = 45
- const m_SO_SNDBUF = 7
- const m_SO_SNDBUFFORCE = 32
- const m_SO_SNDLOWAT = 19
- const m_SO_SNDTIMEO = 21
- const m_SO_TIMESTAMP = 29
- const m_SO_TIMESTAMPING = 37
- const m_SO_TIMESTAMPNS = 35
- const m_SO_TXTIME = 61
- const m_SO_TYPE = 3
- const m_SO_WIFI_STATUS = 41
- const m_SO_ZEROCOPY = 60
- const m_SPLICE_F_GIFT = 8
- const m_SPLICE_F_MORE = 4
- const m_SPLICE_F_MOVE = 1
- const m_SPLICE_F_NONBLOCK = 2
- const m_SSIZE_MAX = "LONG_MAX"
- const m_STDC_HEADERS = 1
- const m_STDERR_FILENO = 2
- const m_STDIN_FILENO = 0
- const m_STDOUT_FILENO = 1
- const m_SYMLOOP_MAX = 40
- const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
- const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
- const m_SYNC_FILE_RANGE_WRITE = 2
- const m_S_IRGRP = 0040
- const m_S_IROTH = 0004
- const m_S_IRUSR = 0400
- const m_S_IRWXG = 0070
- const m_S_IRWXO = 0007
- const m_S_IRWXU = 0700
- const m_S_ISGID = 02000
- const m_S_ISUID = 04000
- const m_S_ISVTX = 01000
- const m_S_IWGRP = 0020
- const m_S_IWOTH = 0002
- const m_S_IWUSR = 0200
- const m_S_IXGRP = 0010
- const m_S_IXOTH = 0001
- const m_S_IXUSR = 0100
- const m_TIMER_ABSTIME = 1
- const m_TIME_UTC = 1
- const m_TMP_MAX = 10000
- const m_TTY_NAME_MAX = 32
- const m_TZNAME_MAX = 6
- const m_UCHAR_MAX = 255
- const m_UINT16_MAX = 0xffff
- const m_UINT32_MAX = "0xffffffffu"
- const m_UINT64_MAX = "0xffffffffffffffffu"
- const m_UINT8_MAX = 0xff
- const m_UINTMAX_MAX = "UINT64_MAX"
- const m_UINTPTR_MAX = "UINT64_MAX"
- const m_UINT_FAST16_MAX = "UINT32_MAX"
- const m_UINT_FAST32_MAX = "UINT32_MAX"
- const m_UINT_FAST64_MAX = "UINT64_MAX"
- const m_UINT_FAST8_MAX = "UINT8_MAX"
- const m_UINT_LEAST16_MAX = "UINT16_MAX"
- const m_UINT_LEAST32_MAX = "UINT32_MAX"
- const m_UINT_LEAST64_MAX = "UINT64_MAX"
- const m_UINT_LEAST8_MAX = "UINT8_MAX"
- const m_UINT_MAX = 0xffffffff
- const m_UIO_MAXIOV = 1024
- const m_USE_POLL = 1
- const m_USHRT_MAX = 0xffff
- const m_VERSION = "1.17.0"
- const m_WINT_MAX = "UINT32_MAX"
- const m_WINT_MIN = 0
- const m_WNOHANG = 1
- const m_WORD_BIT = 32
- const m_WUNTRACED = 2
- const m_W_OK = 2
- const m_XCB_ACCESS = 10
- const m_XCB_ALLOC = 11
- const m_XCB_ALLOC_COLOR = 84
- const m_XCB_ALLOC_COLOR_CELLS = 86
- const m_XCB_ALLOC_COLOR_PLANES = 87
- const m_XCB_ALLOC_NAMED_COLOR = 85
- const m_XCB_ALLOW_EVENTS = 35
- const m_XCB_ATOM = 5
- const m_XCB_BELL = 104
- const m_XCB_BIGREQUESTS_MAJOR_VERSION = 0
- const m_XCB_BIGREQUESTS_MINOR_VERSION = 0
- const m_XCB_BIG_REQUESTS_ENABLE = 0
- const m_XCB_BUTTON_PRESS = 4
- const m_XCB_BUTTON_RELEASE = 5
- const m_XCB_CHANGE_ACTIVE_POINTER_GRAB = 30
- const m_XCB_CHANGE_GC = 56
- const m_XCB_CHANGE_HOSTS = 109
- const m_XCB_CHANGE_KEYBOARD_CONTROL = 102
- const m_XCB_CHANGE_KEYBOARD_MAPPING = 100
- const m_XCB_CHANGE_POINTER_CONTROL = 105
- const m_XCB_CHANGE_PROPERTY = 18
- const m_XCB_CHANGE_SAVE_SET = 6
- const m_XCB_CHANGE_WINDOW_ATTRIBUTES = 2
- const m_XCB_CIRCULATE_NOTIFY = 26
- const m_XCB_CIRCULATE_REQUEST = 27
- const m_XCB_CIRCULATE_WINDOW = 13
- const m_XCB_CLEAR_AREA = 61
- const m_XCB_CLIENT_MESSAGE = 33
- const m_XCB_CLOSE_FONT = 46
- const m_XCB_COLORMAP = 12
- const m_XCB_COLORMAP_NOTIFY = 32
- const m_XCB_CONFIGURE_NOTIFY = 22
- const m_XCB_CONFIGURE_REQUEST = 23
- const m_XCB_CONFIGURE_WINDOW = 12
- const m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED = 2
- const m_XCB_CONN_CLOSED_FDPASSING_FAILED = 7
- const m_XCB_CONN_CLOSED_INVALID_SCREEN = 6
- const m_XCB_CONN_CLOSED_MEM_INSUFFICIENT = 3
- const m_XCB_CONN_CLOSED_PARSE_ERR = 5
- const m_XCB_CONN_CLOSED_REQ_LEN_EXCEED = 4
- const m_XCB_CONN_ERROR = 1
- const m_XCB_CONVERT_SELECTION = 24
- const m_XCB_COPY_AREA = 62
- const m_XCB_COPY_COLORMAP_AND_FREE = 80
- const m_XCB_COPY_FROM_PARENT = 0
- const m_XCB_COPY_GC = 57
- const m_XCB_COPY_PLANE = 63
- const m_XCB_CREATE_COLORMAP = 78
- const m_XCB_CREATE_CURSOR = 93
- const m_XCB_CREATE_GC = 55
- const m_XCB_CREATE_GLYPH_CURSOR = 94
- const m_XCB_CREATE_NOTIFY = 16
- const m_XCB_CREATE_PIXMAP = 53
- const m_XCB_CREATE_WINDOW = 1
- const m_XCB_CURRENT_TIME = 0
- const m_XCB_CURSOR = 6
- const m_XCB_DELETE_PROPERTY = 19
- const m_XCB_DESTROY_NOTIFY = 17
- const m_XCB_DESTROY_SUBWINDOWS = 5
- const m_XCB_DESTROY_WINDOW = 4
- const m_XCB_DRAWABLE = 9
- const m_XCB_ENTER_NOTIFY = 7
- const m_XCB_EXPOSE = 12
- const m_XCB_FILL_POLY = 69
- const m_XCB_FOCUS_IN = 9
- const m_XCB_FOCUS_OUT = 10
- const m_XCB_FONT = 7
- const m_XCB_FORCE_SCREEN_SAVER = 115
- const m_XCB_FREE_COLORMAP = 79
- const m_XCB_FREE_COLORS = 88
- const m_XCB_FREE_CURSOR = 95
- const m_XCB_FREE_GC = 60
- const m_XCB_FREE_PIXMAP = 54
- const m_XCB_GET_ATOM_NAME = 17
- const m_XCB_GET_FONT_PATH = 52
- const m_XCB_GET_GEOMETRY = 14
- const m_XCB_GET_IMAGE = 73
- const m_XCB_GET_INPUT_FOCUS = 43
- const m_XCB_GET_KEYBOARD_CONTROL = 103
- const m_XCB_GET_KEYBOARD_MAPPING = 101
- const m_XCB_GET_MODIFIER_MAPPING = 119
- const m_XCB_GET_MOTION_EVENTS = 39
- const m_XCB_GET_POINTER_CONTROL = 106
- const m_XCB_GET_POINTER_MAPPING = 117
- const m_XCB_GET_PROPERTY = 20
- const m_XCB_GET_SCREEN_SAVER = 108
- const m_XCB_GET_SELECTION_OWNER = 23
- const m_XCB_GET_WINDOW_ATTRIBUTES = 3
- const m_XCB_GE_GENERIC = 35
- const m_XCB_GRAB_BUTTON = 28
- const m_XCB_GRAB_KEY = 33
- const m_XCB_GRAB_KEYBOARD = 31
- const m_XCB_GRAB_POINTER = 26
- const m_XCB_GRAB_SERVER = 36
- const m_XCB_GRAPHICS_EXPOSURE = 13
- const m_XCB_GRAVITY_NOTIFY = 24
- const m_XCB_G_CONTEXT = 13
- const m_XCB_ID_CHOICE = 14
- const m_XCB_IMAGE_TEXT_16 = 77
- const m_XCB_IMAGE_TEXT_8 = 76
- const m_XCB_IMPLEMENTATION = 17
- const m_XCB_INSTALL_COLORMAP = 81
- const m_XCB_INTERN_ATOM = 16
- const m_XCB_KEYMAP_NOTIFY = 11
- const m_XCB_KEY_PRESS = 2
- const m_XCB_KEY_RELEASE = 3
- const m_XCB_KILL_CLIENT = 113
- const m_XCB_LEAVE_NOTIFY = 8
- const m_XCB_LENGTH = 16
- const m_XCB_LIST_EXTENSIONS = 99
- const m_XCB_LIST_FONTS = 49
- const m_XCB_LIST_FONTS_WITH_INFO = 50
- const m_XCB_LIST_HOSTS = 110
- const m_XCB_LIST_INSTALLED_COLORMAPS = 83
- const m_XCB_LIST_PROPERTIES = 21
- const m_XCB_LOOKUP_COLOR = 92
- const m_XCB_MAPPING_NOTIFY = 34
- const m_XCB_MAP_NOTIFY = 19
- const m_XCB_MAP_REQUEST = 20
- const m_XCB_MAP_SUBWINDOWS = 9
- const m_XCB_MAP_WINDOW = 8
- const m_XCB_MATCH = 8
- const m_XCB_MAX_PASS_FD = 16
- const m_XCB_MOTION_NOTIFY = 6
- const m_XCB_NAME = 15
- const m_XCB_NONE = 0
- const m_XCB_NO_EXPOSURE = 14
- const m_XCB_NO_OPERATION = 127
- const m_XCB_NO_SYMBOL = 0
- const m_XCB_OPEN_FONT = 45
- const m_XCB_PIXMAP = 4
- const m_XCB_POLY_ARC = 68
- const m_XCB_POLY_FILL_ARC = 71
- const m_XCB_POLY_FILL_RECTANGLE = 70
- const m_XCB_POLY_LINE = 65
- const m_XCB_POLY_POINT = 64
- const m_XCB_POLY_RECTANGLE = 67
- const m_XCB_POLY_SEGMENT = 66
- const m_XCB_POLY_TEXT_16 = 75
- const m_XCB_POLY_TEXT_8 = 74
- const m_XCB_PROPERTY_NOTIFY = 28
- const m_XCB_PUT_IMAGE = 72
- const m_XCB_QUERY_BEST_SIZE = 97
- const m_XCB_QUERY_COLORS = 91
- const m_XCB_QUERY_EXTENSION = 98
- const m_XCB_QUERY_FONT = 47
- const m_XCB_QUERY_KEYMAP = 44
- const m_XCB_QUERY_POINTER = 38
- const m_XCB_QUERY_TEXT_EXTENTS = 48
- const m_XCB_QUERY_TREE = 15
- const m_XCB_QUEUE_BUFFER_SIZE = 16384
- const m_XCB_RECOLOR_CURSOR = 96
- const m_XCB_REPARENT_NOTIFY = 21
- const m_XCB_REPARENT_WINDOW = 7
- const m_XCB_REQUEST = 1
- const m_XCB_RESIZE_REQUEST = 25
- const m_XCB_ROTATE_PROPERTIES = 114
- const m_XCB_SELECTION_CLEAR = 29
- const m_XCB_SELECTION_NOTIFY = 31
- const m_XCB_SELECTION_REQUEST = 30
- const m_XCB_SEND_EVENT = 25
- const m_XCB_SET_ACCESS_CONTROL = 111
- const m_XCB_SET_CLIP_RECTANGLES = 59
- const m_XCB_SET_CLOSE_DOWN_MODE = 112
- const m_XCB_SET_DASHES = 58
- const m_XCB_SET_FONT_PATH = 51
- const m_XCB_SET_INPUT_FOCUS = 42
- const m_XCB_SET_MODIFIER_MAPPING = 118
- const m_XCB_SET_POINTER_MAPPING = 116
- const m_XCB_SET_SCREEN_SAVER = 107
- const m_XCB_SET_SELECTION_OWNER = 22
- const m_XCB_STORE_COLORS = 89
- const m_XCB_STORE_NAMED_COLOR = 90
- const m_XCB_TRANSLATE_COORDINATES = 40
- const m_XCB_UNGRAB_BUTTON = 29
- const m_XCB_UNGRAB_KEY = 34
- const m_XCB_UNGRAB_KEYBOARD = 32
- const m_XCB_UNGRAB_POINTER = 27
- const m_XCB_UNGRAB_SERVER = 37
- const m_XCB_UNINSTALL_COLORMAP = 82
- const m_XCB_UNMAP_NOTIFY = 18
- const m_XCB_UNMAP_SUBWINDOWS = 11
- const m_XCB_UNMAP_WINDOW = 10
- const m_XCB_VALUE = 2
- const m_XCB_VISIBILITY_NOTIFY = 15
- const m_XCB_WARP_POINTER = 41
- const m_XCB_WINDOW = 3
- const m_X_OK = 1
- const m_X_PROTOCOL = 11
- const m_X_PROTOCOL_REVISION = 0
- const m_X_TCP_PORT = 6000
- const m__ALL_SOURCE = 1
- const m__CS_GNU_LIBC_VERSION = 2
- const m__CS_GNU_LIBPTHREAD_VERSION = 3
- const m__CS_PATH = 0
- const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
- const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
- const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
- const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
- const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
- const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
- const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
- const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
- const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
- const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
- const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
- const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
- const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
- const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
- const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
- const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
- const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
- const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
- const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
- const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
- const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
- const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
- const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
- const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
- const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
- const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
- const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
- const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
- const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
- const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
- const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
- const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
- const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
- const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
- const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
- const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
- const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
- const m__CS_V6_ENV = 1148
- const m__CS_V7_ENV = 1149
- const m__DARWIN_C_SOURCE = 1
- const m__GNU_SOURCE = 1
- const m__HPUX_ALT_XOPEN_SOCKET_API = 1
- const m__IOFBF = 0
- const m__IOLBF = 1
- const m__IONBF = 2
- const m__LP64 = 1
- const m__NETBSD_SOURCE = 1
- const m__OPENBSD_SOURCE = 1
- const m__PC_2_SYMLINKS = 20
- const m__PC_ALLOC_SIZE_MIN = 18
- const m__PC_ASYNC_IO = 10
- const m__PC_CHOWN_RESTRICTED = 6
- const m__PC_FILESIZEBITS = 13
- const m__PC_LINK_MAX = 0
- const m__PC_MAX_CANON = 1
- const m__PC_MAX_INPUT = 2
- const m__PC_NAME_MAX = 3
- const m__PC_NO_TRUNC = 7
- const m__PC_PATH_MAX = 4
- const m__PC_PIPE_BUF = 5
- const m__PC_PRIO_IO = 11
- const m__PC_REC_INCR_XFER_SIZE = 14
- const m__PC_REC_MAX_XFER_SIZE = 15
- const m__PC_REC_MIN_XFER_SIZE = 16
- const m__PC_REC_XFER_ALIGN = 17
- const m__PC_SOCK_MAXBUF = 12
- const m__PC_SYMLINK_MAX = 19
- const m__PC_SYNC_IO = 9
- const m__PC_VDISABLE = 8
- const m__POSIX2_BC_BASE_MAX = 99
- const m__POSIX2_BC_DIM_MAX = 2048
- const m__POSIX2_BC_SCALE_MAX = 99
- const m__POSIX2_BC_STRING_MAX = 1000
- const m__POSIX2_CHARCLASS_NAME_MAX = 14
- const m__POSIX2_COLL_WEIGHTS_MAX = 2
- const m__POSIX2_C_BIND = "_POSIX_VERSION"
- const m__POSIX2_EXPR_NEST_MAX = 32
- const m__POSIX2_LINE_MAX = 2048
- const m__POSIX2_RE_DUP_MAX = 255
- const m__POSIX2_VERSION = "_POSIX_VERSION"
- const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
- const m__POSIX_AIO_LISTIO_MAX = 2
- const m__POSIX_AIO_MAX = 1
- const m__POSIX_ARG_MAX = 4096
- const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
- const m__POSIX_BARRIERS = "_POSIX_VERSION"
- const m__POSIX_CHILD_MAX = 25
- const m__POSIX_CHOWN_RESTRICTED = 1
- const m__POSIX_CLOCKRES_MIN = 20000000
- const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
- const m__POSIX_CPUTIME = "_POSIX_VERSION"
- const m__POSIX_DELAYTIMER_MAX = 32
- const m__POSIX_FSYNC = "_POSIX_VERSION"
- const m__POSIX_HOST_NAME_MAX = 255
- const m__POSIX_IPV6 = "_POSIX_VERSION"
- const m__POSIX_JOB_CONTROL = 1
- const m__POSIX_LINK_MAX = 8
- const m__POSIX_LOGIN_NAME_MAX = 9
- const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
- const m__POSIX_MAX_CANON = 255
- const m__POSIX_MAX_INPUT = 255
- const m__POSIX_MEMLOCK = "_POSIX_VERSION"
- const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
- const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
- const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
- const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
- const m__POSIX_MQ_OPEN_MAX = 8
- const m__POSIX_MQ_PRIO_MAX = 32
- const m__POSIX_NAME_MAX = 14
- const m__POSIX_NGROUPS_MAX = 8
- const m__POSIX_NO_TRUNC = 1
- const m__POSIX_OPEN_MAX = 20
- const m__POSIX_PATH_MAX = 256
- const m__POSIX_PIPE_BUF = 512
- const m__POSIX_PTHREAD_SEMANTICS = 1
- const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
- const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
- const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
- const m__POSIX_REGEXP = 1
- const m__POSIX_RE_DUP_MAX = 255
- const m__POSIX_RTSIG_MAX = 8
- const m__POSIX_SAVED_IDS = 1
- const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
- const m__POSIX_SEM_NSEMS_MAX = 256
- const m__POSIX_SEM_VALUE_MAX = 32767
- const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
- const m__POSIX_SHELL = 1
- const m__POSIX_SIGQUEUE_MAX = 32
- const m__POSIX_SPAWN = "_POSIX_VERSION"
- const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
- const m__POSIX_SSIZE_MAX = 32767
- const m__POSIX_SS_REPL_MAX = 4
- const m__POSIX_STREAM_MAX = 8
- const m__POSIX_SYMLINK_MAX = 255
- const m__POSIX_SYMLOOP_MAX = 8
- const m__POSIX_THREADS = "_POSIX_VERSION"
- const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
- const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
- const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
- const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
- const m__POSIX_THREAD_KEYS_MAX = 128
- const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
- const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
- const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
- const m__POSIX_THREAD_THREADS_MAX = 64
- const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
- const m__POSIX_TIMERS = "_POSIX_VERSION"
- const m__POSIX_TIMER_MAX = 32
- const m__POSIX_TRACE_EVENT_NAME_MAX = 30
- const m__POSIX_TRACE_NAME_MAX = 8
- const m__POSIX_TRACE_SYS_MAX = 8
- const m__POSIX_TRACE_USER_EVENT_MAX = 32
- const m__POSIX_TTY_NAME_MAX = 9
- const m__POSIX_TZNAME_MAX = 6
- const m__POSIX_V6_LP64_OFF64 = 1
- const m__POSIX_V7_LP64_OFF64 = 1
- const m__POSIX_VDISABLE = 0
- const m__POSIX_VERSION = 200809
- const m__SC_2_CHAR_TERM = 95
- const m__SC_2_C_BIND = 47
- const m__SC_2_C_DEV = 48
- const m__SC_2_FORT_DEV = 49
- const m__SC_2_FORT_RUN = 50
- const m__SC_2_LOCALEDEF = 52
- const m__SC_2_PBS = 168
- const m__SC_2_PBS_ACCOUNTING = 169
- const m__SC_2_PBS_CHECKPOINT = 175
- const m__SC_2_PBS_LOCATE = 170
- const m__SC_2_PBS_MESSAGE = 171
- const m__SC_2_PBS_TRACK = 172
- const m__SC_2_SW_DEV = 51
- const m__SC_2_UPE = 97
- const m__SC_2_VERSION = 46
- const m__SC_ADVISORY_INFO = 132
- const m__SC_AIO_LISTIO_MAX = 23
- const m__SC_AIO_MAX = 24
- const m__SC_AIO_PRIO_DELTA_MAX = 25
- const m__SC_ARG_MAX = 0
- const m__SC_ASYNCHRONOUS_IO = 12
- const m__SC_ATEXIT_MAX = 87
- const m__SC_AVPHYS_PAGES = 86
- const m__SC_BARRIERS = 133
- const m__SC_BC_BASE_MAX = 36
- const m__SC_BC_DIM_MAX = 37
- const m__SC_BC_SCALE_MAX = 38
- const m__SC_BC_STRING_MAX = 39
- const m__SC_CHILD_MAX = 1
- const m__SC_CLK_TCK = 2
- const m__SC_CLOCK_SELECTION = 137
- const m__SC_COLL_WEIGHTS_MAX = 40
- const m__SC_CPUTIME = 138
- const m__SC_DELAYTIMER_MAX = 26
- const m__SC_EXPR_NEST_MAX = 42
- const m__SC_FSYNC = 15
- const m__SC_GETGR_R_SIZE_MAX = 69
- const m__SC_GETPW_R_SIZE_MAX = 70
- const m__SC_HOST_NAME_MAX = 180
- const m__SC_IOV_MAX = 60
- const m__SC_IPV6 = 235
- const m__SC_JOB_CONTROL = 7
- const m__SC_LINE_MAX = 43
- const m__SC_LOGIN_NAME_MAX = 71
- const m__SC_MAPPED_FILES = 16
- const m__SC_MEMLOCK = 17
- const m__SC_MEMLOCK_RANGE = 18
- const m__SC_MEMORY_PROTECTION = 19
- const m__SC_MESSAGE_PASSING = 20
- const m__SC_MINSIGSTKSZ = 249
- const m__SC_MONOTONIC_CLOCK = 149
- const m__SC_MQ_OPEN_MAX = 27
- const m__SC_MQ_PRIO_MAX = 28
- const m__SC_NGROUPS_MAX = 3
- const m__SC_NPROCESSORS_CONF = 83
- const m__SC_NPROCESSORS_ONLN = 84
- const m__SC_NZERO = 109
- const m__SC_OPEN_MAX = 4
- const m__SC_PAGESIZE = 30
- const m__SC_PAGE_SIZE = 30
- const m__SC_PASS_MAX = 88
- const m__SC_PHYS_PAGES = 85
- const m__SC_PRIORITIZED_IO = 13
- const m__SC_PRIORITY_SCHEDULING = 10
- const m__SC_RAW_SOCKETS = 236
- const m__SC_READER_WRITER_LOCKS = 153
- const m__SC_REALTIME_SIGNALS = 9
- const m__SC_REGEXP = 155
- const m__SC_RE_DUP_MAX = 44
- const m__SC_RTSIG_MAX = 31
- const m__SC_SAVED_IDS = 8
- const m__SC_SEMAPHORES = 21
- const m__SC_SEM_NSEMS_MAX = 32
- const m__SC_SEM_VALUE_MAX = 33
- const m__SC_SHARED_MEMORY_OBJECTS = 22
- const m__SC_SHELL = 157
- const m__SC_SIGQUEUE_MAX = 34
- const m__SC_SIGSTKSZ = 250
- const m__SC_SPAWN = 159
- const m__SC_SPIN_LOCKS = 154
- const m__SC_SPORADIC_SERVER = 160
- const m__SC_SS_REPL_MAX = 241
- const m__SC_STREAMS = 174
- const m__SC_STREAM_MAX = 5
- const m__SC_SYMLOOP_MAX = 173
- const m__SC_SYNCHRONIZED_IO = 14
- const m__SC_THREADS = 67
- const m__SC_THREAD_ATTR_STACKADDR = 77
- const m__SC_THREAD_ATTR_STACKSIZE = 78
- const m__SC_THREAD_CPUTIME = 139
- const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
- const m__SC_THREAD_KEYS_MAX = 74
- const m__SC_THREAD_PRIORITY_SCHEDULING = 79
- const m__SC_THREAD_PRIO_INHERIT = 80
- const m__SC_THREAD_PRIO_PROTECT = 81
- const m__SC_THREAD_PROCESS_SHARED = 82
- const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
- const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
- const m__SC_THREAD_SAFE_FUNCTIONS = 68
- const m__SC_THREAD_SPORADIC_SERVER = 161
- const m__SC_THREAD_STACK_MIN = 75
- const m__SC_THREAD_THREADS_MAX = 76
- const m__SC_TIMEOUTS = 164
- const m__SC_TIMERS = 11
- const m__SC_TIMER_MAX = 35
- const m__SC_TRACE = 181
- const m__SC_TRACE_EVENT_FILTER = 182
- const m__SC_TRACE_EVENT_NAME_MAX = 242
- const m__SC_TRACE_INHERIT = 183
- const m__SC_TRACE_LOG = 184
- const m__SC_TRACE_NAME_MAX = 243
- const m__SC_TRACE_SYS_MAX = 244
- const m__SC_TRACE_USER_EVENT_MAX = 245
- const m__SC_TTY_NAME_MAX = 72
- const m__SC_TYPED_MEMORY_OBJECTS = 165
- const m__SC_TZNAME_MAX = 6
- const m__SC_UIO_MAXIOV = 60
- const m__SC_V6_ILP32_OFF32 = 176
- const m__SC_V6_ILP32_OFFBIG = 177
- const m__SC_V6_LP64_OFF64 = 178
- const m__SC_V6_LPBIG_OFFBIG = 179
- const m__SC_V7_ILP32_OFF32 = 237
- const m__SC_V7_ILP32_OFFBIG = 238
- const m__SC_V7_LP64_OFF64 = 239
- const m__SC_V7_LPBIG_OFFBIG = 240
- const m__SC_VERSION = 29
- const m__SC_XBS5_ILP32_OFF32 = 125
- const m__SC_XBS5_ILP32_OFFBIG = 126
- const m__SC_XBS5_LP64_OFF64 = 127
- const m__SC_XBS5_LPBIG_OFFBIG = 128
- const m__SC_XOPEN_CRYPT = 92
- const m__SC_XOPEN_ENH_I18N = 93
- const m__SC_XOPEN_LEGACY = 129
- const m__SC_XOPEN_REALTIME = 130
- const m__SC_XOPEN_REALTIME_THREADS = 131
- const m__SC_XOPEN_SHM = 94
- const m__SC_XOPEN_STREAMS = 246
- const m__SC_XOPEN_UNIX = 91
- const m__SC_XOPEN_VERSION = 89
- const m__SC_XOPEN_XCU_VERSION = 90
- const m__SC_XOPEN_XPG2 = 98
- const m__SC_XOPEN_XPG3 = 99
- const m__SC_XOPEN_XPG4 = 100
- const m__STDC_PREDEF_H = 1
- const m__TANDEM_SOURCE = 1
- const m__XOPEN_ENH_I18N = 1
- const m__XOPEN_IOV_MAX = 16
- const m__XOPEN_NAME_MAX = 255
- const m__XOPEN_PATH_MAX = 1024
- const m__XOPEN_UNIX = 1
- const m__XOPEN_VERSION = 700
- const m___ATOMIC_ACQUIRE = 2
- const m___ATOMIC_ACQ_REL = 4
- const m___ATOMIC_CONSUME = 1
- const m___ATOMIC_RELAXED = 0
- const m___ATOMIC_RELEASE = 3
- const m___ATOMIC_SEQ_CST = 5
- const m___BIGGEST_ALIGNMENT__ = 16
- const m___BIG_ENDIAN = 4321
- const m___BYTE_ORDER = 1234
- const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
- const m___CCGO__ = 1
- const m___CHAR_BIT__ = 8
- const m___CHAR_UNSIGNED__ = 1
- const m___DBL_DECIMAL_DIG__ = 17
- const m___DBL_DIG__ = 15
- const m___DBL_HAS_DENORM__ = 1
- const m___DBL_HAS_INFINITY__ = 1
- const m___DBL_HAS_QUIET_NAN__ = 1
- const m___DBL_IS_IEC_60559__ = 1
- const m___DBL_MANT_DIG__ = 53
- const m___DBL_MAX_10_EXP__ = 308
- const m___DBL_MAX_EXP__ = 1024
- const m___DECIMAL_DIG__ = 36
- const m___DEC_EVAL_METHOD__ = 2
- const m___ELF__ = 1
- const m___EXTENSIONS__ = 1
- const m___FINITE_MATH_ONLY__ = 0
- const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
- const m___FLT128_DECIMAL_DIG__ = 36
- const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
- const m___FLT128_DIG__ = 33
- const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
- const m___FLT128_HAS_DENORM__ = 1
- const m___FLT128_HAS_INFINITY__ = 1
- const m___FLT128_HAS_QUIET_NAN__ = 1
- const m___FLT128_IS_IEC_60559__ = 1
- const m___FLT128_MANT_DIG__ = 113
- const m___FLT128_MAX_10_EXP__ = 4932
- const m___FLT128_MAX_EXP__ = 16384
- const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
- const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
- const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
- const m___FLT16_DECIMAL_DIG__ = 5
- const m___FLT16_DENORM_MIN__ = 5.96046447753906250000000000000000000e-8
- const m___FLT16_DIG__ = 3
- const m___FLT16_EPSILON__ = 9.76562500000000000000000000000000000e-4
- const m___FLT16_HAS_DENORM__ = 1
- const m___FLT16_HAS_INFINITY__ = 1
- const m___FLT16_HAS_QUIET_NAN__ = 1
- const m___FLT16_IS_IEC_60559__ = 1
- const m___FLT16_MANT_DIG__ = 11
- const m___FLT16_MAX_10_EXP__ = 4
- const m___FLT16_MAX_EXP__ = 16
- const m___FLT16_MAX__ = 6.55040000000000000000000000000000000e+4
- const m___FLT16_MIN__ = 6.10351562500000000000000000000000000e-5
- const m___FLT16_NORM_MAX__ = 6.55040000000000000000000000000000000e+4
- const m___FLT32X_DECIMAL_DIG__ = 17
- const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
- const m___FLT32X_DIG__ = 15
- const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
- const m___FLT32X_HAS_DENORM__ = 1
- const m___FLT32X_HAS_INFINITY__ = 1
- const m___FLT32X_HAS_QUIET_NAN__ = 1
- const m___FLT32X_IS_IEC_60559__ = 1
- const m___FLT32X_MANT_DIG__ = 53
- const m___FLT32X_MAX_10_EXP__ = 308
- const m___FLT32X_MAX_EXP__ = 1024
- const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
- const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
- const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
- const m___FLT32_DECIMAL_DIG__ = 9
- const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
- const m___FLT32_DIG__ = 6
- const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
- const m___FLT32_HAS_DENORM__ = 1
- const m___FLT32_HAS_INFINITY__ = 1
- const m___FLT32_HAS_QUIET_NAN__ = 1
- const m___FLT32_IS_IEC_60559__ = 1
- const m___FLT32_MANT_DIG__ = 24
- const m___FLT32_MAX_10_EXP__ = 38
- const m___FLT32_MAX_EXP__ = 128
- const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
- const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
- const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
- const m___FLT64X_DECIMAL_DIG__ = 36
- const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
- const m___FLT64X_DIG__ = 33
- const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
- const m___FLT64X_HAS_DENORM__ = 1
- const m___FLT64X_HAS_INFINITY__ = 1
- const m___FLT64X_HAS_QUIET_NAN__ = 1
- const m___FLT64X_IS_IEC_60559__ = 1
- const m___FLT64X_MANT_DIG__ = 113
- const m___FLT64X_MAX_10_EXP__ = 4932
- const m___FLT64X_MAX_EXP__ = 16384
- const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
- const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
- const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
- const m___FLT64_DECIMAL_DIG__ = 17
- const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
- const m___FLT64_DIG__ = 15
- const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
- const m___FLT64_HAS_DENORM__ = 1
- const m___FLT64_HAS_INFINITY__ = 1
- const m___FLT64_HAS_QUIET_NAN__ = 1
- const m___FLT64_IS_IEC_60559__ = 1
- const m___FLT64_MANT_DIG__ = 53
- const m___FLT64_MAX_10_EXP__ = 308
- const m___FLT64_MAX_EXP__ = 1024
- const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
- const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
- const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
- const m___FLT_DECIMAL_DIG__ = 9
- const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
- const m___FLT_DIG__ = 6
- const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
- const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
- const m___FLT_EVAL_METHOD__ = 0
- const m___FLT_HAS_DENORM__ = 1
- const m___FLT_HAS_INFINITY__ = 1
- const m___FLT_HAS_QUIET_NAN__ = 1
- const m___FLT_IS_IEC_60559__ = 1
- const m___FLT_MANT_DIG__ = 24
- const m___FLT_MAX_10_EXP__ = 38
- const m___FLT_MAX_EXP__ = 128
- const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
- const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
- const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
- const m___FLT_RADIX__ = 2
- const m___FP_FAST_FMA = 1
- const m___FP_FAST_FMAF = 1
- const m___FP_FAST_FMAF32 = 1
- const m___FP_FAST_FMAF32x = 1
- const m___FP_FAST_FMAF64 = 1
- const m___FUNCTION__ = "__func__"
- const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
- const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
- const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
- const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
- const m___GCC_ATOMIC_INT_LOCK_FREE = 2
- const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
- const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
- const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
- const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
- const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
- const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
- const m___GCC_HAVE_DWARF2_CFI_ASM = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
- const m___GCC_IEC_559 = 2
- const m___GCC_IEC_559_COMPLEX = 2
- const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
- const m___GNUC_MINOR__ = 2
- const m___GNUC_PATCHLEVEL__ = 0
- const m___GNUC_STDC_INLINE__ = 1
- const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
- const m___GNUC__ = 14
- const m___GXX_ABI_VERSION = 1019
- const m___INT16_MAX__ = 0x7fff
- const m___INT32_MAX__ = 0x7fffffff
- const m___INT32_TYPE__ = "int"
- const m___INT64_MAX__ = 0x7fffffffffffffff
- const m___INT8_MAX__ = 0x7f
- const m___INTMAX_MAX__ = 0x7fffffffffffffff
- const m___INTMAX_WIDTH__ = 64
- const m___INTPTR_MAX__ = 0x7fffffffffffffff
- const m___INTPTR_WIDTH__ = 64
- const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
- const m___INT_FAST16_WIDTH__ = 64
- const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
- const m___INT_FAST32_WIDTH__ = 64
- const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
- const m___INT_FAST64_WIDTH__ = 64
- const m___INT_FAST8_MAX__ = 0x7f
- const m___INT_FAST8_WIDTH__ = 8
- const m___INT_LEAST16_MAX__ = 0x7fff
- const m___INT_LEAST16_WIDTH__ = 16
- const m___INT_LEAST32_MAX__ = 0x7fffffff
- const m___INT_LEAST32_TYPE__ = "int"
- const m___INT_LEAST32_WIDTH__ = 32
- const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
- const m___INT_LEAST64_WIDTH__ = 64
- const m___INT_LEAST8_MAX__ = 0x7f
- const m___INT_LEAST8_WIDTH__ = 8
- const m___INT_MAX__ = 0x7fffffff
- const m___INT_WIDTH__ = 32
- const m___LDBL_DECIMAL_DIG__ = 36
- const m___LDBL_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
- const m___LDBL_DIG__ = 33
- const m___LDBL_EPSILON__ = 1.92592994438723585305597794258492732e-34
- const m___LDBL_HAS_DENORM__ = 1
- const m___LDBL_HAS_INFINITY__ = 1
- const m___LDBL_HAS_QUIET_NAN__ = 1
- const m___LDBL_IS_IEC_60559__ = 1
- const m___LDBL_MANT_DIG__ = 113
- const m___LDBL_MAX_10_EXP__ = 4932
- const m___LDBL_MAX_EXP__ = 16384
- const m___LDBL_MAX__ = "1.18973149535723176508575932662800702e+4932"
- const m___LDBL_MIN__ = 3.36210314311209350626267781732175260e-4932
- const m___LDBL_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
- const m___LITTLE_ENDIAN = 1234
- const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
- const m___LONG_LONG_WIDTH__ = 64
- const m___LONG_MAX = 0x7fffffffffffffff
- const m___LONG_MAX__ = 0x7fffffffffffffff
- const m___LONG_WIDTH__ = 64
- const m___LP64__ = 1
- const m___NO_INLINE__ = 1
- const m___ORDER_BIG_ENDIAN__ = 4321
- const m___ORDER_LITTLE_ENDIAN__ = 1234
- const m___ORDER_PDP_ENDIAN__ = 3412
- const m___PDP_ENDIAN = 3412
- const m___PIC__ = 2
- const m___PIE__ = 2
- const m___PRAGMA_REDEFINE_EXTNAME = 1
- const m___PRETTY_FUNCTION__ = "__func__"
- const m___PRI64 = "l"
- const m___PRIPTR = "l"
- const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
- const m___PTRDIFF_WIDTH__ = 64
- const m___SCHAR_MAX__ = 0x7f
- const m___SCHAR_WIDTH__ = 8
- const m___SHRT_MAX__ = 0x7fff
- const m___SHRT_WIDTH__ = 16
- const m___SIG_ATOMIC_MAX__ = 0x7fffffff
- const m___SIG_ATOMIC_TYPE__ = "int"
- const m___SIG_ATOMIC_WIDTH__ = 32
- const m___SIZEOF_DOUBLE__ = 8
- const m___SIZEOF_FLOAT__ = 4
- const m___SIZEOF_INT128__ = 16
- const m___SIZEOF_INT__ = 4
- const m___SIZEOF_LONG_DOUBLE__ = 8
- const m___SIZEOF_LONG_LONG__ = 8
- const m___SIZEOF_LONG__ = 8
- const m___SIZEOF_POINTER__ = 8
- const m___SIZEOF_PTRDIFF_T__ = 8
- const m___SIZEOF_SHORT__ = 2
- const m___SIZEOF_SIZE_T__ = 8
- const m___SIZEOF_WCHAR_T__ = 4
- const m___SIZEOF_WINT_T__ = 4
- const m___SIZE_MAX__ = 0xffffffffffffffff
- const m___SIZE_WIDTH__ = 64
- const m___STDC_HOSTED__ = 1
- const m___STDC_IEC_559_COMPLEX__ = 1
- const m___STDC_IEC_559__ = 1
- const m___STDC_IEC_60559_BFP__ = 201404
- const m___STDC_IEC_60559_COMPLEX__ = 201404
- const m___STDC_ISO_10646__ = 201706
- const m___STDC_UTF_16__ = 1
- const m___STDC_UTF_32__ = 1
- const m___STDC_VERSION__ = 201710
- const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
- const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
- const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
- const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
- const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
- const m___STDC_WANT_LIB_EXT2__ = 1
- const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
- const m___STDC__ = 1
- const m___UAPI_DEF_IN6_ADDR = 0
- const m___UAPI_DEF_IN6_ADDR_ALT = 0
- const m___UAPI_DEF_IN6_PKTINFO = 0
- const m___UAPI_DEF_IN_ADDR = 0
- const m___UAPI_DEF_IN_CLASS = 0
- const m___UAPI_DEF_IN_IPPROTO = 0
- const m___UAPI_DEF_IN_PKTINFO = 0
- const m___UAPI_DEF_IP6_MTUINFO = 0
- const m___UAPI_DEF_IPPROTO_V6 = 0
- const m___UAPI_DEF_IPV6_MREQ = 0
- const m___UAPI_DEF_IPV6_OPTIONS = 0
- const m___UAPI_DEF_IP_MREQ = 0
- const m___UAPI_DEF_SOCKADDR_IN = 0
- const m___UAPI_DEF_SOCKADDR_IN6 = 0
- const m___UINT16_MAX__ = 0xffff
- const m___UINT32_MAX__ = 0xffffffff
- const m___UINT64_MAX__ = 0xffffffffffffffff
- const m___UINT8_MAX__ = 0xff
- const m___UINTMAX_MAX__ = 0xffffffffffffffff
- const m___UINTPTR_MAX__ = 0xffffffffffffffff
- const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
- const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
- const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
- const m___UINT_FAST8_MAX__ = 0xff
- const m___UINT_LEAST16_MAX__ = 0xffff
- const m___UINT_LEAST32_MAX__ = 0xffffffff
- const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
- const m___UINT_LEAST8_MAX__ = 0xff
- const m___USE_TIME_BITS64 = 1
- const m___VERSION__ = "14.2.0"
- const m___WCHAR_MAX__ = 0x7fffffff
- const m___WCHAR_TYPE__ = "int"
- const m___WCHAR_WIDTH__ = 32
- const m___WINT_MAX__ = 0xffffffff
- const m___WINT_MIN__ = 0
- const m___WINT_WIDTH__ = 32
- const m___gnu_linux__ = 1
- const m___inline = "inline"
- const m___linux = 1
- const m___linux__ = 1
- const m___pic__ = 2
- const m___pie__ = 2
- const m___restrict = "restrict"
- const m___restrict_arr = "restrict"
- const m___riscv = 1
- const m___riscv_a = 2001000
- const m___riscv_arch_test = 1
- const m___riscv_atomic = 1
- const m___riscv_c = 2000000
- const m___riscv_cmodel_medany = 1
- const m___riscv_compressed = 1
- const m___riscv_d = 2002000
- const m___riscv_div = 1
- const m___riscv_f = 2002000
- const m___riscv_fdiv = 1
- const m___riscv_flen = 64
- const m___riscv_float_abi_double = 1
- const m___riscv_fsqrt = 1
- const m___riscv_i = 2001000
- const m___riscv_m = 2000000
- const m___riscv_misaligned_slow = 1
- const m___riscv_mul = 1
- const m___riscv_muldiv = 1
- const m___riscv_xlen = 64
- const m___riscv_zicsr = 2000000
- const m___riscv_zifencei = 2000000
- const m___tm_gmtoff = "tm_gmtoff"
- const m___tm_zone = "tm_zone"
- const m___unix = 1
- const m___unix__ = 1
- const m_alloca = "__builtin_alloca"
- const m_linux = 1
- const m_loff_t = "off_t"
- const m_static_assert = "_Static_assert"
- const m_unix = 1
- type t__builtin_va_list = uintptr
- type t__predefined_size_t = uint64
- type t__predefined_wchar_t = int32
- type t__predefined_ptrdiff_t = int64
- type Tsize_t = uint64
- type Tlocale_t = uintptr
- type Tssize_t = int64
- type Toff_t = int64
- type Tva_list = uintptr
- type t__isoc_va_list = uintptr
- type Tfpos_t = struct {
- F__lldata [0]int64
- F__align [0]float64
- F__opaque [16]uint8
- }
- type T_G_fpos64_t = Tfpos_t
- type Tcookie_io_functions_t = struct {
- Fread uintptr
- Fwrite uintptr
- Fseek uintptr
- Fclose1 uintptr
- }
- type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
- type Twchar_t = int32
- type Tdiv_t = struct {
- Fquot int32
- Frem int32
- }
- type Tldiv_t = struct {
- Fquot int64
- Frem int64
- }
- type Tlldiv_t = struct {
- Fquot int64
- Frem int64
- }
- type Tmode_t = uint32
- type Tpid_t = int32
- type Tiovec = struct {
- Fiov_base uintptr
- Fiov_len Tsize_t
- }
- type Tflock = struct {
- Fl_type int16
- Fl_whence int16
- Fl_start Toff_t
- Fl_len Toff_t
- Fl_pid Tpid_t
- }
- type Tfile_handle = struct {
- Fhandle_bytes uint32
- Fhandle_type int32
- }
- type Tf_owner_ex = struct {
- Ftype1 int32
- Fpid Tpid_t
- }
- type Tblksize_t = int32
- type Tnlink_t = uint32
- type Tregister_t = int64
- type Ttime_t = int64
- type Tsuseconds_t = int64
- type Tint8_t = int8
- type Tint16_t = int16
- type Tint32_t = int32
- type Tint64_t = int64
- type Tu_int64_t = uint64
- type Tino_t = uint64
- type Tdev_t = uint64
- type Tblkcnt_t = int64
- type Tfsblkcnt_t = uint64
- type Tfsfilcnt_t = uint64
- type Ttimer_t = uintptr
- type Tclockid_t = int32
- type Tclock_t = int64
- type Tid_t = uint32
- type Tuid_t = uint32
- type Tgid_t = uint32
- type Tkey_t = int32
- type Tuseconds_t = uint32
- type Tpthread_t = uintptr
- type Tpthread_once_t = int32
- type Tpthread_key_t = uint32
- type Tpthread_spinlock_t = int32
- type Tpthread_mutexattr_t = struct {
- F__attr uint32
- }
- type Tpthread_condattr_t = struct {
- F__attr uint32
- }
- type Tpthread_barrierattr_t = struct {
- F__attr uint32
- }
- type Tpthread_rwlockattr_t = struct {
- F__attr [2]uint32
- }
- type Tpthread_attr_t = struct {
- F__u struct {
- F__vi [0][14]int32
- F__s [0][7]uint64
- F__i [14]int32
- }
- }
- type Tpthread_mutex_t = struct {
- F__u struct {
- F__vi [0][10]int32
- F__p [0][5]uintptr
- F__i [10]int32
- }
- }
- type Tpthread_cond_t = struct {
- F__u struct {
- F__vi [0][12]int32
- F__p [0][6]uintptr
- F__i [12]int32
- }
- }
- type Tpthread_rwlock_t = struct {
- F__u struct {
- F__vi [0][14]int32
- F__p [0][7]uintptr
- F__i [14]int32
- }
- }
- type Tpthread_barrier_t = struct {
- F__u struct {
- F__vi [0][8]int32
- F__p [0][4]uintptr
- F__i [8]int32
- }
- }
- type Tu_int8_t = uint8
- type Tu_int16_t = uint16
- type Tu_int32_t = uint32
- type Tcaddr_t = uintptr
- type Tu_char = uint8
- type Tu_short = uint16
- type Tushort = uint16
- type Tu_int = uint32
- type Tuint = uint32
- type Tu_long = uint64
- type Tulong = uint64
- type Tquad_t = int64
- type Tu_quad_t = uint64
- type Tuint16_t = uint16
- type Tuint32_t = uint32
- type Tuint64_t = uint64
- type Ttimeval = struct {
- Ftv_sec Ttime_t
- Ftv_usec Tsuseconds_t
- }
- type Ttimespec = struct {
- Ftv_sec Ttime_t
- Ftv_nsec int64
- }
- type Tsigset_t = struct {
- F__bits [16]uint64
- }
- type t__sigset_t = Tsigset_t
- type Tfd_mask = uint64
- type Tfd_set = struct {
- Ffds_bits [16]uint64
- }
- type Tuintptr_t = uint64
- type Tintptr_t = int64
- type Tintmax_t = int64
- type Tuint8_t = uint8
- type Tuintmax_t = uint64
- type Tint_fast8_t = int8
- type Tint_fast64_t = int64
- type Tint_least8_t = int8
- type Tint_least16_t = int16
- type Tint_least32_t = int32
- type Tint_least64_t = int64
- type Tuint_fast8_t = uint8
- type Tuint_fast64_t = uint64
- type Tuint_least8_t = uint8
- type Tuint_least16_t = uint16
- type Tuint_least32_t = uint32
- type Tuint_least64_t = uint64
- type Tint_fast16_t = int32
- type Tint_fast32_t = int32
- type Tuint_fast16_t = uint32
- type Tuint_fast32_t = uint32
- type Tsched_param = struct {
- Fsched_priority int32
- F__reserved1 int32
- F__reserved2 [2]struct {
- F__reserved1 Ttime_t
- F__reserved2 int64
- }
- F__reserved3 int32
- }
- type Tcpu_set_t = struct {
- F__bits [16]uint64
- }
- type Ttm = struct {
- Ftm_sec int32
- Ftm_min int32
- Ftm_hour int32
- Ftm_mday int32
- Ftm_mon int32
- Ftm_year int32
- Ftm_wday int32
- Ftm_yday int32
- Ftm_isdst int32
- Ftm_gmtoff int64
- Ftm_zone uintptr
- }
- type Titimerspec = struct {
- Fit_interval Ttimespec
- Fit_value Ttimespec
- }
- type t__ptcb = struct {
- F__f uintptr
- F__x uintptr
- F__next uintptr
- }
- type Tcpu_set_t1 = struct {
- F__bits [16]uint64
- }
- type Txcb_connection_t = struct {
- Fhas_error int32
- Fsetup uintptr
- Ffd int32
- Fiolock Tpthread_mutex_t
- Fin T_xcb_in
- Fout T_xcb_out
- Fext T_xcb_ext
- Fxid T_xcb_xid
- }
- type Txcb_generic_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_generic_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- }
- type Txcb_generic_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fpad [7]Tuint32_t
- Ffull_sequence Tuint32_t
- }
- type Txcb_raw_generic_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fpad [7]Tuint32_t
- }
- type Txcb_ge_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fevent_type Tuint16_t
- Fpad1 Tuint16_t
- Fpad [5]Tuint32_t
- Ffull_sequence Tuint32_t
- }
- type Txcb_generic_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fresource_id Tuint32_t
- Fminor_code Tuint16_t
- Fmajor_code Tuint8_t
- Fpad0 Tuint8_t
- Fpad [5]Tuint32_t
- Ffull_sequence Tuint32_t
- }
- type Txcb_void_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_char2b_t = struct {
- Fbyte1 Tuint8_t
- Fbyte2 Tuint8_t
- }
- type Txcb_char2b_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_window_t = uint32
- type Txcb_window_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_pixmap_t = uint32
- type Txcb_pixmap_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_cursor_t = uint32
- type Txcb_cursor_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_font_t = uint32
- type Txcb_font_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_gcontext_t = uint32
- type Txcb_gcontext_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_colormap_t = uint32
- type Txcb_colormap_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_atom_t = uint32
- type Txcb_atom_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_drawable_t = uint32
- type Txcb_drawable_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_fontable_t = uint32
- type Txcb_fontable_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_bool32_t = uint32
- type Txcb_bool32_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_visualid_t = uint32
- type Txcb_visualid_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_timestamp_t = uint32
- type Txcb_timestamp_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_keysym_t = uint32
- type Txcb_keysym_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_keycode_t = uint8
- type Txcb_keycode_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_keycode32_t = uint32
- type Txcb_keycode32_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_button_t = uint8
- type Txcb_button_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_point_t = struct {
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_point_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_rectangle_t = struct {
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- }
- type Txcb_rectangle_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_arc_t = struct {
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fangle1 Tint16_t
- Fangle2 Tint16_t
- }
- type Txcb_arc_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_format_t = struct {
- Fdepth Tuint8_t
- Fbits_per_pixel Tuint8_t
- Fscanline_pad Tuint8_t
- Fpad0 [5]Tuint8_t
- }
- type Txcb_format_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_visual_class_t = int32
- type _xcb_visual_class_t = int32
- const _XCB_VISUAL_CLASS_STATIC_GRAY = 0
- const _XCB_VISUAL_CLASS_GRAY_SCALE = 1
- const _XCB_VISUAL_CLASS_STATIC_COLOR = 2
- const _XCB_VISUAL_CLASS_PSEUDO_COLOR = 3
- const _XCB_VISUAL_CLASS_TRUE_COLOR = 4
- const _XCB_VISUAL_CLASS_DIRECT_COLOR = 5
- type Txcb_visualtype_t = struct {
- Fvisual_id Txcb_visualid_t
- F_class Tuint8_t
- Fbits_per_rgb_value Tuint8_t
- Fcolormap_entries Tuint16_t
- Fred_mask Tuint32_t
- Fgreen_mask Tuint32_t
- Fblue_mask Tuint32_t
- Fpad0 [4]Tuint8_t
- }
- type Txcb_visualtype_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_depth_t = struct {
- Fdepth Tuint8_t
- Fpad0 Tuint8_t
- Fvisuals_len Tuint16_t
- Fpad1 [4]Tuint8_t
- }
- type Txcb_depth_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_event_mask_t = int32
- type _xcb_event_mask_t = int32
- const _XCB_EVENT_MASK_NO_EVENT = 0
- const _XCB_EVENT_MASK_KEY_PRESS = 1
- const _XCB_EVENT_MASK_KEY_RELEASE = 2
- const _XCB_EVENT_MASK_BUTTON_PRESS = 4
- const _XCB_EVENT_MASK_BUTTON_RELEASE = 8
- const _XCB_EVENT_MASK_ENTER_WINDOW = 16
- const _XCB_EVENT_MASK_LEAVE_WINDOW = 32
- const _XCB_EVENT_MASK_POINTER_MOTION = 64
- const _XCB_EVENT_MASK_POINTER_MOTION_HINT = 128
- const _XCB_EVENT_MASK_BUTTON_1_MOTION = 256
- const _XCB_EVENT_MASK_BUTTON_2_MOTION = 512
- const _XCB_EVENT_MASK_BUTTON_3_MOTION = 1024
- const _XCB_EVENT_MASK_BUTTON_4_MOTION = 2048
- const _XCB_EVENT_MASK_BUTTON_5_MOTION = 4096
- const _XCB_EVENT_MASK_BUTTON_MOTION = 8192
- const _XCB_EVENT_MASK_KEYMAP_STATE = 16384
- const _XCB_EVENT_MASK_EXPOSURE = 32768
- const _XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536
- const _XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072
- const _XCB_EVENT_MASK_RESIZE_REDIRECT = 262144
- const _XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288
- const _XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576
- const _XCB_EVENT_MASK_FOCUS_CHANGE = 2097152
- const _XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304
- const _XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608
- const _XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
- type Txcb_backing_store_t = int32
- type _xcb_backing_store_t = int32
- const _XCB_BACKING_STORE_NOT_USEFUL = 0
- const _XCB_BACKING_STORE_WHEN_MAPPED = 1
- const _XCB_BACKING_STORE_ALWAYS = 2
- type Txcb_screen_t = struct {
- Froot Txcb_window_t
- Fdefault_colormap Txcb_colormap_t
- Fwhite_pixel Tuint32_t
- Fblack_pixel Tuint32_t
- Fcurrent_input_masks Tuint32_t
- Fwidth_in_pixels Tuint16_t
- Fheight_in_pixels Tuint16_t
- Fwidth_in_millimeters Tuint16_t
- Fheight_in_millimeters Tuint16_t
- Fmin_installed_maps Tuint16_t
- Fmax_installed_maps Tuint16_t
- Froot_visual Txcb_visualid_t
- Fbacking_stores Tuint8_t
- Fsave_unders Tuint8_t
- Froot_depth Tuint8_t
- Fallowed_depths_len Tuint8_t
- }
- type Txcb_screen_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_setup_request_t = struct {
- Fbyte_order Tuint8_t
- Fpad0 Tuint8_t
- Fprotocol_major_version Tuint16_t
- Fprotocol_minor_version Tuint16_t
- Fauthorization_protocol_name_len Tuint16_t
- Fauthorization_protocol_data_len Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_setup_request_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_setup_failed_t = struct {
- Fstatus Tuint8_t
- Freason_len Tuint8_t
- Fprotocol_major_version Tuint16_t
- Fprotocol_minor_version Tuint16_t
- Flength Tuint16_t
- }
- type Txcb_setup_failed_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_setup_authenticate_t = struct {
- Fstatus Tuint8_t
- Fpad0 [5]Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_setup_authenticate_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_image_order_t = int32
- type _xcb_image_order_t = int32
- const _XCB_IMAGE_ORDER_LSB_FIRST = 0
- const _XCB_IMAGE_ORDER_MSB_FIRST = 1
- type Txcb_setup_t = struct {
- Fstatus Tuint8_t
- Fpad0 Tuint8_t
- Fprotocol_major_version Tuint16_t
- Fprotocol_minor_version Tuint16_t
- Flength Tuint16_t
- Frelease_number Tuint32_t
- Fresource_id_base Tuint32_t
- Fresource_id_mask Tuint32_t
- Fmotion_buffer_size Tuint32_t
- Fvendor_len Tuint16_t
- Fmaximum_request_length Tuint16_t
- Froots_len Tuint8_t
- Fpixmap_formats_len Tuint8_t
- Fimage_byte_order Tuint8_t
- Fbitmap_format_bit_order Tuint8_t
- Fbitmap_format_scanline_unit Tuint8_t
- Fbitmap_format_scanline_pad Tuint8_t
- Fmin_keycode Txcb_keycode_t
- Fmax_keycode Txcb_keycode_t
- Fpad1 [4]Tuint8_t
- }
- type Txcb_setup_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_mod_mask_t = int32
- type _xcb_mod_mask_t = int32
- const _XCB_MOD_MASK_SHIFT = 1
- const _XCB_MOD_MASK_LOCK = 2
- const _XCB_MOD_MASK_CONTROL = 4
- const _XCB_MOD_MASK_1 = 8
- const _XCB_MOD_MASK_2 = 16
- const _XCB_MOD_MASK_3 = 32
- const _XCB_MOD_MASK_4 = 64
- const _XCB_MOD_MASK_5 = 128
- const _XCB_MOD_MASK_ANY = 32768
- type Txcb_key_but_mask_t = int32
- type _xcb_key_but_mask_t = int32
- const _XCB_KEY_BUT_MASK_SHIFT = 1
- const _XCB_KEY_BUT_MASK_LOCK = 2
- const _XCB_KEY_BUT_MASK_CONTROL = 4
- const _XCB_KEY_BUT_MASK_MOD_1 = 8
- const _XCB_KEY_BUT_MASK_MOD_2 = 16
- const _XCB_KEY_BUT_MASK_MOD_3 = 32
- const _XCB_KEY_BUT_MASK_MOD_4 = 64
- const _XCB_KEY_BUT_MASK_MOD_5 = 128
- const _XCB_KEY_BUT_MASK_BUTTON_1 = 256
- const _XCB_KEY_BUT_MASK_BUTTON_2 = 512
- const _XCB_KEY_BUT_MASK_BUTTON_3 = 1024
- const _XCB_KEY_BUT_MASK_BUTTON_4 = 2048
- const _XCB_KEY_BUT_MASK_BUTTON_5 = 4096
- type Txcb_window_enum_t = int32
- type _xcb_window_enum_t = int32
- const _XCB_WINDOW_NONE = 0
- type Txcb_key_press_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Txcb_keycode_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Froot Txcb_window_t
- Fevent Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fevent_x Tint16_t
- Fevent_y Tint16_t
- Fstate Tuint16_t
- Fsame_screen Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_key_release_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Txcb_keycode_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Froot Txcb_window_t
- Fevent Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fevent_x Tint16_t
- Fevent_y Tint16_t
- Fstate Tuint16_t
- Fsame_screen Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_key_press_event_t1 = Txcb_key_release_event_t
- type Txcb_button_mask_t = int32
- type _xcb_button_mask_t = int32
- const _XCB_BUTTON_MASK_1 = 256
- const _XCB_BUTTON_MASK_2 = 512
- const _XCB_BUTTON_MASK_3 = 1024
- const _XCB_BUTTON_MASK_4 = 2048
- const _XCB_BUTTON_MASK_5 = 4096
- const _XCB_BUTTON_MASK_ANY = 32768
- type Txcb_button_press_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Txcb_button_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Froot Txcb_window_t
- Fevent Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fevent_x Tint16_t
- Fevent_y Tint16_t
- Fstate Tuint16_t
- Fsame_screen Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_button_release_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Txcb_button_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Froot Txcb_window_t
- Fevent Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fevent_x Tint16_t
- Fevent_y Tint16_t
- Fstate Tuint16_t
- Fsame_screen Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_button_press_event_t1 = Txcb_button_release_event_t
- type Txcb_motion_t = int32
- type _xcb_motion_t = int32
- const _XCB_MOTION_NORMAL = 0
- const _XCB_MOTION_HINT = 1
- type Txcb_motion_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Tuint8_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Froot Txcb_window_t
- Fevent Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fevent_x Tint16_t
- Fevent_y Tint16_t
- Fstate Tuint16_t
- Fsame_screen Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_notify_detail_t = int32
- type _xcb_notify_detail_t = int32
- const _XCB_NOTIFY_DETAIL_ANCESTOR = 0
- const _XCB_NOTIFY_DETAIL_VIRTUAL = 1
- const _XCB_NOTIFY_DETAIL_INFERIOR = 2
- const _XCB_NOTIFY_DETAIL_NONLINEAR = 3
- const _XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4
- const _XCB_NOTIFY_DETAIL_POINTER = 5
- const _XCB_NOTIFY_DETAIL_POINTER_ROOT = 6
- const _XCB_NOTIFY_DETAIL_NONE = 7
- type Txcb_notify_mode_t = int32
- type _xcb_notify_mode_t = int32
- const _XCB_NOTIFY_MODE_NORMAL = 0
- const _XCB_NOTIFY_MODE_GRAB = 1
- const _XCB_NOTIFY_MODE_UNGRAB = 2
- const _XCB_NOTIFY_MODE_WHILE_GRABBED = 3
- type Txcb_enter_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Tuint8_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Froot Txcb_window_t
- Fevent Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fevent_x Tint16_t
- Fevent_y Tint16_t
- Fstate Tuint16_t
- Fmode Tuint8_t
- Fsame_screen_focus Tuint8_t
- }
- type Txcb_leave_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Tuint8_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Froot Txcb_window_t
- Fevent Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fevent_x Tint16_t
- Fevent_y Tint16_t
- Fstate Tuint16_t
- Fmode Tuint8_t
- Fsame_screen_focus Tuint8_t
- }
- type Txcb_enter_notify_event_t1 = Txcb_leave_notify_event_t
- type Txcb_focus_in_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fmode Tuint8_t
- Fpad0 [3]Tuint8_t
- }
- type Txcb_focus_out_event_t = struct {
- Fresponse_type Tuint8_t
- Fdetail Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fmode Tuint8_t
- Fpad0 [3]Tuint8_t
- }
- type Txcb_focus_in_event_t1 = Txcb_focus_out_event_t
- type Txcb_keymap_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fkeys [31]Tuint8_t
- }
- type Txcb_expose_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fwindow Txcb_window_t
- Fx Tuint16_t
- Fy Tuint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fcount Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_graphics_exposure_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fdrawable Txcb_drawable_t
- Fx Tuint16_t
- Fy Tuint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fminor_opcode Tuint16_t
- Fcount Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad1 [3]Tuint8_t
- }
- type Txcb_no_exposure_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fdrawable Txcb_drawable_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad1 Tuint8_t
- }
- type Txcb_visibility_t = int32
- type _xcb_visibility_t = int32
- const _XCB_VISIBILITY_UNOBSCURED = 0
- const _XCB_VISIBILITY_PARTIALLY_OBSCURED = 1
- const _XCB_VISIBILITY_FULLY_OBSCURED = 2
- type Txcb_visibility_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fwindow Txcb_window_t
- Fstate Tuint8_t
- Fpad1 [3]Tuint8_t
- }
- type Txcb_create_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fparent Txcb_window_t
- Fwindow Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fborder_width Tuint16_t
- Foverride_redirect Tuint8_t
- Fpad1 Tuint8_t
- }
- type Txcb_destroy_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- }
- type Txcb_unmap_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- Ffrom_configure Tuint8_t
- Fpad1 [3]Tuint8_t
- }
- type Txcb_map_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- Foverride_redirect Tuint8_t
- Fpad1 [3]Tuint8_t
- }
- type Txcb_map_request_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fparent Txcb_window_t
- Fwindow Txcb_window_t
- }
- type Txcb_reparent_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- Fparent Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- Foverride_redirect Tuint8_t
- Fpad1 [3]Tuint8_t
- }
- type Txcb_configure_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- Fabove_sibling Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fborder_width Tuint16_t
- Foverride_redirect Tuint8_t
- Fpad1 Tuint8_t
- }
- type Txcb_configure_request_event_t = struct {
- Fresponse_type Tuint8_t
- Fstack_mode Tuint8_t
- Fsequence Tuint16_t
- Fparent Txcb_window_t
- Fwindow Txcb_window_t
- Fsibling Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fborder_width Tuint16_t
- Fvalue_mask Tuint16_t
- }
- type Txcb_gravity_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_resize_request_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fwindow Txcb_window_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- }
- type Txcb_place_t = int32
- type _xcb_place_t = int32
- const _XCB_PLACE_ON_TOP = 0
- const _XCB_PLACE_ON_BOTTOM = 1
- type Txcb_circulate_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- Fpad1 [4]Tuint8_t
- Fplace Tuint8_t
- Fpad2 [3]Tuint8_t
- }
- type Txcb_circulate_request_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fevent Txcb_window_t
- Fwindow Txcb_window_t
- Fpad1 [4]Tuint8_t
- Fplace Tuint8_t
- Fpad2 [3]Tuint8_t
- }
- type Txcb_circulate_notify_event_t1 = Txcb_circulate_request_event_t
- type Txcb_property_t = int32
- type _xcb_property_t = int32
- const _XCB_PROPERTY_NEW_VALUE = 0
- const _XCB_PROPERTY_DELETE = 1
- type Txcb_property_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fwindow Txcb_window_t
- Fatom Txcb_atom_t
- Ftime Txcb_timestamp_t
- Fstate Tuint8_t
- Fpad1 [3]Tuint8_t
- }
- type Txcb_selection_clear_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Fowner Txcb_window_t
- Fselection Txcb_atom_t
- }
- type Txcb_time_t = int32
- type _xcb_time_t = int32
- const _XCB_TIME_CURRENT_TIME = 0
- type Txcb_atom_enum_t = int32
- type _xcb_atom_enum_t = int32
- const _XCB_ATOM_NONE = 0
- const _XCB_ATOM_ANY = 0
- const _XCB_ATOM_PRIMARY = 1
- const _XCB_ATOM_SECONDARY = 2
- const _XCB_ATOM_ARC = 3
- const _XCB_ATOM_ATOM = 4
- const _XCB_ATOM_BITMAP = 5
- const _XCB_ATOM_CARDINAL = 6
- const _XCB_ATOM_COLORMAP = 7
- const _XCB_ATOM_CURSOR = 8
- const _XCB_ATOM_CUT_BUFFER0 = 9
- const _XCB_ATOM_CUT_BUFFER1 = 10
- const _XCB_ATOM_CUT_BUFFER2 = 11
- const _XCB_ATOM_CUT_BUFFER3 = 12
- const _XCB_ATOM_CUT_BUFFER4 = 13
- const _XCB_ATOM_CUT_BUFFER5 = 14
- const _XCB_ATOM_CUT_BUFFER6 = 15
- const _XCB_ATOM_CUT_BUFFER7 = 16
- const _XCB_ATOM_DRAWABLE = 17
- const _XCB_ATOM_FONT = 18
- const _XCB_ATOM_INTEGER = 19
- const _XCB_ATOM_PIXMAP = 20
- const _XCB_ATOM_POINT = 21
- const _XCB_ATOM_RECTANGLE = 22
- const _XCB_ATOM_RESOURCE_MANAGER = 23
- const _XCB_ATOM_RGB_COLOR_MAP = 24
- const _XCB_ATOM_RGB_BEST_MAP = 25
- const _XCB_ATOM_RGB_BLUE_MAP = 26
- const _XCB_ATOM_RGB_DEFAULT_MAP = 27
- const _XCB_ATOM_RGB_GRAY_MAP = 28
- const _XCB_ATOM_RGB_GREEN_MAP = 29
- const _XCB_ATOM_RGB_RED_MAP = 30
- const _XCB_ATOM_STRING = 31
- const _XCB_ATOM_VISUALID = 32
- const _XCB_ATOM_WINDOW = 33
- const _XCB_ATOM_WM_COMMAND = 34
- const _XCB_ATOM_WM_HINTS = 35
- const _XCB_ATOM_WM_CLIENT_MACHINE = 36
- const _XCB_ATOM_WM_ICON_NAME = 37
- const _XCB_ATOM_WM_ICON_SIZE = 38
- const _XCB_ATOM_WM_NAME = 39
- const _XCB_ATOM_WM_NORMAL_HINTS = 40
- const _XCB_ATOM_WM_SIZE_HINTS = 41
- const _XCB_ATOM_WM_ZOOM_HINTS = 42
- const _XCB_ATOM_MIN_SPACE = 43
- const _XCB_ATOM_NORM_SPACE = 44
- const _XCB_ATOM_MAX_SPACE = 45
- const _XCB_ATOM_END_SPACE = 46
- const _XCB_ATOM_SUPERSCRIPT_X = 47
- const _XCB_ATOM_SUPERSCRIPT_Y = 48
- const _XCB_ATOM_SUBSCRIPT_X = 49
- const _XCB_ATOM_SUBSCRIPT_Y = 50
- const _XCB_ATOM_UNDERLINE_POSITION = 51
- const _XCB_ATOM_UNDERLINE_THICKNESS = 52
- const _XCB_ATOM_STRIKEOUT_ASCENT = 53
- const _XCB_ATOM_STRIKEOUT_DESCENT = 54
- const _XCB_ATOM_ITALIC_ANGLE = 55
- const _XCB_ATOM_X_HEIGHT = 56
- const _XCB_ATOM_QUAD_WIDTH = 57
- const _XCB_ATOM_WEIGHT = 58
- const _XCB_ATOM_POINT_SIZE = 59
- const _XCB_ATOM_RESOLUTION = 60
- const _XCB_ATOM_COPYRIGHT = 61
- const _XCB_ATOM_NOTICE = 62
- const _XCB_ATOM_FONT_NAME = 63
- const _XCB_ATOM_FAMILY_NAME = 64
- const _XCB_ATOM_FULL_NAME = 65
- const _XCB_ATOM_CAP_HEIGHT = 66
- const _XCB_ATOM_WM_CLASS = 67
- const _XCB_ATOM_WM_TRANSIENT_FOR = 68
- type Txcb_selection_request_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Fowner Txcb_window_t
- Frequestor Txcb_window_t
- Fselection Txcb_atom_t
- Ftarget Txcb_atom_t
- Fproperty Txcb_atom_t
- }
- type Txcb_selection_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Ftime Txcb_timestamp_t
- Frequestor Txcb_window_t
- Fselection Txcb_atom_t
- Ftarget Txcb_atom_t
- Fproperty Txcb_atom_t
- }
- type Txcb_colormap_state_t = int32
- type _xcb_colormap_state_t = int32
- const _XCB_COLORMAP_STATE_UNINSTALLED = 0
- const _XCB_COLORMAP_STATE_INSTALLED = 1
- type Txcb_colormap_enum_t = int32
- type _xcb_colormap_enum_t = int32
- const _XCB_COLORMAP_NONE = 0
- type Txcb_colormap_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Fwindow Txcb_window_t
- Fcolormap Txcb_colormap_t
- F_new Tuint8_t
- Fstate Tuint8_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_client_message_data_t = struct {
- Fdata16 [0][10]Tuint16_t
- Fdata32 [0][5]Tuint32_t
- Fdata8 [20]Tuint8_t
- }
- type Txcb_client_message_data_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_client_message_event_t = struct {
- Fresponse_type Tuint8_t
- Fformat Tuint8_t
- Fsequence Tuint16_t
- Fwindow Txcb_window_t
- Ftype1 Txcb_atom_t
- Fdata Txcb_client_message_data_t
- }
- type Txcb_mapping_t = int32
- type _xcb_mapping_t = int32
- const _XCB_MAPPING_MODIFIER = 0
- const _XCB_MAPPING_KEYBOARD = 1
- const _XCB_MAPPING_POINTER = 2
- type Txcb_mapping_notify_event_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Frequest Tuint8_t
- Ffirst_keycode Txcb_keycode_t
- Fcount Tuint8_t
- Fpad1 Tuint8_t
- }
- type Txcb_ge_generic_event_t = struct {
- Fresponse_type Tuint8_t
- Fextension Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fevent_type Tuint16_t
- Fpad0 [22]Tuint8_t
- Ffull_sequence Tuint32_t
- }
- type Txcb_request_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_value_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_window_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_value_error_t1 = Txcb_window_error_t
- type Txcb_pixmap_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_atom_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_cursor_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_font_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_match_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_request_error_t1 = Txcb_match_error_t
- type Txcb_drawable_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_access_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_alloc_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_colormap_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_g_context_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_id_choice_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_name_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_length_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_implementation_error_t = struct {
- Fresponse_type Tuint8_t
- Ferror_code Tuint8_t
- Fsequence Tuint16_t
- Fbad_value Tuint32_t
- Fminor_opcode Tuint16_t
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_window_class_t = int32
- type _xcb_window_class_t = int32
- const _XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0
- const _XCB_WINDOW_CLASS_INPUT_OUTPUT = 1
- const _XCB_WINDOW_CLASS_INPUT_ONLY = 2
- type Txcb_cw_t = int32
- type _xcb_cw_t = int32
- const _XCB_CW_BACK_PIXMAP = 1
- const _XCB_CW_BACK_PIXEL = 2
- const _XCB_CW_BORDER_PIXMAP = 4
- const _XCB_CW_BORDER_PIXEL = 8
- const _XCB_CW_BIT_GRAVITY = 16
- const _XCB_CW_WIN_GRAVITY = 32
- const _XCB_CW_BACKING_STORE = 64
- const _XCB_CW_BACKING_PLANES = 128
- const _XCB_CW_BACKING_PIXEL = 256
- const _XCB_CW_OVERRIDE_REDIRECT = 512
- const _XCB_CW_SAVE_UNDER = 1024
- const _XCB_CW_EVENT_MASK = 2048
- const _XCB_CW_DONT_PROPAGATE = 4096
- const _XCB_CW_COLORMAP = 8192
- const _XCB_CW_CURSOR = 16384
- type Txcb_back_pixmap_t = int32
- type _xcb_back_pixmap_t = int32
- const _XCB_BACK_PIXMAP_NONE = 0
- const _XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
- type Txcb_gravity_t = int32
- type _xcb_gravity_t = int32
- const _XCB_GRAVITY_BIT_FORGET = 0
- const _XCB_GRAVITY_WIN_UNMAP = 0
- const _XCB_GRAVITY_NORTH_WEST = 1
- const _XCB_GRAVITY_NORTH = 2
- const _XCB_GRAVITY_NORTH_EAST = 3
- const _XCB_GRAVITY_WEST = 4
- const _XCB_GRAVITY_CENTER = 5
- const _XCB_GRAVITY_EAST = 6
- const _XCB_GRAVITY_SOUTH_WEST = 7
- const _XCB_GRAVITY_SOUTH = 8
- const _XCB_GRAVITY_SOUTH_EAST = 9
- const _XCB_GRAVITY_STATIC = 10
- type Txcb_create_window_value_list_t = struct {
- Fbackground_pixmap Txcb_pixmap_t
- Fbackground_pixel Tuint32_t
- Fborder_pixmap Txcb_pixmap_t
- Fborder_pixel Tuint32_t
- Fbit_gravity Tuint32_t
- Fwin_gravity Tuint32_t
- Fbacking_store Tuint32_t
- Fbacking_planes Tuint32_t
- Fbacking_pixel Tuint32_t
- Foverride_redirect Txcb_bool32_t
- Fsave_under Txcb_bool32_t
- Fevent_mask Tuint32_t
- Fdo_not_propogate_mask Tuint32_t
- Fcolormap Txcb_colormap_t
- Fcursor Txcb_cursor_t
- }
- type Txcb_create_window_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fdepth Tuint8_t
- Flength Tuint16_t
- Fwid Txcb_window_t
- Fparent Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fborder_width Tuint16_t
- F_class Tuint16_t
- Fvisual Txcb_visualid_t
- Fvalue_mask Tuint32_t
- }
- type Txcb_change_window_attributes_value_list_t = struct {
- Fbackground_pixmap Txcb_pixmap_t
- Fbackground_pixel Tuint32_t
- Fborder_pixmap Txcb_pixmap_t
- Fborder_pixel Tuint32_t
- Fbit_gravity Tuint32_t
- Fwin_gravity Tuint32_t
- Fbacking_store Tuint32_t
- Fbacking_planes Tuint32_t
- Fbacking_pixel Tuint32_t
- Foverride_redirect Txcb_bool32_t
- Fsave_under Txcb_bool32_t
- Fevent_mask Tuint32_t
- Fdo_not_propogate_mask Tuint32_t
- Fcolormap Txcb_colormap_t
- Fcursor Txcb_cursor_t
- }
- type Txcb_change_window_attributes_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fvalue_mask Tuint32_t
- }
- type Txcb_map_state_t = int32
- type _xcb_map_state_t = int32
- const _XCB_MAP_STATE_UNMAPPED = 0
- const _XCB_MAP_STATE_UNVIEWABLE = 1
- const _XCB_MAP_STATE_VIEWABLE = 2
- type Txcb_get_window_attributes_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_window_attributes_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_get_window_attributes_reply_t = struct {
- Fresponse_type Tuint8_t
- Fbacking_store Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fvisual Txcb_visualid_t
- F_class Tuint16_t
- Fbit_gravity Tuint8_t
- Fwin_gravity Tuint8_t
- Fbacking_planes Tuint32_t
- Fbacking_pixel Tuint32_t
- Fsave_under Tuint8_t
- Fmap_is_installed Tuint8_t
- Fmap_state Tuint8_t
- Foverride_redirect Tuint8_t
- Fcolormap Txcb_colormap_t
- Fall_event_masks Tuint32_t
- Fyour_event_mask Tuint32_t
- Fdo_not_propagate_mask Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_destroy_window_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_destroy_subwindows_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_set_mode_t = int32
- type _xcb_set_mode_t = int32
- const _XCB_SET_MODE_INSERT = 0
- const _XCB_SET_MODE_DELETE = 1
- type Txcb_change_save_set_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmode Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_reparent_window_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fparent Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_map_window_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_map_subwindows_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_unmap_window_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_unmap_subwindows_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_config_window_t = int32
- type _xcb_config_window_t = int32
- const _XCB_CONFIG_WINDOW_X = 1
- const _XCB_CONFIG_WINDOW_Y = 2
- const _XCB_CONFIG_WINDOW_WIDTH = 4
- const _XCB_CONFIG_WINDOW_HEIGHT = 8
- const _XCB_CONFIG_WINDOW_BORDER_WIDTH = 16
- const _XCB_CONFIG_WINDOW_SIBLING = 32
- const _XCB_CONFIG_WINDOW_STACK_MODE = 64
- type Txcb_stack_mode_t = int32
- type _xcb_stack_mode_t = int32
- const _XCB_STACK_MODE_ABOVE = 0
- const _XCB_STACK_MODE_BELOW = 1
- const _XCB_STACK_MODE_TOP_IF = 2
- const _XCB_STACK_MODE_BOTTOM_IF = 3
- const _XCB_STACK_MODE_OPPOSITE = 4
- type Txcb_configure_window_value_list_t = struct {
- Fx Tint32_t
- Fy Tint32_t
- Fwidth Tuint32_t
- Fheight Tuint32_t
- Fborder_width Tuint32_t
- Fsibling Txcb_window_t
- Fstack_mode Tuint32_t
- }
- type Txcb_configure_window_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fvalue_mask Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_circulate_t = int32
- type _xcb_circulate_t = int32
- const _XCB_CIRCULATE_RAISE_LOWEST = 0
- const _XCB_CIRCULATE_LOWER_HIGHEST = 1
- type Txcb_circulate_window_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fdirection Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_get_geometry_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_geometry_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- }
- type Txcb_get_geometry_reply_t = struct {
- Fresponse_type Tuint8_t
- Fdepth Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Froot Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fborder_width Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_query_tree_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_tree_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_query_tree_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Froot Txcb_window_t
- Fparent Txcb_window_t
- Fchildren_len Tuint16_t
- Fpad1 [14]Tuint8_t
- }
- type Txcb_intern_atom_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_intern_atom_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fonly_if_exists Tuint8_t
- Flength Tuint16_t
- Fname_len Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_intern_atom_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fatom Txcb_atom_t
- }
- type Txcb_get_atom_name_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_atom_name_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fatom Txcb_atom_t
- }
- type Txcb_get_atom_name_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fname_len Tuint16_t
- Fpad1 [22]Tuint8_t
- }
- type Txcb_prop_mode_t = int32
- type _xcb_prop_mode_t = int32
- const _XCB_PROP_MODE_REPLACE = 0
- const _XCB_PROP_MODE_PREPEND = 1
- const _XCB_PROP_MODE_APPEND = 2
- type Txcb_change_property_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmode Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fproperty Txcb_atom_t
- Ftype1 Txcb_atom_t
- Fformat Tuint8_t
- Fpad0 [3]Tuint8_t
- Fdata_len Tuint32_t
- }
- type Txcb_delete_property_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fproperty Txcb_atom_t
- }
- type Txcb_get_property_type_t = int32
- type _xcb_get_property_type_t = int32
- const _XCB_GET_PROPERTY_TYPE_ANY = 0
- type Txcb_get_property_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_property_request_t = struct {
- Fmajor_opcode Tuint8_t
- F_delete Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fproperty Txcb_atom_t
- Ftype1 Txcb_atom_t
- Flong_offset Tuint32_t
- Flong_length Tuint32_t
- }
- type Txcb_get_property_reply_t = struct {
- Fresponse_type Tuint8_t
- Fformat Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Ftype1 Txcb_atom_t
- Fbytes_after Tuint32_t
- Fvalue_len Tuint32_t
- Fpad0 [12]Tuint8_t
- }
- type Txcb_list_properties_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_list_properties_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_list_properties_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fatoms_len Tuint16_t
- Fpad1 [22]Tuint8_t
- }
- type Txcb_set_selection_owner_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fowner Txcb_window_t
- Fselection Txcb_atom_t
- Ftime Txcb_timestamp_t
- }
- type Txcb_get_selection_owner_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_selection_owner_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fselection Txcb_atom_t
- }
- type Txcb_get_selection_owner_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fowner Txcb_window_t
- }
- type Txcb_convert_selection_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Frequestor Txcb_window_t
- Fselection Txcb_atom_t
- Ftarget Txcb_atom_t
- Fproperty Txcb_atom_t
- Ftime Txcb_timestamp_t
- }
- type Txcb_send_event_dest_t = int32
- type _xcb_send_event_dest_t = int32
- const _XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0
- const _XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
- type Txcb_send_event_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpropagate Tuint8_t
- Flength Tuint16_t
- Fdestination Txcb_window_t
- Fevent_mask Tuint32_t
- Fevent [32]uint8
- }
- type Txcb_grab_mode_t = int32
- type _xcb_grab_mode_t = int32
- const _XCB_GRAB_MODE_SYNC = 0
- const _XCB_GRAB_MODE_ASYNC = 1
- type Txcb_grab_status_t = int32
- type _xcb_grab_status_t = int32
- const _XCB_GRAB_STATUS_SUCCESS = 0
- const _XCB_GRAB_STATUS_ALREADY_GRABBED = 1
- const _XCB_GRAB_STATUS_INVALID_TIME = 2
- const _XCB_GRAB_STATUS_NOT_VIEWABLE = 3
- const _XCB_GRAB_STATUS_FROZEN = 4
- type Txcb_cursor_enum_t = int32
- type _xcb_cursor_enum_t = int32
- const _XCB_CURSOR_NONE = 0
- type Txcb_grab_pointer_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_grab_pointer_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fowner_events Tuint8_t
- Flength Tuint16_t
- Fgrab_window Txcb_window_t
- Fevent_mask Tuint16_t
- Fpointer_mode Tuint8_t
- Fkeyboard_mode Tuint8_t
- Fconfine_to Txcb_window_t
- Fcursor Txcb_cursor_t
- Ftime Txcb_timestamp_t
- }
- type Txcb_grab_pointer_reply_t = struct {
- Fresponse_type Tuint8_t
- Fstatus Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- }
- type Txcb_ungrab_pointer_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ftime Txcb_timestamp_t
- }
- type Txcb_button_index_t = int32
- type _xcb_button_index_t = int32
- const _XCB_BUTTON_INDEX_ANY = 0
- const _XCB_BUTTON_INDEX_1 = 1
- const _XCB_BUTTON_INDEX_2 = 2
- const _XCB_BUTTON_INDEX_3 = 3
- const _XCB_BUTTON_INDEX_4 = 4
- const _XCB_BUTTON_INDEX_5 = 5
- type Txcb_grab_button_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fowner_events Tuint8_t
- Flength Tuint16_t
- Fgrab_window Txcb_window_t
- Fevent_mask Tuint16_t
- Fpointer_mode Tuint8_t
- Fkeyboard_mode Tuint8_t
- Fconfine_to Txcb_window_t
- Fcursor Txcb_cursor_t
- Fbutton Tuint8_t
- Fpad0 Tuint8_t
- Fmodifiers Tuint16_t
- }
- type Txcb_ungrab_button_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fbutton Tuint8_t
- Flength Tuint16_t
- Fgrab_window Txcb_window_t
- Fmodifiers Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_change_active_pointer_grab_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcursor Txcb_cursor_t
- Ftime Txcb_timestamp_t
- Fevent_mask Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_grab_keyboard_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_grab_keyboard_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fowner_events Tuint8_t
- Flength Tuint16_t
- Fgrab_window Txcb_window_t
- Ftime Txcb_timestamp_t
- Fpointer_mode Tuint8_t
- Fkeyboard_mode Tuint8_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_grab_keyboard_reply_t = struct {
- Fresponse_type Tuint8_t
- Fstatus Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- }
- type Txcb_ungrab_keyboard_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ftime Txcb_timestamp_t
- }
- type Txcb_grab_t = int32
- type _xcb_grab_t = int32
- const _XCB_GRAB_ANY = 0
- type Txcb_grab_key_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fowner_events Tuint8_t
- Flength Tuint16_t
- Fgrab_window Txcb_window_t
- Fmodifiers Tuint16_t
- Fkey Txcb_keycode_t
- Fpointer_mode Tuint8_t
- Fkeyboard_mode Tuint8_t
- Fpad0 [3]Tuint8_t
- }
- type Txcb_ungrab_key_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fkey Txcb_keycode_t
- Flength Tuint16_t
- Fgrab_window Txcb_window_t
- Fmodifiers Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_allow_t = int32
- type _xcb_allow_t = int32
- const _XCB_ALLOW_ASYNC_POINTER = 0
- const _XCB_ALLOW_SYNC_POINTER = 1
- const _XCB_ALLOW_REPLAY_POINTER = 2
- const _XCB_ALLOW_ASYNC_KEYBOARD = 3
- const _XCB_ALLOW_SYNC_KEYBOARD = 4
- const _XCB_ALLOW_REPLAY_KEYBOARD = 5
- const _XCB_ALLOW_ASYNC_BOTH = 6
- const _XCB_ALLOW_SYNC_BOTH = 7
- type Txcb_allow_events_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmode Tuint8_t
- Flength Tuint16_t
- Ftime Txcb_timestamp_t
- }
- type Txcb_grab_server_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_ungrab_server_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_query_pointer_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_pointer_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_query_pointer_reply_t = struct {
- Fresponse_type Tuint8_t
- Fsame_screen Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Froot Txcb_window_t
- Fchild Txcb_window_t
- Froot_x Tint16_t
- Froot_y Tint16_t
- Fwin_x Tint16_t
- Fwin_y Tint16_t
- Fmask Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_timecoord_t = struct {
- Ftime Txcb_timestamp_t
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_timecoord_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_get_motion_events_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_motion_events_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fstart Txcb_timestamp_t
- Fstop Txcb_timestamp_t
- }
- type Txcb_get_motion_events_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fevents_len Tuint32_t
- Fpad1 [20]Tuint8_t
- }
- type Txcb_translate_coordinates_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_translate_coordinates_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fsrc_window Txcb_window_t
- Fdst_window Txcb_window_t
- Fsrc_x Tint16_t
- Fsrc_y Tint16_t
- }
- type Txcb_translate_coordinates_reply_t = struct {
- Fresponse_type Tuint8_t
- Fsame_screen Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fchild Txcb_window_t
- Fdst_x Tint16_t
- Fdst_y Tint16_t
- }
- type Txcb_warp_pointer_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fsrc_window Txcb_window_t
- Fdst_window Txcb_window_t
- Fsrc_x Tint16_t
- Fsrc_y Tint16_t
- Fsrc_width Tuint16_t
- Fsrc_height Tuint16_t
- Fdst_x Tint16_t
- Fdst_y Tint16_t
- }
- type Txcb_input_focus_t = int32
- type _xcb_input_focus_t = int32
- const _XCB_INPUT_FOCUS_NONE = 0
- const _XCB_INPUT_FOCUS_POINTER_ROOT = 1
- const _XCB_INPUT_FOCUS_PARENT = 2
- const _XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
- type Txcb_set_input_focus_request_t = struct {
- Fmajor_opcode Tuint8_t
- Frevert_to Tuint8_t
- Flength Tuint16_t
- Ffocus Txcb_window_t
- Ftime Txcb_timestamp_t
- }
- type Txcb_get_input_focus_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_input_focus_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_get_input_focus_reply_t = struct {
- Fresponse_type Tuint8_t
- Frevert_to Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Ffocus Txcb_window_t
- }
- type Txcb_query_keymap_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_keymap_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_query_keymap_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fkeys [32]Tuint8_t
- }
- type Txcb_open_font_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ffid Txcb_font_t
- Fname_len Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_close_font_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ffont Txcb_font_t
- }
- type Txcb_font_draw_t = int32
- type _xcb_font_draw_t = int32
- const _XCB_FONT_DRAW_LEFT_TO_RIGHT = 0
- const _XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
- type Txcb_fontprop_t = struct {
- Fname Txcb_atom_t
- Fvalue Tuint32_t
- }
- type Txcb_fontprop_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_charinfo_t = struct {
- Fleft_side_bearing Tint16_t
- Fright_side_bearing Tint16_t
- Fcharacter_width Tint16_t
- Fascent Tint16_t
- Fdescent Tint16_t
- Fattributes Tuint16_t
- }
- type Txcb_charinfo_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_query_font_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_font_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ffont Txcb_fontable_t
- }
- type Txcb_query_font_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fmin_bounds Txcb_charinfo_t
- Fpad1 [4]Tuint8_t
- Fmax_bounds Txcb_charinfo_t
- Fpad2 [4]Tuint8_t
- Fmin_char_or_byte2 Tuint16_t
- Fmax_char_or_byte2 Tuint16_t
- Fdefault_char Tuint16_t
- Fproperties_len Tuint16_t
- Fdraw_direction Tuint8_t
- Fmin_byte1 Tuint8_t
- Fmax_byte1 Tuint8_t
- Fall_chars_exist Tuint8_t
- Ffont_ascent Tint16_t
- Ffont_descent Tint16_t
- Fchar_infos_len Tuint32_t
- }
- type Txcb_query_text_extents_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_text_extents_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fodd_length Tuint8_t
- Flength Tuint16_t
- Ffont Txcb_fontable_t
- }
- type Txcb_query_text_extents_reply_t = struct {
- Fresponse_type Tuint8_t
- Fdraw_direction Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Ffont_ascent Tint16_t
- Ffont_descent Tint16_t
- Foverall_ascent Tint16_t
- Foverall_descent Tint16_t
- Foverall_width Tint32_t
- Foverall_left Tint32_t
- Foverall_right Tint32_t
- }
- type Txcb_str_t = struct {
- Fname_len Tuint8_t
- }
- type Txcb_str_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_list_fonts_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_list_fonts_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fmax_names Tuint16_t
- Fpattern_len Tuint16_t
- }
- type Txcb_list_fonts_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fnames_len Tuint16_t
- Fpad1 [22]Tuint8_t
- }
- type Txcb_list_fonts_with_info_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_list_fonts_with_info_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fmax_names Tuint16_t
- Fpattern_len Tuint16_t
- }
- type Txcb_list_fonts_with_info_reply_t = struct {
- Fresponse_type Tuint8_t
- Fname_len Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fmin_bounds Txcb_charinfo_t
- Fpad0 [4]Tuint8_t
- Fmax_bounds Txcb_charinfo_t
- Fpad1 [4]Tuint8_t
- Fmin_char_or_byte2 Tuint16_t
- Fmax_char_or_byte2 Tuint16_t
- Fdefault_char Tuint16_t
- Fproperties_len Tuint16_t
- Fdraw_direction Tuint8_t
- Fmin_byte1 Tuint8_t
- Fmax_byte1 Tuint8_t
- Fall_chars_exist Tuint8_t
- Ffont_ascent Tint16_t
- Ffont_descent Tint16_t
- Freplies_hint Tuint32_t
- }
- type Txcb_set_font_path_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ffont_qty Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_get_font_path_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_font_path_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_get_font_path_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpath_len Tuint16_t
- Fpad1 [22]Tuint8_t
- }
- type Txcb_create_pixmap_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fdepth Tuint8_t
- Flength Tuint16_t
- Fpid Txcb_pixmap_t
- Fdrawable Txcb_drawable_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- }
- type Txcb_free_pixmap_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fpixmap Txcb_pixmap_t
- }
- type Txcb_gc_t = int32
- type _xcb_gc_t = int32
- const _XCB_GC_FUNCTION = 1
- const _XCB_GC_PLANE_MASK = 2
- const _XCB_GC_FOREGROUND = 4
- const _XCB_GC_BACKGROUND = 8
- const _XCB_GC_LINE_WIDTH = 16
- const _XCB_GC_LINE_STYLE = 32
- const _XCB_GC_CAP_STYLE = 64
- const _XCB_GC_JOIN_STYLE = 128
- const _XCB_GC_FILL_STYLE = 256
- const _XCB_GC_FILL_RULE = 512
- const _XCB_GC_TILE = 1024
- const _XCB_GC_STIPPLE = 2048
- const _XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096
- const _XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192
- const _XCB_GC_FONT = 16384
- const _XCB_GC_SUBWINDOW_MODE = 32768
- const _XCB_GC_GRAPHICS_EXPOSURES = 65536
- const _XCB_GC_CLIP_ORIGIN_X = 131072
- const _XCB_GC_CLIP_ORIGIN_Y = 262144
- const _XCB_GC_CLIP_MASK = 524288
- const _XCB_GC_DASH_OFFSET = 1048576
- const _XCB_GC_DASH_LIST = 2097152
- const _XCB_GC_ARC_MODE = 4194304
- type Txcb_gx_t = int32
- type _xcb_gx_t = int32
- const _XCB_GX_CLEAR = 0
- const _XCB_GX_AND = 1
- const _XCB_GX_AND_REVERSE = 2
- const _XCB_GX_COPY = 3
- const _XCB_GX_AND_INVERTED = 4
- const _XCB_GX_NOOP = 5
- const _XCB_GX_XOR = 6
- const _XCB_GX_OR = 7
- const _XCB_GX_NOR = 8
- const _XCB_GX_EQUIV = 9
- const _XCB_GX_INVERT = 10
- const _XCB_GX_OR_REVERSE = 11
- const _XCB_GX_COPY_INVERTED = 12
- const _XCB_GX_OR_INVERTED = 13
- const _XCB_GX_NAND = 14
- const _XCB_GX_SET = 15
- type Txcb_line_style_t = int32
- type _xcb_line_style_t = int32
- const _XCB_LINE_STYLE_SOLID = 0
- const _XCB_LINE_STYLE_ON_OFF_DASH = 1
- const _XCB_LINE_STYLE_DOUBLE_DASH = 2
- type Txcb_cap_style_t = int32
- type _xcb_cap_style_t = int32
- const _XCB_CAP_STYLE_NOT_LAST = 0
- const _XCB_CAP_STYLE_BUTT = 1
- const _XCB_CAP_STYLE_ROUND = 2
- const _XCB_CAP_STYLE_PROJECTING = 3
- type Txcb_join_style_t = int32
- type _xcb_join_style_t = int32
- const _XCB_JOIN_STYLE_MITER = 0
- const _XCB_JOIN_STYLE_ROUND = 1
- const _XCB_JOIN_STYLE_BEVEL = 2
- type Txcb_fill_style_t = int32
- type _xcb_fill_style_t = int32
- const _XCB_FILL_STYLE_SOLID = 0
- const _XCB_FILL_STYLE_TILED = 1
- const _XCB_FILL_STYLE_STIPPLED = 2
- const _XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
- type Txcb_fill_rule_t = int32
- type _xcb_fill_rule_t = int32
- const _XCB_FILL_RULE_EVEN_ODD = 0
- const _XCB_FILL_RULE_WINDING = 1
- type Txcb_subwindow_mode_t = int32
- type _xcb_subwindow_mode_t = int32
- const _XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0
- const _XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
- type Txcb_arc_mode_t = int32
- type _xcb_arc_mode_t = int32
- const _XCB_ARC_MODE_CHORD = 0
- const _XCB_ARC_MODE_PIE_SLICE = 1
- type Txcb_create_gc_value_list_t = struct {
- Ffunction Tuint32_t
- Fplane_mask Tuint32_t
- Fforeground Tuint32_t
- Fbackground Tuint32_t
- Fline_width Tuint32_t
- Fline_style Tuint32_t
- Fcap_style Tuint32_t
- Fjoin_style Tuint32_t
- Ffill_style Tuint32_t
- Ffill_rule Tuint32_t
- Ftile Txcb_pixmap_t
- Fstipple Txcb_pixmap_t
- Ftile_stipple_x_origin Tint32_t
- Ftile_stipple_y_origin Tint32_t
- Ffont Txcb_font_t
- Fsubwindow_mode Tuint32_t
- Fgraphics_exposures Txcb_bool32_t
- Fclip_x_origin Tint32_t
- Fclip_y_origin Tint32_t
- Fclip_mask Txcb_pixmap_t
- Fdash_offset Tuint32_t
- Fdashes Tuint32_t
- Farc_mode Tuint32_t
- }
- type Txcb_create_gc_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcid Txcb_gcontext_t
- Fdrawable Txcb_drawable_t
- Fvalue_mask Tuint32_t
- }
- type Txcb_change_gc_value_list_t = struct {
- Ffunction Tuint32_t
- Fplane_mask Tuint32_t
- Fforeground Tuint32_t
- Fbackground Tuint32_t
- Fline_width Tuint32_t
- Fline_style Tuint32_t
- Fcap_style Tuint32_t
- Fjoin_style Tuint32_t
- Ffill_style Tuint32_t
- Ffill_rule Tuint32_t
- Ftile Txcb_pixmap_t
- Fstipple Txcb_pixmap_t
- Ftile_stipple_x_origin Tint32_t
- Ftile_stipple_y_origin Tint32_t
- Ffont Txcb_font_t
- Fsubwindow_mode Tuint32_t
- Fgraphics_exposures Txcb_bool32_t
- Fclip_x_origin Tint32_t
- Fclip_y_origin Tint32_t
- Fclip_mask Txcb_pixmap_t
- Fdash_offset Tuint32_t
- Fdashes Tuint32_t
- Farc_mode Tuint32_t
- }
- type Txcb_change_gc_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fgc Txcb_gcontext_t
- Fvalue_mask Tuint32_t
- }
- type Txcb_copy_gc_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fsrc_gc Txcb_gcontext_t
- Fdst_gc Txcb_gcontext_t
- Fvalue_mask Tuint32_t
- }
- type Txcb_set_dashes_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fgc Txcb_gcontext_t
- Fdash_offset Tuint16_t
- Fdashes_len Tuint16_t
- }
- type Txcb_clip_ordering_t = int32
- type _xcb_clip_ordering_t = int32
- const _XCB_CLIP_ORDERING_UNSORTED = 0
- const _XCB_CLIP_ORDERING_Y_SORTED = 1
- const _XCB_CLIP_ORDERING_YX_SORTED = 2
- const _XCB_CLIP_ORDERING_YX_BANDED = 3
- type Txcb_set_clip_rectangles_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fordering Tuint8_t
- Flength Tuint16_t
- Fgc Txcb_gcontext_t
- Fclip_x_origin Tint16_t
- Fclip_y_origin Tint16_t
- }
- type Txcb_free_gc_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_clear_area_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fexposures Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- }
- type Txcb_copy_area_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fsrc_drawable Txcb_drawable_t
- Fdst_drawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fsrc_x Tint16_t
- Fsrc_y Tint16_t
- Fdst_x Tint16_t
- Fdst_y Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- }
- type Txcb_copy_plane_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fsrc_drawable Txcb_drawable_t
- Fdst_drawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fsrc_x Tint16_t
- Fsrc_y Tint16_t
- Fdst_x Tint16_t
- Fdst_y Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fbit_plane Tuint32_t
- }
- type Txcb_coord_mode_t = int32
- type _xcb_coord_mode_t = int32
- const _XCB_COORD_MODE_ORIGIN = 0
- const _XCB_COORD_MODE_PREVIOUS = 1
- type Txcb_poly_point_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fcoordinate_mode Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_poly_line_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fcoordinate_mode Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_segment_t = struct {
- Fx1 Tint16_t
- Fy1 Tint16_t
- Fx2 Tint16_t
- Fy2 Tint16_t
- }
- type Txcb_segment_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_poly_segment_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_poly_rectangle_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_poly_arc_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_poly_shape_t = int32
- type _xcb_poly_shape_t = int32
- const _XCB_POLY_SHAPE_COMPLEX = 0
- const _XCB_POLY_SHAPE_NONCONVEX = 1
- const _XCB_POLY_SHAPE_CONVEX = 2
- type Txcb_fill_poly_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fshape Tuint8_t
- Fcoordinate_mode Tuint8_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_poly_fill_rectangle_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_poly_fill_arc_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- }
- type Txcb_image_format_t = int32
- type _xcb_image_format_t = int32
- const _XCB_IMAGE_FORMAT_XY_BITMAP = 0
- const _XCB_IMAGE_FORMAT_XY_PIXMAP = 1
- const _XCB_IMAGE_FORMAT_Z_PIXMAP = 2
- type Txcb_put_image_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fformat Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fdst_x Tint16_t
- Fdst_y Tint16_t
- Fleft_pad Tuint8_t
- Fdepth Tuint8_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_get_image_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_image_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fformat Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fx Tint16_t
- Fy Tint16_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- Fplane_mask Tuint32_t
- }
- type Txcb_get_image_reply_t = struct {
- Fresponse_type Tuint8_t
- Fdepth Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fvisual Txcb_visualid_t
- Fpad0 [20]Tuint8_t
- }
- type Txcb_poly_text_8_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_poly_text_16_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_image_text_8_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fstring_len Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_image_text_16_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fstring_len Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fgc Txcb_gcontext_t
- Fx Tint16_t
- Fy Tint16_t
- }
- type Txcb_colormap_alloc_t = int32
- type _xcb_colormap_alloc_t = int32
- const _XCB_COLORMAP_ALLOC_NONE = 0
- const _XCB_COLORMAP_ALLOC_ALL = 1
- type Txcb_create_colormap_request_t = struct {
- Fmajor_opcode Tuint8_t
- Falloc Tuint8_t
- Flength Tuint16_t
- Fmid Txcb_colormap_t
- Fwindow Txcb_window_t
- Fvisual Txcb_visualid_t
- }
- type Txcb_free_colormap_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- }
- type Txcb_copy_colormap_and_free_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fmid Txcb_colormap_t
- Fsrc_cmap Txcb_colormap_t
- }
- type Txcb_install_colormap_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- }
- type Txcb_uninstall_colormap_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- }
- type Txcb_list_installed_colormaps_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_list_installed_colormaps_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- }
- type Txcb_list_installed_colormaps_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fcmaps_len Tuint16_t
- Fpad1 [22]Tuint8_t
- }
- type Txcb_alloc_color_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_alloc_color_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- Fred Tuint16_t
- Fgreen Tuint16_t
- Fblue Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_alloc_color_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fred Tuint16_t
- Fgreen Tuint16_t
- Fblue Tuint16_t
- Fpad1 [2]Tuint8_t
- Fpixel Tuint32_t
- }
- type Txcb_alloc_named_color_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_alloc_named_color_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- Fname_len Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_alloc_named_color_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpixel Tuint32_t
- Fexact_red Tuint16_t
- Fexact_green Tuint16_t
- Fexact_blue Tuint16_t
- Fvisual_red Tuint16_t
- Fvisual_green Tuint16_t
- Fvisual_blue Tuint16_t
- }
- type Txcb_alloc_color_cells_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_alloc_color_cells_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fcontiguous Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- Fcolors Tuint16_t
- Fplanes Tuint16_t
- }
- type Txcb_alloc_color_cells_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpixels_len Tuint16_t
- Fmasks_len Tuint16_t
- Fpad1 [20]Tuint8_t
- }
- type Txcb_alloc_color_planes_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_alloc_color_planes_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fcontiguous Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- Fcolors Tuint16_t
- Freds Tuint16_t
- Fgreens Tuint16_t
- Fblues Tuint16_t
- }
- type Txcb_alloc_color_planes_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpixels_len Tuint16_t
- Fpad1 [2]Tuint8_t
- Fred_mask Tuint32_t
- Fgreen_mask Tuint32_t
- Fblue_mask Tuint32_t
- Fpad2 [8]Tuint8_t
- }
- type Txcb_free_colors_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- Fplane_mask Tuint32_t
- }
- type Txcb_color_flag_t = int32
- type _xcb_color_flag_t = int32
- const _XCB_COLOR_FLAG_RED = 1
- const _XCB_COLOR_FLAG_GREEN = 2
- const _XCB_COLOR_FLAG_BLUE = 4
- type Txcb_coloritem_t = struct {
- Fpixel Tuint32_t
- Fred Tuint16_t
- Fgreen Tuint16_t
- Fblue Tuint16_t
- Fflags Tuint8_t
- Fpad0 Tuint8_t
- }
- type Txcb_coloritem_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_store_colors_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- }
- type Txcb_store_named_color_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fflags Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- Fpixel Tuint32_t
- Fname_len Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_rgb_t = struct {
- Fred Tuint16_t
- Fgreen Tuint16_t
- Fblue Tuint16_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_rgb_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_query_colors_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_colors_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- }
- type Txcb_query_colors_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fcolors_len Tuint16_t
- Fpad1 [22]Tuint8_t
- }
- type Txcb_lookup_color_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_lookup_color_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcmap Txcb_colormap_t
- Fname_len Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_lookup_color_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fexact_red Tuint16_t
- Fexact_green Tuint16_t
- Fexact_blue Tuint16_t
- Fvisual_red Tuint16_t
- Fvisual_green Tuint16_t
- Fvisual_blue Tuint16_t
- }
- type Txcb_pixmap_enum_t = int32
- type _xcb_pixmap_enum_t = int32
- const _XCB_PIXMAP_NONE = 0
- type Txcb_create_cursor_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcid Txcb_cursor_t
- Fsource Txcb_pixmap_t
- Fmask Txcb_pixmap_t
- Ffore_red Tuint16_t
- Ffore_green Tuint16_t
- Ffore_blue Tuint16_t
- Fback_red Tuint16_t
- Fback_green Tuint16_t
- Fback_blue Tuint16_t
- Fx Tuint16_t
- Fy Tuint16_t
- }
- type Txcb_font_enum_t = int32
- type _xcb_font_enum_t = int32
- const _XCB_FONT_NONE = 0
- type Txcb_create_glyph_cursor_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcid Txcb_cursor_t
- Fsource_font Txcb_font_t
- Fmask_font Txcb_font_t
- Fsource_char Tuint16_t
- Fmask_char Tuint16_t
- Ffore_red Tuint16_t
- Ffore_green Tuint16_t
- Ffore_blue Tuint16_t
- Fback_red Tuint16_t
- Fback_green Tuint16_t
- Fback_blue Tuint16_t
- }
- type Txcb_free_cursor_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcursor Txcb_cursor_t
- }
- type Txcb_recolor_cursor_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fcursor Txcb_cursor_t
- Ffore_red Tuint16_t
- Ffore_green Tuint16_t
- Ffore_blue Tuint16_t
- Fback_red Tuint16_t
- Fback_green Tuint16_t
- Fback_blue Tuint16_t
- }
- type Txcb_query_shape_of_t = int32
- type _xcb_query_shape_of_t = int32
- const _XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0
- const _XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1
- const _XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
- type Txcb_query_best_size_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_best_size_request_t = struct {
- Fmajor_opcode Tuint8_t
- F_class Tuint8_t
- Flength Tuint16_t
- Fdrawable Txcb_drawable_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- }
- type Txcb_query_best_size_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fwidth Tuint16_t
- Fheight Tuint16_t
- }
- type Txcb_query_extension_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_query_extension_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fname_len Tuint16_t
- Fpad1 [2]Tuint8_t
- }
- type Txcb_query_extension_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpresent Tuint8_t
- Fmajor_opcode Tuint8_t
- Ffirst_event Tuint8_t
- Ffirst_error Tuint8_t
- }
- type Txcb_list_extensions_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_list_extensions_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_list_extensions_reply_t = struct {
- Fresponse_type Tuint8_t
- Fnames_len Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpad0 [24]Tuint8_t
- }
- type Txcb_change_keyboard_mapping_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fkeycode_count Tuint8_t
- Flength Tuint16_t
- Ffirst_keycode Txcb_keycode_t
- Fkeysyms_per_keycode Tuint8_t
- Fpad0 [2]Tuint8_t
- }
- type Txcb_get_keyboard_mapping_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_keyboard_mapping_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ffirst_keycode Txcb_keycode_t
- Fcount Tuint8_t
- }
- type Txcb_get_keyboard_mapping_reply_t = struct {
- Fresponse_type Tuint8_t
- Fkeysyms_per_keycode Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpad0 [24]Tuint8_t
- }
- type Txcb_kb_t = int32
- type _xcb_kb_t = int32
- const _XCB_KB_KEY_CLICK_PERCENT = 1
- const _XCB_KB_BELL_PERCENT = 2
- const _XCB_KB_BELL_PITCH = 4
- const _XCB_KB_BELL_DURATION = 8
- const _XCB_KB_LED = 16
- const _XCB_KB_LED_MODE = 32
- const _XCB_KB_KEY = 64
- const _XCB_KB_AUTO_REPEAT_MODE = 128
- type Txcb_led_mode_t = int32
- type _xcb_led_mode_t = int32
- const _XCB_LED_MODE_OFF = 0
- const _XCB_LED_MODE_ON = 1
- type Txcb_auto_repeat_mode_t = int32
- type _xcb_auto_repeat_mode_t = int32
- const _XCB_AUTO_REPEAT_MODE_OFF = 0
- const _XCB_AUTO_REPEAT_MODE_ON = 1
- const _XCB_AUTO_REPEAT_MODE_DEFAULT = 2
- type Txcb_change_keyboard_control_value_list_t = struct {
- Fkey_click_percent Tint32_t
- Fbell_percent Tint32_t
- Fbell_pitch Tint32_t
- Fbell_duration Tint32_t
- Fled Tuint32_t
- Fled_mode Tuint32_t
- Fkey Txcb_keycode32_t
- Fauto_repeat_mode Tuint32_t
- }
- type Txcb_change_keyboard_control_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fvalue_mask Tuint32_t
- }
- type Txcb_get_keyboard_control_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_keyboard_control_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_get_keyboard_control_reply_t = struct {
- Fresponse_type Tuint8_t
- Fglobal_auto_repeat Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fled_mask Tuint32_t
- Fkey_click_percent Tuint8_t
- Fbell_percent Tuint8_t
- Fbell_pitch Tuint16_t
- Fbell_duration Tuint16_t
- Fpad0 [2]Tuint8_t
- Fauto_repeats [32]Tuint8_t
- }
- type Txcb_bell_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpercent Tint8_t
- Flength Tuint16_t
- }
- type Txcb_change_pointer_control_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Facceleration_numerator Tint16_t
- Facceleration_denominator Tint16_t
- Fthreshold Tint16_t
- Fdo_acceleration Tuint8_t
- Fdo_threshold Tuint8_t
- }
- type Txcb_get_pointer_control_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_pointer_control_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_get_pointer_control_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Facceleration_numerator Tuint16_t
- Facceleration_denominator Tuint16_t
- Fthreshold Tuint16_t
- Fpad1 [18]Tuint8_t
- }
- type Txcb_blanking_t = int32
- type _xcb_blanking_t = int32
- const _XCB_BLANKING_NOT_PREFERRED = 0
- const _XCB_BLANKING_PREFERRED = 1
- const _XCB_BLANKING_DEFAULT = 2
- type Txcb_exposures_t = int32
- type _xcb_exposures_t = int32
- const _XCB_EXPOSURES_NOT_ALLOWED = 0
- const _XCB_EXPOSURES_ALLOWED = 1
- const _XCB_EXPOSURES_DEFAULT = 2
- type Txcb_set_screen_saver_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Ftimeout Tint16_t
- Finterval Tint16_t
- Fprefer_blanking Tuint8_t
- Fallow_exposures Tuint8_t
- }
- type Txcb_get_screen_saver_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_screen_saver_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_get_screen_saver_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Ftimeout Tuint16_t
- Finterval Tuint16_t
- Fprefer_blanking Tuint8_t
- Fallow_exposures Tuint8_t
- Fpad1 [18]Tuint8_t
- }
- type Txcb_host_mode_t = int32
- type _xcb_host_mode_t = int32
- const _XCB_HOST_MODE_INSERT = 0
- const _XCB_HOST_MODE_DELETE = 1
- type Txcb_family_t = int32
- type _xcb_family_t = int32
- const _XCB_FAMILY_INTERNET = 0
- const _XCB_FAMILY_DECNET = 1
- const _XCB_FAMILY_CHAOS = 2
- const _XCB_FAMILY_SERVER_INTERPRETED = 5
- const _XCB_FAMILY_INTERNET_6 = 6
- type Txcb_change_hosts_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmode Tuint8_t
- Flength Tuint16_t
- Ffamily Tuint8_t
- Fpad0 Tuint8_t
- Faddress_len Tuint16_t
- }
- type Txcb_host_t = struct {
- Ffamily Tuint8_t
- Fpad0 Tuint8_t
- Faddress_len Tuint16_t
- }
- type Txcb_host_iterator_t = struct {
- Fdata uintptr
- Frem int32
- Findex int32
- }
- type Txcb_list_hosts_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_list_hosts_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_list_hosts_reply_t = struct {
- Fresponse_type Tuint8_t
- Fmode Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fhosts_len Tuint16_t
- Fpad0 [22]Tuint8_t
- }
- type Txcb_access_control_t = int32
- type _xcb_access_control_t = int32
- const _XCB_ACCESS_CONTROL_DISABLE = 0
- const _XCB_ACCESS_CONTROL_ENABLE = 1
- type Txcb_set_access_control_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmode Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_close_down_t = int32
- type _xcb_close_down_t = int32
- const _XCB_CLOSE_DOWN_DESTROY_ALL = 0
- const _XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1
- const _XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
- type Txcb_set_close_down_mode_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmode Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_kill_t = int32
- type _xcb_kill_t = int32
- const _XCB_KILL_ALL_TEMPORARY = 0
- type Txcb_kill_client_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fresource Tuint32_t
- }
- type Txcb_rotate_properties_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- Fwindow Txcb_window_t
- Fatoms_len Tuint16_t
- Fdelta Tint16_t
- }
- type Txcb_screen_saver_t = int32
- type _xcb_screen_saver_t = int32
- const _XCB_SCREEN_SAVER_RESET = 0
- const _XCB_SCREEN_SAVER_ACTIVE = 1
- type Txcb_force_screen_saver_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmode Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_mapping_status_t = int32
- type _xcb_mapping_status_t = int32
- const _XCB_MAPPING_STATUS_SUCCESS = 0
- const _XCB_MAPPING_STATUS_BUSY = 1
- const _XCB_MAPPING_STATUS_FAILURE = 2
- type Txcb_set_pointer_mapping_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_set_pointer_mapping_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fmap_len Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_set_pointer_mapping_reply_t = struct {
- Fresponse_type Tuint8_t
- Fstatus Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- }
- type Txcb_get_pointer_mapping_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_pointer_mapping_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_get_pointer_mapping_reply_t = struct {
- Fresponse_type Tuint8_t
- Fmap_len Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpad0 [24]Tuint8_t
- }
- type Txcb_map_index_t = int32
- type _xcb_map_index_t = int32
- const _XCB_MAP_INDEX_SHIFT = 0
- const _XCB_MAP_INDEX_LOCK = 1
- const _XCB_MAP_INDEX_CONTROL = 2
- const _XCB_MAP_INDEX_1 = 3
- const _XCB_MAP_INDEX_2 = 4
- const _XCB_MAP_INDEX_3 = 5
- const _XCB_MAP_INDEX_4 = 6
- const _XCB_MAP_INDEX_5 = 7
- type Txcb_set_modifier_mapping_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_set_modifier_mapping_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fkeycodes_per_modifier Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_set_modifier_mapping_reply_t = struct {
- Fresponse_type Tuint8_t
- Fstatus Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- }
- type Txcb_get_modifier_mapping_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_get_modifier_mapping_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_get_modifier_mapping_reply_t = struct {
- Fresponse_type Tuint8_t
- Fkeycodes_per_modifier Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fpad0 [24]Tuint8_t
- }
- type Txcb_no_operation_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fpad0 Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_auth_info_t = struct {
- Fnamelen int32
- Fname uintptr
- Fdatalen int32
- Fdata uintptr
- }
- type Txcb_big_requests_enable_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_big_requests_enable_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fminor_opcode Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_big_requests_enable_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fmaximum_request_length Tuint32_t
- }
- type _workarounds = int32
- const _WORKAROUND_NONE = 0
- const _WORKAROUND_GLX_GET_FB_CONFIGS_BUG = 1
- const _WORKAROUND_EXTERNAL_SOCKET_OWNER = 2
- type _lazy_reply_tag = int32
- const _LAZY_NONE = 0
- const _LAZY_COOKIE = 1
- const _LAZY_FORCED = 2
- type Txcb_list_free_func_t = uintptr
- type T_xcb_fd = struct {
- Ffd [16]int32
- Fnfd int32
- Fifd int32
- }
- type T_xcb_out = struct {
- Fcond Tpthread_cond_t
- Fwriting int32
- Fsocket_cond Tpthread_cond_t
- Freturn_socket uintptr
- Fsocket_closure uintptr
- Fsocket_moving int32
- Fqueue [16384]uint8
- Fqueue_len int32
- Frequest Tuint64_t
- Frequest_written Tuint64_t
- Frequest_expected_written Tuint64_t
- Ftotal_written Tuint64_t
- Freqlenlock Tpthread_mutex_t
- Fmaximum_request_length_tag _lazy_reply_tag
- Fmaximum_request_length struct {
- Fvalue [0]Tuint32_t
- Fcookie Txcb_big_requests_enable_cookie_t
- }
- Fout_fd T_xcb_fd
- }
- type T_xcb_in = struct {
- Fevent_cond Tpthread_cond_t
- Freading int32
- Fqueue [4096]uint8
- Fqueue_len int32
- Frequest_expected Tuint64_t
- Frequest_read Tuint64_t
- Frequest_completed Tuint64_t
- Ftotal_read Tuint64_t
- Fcurrent_reply uintptr
- Fcurrent_reply_tail uintptr
- Freplies uintptr
- Fevents uintptr
- Fevents_tail uintptr
- Freaders uintptr
- Fspecial_waiters uintptr
- Fpending_replies uintptr
- Fpending_replies_tail uintptr
- Fin_fd T_xcb_fd
- Fspecial_events uintptr
- }
- type T_xcb_xid = struct {
- Flock Tpthread_mutex_t
- Flast Tuint32_t
- Fbase Tuint32_t
- Fmax Tuint32_t
- Finc Tuint32_t
- }
- type T_xcb_ext = struct {
- Flock Tpthread_mutex_t
- Fextensions uintptr
- Fextensions_size int32
- }
- type Txcb_connection_t1 = struct {
- Fhas_error int32
- Fsetup uintptr
- Ffd int32
- Fiolock Tpthread_mutex_t
- Fin T_xcb_in
- Fout T_xcb_out
- Fext T_xcb_ext
- Fxid T_xcb_xid
- }
- type Tnfds_t = uint64
- type Tpollfd = struct {
- Ffd int32
- Fevents int16
- Frevents int16
- }
- type Tsocklen_t = uint32
- type Tsa_family_t = uint16
- type Tmsghdr = struct {
- Fmsg_name uintptr
- Fmsg_namelen Tsocklen_t
- Fmsg_iov uintptr
- Fmsg_iovlen int32
- F__pad1 int32
- Fmsg_control uintptr
- Fmsg_controllen Tsocklen_t
- F__pad2 int32
- Fmsg_flags int32
- }
- type Tcmsghdr = struct {
- Fcmsg_len Tsocklen_t
- F__pad1 int32
- Fcmsg_level int32
- Fcmsg_type int32
- }
- type Tucred = struct {
- Fpid Tpid_t
- Fuid Tuid_t
- Fgid Tgid_t
- }
- type Tmmsghdr = struct {
- Fmsg_hdr Tmsghdr
- Fmsg_len uint32
- }
- type Tlinger = struct {
- Fl_onoff int32
- Fl_linger int32
- }
- type Tsockaddr = struct {
- Fsa_family Tsa_family_t
- Fsa_data [14]uint8
- }
- type Tsockaddr_storage = struct {
- Fss_family Tsa_family_t
- F__ss_padding [118]uint8
- F__ss_align uint64
- }
- type Timaxdiv_t = struct {
- Fquot Tintmax_t
- Frem Tintmax_t
- }
- type Tin_port_t = uint16
- type Tin_addr_t = uint32
- type Tin_addr = struct {
- Fs_addr Tin_addr_t
- }
- type Tsockaddr_in = struct {
- Fsin_family Tsa_family_t
- Fsin_port Tin_port_t
- Fsin_addr Tin_addr
- Fsin_zero [8]Tuint8_t
- }
- type Tin6_addr = struct {
- F__in6_union struct {
- F__s6_addr16 [0][8]Tuint16_t
- F__s6_addr32 [0][4]Tuint32_t
- F__s6_addr [16]Tuint8_t
- }
- }
- type Tsockaddr_in6 = struct {
- Fsin6_family Tsa_family_t
- Fsin6_port Tin_port_t
- Fsin6_flowinfo Tuint32_t
- Fsin6_addr Tin6_addr
- Fsin6_scope_id Tuint32_t
- }
- type Tipv6_mreq = struct {
- Fipv6mr_multiaddr Tin6_addr
- Fipv6mr_interface uint32
- }
- type Tip_opts = struct {
- Fip_dst Tin_addr
- Fip_opts [40]uint8
- }
- type Tip_mreq = struct {
- Fimr_multiaddr Tin_addr
- Fimr_interface Tin_addr
- }
- type Tip_mreqn = struct {
- Fimr_multiaddr Tin_addr
- Fimr_address Tin_addr
- Fimr_ifindex int32
- }
- type Tip_mreq_source = struct {
- Fimr_multiaddr Tin_addr
- Fimr_interface Tin_addr
- Fimr_sourceaddr Tin_addr
- }
- type Tip_msfilter = struct {
- Fimsf_multiaddr Tin_addr
- Fimsf_interface Tin_addr
- Fimsf_fmode Tuint32_t
- Fimsf_numsrc Tuint32_t
- Fimsf_slist [1]Tin_addr
- }
- type Tgroup_req = struct {
- Fgr_interface Tuint32_t
- Fgr_group Tsockaddr_storage
- }
- type Tgroup_source_req = struct {
- Fgsr_interface Tuint32_t
- Fgsr_group Tsockaddr_storage
- Fgsr_source Tsockaddr_storage
- }
- type Tgroup_filter = struct {
- Fgf_interface Tuint32_t
- Fgf_group Tsockaddr_storage
- Fgf_fmode Tuint32_t
- Fgf_numsrc Tuint32_t
- Fgf_slist [1]Tsockaddr_storage
- }
- type Tin_pktinfo = struct {
- Fipi_ifindex int32
- Fipi_spec_dst Tin_addr
- Fipi_addr Tin_addr
- }
- type Tin6_pktinfo = struct {
- Fipi6_addr Tin6_addr
- Fipi6_ifindex uint32
- }
- type Tip6_mtuinfo = struct {
- Fip6m_addr Tsockaddr_in6
- Fip6m_mtu Tuint32_t
- }
- /* SHUT_RDWR is fairly recent and is not available on all platforms */
- type Txcb_setup_generic_t = struct {
- Fstatus Tuint8_t
- Fpad0 [5]Tuint8_t
- Flength Tuint16_t
- }
- var _xcb_error_setup = Txcb_setup_t{}
- // C documentation
- //
- // /* Keep this list in sync with is_static_error_conn()! */
- var _xcb_con_error = int32(m_XCB_CONN_ERROR)
- var _xcb_con_closed_mem_er = int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT)
- var _xcb_con_closed_parse_er = int32(m_XCB_CONN_CLOSED_PARSE_ERR)
- var _xcb_con_closed_screen_er = int32(m_XCB_CONN_CLOSED_INVALID_SCREEN)
- func _is_static_error_conn(tls *libc.TLS, c uintptr) (r int32) {
- return libc.BoolInt32(c == uintptr(unsafe.Pointer(&_xcb_con_error)) || c == uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er)) || c == uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er)) || c == uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er)))
- }
- func _set_fd_flags(tls *libc.TLS, fd int32) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var flags int32
- _ = flags
- /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
- flags = libc.Xfcntl(tls, fd, int32(m_F_GETFL), libc.VaList(bp+8, 0))
- if flags == -int32(1) {
- return 0
- }
- flags |= int32(m_O_NONBLOCK)
- if libc.Xfcntl(tls, fd, int32(m_F_SETFL), libc.VaList(bp+8, flags)) == -int32(1) {
- return 0
- }
- if libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC))) == -int32(1) {
- return 0
- }
- return int32(1)
- }
- func _write_setup(tls *libc.TLS, c uintptr, auth_info uintptr) (r int32) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var count, ret, v1, v2, v4, v5, v7, v8 int32
- var v3, v6 Tuint16_t
- var _ /* out at bp+0 */ Txcb_setup_request_t
- var _ /* parts at bp+16 */ [6]Tiovec
- _, _, _, _, _, _, _, _, _, _ = count, ret, v1, v2, v3, v4, v5, v6, v7, v8
- count = 0
- libc.Xmemset(tls, bp, 0, uint64(12))
- /* B = 0x42 = MSB first, l = 0x6c = LSB first */
- if libc.Xhtonl(tls, _endian) == _endian {
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x42)
- } else {
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x6c)
- }
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_major_version = uint16(m_X_PROTOCOL)
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_minor_version = uint16(m_X_PROTOCOL_REVISION)
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = uint16(0)
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = uint16(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(12)
- v1 = count
- count++
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v1].Fiov_base = bp
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = -libc.Uint64FromInt64(12) & libc.Uint64FromInt32(3)
- v2 = count
- count++
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v2].Fiov_base = uintptr(unsafe.Pointer(&_pad))
- if auth_info != 0 {
- v3 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fnamelen)
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = v3
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v3)
- v4 = count
- count++
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v4].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fname
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = libc.Uint64FromInt32(-libc.Int32FromUint16((*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len) & libc.Int32FromInt32(3))
- v5 = count
- count++
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v5].Fiov_base = uintptr(unsafe.Pointer(&_pad))
- v6 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdatalen)
- (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = v6
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v6)
- v7 = count
- count++
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v7].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdata
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = libc.Uint64FromInt32(-libc.Int32FromUint16((*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len) & libc.Int32FromInt32(3))
- v8 = count
- count++
- (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v8].Fiov_base = uintptr(unsafe.Pointer(&_pad))
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- ret = X_xcb_out_send(tls, c, bp+16, count)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- var _pad [3]uint8
- var _endian = uint32(0x01020304)
- func _read_setup(tls *libc.TLS, c uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var setup, setup1, tmp uintptr
- var _ /* newline at bp+0 */ uint8
- _, _, _ = setup, setup1, tmp
- *(*uint8)(unsafe.Pointer(bp)) = uint8('\n')
- /* Read the server response */
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = libc.Xmalloc(tls, uint64(8))
- if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup != 0) {
- return 0
- }
- if libc.Uint64FromInt32(X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, int32(8))) != uint64(8) {
- return 0
- }
- tmp = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Flength)*int32(4))+uint64(8))
- if !(tmp != 0) {
- return 0
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = tmp
- if X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup+uintptr(8), libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Flength)*int32(4)) <= 0 {
- return 0
- }
- /* 0 = failed, 2 = authenticate, 1 = success */
- switch libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fstatus) {
- case 0: /* failed */
- setup = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
- libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_failed_reason(tls, setup), libc.Uint64FromInt32(Xxcb_setup_failed_reason_length(tls, setup)))
- libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint64(1))
- return 0
- case int32(2): /* authenticate */
- setup1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
- libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_authenticate_reason(tls, setup1), libc.Uint64FromInt32(Xxcb_setup_authenticate_reason_length(tls, setup1)))
- libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint64(1))
- return 0
- }
- return int32(1)
- }
- // C documentation
- //
- // /* precondition: there must be something for us to write. */
- func _write_vec(tls *libc.TLS, c uintptr, vector uintptr, count uintptr) (r int32) {
- bp := tls.Alloc(144)
- defer tls.Free(144)
- var cur, i, n int32
- var hdr, v1 uintptr
- var _ /* cmsgbuf at bp+0 */ struct {
- Fbuf [0][80]uint8
- Fcmsghdr Tcmsghdr
- F__ccgo_pad2 [64]byte
- }
- var _ /* msg at bp+80 */ Tmsghdr
- _, _, _, _, _ = cur, hdr, i, n, v1
- n = *(*int32)(unsafe.Pointer(count))
- if n > int32(m_IOV_MAX) {
- n = int32(m_IOV_MAX)
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd != 0 {
- *(*Tmsghdr)(unsafe.Pointer(bp + 80)) = Tmsghdr{
- Fmsg_iov: *(*uintptr)(unsafe.Pointer(vector)),
- Fmsg_iovlen: n,
- Fmsg_control: bp,
- Fmsg_controllen: uint32((libc.Uint64FromInt64(16)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) + libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*libc.Uint64FromInt64(4)),
- }
- if uint64((*Tmsghdr)(unsafe.Pointer(bp+80)).Fmsg_controllen) >= uint64(16) {
- v1 = (*Tmsghdr)(unsafe.Pointer(bp + 80)).Fmsg_control
- } else {
- v1 = libc.UintptrFromInt32(0)
- }
- hdr = v1
- (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len = (*(*Tmsghdr)(unsafe.Pointer(bp + 80))).Fmsg_controllen
- (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level = int32(m_SOL_SOCKET)
- (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type = int32(m_SCM_RIGHTS)
- libc.Xmemcpy(tls, hdr+libc.UintptrFromInt32(1)*16, c+4400+16592, libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*uint64(4))
- n = int32(libc.Xsendmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+80, 0))
- if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
- return int32(1)
- }
- i = 0
- for {
- if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd) {
- break
- }
- libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 4400 + 16592 + uintptr(i)*4)))
- goto _2
- _2:
- ;
- i++
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd = 0
- } else {
- n = int32(libc.Xwritev(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, *(*uintptr)(unsafe.Pointer(vector)), n))
- if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
- return int32(1)
- }
- }
- if n <= 0 {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
- return 0
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written += libc.Uint64FromInt32(n)
- for {
- if !(*(*int32)(unsafe.Pointer(count)) != 0) {
- break
- }
- cur = libc.Int32FromUint64((*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len)
- if cur > n {
- cur = n
- }
- if cur != 0 {
- *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)) + 8)) -= libc.Uint64FromInt32(cur)
- (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base = (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base + uintptr(cur)
- n -= cur
- }
- if (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len != 0 {
- break
- }
- goto _3
- _3:
- ;
- *(*int32)(unsafe.Pointer(count))--
- *(*uintptr)(unsafe.Pointer(vector)) += 16
- }
- if !(*(*int32)(unsafe.Pointer(count)) != 0) {
- *(*uintptr)(unsafe.Pointer(vector)) = uintptr(0)
- }
- return int32(1)
- }
- /* Public interface */
- func Xxcb_get_setup(tls *libc.TLS, c uintptr) (r uintptr) {
- if _is_static_error_conn(tls, c) != 0 {
- return uintptr(unsafe.Pointer(&_xcb_error_setup))
- }
- /* doesn't need locking because it's never written to. */
- return (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
- }
- func Xxcb_get_file_descriptor(tls *libc.TLS, c uintptr) (r int32) {
- if _is_static_error_conn(tls, c) != 0 {
- return -int32(1)
- }
- /* doesn't need locking because it's never written to. */
- return (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
- }
- func Xxcb_connection_has_error(tls *libc.TLS, c uintptr) (r int32) {
- /* doesn't need locking because it's read and written atomically. */
- return (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error
- }
- func Xxcb_connect_to_fd(tls *libc.TLS, fd int32, auth_info uintptr) (r uintptr) {
- var c uintptr
- _ = c
- c = libc.Xcalloc(tls, uint64(1), uint64(21176))
- if !(c != 0) {
- libc.Xclose(tls, fd)
- return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd = fd
- if !(_set_fd_flags(tls, fd) != 0 && libc.Xpthread_mutex_init(tls, c+24, uintptr(0)) == 0 && X_xcb_in_init(tls, c+64) != 0 && X_xcb_out_init(tls, c+4400) != 0 && _write_setup(tls, c, auth_info) != 0 && _read_setup(tls, c) != 0 && X_xcb_ext_init(tls, c) != 0 && X_xcb_xid_init(tls, c) != 0) {
- Xxcb_disconnect(tls, c)
- return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
- }
- return c
- }
- func Xxcb_disconnect(tls *libc.TLS, c uintptr) {
- if c == libc.UintptrFromInt32(0) || _is_static_error_conn(tls, c) != 0 {
- return
- }
- libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)
- /* disallow further sends and receives */
- libc.Xshutdown(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, int32(m_SHUT_RDWR))
- libc.Xclose(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd)
- libc.Xpthread_mutex_destroy(tls, c+24)
- X_xcb_in_destroy(tls, c+64)
- X_xcb_out_destroy(tls, c+4400)
- X_xcb_ext_destroy(tls, c)
- X_xcb_xid_destroy(tls, c)
- libc.Xfree(tls, c)
- }
- /* Private interface */
- func X_xcb_conn_shutdown(tls *libc.TLS, c uintptr, err int32) {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error = err
- }
- // C documentation
- //
- // /* Return connection error state.
- // * To make thread-safe, I need a seperate static
- // * variable for every possible error.
- // * has_error is the first field in xcb_connection_t, so just
- // * return a casted int here; checking has_error (and only
- // * has_error) will be safe.
- // */
- func X_xcb_conn_ret_error(tls *libc.TLS, err int32) (r uintptr) {
- switch err {
- case int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT):
- return uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er))
- case int32(m_XCB_CONN_CLOSED_PARSE_ERR):
- return uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er))
- case int32(m_XCB_CONN_CLOSED_INVALID_SCREEN):
- return uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er))
- case int32(m_XCB_CONN_ERROR):
- fallthrough
- default:
- return uintptr(unsafe.Pointer(&_xcb_con_error))
- }
- return r
- }
- func X_xcb_conn_wait(tls *libc.TLS, c uintptr, cond uintptr, vector uintptr, count uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var may_read, ret, v1 int32
- var p2 uintptr
- var _ /* fd at bp+0 */ Tpollfd
- _, _, _, _ = may_read, ret, v1, p2
- /* If the thing I should be doing is already being done, wait for it. */
- if count != 0 {
- v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting
- } else {
- v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading
- }
- if v1 != 0 {
- libc.Xpthread_cond_wait(tls, cond, c+24)
- return int32(1)
- }
- libc.Xmemset(tls, bp, 0, uint64(8))
- (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
- (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading++
- if count != 0 {
- p2 = bp + 4
- *(*int16)(unsafe.Pointer(p2)) = int16(int32(*(*int16)(unsafe.Pointer(p2))) | libc.Int32FromInt32(m_POLLOUT))
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting++
- }
- libc.Xpthread_mutex_unlock(tls, c+24)
- for cond1 := true; cond1; cond1 = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
- ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
- /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
- * it as if it failed. */
- if ret >= 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents) & ^int32((*(*Tpollfd)(unsafe.Pointer(bp))).Fevents) != 0 {
- ret = -int32(1)
- break
- }
- }
- if ret < 0 {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
- ret = 0
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- if ret != 0 {
- /* The code allows two threads to call select()/poll() at the same time.
- * First thread just wants to read, a second thread wants to write, too.
- * We have to make sure that we don't steal the reading thread's reply
- * and let it get stuck in select()/poll().
- * So a thread may read if either:
- * - There is no other thread that wants to read (the above situation
- * did not occur).
- * - It is the reading thread (above situation occurred).
- */
- may_read = libc.BoolInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == int32(1) || !(count != 0))
- if may_read != 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLIN) != 0 {
- ret = libc.BoolInt32(ret != 0 && X_xcb_in_read(tls, c) != 0)
- }
- if int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLOUT) != 0 {
- ret = libc.BoolInt32(ret != 0 && _write_vec(tls, c, vector, count) != 0)
- }
- }
- if count != 0 {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting--
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading--
- return ret
- }
- func Xxcb_total_read(tls *libc.TLS, c uintptr) (r Tuint64_t) {
- var n Tuint64_t
- _ = n
- if Xxcb_connection_has_error(tls, c) != 0 {
- return uint64(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read
- libc.Xpthread_mutex_unlock(tls, c+24)
- return n
- }
- func Xxcb_total_written(tls *libc.TLS, c uintptr) (r Tuint64_t) {
- var n Tuint64_t
- _ = n
- if Xxcb_connection_has_error(tls, c) != 0 {
- return uint64(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written
- libc.Xpthread_mutex_unlock(tls, c+24)
- return n
- }
- const m_SEEK_CUR = 1
- const m_SEEK_END = 2
- const m_SEEK_SET = 0
- type Txcb_extension_t = struct {
- Fname uintptr
- Fglobal_id int32
- }
- type Txcb_extension_t1 = struct {
- Fname uintptr
- Fglobal_id int32
- }
- type Txcb_protocol_request_t = struct {
- Fcount Tsize_t
- Fext uintptr
- Fopcode Tuint8_t
- Fisvoid Tuint8_t
- }
- type _xcb_send_request_flags_t = int32
- const _XCB_REQUEST_CHECKED = 1
- const _XCB_REQUEST_RAW = 2
- const _XCB_REQUEST_DISCARD_REPLY = 4
- const _XCB_REQUEST_REPLY_FDS = 8
- /*
- * This file generated automatically from bigreq.xml by c_client.py.
- * Edit at your peril.
- */
- /**
- * @defgroup XCB_BigRequests_API XCB BigRequests API
- * @brief BigRequests XCB Protocol Implementation.
- * @{
- **/
- /**
- * @}
- */
- func _send_request(tls *libc.TLS, c uintptr, isvoid int32, workaround _workarounds, flags int32, vector uintptr, count int32) {
- var p1 uintptr
- _ = p1
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest++
- if !(isvoid != 0) {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
- }
- if workaround != int32(_WORKAROUND_NONE) || flags != 0 {
- X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest, workaround, flags)
- }
- for count != 0 && libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)+(*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len <= uint64(16384) {
- libc.Xmemcpy(tls, c+4400+124+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len), (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base, (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
- p1 = c + 4400 + 16508
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(0)
- vector += 16
- count--
- }
- if !(count != 0) {
- return
- }
- vector -= 16
- count++
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = c + 4400 + 124
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
- X_xcb_out_send(tls, c, vector, count)
- }
- func _send_sync(tls *libc.TLS, c uintptr) {
- bp := tls.Alloc(32)
- defer tls.Free(32)
- var _ /* vector at bp+0 */ [2]Tiovec
- (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base = uintptr(unsafe.Pointer(&_sync_req))
- (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len = uint64(4)
- _send_request(tls, c, 0, int32(_WORKAROUND_NONE), int32(_XCB_REQUEST_DISCARD_REPLY), bp+uintptr(1)*16, int32(1))
- }
- var _sync_req = *(*struct {
- Fpacket [0]Tuint32_t
- Ffields struct {
- Fmajor Tuint8_t
- Fpad Tuint8_t
- Flen1 Tuint16_t
- }
- })(unsafe.Pointer(&struct {
- Fmajor uint8
- Fpad uint8
- Flen1 uint16
- }{
- Fmajor: uint8(43),
- Flen1: uint16(1),
- }))
- func _get_socket_back(tls *libc.TLS, c uintptr) {
- for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving != 0 {
- libc.Xpthread_cond_wait(tls, c+4400+56, c+24)
- }
- if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0) {
- return
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = int32(1)
- libc.Xpthread_mutex_unlock(tls, c+24)
- (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket})))(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure)
- libc.Xpthread_mutex_lock(tls, c+24)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = 0
- libc.Xpthread_cond_broadcast(tls, c+4400+56)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = uintptr(0)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = uintptr(0)
- X_xcb_in_replies_done(tls, c)
- }
- func _prepare_socket_request(tls *libc.TLS, c uintptr) {
- /* We're about to append data to out.queue, so we need to
- * atomically test for an external socket owner *and* some other
- * thread currently writing.
- *
- * If we have an external socket owner, we have to get the socket back
- * before we can use it again.
- *
- * If some other thread is writing to the socket, we assume it's
- * writing from out.queue, and so we can't stick data there.
- *
- * We satisfy this condition by first calling get_socket_back
- * (which may drop the lock, but will return when XCB owns the
- * socket again) and then checking for another writing thread and
- * escaping the loop if we're ready to go.
- */
- for {
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return
- }
- _get_socket_back(tls, c)
- if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0) {
- break
- }
- libc.Xpthread_cond_wait(tls, c+4400, c+24)
- goto _1
- _1:
- }
- }
- /* Public interface */
- func Xxcb_prefetch_maximum_request_length(tls *libc.TLS, c uintptr) {
- var ext uintptr
- _ = ext
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return
- }
- libc.Xpthread_mutex_lock(tls, c+4400+16544)
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_NONE) {
- ext = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_big_requests_id)))
- if ext != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext)).Fpresent != 0 {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_COOKIE)
- *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16588)) = Xxcb_big_requests_enable(tls, c)
- } else {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
- *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
- }
- }
- libc.Xpthread_mutex_unlock(tls, c+4400+16544)
- }
- func Xxcb_get_maximum_request_length(tls *libc.TLS, c uintptr) (r1 Tuint32_t) {
- var r uintptr
- _ = r
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uint32(0)
- }
- Xxcb_prefetch_maximum_request_length(tls, c)
- libc.Xpthread_mutex_lock(tls, c+4400+16544)
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_COOKIE) {
- r = Xxcb_big_requests_enable_reply(tls, c, *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16588)), uintptr(0))
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
- if r != 0 {
- *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = (*Txcb_big_requests_enable_reply_t)(unsafe.Pointer(r)).Fmaximum_request_length
- libc.Xfree(tls, r)
- } else {
- *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
- }
- }
- libc.Xpthread_mutex_unlock(tls, c+4400+16544)
- return *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588))
- }
- func _close_fds(tls *libc.TLS, fds uintptr, num_fds uint32) {
- var index uint32
- _ = index
- index = uint32(0)
- for {
- if !(index < num_fds) {
- break
- }
- libc.Xclose(tls, *(*int32)(unsafe.Pointer(fds + uintptr(index)*4)))
- goto _1
- _1:
- ;
- index++
- }
- }
- func _send_fds(tls *libc.TLS, c uintptr, fds uintptr, num_fds uint32) {
- var v1 int32
- var v2 uintptr
- _, _ = v1, v2
- /* Calling _xcb_out_flush_to() can drop the iolock and wait on a condition
- * variable if another thread is currently writing (c->out.writing > 0).
- * This call waits for writers to be done and thus _xcb_out_flush_to() will
- * do the work itself (in which case we are a writer and
- * prepare_socket_request() will wait for us to be done if another threads
- * tries to send fds, too). Thanks to this, we can atomically write out FDs.
- */
- _prepare_socket_request(tls, c)
- for num_fds > uint32(0) {
- for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) && !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
- /* XXX: if c->out.writing > 0, this releases the iolock and
- * potentially allows other threads to interfere with their own fds.
- */
- X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) {
- /* We need some request to send FDs with */
- X_xcb_out_send_sync(tls, c)
- }
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- break
- }
- v2 = c + 4400 + 16592 + 64
- v1 = *(*int32)(unsafe.Pointer(v2))
- *(*int32)(unsafe.Pointer(v2))++
- *(*int32)(unsafe.Pointer(c + 4400 + 16592 + uintptr(v1)*4)) = *(*int32)(unsafe.Pointer(fds))
- fds += 4
- num_fds--
- }
- _close_fds(tls, fds, num_fds)
- }
- func Xxcb_send_request_with_fds64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r Tuint64_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var extension uintptr
- var i uint32
- var longlen, v2 Tsize_t
- var request Tuint64_t
- var shortlen Tuint16_t
- var veclen int32
- var workaround _workarounds
- var v3 uint64
- var _ /* prefix at bp+0 */ [2]Tuint32_t
- _, _, _, _, _, _, _, _, _ = extension, i, longlen, request, shortlen, veclen, workaround, v2, v3
- veclen = libc.Int32FromUint64((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount)
- workaround = int32(_WORKAROUND_NONE)
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- _close_fds(tls, fds, num_fds)
- return uint64(0)
- }
- if !(flags&int32(_XCB_REQUEST_RAW) != 0) {
- shortlen = uint16(0)
- longlen = uint64(0)
- /* set the major opcode, and the minor opcode for extensions */
- if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 {
- extension = Xxcb_get_extension_data(tls, c, (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)
- if !(extension != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fpresent != 0) {
- _close_fds(tls, fds, num_fds)
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED))
- return uint64(0)
- }
- *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fmajor_opcode
- *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
- } else {
- *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
- }
- /* put together the length field, possibly using BIGREQUESTS */
- i = uint32(0)
- for {
- if !(uint64(i) < (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount) {
- break
- }
- longlen += (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_len
- if !((*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base != 0) {
- (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base = uintptr(unsafe.Pointer(&_pad1))
- }
- goto _1
- _1:
- ;
- i++
- }
- longlen >>= uint64(2)
- if longlen <= uint64((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length) {
- /* we don't need BIGREQUESTS. */
- shortlen = uint16(longlen)
- longlen = uint64(0)
- } else {
- if longlen > uint64(Xxcb_get_maximum_request_length(tls, c)) {
- _close_fds(tls, fds, num_fds)
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_REQ_LEN_EXCEED))
- return uint64(0) /* server can't take this; maybe need BIGREQUESTS? */
- }
- }
- /* set the length field. */
- *(*Tuint16_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*2)) = shortlen
- if !(shortlen != 0) {
- (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[0] = *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base))
- longlen++
- v2 = longlen
- (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] = uint32(v2)
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr(1)*4
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len -= uint64(4)
- vector -= 16
- veclen++
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = bp
- (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(8)
- }
- }
- flags &= ^int32(_XCB_REQUEST_RAW)
- /* do we need to work around the X server bug described in glx.xml? */
- /* XXX: GetFBConfigs won't use BIG-REQUESTS in any sane
- * configuration, but that should be handled here anyway. */
- if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 && !((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid != 0) && !(libc.Xstrcmp(tls, (*Txcb_extension_t)(unsafe.Pointer((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)).Fname, __ccgo_ts) != 0) && (libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode) == int32(17) && *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*4)) == uint32(0x10004) || libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode) == int32(21)) {
- workaround = int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG)
- }
- /* get a sequence number and arrange for delivery. */
- libc.Xpthread_mutex_lock(tls, c+24)
- /* send FDs before establishing a good request number, because this might
- * call send_sync(), too
- */
- _send_fds(tls, c, fds, num_fds)
- _prepare_socket_request(tls, c)
- /* send GetInputFocus (sync_req) when 64k-2 requests have been sent without
- * a reply.
- * Also send sync_req (could use NoOp) at 32-bit wrap to avoid having
- * applications see sequence 0 as that is used to indicate
- * an error in sending the request
- */
- for (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected+libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(16))-uint64(2) || uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+libc.Uint64FromInt32(1)) == uint32(0) {
- _send_sync(tls, c)
- _prepare_socket_request(tls, c)
- }
- _send_request(tls, c, libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid), workaround, flags, vector, veclen)
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- v3 = uint64(0)
- } else {
- v3 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
- }
- request = v3
- libc.Xpthread_mutex_unlock(tls, c+24)
- return request
- }
- var _pad1 [3]uint8
- // C documentation
- //
- // /* request number are actually uint64_t internally but keep API compat with unsigned int */
- func Xxcb_send_request_with_fds(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r uint32) {
- return uint32(Xxcb_send_request_with_fds64(tls, c, flags, vector, req, num_fds, fds))
- }
- func Xxcb_send_request64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r Tuint64_t) {
- return Xxcb_send_request_with_fds64(tls, c, flags, vector, req, uint32(0), libc.UintptrFromInt32(0))
- }
- // C documentation
- //
- // /* request number are actually uint64_t internally but keep API compat with unsigned int */
- func Xxcb_send_request(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r uint32) {
- return uint32(Xxcb_send_request64(tls, c, flags, vector, req))
- }
- func Xxcb_send_fd(tls *libc.TLS, c uintptr, fd int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var _ /* fds at bp+0 */ [1]int32
- *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{
- 0: fd,
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- libc.Xclose(tls, fd)
- return
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- _send_fds(tls, c, bp, uint32(1))
- libc.Xpthread_mutex_unlock(tls, c+24)
- }
- func Xxcb_take_socket(tls *libc.TLS, c uintptr, return_socket uintptr, closure uintptr, flags int32, sent uintptr) (r int32) {
- var ret int32
- _ = ret
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return 0
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- _get_socket_back(tls, c)
- /* _xcb_out_flush may drop the iolock allowing other threads to
- * write requests, so keep flushing until we're done
- */
- for cond := true; cond; cond = ret != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest != (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written {
- ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
- }
- if ret != 0 {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = return_socket
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = closure
- if flags != 0 {
- /* c->out.request + 1 will be the first request sent by the external
- * socket owner. If the socket is returned before this request is sent
- * it will be detected in _xcb_in_replies_done and this pending_reply
- * will be discarded.
- */
- X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+uint64(1), int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER), flags)
- }
- *(*Tuint64_t)(unsafe.Pointer(sent)) = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
- }
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- func Xxcb_writev(tls *libc.TLS, c uintptr, vector uintptr, count int32, requests Tuint64_t) (r int32) {
- var ret int32
- _ = ret
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return 0
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest += requests
- ret = X_xcb_out_send(tls, c, vector, count)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- func Xxcb_flush(tls *libc.TLS, c uintptr) (r int32) {
- var ret int32
- _ = ret
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return 0
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- /* Private interface */
- func X_xcb_out_init(tls *libc.TLS, out uintptr) (r int32) {
- if libc.Xpthread_cond_init(tls, out+56, uintptr(0)) != 0 {
- return 0
- }
- (*T_xcb_out)(unsafe.Pointer(out)).Freturn_socket = uintptr(0)
- (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_closure = uintptr(0)
- (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_moving = 0
- if libc.Xpthread_cond_init(tls, out, uintptr(0)) != 0 {
- return 0
- }
- (*T_xcb_out)(unsafe.Pointer(out)).Fwriting = 0
- (*T_xcb_out)(unsafe.Pointer(out)).Fqueue_len = 0
- (*T_xcb_out)(unsafe.Pointer(out)).Frequest = uint64(0)
- (*T_xcb_out)(unsafe.Pointer(out)).Frequest_written = uint64(0)
- (*T_xcb_out)(unsafe.Pointer(out)).Frequest_expected_written = uint64(0)
- if libc.Xpthread_mutex_init(tls, out+16544, uintptr(0)) != 0 {
- return 0
- }
- (*T_xcb_out)(unsafe.Pointer(out)).Fmaximum_request_length_tag = int32(_LAZY_NONE)
- return int32(1)
- }
- func X_xcb_out_destroy(tls *libc.TLS, out uintptr) {
- libc.Xpthread_mutex_destroy(tls, out+16544)
- libc.Xpthread_cond_destroy(tls, out)
- libc.Xpthread_cond_destroy(tls, out+56)
- }
- func X_xcb_out_send(tls *libc.TLS, c uintptr, _vector uintptr, _count int32) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*uintptr)(unsafe.Pointer(bp)) = _vector
- *(*int32)(unsafe.Pointer(bp + 8)) = _count
- var ret int32
- _ = ret
- ret = int32(1)
- for ret != 0 && *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
- ret = X_xcb_conn_wait(tls, c, c+4400, bp, bp+8)
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected
- libc.Xpthread_cond_broadcast(tls, c+4400)
- X_xcb_in_wake_up_next_reader(tls, c)
- return ret
- }
- func X_xcb_out_send_sync(tls *libc.TLS, c uintptr) {
- _prepare_socket_request(tls, c)
- _send_sync(tls, c)
- }
- func X_xcb_out_flush_to(tls *libc.TLS, c uintptr, request Tuint64_t) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var _ /* vec at bp+0 */ Tiovec
- if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written-request) >= 0 {
- return int32(1)
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len != 0 {
- (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_base = c + 4400 + 124
- (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
- return X_xcb_out_send(tls, c, bp, int32(1))
- }
- for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0 {
- libc.Xpthread_cond_wait(tls, c+4400, c+24)
- }
- return int32(1)
- }
- const m_INT32_MAX1 = 2147483647
- const m_MSG_CTRUNC1 = 8
- const m_MSG_TRUNC1 = 32
- const m_POLLOUT1 = 0x004
- const m_UINT32_MAX1 = 4294967295
- const m_XCB_ERROR = 0
- const m_XCB_REPLY = 1
- const m_XCB_XGE_EVENT = 35
- type Txcb_special_event_t = struct {
- Fnext uintptr
- Fextension Tuint8_t
- Feid Tuint32_t
- Fstamp uintptr
- Fevents uintptr
- Fevents_tail uintptr
- Fspecial_event_cond Tpthread_cond_t
- }
- type Txcb_special_event = Txcb_special_event_t
- type Tevent_list = struct {
- Fevent uintptr
- Fnext uintptr
- }
- type Treply_list = struct {
- Freply uintptr
- Fnext uintptr
- }
- type Tpending_reply = struct {
- Ffirst_request Tuint64_t
- Flast_request Tuint64_t
- Fworkaround _workarounds
- Fflags int32
- Fnext uintptr
- }
- type Treader_list = struct {
- Frequest Tuint64_t
- Fdata uintptr
- Fnext uintptr
- }
- type Tspecial_list = struct {
- Fse uintptr
- Fnext uintptr
- }
- func _remove_finished_readers(tls *libc.TLS, prev_reader uintptr, completed Tuint64_t) {
- for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-completed) <= 0 {
- /* If you don't have what you're looking for now, you never
- * will. Wake up and leave me alone. */
- libc.Xpthread_cond_signal(tls, (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fdata)
- *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
- }
- }
- func _read_fds(tls *libc.TLS, c uintptr, fds uintptr, nfd int32) (r int32) {
- var ifds uintptr
- var infd int32
- _, _ = ifds, infd
- ifds = c + 64 + 4256 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4
- infd = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd - (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
- if nfd > infd {
- return 0
- }
- libc.Xmemcpy(tls, fds, ifds, libc.Uint64FromInt32(nfd)*uint64(4))
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd += nfd
- return int32(1)
- }
- type Txcb_ge_special_event_t = struct {
- Fresponse_type Tuint8_t
- Fextension Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fevtype Tuint16_t
- Fpad0 [2]Tuint8_t
- Feid Tuint32_t
- Fpad1 [16]Tuint8_t
- }
- func _event_special(tls *libc.TLS, c uintptr, event uintptr) (r int32) {
- var ges, special_event uintptr
- _, _ = ges, special_event
- ges = (*Tevent_list)(unsafe.Pointer(event)).Fevent
- /* Special events are always XGE events */
- if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fresponse_type)&int32(0x7f) != int32(m_XCB_XGE_EVENT) {
- return 0
- }
- special_event = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
- for {
- if !(special_event != 0) {
- break
- }
- if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fextension) == libc.Int32FromUint8((*Txcb_special_event)(unsafe.Pointer(special_event)).Fextension) && (*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Feid == (*Txcb_special_event)(unsafe.Pointer(special_event)).Feid {
- *(*uintptr)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail)) = event
- (*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail = event + 8
- if (*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp != 0 {
- *(*Tuint32_t)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp))++
- }
- libc.Xpthread_cond_signal(tls, special_event+40)
- return int32(1)
- }
- goto _1
- _1:
- ;
- special_event = (*Txcb_special_event)(unsafe.Pointer(special_event)).Fnext
- }
- return 0
- }
- func _read_packet(tls *libc.TLS, c uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var buf, cur, event, oldpend, p, pend uintptr
- var bufsize, eventlength, lastread, length, new_length Tuint64_t
- var nfd int32
- var v1 uint64
- var _ /* genrep at bp+0 */ Txcb_generic_reply_t
- _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, bufsize, cur, event, eventlength, lastread, length, new_length, nfd, oldpend, p, pend, v1
- length = uint64(32)
- eventlength = uint64(0) /* length after first 32 bytes for GenericEvents */
- nfd = 0
- pend = uintptr(0)
- /* Wait for there to be enough data for us to read a whole packet */
- if libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len) < length {
- return 0
- }
- /* Get the response type, length, and sequence number. */
- libc.Xmemcpy(tls, bp, c+64+52, uint64(8))
- /* Compute 32-bit sequence number of this packet. */
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) != int32(m_XCB_KEYMAP_NOTIFY) {
- lastread = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read = lastread&uint64(0xffffffffffff0000) | uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fsequence)
- if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-lastread) < 0 {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read += uint64(0x10000)
- }
- if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) > 0 {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read != lastread {
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
- X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, lastread, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = uintptr(0)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read - uint64(1)
- }
- for (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies != 0 && (*Tpending_reply1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies)).Fworkaround != int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) && libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies)).Flast_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
- oldpend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies = (*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext
- if !((*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext != 0) {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = c + 64 + 4240
- }
- libc.Xfree(tls, oldpend)
- }
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
- }
- _remove_finished_readers(tls, c+64+4224, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed)
- }
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR || libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
- pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
- if pend != 0 && !(libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) <= 0 && ((*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) || libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Tpending_reply)(unsafe.Pointer(pend)).Flast_request) <= 0)) {
- pend = uintptr(0)
- }
- }
- /* For reply packets, check that the entire packet is available. */
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
- if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG) {
- p = c + 64 + 52
- new_length = uint64(*(*Tuint32_t)(unsafe.Pointer(p + 2*4))) * uint64(*(*Tuint32_t)(unsafe.Pointer(p + 3*4)))
- if new_length >= uint64(libc.Uint32FromUint32(0xffffffff)/libc.Uint32FromUint32(16)) {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
- return 0
- }
- (*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength = uint32(new_length * libc.Uint64FromUint64(2))
- }
- length += uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
- /* XXX a bit of a hack -- we "know" that all FD replys place
- * the number of fds in the pad0 byte */
- if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_REPLY_FDS) != 0 {
- nfd = libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fpad0)
- }
- }
- /* XGE events may have sizes > 32 */
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) == int32(m_XCB_XGE_EVENT) {
- eventlength = uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
- }
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
- v1 = uint64(0)
- } else {
- v1 = uint64(4)
- }
- bufsize = length + eventlength + libc.Uint64FromInt32(nfd)*uint64(4) + v1
- if bufsize < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT32_MAX1)) {
- buf = libc.Xmalloc(tls, bufsize)
- } else {
- buf = libc.UintptrFromInt32(0)
- }
- if !(buf != 0) {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
- return 0
- }
- if X_xcb_in_read_block(tls, c, buf, libc.Int32FromUint64(length)) <= 0 {
- libc.Xfree(tls, buf)
- return 0
- }
- /* pull in XGE event data if available, append after event struct */
- if eventlength != 0 {
- if X_xcb_in_read_block(tls, c, buf+1*36, libc.Int32FromUint64(eventlength)) <= 0 {
- libc.Xfree(tls, buf)
- return 0
- }
- }
- if nfd != 0 {
- if !(_read_fds(tls, c, buf+uintptr(length), nfd) != 0) {
- libc.Xfree(tls, buf)
- return 0
- }
- }
- if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_DISCARD_REPLY) != 0 {
- libc.Xfree(tls, buf)
- return int32(1)
- }
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) != int32(m_XCB_REPLY) {
- (*Txcb_generic_event_t)(unsafe.Pointer(buf)).Ffull_sequence = uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read)
- }
- /* reply, or checked error */
- if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) || libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR && pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_CHECKED) != 0 {
- cur = libc.Xmalloc(tls, uint64(16))
- if !(cur != 0) {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
- libc.Xfree(tls, buf)
- return 0
- }
- (*Treply_list)(unsafe.Pointer(cur)).Freply = buf
- (*Treply_list)(unsafe.Pointer(cur)).Fnext = uintptr(0)
- *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail)) = cur
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = cur + 8
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 && (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Frequest == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read {
- libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
- }
- return int32(1)
- }
- /* event, or unchecked error */
- event = libc.Xmalloc(tls, uint64(16))
- if !(event != 0) {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
- libc.Xfree(tls, buf)
- return 0
- }
- (*Tevent_list)(unsafe.Pointer(event)).Fevent = buf
- (*Tevent_list)(unsafe.Pointer(event)).Fnext = uintptr(0)
- if !(_event_special(tls, c, event) != 0) {
- *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail)) = event
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = event + 8
- libc.Xpthread_cond_signal(tls, c+64)
- }
- return int32(1) /* I have something for you... */
- }
- func _get_event(tls *libc.TLS, c uintptr) (r uintptr) {
- var cur, ret uintptr
- _, _ = cur, ret
- cur = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents
- if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents != 0) {
- return uintptr(0)
- }
- ret = (*Tevent_list)(unsafe.Pointer(cur)).Fevent
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents = (*Tevent_list)(unsafe.Pointer(cur)).Fnext
- if !((*Tevent_list)(unsafe.Pointer(cur)).Fnext != 0) {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = c + 64 + 4208
- }
- libc.Xfree(tls, cur)
- return ret
- }
- func _free_reply_list(tls *libc.TLS, head uintptr) {
- var cur uintptr
- _ = cur
- for head != 0 {
- cur = head
- head = (*Treply_list)(unsafe.Pointer(cur)).Fnext
- libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(cur)).Freply)
- libc.Xfree(tls, cur)
- }
- }
- func _read_block(tls *libc.TLS, fd int32, buf uintptr, len1 Tintptr_t) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var done, ret int32
- var _ /* pfd at bp+0 */ Tpollfd
- _, _ = done, ret
- done = 0
- for int64(done) < len1 {
- ret = int32(libc.Xrecv(tls, fd, buf+uintptr(done), libc.Uint64FromInt64(len1-int64(done)), 0))
- if ret > 0 {
- done += ret
- }
- if ret < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
- (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = fd
- (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
- (*(*Tpollfd)(unsafe.Pointer(bp))).Frevents = 0
- for cond := true; cond; cond = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
- ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
- }
- }
- if ret <= 0 {
- return ret
- }
- }
- return int32(len1)
- }
- func _poll_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
- var head uintptr
- _ = head
- /* If an error occurred when issuing the request, fail immediately. */
- if !(request != 0) {
- head = uintptr(0)
- } else {
- if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) < 0 {
- head = X_xcb_map_remove(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request)
- if head != 0 && (*Treply_list)(unsafe.Pointer(head)).Fnext != 0 {
- X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request, (*Treply_list)(unsafe.Pointer(head)).Fnext)
- }
- } else {
- if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
- head = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = (*Treply_list)(unsafe.Pointer(head)).Fnext
- if !((*Treply_list)(unsafe.Pointer(head)).Fnext != 0) {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
- }
- } else {
- if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed {
- head = uintptr(0)
- } else {
- return 0
- }
- }
- }
- }
- if error1 != 0 {
- *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
- }
- *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
- if head != 0 {
- if libc.Int32FromUint8((*Txcb_generic_reply_t)(unsafe.Pointer((*Treply_list)(unsafe.Pointer(head)).Freply)).Fresponse_type) == m_XCB_ERROR {
- if error1 != 0 {
- *(*uintptr)(unsafe.Pointer(error1)) = (*Treply_list)(unsafe.Pointer(head)).Freply
- } else {
- libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(head)).Freply)
- }
- } else {
- *(*uintptr)(unsafe.Pointer(reply)) = (*Treply_list)(unsafe.Pointer(head)).Freply
- }
- libc.Xfree(tls, head)
- }
- return int32(1)
- }
- func _insert_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr, request Tuint64_t, cond uintptr) {
- for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-request) <= 0 {
- prev_reader = *(*uintptr)(unsafe.Pointer(prev_reader)) + 16
- }
- (*Treader_list)(unsafe.Pointer(reader)).Frequest = request
- (*Treader_list)(unsafe.Pointer(reader)).Fdata = cond
- (*Treader_list)(unsafe.Pointer(reader)).Fnext = *(*uintptr)(unsafe.Pointer(prev_reader))
- *(*uintptr)(unsafe.Pointer(prev_reader)) = reader
- }
- func _remove_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr) {
- for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-(*Treader_list)(unsafe.Pointer(reader)).Frequest) <= 0 {
- if *(*uintptr)(unsafe.Pointer(prev_reader)) == reader {
- *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
- break
- }
- }
- }
- func _insert_special(tls *libc.TLS, prev_special uintptr, special uintptr, se uintptr) {
- (*Tspecial_list)(unsafe.Pointer(special)).Fse = se
- (*Tspecial_list)(unsafe.Pointer(special)).Fnext = *(*uintptr)(unsafe.Pointer(prev_special))
- *(*uintptr)(unsafe.Pointer(prev_special)) = special
- }
- func _remove_special(tls *libc.TLS, prev_special uintptr, special uintptr) {
- for *(*uintptr)(unsafe.Pointer(prev_special)) != 0 {
- if *(*uintptr)(unsafe.Pointer(prev_special)) == special {
- *(*uintptr)(unsafe.Pointer(prev_special)) = (*Tspecial_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_special)))).Fnext
- break
- }
- prev_special = *(*uintptr)(unsafe.Pointer(prev_special)) + 8
- }
- }
- func _wait_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var _ /* cond at bp+8 */ Tpthread_cond_t
- var _ /* reader at bp+56 */ Treader_list
- var _ /* ret at bp+0 */ uintptr
- *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- /* If this request has not been written yet, write it. */
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 || X_xcb_out_flush_to(tls, c, request) != 0 {
- *(*Tpthread_cond_t)(unsafe.Pointer(bp + 8)) = Tpthread_cond_t{}
- *(*int32)(unsafe.Pointer(bp + 8)) = 0
- _insert_reader(tls, c+64+4224, bp+56, request, bp+8)
- for !(_poll_for_reply(tls, c, request, bp, e) != 0) {
- if !(X_xcb_conn_wait(tls, c, bp+8, uintptr(0), uintptr(0)) != 0) {
- break
- }
- }
- _remove_reader(tls, c+64+4224, bp+56)
- libc.Xpthread_cond_destroy(tls, bp+8)
- }
- X_xcb_in_wake_up_next_reader(tls, c)
- return *(*uintptr)(unsafe.Pointer(bp))
- }
- func _widen(tls *libc.TLS, c uintptr, request uint32) (r Tuint64_t) {
- var widened_request Tuint64_t
- _ = widened_request
- widened_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest&uint64(0xffffffff00000000) | uint64(request)
- if widened_request > (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest {
- widened_request -= libc.Uint64FromUint64(1) << libc.Int32FromInt32(32)
- }
- return widened_request
- }
- /* Public interface */
- func Xxcb_wait_for_reply(tls *libc.TLS, c uintptr, request uint32, e uintptr) (r uintptr) {
- var ret uintptr
- _ = ret
- if e != 0 {
- *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uintptr(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- ret = _wait_for_reply(tls, c, _widen(tls, c, request), e)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- func Xxcb_wait_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
- var ret uintptr
- _ = ret
- if e != 0 {
- *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uintptr(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- ret = _wait_for_reply(tls, c, request, e)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- func Xxcb_get_reply_fds(tls *libc.TLS, c uintptr, reply uintptr, reply_size Tsize_t) (r uintptr) {
- return reply + uintptr(reply_size)
- }
- func _insert_pending_discard(tls *libc.TLS, c uintptr, prev_next uintptr, seq Tuint64_t) {
- var pend uintptr
- _ = pend
- pend = libc.Xmalloc(tls, uint64(32))
- if !(pend != 0) {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
- return
- }
- (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = seq
- (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = seq
- (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = 0
- (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = int32(_XCB_REQUEST_DISCARD_REPLY)
- (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = *(*uintptr)(unsafe.Pointer(prev_next))
- *(*uintptr)(unsafe.Pointer(prev_next)) = pend
- if !((*Tpending_reply)(unsafe.Pointer(pend)).Fnext != 0) {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
- }
- }
- func _discard_reply(tls *libc.TLS, c uintptr, request Tuint64_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var prev_pend uintptr
- var _ /* reply at bp+0 */ uintptr
- _ = prev_pend
- /* Free any replies or errors that we've already read. Stop if
- * xcb_wait_for_reply would block or we've run out of replies. */
- for _poll_for_reply(tls, c, request, bp, uintptr(0)) != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp)))
- }
- /* If we've proven there are no more responses coming, we're done. */
- if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
- return
- }
- /* Walk the list of pending requests. Mark the first match for deletion. */
- prev_pend = c + 64 + 4240
- for {
- if !(*(*uintptr)(unsafe.Pointer(prev_pend)) != 0) {
- break
- }
- if libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request-request) > 0 {
- break
- }
- if (*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request == request {
- /* Pending reply found. Mark for discard: */
- *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)) + 20)) |= int32(_XCB_REQUEST_DISCARD_REPLY)
- return
- }
- goto _1
- _1:
- ;
- prev_pend = *(*uintptr)(unsafe.Pointer(prev_pend)) + 24
- }
- /* Pending reply not found (likely due to _unchecked request). Create one: */
- _insert_pending_discard(tls, c, prev_pend, request)
- }
- func Xxcb_discard_reply(tls *libc.TLS, c uintptr, sequence uint32) {
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return
- }
- /* If an error occurred when issuing the request, fail immediately. */
- if !(sequence != 0) {
- return
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- _discard_reply(tls, c, _widen(tls, c, sequence))
- libc.Xpthread_mutex_unlock(tls, c+24)
- }
- func Xxcb_discard_reply64(tls *libc.TLS, c uintptr, sequence Tuint64_t) {
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return
- }
- /* If an error occurred when issuing the request, fail immediately. */
- if !(sequence != 0) {
- return
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- _discard_reply(tls, c, sequence)
- libc.Xpthread_mutex_unlock(tls, c+24)
- }
- func Xxcb_poll_for_reply(tls *libc.TLS, c uintptr, request uint32, reply uintptr, error1 uintptr) (r int32) {
- var ret int32
- _ = ret
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
- if error1 != 0 {
- *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
- }
- return int32(1) /* would not block */
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
- if !(ret != 0) && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == 0 && X_xcb_in_read(tls, c) != 0 { /* _xcb_in_read shuts down the connection on error */
- ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
- }
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- func Xxcb_poll_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
- var ret int32
- _ = ret
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
- if error1 != 0 {
- *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
- }
- return int32(1) /* would not block */
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- ret = _poll_for_reply(tls, c, request, reply, error1)
- if !(ret != 0) && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == 0 && X_xcb_in_read(tls, c) != 0 { /* _xcb_in_read shuts down the connection on error */
- ret = _poll_for_reply(tls, c, request, reply, error1)
- }
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- func Xxcb_wait_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
- var ret, v1 uintptr
- _, _ = ret, v1
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uintptr(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- /* get_event returns 0 on empty list. */
- for {
- v1 = _get_event(tls, c)
- ret = v1
- if !!(v1 != 0) {
- break
- }
- if !(X_xcb_conn_wait(tls, c, c+64, uintptr(0), uintptr(0)) != 0) {
- break
- }
- }
- X_xcb_in_wake_up_next_reader(tls, c)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return ret
- }
- func _poll_for_next_event(tls *libc.TLS, c uintptr, queued int32) (r uintptr) {
- var ret uintptr
- _ = ret
- ret = uintptr(0)
- if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
- libc.Xpthread_mutex_lock(tls, c+24)
- /* FIXME: follow X meets Z architecture changes. */
- ret = _get_event(tls, c)
- if !(ret != 0) && !(queued != 0) && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == 0 && X_xcb_in_read(tls, c) != 0 { /* _xcb_in_read shuts down the connection on error */
- ret = _get_event(tls, c)
- }
- libc.Xpthread_mutex_unlock(tls, c+24)
- }
- return ret
- }
- func Xxcb_poll_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
- return _poll_for_next_event(tls, c, 0)
- }
- func Xxcb_poll_for_queued_event(tls *libc.TLS, c uintptr) (r uintptr) {
- return _poll_for_next_event(tls, c, int32(1))
- }
- func Xxcb_request_check(tls *libc.TLS, c uintptr, cookie Txcb_void_cookie_t) (r uintptr) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var reply uintptr
- var request Tuint64_t
- var _ /* ret at bp+0 */ uintptr
- _, _ = reply, request
- *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uintptr(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- request = _widen(tls, c, cookie.Fsequence)
- if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) > 0 {
- if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) >= 0 {
- X_xcb_out_send_sync(tls, c)
- }
- if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written) >= 0 {
- X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
- }
- }
- reply = _wait_for_reply(tls, c, request, bp)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return *(*uintptr)(unsafe.Pointer(bp))
- }
- func _get_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
- var event, events, v1, v2 uintptr
- _, _, _, _ = event, events, v1, v2
- event = libc.UintptrFromInt32(0)
- v1 = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
- events = v1
- if v1 != libc.UintptrFromInt32(0) {
- event = (*Tevent_list)(unsafe.Pointer(events)).Fevent
- v2 = (*Tevent_list)(unsafe.Pointer(events)).Fnext
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = v2
- if !(v2 != 0) {
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
- }
- libc.Xfree(tls, events)
- }
- return event
- }
- func Xxcb_poll_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
- var event uintptr
- _ = event
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uintptr(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- event = _get_special_event(tls, c, se)
- if !(event != 0) && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == 0 && X_xcb_in_read(tls, c) != 0 { /* _xcb_in_read shuts down the connection on error */
- event = _get_special_event(tls, c, se)
- }
- libc.Xpthread_mutex_unlock(tls, c+24)
- return event
- }
- func Xxcb_wait_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var event, v1 uintptr
- var _ /* special at bp+0 */ Tspecial_list
- _, _ = event, v1
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uintptr(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- _insert_special(tls, c+64+4232, bp, se)
- /* get_special_event returns 0 on empty list. */
- for {
- v1 = _get_special_event(tls, c, se)
- event = v1
- if !!(v1 != 0) {
- break
- }
- if !(X_xcb_conn_wait(tls, c, se+40, uintptr(0), uintptr(0)) != 0) {
- break
- }
- }
- _remove_special(tls, c+64+4232, bp)
- X_xcb_in_wake_up_next_reader(tls, c)
- libc.Xpthread_mutex_unlock(tls, c+24)
- return event
- }
- func Xxcb_register_for_special_xge(tls *libc.TLS, c uintptr, ext uintptr, eid Tuint32_t, stamp uintptr) (r uintptr) {
- var ext_reply, se uintptr
- _, _ = ext_reply, se
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return libc.UintptrFromInt32(0)
- }
- ext_reply = Xxcb_get_extension_data(tls, c, ext)
- if !(ext_reply != 0) {
- return libc.UintptrFromInt32(0)
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- se = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
- for {
- if !(se != 0) {
- break
- }
- if libc.Int32FromUint8((*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension) == libc.Int32FromUint8((*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode) && (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid == eid {
- libc.Xpthread_mutex_unlock(tls, c+24)
- return libc.UintptrFromInt32(0)
- }
- goto _1
- _1:
- ;
- se = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
- }
- se = libc.Xcalloc(tls, uint64(1), uint64(88))
- if !(se != 0) {
- libc.Xpthread_mutex_unlock(tls, c+24)
- return libc.UintptrFromInt32(0)
- }
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension = (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid = eid
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = libc.UintptrFromInt32(0)
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Fstamp = stamp
- libc.Xpthread_cond_init(tls, se+40, uintptr(0))
- (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events = se
- libc.Xpthread_mutex_unlock(tls, c+24)
- return se
- }
- func Xxcb_unregister_for_special_event(tls *libc.TLS, c uintptr, se uintptr) {
- var events, next, prev, s, v2 uintptr
- _, _, _, _, _ = events, next, prev, s, v2
- if !(se != 0) {
- return
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return
- }
- libc.Xpthread_mutex_lock(tls, c+24)
- prev = c + 64 + 4328
- for {
- v2 = *(*uintptr)(unsafe.Pointer(prev))
- s = v2
- if !(v2 != libc.UintptrFromInt32(0)) {
- break
- }
- if s == se {
- *(*uintptr)(unsafe.Pointer(prev)) = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
- events = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
- for {
- if !(events != 0) {
- break
- }
- next = (*Tevent_list)(unsafe.Pointer(events)).Fnext
- libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(events)).Fevent)
- libc.Xfree(tls, events)
- goto _3
- _3:
- ;
- events = next
- }
- libc.Xpthread_cond_destroy(tls, se+40)
- libc.Xfree(tls, se)
- break
- }
- goto _1
- _1:
- ;
- prev = s
- }
- libc.Xpthread_mutex_unlock(tls, c+24)
- }
- /* Private interface */
- func X_xcb_in_init(tls *libc.TLS, in uintptr) (r int32) {
- if libc.Xpthread_cond_init(tls, in, uintptr(0)) != 0 {
- return 0
- }
- (*T_xcb_in)(unsafe.Pointer(in)).Freading = 0
- (*T_xcb_in)(unsafe.Pointer(in)).Fqueue_len = 0
- (*T_xcb_in)(unsafe.Pointer(in)).Frequest_read = uint64(0)
- (*T_xcb_in)(unsafe.Pointer(in)).Frequest_completed = uint64(0)
- (*T_xcb_in)(unsafe.Pointer(in)).Freplies = X_xcb_map_new(tls)
- if !((*T_xcb_in)(unsafe.Pointer(in)).Freplies != 0) {
- return 0
- }
- (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply_tail = in + 4184
- (*T_xcb_in)(unsafe.Pointer(in)).Fevents_tail = in + 4208
- (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies_tail = in + 4240
- return int32(1)
- }
- func X_xcb_in_destroy(tls *libc.TLS, in uintptr) {
- var e, pend uintptr
- _, _ = e, pend
- libc.Xpthread_cond_destroy(tls, in)
- _free_reply_list(tls, (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply)
- X_xcb_map_delete(tls, (*T_xcb_in)(unsafe.Pointer(in)).Freplies, __ccgo_fp(_free_reply_list))
- for (*T_xcb_in)(unsafe.Pointer(in)).Fevents != 0 {
- e = (*T_xcb_in)(unsafe.Pointer(in)).Fevents
- (*T_xcb_in)(unsafe.Pointer(in)).Fevents = (*Tevent_list)(unsafe.Pointer(e)).Fnext
- libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(e)).Fevent)
- libc.Xfree(tls, e)
- }
- for (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies != 0 {
- pend = (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies
- (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies = (*Tpending_reply)(unsafe.Pointer(pend)).Fnext
- libc.Xfree(tls, pend)
- }
- }
- func X_xcb_in_wake_up_next_reader(tls *libc.TLS, c uintptr) {
- var pthreadret int32
- _ = pthreadret
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 {
- pthreadret = libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
- } else {
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters != 0 {
- pthreadret = libc.Xpthread_cond_signal(tls, (*Tspecial_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters)).Fse+40)
- } else {
- pthreadret = libc.Xpthread_cond_signal(tls, c+64)
- }
- }
- }
- func X_xcb_in_expect_reply(tls *libc.TLS, c uintptr, request Tuint64_t, workaround _workarounds, flags int32) (r int32) {
- var pend uintptr
- var v1 Tuint64_t
- _, _ = pend, v1
- pend = libc.Xmalloc(tls, uint64(32))
- if !(pend != 0) {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
- return 0
- }
- v1 = request
- (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = v1
- (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = v1
- (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = workaround
- (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = flags
- (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = uintptr(0)
- *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail)) = pend
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
- return int32(1)
- }
- func X_xcb_in_replies_done(tls *libc.TLS, c uintptr) {
- var pend, prev_next uintptr
- _, _ = pend, prev_next
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail != c+64+4240 {
- pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail - uintptr(Tsize_t(libc.UintptrFromInt32(0)+24))
- if (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) {
- if libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest) <= 0 {
- (*Tpending_reply1)(unsafe.Pointer(pend)).Flast_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
- (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround = int32(_WORKAROUND_NONE)
- } else {
- /* The socket was taken, but no requests were actually sent
- * so just discard the pending_reply that was created.
- */
- prev_next = c + 64 + 4240
- for *(*uintptr)(unsafe.Pointer(prev_next)) != pend {
- prev_next = *(*uintptr)(unsafe.Pointer(prev_next)) + 24
- }
- *(*uintptr)(unsafe.Pointer(prev_next)) = libc.UintptrFromInt32(0)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = prev_next
- libc.Xfree(tls, pend)
- }
- }
- }
- }
- func X_xcb_in_read(tls *libc.TLS, c uintptr) (r int32) {
- bp := tls.Alloc(160)
- defer tls.Free(160)
- var hdr, v2, v3 uintptr
- var i, n, nfd int32
- var _ /* cmsgbuf at bp+16 */ struct {
- Fbuf [0][80]uint8
- Fcmsghdr Tcmsghdr
- F__ccgo_pad2 [64]byte
- }
- var _ /* iov at bp+0 */ Tiovec
- var _ /* msg at bp+96 */ Tmsghdr
- _, _, _, _, _, _ = hdr, i, n, nfd, v2, v3
- *(*Tiovec)(unsafe.Pointer(bp)) = Tiovec{
- Fiov_base: c + 64 + 52 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
- Fiov_len: uint64(4096) - libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
- }
- *(*Tmsghdr)(unsafe.Pointer(bp + 96)) = Tmsghdr{
- Fmsg_iov: bp,
- Fmsg_iovlen: int32(1),
- Fmsg_control: bp + 16,
- Fmsg_controllen: uint32((libc.Uint64FromInt64(4)*libc.Uint64FromInt32(libc.Int32FromInt32(m_XCB_MAX_PASS_FD)-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) + (libc.Uint64FromInt64(16)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1))),
- }
- n = int32(libc.Xrecvmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+96, 0))
- /* Check for truncation errors. Only MSG_CTRUNC is
- * probably possible here, which would indicate that
- * the sender tried to transmit more than XCB_MAX_PASS_FD
- * file descriptors.
- */
- if (*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_flags&(libc.Int32FromInt32(m_MSG_TRUNC1)|libc.Int32FromInt32(m_MSG_CTRUNC1)) != 0 {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
- return 0
- }
- if n > 0 {
- if uint64((*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_controllen) >= uint64(16) {
- if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) {
- v2 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control
- } else {
- v2 = libc.UintptrFromInt32(0)
- }
- hdr = v2
- for {
- if !(hdr != 0) {
- break
- }
- if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level == int32(m_SOL_SOCKET) && (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type == int32(m_SCM_RIGHTS) {
- nfd = libc.Int32FromUint64((uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len) - ((libc.Uint64FromInt64(16)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) + libc.Uint64FromInt32(libc.Int32FromInt32(0)))) / uint64(4))
- libc.Xmemcpy(tls, c+64+4256+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)*4, hdr+libc.UintptrFromInt32(1)*16, libc.Uint64FromInt32(nfd)*uint64(4))
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd += nfd
- }
- goto _1
- _1:
- ;
- if uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len)+uint64(8)-uint64(1))&libc.Uint64FromInt64(^libc.Int64FromUint64(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)))+uint64(16) >= libc.Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen))-int64(hdr)) {
- v3 = uintptr(0)
- } else {
- v3 = hdr + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1))&libc.Uint64FromInt64(^libc.Int64FromUint64(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1))))
- }
- hdr = v3
- }
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read += libc.Uint64FromInt32(n)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len += n
- }
- for _read_packet(tls, c) != 0 {
- /* empty */
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd -= (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
- libc.Xmemmove(tls, c+64+4256, c+64+4256+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4, libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)*uint64(4))
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd = 0
- /* If we have any left-over file descriptors after emptying
- * the input buffer, then the server sent some that we weren't
- * expecting. Close them and mark the connection as broken;
- */
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len == 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
- i = 0
- for {
- if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd) {
- break
- }
- libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 64 + 4256 + uintptr(i)*4)))
- goto _4
- _4:
- ;
- i++
- }
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
- return 0
- }
- }
- if n > 0 || n < 0 && (*(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) || *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR)) {
- return int32(1)
- }
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
- return 0
- }
- func X_xcb_in_read_block(tls *libc.TLS, c uintptr, buf uintptr, len1 int32) (r int32) {
- var done, ret int32
- _, _ = done, ret
- done = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len
- if len1 < done {
- done = len1
- }
- libc.Xmemcpy(tls, buf, c+64+52, libc.Uint64FromInt32(done))
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len -= done
- libc.Xmemmove(tls, c+64+52, c+64+52+uintptr(done), libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len))
- if len1 > done {
- ret = _read_block(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, buf+uintptr(done), int64(len1-done))
- if ret <= 0 {
- X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
- return ret
- }
- }
- return len1
- }
- type Tpending_reply1 = struct {
- Ffirst_request Tuint64_t
- Flast_request Tuint64_t
- Fworkaround _workarounds
- Fflags int32
- Fnext uintptr
- }
- type Treader_list1 = struct {
- Frequest Tuint64_t
- Fdata uintptr
- Fnext uintptr
- }
- type Tspecial_list1 = struct {
- Fse uintptr
- Fnext uintptr
- }
- type Txcb_ge_special_event_t1 = struct {
- Fresponse_type Tuint8_t
- Fextension Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fevtype Tuint16_t
- Fpad0 [2]Tuint8_t
- Feid Tuint32_t
- Fpad1 [16]Tuint8_t
- }
- const m_INT32_MAX2 = 0x7fffffff
- const m_UINT32_MAX2 = "0xffffffffu"
- type Tlazyreply = struct {
- Ftag _lazy_reply_tag
- Fvalue struct {
- Freply [0]uintptr
- Fcookie Txcb_query_extension_cookie_t
- F__ccgo_pad2 [4]byte
- }
- }
- func _get_index(tls *libc.TLS, c uintptr, idx int32) (r uintptr) {
- var new_extensions uintptr
- var new_size int32
- _, _ = new_extensions, new_size
- if idx > (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size {
- new_size = idx << int32(1)
- new_extensions = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions, uint64(16)*libc.Uint64FromInt32(new_size))
- if !(new_extensions != 0) {
- return uintptr(0)
- }
- libc.Xmemset(tls, new_extensions+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*16, 0, uint64(16)*libc.Uint64FromInt32(new_size-(*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size))
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions = new_extensions
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size = new_size
- }
- return (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr(idx)*16 - uintptr(1)*16
- }
- func _get_lazyreply(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
- var data uintptr
- var v1 int32
- _, _ = data, v1
- libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_global_lock)))
- if !((*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id != 0) {
- _next_global_id++
- v1 = _next_global_id
- (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id = v1
- }
- libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_global_lock)))
- data = _get_index(tls, c, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id)
- if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_NONE) {
- /* cache miss: query the server */
- (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_COOKIE)
- (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie = Xxcb_query_extension(tls, c, uint16(libc.Xstrlen(tls, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fname)), (*Txcb_extension_t)(unsafe.Pointer(ext)).Fname)
- }
- return data
- }
- var _global_lock = Tpthread_mutex_t{}
- var _next_global_id int32
- /* Public interface */
- // C documentation
- //
- // /* Do not free the returned xcb_query_extension_reply_t - on return, it's aliased
- // * from the cache. */
- func Xxcb_get_extension_data(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
- var data, v1 uintptr
- _, _ = data, v1
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return uintptr(0)
- }
- libc.Xpthread_mutex_lock(tls, c+21064)
- data = _get_lazyreply(tls, c, ext)
- if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_COOKIE) {
- (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_FORCED)
- *(*uintptr)(unsafe.Pointer(data + 8)) = Xxcb_query_extension_reply(tls, c, (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie, uintptr(0))
- }
- libc.Xpthread_mutex_unlock(tls, c+21064)
- if data != 0 {
- v1 = *(*uintptr)(unsafe.Pointer(data + 8))
- } else {
- v1 = uintptr(0)
- }
- return v1
- }
- func Xxcb_prefetch_extension_data(tls *libc.TLS, c uintptr, ext uintptr) {
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return
- }
- libc.Xpthread_mutex_lock(tls, c+21064)
- _get_lazyreply(tls, c, ext)
- libc.Xpthread_mutex_unlock(tls, c+21064)
- }
- /* Private interface */
- func X_xcb_ext_init(tls *libc.TLS, c uintptr) (r int32) {
- if libc.Xpthread_mutex_init(tls, c+21064, uintptr(0)) != 0 {
- return 0
- }
- return int32(1)
- }
- func X_xcb_ext_destroy(tls *libc.TLS, c uintptr) {
- var v1 int32
- var v2 uintptr
- _, _ = v1, v2
- libc.Xpthread_mutex_destroy(tls, c+21064)
- for {
- v2 = c + 21064 + 48
- v1 = *(*int32)(unsafe.Pointer(v2))
- *(*int32)(unsafe.Pointer(v2))--
- if !(v1 > 0) {
- break
- }
- if (*(*Tlazyreply1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*16))).Ftag == int32(_LAZY_FORCED) {
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*16 + 8)))
- }
- }
- libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions)
- }
- type Tlazyreply1 = struct {
- Ftag _lazy_reply_tag
- Fvalue struct {
- Freply [0]uintptr
- Fcookie Txcb_query_extension_cookie_t
- F__ccgo_pad2 [4]byte
- }
- }
- const m_XCB_XCMISC_MAJOR_VERSION = 1
- const m_XCB_XCMISC_MINOR_VERSION = 1
- const m_XCB_XC_MISC_GET_VERSION = 0
- const m_XCB_XC_MISC_GET_XID_LIST = 2
- const m_XCB_XC_MISC_GET_XID_RANGE = 1
- type Txcb_xc_misc_get_version_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_xc_misc_get_version_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fminor_opcode Tuint8_t
- Flength Tuint16_t
- Fclient_major_version Tuint16_t
- Fclient_minor_version Tuint16_t
- }
- type Txcb_xc_misc_get_version_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fserver_major_version Tuint16_t
- Fserver_minor_version Tuint16_t
- }
- type Txcb_xc_misc_get_xid_range_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_xc_misc_get_xid_range_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fminor_opcode Tuint8_t
- Flength Tuint16_t
- }
- type Txcb_xc_misc_get_xid_range_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fstart_id Tuint32_t
- Fcount Tuint32_t
- }
- type Txcb_xc_misc_get_xid_list_cookie_t = struct {
- Fsequence uint32
- }
- type Txcb_xc_misc_get_xid_list_request_t = struct {
- Fmajor_opcode Tuint8_t
- Fminor_opcode Tuint8_t
- Flength Tuint16_t
- Fcount Tuint32_t
- }
- type Txcb_xc_misc_get_xid_list_reply_t = struct {
- Fresponse_type Tuint8_t
- Fpad0 Tuint8_t
- Fsequence Tuint16_t
- Flength Tuint32_t
- Fids_len Tuint32_t
- Fpad1 [20]Tuint8_t
- }
- /**
- * @}
- */
- /* Public interface */
- func Xxcb_generate_id(tls *libc.TLS, c uintptr) (r Tuint32_t) {
- var range1, xc_misc_reply uintptr
- var ret Tuint32_t
- _, _, _ = range1, ret, xc_misc_reply
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
- }
- libc.Xpthread_mutex_lock(tls, c+21120)
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast >= (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax-(*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc+uint32(1) {
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast == uint32(0) {
- /* finish setting up initial range */
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
- } else {
- /* check for extension */
- xc_misc_reply = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)))
- if !(xc_misc_reply != 0) || !((*Txcb_query_extension_reply_t)(unsafe.Pointer(xc_misc_reply)).Fpresent != 0) {
- libc.Xpthread_mutex_unlock(tls, c+21120)
- return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
- }
- /* get new range */
- range1 = Xxcb_xc_misc_get_xid_range_reply(tls, c, Xxcb_xc_misc_get_xid_range(tls, c), uintptr(0))
- /* XXX The latter disjunct is what the server returns
- when it is out of XIDs. Sweet. */
- if !(range1 != 0) || (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id == uint32(0) && (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fcount == uint32(1) {
- libc.Xpthread_mutex_unlock(tls, c+21120)
- return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id + ((*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fcount-uint32(1))*(*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
- libc.Xfree(tls, range1)
- }
- } else {
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast += (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
- }
- ret = (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast | (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase
- libc.Xpthread_mutex_unlock(tls, c+21120)
- return ret
- }
- /* Private interface */
- func X_xcb_xid_init(tls *libc.TLS, c uintptr) (r int32) {
- if libc.Xpthread_mutex_init(tls, c+21120, uintptr(0)) != 0 {
- return 0
- }
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = uint32(0)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = uint32(0)
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_base
- (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask & -(*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
- return int32(1)
- }
- func X_xcb_xid_destroy(tls *libc.TLS, c uintptr) {
- libc.Xpthread_mutex_destroy(tls, c+21120)
- }
- type T_xcb_map = struct {
- Fhead uintptr
- Ftail uintptr
- }
- type Tnode = struct {
- Fnext uintptr
- Fkey Tuint64_t
- Fdata uintptr
- }
- type T_xcb_map1 = struct {
- Fhead uintptr
- Ftail uintptr
- }
- /* Private interface */
- func X_xcb_map_new(tls *libc.TLS) (r uintptr) {
- var list uintptr
- _ = list
- list = libc.Xmalloc(tls, uint64(16))
- if !(list != 0) {
- return uintptr(0)
- }
- (*T_xcb_map)(unsafe.Pointer(list)).Fhead = uintptr(0)
- (*T_xcb_map)(unsafe.Pointer(list)).Ftail = list
- return list
- }
- func X_xcb_map_delete(tls *libc.TLS, list uintptr, do_free Txcb_list_free_func_t) {
- var cur uintptr
- _ = cur
- if !(list != 0) {
- return
- }
- for (*T_xcb_map)(unsafe.Pointer(list)).Fhead != 0 {
- cur = (*T_xcb_map)(unsafe.Pointer(list)).Fhead
- if do_free != 0 {
- (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{do_free})))(tls, (*Tnode)(unsafe.Pointer(cur)).Fdata)
- }
- (*T_xcb_map)(unsafe.Pointer(list)).Fhead = (*Tnode)(unsafe.Pointer(cur)).Fnext
- libc.Xfree(tls, cur)
- }
- libc.Xfree(tls, list)
- }
- func X_xcb_map_put(tls *libc.TLS, list uintptr, key Tuint64_t, data uintptr) (r int32) {
- var cur uintptr
- _ = cur
- cur = libc.Xmalloc(tls, uint64(24))
- if !(cur != 0) {
- return 0
- }
- (*Tnode)(unsafe.Pointer(cur)).Fkey = key
- (*Tnode)(unsafe.Pointer(cur)).Fdata = data
- (*Tnode)(unsafe.Pointer(cur)).Fnext = uintptr(0)
- *(*uintptr)(unsafe.Pointer((*T_xcb_map)(unsafe.Pointer(list)).Ftail)) = cur
- (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
- return int32(1)
- }
- func X_xcb_map_remove(tls *libc.TLS, list uintptr, key Tuint64_t) (r uintptr) {
- var cur, ret, tmp uintptr
- _, _, _ = cur, ret, tmp
- cur = list
- for {
- if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
- break
- }
- if (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fkey == key {
- tmp = *(*uintptr)(unsafe.Pointer(cur))
- ret = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fdata
- *(*uintptr)(unsafe.Pointer(cur)) = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fnext
- if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
- (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
- }
- libc.Xfree(tls, tmp)
- return ret
- }
- goto _1
- _1:
- ;
- cur = *(*uintptr)(unsafe.Pointer(cur))
- }
- return uintptr(0)
- }
- const m_AI_ADDRCONFIG = 0x20
- const m_AI_ALL = 0x10
- const m_AI_CANONNAME = 0x02
- const m_AI_NUMERICHOST = 4
- const m_AI_NUMERICSERV = 1024
- const m_AI_PASSIVE = 0x01
- const m_AI_V4MAPPED = 0x08
- const m_HOST_NOT_FOUND = 1
- const m_INT_MAX1 = 2147483647
- const m_MSG_CTRUNC2 = 0x0008
- const m_MSG_TRUNC2 = 0x0020
- const m_NI_DGRAM = 0x10
- const m_NI_MAXHOST = 255
- const m_NI_MAXSERV = 32
- const m_NI_NAMEREQD = 0x08
- const m_NI_NOFQDN = 0x04
- const m_NI_NUMERICHOST = 0x01
- const m_NI_NUMERICSCOPE = 0x100
- const m_NI_NUMERICSERV = 0x02
- const m_NO_ADDRESS = "NO_DATA"
- const m_NO_DATA = 4
- const m_NO_RECOVERY = 3
- const m_O_NONBLOCK1 = 04000
- const m_SCM_RIGHTS1 = 0x01
- const m_SOCK_CLOEXEC1 = 524288
- const m_SOL_TCP = 6
- const m_STATX_ALL = 0xfff
- const m_STATX_ATIME = 0x20
- const m_STATX_BASIC_STATS = 0x7ff
- const m_STATX_BLOCKS = 0x400
- const m_STATX_BTIME = 0x800
- const m_STATX_CTIME = 0x80
- const m_STATX_GID = 0x10
- const m_STATX_INO = 0x100
- const m_STATX_MODE = 2
- const m_STATX_MTIME = 0x40
- const m_STATX_NLINK = 4
- const m_STATX_SIZE = 0x200
- const m_STATX_TYPE = 1
- const m_STATX_UID = 8
- const m_S_IEXEC = "S_IXUSR"
- const m_S_IFBLK = 0060000
- const m_S_IFCHR = 0020000
- const m_S_IFDIR = 0040000
- const m_S_IFIFO = 0010000
- const m_S_IFLNK = 0120000
- const m_S_IFMT = 0170000
- const m_S_IFREG = 0100000
- const m_S_IFSOCK = 0140000
- const m_S_IREAD = "S_IRUSR"
- const m_S_IWRITE = "S_IWUSR"
- const m_TCPI_OPT_ECN = 8
- const m_TCPI_OPT_SACK = 2
- const m_TCPI_OPT_TIMESTAMPS = 1
- const m_TCPI_OPT_WSCALE = 4
- const m_TCPOLEN_MAXSEG = 4
- const m_TCPOLEN_SACK_PERMITTED = 2
- const m_TCPOLEN_TIMESTAMP = 10
- const m_TCPOLEN_WINDOW = 3
- const m_TCPOPT_EOL = 0
- const m_TCPOPT_MAXSEG = 2
- const m_TCPOPT_NOP = 1
- const m_TCPOPT_SACK = 5
- const m_TCPOPT_SACK_PERMITTED = 4
- const m_TCPOPT_TIMESTAMP = 8
- const m_TCPOPT_WINDOW = 3
- const m_TCP_CA_CWR = 2
- const m_TCP_CA_Disorder = 1
- const m_TCP_CA_Loss = 4
- const m_TCP_CA_Open = 0
- const m_TCP_CA_Recovery = 3
- const m_TCP_CC_INFO = 26
- const m_TCP_CLOSE = 7
- const m_TCP_CLOSE_WAIT = 8
- const m_TCP_CLOSING = 11
- const m_TCP_CM_INQ = "TCP_INQ"
- const m_TCP_CONGESTION = 13
- const m_TCP_CORK = 3
- const m_TCP_DEFER_ACCEPT = 9
- const m_TCP_ESTABLISHED = 1
- const m_TCP_FASTOPEN = 23
- const m_TCP_FASTOPEN_CONNECT = 30
- const m_TCP_FASTOPEN_KEY = 33
- const m_TCP_FASTOPEN_NO_COOKIE = 34
- const m_TCP_FIN_WAIT1 = 4
- const m_TCP_FIN_WAIT2 = 5
- const m_TCP_INFO = 11
- const m_TCP_INQ = 36
- const m_TCP_KEEPCNT = 6
- const m_TCP_KEEPIDLE = 4
- const m_TCP_KEEPINTVL = 5
- const m_TCP_LAST_ACK = 9
- const m_TCP_LINGER2 = 8
- const m_TCP_LISTEN = 10
- const m_TCP_MAXSEG = 2
- const m_TCP_MD5SIG = 14
- const m_TCP_MD5SIG_EXT = 32
- const m_TCP_MD5SIG_FLAG_IFINDEX = 0x2
- const m_TCP_MD5SIG_FLAG_PREFIX = 0x1
- const m_TCP_MD5SIG_MAXKEYLEN = 80
- const m_TCP_NODELAY = 1
- const m_TCP_NOTSENT_LOWAT = 25
- const m_TCP_QUEUE_SEQ = 21
- const m_TCP_QUICKACK = 12
- const m_TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT = 0x1
- const m_TCP_REPAIR = 19
- const m_TCP_REPAIR_OFF = 0
- const m_TCP_REPAIR_ON = 1
- const m_TCP_REPAIR_OPTIONS = 22
- const m_TCP_REPAIR_QUEUE = 20
- const m_TCP_REPAIR_WINDOW = 29
- const m_TCP_SAVED_SYN = 28
- const m_TCP_SAVE_SYN = 27
- const m_TCP_SYNCNT = 7
- const m_TCP_SYN_RECV = 3
- const m_TCP_SYN_SENT = 2
- const m_TCP_THIN_DUPACK = 17
- const m_TCP_THIN_LINEAR_TIMEOUTS = 16
- const m_TCP_TIMESTAMP = 24
- const m_TCP_TIME_WAIT = 6
- const m_TCP_TX_DELAY = 37
- const m_TCP_ULP = 31
- const m_TCP_USER_TIMEOUT = 18
- const m_TCP_WINDOW_CLAMP = 10
- const m_TCP_ZEROCOPY_RECEIVE = 35
- const m_TH_ACK = 0x10
- const m_TH_FIN = 0x01
- const m_TH_PUSH = 0x08
- const m_TH_RST = 0x04
- const m_TH_SYN = 0x02
- const m_TH_URG = 0x20
- const m_TRY_AGAIN = 2
- const m_UTIME_NOW = 0x3fffffff
- const m_UTIME_OMIT = 0x3ffffffe
- type Tmax_align_t = struct {
- F__ll int64
- F__ld float64
- }
- type Tptrdiff_t = int64
- type Tsockaddr_un = struct {
- Fsun_family Tsa_family_t
- Fsun_path [108]uint8
- }
- const _TCP_NLA_PAD = 0
- const _TCP_NLA_BUSY = 1
- const _TCP_NLA_RWND_LIMITED = 2
- const _TCP_NLA_SNDBUF_LIMITED = 3
- const _TCP_NLA_DATA_SEGS_OUT = 4
- const _TCP_NLA_TOTAL_RETRANS = 5
- const _TCP_NLA_PACING_RATE = 6
- const _TCP_NLA_DELIVERY_RATE = 7
- const _TCP_NLA_SND_CWND = 8
- const _TCP_NLA_REORDERING = 9
- const _TCP_NLA_MIN_RTT = 10
- const _TCP_NLA_RECUR_RETRANS = 11
- const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12
- const _TCP_NLA_SNDQ_SIZE = 13
- const _TCP_NLA_CA_STATE = 14
- const _TCP_NLA_SND_SSTHRESH = 15
- const _TCP_NLA_DELIVERED = 16
- const _TCP_NLA_DELIVERED_CE = 17
- const _TCP_NLA_BYTES_SENT = 18
- const _TCP_NLA_BYTES_RETRANS = 19
- const _TCP_NLA_DSACK_DUPS = 20
- const _TCP_NLA_REORD_SEEN = 21
- const _TCP_NLA_SRTT = 22
- const _TCP_NLA_TIMEOUT_REHASH = 23
- const _TCP_NLA_BYTES_NOTSENT = 24
- const _TCP_NLA_EDT = 25
- const _TCP_NLA_TTL = 26
- type Ttcp_seq = uint32
- type Ttcphdr = struct {
- F__ccgo0_0 struct {
- F__ccgo1_0 [0]struct {
- Fth_sport Tuint16_t
- Fth_dport Tuint16_t
- Fth_seq Tuint32_t
- Fth_ack Tuint32_t
- F__ccgo12 uint8
- Fth_flags Tuint8_t
- Fth_win Tuint16_t
- Fth_sum Tuint16_t
- Fth_urp Tuint16_t
- }
- F__ccgo0_0 struct {
- Fsource Tuint16_t
- Fdest Tuint16_t
- Fseq Tuint32_t
- Fack_seq Tuint32_t
- F__ccgo12 uint16
- Fwindow Tuint16_t
- Fcheck Tuint16_t
- Furg_ptr Tuint16_t
- }
- }
- }
- type _tcp_fastopen_client_fail = int32
- const _TFO_STATUS_UNSPEC = 0
- const _TFO_COOKIE_UNAVAILABLE = 1
- const _TFO_DATA_NOT_ACKED = 2
- const _TFO_SYN_RETRANSMITTED = 3
- type Ttcp_info = struct {
- Ftcpi_state Tuint8_t
- Ftcpi_ca_state Tuint8_t
- Ftcpi_retransmits Tuint8_t
- Ftcpi_probes Tuint8_t
- Ftcpi_backoff Tuint8_t
- Ftcpi_options Tuint8_t
- F__ccgo6 uint8
- F__ccgo7 uint8
- Ftcpi_rto Tuint32_t
- Ftcpi_ato Tuint32_t
- Ftcpi_snd_mss Tuint32_t
- Ftcpi_rcv_mss Tuint32_t
- Ftcpi_unacked Tuint32_t
- Ftcpi_sacked Tuint32_t
- Ftcpi_lost Tuint32_t
- Ftcpi_retrans Tuint32_t
- Ftcpi_fackets Tuint32_t
- Ftcpi_last_data_sent Tuint32_t
- Ftcpi_last_ack_sent Tuint32_t
- Ftcpi_last_data_recv Tuint32_t
- Ftcpi_last_ack_recv Tuint32_t
- Ftcpi_pmtu Tuint32_t
- Ftcpi_rcv_ssthresh Tuint32_t
- Ftcpi_rtt Tuint32_t
- Ftcpi_rttvar Tuint32_t
- Ftcpi_snd_ssthresh Tuint32_t
- Ftcpi_snd_cwnd Tuint32_t
- Ftcpi_advmss Tuint32_t
- Ftcpi_reordering Tuint32_t
- Ftcpi_rcv_rtt Tuint32_t
- Ftcpi_rcv_space Tuint32_t
- Ftcpi_total_retrans Tuint32_t
- Ftcpi_pacing_rate Tuint64_t
- Ftcpi_max_pacing_rate Tuint64_t
- Ftcpi_bytes_acked Tuint64_t
- Ftcpi_bytes_received Tuint64_t
- Ftcpi_segs_out Tuint32_t
- Ftcpi_segs_in Tuint32_t
- Ftcpi_notsent_bytes Tuint32_t
- Ftcpi_min_rtt Tuint32_t
- Ftcpi_data_segs_in Tuint32_t
- Ftcpi_data_segs_out Tuint32_t
- Ftcpi_delivery_rate Tuint64_t
- Ftcpi_busy_time Tuint64_t
- Ftcpi_rwnd_limited Tuint64_t
- Ftcpi_sndbuf_limited Tuint64_t
- Ftcpi_delivered Tuint32_t
- Ftcpi_delivered_ce Tuint32_t
- Ftcpi_bytes_sent Tuint64_t
- Ftcpi_bytes_retrans Tuint64_t
- Ftcpi_dsack_dups Tuint32_t
- Ftcpi_reord_seen Tuint32_t
- Ftcpi_rcv_ooopack Tuint32_t
- Ftcpi_snd_wnd Tuint32_t
- }
- type Ttcp_md5sig = struct {
- Ftcpm_addr Tsockaddr_storage
- Ftcpm_flags Tuint8_t
- Ftcpm_prefixlen Tuint8_t
- Ftcpm_keylen Tuint16_t
- Ftcpm_ifindex int32
- Ftcpm_key [80]Tuint8_t
- }
- type Ttcp_diag_md5sig = struct {
- Ftcpm_family Tuint8_t
- Ftcpm_prefixlen Tuint8_t
- Ftcpm_keylen Tuint16_t
- Ftcpm_addr [4]Tuint32_t
- Ftcpm_key [80]Tuint8_t
- }
- type Ttcp_repair_window = struct {
- Fsnd_wl1 Tuint32_t
- Fsnd_wnd Tuint32_t
- Fmax_window Tuint32_t
- Frcv_wnd Tuint32_t
- Frcv_wup Tuint32_t
- }
- type Ttcp_zerocopy_receive = struct {
- Faddress Tuint64_t
- Flength Tuint32_t
- Frecv_skip_hint Tuint32_t
- Finq Tuint32_t
- Ferr Tint32_t
- Fcopybuf_address Tuint64_t
- Fcopybuf_len Tint32_t
- Fflags Tuint32_t
- Fmsg_control Tuint64_t
- Fmsg_controllen Tuint64_t
- Fmsg_flags Tuint32_t
- Freserved Tuint32_t
- }
- type Taddrinfo = struct {
- Fai_flags int32
- Fai_family int32
- Fai_socktype int32
- Fai_protocol int32
- Fai_addrlen Tsocklen_t
- Fai_addr uintptr
- Fai_canonname uintptr
- Fai_next uintptr
- }
- type Tnetent = struct {
- Fn_name uintptr
- Fn_aliases uintptr
- Fn_addrtype int32
- Fn_net Tuint32_t
- }
- type Thostent = struct {
- Fh_name uintptr
- Fh_aliases uintptr
- Fh_addrtype int32
- Fh_length int32
- Fh_addr_list uintptr
- }
- type Tservent = struct {
- Fs_name uintptr
- Fs_aliases uintptr
- Fs_port int32
- Fs_proto uintptr
- }
- type Tprotoent = struct {
- Fp_name uintptr
- Fp_aliases uintptr
- Fp_proto int32
- }
- type Tstat = struct {
- Fst_dev Tdev_t
- Fst_ino Tino_t
- Fst_mode Tmode_t
- Fst_nlink Tnlink_t
- Fst_uid Tuid_t
- Fst_gid Tgid_t
- Fst_rdev Tdev_t
- F__pad uint64
- Fst_size Toff_t
- Fst_blksize Tblksize_t
- F__pad2 int32
- Fst_blocks Tblkcnt_t
- Fst_atim Ttimespec
- Fst_mtim Ttimespec
- Fst_ctim Ttimespec
- F__unused [2]uint32
- }
- type Tstatx_timestamp = struct {
- Ftv_sec Tint64_t
- Ftv_nsec Tuint32_t
- F__pad Tuint32_t
- }
- type Tstatx = struct {
- Fstx_mask Tuint32_t
- Fstx_blksize Tuint32_t
- Fstx_attributes Tuint64_t
- Fstx_nlink Tuint32_t
- Fstx_uid Tuint32_t
- Fstx_gid Tuint32_t
- Fstx_mode Tuint16_t
- F__pad0 [1]Tuint16_t
- Fstx_ino Tuint64_t
- Fstx_size Tuint64_t
- Fstx_blocks Tuint64_t
- Fstx_attributes_mask Tuint64_t
- Fstx_atime Tstatx_timestamp
- Fstx_btime Tstatx_timestamp
- Fstx_ctime Tstatx_timestamp
- Fstx_mtime Tstatx_timestamp
- Fstx_rdev_major Tuint32_t
- Fstx_rdev_minor Tuint32_t
- Fstx_dev_major Tuint32_t
- Fstx_dev_minor Tuint32_t
- F__pad1 [14]Tuint64_t
- }
- func Xxcb_popcount(tls *libc.TLS, mask Tuint32_t) (r int32) {
- var y Tuint32_t
- _ = y
- y = mask >> libc.Int32FromInt32(1) & uint32(033333333333)
- y = mask - y - y>>libc.Int32FromInt32(1)&uint32(033333333333)
- return libc.Int32FromUint32((y + y>>libc.Int32FromInt32(3)) & uint32(030707070707) % uint32(077))
- }
- func Xxcb_sumof(tls *libc.TLS, list uintptr, len1 int32) (r int32) {
- var i, s int32
- _, _ = i, s
- s = 0
- i = 0
- for {
- if !(i < len1) {
- break
- }
- s += libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(list)))
- list++
- goto _1
- _1:
- ;
- i++
- }
- return s
- }
- // C documentation
- //
- // /* Return true and parse if name matches <path to socket>[.<screen>]
- // * Upon success:
- // * host = <path to socket>
- // * protocol = "unix"
- // * display = 0
- // * screen = <screen>
- // */
- func __xcb_parse_display_path_to_socket(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
- bp := tls.Alloc(4240)
- defer tls.Free(4240)
- var _screen, res int32
- var dot uintptr
- var len1 Tsize_t
- var lscreen uint64
- var _ /* endptr at bp+4224 */ uintptr
- var _ /* path at bp+128 */ [4096]uint8
- var _ /* sbuf at bp+0 */ Tstat
- _, _, _, _, _ = _screen, dot, len1, lscreen, res
- _screen = 0
- len1 = libc.Xstrlen(tls, name)
- if len1 >= uint64(4096) {
- return 0
- }
- libc.Xmemcpy(tls, bp+128, name, len1+uint64(1))
- res = libc.Xstat(tls, bp+128, bp)
- if 0 != res {
- if res != -int32(1) || *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != int32(m_ENOENT) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != int32(m_ENOTDIR) {
- return 0
- }
- dot = libc.Xstrrchr(tls, bp+128, int32('.'))
- if !(dot != 0) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(dot + 1))) < int32('1') || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(dot + 1))) > int32('9') {
- return 0
- }
- *(*uint8)(unsafe.Pointer(dot)) = uint8('\000')
- *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = 0
- lscreen = libc.Xstrtoul(tls, dot+uintptr(1), bp+4224, int32(10))
- if lscreen > uint64(m_INT_MAX1) || !(*(*uintptr)(unsafe.Pointer(bp + 4224)) != 0) || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 4224)))) != 0 || *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != 0 {
- return 0
- }
- if 0 != libc.Xstat(tls, bp+128, bp) {
- return 0
- }
- _screen = libc.Int32FromUint64(lscreen)
- }
- if host != 0 {
- *(*uintptr)(unsafe.Pointer(host)) = libc.Xstrdup(tls, bp+128)
- if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
- return 0
- }
- }
- if protocol != 0 {
- *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xstrdup(tls, __ccgo_ts+4)
- if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
- if host != 0 {
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(host)))
- }
- return 0
- }
- }
- if displayp != 0 {
- *(*int32)(unsafe.Pointer(displayp)) = 0
- }
- if screenp != 0 {
- *(*int32)(unsafe.Pointer(screenp)) = _screen
- }
- return int32(1)
- }
- func __xcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var colon, slash uintptr
- var display, len1, screen int32
- var _ /* dot at bp+0 */ uintptr
- var _ /* end at bp+8 */ uintptr
- _, _, _, _, _ = colon, display, len1, screen, slash
- if !(name != 0) || !(*(*uint8)(unsafe.Pointer(name)) != 0) {
- name = libc.Xgetenv(tls, __ccgo_ts+9)
- }
- if !(name != 0) {
- return 0
- }
- /* First check for <path to socket>[.<screen>] */
- if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(name))) == int32('/') {
- return __xcb_parse_display_path_to_socket(tls, name, host, protocol, displayp, screenp)
- }
- if libc.Xstrncmp(tls, name, __ccgo_ts+17, uint64(5)) == 0 {
- return __xcb_parse_display_path_to_socket(tls, name+uintptr(5), host, protocol, displayp, screenp)
- }
- slash = libc.Xstrrchr(tls, name, int32('/'))
- if slash != 0 {
- len1 = int32(int64(slash) - int64(name))
- if protocol != 0 {
- *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
- if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
- return 0
- }
- libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(protocol)), name, libc.Uint64FromInt32(len1))
- *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(protocol)) + uintptr(len1))) = uint8('\000')
- }
- name = slash + uintptr(1)
- } else {
- if protocol != 0 {
- *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
- }
- }
- colon = libc.Xstrrchr(tls, name, int32(':'))
- if !(colon != 0) {
- goto error_out
- }
- len1 = int32(int64(colon) - int64(name))
- colon++
- display = libc.Int32FromUint64(libc.Xstrtoul(tls, colon, bp, int32(10)))
- if *(*uintptr)(unsafe.Pointer(bp)) == colon {
- goto error_out
- }
- if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('\000') {
- screen = 0
- } else {
- if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('.') {
- goto error_out
- }
- *(*uintptr)(unsafe.Pointer(bp))++
- screen = libc.Int32FromUint64(libc.Xstrtoul(tls, *(*uintptr)(unsafe.Pointer(bp)), bp+8, int32(10)))
- if *(*uintptr)(unsafe.Pointer(bp + 8)) == *(*uintptr)(unsafe.Pointer(bp)) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))) != int32('\000') {
- goto error_out
- }
- }
- /* At this point, the display string is fully parsed and valid, but
- * the caller's memory is untouched. */
- *(*uintptr)(unsafe.Pointer(host)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
- if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
- goto error_out
- }
- libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(host)), name, libc.Uint64FromInt32(len1))
- *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(host)) + uintptr(len1))) = uint8('\000')
- *(*int32)(unsafe.Pointer(displayp)) = display
- if screenp != 0 {
- *(*int32)(unsafe.Pointer(screenp)) = screen
- }
- return int32(1)
- goto error_out
- error_out:
- ;
- if protocol != 0 {
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(protocol)))
- *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
- }
- return 0
- }
- func Xxcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, displayp uintptr, screenp uintptr) (r int32) {
- return __xcb_parse_display(tls, name, host, libc.UintptrFromInt32(0), displayp, screenp)
- }
- func __xcb_open(tls *libc.TLS, host uintptr, protocol uintptr, display int32) (r int32) {
- bp := tls.Alloc(32)
- defer tls.Free(32)
- var actual_filelen, fd int32
- var base, file uintptr
- var filelen Tsize_t
- var port, port1 uint16
- var v1 uint64
- _, _, _, _, _, _, _, _ = actual_filelen, base, fd, file, filelen, port, port1, v1
- base = uintptr(unsafe.Pointer(&_unix_base))
- file = libc.UintptrFromInt32(0)
- if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+4, protocol) == 0 && host != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('/') {
- /* Full path to socket provided, ignore everything else */
- filelen = libc.Xstrlen(tls, host) + uint64(1)
- if filelen > uint64(m_INT_MAX1) {
- return -int32(1)
- }
- file = libc.Xmalloc(tls, filelen)
- if file == libc.UintptrFromInt32(0) {
- return -int32(1)
- }
- libc.Xmemcpy(tls, file, host, filelen)
- actual_filelen = libc.Int32FromUint64(filelen - libc.Uint64FromInt32(1))
- } else {
- /* If protocol or host is "unix", fall through to Unix socket code below */
- if (!(protocol != 0) || libc.Xstrcmp(tls, __ccgo_ts+4, protocol) != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) != int32('\000') && libc.Xstrcmp(tls, __ccgo_ts+4, host) != 0 {
- /* display specifies TCP */
- port = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
- return __xcb_open_tcp(tls, host, protocol, port)
- }
- filelen = libc.Xstrlen(tls, base) + uint64(1) + libc.Uint64FromInt64(4)*libc.Uint64FromInt32(3) + uint64(1)
- file = libc.Xmalloc(tls, filelen)
- if file == libc.UintptrFromInt32(0) {
- return -int32(1)
- }
- /* display specifies Unix socket */
- actual_filelen = libc.X__builtin_snprintf(tls, file, filelen, __ccgo_ts+23, libc.VaList(bp+8, base, display))
- if actual_filelen < 0 {
- libc.Xfree(tls, file)
- return -int32(1)
- }
- /* snprintf may truncate the file */
- if libc.Uint64FromInt32(actual_filelen) < filelen-uint64(1) {
- v1 = libc.Uint64FromInt32(actual_filelen)
- } else {
- v1 = filelen - uint64(1)
- }
- filelen = v1
- fd = __xcb_open_abstract(tls, protocol, file, filelen)
- if fd >= 0 || *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != int32(m_ENOENT) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != int32(m_ECONNREFUSED) {
- libc.Xfree(tls, file)
- return fd
- }
- }
- fd = __xcb_open_unix(tls, protocol, file)
- libc.Xfree(tls, file)
- if fd < 0 && !(protocol != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
- port1 = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
- fd = __xcb_open_tcp(tls, host, protocol, port1)
- }
- return fd
- return -int32(1) /* if control reaches here then something has gone wrong */
- }
- var _unix_base = [17]uint8{'/', 't', 'm', 'p', '/', '.', 'X', '1', '1', '-', 'u', 'n', 'i', 'x', '/', 'X'}
- func __xcb_socket(tls *libc.TLS, family int32, type1 int32, proto int32) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var fd int32
- _ = fd
- fd = libc.Xsocket(tls, family, type1|int32(m_SOCK_CLOEXEC1), proto)
- if fd == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINVAL) {
- fd = libc.Xsocket(tls, family, type1, proto)
- if fd >= 0 {
- libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
- }
- }
- return fd
- }
- func __xcb_do_connect(tls *libc.TLS, fd int32, addr uintptr, addrlen int32) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var _ /* on at bp+0 */ int32
- *(*int32)(unsafe.Pointer(bp)) = int32(1)
- if fd < 0 {
- return -int32(1)
- }
- libc.Xsetsockopt(tls, fd, int32(m_IPPROTO_TCP), int32(m_TCP_NODELAY), bp, uint32(4))
- libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_KEEPALIVE), bp, uint32(4))
- return libc.Xconnect(tls, fd, addr, libc.Uint32FromInt32(addrlen))
- }
- func __xcb_open_tcp(tls *libc.TLS, host uintptr, protocol uintptr, port uint16) (r int32) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var addr, bracket, v1 uintptr
- var fd int32
- var v2 bool
- var _ /* hints at bp+0 */ Taddrinfo
- var _ /* results at bp+56 */ uintptr
- var _ /* service at bp+48 */ [6]uint8
- _, _, _, _, _ = addr, bracket, fd, v1, v2
- fd = -int32(1)
- if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+28, protocol) != 0 && libc.Xstrcmp(tls, __ccgo_ts+32, protocol) != 0 && libc.Xstrcmp(tls, __ccgo_ts+37, protocol) != 0 {
- return -int32(1)
- }
- if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
- host = __ccgo_ts + 43
- }
- libc.Xmemset(tls, bp, 0, uint64(48))
- (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICSERV)
- (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = m_PF_UNSPEC
- (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_socktype = int32(m_SOCK_STREAM)
- /* Allow IPv6 addresses enclosed in brackets. */
- if v2 = libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('['); v2 {
- v1 = libc.Xstrrchr(tls, host, int32(']'))
- bracket = v1
- }
- if v2 && v1 != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bracket + 1))) == int32('\000') {
- *(*uint8)(unsafe.Pointer(bracket)) = uint8('\000')
- host++
- (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICHOST)
- (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = int32(m_PF_INET6)
- }
- libc.X__builtin_snprintf(tls, bp+48, uint64(6), __ccgo_ts+53, libc.VaList(bp+72, libc.Int32FromUint16(port)))
- if libc.Xgetaddrinfo(tls, host, bp+48, bp, bp+56) != 0 {
- /* FIXME: use gai_strerror, and fill in error connection */
- return -int32(1)
- }
- addr = *(*uintptr)(unsafe.Pointer(bp + 56))
- for {
- if !(addr != 0) {
- break
- }
- fd = __xcb_socket(tls, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_family, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_socktype, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_protocol)
- if __xcb_do_connect(tls, fd, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_addr, libc.Int32FromUint32((*Taddrinfo)(unsafe.Pointer(addr)).Fai_addrlen)) >= 0 {
- break
- }
- libc.Xclose(tls, fd)
- fd = -int32(1)
- goto _3
- _3:
- ;
- addr = (*Taddrinfo)(unsafe.Pointer(addr)).Fai_next
- }
- libc.Xfreeaddrinfo(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
- return fd
- }
- func __xcb_open_unix(tls *libc.TLS, protocol uintptr, file uintptr) (r int32) {
- bp := tls.Alloc(128)
- defer tls.Free(128)
- var fd int32
- var _ /* addr at bp+0 */ Tsockaddr_un
- var _ /* len at bp+112 */ Tsocklen_t
- var _ /* val at bp+116 */ int32
- _ = fd
- *(*Tsocklen_t)(unsafe.Pointer(bp + 112)) = uint32(4)
- if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+4, protocol) != 0 {
- return -int32(1)
- }
- libc.Xstrcpy(tls, bp+2, file)
- (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
- fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
- if fd == -int32(1) {
- return -int32(1)
- }
- if libc.Xgetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, bp+112) == 0 && *(*int32)(unsafe.Pointer(bp + 116)) < libc.Int32FromInt32(64)*libc.Int32FromInt32(1024) {
- *(*int32)(unsafe.Pointer(bp + 116)) = libc.Int32FromInt32(64) * libc.Int32FromInt32(1024)
- libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, uint32(4))
- }
- if libc.Xconnect(tls, fd, bp, uint32(110)) == -int32(1) {
- libc.Xclose(tls, fd)
- return -int32(1)
- }
- return fd
- }
- func __xcb_open_abstract(tls *libc.TLS, protocol uintptr, file uintptr, filelen Tsize_t) (r int32) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var fd int32
- var namelen Tsocklen_t
- var _ /* addr at bp+0 */ Tsockaddr_un
- _, _ = fd, namelen
- *(*Tsockaddr_un)(unsafe.Pointer(bp)) = Tsockaddr_un{}
- if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+4, protocol) != 0 {
- return -int32(1)
- }
- libc.Xstrcpy(tls, bp+2+uintptr(1), file)
- (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
- namelen = uint32(uint64(libc.UintptrFromInt32(0)+2) + libc.Uint64FromInt32(1) + filelen)
- fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
- if fd == -int32(1) {
- return -int32(1)
- }
- if libc.Xconnect(tls, fd, bp, namelen) == -int32(1) {
- libc.Xclose(tls, fd)
- return -int32(1)
- }
- return fd
- }
- func Xxcb_connect(tls *libc.TLS, displayname uintptr, screenp uintptr) (r uintptr) {
- return Xxcb_connect_to_display_with_auth_info(tls, displayname, libc.UintptrFromInt32(0), screenp)
- }
- func Xxcb_connect_to_display_with_auth_info(tls *libc.TLS, displayname uintptr, auth uintptr, screenp uintptr) (r uintptr) {
- bp := tls.Alloc(64)
- defer tls.Free(64)
- var c uintptr
- var fd, parsed int32
- var _ /* display at bp+0 */ int32
- var _ /* host at bp+8 */ uintptr
- var _ /* ourauth at bp+24 */ Txcb_auth_info_t
- var _ /* protocol at bp+16 */ uintptr
- _, _, _ = c, fd, parsed
- *(*int32)(unsafe.Pointer(bp)) = 0
- *(*uintptr)(unsafe.Pointer(bp + 8)) = libc.UintptrFromInt32(0)
- *(*uintptr)(unsafe.Pointer(bp + 16)) = libc.UintptrFromInt32(0)
- parsed = __xcb_parse_display(tls, displayname, bp+8, bp+16, bp, screenp)
- if !(parsed != 0) {
- c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_PARSE_ERR))
- goto out
- }
- fd = __xcb_open(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), *(*uintptr)(unsafe.Pointer(bp + 16)), *(*int32)(unsafe.Pointer(bp)))
- if fd == -int32(1) {
- c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
- goto out
- }
- if auth != 0 {
- c = Xxcb_connect_to_fd(tls, fd, auth)
- } else {
- if X_xcb_get_auth_info(tls, fd, bp+24, *(*int32)(unsafe.Pointer(bp))) != 0 {
- c = Xxcb_connect_to_fd(tls, fd, bp+24)
- libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fname)
- libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fdata)
- } else {
- c = Xxcb_connect_to_fd(tls, fd, uintptr(0))
- }
- }
- if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
- goto out
- }
- /* Make sure requested screen number is in bounds for this server */
- if screenp != libc.UintptrFromInt32(0) && *(*int32)(unsafe.Pointer(screenp)) >= libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Froots_len) {
- Xxcb_disconnect(tls, c)
- c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_INVALID_SCREEN))
- goto out
- }
- goto out
- out:
- ;
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
- return c
- }
- const m_AUTH_PROTO_MIT_MAGIC_COOKIE = "MIT-MAGIC-COOKIE-1"
- const m_AUTH_PROTO_XDM_AUTHORIZATION = "XDM-AUTHORIZATION-1"
- const m_CANBSIZ = 255
- const m_DEV_BSIZE = 512
- const m_FALSE = 0
- const m_FUNCPROTO = 15
- const m_FamilyKrb5Principal = 253
- const m_FamilyLocal = 256
- const m_FamilyLocalHost = 252
- const m_FamilyNetname = 254
- const m_FamilyWild = 65535
- const m_INITIAL_SOCKNAME_SLACK = 108
- const m_INT_MAX2 = 0x7fffffff
- const m_ITIMER_PROF = 2
- const m_ITIMER_REAL = 0
- const m_ITIMER_VIRTUAL = 1
- const m_LOCK_ERROR = 1
- const m_LOCK_SUCCESS = 0
- const m_LOCK_TIMEOUT = 2
- const m_MAXHOSTNAMELEN = 64
- const m_MAXNAMLEN = 255
- const m_MAXPATHLEN = 4096
- const m_MAXSYMLINKS = 20
- const m_NBBY = 8
- const m_NCARGS = 131072
- const m_NGROUPS = 32
- const m_NOFILE = 256
- const m_NeedFunctionPrototypes = 1
- const m_NeedNestedPrototypes = 1
- const m_NeedVarargsPrototypes = 1
- const m_NeedWidePrototypes = 0
- const m_PRIO_MAX = 20
- const m_PRIO_PGRP = 1
- const m_PRIO_PROCESS = 0
- const m_PRIO_USER = 2
- const m_RLIMIT_AS = 9
- const m_RLIMIT_CORE = 4
- const m_RLIMIT_CPU = 0
- const m_RLIMIT_DATA = 2
- const m_RLIMIT_FSIZE = 1
- const m_RLIMIT_LOCKS = 10
- const m_RLIMIT_MEMLOCK = 8
- const m_RLIMIT_MSGQUEUE = 12
- const m_RLIMIT_NICE = 13
- const m_RLIMIT_NLIMITS = 16
- const m_RLIMIT_NOFILE = 7
- const m_RLIMIT_NPROC = 6
- const m_RLIMIT_RSS = 5
- const m_RLIMIT_RTPRIO = 14
- const m_RLIMIT_RTTIME = 15
- const m_RLIMIT_SIGPENDING = 11
- const m_RLIMIT_STACK = 3
- const m_RLIM_NLIMITS = "RLIMIT_NLIMITS"
- const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
- const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
- const m_RUSAGE_SELF = 0
- const m_RUSAGE_THREAD = 1
- const m_SOCK_CLOEXEC2 = 02000000
- const m_TRUE = 1
- const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
- const m_XDM_KA_RTX_LIMIT = 4
- const m_XDM_MAX_MSGLEN = 8192
- const m_XDM_MAX_RTX = 32
- const m_XDM_MIN_RTX = 2
- const m_XDM_PROTOCOL_VERSION = 1
- const m_XDM_RTX_LIMIT = 7
- const m_XDM_UDP_PORT = 177
- const m_XMD_H = 1
- const m__X_INLINE = "inline"
- const m__X_RESTRICT_KYWD = "restrict"
- const m__Xconst = "const"
- const m_prlimit64 = "prlimit"
- type TXauth = struct {
- Ffamily uint16
- Faddress_length uint16
- Faddress uintptr
- Fnumber_length uint16
- Fnumber uintptr
- Fname_length uint16
- Fname uintptr
- Fdata_length uint16
- Fdata uintptr
- }
- type Txauth = TXauth
- type Titimerval = struct {
- Fit_interval Ttimeval
- Fit_value Ttimeval
- }
- type Ttimezone = struct {
- Ftz_minuteswest int32
- Ftz_dsttime int32
- }
- type Trlim_t = uint64
- type Trlimit = struct {
- Frlim_cur Trlim_t
- Frlim_max Trlim_t
- }
- type Trusage = struct {
- Fru_utime Ttimeval
- Fru_stime Ttimeval
- Fru_maxrss int64
- Fru_ixrss int64
- Fru_idrss int64
- Fru_isrss int64
- Fru_minflt int64
- Fru_majflt int64
- Fru_nswap int64
- Fru_inblock int64
- Fru_oublock int64
- Fru_msgsnd int64
- Fru_msgrcv int64
- Fru_nsignals int64
- Fru_nvcsw int64
- Fru_nivcsw int64
- F__reserved [16]int64
- }
- type TINT64 = int64
- type TINT32 = int32
- type TINT16 = int16
- type TINT8 = int8
- type TCARD64 = uint64
- type TCARD32 = uint32
- type TCARD16 = uint16
- type TCARD8 = uint8
- type TBITS32 = uint32
- type TBITS16 = uint16
- type TBYTE = uint8
- type TBOOL = uint8
- type TxdmOpCode = int32
- const _BROADCAST_QUERY = 1
- const _QUERY = 2
- const _INDIRECT_QUERY = 3
- const _FORWARD_QUERY = 4
- const _WILLING = 5
- const _UNWILLING = 6
- const _REQUEST = 7
- const _ACCEPT = 8
- const _DECLINE = 9
- const _MANAGE = 10
- const _REFUSE = 11
- const _FAILED = 12
- const _KEEPALIVE = 13
- const _ALIVE = 14
- type Txdmcp_states = int32
- const _XDM_QUERY = 0
- const _XDM_BROADCAST = 1
- const _XDM_INDIRECT = 2
- const _XDM_COLLECT_QUERY = 3
- const _XDM_COLLECT_BROADCAST_QUERY = 4
- const _XDM_COLLECT_INDIRECT_QUERY = 5
- const _XDM_START_CONNECTION = 6
- const _XDM_AWAIT_REQUEST_RESPONSE = 7
- const _XDM_AWAIT_MANAGE_RESPONSE = 8
- const _XDM_MANAGE = 9
- const _XDM_RUN_SESSION = 10
- const _XDM_OFF = 11
- const _XDM_AWAIT_USER_INPUT = 12
- const _XDM_KEEPALIVE = 13
- const _XDM_AWAIT_ALIVE_RESPONSE = 14
- const _XDM_KEEP_ME_LAST = 15
- type TCARD8Ptr = uintptr
- type TCARD16Ptr = uintptr
- type TCARD32Ptr = uintptr
- type TARRAY8 = struct {
- Flength TCARD16
- Fdata TCARD8Ptr
- }
- type T_ARRAY8 = TARRAY8
- type TARRAY8Ptr = uintptr
- type TARRAY16 = struct {
- Flength TCARD8
- Fdata TCARD16Ptr
- }
- type T_ARRAY16 = TARRAY16
- type TARRAY16Ptr = uintptr
- type TARRAY32 = struct {
- Flength TCARD8
- Fdata TCARD32Ptr
- }
- type T_ARRAY32 = TARRAY32
- type TARRAY32Ptr = uintptr
- type TARRAYofARRAY8 = struct {
- Flength TCARD8
- Fdata TARRAY8Ptr
- }
- type T_ARRAYofARRAY8 = TARRAYofARRAY8
- type TARRAYofARRAY8Ptr = uintptr
- type TXdmcpHeader = struct {
- Fversion TCARD16
- Fopcode TCARD16
- Flength TCARD16
- }
- type T_XdmcpHeader = TXdmcpHeader
- type TXdmcpHeaderPtr = uintptr
- type TXdmcpBuffer = struct {
- Fdata uintptr
- Fsize int32
- Fpointer int32
- Fcount int32
- }
- type T_XdmcpBuffer = TXdmcpBuffer
- type TXdmcpBufferPtr = uintptr
- type TXdmAuthKeyRec = struct {
- Fdata [8]TBYTE
- }
- type T_XdmAuthKey = TXdmAuthKeyRec
- type TXdmAuthKeyPtr = uintptr
- type TXdmcpNetaddr = uintptr
- type _auth_protos = int32
- const _AUTH_XA1 = 0
- const _AUTH_MC1 = 1
- const _N_AUTH_PROTOS = 2
- var _authnames = [2]uintptr{
- 0: __ccgo_ts + 57,
- 1: __ccgo_ts + 77,
- }
- var _authnameslen = [2]int32{
- 0: libc.Int32FromUint64(libc.Uint64FromInt64(20) - libc.Uint64FromInt32(1)),
- 1: libc.Int32FromUint64(libc.Uint64FromInt64(19) - libc.Uint64FromInt32(1)),
- }
- func _memdup(tls *libc.TLS, dst uintptr, src uintptr, len1 Tsize_t) (r Tsize_t) {
- if len1 != 0 {
- *(*uintptr)(unsafe.Pointer(dst)) = libc.Xmalloc(tls, len1)
- } else {
- *(*uintptr)(unsafe.Pointer(dst)) = uintptr(0)
- }
- if !(*(*uintptr)(unsafe.Pointer(dst)) != 0) {
- return uint64(0)
- }
- libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(dst)), src, len1)
- return len1
- }
- func _authname_match(tls *libc.TLS, kind _auth_protos, name uintptr, namelen Tsize_t) (r int32) {
- if libc.Uint64FromInt32(_authnameslen[kind]) != namelen {
- return 0
- }
- if libc.Xmemcmp(tls, _authnames[kind], name, namelen) != 0 {
- return 0
- }
- return int32(1)
- }
- func _get_authptr(tls *libc.TLS, sockname uintptr, display int32) (r uintptr) {
- bp := tls.Alloc(320)
- defer tls.Free(320)
- var addr uintptr
- var addrlen, dispbuflen int32
- var family uint16
- var v1 uint64
- var _ /* dispbuf at bp+256 */ [40]uint8
- var _ /* hostnamebuf at bp+0 */ [256]uint8
- _, _, _, _, _ = addr, addrlen, dispbuflen, family, v1
- addr = uintptr(0)
- addrlen = 0
- family = libc.Uint16FromInt32(libc.Int32FromInt32(m_FamilyLocal)) /* 256 */
- switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
- case int32(m_PF_INET6):
- addr = sockname + 8
- addrlen = int32(16)
- if !(*(*Tuint32_t)(unsafe.Pointer(sockname + 8)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(sockname + 8 + 1*4)) == uint32(0) && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 8))) == 0 && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 9))) == 0 && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 10))) == int32(0xff) && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 11))) == int32(0xff)) {
- if !(*(*Tuint32_t)(unsafe.Pointer(sockname + 8)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(sockname + 8 + 1*4)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(sockname + 8 + 2*4)) == uint32(0) && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 12))) == 0 && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 13))) == 0 && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 14))) == 0 && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 15))) == int32(1)) {
- family = uint16(_XCB_FAMILY_INTERNET_6)
- }
- break
- }
- addr += uintptr(12)
- /* if v4-mapped, fall through. */
- fallthrough
- case int32(m_PF_INET):
- if !(addr != 0) {
- addr = sockname + 4
- }
- addrlen = int32(4)
- if *(*Tin_addr_t)(unsafe.Pointer(addr)) != libc.Xhtonl(tls, libc.Uint32FromInt32(0x7f000001)) {
- family = uint16(_XCB_FAMILY_INTERNET)
- }
- case int32(m_PF_LOCAL):
- default:
- return uintptr(0) /* cannot authenticate this family */
- }
- dispbuflen = libc.X__builtin_snprintf(tls, bp+256, uint64(40), __ccgo_ts+96, libc.VaList(bp+304, display))
- if dispbuflen < 0 {
- return uintptr(0)
- }
- /* snprintf may have truncate our text */
- if libc.Uint64FromInt32(dispbuflen) < libc.Uint64FromInt64(40)-libc.Uint64FromInt32(1) {
- v1 = libc.Uint64FromInt32(dispbuflen)
- } else {
- v1 = libc.Uint64FromInt64(40) - libc.Uint64FromInt32(1)
- }
- dispbuflen = libc.Int32FromUint64(v1)
- if libc.Int32FromUint16(family) == int32(m_FamilyLocal) {
- if libc.Xgethostname(tls, bp, uint64(256)) == -int32(1) {
- return uintptr(0)
- } /* do not know own hostname */
- addr = bp
- addrlen = libc.Int32FromUint64(libc.Xstrlen(tls, addr))
- }
- return libxau.XXauGetBestAuthByAddr(tls, family, libc.Uint16FromInt32(addrlen), addr, libc.Uint16FromInt32(dispbuflen), bp+256, int32(_N_AUTH_PROTOS), uintptr(unsafe.Pointer(&_authnames)), uintptr(unsafe.Pointer(&_authnameslen)))
- }
- func _next_nonce(tls *libc.TLS) (r int32) {
- var ret, v1 int32
- _, _ = ret, v1
- libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
- v1 = _nonce
- _nonce++
- ret = v1
- libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
- return ret
- }
- var _nonce int32
- var _nonce_mutex = Tpthread_mutex_t{}
- func _do_append(tls *libc.TLS, buf uintptr, idxp uintptr, val uintptr, valsize Tsize_t) {
- var p1 uintptr
- _ = p1
- libc.Xmemcpy(tls, buf+uintptr(*(*int32)(unsafe.Pointer(idxp))), val, valsize)
- p1 = idxp
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + valsize)
- }
- func _compute_auth(tls *libc.TLS, info uintptr, authptr uintptr, sockname uintptr) (r int32) {
- bp := tls.Alloc(32)
- defer tls.Free(32)
- var si, si6 uintptr
- var v2 int32
- var _ /* fakeaddr at bp+12 */ Tuint32_t
- var _ /* fakeaddr at bp+4 */ Tuint32_t
- var _ /* fakeport at bp+16 */ Tuint16_t
- var _ /* fakeport at bp+8 */ Tuint16_t
- var _ /* j at bp+0 */ int32
- var _ /* now at bp+20 */ Tuint32_t
- _, _, _ = si, si6, v2
- if _authname_match(tls, int32(_AUTH_MC1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
- (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = libc.Int32FromUint64(_memdup(tls, info+24, (*TXauth)(unsafe.Pointer(authptr)).Fdata, uint64((*TXauth)(unsafe.Pointer(authptr)).Fdata_length)))
- if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen != 0) {
- return 0
- }
- return int32(1)
- }
- if _authname_match(tls, int32(_AUTH_XA1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
- (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(192)/libc.Int32FromInt32(8)))
- if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata != 0) {
- return 0
- }
- *(*int32)(unsafe.Pointer(bp)) = 0
- for {
- if !(*(*int32)(unsafe.Pointer(bp)) < int32(8)) {
- break
- }
- *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(*(*int32)(unsafe.Pointer(bp))))) = *(*uint8)(unsafe.Pointer((*TXauth)(unsafe.Pointer(authptr)).Fdata + uintptr(*(*int32)(unsafe.Pointer(bp)))))
- goto _1
- _1:
- ;
- *(*int32)(unsafe.Pointer(bp))++
- }
- switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
- case int32(m_PF_INET):
- /*block*/
- si = sockname
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+4, uint64(4))
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+2, uint64(2))
- case int32(m_PF_INET6):
- /*block*/
- si6 = sockname
- if *(*Tuint32_t)(unsafe.Pointer(sockname + 8)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(sockname + 8 + 1*4)) == uint32(0) && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 8))) == 0 && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 9))) == 0 && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 10))) == int32(0xff) && libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(sockname + 8 + 11))) == int32(0xff) {
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+8+12, uint64(4))
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+2, uint64(2))
- } else {
- /* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
- same thing Xlib does: use all zeroes for the 4-byte address
- and 2-byte port number. */
- *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uint32(0)
- *(*Tuint16_t)(unsafe.Pointer(bp + 8)) = uint16(0)
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+4, uint64(4))
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+8, uint64(2))
- }
- case int32(m_PF_LOCAL):
- /*block*/
- *(*Tuint32_t)(unsafe.Pointer(bp + 12)) = libc.Xhtonl(tls, uint32(0xffffffff)-libc.Uint32FromInt32(_next_nonce(tls)))
- *(*Tuint16_t)(unsafe.Pointer(bp + 16)) = libc.Xhtons(tls, libc.Uint16FromInt32(libc.Xgetpid(tls)))
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+12, uint64(4))
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+16, uint64(2))
- default:
- libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata)
- return 0 /* do not know how to build this */
- }
- *(*Tuint32_t)(unsafe.Pointer(bp + 20)) = libc.Xhtonl(tls, libc.Uint32FromInt64(libc.Xtime(tls, uintptr(0))))
- _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+20, uint64(4))
- for *(*int32)(unsafe.Pointer(bp)) < libc.Int32FromInt32(192)/libc.Int32FromInt32(8) {
- v2 = *(*int32)(unsafe.Pointer(bp))
- *(*int32)(unsafe.Pointer(bp))++
- *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(v2))) = uint8(0)
- }
- (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = *(*int32)(unsafe.Pointer(bp))
- libxdmcp.XXdmcpWrap(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, (*TXauth)(unsafe.Pointer(authptr)).Fdata+uintptr(8), (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen)
- return int32(1)
- }
- return 0 /* Unknown authorization type */
- }
- /* `sockaddr_un.sun_path' typical size usually ranges between 92 and 108 */
- // C documentation
- //
- // /* Return a dynamically allocated socket address structure according
- // to the value returned by either getpeername() or getsockname()
- // (according to POSIX, applications should not assume a particular
- // length for `sockaddr_un.sun_path') */
- func _get_peer_sock_name(tls *libc.TLS, socket_func uintptr, fd int32) (r uintptr) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var new_sockname, sockname, v1 uintptr
- var socknamelen Tsocklen_t
- var _ /* actual_socknamelen at bp+0 */ Tsocklen_t
- _, _, _, _ = new_sockname, sockname, socknamelen, v1
- socknamelen = uint32(libc.Uint64FromInt64(16) + libc.Uint64FromInt32(m_INITIAL_SOCKNAME_SLACK))
- *(*Tsocklen_t)(unsafe.Pointer(bp)) = socknamelen
- sockname = libc.Xmalloc(tls, uint64(socknamelen))
- if sockname == libc.UintptrFromInt32(0) {
- return libc.UintptrFromInt32(0)
- }
- /* Both getpeername() and getsockname() truncates sockname if
- there is not enough space and set the required length in
- actual_socknamelen */
- if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) {
- goto sock_or_realloc_error
- }
- if *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
- new_sockname = libc.UintptrFromInt32(0)
- socknamelen = *(*Tsocklen_t)(unsafe.Pointer(bp))
- v1 = libc.Xrealloc(tls, sockname, uint64(*(*Tsocklen_t)(unsafe.Pointer(bp))))
- new_sockname = v1
- if v1 == libc.UintptrFromInt32(0) {
- goto sock_or_realloc_error
- }
- sockname = new_sockname
- if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) || *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
- goto sock_or_realloc_error
- }
- }
- return sockname
- goto sock_or_realloc_error
- sock_or_realloc_error:
- ;
- libc.Xfree(tls, sockname)
- return libc.UintptrFromInt32(0)
- }
- func X_xcb_get_auth_info(tls *libc.TLS, fd int32, info uintptr, display int32) (r int32) {
- var authptr, sockname, v1, v2, v3 uintptr
- var gotsockname, ret int32
- _, _, _, _, _, _, _ = authptr, gotsockname, ret, sockname, v1, v2, v3
- /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
- xtrans/Xtransutils.c */
- sockname = libc.UintptrFromInt32(0)
- gotsockname = 0
- authptr = uintptr(0)
- ret = int32(1)
- /* Some systems like hpux or Hurd do not expose peer names
- * for UNIX Domain Sockets, but this is irrelevant,
- * since compute_auth() ignores the peer name in this
- * case anyway.*/
- v1 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetpeername), fd)
- sockname = v1
- if v1 == libc.UintptrFromInt32(0) {
- v2 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
- sockname = v2
- if v2 == libc.UintptrFromInt32(0) {
- return 0
- } /* can only authenticate sockets */
- if libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) != int32(m_PF_LOCAL) {
- libc.Xfree(tls, sockname)
- return 0 /* except for AF_UNIX, sockets should have peernames */
- }
- gotsockname = int32(1)
- }
- authptr = _get_authptr(tls, sockname, display)
- if authptr == uintptr(0) {
- libc.Xfree(tls, sockname)
- return 0 /* cannot find good auth data */
- }
- (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = libc.Int32FromUint64(_memdup(tls, info+8, (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)))
- if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen != 0) {
- goto no_auth
- } /* out of memory */
- if !(gotsockname != 0) {
- libc.Xfree(tls, sockname)
- v3 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
- sockname = v3
- if v3 == libc.UintptrFromInt32(0) {
- libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
- goto no_auth /* can only authenticate sockets */
- }
- }
- ret = _compute_auth(tls, info, authptr, sockname)
- if !(ret != 0) {
- libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
- goto no_auth /* cannot build auth record */
- }
- libc.Xfree(tls, sockname)
- sockname = libc.UintptrFromInt32(0)
- libxau.XXauDisposeAuth(tls, authptr)
- return ret
- goto no_auth
- no_auth:
- ;
- libc.Xfree(tls, sockname)
- (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname = uintptr(0)
- (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = 0
- libxau.XXauDisposeAuth(tls, authptr)
- return 0
- }
- /*
- * This file generated automatically from xproto.xml by c_client.py.
- * Edit at your peril.
- */
- /**
- * @defgroup XCB__API XCB API
- * @brief XCB Protocol Implementation.
- * @{
- **/
- /**
- * @}
- */
- func Xxcb_char2b_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Fdata += 2
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(2))
- }
- func Xxcb_char2b_end(tls *libc.TLS, i Txcb_char2b_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*2
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_window_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_window_end(tls *libc.TLS, i Txcb_window_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_pixmap_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_pixmap_end(tls *libc.TLS, i Txcb_pixmap_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_cursor_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_cursor_end(tls *libc.TLS, i Txcb_cursor_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_font_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_font_end(tls *libc.TLS, i Txcb_font_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_gcontext_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_gcontext_end(tls *libc.TLS, i Txcb_gcontext_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_colormap_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_colormap_end(tls *libc.TLS, i Txcb_colormap_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_atom_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_atom_end(tls *libc.TLS, i Txcb_atom_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_drawable_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_drawable_end(tls *libc.TLS, i Txcb_drawable_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_fontable_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_fontable_end(tls *libc.TLS, i Txcb_fontable_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_bool32_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_bool32_end(tls *libc.TLS, i Txcb_bool32_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_visualid_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_visualid_end(tls *libc.TLS, i Txcb_visualid_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_timestamp_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_timestamp_end(tls *libc.TLS, i Txcb_timestamp_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_keysym_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_keysym_end(tls *libc.TLS, i Txcb_keysym_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_keycode_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Fdata++
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
- }
- func Xxcb_keycode_end(tls *libc.TLS, i Txcb_keycode_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_keycode32_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_keycode32_end(tls *libc.TLS, i Txcb_keycode32_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_button_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Fdata++
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
- }
- func Xxcb_button_end(tls *libc.TLS, i Txcb_button_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_point_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Fdata += 4
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
- }
- func Xxcb_point_end(tls *libc.TLS, i Txcb_point_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*4
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_rectangle_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Fdata += 8
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
- }
- func Xxcb_rectangle_end(tls *libc.TLS, i Txcb_rectangle_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*8
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_arc_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Fdata += 12
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
- }
- func Xxcb_arc_end(tls *libc.TLS, i Txcb_arc_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*12
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_format_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Fdata += 8
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
- }
- func Xxcb_format_end(tls *libc.TLS, i Txcb_format_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*8
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_visualtype_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Fdata += 24
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(24))
- }
- func Xxcb_visualtype_end(tls *libc.TLS, i Txcb_visualtype_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*24
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_depth_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* visuals */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_depth_t)(unsafe.Pointer(_aux)).Fvisuals_len)*libc.Uint64FromInt64(24))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_depth_visuals(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*8
- }
- func Xxcb_depth_visuals_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
- }
- func Xxcb_depth_visuals_iterator(tls *libc.TLS, R uintptr) (r Txcb_visualtype_iterator_t) {
- var i Txcb_visualtype_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*8
- i.Frem = libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_depth_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_depth_sizeof(tls, R))
- (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_depth_end(tls *libc.TLS, _i Txcb_depth_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_depth_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_depth_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_screen_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
- _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* allowed_depths */
- i = uint32(0)
- for {
- if !(i < uint32((*Txcb_screen_t)(unsafe.Pointer(_aux)).Fallowed_depths_len)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_depth_sizeof(tls, xcb_tmp))
- xcb_block_len += xcb_tmp_len
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_screen_allowed_depths_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
- }
- func Xxcb_screen_allowed_depths_iterator(tls *libc.TLS, R uintptr) (r Txcb_depth_iterator_t) {
- var i Txcb_depth_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*40
- i.Frem = libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_screen_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_screen_sizeof(tls, R))
- (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_screen_end(tls *libc.TLS, _i Txcb_screen_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_screen_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_screen_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_setup_request_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* authorization_protocol_name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_name_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- xcb_align_to = uint32(4)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* authorization_protocol_data */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_data_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- xcb_align_to = uint32(4)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_setup_request_authorization_protocol_name(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_setup_request_authorization_protocol_name_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
- }
- func Xxcb_setup_request_authorization_protocol_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_setup_request_authorization_protocol_data(tls *libc.TLS, R uintptr) (r uintptr) {
- var prev Txcb_generic_iterator_t
- _ = prev
- prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
- return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
- }
- func Xxcb_setup_request_authorization_protocol_data_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
- }
- func Xxcb_setup_request_authorization_protocol_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i, prev Txcb_generic_iterator_t
- _, _ = i, prev
- prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
- i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_setup_request_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_setup_request_sizeof(tls, R))
- (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_setup_request_end(tls *libc.TLS, _i Txcb_setup_request_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_setup_request_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_setup_failed_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* reason */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_failed_t)(unsafe.Pointer(_aux)).Freason_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_setup_failed_reason(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*8
- }
- func Xxcb_setup_failed_reason_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
- }
- func Xxcb_setup_failed_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_setup_failed_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_setup_failed_sizeof(tls, R))
- (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_setup_failed_end(tls *libc.TLS, _i Txcb_setup_failed_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_setup_failed_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_setup_authenticate_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* reason */
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(_aux)).Flength)*libc.Int32FromInt32(4))*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_setup_authenticate_reason(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*8
- }
- func Xxcb_setup_authenticate_reason_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength) * int32(4)
- }
- func Xxcb_setup_authenticate_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_setup_authenticate_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_setup_authenticate_sizeof(tls, R))
- (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_setup_authenticate_end(tls *libc.TLS, _i Txcb_setup_authenticate_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_setup_authenticate_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_setup_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
- _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* vendor */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fvendor_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- xcb_align_to = uint32(4)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* pixmap_formats */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fpixmap_formats_len)*libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* roots */
- i = uint32(0)
- for {
- if !(i < uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Froots_len)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_screen_sizeof(tls, xcb_tmp))
- xcb_block_len += xcb_tmp_len
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_setup_vendor(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*40
- }
- func Xxcb_setup_vendor_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
- }
- func Xxcb_setup_vendor_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*40 + uintptr((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_setup_pixmap_formats(tls *libc.TLS, R uintptr) (r uintptr) {
- var prev Txcb_generic_iterator_t
- _ = prev
- prev = Xxcb_setup_vendor_end(tls, R)
- return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
- }
- func Xxcb_setup_pixmap_formats_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
- }
- func Xxcb_setup_pixmap_formats_iterator(tls *libc.TLS, R uintptr) (r Txcb_format_iterator_t) {
- var i Txcb_format_iterator_t
- var prev Txcb_generic_iterator_t
- _, _ = i, prev
- prev = Xxcb_setup_vendor_end(tls, R)
- i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)))
- i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_setup_roots_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
- }
- func Xxcb_setup_roots_iterator(tls *libc.TLS, R uintptr) (r Txcb_screen_iterator_t) {
- var i Txcb_screen_iterator_t
- var prev Txcb_generic_iterator_t
- _, _ = i, prev
- prev = Xxcb_format_end(tls, Xxcb_setup_pixmap_formats_iterator(tls, R))
- i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
- i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_setup_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_setup_sizeof(tls, R))
- (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_setup_end(tls *libc.TLS, _i Txcb_setup_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_setup_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_setup_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_client_message_data_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Fdata += 20
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(20))
- }
- func Xxcb_client_message_data_end(tls *libc.TLS, i Txcb_client_message_data_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*20
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_create_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
- var xcb_out, xcb_tmp uintptr
- var xcb_parts [16]Tiovec
- var _ /* xcb_pad0 at bp+0 */ [3]uint8
- _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
- xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
- xcb_buffer_len = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- xcb_pad = uint32(0)
- *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
- xcb_parts_idx = uint32(0)
- xcb_block_len = uint32(0)
- if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
- /* xcb_create_window_value_list_t.background_pixmap */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
- /* xcb_create_window_value_list_t.background_pixel */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
- /* xcb_create_window_value_list_t.border_pixmap */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
- /* xcb_create_window_value_list_t.border_pixel */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
- /* xcb_create_window_value_list_t.bit_gravity */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
- /* xcb_create_window_value_list_t.win_gravity */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
- /* xcb_create_window_value_list_t.backing_store */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
- /* xcb_create_window_value_list_t.backing_planes */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
- /* xcb_create_window_value_list_t.backing_pixel */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
- /* xcb_create_window_value_list_t.override_redirect */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
- /* xcb_create_window_value_list_t.save_under */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
- /* xcb_create_window_value_list_t.event_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
- /* xcb_create_window_value_list_t.do_not_propogate_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
- /* xcb_create_window_value_list_t.colormap */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
- /* xcb_create_window_value_list_t.cursor */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_parts[xcb_parts_idx].Fiov_base = bp
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
- xcb_parts_idx++
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- if libc.UintptrFromInt32(0) == xcb_out {
- /* allocate memory */
- xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
- *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
- }
- xcb_tmp = xcb_out
- i = uint32(0)
- for {
- if !(i < xcb_parts_idx) {
- break
- }
- if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
- libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
- }
- if uint64(0) != xcb_parts[i].Fiov_len {
- xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
- }
- goto _1
- _1:
- ;
- i++
- }
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_create_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
- var xcb_tmp uintptr
- _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
- /* xcb_create_window_value_list_t.background_pixmap */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
- /* xcb_create_window_value_list_t.background_pixel */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
- /* xcb_create_window_value_list_t.border_pixmap */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
- /* xcb_create_window_value_list_t.border_pixel */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
- /* xcb_create_window_value_list_t.bit_gravity */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
- /* xcb_create_window_value_list_t.win_gravity */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
- /* xcb_create_window_value_list_t.backing_store */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
- /* xcb_create_window_value_list_t.backing_planes */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
- /* xcb_create_window_value_list_t.backing_pixel */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
- /* xcb_create_window_value_list_t.override_redirect */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
- /* xcb_create_window_value_list_t.save_under */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
- /* xcb_create_window_value_list_t.event_mask */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
- /* xcb_create_window_value_list_t.do_not_propogate_mask */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
- /* xcb_create_window_value_list_t.colormap */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
- /* xcb_create_window_value_list_t.cursor */
- (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_create_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
- bp := tls.Alloc(64)
- defer tls.Free(64)
- var _ /* _aux at bp+0 */ Txcb_create_window_value_list_t
- return Xxcb_create_window_value_list_unpack(tls, _buffer, value_mask, bp)
- }
- func Xxcb_create_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* value_list */
- xcb_block_len += libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_create_window_checked(tls *libc.TLS, c uintptr, depth Tuint8_t, wid Txcb_window_t, parent Txcb_window_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t, border_width Tuint16_t, _class Tuint16_t, visual Txcb_visualid_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req)))
- return xcb_ret
- }
- var _xcb_req = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_window(tls *libc.TLS, c uintptr, depth Tuint8_t, wid Txcb_window_t, parent Txcb_window_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t, border_width Tuint16_t, _class Tuint16_t, visual Txcb_visualid_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req1)))
- return xcb_ret
- }
- var _xcb_req1 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_window_aux_checked(tls *libc.TLS, c uintptr, depth Tuint8_t, wid Txcb_window_t, parent Txcb_window_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t, border_width Tuint16_t, _class Tuint16_t, visual Txcb_visualid_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(128)
- defer tls.Free(128)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+112 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req2)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
- return xcb_ret
- }
- var _xcb_req2 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_window_aux(tls *libc.TLS, c uintptr, depth Tuint8_t, wid Txcb_window_t, parent Txcb_window_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t, border_width Tuint16_t, _class Tuint16_t, visual Txcb_visualid_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(128)
- defer tls.Free(128)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+112 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
- (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req3)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
- return xcb_ret
- }
- var _xcb_req3 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_change_window_attributes_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
- var xcb_out, xcb_tmp uintptr
- var xcb_parts [16]Tiovec
- var _ /* xcb_pad0 at bp+0 */ [3]uint8
- _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
- xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
- xcb_buffer_len = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- xcb_pad = uint32(0)
- *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
- xcb_parts_idx = uint32(0)
- xcb_block_len = uint32(0)
- if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
- /* xcb_change_window_attributes_value_list_t.background_pixmap */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
- /* xcb_change_window_attributes_value_list_t.background_pixel */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
- /* xcb_change_window_attributes_value_list_t.border_pixmap */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
- /* xcb_change_window_attributes_value_list_t.border_pixel */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
- /* xcb_change_window_attributes_value_list_t.bit_gravity */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
- /* xcb_change_window_attributes_value_list_t.win_gravity */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
- /* xcb_change_window_attributes_value_list_t.backing_store */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
- /* xcb_change_window_attributes_value_list_t.backing_planes */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
- /* xcb_change_window_attributes_value_list_t.backing_pixel */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
- /* xcb_change_window_attributes_value_list_t.override_redirect */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
- /* xcb_change_window_attributes_value_list_t.save_under */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
- /* xcb_change_window_attributes_value_list_t.event_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
- /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
- /* xcb_change_window_attributes_value_list_t.colormap */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
- /* xcb_change_window_attributes_value_list_t.cursor */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_parts[xcb_parts_idx].Fiov_base = bp
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
- xcb_parts_idx++
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- if libc.UintptrFromInt32(0) == xcb_out {
- /* allocate memory */
- xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
- *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
- }
- xcb_tmp = xcb_out
- i = uint32(0)
- for {
- if !(i < xcb_parts_idx) {
- break
- }
- if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
- libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
- }
- if uint64(0) != xcb_parts[i].Fiov_len {
- xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
- }
- goto _1
- _1:
- ;
- i++
- }
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_window_attributes_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
- var xcb_tmp uintptr
- _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
- /* xcb_change_window_attributes_value_list_t.background_pixmap */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
- /* xcb_change_window_attributes_value_list_t.background_pixel */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
- /* xcb_change_window_attributes_value_list_t.border_pixmap */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
- /* xcb_change_window_attributes_value_list_t.border_pixel */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
- /* xcb_change_window_attributes_value_list_t.bit_gravity */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
- /* xcb_change_window_attributes_value_list_t.win_gravity */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
- /* xcb_change_window_attributes_value_list_t.backing_store */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
- /* xcb_change_window_attributes_value_list_t.backing_planes */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
- /* xcb_change_window_attributes_value_list_t.backing_pixel */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
- /* xcb_change_window_attributes_value_list_t.override_redirect */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
- /* xcb_change_window_attributes_value_list_t.save_under */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
- /* xcb_change_window_attributes_value_list_t.event_mask */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
- /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
- /* xcb_change_window_attributes_value_list_t.colormap */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
- /* xcb_change_window_attributes_value_list_t.cursor */
- (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_window_attributes_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
- bp := tls.Alloc(64)
- defer tls.Free(64)
- var _ /* _aux at bp+0 */ Txcb_change_window_attributes_value_list_t
- return Xxcb_change_window_attributes_value_list_unpack(tls, _buffer, value_mask, bp)
- }
- func Xxcb_change_window_attributes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* value_list */
- xcb_block_len += libc.Uint32FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_window_attributes_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_window_attributes_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_window_attributes_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req4)))
- return xcb_ret
- }
- var _xcb_req4 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_window_attributes_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req5)))
- return xcb_ret
- }
- var _xcb_req5 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_window_attributes_aux_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_window_attributes_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req6)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req6 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_window_attributes_aux(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_window_attributes_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req7)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req7 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_window_attributes_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_get_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_window_attributes_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req8)))
- return xcb_ret
- }
- var _xcb_req8 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
- }
- func Xxcb_get_window_attributes_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_window_attributes_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req9)))
- return xcb_ret
- }
- var _xcb_req9 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
- }
- func Xxcb_get_window_attributes_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_window_attributes_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_destroy_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req10)))
- return xcb_ret
- }
- var _xcb_req10 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_DESTROY_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_destroy_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req11)))
- return xcb_ret
- }
- var _xcb_req11 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_DESTROY_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_destroy_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req12)))
- return xcb_ret
- }
- var _xcb_req12 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
- Fisvoid: uint8(1),
- }
- func Xxcb_destroy_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req13)))
- return xcb_ret
- }
- var _xcb_req13 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_save_set_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req14)))
- return xcb_ret
- }
- var _xcb_req14 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_save_set(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req15)))
- return xcb_ret
- }
- var _xcb_req15 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
- Fisvoid: uint8(1),
- }
- func Xxcb_reparent_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, parent Txcb_window_t, x Tint16_t, y Tint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req16)))
- return xcb_ret
- }
- var _xcb_req16 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_REPARENT_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_reparent_window(tls *libc.TLS, c uintptr, window Txcb_window_t, parent Txcb_window_t, x Tint16_t, y Tint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req17)))
- return xcb_ret
- }
- var _xcb_req17 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_REPARENT_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_map_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req18)))
- return xcb_ret
- }
- var _xcb_req18 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_MAP_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_map_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req19)))
- return xcb_ret
- }
- var _xcb_req19 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_MAP_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_map_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req20)))
- return xcb_ret
- }
- var _xcb_req20 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
- Fisvoid: uint8(1),
- }
- func Xxcb_map_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req21)))
- return xcb_ret
- }
- var _xcb_req21 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
- Fisvoid: uint8(1),
- }
- func Xxcb_unmap_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req22)))
- return xcb_ret
- }
- var _xcb_req22 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNMAP_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_unmap_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req23)))
- return xcb_ret
- }
- var _xcb_req23 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNMAP_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_unmap_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req24)))
- return xcb_ret
- }
- var _xcb_req24 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
- Fisvoid: uint8(1),
- }
- func Xxcb_unmap_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req25)))
- return xcb_ret
- }
- var _xcb_req25 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
- Fisvoid: uint8(1),
- }
- func Xxcb_configure_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
- var xcb_out, xcb_tmp uintptr
- var xcb_parts [8]Tiovec
- var _ /* xcb_pad0 at bp+0 */ [3]uint8
- _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
- xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
- xcb_buffer_len = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- xcb_pad = uint32(0)
- *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
- xcb_parts_idx = uint32(0)
- xcb_block_len = uint32(0)
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
- /* xcb_configure_window_value_list_t.x */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
- /* xcb_configure_window_value_list_t.y */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
- /* xcb_configure_window_value_list_t.width */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
- /* xcb_configure_window_value_list_t.height */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
- /* xcb_configure_window_value_list_t.border_width */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
- /* xcb_configure_window_value_list_t.sibling */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
- /* xcb_configure_window_value_list_t.stack_mode */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_parts[xcb_parts_idx].Fiov_base = bp
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
- xcb_parts_idx++
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- if libc.UintptrFromInt32(0) == xcb_out {
- /* allocate memory */
- xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
- *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
- }
- xcb_tmp = xcb_out
- i = uint32(0)
- for {
- if !(i < xcb_parts_idx) {
- break
- }
- if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
- libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
- }
- if uint64(0) != xcb_parts[i].Fiov_len {
- xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
- }
- goto _1
- _1:
- ;
- i++
- }
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_configure_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
- var xcb_tmp uintptr
- _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
- /* xcb_configure_window_value_list_t.x */
- (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fx = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
- /* xcb_configure_window_value_list_t.y */
- (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fy = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
- /* xcb_configure_window_value_list_t.width */
- (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fwidth = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
- /* xcb_configure_window_value_list_t.height */
- (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fheight = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
- /* xcb_configure_window_value_list_t.border_width */
- (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
- /* xcb_configure_window_value_list_t.sibling */
- (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fsibling = *(*Txcb_window_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
- /* xcb_configure_window_value_list_t.stack_mode */
- (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fstack_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_configure_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t) (r int32) {
- bp := tls.Alloc(32)
- defer tls.Free(32)
- var _ /* _aux at bp+0 */ Txcb_configure_window_value_list_t
- return Xxcb_configure_window_value_list_unpack(tls, _buffer, value_mask, bp)
- }
- func Xxcb_configure_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* value_list */
- xcb_block_len += libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_configure_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_configure_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint16_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- libc.Xmemset(tls, bp+80+10, 0, uint64(2))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_configure_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req26)))
- return xcb_ret
- }
- var _xcb_req26 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_configure_window(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint16_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- libc.Xmemset(tls, bp+80+10, 0, uint64(2))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_configure_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req27)))
- return xcb_ret
- }
- var _xcb_req27 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_configure_window_aux_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint16_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- libc.Xmemset(tls, bp+80+10, 0, uint64(2))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_configure_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req28)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req28 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_configure_window_aux(tls *libc.TLS, c uintptr, window Txcb_window_t, value_mask Tuint16_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
- (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- libc.Xmemset(tls, bp+80+10, 0, uint64(2))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_configure_window_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req29)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req29 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_configure_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_circulate_window_checked(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
- (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req30)))
- return xcb_ret
- }
- var _xcb_req30 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_circulate_window(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
- (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req31)))
- return xcb_ret
- }
- var _xcb_req31 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
- Fisvoid: uint8(1),
- }
- func Xxcb_get_geometry(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_geometry_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req32)))
- return xcb_ret
- }
- var _xcb_req32 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_GEOMETRY),
- }
- func Xxcb_get_geometry_unchecked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_geometry_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req33)))
- return xcb_ret
- }
- var _xcb_req33 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_GEOMETRY),
- }
- func Xxcb_get_geometry_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_geometry_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_query_tree_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* children */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_tree_reply_t)(unsafe.Pointer(_aux)).Fchildren_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_query_tree(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_tree_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req34)))
- return xcb_ret
- }
- var _xcb_req34 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_TREE),
- }
- func Xxcb_query_tree_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_tree_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req35)))
- return xcb_ret
- }
- var _xcb_req35 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_TREE),
- }
- func Xxcb_query_tree_children(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_query_tree_children_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)
- }
- func Xxcb_query_tree_children_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_query_tree_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_tree_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_intern_atom_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_intern_atom_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_intern_atom(tls *libc.TLS, c uintptr, only_if_exists Tuint8_t, name_len Tuint16_t, name uintptr) (r Txcb_intern_atom_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_intern_atom_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
- (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req36)))
- return xcb_ret
- }
- var _xcb_req36 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_INTERN_ATOM),
- }
- func Xxcb_intern_atom_unchecked(tls *libc.TLS, c uintptr, only_if_exists Tuint8_t, name_len Tuint16_t, name uintptr) (r Txcb_intern_atom_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_intern_atom_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
- (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req37)))
- return xcb_ret
- }
- var _xcb_req37 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_INTERN_ATOM),
- }
- func Xxcb_intern_atom_reply(tls *libc.TLS, c uintptr, cookie Txcb_intern_atom_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_get_atom_name_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_atom_name(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_atom_name_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req38)))
- return xcb_ret
- }
- var _xcb_req38 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_ATOM_NAME),
- }
- func Xxcb_get_atom_name_unchecked(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_atom_name_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req39)))
- return xcb_ret
- }
- var _xcb_req39 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_ATOM_NAME),
- }
- func Xxcb_get_atom_name_name(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_get_atom_name_name_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
- }
- func Xxcb_get_atom_name_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_atom_name_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_atom_name_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_change_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* data */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_property_request_t)(unsafe.Pointer(_aux)).Fdata_len*uint32((*Txcb_change_property_request_t)(unsafe.Pointer(_aux)).Fformat)/libc.Uint32FromInt32(8))*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_property_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t, property Txcb_atom_t, type1 Txcb_atom_t, format Tuint8_t, data_len Tuint32_t, data uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(128)
- defer tls.Free(128)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
- libc.Xmemset(tls, bp+96+17, 0, uint64(3))
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* void data */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req40)))
- return xcb_ret
- }
- var _xcb_req40 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_property(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t, property Txcb_atom_t, type1 Txcb_atom_t, format Tuint8_t, data_len Tuint32_t, data uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(128)
- defer tls.Free(128)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
- libc.Xmemset(tls, bp+96+17, 0, uint64(3))
- (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* void data */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req41)))
- return xcb_ret
- }
- var _xcb_req41 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_property_data(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*24
- }
- func Xxcb_change_property_data_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint32((*Txcb_change_property_request_t)(unsafe.Pointer(R)).Fdata_len * uint32((*Txcb_change_property_request_t)(unsafe.Pointer(R)).Fformat) / libc.Uint32FromInt32(8))
- }
- func Xxcb_change_property_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*24 + uintptr((*Txcb_change_property_request_t)(unsafe.Pointer(R)).Fdata_len*uint32((*Txcb_change_property_request_t)(unsafe.Pointer(R)).Fformat)/libc.Uint32FromInt32(8))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_delete_property_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req42)))
- return xcb_ret
- }
- var _xcb_req42 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_DELETE_PROPERTY),
- Fisvoid: uint8(1),
- }
- func Xxcb_delete_property(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req43)))
- return xcb_ret
- }
- var _xcb_req43 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_DELETE_PROPERTY),
- Fisvoid: uint8(1),
- }
- func Xxcb_get_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* value */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_property_reply_t)(unsafe.Pointer(_aux)).Fvalue_len*libc.Uint32FromInt32(libc.Int32FromUint8((*Txcb_get_property_reply_t)(unsafe.Pointer(_aux)).Fformat)/libc.Int32FromInt32(8)))*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_property(tls *libc.TLS, c uintptr, _delete Tuint8_t, window Txcb_window_t, property Txcb_atom_t, type1 Txcb_atom_t, long_offset Tuint32_t, long_length Tuint32_t) (r Txcb_get_property_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_get_property_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req44)))
- return xcb_ret
- }
- var _xcb_req44 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_PROPERTY),
- }
- func Xxcb_get_property_unchecked(tls *libc.TLS, c uintptr, _delete Tuint8_t, window Txcb_window_t, property Txcb_atom_t, type1 Txcb_atom_t, long_offset Tuint32_t, long_length Tuint32_t) (r Txcb_get_property_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_get_property_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
- (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req45)))
- return xcb_ret
- }
- var _xcb_req45 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_PROPERTY),
- }
- func Xxcb_get_property_value(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_get_property_value_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint32((*Txcb_get_property_reply_t)(unsafe.Pointer(R)).Fvalue_len * libc.Uint32FromInt32(libc.Int32FromUint8((*Txcb_get_property_reply_t)(unsafe.Pointer(R)).Fformat)/libc.Int32FromInt32(8)))
- }
- func Xxcb_get_property_value_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_property_reply_t)(unsafe.Pointer(R)).Fvalue_len*libc.Uint32FromInt32(libc.Int32FromUint8((*Txcb_get_property_reply_t)(unsafe.Pointer(R)).Fformat)/libc.Int32FromInt32(8)))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_property_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_property_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_list_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* atoms */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_properties_reply_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_list_properties(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_properties_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req46)))
- return xcb_ret
- }
- var _xcb_req46 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_PROPERTIES),
- }
- func Xxcb_list_properties_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_properties_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req47)))
- return xcb_ret
- }
- var _xcb_req47 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_PROPERTIES),
- }
- func Xxcb_list_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_list_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)
- }
- func Xxcb_list_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_list_properties_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_properties_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_set_selection_owner_checked(tls *libc.TLS, c uintptr, owner Txcb_window_t, selection Txcb_atom_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req48)))
- return xcb_ret
- }
- var _xcb_req48 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_selection_owner(tls *libc.TLS, c uintptr, owner Txcb_window_t, selection Txcb_atom_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
- (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req49)))
- return xcb_ret
- }
- var _xcb_req49 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
- Fisvoid: uint8(1),
- }
- func Xxcb_get_selection_owner(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_selection_owner_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req50)))
- return xcb_ret
- }
- var _xcb_req50 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
- }
- func Xxcb_get_selection_owner_unchecked(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_selection_owner_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req51)))
- return xcb_ret
- }
- var _xcb_req51 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
- }
- func Xxcb_get_selection_owner_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_selection_owner_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_convert_selection_checked(tls *libc.TLS, c uintptr, requestor Txcb_window_t, selection Txcb_atom_t, target Txcb_atom_t, property Txcb_atom_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req52)))
- return xcb_ret
- }
- var _xcb_req52 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CONVERT_SELECTION),
- Fisvoid: uint8(1),
- }
- func Xxcb_convert_selection(tls *libc.TLS, c uintptr, requestor Txcb_window_t, selection Txcb_atom_t, target Txcb_atom_t, property Txcb_atom_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
- (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req53)))
- return xcb_ret
- }
- var _xcb_req53 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CONVERT_SELECTION),
- Fisvoid: uint8(1),
- }
- func Xxcb_send_event_checked(tls *libc.TLS, c uintptr, propagate Tuint8_t, destination Txcb_window_t, event_mask Tuint32_t, event uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
- (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
- (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req54)))
- return xcb_ret
- }
- var _xcb_req54 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SEND_EVENT),
- Fisvoid: uint8(1),
- }
- func Xxcb_send_event(tls *libc.TLS, c uintptr, propagate Tuint8_t, destination Txcb_window_t, event_mask Tuint32_t, event uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
- (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
- (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req55)))
- return xcb_ret
- }
- var _xcb_req55 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SEND_EVENT),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_pointer(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, event_mask Tuint16_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t, confine_to Txcb_window_t, cursor Txcb_cursor_t, time Txcb_timestamp_t) (r Txcb_grab_pointer_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_grab_pointer_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req56)))
- return xcb_ret
- }
- var _xcb_req56 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_POINTER),
- }
- func Xxcb_grab_pointer_unchecked(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, event_mask Tuint16_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t, confine_to Txcb_window_t, cursor Txcb_cursor_t, time Txcb_timestamp_t) (r Txcb_grab_pointer_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_grab_pointer_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req57)))
- return xcb_ret
- }
- var _xcb_req57 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_POINTER),
- }
- func Xxcb_grab_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_pointer_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_ungrab_pointer_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req58)))
- return xcb_ret
- }
- var _xcb_req58 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_POINTER),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_pointer(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req59)))
- return xcb_ret
- }
- var _xcb_req59 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_POINTER),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_button_checked(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, event_mask Tuint16_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t, confine_to Txcb_window_t, cursor Txcb_cursor_t, button Tuint8_t, modifiers Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req60)))
- return xcb_ret
- }
- var _xcb_req60 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_BUTTON),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_button(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, event_mask Tuint16_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t, confine_to Txcb_window_t, cursor Txcb_cursor_t, button Tuint8_t, modifiers Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req61)))
- return xcb_ret
- }
- var _xcb_req61 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_BUTTON),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_button_checked(tls *libc.TLS, c uintptr, button Tuint8_t, grab_window Txcb_window_t, modifiers Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
- (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- libc.Xmemset(tls, bp+64+10, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req62)))
- return xcb_ret
- }
- var _xcb_req62 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_button(tls *libc.TLS, c uintptr, button Tuint8_t, grab_window Txcb_window_t, modifiers Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
- (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- libc.Xmemset(tls, bp+64+10, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req63)))
- return xcb_ret
- }
- var _xcb_req63 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_active_pointer_grab_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t, time Txcb_timestamp_t, event_mask Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- libc.Xmemset(tls, bp+64+14, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req64)))
- return xcb_ret
- }
- var _xcb_req64 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_active_pointer_grab(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t, time Txcb_timestamp_t, event_mask Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
- libc.Xmemset(tls, bp+64+14, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req65)))
- return xcb_ret
- }
- var _xcb_req65 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_keyboard(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, time Txcb_timestamp_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t) (r Txcb_grab_keyboard_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_grab_keyboard_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- libc.Xmemset(tls, bp+64+14, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req66)))
- return xcb_ret
- }
- var _xcb_req66 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
- }
- func Xxcb_grab_keyboard_unchecked(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, time Txcb_timestamp_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t) (r Txcb_grab_keyboard_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_grab_keyboard_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- libc.Xmemset(tls, bp+64+14, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req67)))
- return xcb_ret
- }
- var _xcb_req67 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
- }
- func Xxcb_grab_keyboard_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_keyboard_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_ungrab_keyboard_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req68)))
- return xcb_ret
- }
- var _xcb_req68 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_keyboard(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req69)))
- return xcb_ret
- }
- var _xcb_req69 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_key_checked(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, modifiers Tuint16_t, key Txcb_keycode_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- libc.Xmemset(tls, bp+64+13, 0, uint64(3))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req70)))
- return xcb_ret
- }
- var _xcb_req70 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_KEY),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_key(tls *libc.TLS, c uintptr, owner_events Tuint8_t, grab_window Txcb_window_t, modifiers Tuint16_t, key Txcb_keycode_t, pointer_mode Tuint8_t, keyboard_mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
- (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
- libc.Xmemset(tls, bp+64+13, 0, uint64(3))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req71)))
- return xcb_ret
- }
- var _xcb_req71 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_KEY),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_key_checked(tls *libc.TLS, c uintptr, key Txcb_keycode_t, grab_window Txcb_window_t, modifiers Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
- (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- libc.Xmemset(tls, bp+64+10, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req72)))
- return xcb_ret
- }
- var _xcb_req72 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_KEY),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_key(tls *libc.TLS, c uintptr, key Txcb_keycode_t, grab_window Txcb_window_t, modifiers Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
- (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
- (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
- libc.Xmemset(tls, bp+64+10, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req73)))
- return xcb_ret
- }
- var _xcb_req73 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_KEY),
- Fisvoid: uint8(1),
- }
- func Xxcb_allow_events_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req74)))
- return xcb_ret
- }
- var _xcb_req74 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOW_EVENTS),
- Fisvoid: uint8(1),
- }
- func Xxcb_allow_events(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req75)))
- return xcb_ret
- }
- var _xcb_req75 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOW_EVENTS),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req76)))
- return xcb_ret
- }
- var _xcb_req76 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_SERVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_grab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req77)))
- return xcb_ret
- }
- var _xcb_req77 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GRAB_SERVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req78)))
- return xcb_ret
- }
- var _xcb_req78 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_SERVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_ungrab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req79)))
- return xcb_ret
- }
- var _xcb_req79 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNGRAB_SERVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_query_pointer(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_pointer_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req80)))
- return xcb_ret
- }
- var _xcb_req80 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_POINTER),
- }
- func Xxcb_query_pointer_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_pointer_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req81)))
- return xcb_ret
- }
- var _xcb_req81 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_POINTER),
- }
- func Xxcb_query_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_pointer_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_timecoord_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Fdata += 8
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
- }
- func Xxcb_timecoord_end(tls *libc.TLS, i Txcb_timecoord_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*8
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_get_motion_events_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* events */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(_aux)).Fevents_len)*libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_motion_events(tls *libc.TLS, c uintptr, window Txcb_window_t, start Txcb_timestamp_t, stop Txcb_timestamp_t) (r Txcb_get_motion_events_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_motion_events_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req82)))
- return xcb_ret
- }
- var _xcb_req82 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
- }
- func Xxcb_get_motion_events_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t, start Txcb_timestamp_t, stop Txcb_timestamp_t) (r Txcb_get_motion_events_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_motion_events_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
- (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req83)))
- return xcb_ret
- }
- var _xcb_req83 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
- }
- func Xxcb_get_motion_events_events(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_get_motion_events_events_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
- }
- func Xxcb_get_motion_events_events_iterator(tls *libc.TLS, R uintptr) (r Txcb_timecoord_iterator_t) {
- var i Txcb_timecoord_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32
- i.Frem = libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_motion_events_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_motion_events_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_translate_coordinates(tls *libc.TLS, c uintptr, src_window Txcb_window_t, dst_window Txcb_window_t, src_x Tint16_t, src_y Tint16_t) (r Txcb_translate_coordinates_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_translate_coordinates_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req84)))
- return xcb_ret
- }
- var _xcb_req84 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
- }
- func Xxcb_translate_coordinates_unchecked(tls *libc.TLS, c uintptr, src_window Txcb_window_t, dst_window Txcb_window_t, src_x Tint16_t, src_y Tint16_t) (r Txcb_translate_coordinates_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_translate_coordinates_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req85)))
- return xcb_ret
- }
- var _xcb_req85 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
- }
- func Xxcb_translate_coordinates_reply(tls *libc.TLS, c uintptr, cookie Txcb_translate_coordinates_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_warp_pointer_checked(tls *libc.TLS, c uintptr, src_window Txcb_window_t, dst_window Txcb_window_t, src_x Tint16_t, src_y Tint16_t, src_width Tuint16_t, src_height Tuint16_t, dst_x Tint16_t, dst_y Tint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req86)))
- return xcb_ret
- }
- var _xcb_req86 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_WARP_POINTER),
- Fisvoid: uint8(1),
- }
- func Xxcb_warp_pointer(tls *libc.TLS, c uintptr, src_window Txcb_window_t, dst_window Txcb_window_t, src_x Tint16_t, src_y Tint16_t, src_width Tuint16_t, src_height Tuint16_t, dst_x Tint16_t, dst_y Tint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
- (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req87)))
- return xcb_ret
- }
- var _xcb_req87 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_WARP_POINTER),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_input_focus_checked(tls *libc.TLS, c uintptr, revert_to Tuint8_t, focus Txcb_window_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
- (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
- (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req88)))
- return xcb_ret
- }
- var _xcb_req88 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_input_focus(tls *libc.TLS, c uintptr, revert_to Tuint8_t, focus Txcb_window_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
- (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
- (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req89)))
- return xcb_ret
- }
- var _xcb_req89 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
- Fisvoid: uint8(1),
- }
- func Xxcb_get_input_focus(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_input_focus_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req90)))
- return xcb_ret
- }
- var _xcb_req90 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
- }
- func Xxcb_get_input_focus_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_input_focus_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req91)))
- return xcb_ret
- }
- var _xcb_req91 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
- }
- func Xxcb_get_input_focus_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_input_focus_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_query_keymap(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_keymap_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req92)))
- return xcb_ret
- }
- var _xcb_req92 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_KEYMAP),
- }
- func Xxcb_query_keymap_unchecked(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_keymap_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req93)))
- return xcb_ret
- }
- var _xcb_req93 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_KEYMAP),
- }
- func Xxcb_query_keymap_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_keymap_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_open_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_open_font_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_open_font_checked(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
- (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+10, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req94)))
- return xcb_ret
- }
- var _xcb_req94 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_OPEN_FONT),
- Fisvoid: uint8(1),
- }
- func Xxcb_open_font(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
- (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+10, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req95)))
- return xcb_ret
- }
- var _xcb_req95 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_OPEN_FONT),
- Fisvoid: uint8(1),
- }
- func Xxcb_open_font_name(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_open_font_name_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
- }
- func Xxcb_open_font_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_close_font_checked(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req96)))
- return xcb_ret
- }
- var _xcb_req96 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CLOSE_FONT),
- Fisvoid: uint8(1),
- }
- func Xxcb_close_font(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req97)))
- return xcb_ret
- }
- var _xcb_req97 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CLOSE_FONT),
- Fisvoid: uint8(1),
- }
- func Xxcb_fontprop_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Fdata += 8
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
- }
- func Xxcb_fontprop_end(tls *libc.TLS, i Txcb_fontprop_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*8
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_charinfo_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Fdata += 12
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
- }
- func Xxcb_charinfo_end(tls *libc.TLS, i Txcb_charinfo_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*12
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_query_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(60))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* properties */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fproperties_len)*libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* char_infos */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fchar_infos_len)*libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_query_font(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_font_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req98)))
- return xcb_ret
- }
- var _xcb_req98 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_FONT),
- }
- func Xxcb_query_font_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_font_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req99)))
- return xcb_ret
- }
- var _xcb_req99 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_FONT),
- }
- func Xxcb_query_font_properties(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*60
- }
- func Xxcb_query_font_properties_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
- }
- func Xxcb_query_font_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
- var i Txcb_fontprop_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*60
- i.Frem = libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_query_font_char_infos(tls *libc.TLS, R uintptr) (r uintptr) {
- var prev Txcb_generic_iterator_t
- _ = prev
- prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
- return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3)) + libc.UintptrFromInt32(0)
- }
- func Xxcb_query_font_char_infos_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
- }
- func Xxcb_query_font_char_infos_iterator(tls *libc.TLS, R uintptr) (r Txcb_charinfo_iterator_t) {
- var i Txcb_charinfo_iterator_t
- var prev Txcb_generic_iterator_t
- _, _ = i, prev
- prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
- i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
- i.Frem = libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_query_font_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_font_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_query_text_extents_sizeof(tls *libc.TLS, _buffer uintptr, string_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* string */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(string_len)*libc.Uint64FromInt64(2))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_query_text_extents(tls *libc.TLS, c uintptr, font Txcb_fontable_t, string_len Tuint32_t, string1 uintptr) (r Txcb_query_text_extents_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_query_text_extents_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
- (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_char2b_t string */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req100)))
- return xcb_ret
- }
- var _xcb_req100 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
- }
- func Xxcb_query_text_extents_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t, string_len Tuint32_t, string1 uintptr) (r Txcb_query_text_extents_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_query_text_extents_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
- (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_char2b_t string */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req101)))
- return xcb_ret
- }
- var _xcb_req101 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
- }
- func Xxcb_query_text_extents_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_text_extents_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_str_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_str_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_str_name(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)
- }
- func Xxcb_str_name_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
- }
- func Xxcb_str_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1) + uintptr((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_str_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_str_sizeof(tls, R))
- (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_str_end(tls *libc.TLS, _i Txcb_str_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_str_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_str_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_list_fonts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* pattern */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_list_fonts(tls *libc.TLS, c uintptr, max_names Tuint16_t, pattern_len Tuint16_t, pattern uintptr) (r Txcb_list_fonts_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_list_fonts_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
- (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char pattern */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req102)))
- return xcb_ret
- }
- var _xcb_req102 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_LIST_FONTS),
- }
- func Xxcb_list_fonts_unchecked(tls *libc.TLS, c uintptr, max_names Tuint16_t, pattern_len Tuint16_t, pattern uintptr) (r Txcb_list_fonts_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_list_fonts_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
- (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char pattern */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req103)))
- return xcb_ret
- }
- var _xcb_req103 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_LIST_FONTS),
- }
- func Xxcb_list_fonts_names_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
- }
- func Xxcb_list_fonts_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
- var i Txcb_str_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32
- i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_list_fonts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_list_fonts_with_info_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* pattern */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_list_fonts_with_info(tls *libc.TLS, c uintptr, max_names Tuint16_t, pattern_len Tuint16_t, pattern uintptr) (r Txcb_list_fonts_with_info_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_list_fonts_with_info_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
- (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char pattern */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req104)))
- return xcb_ret
- }
- var _xcb_req104 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
- }
- func Xxcb_list_fonts_with_info_unchecked(tls *libc.TLS, c uintptr, max_names Tuint16_t, pattern_len Tuint16_t, pattern uintptr) (r Txcb_list_fonts_with_info_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_list_fonts_with_info_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
- (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char pattern */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req105)))
- return xcb_ret
- }
- var _xcb_req105 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
- }
- func Xxcb_list_fonts_with_info_properties(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*60
- }
- func Xxcb_list_fonts_with_info_properties_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
- }
- func Xxcb_list_fonts_with_info_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
- var i Txcb_fontprop_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*60
- i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_list_fonts_with_info_name(tls *libc.TLS, R uintptr) (r uintptr) {
- var prev Txcb_generic_iterator_t
- _ = prev
- prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
- return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
- }
- func Xxcb_list_fonts_with_info_name_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
- }
- func Xxcb_list_fonts_with_info_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i, prev Txcb_generic_iterator_t
- _, _ = i, prev
- prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
- i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + uintptr((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_list_fonts_with_info_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_with_info_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_set_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
- _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* font */
- i = uint32(0)
- for {
- if !(i < uint32((*Txcb_set_font_path_request_t)(unsafe.Pointer(_aux)).Ffont_qty)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
- xcb_block_len += xcb_tmp_len
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_set_font_path_checked(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var i, xcb_tmp_len uint32
- var xcb_ret Txcb_void_cookie_t
- var xcb_tmp uintptr
- var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
- (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_str_t font */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
- xcb_tmp = font
- i = uint32(0)
- for {
- if !(i < uint32(font_qty)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req106)))
- return xcb_ret
- }
- var _xcb_req106 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_FONT_PATH),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_font_path(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var i, xcb_tmp_len uint32
- var xcb_ret Txcb_void_cookie_t
- var xcb_tmp uintptr
- var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
- (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_str_t font */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
- xcb_tmp = font
- i = uint32(0)
- for {
- if !(i < uint32(font_qty)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req107)))
- return xcb_ret
- }
- var _xcb_req107 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_FONT_PATH),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_font_path_font_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
- }
- func Xxcb_set_font_path_font_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
- var i Txcb_str_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*8
- i.Frem = libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
- _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* path */
- i = uint32(0)
- for {
- if !(i < uint32((*Txcb_get_font_path_reply_t)(unsafe.Pointer(_aux)).Fpath_len)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
- xcb_block_len += xcb_tmp_len
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_font_path(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_font_path_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req108)))
- return xcb_ret
- }
- var _xcb_req108 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_FONT_PATH),
- }
- func Xxcb_get_font_path_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_font_path_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req109)))
- return xcb_ret
- }
- var _xcb_req109 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_FONT_PATH),
- }
- func Xxcb_get_font_path_path_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
- }
- func Xxcb_get_font_path_path_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
- var i Txcb_str_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32
- i.Frem = libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_font_path_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_font_path_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_create_pixmap_checked(tls *libc.TLS, c uintptr, depth Tuint8_t, pid Txcb_pixmap_t, drawable Txcb_drawable_t, width Tuint16_t, height Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req110)))
- return xcb_ret
- }
- var _xcb_req110 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_PIXMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_pixmap(tls *libc.TLS, c uintptr, depth Tuint8_t, pid Txcb_pixmap_t, drawable Txcb_drawable_t, width Tuint16_t, height Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req111)))
- return xcb_ret
- }
- var _xcb_req111 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_PIXMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_pixmap_checked(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req112)))
- return xcb_ret
- }
- var _xcb_req112 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_PIXMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_pixmap(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req113)))
- return xcb_ret
- }
- var _xcb_req113 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_PIXMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
- var xcb_out, xcb_tmp uintptr
- var xcb_parts [24]Tiovec
- var _ /* xcb_pad0 at bp+0 */ [3]uint8
- _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
- xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
- xcb_buffer_len = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- xcb_pad = uint32(0)
- *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
- xcb_parts_idx = uint32(0)
- xcb_block_len = uint32(0)
- if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
- /* xcb_create_gc_value_list_t.function */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
- /* xcb_create_gc_value_list_t.plane_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
- /* xcb_create_gc_value_list_t.foreground */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
- /* xcb_create_gc_value_list_t.background */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
- /* xcb_create_gc_value_list_t.line_width */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.line_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.cap_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.join_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.fill_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
- /* xcb_create_gc_value_list_t.fill_rule */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE) != 0 {
- /* xcb_create_gc_value_list_t.tile */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
- /* xcb_create_gc_value_list_t.stipple */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
- /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
- /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FONT) != 0 {
- /* xcb_create_gc_value_list_t.font */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
- /* xcb_create_gc_value_list_t.subwindow_mode */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
- /* xcb_create_gc_value_list_t.graphics_exposures */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
- /* xcb_create_gc_value_list_t.clip_x_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
- /* xcb_create_gc_value_list_t.clip_y_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
- /* xcb_create_gc_value_list_t.clip_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
- /* xcb_create_gc_value_list_t.dash_offset */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
- /* xcb_create_gc_value_list_t.dashes */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
- /* xcb_create_gc_value_list_t.arc_mode */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_parts[xcb_parts_idx].Fiov_base = bp
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
- xcb_parts_idx++
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- if libc.UintptrFromInt32(0) == xcb_out {
- /* allocate memory */
- xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
- *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
- }
- xcb_tmp = xcb_out
- i = uint32(0)
- for {
- if !(i < xcb_parts_idx) {
- break
- }
- if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
- libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
- }
- if uint64(0) != xcb_parts[i].Fiov_len {
- xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
- }
- goto _1
- _1:
- ;
- i++
- }
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_create_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
- var xcb_tmp uintptr
- _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
- /* xcb_create_gc_value_list_t.function */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
- /* xcb_create_gc_value_list_t.plane_mask */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
- /* xcb_create_gc_value_list_t.foreground */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
- /* xcb_create_gc_value_list_t.background */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
- /* xcb_create_gc_value_list_t.line_width */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.line_style */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.cap_style */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.join_style */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
- /* xcb_create_gc_value_list_t.fill_style */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
- /* xcb_create_gc_value_list_t.fill_rule */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE) != 0 {
- /* xcb_create_gc_value_list_t.tile */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
- /* xcb_create_gc_value_list_t.stipple */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
- /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
- /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FONT) != 0 {
- /* xcb_create_gc_value_list_t.font */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
- /* xcb_create_gc_value_list_t.subwindow_mode */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
- /* xcb_create_gc_value_list_t.graphics_exposures */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
- /* xcb_create_gc_value_list_t.clip_x_origin */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
- /* xcb_create_gc_value_list_t.clip_y_origin */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
- /* xcb_create_gc_value_list_t.clip_mask */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
- /* xcb_create_gc_value_list_t.dash_offset */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
- /* xcb_create_gc_value_list_t.dashes */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
- /* xcb_create_gc_value_list_t.arc_mode */
- (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_create_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var _ /* _aux at bp+0 */ Txcb_create_gc_value_list_t
- return Xxcb_create_gc_value_list_unpack(tls, _buffer, value_mask, bp)
- }
- func Xxcb_create_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* value_list */
- xcb_block_len += libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_create_gc_checked(tls *libc.TLS, c uintptr, cid Txcb_gcontext_t, drawable Txcb_drawable_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req114)))
- return xcb_ret
- }
- var _xcb_req114 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_gc(tls *libc.TLS, c uintptr, cid Txcb_gcontext_t, drawable Txcb_drawable_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req115)))
- return xcb_ret
- }
- var _xcb_req115 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_gc_aux_checked(tls *libc.TLS, c uintptr, cid Txcb_gcontext_t, drawable Txcb_drawable_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req116)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req116 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_gc_aux(tls *libc.TLS, c uintptr, cid Txcb_gcontext_t, drawable Txcb_drawable_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
- (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_create_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req117)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req117 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CREATE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*16
- }
- func Xxcb_change_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
- var xcb_out, xcb_tmp uintptr
- var xcb_parts [24]Tiovec
- var _ /* xcb_pad0 at bp+0 */ [3]uint8
- _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
- xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
- xcb_buffer_len = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- xcb_pad = uint32(0)
- *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
- xcb_parts_idx = uint32(0)
- xcb_block_len = uint32(0)
- if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
- /* xcb_change_gc_value_list_t.function */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
- /* xcb_change_gc_value_list_t.plane_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
- /* xcb_change_gc_value_list_t.foreground */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
- /* xcb_change_gc_value_list_t.background */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
- /* xcb_change_gc_value_list_t.line_width */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.line_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.cap_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.join_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.fill_style */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
- /* xcb_change_gc_value_list_t.fill_rule */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE) != 0 {
- /* xcb_change_gc_value_list_t.tile */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
- /* xcb_change_gc_value_list_t.stipple */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
- /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
- /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FONT) != 0 {
- /* xcb_change_gc_value_list_t.font */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
- /* xcb_change_gc_value_list_t.subwindow_mode */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
- /* xcb_change_gc_value_list_t.graphics_exposures */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
- /* xcb_change_gc_value_list_t.clip_x_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
- /* xcb_change_gc_value_list_t.clip_y_origin */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
- /* xcb_change_gc_value_list_t.clip_mask */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
- /* xcb_change_gc_value_list_t.dash_offset */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
- /* xcb_change_gc_value_list_t.dashes */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
- /* xcb_change_gc_value_list_t.arc_mode */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_parts[xcb_parts_idx].Fiov_base = bp
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
- xcb_parts_idx++
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- if libc.UintptrFromInt32(0) == xcb_out {
- /* allocate memory */
- xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
- *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
- }
- xcb_tmp = xcb_out
- i = uint32(0)
- for {
- if !(i < xcb_parts_idx) {
- break
- }
- if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
- libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
- }
- if uint64(0) != xcb_parts[i].Fiov_len {
- xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
- }
- goto _1
- _1:
- ;
- i++
- }
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
- var xcb_tmp uintptr
- _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
- /* xcb_change_gc_value_list_t.function */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
- /* xcb_change_gc_value_list_t.plane_mask */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
- /* xcb_change_gc_value_list_t.foreground */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
- /* xcb_change_gc_value_list_t.background */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
- /* xcb_change_gc_value_list_t.line_width */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.line_style */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.cap_style */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.join_style */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
- /* xcb_change_gc_value_list_t.fill_style */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
- /* xcb_change_gc_value_list_t.fill_rule */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE) != 0 {
- /* xcb_change_gc_value_list_t.tile */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
- /* xcb_change_gc_value_list_t.stipple */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
- /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
- /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_FONT) != 0 {
- /* xcb_change_gc_value_list_t.font */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
- /* xcb_change_gc_value_list_t.subwindow_mode */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
- /* xcb_change_gc_value_list_t.graphics_exposures */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
- /* xcb_change_gc_value_list_t.clip_x_origin */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
- /* xcb_change_gc_value_list_t.clip_y_origin */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
- /* xcb_change_gc_value_list_t.clip_mask */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
- /* xcb_change_gc_value_list_t.dash_offset */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
- /* xcb_change_gc_value_list_t.dashes */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
- /* xcb_change_gc_value_list_t.arc_mode */
- (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var _ /* _aux at bp+0 */ Txcb_change_gc_value_list_t
- return Xxcb_change_gc_value_list_unpack(tls, _buffer, value_mask, bp)
- }
- func Xxcb_change_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* value_list */
- xcb_block_len += libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req118)))
- return xcb_ret
- }
- var _xcb_req118 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req119)))
- return xcb_ret
- }
- var _xcb_req119 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_gc_aux_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req120)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req120 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_gc_aux(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+96 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
- (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_gc_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req121)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
- return xcb_ret
- }
- var _xcb_req121 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_copy_gc_checked(tls *libc.TLS, c uintptr, src_gc Txcb_gcontext_t, dst_gc Txcb_gcontext_t, value_mask Tuint32_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req122)))
- return xcb_ret
- }
- var _xcb_req122 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_copy_gc(tls *libc.TLS, c uintptr, src_gc Txcb_gcontext_t, dst_gc Txcb_gcontext_t, value_mask Tuint32_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
- (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req123)))
- return xcb_ret
- }
- var _xcb_req123 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_dashes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* dashes */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_dashes_request_t)(unsafe.Pointer(_aux)).Fdashes_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_set_dashes_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t, dash_offset Tuint16_t, dashes_len Tuint16_t, dashes uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t dashes */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req124)))
- return xcb_ret
- }
- var _xcb_req124 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_DASHES),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_dashes(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t, dash_offset Tuint16_t, dashes_len Tuint16_t, dashes uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
- (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t dashes */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req125)))
- return xcb_ret
- }
- var _xcb_req125 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_DASHES),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_dashes_dashes(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_set_dashes_dashes_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
- }
- func Xxcb_set_dashes_dashes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_set_clip_rectangles_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* rectangles */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_set_clip_rectangles_checked(tls *libc.TLS, c uintptr, ordering Tuint8_t, gc Txcb_gcontext_t, clip_x_origin Tint16_t, clip_y_origin Tint16_t, rectangles_len Tuint32_t, rectangles uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_rectangle_t rectangles */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req126)))
- return xcb_ret
- }
- var _xcb_req126 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_clip_rectangles(tls *libc.TLS, c uintptr, ordering Tuint8_t, gc Txcb_gcontext_t, clip_x_origin Tint16_t, clip_y_origin Tint16_t, rectangles_len Tuint32_t, rectangles uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
- (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_rectangle_t rectangles */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req127)))
- return xcb_ret
- }
- var _xcb_req127 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_clip_rectangles_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_set_clip_rectangles_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- }
- func Xxcb_set_clip_rectangles_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
- var i Txcb_rectangle_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_free_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req128)))
- return xcb_ret
- }
- var _xcb_req128 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req129)))
- return xcb_ret
- }
- var _xcb_req129 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_GC),
- Fisvoid: uint8(1),
- }
- func Xxcb_clear_area_checked(tls *libc.TLS, c uintptr, exposures Tuint8_t, window Txcb_window_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req130)))
- return xcb_ret
- }
- var _xcb_req130 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CLEAR_AREA),
- Fisvoid: uint8(1),
- }
- func Xxcb_clear_area(tls *libc.TLS, c uintptr, exposures Tuint8_t, window Txcb_window_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req131)))
- return xcb_ret
- }
- var _xcb_req131 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CLEAR_AREA),
- Fisvoid: uint8(1),
- }
- func Xxcb_copy_area_checked(tls *libc.TLS, c uintptr, src_drawable Txcb_drawable_t, dst_drawable Txcb_drawable_t, gc Txcb_gcontext_t, src_x Tint16_t, src_y Tint16_t, dst_x Tint16_t, dst_y Tint16_t, width Tuint16_t, height Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req132)))
- return xcb_ret
- }
- var _xcb_req132 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_AREA),
- Fisvoid: uint8(1),
- }
- func Xxcb_copy_area(tls *libc.TLS, c uintptr, src_drawable Txcb_drawable_t, dst_drawable Txcb_drawable_t, gc Txcb_gcontext_t, src_x Tint16_t, src_y Tint16_t, dst_x Tint16_t, dst_y Tint16_t, width Tuint16_t, height Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req133)))
- return xcb_ret
- }
- var _xcb_req133 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_AREA),
- Fisvoid: uint8(1),
- }
- func Xxcb_copy_plane_checked(tls *libc.TLS, c uintptr, src_drawable Txcb_drawable_t, dst_drawable Txcb_drawable_t, gc Txcb_gcontext_t, src_x Tint16_t, src_y Tint16_t, dst_x Tint16_t, dst_y Tint16_t, width Tuint16_t, height Tuint16_t, bit_plane Tuint32_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req134)))
- return xcb_ret
- }
- var _xcb_req134 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_PLANE),
- Fisvoid: uint8(1),
- }
- func Xxcb_copy_plane(tls *libc.TLS, c uintptr, src_drawable Txcb_drawable_t, dst_drawable Txcb_drawable_t, gc Txcb_gcontext_t, src_x Tint16_t, src_y Tint16_t, dst_x Tint16_t, dst_y Tint16_t, width Tuint16_t, height Tuint16_t, bit_plane Tuint32_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req135)))
- return xcb_ret
- }
- var _xcb_req135 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_PLANE),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_point_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* points */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_point_checked(tls *libc.TLS, c uintptr, coordinate_mode Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, points_len Tuint32_t, points uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
- (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_point_t points */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req136)))
- return xcb_ret
- }
- var _xcb_req136 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_POINT),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_point(tls *libc.TLS, c uintptr, coordinate_mode Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, points_len Tuint32_t, points uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
- (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_point_t points */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req137)))
- return xcb_ret
- }
- var _xcb_req137 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_POINT),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_point_points(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_poly_point_points_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_point_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
- }
- func Xxcb_poly_point_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
- var i Txcb_point_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_point_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_poly_line_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* points */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_line_checked(tls *libc.TLS, c uintptr, coordinate_mode Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, points_len Tuint32_t, points uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
- (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_point_t points */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req138)))
- return xcb_ret
- }
- var _xcb_req138 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_LINE),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_line(tls *libc.TLS, c uintptr, coordinate_mode Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, points_len Tuint32_t, points uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
- (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_point_t points */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req139)))
- return xcb_ret
- }
- var _xcb_req139 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_LINE),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_line_points(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_poly_line_points_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_line_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
- }
- func Xxcb_poly_line_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
- var i Txcb_point_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_line_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_segment_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Fdata += 8
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
- }
- func Xxcb_segment_end(tls *libc.TLS, i Txcb_segment_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*8
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_poly_segment_sizeof(tls *libc.TLS, _buffer uintptr, segments_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* segments */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(segments_len)*libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_segment_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, segments_len Tuint32_t, segments uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_segment_t segments */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req140)))
- return xcb_ret
- }
- var _xcb_req140 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_SEGMENT),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_segment(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, segments_len Tuint32_t, segments uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_segment_t segments */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req141)))
- return xcb_ret
- }
- var _xcb_req141 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_SEGMENT),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_segment_segments(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_poly_segment_segments_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_segment_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- }
- func Xxcb_poly_segment_segments_iterator(tls *libc.TLS, R uintptr) (r Txcb_segment_iterator_t) {
- var i Txcb_segment_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_segment_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_poly_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* rectangles */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_rectangle_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, rectangles_len Tuint32_t, rectangles uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_rectangle_t rectangles */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req142)))
- return xcb_ret
- }
- var _xcb_req142 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_RECTANGLE),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_rectangle(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, rectangles_len Tuint32_t, rectangles uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_rectangle_t rectangles */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req143)))
- return xcb_ret
- }
- var _xcb_req143 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_RECTANGLE),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_poly_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- }
- func Xxcb_poly_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
- var i Txcb_rectangle_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_poly_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* arcs */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_arc_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, arcs_len Tuint32_t, arcs uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_arc_t arcs */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req144)))
- return xcb_ret
- }
- var _xcb_req144 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_ARC),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_arc(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, arcs_len Tuint32_t, arcs uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_arc_t arcs */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req145)))
- return xcb_ret
- }
- var _xcb_req145 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_ARC),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_poly_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
- }
- func Xxcb_poly_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
- var i Txcb_arc_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_fill_poly_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* points */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_fill_poly_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, shape Tuint8_t, coordinate_mode Tuint8_t, points_len Tuint32_t, points uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
- libc.Xmemset(tls, bp+96+14, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_point_t points */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req146)))
- return xcb_ret
- }
- var _xcb_req146 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_FILL_POLY),
- Fisvoid: uint8(1),
- }
- func Xxcb_fill_poly(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, shape Tuint8_t, coordinate_mode Tuint8_t, points_len Tuint32_t, points uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
- (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
- libc.Xmemset(tls, bp+96+14, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_point_t points */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req147)))
- return xcb_ret
- }
- var _xcb_req147 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_FILL_POLY),
- Fisvoid: uint8(1),
- }
- func Xxcb_fill_poly_points(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*16
- }
- func Xxcb_fill_poly_points_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_fill_poly_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(4))
- }
- func Xxcb_fill_poly_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
- var i Txcb_point_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*16
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_fill_poly_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(4))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_poly_fill_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* rectangles */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_fill_rectangle_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, rectangles_len Tuint32_t, rectangles uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_rectangle_t rectangles */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req148)))
- return xcb_ret
- }
- var _xcb_req148 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_fill_rectangle(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, rectangles_len Tuint32_t, rectangles uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_rectangle_t rectangles */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req149)))
- return xcb_ret
- }
- var _xcb_req149 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_fill_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_poly_fill_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- }
- func Xxcb_poly_fill_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
- var i Txcb_rectangle_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_poly_fill_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* arcs */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_fill_arc_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, arcs_len Tuint32_t, arcs uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_arc_t arcs */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req150)))
- return xcb_ret
- }
- var _xcb_req150 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_FILL_ARC),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_fill_arc(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, arcs_len Tuint32_t, arcs uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_arc_t arcs */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req151)))
- return xcb_ret
- }
- var _xcb_req151 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_FILL_ARC),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_fill_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_poly_fill_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
- }
- func Xxcb_poly_fill_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
- var i Txcb_arc_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_put_image_sizeof(tls *libc.TLS, _buffer uintptr, data_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* data */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(data_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_put_image_checked(tls *libc.TLS, c uintptr, format Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, width Tuint16_t, height Tuint16_t, dst_x Tint16_t, dst_y Tint16_t, left_pad Tuint8_t, depth Tuint8_t, data_len Tuint32_t, data uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(128)
- defer tls.Free(128)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
- libc.Xmemset(tls, bp+96+22, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t data */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req152)))
- return xcb_ret
- }
- var _xcb_req152 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_PUT_IMAGE),
- Fisvoid: uint8(1),
- }
- func Xxcb_put_image(tls *libc.TLS, c uintptr, format Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, width Tuint16_t, height Tuint16_t, dst_x Tint16_t, dst_y Tint16_t, left_pad Tuint8_t, depth Tuint8_t, data_len Tuint32_t, data uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(128)
- defer tls.Free(128)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
- (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
- libc.Xmemset(tls, bp+96+22, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t data */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req153)))
- return xcb_ret
- }
- var _xcb_req153 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_PUT_IMAGE),
- Fisvoid: uint8(1),
- }
- func Xxcb_put_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*24
- }
- func Xxcb_put_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_put_image_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(24)) / libc.Uint64FromInt64(1))
- }
- func Xxcb_put_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*24 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_put_image_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(24))/libc.Uint64FromInt64(1))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_image_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* data */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_image_reply_t)(unsafe.Pointer(_aux)).Flength*libc.Uint32FromInt32(4))*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_image(tls *libc.TLS, c uintptr, format Tuint8_t, drawable Txcb_drawable_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t, plane_mask Tuint32_t) (r Txcb_get_image_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_get_image_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req154)))
- return xcb_ret
- }
- var _xcb_req154 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_IMAGE),
- }
- func Xxcb_get_image_unchecked(tls *libc.TLS, c uintptr, format Tuint8_t, drawable Txcb_drawable_t, x Tint16_t, y Tint16_t, width Tuint16_t, height Tuint16_t, plane_mask Tuint32_t) (r Txcb_get_image_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_get_image_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req155)))
- return xcb_ret
- }
- var _xcb_req155 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_IMAGE),
- }
- func Xxcb_get_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_get_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint32((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength * libc.Uint32FromInt32(4))
- }
- func Xxcb_get_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength*libc.Uint32FromInt32(4))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_image_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_image_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_poly_text_8_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* items */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_text_8_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t items */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req156)))
- return xcb_ret
- }
- var _xcb_req156 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_TEXT_8),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_text_8(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t items */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req157)))
- return xcb_ret
- }
- var _xcb_req157 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_TEXT_8),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_text_8_items(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*16
- }
- func Xxcb_poly_text_8_items_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_8_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(1))
- }
- func Xxcb_poly_text_8_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_8_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(16))/libc.Uint64FromInt64(1))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_poly_text_16_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* items */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_poly_text_16_checked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t items */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req158)))
- return xcb_ret
- }
- var _xcb_req158 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_TEXT_16),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_text_16(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t items */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req159)))
- return xcb_ret
- }
- var _xcb_req159 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_POLY_TEXT_16),
- Fisvoid: uint8(1),
- }
- func Xxcb_poly_text_16_items(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*16
- }
- func Xxcb_poly_text_16_items_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_16_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(1))
- }
- func Xxcb_poly_text_16_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_16_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(16))/libc.Uint64FromInt64(1))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_image_text_8_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* string */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_8_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_image_text_8_checked(tls *libc.TLS, c uintptr, string_len Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, string1 uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char string */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req160)))
- return xcb_ret
- }
- var _xcb_req160 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
- Fisvoid: uint8(1),
- }
- func Xxcb_image_text_8(tls *libc.TLS, c uintptr, string_len Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, string1 uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char string */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req161)))
- return xcb_ret
- }
- var _xcb_req161 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
- Fisvoid: uint8(1),
- }
- func Xxcb_image_text_8_string(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*16
- }
- func Xxcb_image_text_8_string_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
- }
- func Xxcb_image_text_8_string_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_image_text_16_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* string */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_16_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(2))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_image_text_16_checked(tls *libc.TLS, c uintptr, string_len Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, string1 uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_char2b_t string */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req162)))
- return xcb_ret
- }
- var _xcb_req162 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
- Fisvoid: uint8(1),
- }
- func Xxcb_image_text_16(tls *libc.TLS, c uintptr, string_len Tuint8_t, drawable Txcb_drawable_t, gc Txcb_gcontext_t, x Tint16_t, y Tint16_t, string1 uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
- (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_char2b_t string */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req163)))
- return xcb_ret
- }
- var _xcb_req163 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
- Fisvoid: uint8(1),
- }
- func Xxcb_image_text_16_string(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*16
- }
- func Xxcb_image_text_16_string_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
- }
- func Xxcb_image_text_16_string_iterator(tls *libc.TLS, R uintptr) (r Txcb_char2b_iterator_t) {
- var i Txcb_char2b_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*16
- i.Frem = libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_create_colormap_checked(tls *libc.TLS, c uintptr, alloc Tuint8_t, mid Txcb_colormap_t, window Txcb_window_t, visual Txcb_visualid_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req164)))
- return xcb_ret
- }
- var _xcb_req164 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_colormap(tls *libc.TLS, c uintptr, alloc Tuint8_t, mid Txcb_colormap_t, window Txcb_window_t, visual Txcb_visualid_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req165)))
- return xcb_ret
- }
- var _xcb_req165 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req166)))
- return xcb_ret
- }
- var _xcb_req166 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req167)))
- return xcb_ret
- }
- var _xcb_req167 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_copy_colormap_and_free_checked(tls *libc.TLS, c uintptr, mid Txcb_colormap_t, src_cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
- (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req168)))
- return xcb_ret
- }
- var _xcb_req168 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
- Fisvoid: uint8(1),
- }
- func Xxcb_copy_colormap_and_free(tls *libc.TLS, c uintptr, mid Txcb_colormap_t, src_cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
- (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req169)))
- return xcb_ret
- }
- var _xcb_req169 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
- Fisvoid: uint8(1),
- }
- func Xxcb_install_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req170)))
- return xcb_ret
- }
- var _xcb_req170 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_install_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req171)))
- return xcb_ret
- }
- var _xcb_req171 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_uninstall_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req172)))
- return xcb_ret
- }
- var _xcb_req172 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_uninstall_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req173)))
- return xcb_ret
- }
- var _xcb_req173 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
- Fisvoid: uint8(1),
- }
- func Xxcb_list_installed_colormaps_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* cmaps */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(_aux)).Fcmaps_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_list_installed_colormaps(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_installed_colormaps_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req174)))
- return xcb_ret
- }
- var _xcb_req174 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
- }
- func Xxcb_list_installed_colormaps_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_installed_colormaps_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req175)))
- return xcb_ret
- }
- var _xcb_req175 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
- }
- func Xxcb_list_installed_colormaps_cmaps(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_list_installed_colormaps_cmaps_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)
- }
- func Xxcb_list_installed_colormaps_cmaps_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_list_installed_colormaps_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_installed_colormaps_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_alloc_color(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, red Tuint16_t, green Tuint16_t, blue Tuint16_t) (r Txcb_alloc_color_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_alloc_color_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
- libc.Xmemset(tls, bp+64+14, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req176)))
- return xcb_ret
- }
- var _xcb_req176 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOC_COLOR),
- }
- func Xxcb_alloc_color_unchecked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, red Tuint16_t, green Tuint16_t, blue Tuint16_t) (r Txcb_alloc_color_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_alloc_color_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
- (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
- libc.Xmemset(tls, bp+64+14, 0, uint64(2))
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req177)))
- return xcb_ret
- }
- var _xcb_req177 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOC_COLOR),
- }
- func Xxcb_alloc_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_alloc_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_alloc_named_color(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, name_len Tuint16_t, name uintptr) (r Txcb_alloc_named_color_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_alloc_named_color_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+10, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req178)))
- return xcb_ret
- }
- var _xcb_req178 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
- }
- func Xxcb_alloc_named_color_unchecked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, name_len Tuint16_t, name uintptr) (r Txcb_alloc_named_color_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_alloc_named_color_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+10, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req179)))
- return xcb_ret
- }
- var _xcb_req179 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
- }
- func Xxcb_alloc_named_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_named_color_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_alloc_color_cells_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* pixels */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* masks */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fmasks_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_alloc_color_cells(tls *libc.TLS, c uintptr, contiguous Tuint8_t, cmap Txcb_colormap_t, colors Tuint16_t, planes Tuint16_t) (r Txcb_alloc_color_cells_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_alloc_color_cells_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req180)))
- return xcb_ret
- }
- var _xcb_req180 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
- }
- func Xxcb_alloc_color_cells_unchecked(tls *libc.TLS, c uintptr, contiguous Tuint8_t, cmap Txcb_colormap_t, colors Tuint16_t, planes Tuint16_t) (r Txcb_alloc_color_cells_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_alloc_color_cells_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
- (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req181)))
- return xcb_ret
- }
- var _xcb_req181 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
- }
- func Xxcb_alloc_color_cells_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_alloc_color_cells_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)
- }
- func Xxcb_alloc_color_cells_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_alloc_color_cells_masks(tls *libc.TLS, R uintptr) (r uintptr) {
- var prev Txcb_generic_iterator_t
- _ = prev
- prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
- return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
- }
- func Xxcb_alloc_color_cells_masks_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)
- }
- func Xxcb_alloc_color_cells_masks_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i, prev Txcb_generic_iterator_t
- _, _ = i, prev
- prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
- i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_alloc_color_cells_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cells_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_alloc_color_planes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* pixels */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_alloc_color_planes(tls *libc.TLS, c uintptr, contiguous Tuint8_t, cmap Txcb_colormap_t, colors Tuint16_t, reds Tuint16_t, greens Tuint16_t, blues Tuint16_t) (r Txcb_alloc_color_planes_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_alloc_color_planes_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req182)))
- return xcb_ret
- }
- var _xcb_req182 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
- }
- func Xxcb_alloc_color_planes_unchecked(tls *libc.TLS, c uintptr, contiguous Tuint8_t, cmap Txcb_colormap_t, colors Tuint16_t, reds Tuint16_t, greens Tuint16_t, blues Tuint16_t) (r Txcb_alloc_color_planes_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_alloc_color_planes_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
- (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req183)))
- return xcb_ret
- }
- var _xcb_req183 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
- }
- func Xxcb_alloc_color_planes_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_alloc_color_planes_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)
- }
- func Xxcb_alloc_color_planes_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_alloc_color_planes_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_planes_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_free_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* pixels */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_free_colors_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, plane_mask Tuint32_t, pixels_len Tuint32_t, pixels uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint32_t pixels */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req184)))
- return xcb_ret
- }
- var _xcb_req184 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_FREE_COLORS),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, plane_mask Tuint32_t, pixels_len Tuint32_t, pixels uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint32_t pixels */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req185)))
- return xcb_ret
- }
- var _xcb_req185 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_FREE_COLORS),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_colors_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_free_colors_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_free_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
- }
- func Xxcb_free_colors_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_free_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(12))/libc.Uint64FromInt64(4))*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_coloritem_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Fdata += 12
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
- }
- func Xxcb_coloritem_end(tls *libc.TLS, i Txcb_coloritem_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*12
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_store_colors_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* items */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_store_colors_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_coloritem_t items */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req186)))
- return xcb_ret
- }
- var _xcb_req186 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_STORE_COLORS),
- Fisvoid: uint8(1),
- }
- func Xxcb_store_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_coloritem_t items */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req187)))
- return xcb_ret
- }
- var _xcb_req187 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_STORE_COLORS),
- Fisvoid: uint8(1),
- }
- func Xxcb_store_colors_items(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*8
- }
- func Xxcb_store_colors_items_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_store_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(8)) / libc.Uint64FromInt64(12))
- }
- func Xxcb_store_colors_items_iterator(tls *libc.TLS, R uintptr) (r Txcb_coloritem_iterator_t) {
- var i Txcb_coloritem_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*8
- i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_store_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(8)) / libc.Uint64FromInt64(12))
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_store_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_store_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_store_named_color_checked(tls *libc.TLS, c uintptr, flags Tuint8_t, cmap Txcb_colormap_t, pixel Tuint32_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+14, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req188)))
- return xcb_ret
- }
- var _xcb_req188 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_store_named_color(tls *libc.TLS, c uintptr, flags Tuint8_t, cmap Txcb_colormap_t, pixel Tuint32_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
- (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+14, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req189)))
- return xcb_ret
- }
- var _xcb_req189 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_store_named_color_name(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*16
- }
- func Xxcb_store_named_color_name_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
- }
- func Xxcb_store_named_color_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_rgb_next(tls *libc.TLS, i uintptr) {
- var p1 uintptr
- _ = p1
- (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Fdata += 8
- p1 = i + 12
- *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
- }
- func Xxcb_rgb_end(tls *libc.TLS, i Txcb_rgb_iterator_t) (r Txcb_generic_iterator_t) {
- var ret Txcb_generic_iterator_t
- _ = ret
- ret.Fdata = i.Fdata + uintptr(i.Frem)*8
- ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
- ret.Frem = 0
- return ret
- }
- func Xxcb_query_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- var xcb_tmp uintptr
- _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* pixels */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_query_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, pixels_len Tuint32_t, pixels uintptr) (r Txcb_query_colors_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_query_colors_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint32_t pixels */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req190)))
- return xcb_ret
- }
- var _xcb_req190 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_QUERY_COLORS),
- }
- func Xxcb_query_colors_unchecked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, pixels_len Tuint32_t, pixels uintptr) (r Txcb_query_colors_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_query_colors_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint32_t pixels */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req191)))
- return xcb_ret
- }
- var _xcb_req191 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_QUERY_COLORS),
- }
- func Xxcb_query_colors_colors(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_query_colors_colors_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
- }
- func Xxcb_query_colors_colors_iterator(tls *libc.TLS, R uintptr) (r Txcb_rgb_iterator_t) {
- var i Txcb_rgb_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32
- i.Frem = libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_query_colors_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_colors_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_lookup_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_lookup_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_lookup_color(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, name_len Tuint16_t, name uintptr) (r Txcb_lookup_color_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_lookup_color_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+10, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req192)))
- return xcb_ret
- }
- var _xcb_req192 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_LOOKUP_COLOR),
- }
- func Xxcb_lookup_color_unchecked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, name_len Tuint16_t, name uintptr) (r Txcb_lookup_color_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_lookup_color_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
- (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+10, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req193)))
- return xcb_ret
- }
- var _xcb_req193 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_LOOKUP_COLOR),
- }
- func Xxcb_lookup_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_lookup_color_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_create_cursor_checked(tls *libc.TLS, c uintptr, cid Txcb_cursor_t, source Txcb_pixmap_t, mask Txcb_pixmap_t, fore_red Tuint16_t, fore_green Tuint16_t, fore_blue Tuint16_t, back_red Tuint16_t, back_green Tuint16_t, back_blue Tuint16_t, x Tuint16_t, y Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req194)))
- return xcb_ret
- }
- var _xcb_req194 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_cursor(tls *libc.TLS, c uintptr, cid Txcb_cursor_t, source Txcb_pixmap_t, mask Txcb_pixmap_t, fore_red Tuint16_t, fore_green Tuint16_t, fore_blue Tuint16_t, back_red Tuint16_t, back_green Tuint16_t, back_blue Tuint16_t, x Tuint16_t, y Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
- (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req195)))
- return xcb_ret
- }
- var _xcb_req195 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_glyph_cursor_checked(tls *libc.TLS, c uintptr, cid Txcb_cursor_t, source_font Txcb_font_t, mask_font Txcb_font_t, source_char Tuint16_t, mask_char Tuint16_t, fore_red Tuint16_t, fore_green Tuint16_t, fore_blue Tuint16_t, back_red Tuint16_t, back_green Tuint16_t, back_blue Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req196)))
- return xcb_ret
- }
- var _xcb_req196 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_create_glyph_cursor(tls *libc.TLS, c uintptr, cid Txcb_cursor_t, source_font Txcb_font_t, mask_font Txcb_font_t, source_char Tuint16_t, mask_char Tuint16_t, fore_red Tuint16_t, fore_green Tuint16_t, fore_blue Tuint16_t, back_red Tuint16_t, back_green Tuint16_t, back_blue Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
- (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req197)))
- return xcb_ret
- }
- var _xcb_req197 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req198)))
- return xcb_ret
- }
- var _xcb_req198 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_free_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req199)))
- return xcb_ret
- }
- var _xcb_req199 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FREE_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_recolor_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t, fore_red Tuint16_t, fore_green Tuint16_t, fore_blue Tuint16_t, back_red Tuint16_t, back_green Tuint16_t, back_blue Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req200)))
- return xcb_ret
- }
- var _xcb_req200 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_recolor_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t, fore_red Tuint16_t, fore_green Tuint16_t, fore_blue Tuint16_t, back_red Tuint16_t, back_green Tuint16_t, back_blue Tuint16_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
- (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req201)))
- return xcb_ret
- }
- var _xcb_req201 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
- Fisvoid: uint8(1),
- }
- func Xxcb_query_best_size(tls *libc.TLS, c uintptr, _class Tuint8_t, drawable Txcb_drawable_t, width Tuint16_t, height Tuint16_t) (r Txcb_query_best_size_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_best_size_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req202)))
- return xcb_ret
- }
- var _xcb_req202 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
- }
- func Xxcb_query_best_size_unchecked(tls *libc.TLS, c uintptr, _class Tuint8_t, drawable Txcb_drawable_t, width Tuint16_t, height Tuint16_t) (r Txcb_query_best_size_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_query_best_size_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
- (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req203)))
- return xcb_ret
- }
- var _xcb_req203 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
- }
- func Xxcb_query_best_size_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_best_size_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_query_extension_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* name */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_extension_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_query_extension(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_query_extension_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req204)))
- return xcb_ret
- }
- var _xcb_req204 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_QUERY_EXTENSION),
- }
- func Xxcb_query_extension_unchecked(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_query_extension_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* char name */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req205)))
- return xcb_ret
- }
- var _xcb_req205 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_QUERY_EXTENSION),
- }
- func Xxcb_query_extension_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_extension_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_list_extensions_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
- _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* names */
- i = uint32(0)
- for {
- if !(i < uint32((*Txcb_list_extensions_reply_t)(unsafe.Pointer(_aux)).Fnames_len)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
- xcb_block_len += xcb_tmp_len
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_list_extensions(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_extensions_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req206)))
- return xcb_ret
- }
- var _xcb_req206 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
- }
- func Xxcb_list_extensions_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_extensions_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req207)))
- return xcb_ret
- }
- var _xcb_req207 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
- }
- func Xxcb_list_extensions_names_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
- }
- func Xxcb_list_extensions_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
- var i Txcb_str_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32
- i.Frem = libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_list_extensions_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_extensions_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_change_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* keysyms */
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(_aux)).Fkeycode_count)*libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(_aux)).Fkeysyms_per_keycode))*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_keyboard_mapping_checked(tls *libc.TLS, c uintptr, keycode_count Tuint8_t, first_keycode Txcb_keycode_t, keysyms_per_keycode Tuint8_t, keysyms uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
- (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
- (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_keysym_t keysyms */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req208)))
- return xcb_ret
- }
- var _xcb_req208 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_keyboard_mapping(tls *libc.TLS, c uintptr, keycode_count Tuint8_t, first_keycode Txcb_keycode_t, keysyms_per_keycode Tuint8_t, keysyms uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
- (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
- (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
- libc.Xmemset(tls, bp+96+6, 0, uint64(2))
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_keysym_t keysyms */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req209)))
- return xcb_ret
- }
- var _xcb_req209 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*8
- }
- func Xxcb_change_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(R)).Fkeycode_count) * libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(R)).Fkeysyms_per_keycode)
- }
- func Xxcb_change_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(R)).Fkeycode_count)*libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(R)).Fkeysyms_per_keycode))*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* keysyms */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(_aux)).Flength)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_keyboard_mapping(tls *libc.TLS, c uintptr, first_keycode Txcb_keycode_t, count Tuint8_t) (r Txcb_get_keyboard_mapping_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_keyboard_mapping_cookie_t
- var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
- (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
- (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req210)))
- return xcb_ret
- }
- var _xcb_req210 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
- }
- func Xxcb_get_keyboard_mapping_unchecked(tls *libc.TLS, c uintptr, first_keycode Txcb_keycode_t, count Tuint8_t) (r Txcb_get_keyboard_mapping_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_keyboard_mapping_cookie_t
- var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
- (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
- (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req211)))
- return xcb_ret
- }
- var _xcb_req211 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
- }
- func Xxcb_get_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_get_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint32((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)
- }
- func Xxcb_get_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_keyboard_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_mapping_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_change_keyboard_control_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
- var xcb_out, xcb_tmp uintptr
- var xcb_parts [9]Tiovec
- var _ /* xcb_pad0 at bp+0 */ [3]uint8
- _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
- xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
- xcb_buffer_len = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- xcb_pad = uint32(0)
- *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
- xcb_parts_idx = uint32(0)
- xcb_block_len = uint32(0)
- if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
- /* xcb_change_keyboard_control_value_list_t.key_click_percent */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
- /* xcb_change_keyboard_control_value_list_t.bell_percent */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
- /* xcb_change_keyboard_control_value_list_t.bell_pitch */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
- /* xcb_change_keyboard_control_value_list_t.bell_duration */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_LED) != 0 {
- /* xcb_change_keyboard_control_value_list_t.led */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
- /* xcb_change_keyboard_control_value_list_t.led_mode */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_KEY) != 0 {
- /* xcb_change_keyboard_control_value_list_t.key */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
- /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
- xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
- xcb_parts_idx++
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_parts[xcb_parts_idx].Fiov_base = bp
- xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
- xcb_parts_idx++
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- if libc.UintptrFromInt32(0) == xcb_out {
- /* allocate memory */
- xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
- *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
- }
- xcb_tmp = xcb_out
- i = uint32(0)
- for {
- if !(i < xcb_parts_idx) {
- break
- }
- if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
- libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
- }
- if uint64(0) != xcb_parts[i].Fiov_len {
- xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
- }
- goto _1
- _1:
- ;
- i++
- }
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_keyboard_control_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
- var xcb_tmp uintptr
- _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
- xcb_tmp = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_padding_offset = uint32(0)
- if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
- /* xcb_change_keyboard_control_value_list_t.key_click_percent */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey_click_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
- /* xcb_change_keyboard_control_value_list_t.bell_percent */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
- /* xcb_change_keyboard_control_value_list_t.bell_pitch */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_pitch = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
- /* xcb_change_keyboard_control_value_list_t.bell_duration */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_duration = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_LED) != 0 {
- /* xcb_change_keyboard_control_value_list_t.led */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
- /* xcb_change_keyboard_control_value_list_t.led_mode */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_KEY) != 0 {
- /* xcb_change_keyboard_control_value_list_t.key */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey = *(*Txcb_keycode32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
- /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
- (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fauto_repeat_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(4)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- }
- /* insert padding */
- xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- xcb_padding_offset = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_keyboard_control_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
- bp := tls.Alloc(32)
- defer tls.Free(32)
- var _ /* _aux at bp+0 */ Txcb_change_keyboard_control_value_list_t
- return Xxcb_change_keyboard_control_value_list_unpack(tls, _buffer, value_mask, bp)
- }
- func Xxcb_change_keyboard_control_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* value_list */
- xcb_block_len += libc.Uint32FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_keyboard_control_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_keyboard_control_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req212)))
- return xcb_ret
- }
- var _xcb_req212 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_keyboard_control(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_keyboard_control_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req213)))
- return xcb_ret
- }
- var _xcb_req213 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_keyboard_control_aux_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+88 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_keyboard_control_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_serialize(tls, bp+88, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req214)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
- return xcb_ret
- }
- var _xcb_req214 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_keyboard_control_aux(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(96)
- defer tls.Free(96)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_aux0 at bp+88 */ uintptr
- var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
- var _ /* xcb_parts at bp+0 */ [5]Tiovec
- _ = xcb_ret
- *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
- (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_change_keyboard_control_value_list_t value_list */
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_serialize(tls, bp+88, value_mask, value_list))
- (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req215)))
- libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
- return xcb_ret
- }
- var _xcb_req215 = Txcb_protocol_request_t{
- Fcount: uint64(3),
- Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_keyboard_control_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*8
- }
- func Xxcb_get_keyboard_control(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_keyboard_control_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req216)))
- return xcb_ret
- }
- var _xcb_req216 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
- }
- func Xxcb_get_keyboard_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_keyboard_control_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req217)))
- return xcb_ret
- }
- var _xcb_req217 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
- }
- func Xxcb_get_keyboard_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_control_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_bell_checked(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req218)))
- return xcb_ret
- }
- var _xcb_req218 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_BELL),
- Fisvoid: uint8(1),
- }
- func Xxcb_bell(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req219)))
- return xcb_ret
- }
- var _xcb_req219 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_BELL),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_pointer_control_checked(tls *libc.TLS, c uintptr, acceleration_numerator Tint16_t, acceleration_denominator Tint16_t, threshold Tint16_t, do_acceleration Tuint8_t, do_threshold Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req220)))
- return xcb_ret
- }
- var _xcb_req220 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_pointer_control(tls *libc.TLS, c uintptr, acceleration_numerator Tint16_t, acceleration_denominator Tint16_t, threshold Tint16_t, do_acceleration Tuint8_t, do_threshold Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
- (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req221)))
- return xcb_ret
- }
- var _xcb_req221 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_get_pointer_control(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_pointer_control_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req222)))
- return xcb_ret
- }
- var _xcb_req222 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
- }
- func Xxcb_get_pointer_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_pointer_control_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req223)))
- return xcb_ret
- }
- var _xcb_req223 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
- }
- func Xxcb_get_pointer_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_control_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_set_screen_saver_checked(tls *libc.TLS, c uintptr, timeout Tint16_t, interval Tint16_t, prefer_blanking Tuint8_t, allow_exposures Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req224)))
- return xcb_ret
- }
- var _xcb_req224 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_screen_saver(tls *libc.TLS, c uintptr, timeout Tint16_t, interval Tint16_t, prefer_blanking Tuint8_t, allow_exposures Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
- (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req225)))
- return xcb_ret
- }
- var _xcb_req225 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_get_screen_saver(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_screen_saver_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req226)))
- return xcb_ret
- }
- var _xcb_req226 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
- }
- func Xxcb_get_screen_saver_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_screen_saver_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req227)))
- return xcb_ret
- }
- var _xcb_req227 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
- }
- func Xxcb_get_screen_saver_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_screen_saver_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_change_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* address */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_hosts_request_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_change_hosts_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, family Tuint8_t, address_len Tuint16_t, address uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t address */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req228)))
- return xcb_ret
- }
- var _xcb_req228 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_CHANGE_HOSTS),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_hosts(tls *libc.TLS, c uintptr, mode Tuint8_t, family Tuint8_t, address_len Tuint16_t, address uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t address */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req229)))
- return xcb_ret
- }
- var _xcb_req229 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_CHANGE_HOSTS),
- Fisvoid: uint8(1),
- }
- func Xxcb_change_hosts_address(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*8
- }
- func Xxcb_change_hosts_address_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
- }
- func Xxcb_change_hosts_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_host_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* address */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_host_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- xcb_align_to = uint32(4)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_host_address(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*4
- }
- func Xxcb_host_address_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
- }
- func Xxcb_host_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*4 + uintptr((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_host_next(tls *libc.TLS, i uintptr) {
- var R uintptr
- var child Txcb_generic_iterator_t
- _, _ = R, child
- R = (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata
- child.Fdata = R + uintptr(Xxcb_host_sizeof(tls, R))
- (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata))
- (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Frem--
- (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
- }
- func Xxcb_host_end(tls *libc.TLS, _i Txcb_host_iterator_t) (r Txcb_generic_iterator_t) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- *(*Txcb_host_iterator_t)(unsafe.Pointer(bp)) = _i
- var ret Txcb_generic_iterator_t
- _ = ret
- for (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
- Xxcb_host_next(tls, bp)
- }
- ret.Fdata = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Fdata
- ret.Frem = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem
- ret.Findex = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Findex
- return ret
- }
- func Xxcb_list_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
- _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* hosts */
- i = uint32(0)
- for {
- if !(i < uint32((*Txcb_list_hosts_reply_t)(unsafe.Pointer(_aux)).Fhosts_len)) {
- break
- }
- xcb_tmp_len = libc.Uint32FromInt32(Xxcb_host_sizeof(tls, xcb_tmp))
- xcb_block_len += xcb_tmp_len
- xcb_tmp += uintptr(xcb_tmp_len)
- goto _1
- _1:
- ;
- i++
- }
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_list_hosts(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_hosts_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req230)))
- return xcb_ret
- }
- var _xcb_req230 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_HOSTS),
- }
- func Xxcb_list_hosts_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_list_hosts_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req231)))
- return xcb_ret
- }
- var _xcb_req231 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_LIST_HOSTS),
- }
- func Xxcb_list_hosts_hosts_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
- }
- func Xxcb_list_hosts_hosts_iterator(tls *libc.TLS, R uintptr) (r Txcb_host_iterator_t) {
- var i Txcb_host_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32
- i.Frem = libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_list_hosts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_hosts_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_set_access_control_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req232)))
- return xcb_ret
- }
- var _xcb_req232 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_access_control(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req233)))
- return xcb_ret
- }
- var _xcb_req233 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_close_down_mode_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req234)))
- return xcb_ret
- }
- var _xcb_req234 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_close_down_mode(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req235)))
- return xcb_ret
- }
- var _xcb_req235 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
- Fisvoid: uint8(1),
- }
- func Xxcb_kill_client_checked(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req236)))
- return xcb_ret
- }
- var _xcb_req236 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_KILL_CLIENT),
- Fisvoid: uint8(1),
- }
- func Xxcb_kill_client(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req237)))
- return xcb_ret
- }
- var _xcb_req237 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_KILL_CLIENT),
- Fisvoid: uint8(1),
- }
- func Xxcb_rotate_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* atoms */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_rotate_properties_request_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_rotate_properties_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, atoms_len Tuint16_t, delta Tint16_t, atoms uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_atom_t atoms */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req238)))
- return xcb_ret
- }
- var _xcb_req238 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
- Fisvoid: uint8(1),
- }
- func Xxcb_rotate_properties(tls *libc.TLS, c uintptr, window Txcb_window_t, atoms_len Tuint16_t, delta Tint16_t, atoms uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
- (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_atom_t atoms */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req239)))
- return xcb_ret
- }
- var _xcb_req239 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
- Fisvoid: uint8(1),
- }
- func Xxcb_rotate_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*12
- }
- func Xxcb_rotate_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint16((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)
- }
- func Xxcb_rotate_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_force_screen_saver_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req240)))
- return xcb_ret
- }
- var _xcb_req240 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_force_screen_saver(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req241)))
- return xcb_ret
- }
- var _xcb_req241 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
- Fisvoid: uint8(1),
- }
- func Xxcb_set_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* map */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_set_pointer_mapping(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_set_pointer_mapping_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t map */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req242)))
- return xcb_ret
- }
- var _xcb_req242 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
- }
- func Xxcb_set_pointer_mapping_unchecked(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_set_pointer_mapping_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* uint8_t map */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req243)))
- return xcb_ret
- }
- var _xcb_req243 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
- }
- func Xxcb_set_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_get_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* map */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_pointer_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_pointer_mapping_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req244)))
- return xcb_ret
- }
- var _xcb_req244 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
- }
- func Xxcb_get_pointer_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_pointer_mapping_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req245)))
- return xcb_ret
- }
- var _xcb_req245 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
- }
- func Xxcb_get_pointer_mapping_map(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_get_pointer_mapping_map_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
- }
- func Xxcb_get_pointer_mapping_map_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_set_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* keycodes */
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint8((*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(_aux)).Fkeycodes_per_modifier)*libc.Int32FromInt32(8))*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_set_modifier_mapping(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_set_modifier_mapping_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_keycode_t keycodes */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req246)))
- return xcb_ret
- }
- var _xcb_req246 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
- }
- func Xxcb_set_modifier_mapping_unchecked(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
- bp := tls.Alloc(112)
- defer tls.Free(112)
- var xcb_ret Txcb_set_modifier_mapping_cookie_t
- var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [6]Tiovec
- _ = xcb_ret
- (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- /* xcb_keycode_t keycodes */
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
- (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req247)))
- return xcb_ret
- }
- var _xcb_req247 = Txcb_protocol_request_t{
- Fcount: uint64(4),
- Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
- }
- func Xxcb_set_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_get_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* keycodes */
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(_aux)).Fkeycodes_per_modifier)*libc.Int32FromInt32(8))*libc.Uint64FromInt64(1))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_get_modifier_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_modifier_mapping_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req248)))
- return xcb_ret
- }
- var _xcb_req248 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
- }
- func Xxcb_get_modifier_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_get_modifier_mapping_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req249)))
- return xcb_ret
- }
- var _xcb_req249 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
- }
- func Xxcb_get_modifier_mapping_keycodes(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_get_modifier_mapping_keycodes_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier) * int32(8)
- }
- func Xxcb_get_modifier_mapping_keycodes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr(libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier)*libc.Int32FromInt32(8))
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_get_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_no_operation_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req250)))
- return xcb_ret
- }
- var _xcb_req250 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_NO_OPERATION),
- Fisvoid: uint8(1),
- }
- func Xxcb_no_operation(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_void_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req251)))
- return xcb_ret
- }
- var _xcb_req251 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fopcode: uint8(m_XCB_NO_OPERATION),
- Fisvoid: uint8(1),
- }
- func Xxcb_big_requests_enable(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_big_requests_enable_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req252)))
- return xcb_ret
- }
- var _xcb_req252 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
- }
- func Xxcb_big_requests_enable_unchecked(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_big_requests_enable_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req253)))
- return xcb_ret
- }
- var _xcb_req253 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
- }
- func Xxcb_big_requests_enable_reply(tls *libc.TLS, c uintptr, cookie Txcb_big_requests_enable_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_xc_misc_get_version(tls *libc.TLS, c uintptr, client_major_version Tuint16_t, client_minor_version Tuint16_t) (r Txcb_xc_misc_get_version_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_xc_misc_get_version_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
- (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req254)))
- return xcb_ret
- }
- var _xcb_req254 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
- }
- func Xxcb_xc_misc_get_version_unchecked(tls *libc.TLS, c uintptr, client_major_version Tuint16_t, client_minor_version Tuint16_t) (r Txcb_xc_misc_get_version_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_xc_misc_get_version_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
- (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req255)))
- return xcb_ret
- }
- var _xcb_req255 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
- }
- func Xxcb_xc_misc_get_version_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_version_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_xc_misc_get_xid_range(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req256)))
- return xcb_ret
- }
- var _xcb_req256 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
- Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
- }
- func Xxcb_xc_misc_get_xid_range_unchecked(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req257)))
- return xcb_ret
- }
- var _xcb_req257 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
- Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
- }
- func Xxcb_xc_misc_get_xid_range_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_xid_range_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func Xxcb_xc_misc_get_xid_list_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
- var _aux, xcb_tmp uintptr
- var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
- _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
- xcb_tmp = _buffer
- _aux = _buffer
- xcb_buffer_len = uint32(0)
- xcb_block_len = uint32(0)
- xcb_pad = uint32(0)
- xcb_align_to = uint32(0)
- xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_buffer_len += xcb_block_len
- xcb_block_len = uint32(0)
- /* ids */
- xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(_aux)).Fids_len)*libc.Uint64FromInt64(4))
- xcb_tmp += uintptr(xcb_block_len)
- xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
- /* insert padding */
- xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
- xcb_buffer_len += xcb_block_len + xcb_pad
- if uint32(0) != xcb_pad {
- xcb_tmp += uintptr(xcb_pad)
- xcb_pad = uint32(0)
- }
- xcb_block_len = uint32(0)
- return libc.Int32FromUint32(xcb_buffer_len)
- }
- func Xxcb_xc_misc_get_xid_list(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req258)))
- return xcb_ret
- }
- var _xcb_req258 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
- Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
- }
- func Xxcb_xc_misc_get_xid_list_unchecked(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
- bp := tls.Alloc(80)
- defer tls.Free(80)
- var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
- var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
- var _ /* xcb_parts at bp+0 */ [4]Tiovec
- _ = xcb_ret
- (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
- (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
- xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req259)))
- return xcb_ret
- }
- var _xcb_req259 = Txcb_protocol_request_t{
- Fcount: uint64(2),
- Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
- Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
- }
- func Xxcb_xc_misc_get_xid_list_ids(tls *libc.TLS, R uintptr) (r uintptr) {
- return R + libc.UintptrFromInt32(1)*32
- }
- func Xxcb_xc_misc_get_xid_list_ids_length(tls *libc.TLS, R uintptr) (r int32) {
- return libc.Int32FromUint32((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)
- }
- func Xxcb_xc_misc_get_xid_list_ids_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
- var i Txcb_generic_iterator_t
- _ = i
- i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)*4
- i.Frem = 0
- i.Findex = int32(int64(i.Fdata) - int64(R))
- return i
- }
- func Xxcb_xc_misc_get_xid_list_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_xid_list_cookie_t, e uintptr) (r uintptr) {
- return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
- }
- func __ccgo_fp(f interface{}) uintptr {
- type iface [2]uintptr
- return (*iface)(unsafe.Pointer(&f))[1]
- }
- /**
- * @}
- */
- var Xxcb_big_requests_id = Txcb_extension_t{
- Fname: __ccgo_ts + 99,
- }
- /**
- * @}
- */
- var Xxcb_xc_misc_id = Txcb_extension_t{
- Fname: __ccgo_ts + 112,
- }
- var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
- var __ccgo_ts1 = "GLX\x00unix\x00DISPLAY\x00unix:\x00%s%d\x00tcp\x00inet\x00inet6\x00localhost\x00%hu\x00XDM-AUTHORIZATION-1\x00MIT-MAGIC-COOKIE-1\x00%d\x00BIG-REQUESTS\x00XC-MISC\x00"
|