ccgo_linux_s390x.go 841 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153
  1. // Code generated for linux/s390x 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/s390x -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libXdmcp/include/linux/s390x -lXau -lXdmcp -o libxcb.go --package-name libxcb src/.libs/libxcb.a', DO NOT EDIT.
  2. //go:build linux && s390x
  3. package libxcb
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libXau"
  8. "modernc.org/libXdmcp"
  9. "modernc.org/libc"
  10. )
  11. var _ reflect.Type
  12. var _ unsafe.Pointer
  13. const m_AF_ALG = "PF_ALG"
  14. const m_AF_APPLETALK = "PF_APPLETALK"
  15. const m_AF_ASH = "PF_ASH"
  16. const m_AF_ATMPVC = "PF_ATMPVC"
  17. const m_AF_ATMSVC = "PF_ATMSVC"
  18. const m_AF_AX25 = "PF_AX25"
  19. const m_AF_BLUETOOTH = "PF_BLUETOOTH"
  20. const m_AF_BRIDGE = "PF_BRIDGE"
  21. const m_AF_CAIF = "PF_CAIF"
  22. const m_AF_CAN = "PF_CAN"
  23. const m_AF_DECnet = "PF_DECnet"
  24. const m_AF_ECONET = "PF_ECONET"
  25. const m_AF_FILE = "AF_LOCAL"
  26. const m_AF_IB = "PF_IB"
  27. const m_AF_IEEE802154 = "PF_IEEE802154"
  28. const m_AF_INET = "PF_INET"
  29. const m_AF_INET6 = "PF_INET6"
  30. const m_AF_IPX = "PF_IPX"
  31. const m_AF_IRDA = "PF_IRDA"
  32. const m_AF_ISDN = "PF_ISDN"
  33. const m_AF_IUCV = "PF_IUCV"
  34. const m_AF_KCM = "PF_KCM"
  35. const m_AF_KEY = "PF_KEY"
  36. const m_AF_LLC = "PF_LLC"
  37. const m_AF_LOCAL = "PF_LOCAL"
  38. const m_AF_MAX = "PF_MAX"
  39. const m_AF_MPLS = "PF_MPLS"
  40. const m_AF_NETBEUI = "PF_NETBEUI"
  41. const m_AF_NETLINK = "PF_NETLINK"
  42. const m_AF_NETROM = "PF_NETROM"
  43. const m_AF_NFC = "PF_NFC"
  44. const m_AF_PACKET = "PF_PACKET"
  45. const m_AF_PHONET = "PF_PHONET"
  46. const m_AF_PPPOX = "PF_PPPOX"
  47. const m_AF_QIPCRTR = "PF_QIPCRTR"
  48. const m_AF_RDS = "PF_RDS"
  49. const m_AF_ROSE = "PF_ROSE"
  50. const m_AF_ROUTE = "PF_ROUTE"
  51. const m_AF_RXRPC = "PF_RXRPC"
  52. const m_AF_SECURITY = "PF_SECURITY"
  53. const m_AF_SMC = "PF_SMC"
  54. const m_AF_SNA = "PF_SNA"
  55. const m_AF_TIPC = "PF_TIPC"
  56. const m_AF_UNIX = "AF_LOCAL"
  57. const m_AF_UNSPEC = "PF_UNSPEC"
  58. const m_AF_VSOCK = "PF_VSOCK"
  59. const m_AF_WANPIPE = "PF_WANPIPE"
  60. const m_AF_X25 = "PF_X25"
  61. const m_AF_XDP = "PF_XDP"
  62. const m_ARG_MAX = 131072
  63. const m_AT_EACCESS = 0x200
  64. const m_AT_EMPTY_PATH = 0x1000
  65. const m_AT_NO_AUTOMOUNT = 0x800
  66. const m_AT_RECURSIVE = 0x8000
  67. const m_AT_REMOVEDIR = 0x200
  68. const m_AT_STATX_DONT_SYNC = 0x4000
  69. const m_AT_STATX_FORCE_SYNC = 0x2000
  70. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  71. const m_AT_STATX_SYNC_TYPE = 0x6000
  72. const m_AT_SYMLINK_FOLLOW = 0x400
  73. const m_AT_SYMLINK_NOFOLLOW = 0x100
  74. const m_BC_BASE_MAX = 99
  75. const m_BC_DIM_MAX = 2048
  76. const m_BC_SCALE_MAX = 99
  77. const m_BC_STRING_MAX = 1000
  78. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  79. const m_BUFSIZ = 1024
  80. const m_BYTE_ORDER = "__BYTE_ORDER"
  81. const m_CHARCLASS_NAME_MAX = 14
  82. const m_CHAR_BIT = 8
  83. const m_CHAR_MAX = 255
  84. const m_CHAR_MIN = 0
  85. const m_CLOCKS_PER_SEC = 1000000
  86. const m_CLOCK_BOOTTIME = 7
  87. const m_CLOCK_BOOTTIME_ALARM = 9
  88. const m_CLOCK_MONOTONIC = 1
  89. const m_CLOCK_MONOTONIC_COARSE = 6
  90. const m_CLOCK_MONOTONIC_RAW = 4
  91. const m_CLOCK_PROCESS_CPUTIME_ID = 2
  92. const m_CLOCK_REALTIME = 0
  93. const m_CLOCK_REALTIME_ALARM = 8
  94. const m_CLOCK_REALTIME_COARSE = 5
  95. const m_CLOCK_SGI_CYCLE = 10
  96. const m_CLOCK_TAI = 11
  97. const m_CLOCK_THREAD_CPUTIME_ID = 3
  98. const m_CLONE_CHILD_CLEARTID = 0x00200000
  99. const m_CLONE_CHILD_SETTID = 0x01000000
  100. const m_CLONE_DETACHED = 0x00400000
  101. const m_CLONE_FILES = 0x00000400
  102. const m_CLONE_FS = 0x00000200
  103. const m_CLONE_IO = 0x80000000
  104. const m_CLONE_NEWCGROUP = 0x02000000
  105. const m_CLONE_NEWIPC = 0x08000000
  106. const m_CLONE_NEWNET = 0x40000000
  107. const m_CLONE_NEWNS = 0x00020000
  108. const m_CLONE_NEWPID = 0x20000000
  109. const m_CLONE_NEWTIME = 0x00000080
  110. const m_CLONE_NEWUSER = 0x10000000
  111. const m_CLONE_NEWUTS = 0x04000000
  112. const m_CLONE_PARENT = 0x00008000
  113. const m_CLONE_PARENT_SETTID = 0x00100000
  114. const m_CLONE_PIDFD = 0x00001000
  115. const m_CLONE_PTRACE = 0x00002000
  116. const m_CLONE_SETTLS = 0x00080000
  117. const m_CLONE_SIGHAND = 0x00000800
  118. const m_CLONE_SYSVSEM = 0x00040000
  119. const m_CLONE_THREAD = 0x00010000
  120. const m_CLONE_UNTRACED = 0x00800000
  121. const m_CLONE_VFORK = 0x00004000
  122. const m_CLONE_VM = 0x00000100
  123. const m_COLL_WEIGHTS_MAX = 2
  124. const m_CPU_SETSIZE = 1024
  125. const m_CSIGNAL = 0x000000ff
  126. const m_DELAYTIMER_MAX = 0x7fffffff
  127. const m_DN_ACCESS = 0x00000001
  128. const m_DN_ATTRIB = 0x00000020
  129. const m_DN_CREATE = 0x00000004
  130. const m_DN_DELETE = 0x00000008
  131. const m_DN_MODIFY = 0x00000002
  132. const m_DN_MULTISHOT = 0x80000000
  133. const m_DN_RENAME = 0x00000010
  134. const m_E2BIG = 7
  135. const m_EACCES = 13
  136. const m_EADDRINUSE = 98
  137. const m_EADDRNOTAVAIL = 99
  138. const m_EADV = 68
  139. const m_EAFNOSUPPORT = 97
  140. const m_EAGAIN = 11
  141. const m_EALREADY = 114
  142. const m_EBADE = 52
  143. const m_EBADF = 9
  144. const m_EBADFD = 77
  145. const m_EBADMSG = 74
  146. const m_EBADR = 53
  147. const m_EBADRQC = 56
  148. const m_EBADSLT = 57
  149. const m_EBFONT = 59
  150. const m_EBUSY = 16
  151. const m_ECANCELED = 125
  152. const m_ECHILD = 10
  153. const m_ECHRNG = 44
  154. const m_ECOMM = 70
  155. const m_ECONNABORTED = 103
  156. const m_ECONNREFUSED = 111
  157. const m_ECONNRESET = 104
  158. const m_EDEADLK = 35
  159. const m_EDEADLOCK = "EDEADLK"
  160. const m_EDESTADDRREQ = 89
  161. const m_EDOM = 33
  162. const m_EDOTDOT = 73
  163. const m_EDQUOT = 122
  164. const m_EEXIST = 17
  165. const m_EFAULT = 14
  166. const m_EFBIG = 27
  167. const m_EHOSTDOWN = 112
  168. const m_EHOSTUNREACH = 113
  169. const m_EHWPOISON = 133
  170. const m_EIDRM = 43
  171. const m_EILSEQ = 84
  172. const m_EINPROGRESS = 115
  173. const m_EINTR = 4
  174. const m_EINVAL = 22
  175. const m_EIO = 5
  176. const m_EISCONN = 106
  177. const m_EISDIR = 21
  178. const m_EISNAM = 120
  179. const m_EKEYEXPIRED = 127
  180. const m_EKEYREJECTED = 129
  181. const m_EKEYREVOKED = 128
  182. const m_EL2HLT = 51
  183. const m_EL2NSYNC = 45
  184. const m_EL3HLT = 46
  185. const m_EL3RST = 47
  186. const m_ELIBACC = 79
  187. const m_ELIBBAD = 80
  188. const m_ELIBEXEC = 83
  189. const m_ELIBMAX = 82
  190. const m_ELIBSCN = 81
  191. const m_ELNRNG = 48
  192. const m_ELOOP = 40
  193. const m_EMEDIUMTYPE = 124
  194. const m_EMFILE = 24
  195. const m_EMLINK = 31
  196. const m_EMSGSIZE = 90
  197. const m_EMULTIHOP = 72
  198. const m_ENAMETOOLONG = 36
  199. const m_ENAVAIL = 119
  200. const m_ENETDOWN = 100
  201. const m_ENETRESET = 102
  202. const m_ENETUNREACH = 101
  203. const m_ENFILE = 23
  204. const m_ENOANO = 55
  205. const m_ENOBUFS = 105
  206. const m_ENOCSI = 50
  207. const m_ENODATA = 61
  208. const m_ENODEV = 19
  209. const m_ENOENT = 2
  210. const m_ENOEXEC = 8
  211. const m_ENOKEY = 126
  212. const m_ENOLCK = 37
  213. const m_ENOLINK = 67
  214. const m_ENOMEDIUM = 123
  215. const m_ENOMEM = 12
  216. const m_ENOMSG = 42
  217. const m_ENONET = 64
  218. const m_ENOPKG = 65
  219. const m_ENOPROTOOPT = 92
  220. const m_ENOSPC = 28
  221. const m_ENOSR = 63
  222. const m_ENOSTR = 60
  223. const m_ENOSYS = 38
  224. const m_ENOTBLK = 15
  225. const m_ENOTCONN = 107
  226. const m_ENOTDIR = 20
  227. const m_ENOTEMPTY = 39
  228. const m_ENOTNAM = 118
  229. const m_ENOTRECOVERABLE = 131
  230. const m_ENOTSOCK = 88
  231. const m_ENOTSUP = "EOPNOTSUPP"
  232. const m_ENOTTY = 25
  233. const m_ENOTUNIQ = 76
  234. const m_ENXIO = 6
  235. const m_EOPNOTSUPP = 95
  236. const m_EOVERFLOW = 75
  237. const m_EOWNERDEAD = 130
  238. const m_EPERM = 1
  239. const m_EPFNOSUPPORT = 96
  240. const m_EPIPE = 32
  241. const m_EPROTO = 71
  242. const m_EPROTONOSUPPORT = 93
  243. const m_EPROTOTYPE = 91
  244. const m_ERANGE = 34
  245. const m_EREMCHG = 78
  246. const m_EREMOTE = 66
  247. const m_EREMOTEIO = 121
  248. const m_ERESTART = 85
  249. const m_ERFKILL = 132
  250. const m_EROFS = 30
  251. const m_ESHUTDOWN = 108
  252. const m_ESOCKTNOSUPPORT = 94
  253. const m_ESPIPE = 29
  254. const m_ESRCH = 3
  255. const m_ESRMNT = 69
  256. const m_ESTALE = 116
  257. const m_ESTRPIPE = 86
  258. const m_ETIME = 62
  259. const m_ETIMEDOUT = 110
  260. const m_ETOOMANYREFS = 109
  261. const m_ETXTBSY = 26
  262. const m_EUCLEAN = 117
  263. const m_EUNATCH = 49
  264. const m_EUSERS = 87
  265. const m_EWOULDBLOCK = "EAGAIN"
  266. const m_EXDEV = 18
  267. const m_EXFULL = 54
  268. const m_EXIT_FAILURE = 1
  269. const m_EXIT_SUCCESS = 0
  270. const m_EXPR_NEST_MAX = 32
  271. const m_FALLOC_FL_KEEP_SIZE = 1
  272. const m_FALLOC_FL_PUNCH_HOLE = 2
  273. const m_FAPPEND = "O_APPEND"
  274. const m_FASYNC = "O_ASYNC"
  275. const m_FD_CLOEXEC = 1
  276. const m_FD_SETSIZE = 1024
  277. const m_FFSYNC = "O_SYNC"
  278. const m_FILENAME_MAX = 4096
  279. const m_FILESIZEBITS = 64
  280. const m_FNDELAY = "O_NDELAY"
  281. const m_FNONBLOCK = "O_NONBLOCK"
  282. const m_FOPEN_MAX = 1000
  283. const m_F_ADD_SEALS = 1033
  284. const m_F_CANCELLK = 1029
  285. const m_F_DUPFD = 0
  286. const m_F_DUPFD_CLOEXEC = 1030
  287. const m_F_GETFD = 1
  288. const m_F_GETFL = 3
  289. const m_F_GETLEASE = 1025
  290. const m_F_GETLK = 5
  291. const m_F_GETOWN = 9
  292. const m_F_GETOWNER_UIDS = 17
  293. const m_F_GETOWN_EX = 16
  294. const m_F_GETPIPE_SZ = 1032
  295. const m_F_GETSIG = 11
  296. const m_F_GET_FILE_RW_HINT = 1037
  297. const m_F_GET_RW_HINT = 1035
  298. const m_F_GET_SEALS = 1034
  299. const m_F_LOCK = 1
  300. const m_F_NOTIFY = 1026
  301. const m_F_OFD_GETLK = 36
  302. const m_F_OFD_SETLK = 37
  303. const m_F_OFD_SETLKW = 38
  304. const m_F_OK = 0
  305. const m_F_OWNER_GID = 2
  306. const m_F_OWNER_PGRP = 2
  307. const m_F_OWNER_PID = 1
  308. const m_F_OWNER_TID = 0
  309. const m_F_RDLCK = 0
  310. const m_F_SEAL_FUTURE_WRITE = 0x0010
  311. const m_F_SEAL_GROW = 0x0004
  312. const m_F_SEAL_SEAL = 0x0001
  313. const m_F_SEAL_SHRINK = 0x0002
  314. const m_F_SEAL_WRITE = 0x0008
  315. const m_F_SETFD = 2
  316. const m_F_SETFL = 4
  317. const m_F_SETLEASE = 1024
  318. const m_F_SETLK = 6
  319. const m_F_SETLKW = 7
  320. const m_F_SETOWN = 8
  321. const m_F_SETOWN_EX = 15
  322. const m_F_SETPIPE_SZ = 1031
  323. const m_F_SETSIG = 10
  324. const m_F_SET_FILE_RW_HINT = 1038
  325. const m_F_SET_RW_HINT = 1036
  326. const m_F_TEST = 3
  327. const m_F_TLOCK = 2
  328. const m_F_ULOCK = 0
  329. const m_F_UNLCK = 2
  330. const m_F_WRLCK = 1
  331. const m_HASXDMAUTH = 1
  332. const m_HAVE_ABSTRACT_SOCKETS = 1
  333. const m_HAVE_CONFIG_H = 1
  334. const m_HAVE_DLFCN_H = 1
  335. const m_HAVE_GETADDRINFO = 1
  336. const m_HAVE_INTTYPES_H = 1
  337. const m_HAVE_MEMORY_H = 1
  338. const m_HAVE_SENDMSG = 1
  339. const m_HAVE_STDINT_H = 1
  340. const m_HAVE_STDLIB_H = 1
  341. const m_HAVE_STRINGS_H = 1
  342. const m_HAVE_STRING_H = 1
  343. const m_HAVE_SYS_STAT_H = 1
  344. const m_HAVE_SYS_TYPES_H = 1
  345. const m_HAVE_UNISTD_H = 1
  346. const m_HOST_NAME_MAX = 255
  347. const m_INET6_ADDRSTRLEN = 46
  348. const m_INET_ADDRSTRLEN = 16
  349. const m_INT16_MAX = 0x7fff
  350. const m_INT32_MAX = 0x7fffffff
  351. const m_INT64_MAX = 0x7fffffffffffffff
  352. const m_INT8_MAX = 0x7f
  353. const m_INTMAX_MAX = "INT64_MAX"
  354. const m_INTMAX_MIN = "INT64_MIN"
  355. const m_INTPTR_MAX = "INT64_MAX"
  356. const m_INTPTR_MIN = "INT64_MIN"
  357. const m_INT_FAST16_MAX = "INT32_MAX"
  358. const m_INT_FAST16_MIN = "INT32_MIN"
  359. const m_INT_FAST32_MAX = "INT32_MAX"
  360. const m_INT_FAST32_MIN = "INT32_MIN"
  361. const m_INT_FAST64_MAX = "INT64_MAX"
  362. const m_INT_FAST64_MIN = "INT64_MIN"
  363. const m_INT_FAST8_MAX = "INT8_MAX"
  364. const m_INT_FAST8_MIN = "INT8_MIN"
  365. const m_INT_LEAST16_MAX = "INT16_MAX"
  366. const m_INT_LEAST16_MIN = "INT16_MIN"
  367. const m_INT_LEAST32_MAX = "INT32_MAX"
  368. const m_INT_LEAST32_MIN = "INT32_MIN"
  369. const m_INT_LEAST64_MAX = "INT64_MAX"
  370. const m_INT_LEAST64_MIN = "INT64_MIN"
  371. const m_INT_LEAST8_MAX = "INT8_MAX"
  372. const m_INT_LEAST8_MIN = "INT8_MIN"
  373. const m_INT_MAX = 0x7fffffff
  374. const m_IN_CLASSA_MAX = 128
  375. const m_IN_CLASSA_NET = 0xff000000
  376. const m_IN_CLASSA_NSHIFT = 24
  377. const m_IN_CLASSB_MAX = 65536
  378. const m_IN_CLASSB_NET = 0xffff0000
  379. const m_IN_CLASSB_NSHIFT = 16
  380. const m_IN_CLASSC_NET = 0xffffff00
  381. const m_IN_CLASSC_NSHIFT = 8
  382. const m_IN_LOOPBACKNET = 127
  383. const m_IOV_MAX = 1024
  384. const m_IPPORT_RESERVED = 1024
  385. const m_IPPROTO_AH = 51
  386. const m_IPPROTO_BEETPH = 94
  387. const m_IPPROTO_COMP = 108
  388. const m_IPPROTO_DCCP = 33
  389. const m_IPPROTO_DSTOPTS = 60
  390. const m_IPPROTO_EGP = 8
  391. const m_IPPROTO_ENCAP = 98
  392. const m_IPPROTO_ESP = 50
  393. const m_IPPROTO_ETHERNET = 143
  394. const m_IPPROTO_FRAGMENT = 44
  395. const m_IPPROTO_GRE = 47
  396. const m_IPPROTO_HOPOPTS = 0
  397. const m_IPPROTO_ICMP = 1
  398. const m_IPPROTO_ICMPV6 = 58
  399. const m_IPPROTO_IDP = 22
  400. const m_IPPROTO_IGMP = 2
  401. const m_IPPROTO_IP = 0
  402. const m_IPPROTO_IPIP = 4
  403. const m_IPPROTO_IPV6 = 41
  404. const m_IPPROTO_MAX = 263
  405. const m_IPPROTO_MH = 135
  406. const m_IPPROTO_MPLS = 137
  407. const m_IPPROTO_MPTCP = 262
  408. const m_IPPROTO_MTP = 92
  409. const m_IPPROTO_NONE = 59
  410. const m_IPPROTO_PIM = 103
  411. const m_IPPROTO_PUP = 12
  412. const m_IPPROTO_RAW = 255
  413. const m_IPPROTO_ROUTING = 43
  414. const m_IPPROTO_RSVP = 46
  415. const m_IPPROTO_SCTP = 132
  416. const m_IPPROTO_TCP = 6
  417. const m_IPPROTO_TP = 29
  418. const m_IPPROTO_UDP = 17
  419. const m_IPPROTO_UDPLITE = 136
  420. const m_IPV6_2292DSTOPTS = 4
  421. const m_IPV6_2292HOPLIMIT = 8
  422. const m_IPV6_2292HOPOPTS = 3
  423. const m_IPV6_2292PKTINFO = 2
  424. const m_IPV6_2292PKTOPTIONS = 6
  425. const m_IPV6_2292RTHDR = 5
  426. const m_IPV6_ADDRFORM = 1
  427. const m_IPV6_ADDR_PREFERENCES = 72
  428. const m_IPV6_ADD_MEMBERSHIP = "IPV6_JOIN_GROUP"
  429. const m_IPV6_AUTHHDR = 10
  430. const m_IPV6_AUTOFLOWLABEL = 70
  431. const m_IPV6_CHECKSUM = 7
  432. const m_IPV6_DONTFRAG = 62
  433. const m_IPV6_DROP_MEMBERSHIP = "IPV6_LEAVE_GROUP"
  434. const m_IPV6_DSTOPTS = 59
  435. const m_IPV6_FREEBIND = 78
  436. const m_IPV6_HDRINCL = 36
  437. const m_IPV6_HOPLIMIT = 52
  438. const m_IPV6_HOPOPTS = 54
  439. const m_IPV6_IPSEC_POLICY = 34
  440. const m_IPV6_JOIN_ANYCAST = 27
  441. const m_IPV6_JOIN_GROUP = 20
  442. const m_IPV6_LEAVE_ANYCAST = 28
  443. const m_IPV6_LEAVE_GROUP = 21
  444. const m_IPV6_MINHOPCOUNT = 73
  445. const m_IPV6_MTU = 24
  446. const m_IPV6_MTU_DISCOVER = 23
  447. const m_IPV6_MULTICAST_ALL = 29
  448. const m_IPV6_MULTICAST_HOPS = 18
  449. const m_IPV6_MULTICAST_IF = 17
  450. const m_IPV6_MULTICAST_LOOP = 19
  451. const m_IPV6_NEXTHOP = 9
  452. const m_IPV6_ORIGDSTADDR = 74
  453. const m_IPV6_PATHMTU = 61
  454. const m_IPV6_PKTINFO = 50
  455. const m_IPV6_PMTUDISC_DO = 2
  456. const m_IPV6_PMTUDISC_DONT = 0
  457. const m_IPV6_PMTUDISC_INTERFACE = 4
  458. const m_IPV6_PMTUDISC_OMIT = 5
  459. const m_IPV6_PMTUDISC_PROBE = 3
  460. const m_IPV6_PMTUDISC_WANT = 1
  461. const m_IPV6_PREFER_SRC_CGA = 0x0008
  462. const m_IPV6_PREFER_SRC_COA = 0x0004
  463. const m_IPV6_PREFER_SRC_HOME = 0x0400
  464. const m_IPV6_PREFER_SRC_NONCGA = 0x0800
  465. const m_IPV6_PREFER_SRC_PUBLIC = 0x0002
  466. const m_IPV6_PREFER_SRC_PUBTMP_DEFAULT = 0x0100
  467. const m_IPV6_PREFER_SRC_TMP = 0x0001
  468. const m_IPV6_RECVDSTOPTS = 58
  469. const m_IPV6_RECVERR = 25
  470. const m_IPV6_RECVFRAGSIZE = 77
  471. const m_IPV6_RECVHOPLIMIT = 51
  472. const m_IPV6_RECVHOPOPTS = 53
  473. const m_IPV6_RECVORIGDSTADDR = "IPV6_ORIGDSTADDR"
  474. const m_IPV6_RECVPATHMTU = 60
  475. const m_IPV6_RECVPKTINFO = 49
  476. const m_IPV6_RECVRTHDR = 56
  477. const m_IPV6_RECVTCLASS = 66
  478. const m_IPV6_ROUTER_ALERT = 22
  479. const m_IPV6_ROUTER_ALERT_ISOLATE = 30
  480. const m_IPV6_RTHDR = 57
  481. const m_IPV6_RTHDRDSTOPTS = 55
  482. const m_IPV6_RTHDR_LOOSE = 0
  483. const m_IPV6_RTHDR_STRICT = 1
  484. const m_IPV6_RTHDR_TYPE_0 = 0
  485. const m_IPV6_RXDSTOPTS = "IPV6_DSTOPTS"
  486. const m_IPV6_RXHOPOPTS = "IPV6_HOPOPTS"
  487. const m_IPV6_TCLASS = 67
  488. const m_IPV6_TRANSPARENT = 75
  489. const m_IPV6_UNICAST_HOPS = 16
  490. const m_IPV6_UNICAST_IF = 76
  491. const m_IPV6_V6ONLY = 26
  492. const m_IPV6_XFRM_POLICY = 35
  493. const m_IP_ADD_MEMBERSHIP = 35
  494. const m_IP_ADD_SOURCE_MEMBERSHIP = 39
  495. const m_IP_BIND_ADDRESS_NO_PORT = 24
  496. const m_IP_BLOCK_SOURCE = 38
  497. const m_IP_CHECKSUM = 23
  498. const m_IP_DEFAULT_MULTICAST_LOOP = 1
  499. const m_IP_DEFAULT_MULTICAST_TTL = 1
  500. const m_IP_DROP_MEMBERSHIP = 36
  501. const m_IP_DROP_SOURCE_MEMBERSHIP = 40
  502. const m_IP_FREEBIND = 15
  503. const m_IP_HDRINCL = 3
  504. const m_IP_IPSEC_POLICY = 16
  505. const m_IP_MAX_MEMBERSHIPS = 20
  506. const m_IP_MINTTL = 21
  507. const m_IP_MSFILTER = 41
  508. const m_IP_MTU = 14
  509. const m_IP_MTU_DISCOVER = 10
  510. const m_IP_MULTICAST_ALL = 49
  511. const m_IP_MULTICAST_IF = 32
  512. const m_IP_MULTICAST_LOOP = 34
  513. const m_IP_MULTICAST_TTL = 33
  514. const m_IP_NODEFRAG = 22
  515. const m_IP_OPTIONS = 4
  516. const m_IP_ORIGDSTADDR = 20
  517. const m_IP_PASSSEC = 18
  518. const m_IP_PKTINFO = 8
  519. const m_IP_PKTOPTIONS = 9
  520. const m_IP_PMTUDISC = 10
  521. const m_IP_PMTUDISC_DO = 2
  522. const m_IP_PMTUDISC_DONT = 0
  523. const m_IP_PMTUDISC_INTERFACE = 4
  524. const m_IP_PMTUDISC_OMIT = 5
  525. const m_IP_PMTUDISC_PROBE = 3
  526. const m_IP_PMTUDISC_WANT = 1
  527. const m_IP_RECVERR = 11
  528. const m_IP_RECVERR_RFC4884 = 26
  529. const m_IP_RECVFRAGSIZE = 25
  530. const m_IP_RECVOPTS = 6
  531. const m_IP_RECVORIGDSTADDR = "IP_ORIGDSTADDR"
  532. const m_IP_RECVRETOPTS = "IP_RETOPTS"
  533. const m_IP_RECVTOS = 13
  534. const m_IP_RECVTTL = 12
  535. const m_IP_RETOPTS = 7
  536. const m_IP_ROUTER_ALERT = 5
  537. const m_IP_TOS = 1
  538. const m_IP_TRANSPARENT = 19
  539. const m_IP_TTL = 2
  540. const m_IP_UNBLOCK_SOURCE = 37
  541. const m_IP_UNICAST_IF = 50
  542. const m_IP_XFRM_POLICY = 17
  543. const m_LINE_MAX = 4096
  544. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  545. const m_LLONG_MAX = 0x7fffffffffffffff
  546. const m_LOGIN_NAME_MAX = 256
  547. const m_LONG_BIT = 64
  548. const m_LONG_MAX = "__LONG_MAX"
  549. const m_LT_OBJDIR = ".libs/"
  550. const m_L_INCR = 1
  551. const m_L_SET = 0
  552. const m_L_XTND = 2
  553. const m_L_ctermid = 20
  554. const m_L_cuserid = 20
  555. const m_L_tmpnam = 20
  556. const m_MAX_HANDLE_SZ = 128
  557. const m_MB_LEN_MAX = 4
  558. const m_MCAST_BLOCK_SOURCE = 43
  559. const m_MCAST_EXCLUDE = 0
  560. const m_MCAST_INCLUDE = 1
  561. const m_MCAST_JOIN_GROUP = 42
  562. const m_MCAST_JOIN_SOURCE_GROUP = 46
  563. const m_MCAST_LEAVE_GROUP = 45
  564. const m_MCAST_LEAVE_SOURCE_GROUP = 47
  565. const m_MCAST_MSFILTER = 48
  566. const m_MCAST_UNBLOCK_SOURCE = 44
  567. const m_MQ_PRIO_MAX = 32768
  568. const m_MSG_BATCH = 0x40000
  569. const m_MSG_CMSG_CLOEXEC = 0x40000000
  570. const m_MSG_CONFIRM = 0x0800
  571. const m_MSG_CTRUNC = 0x0008
  572. const m_MSG_DONTROUTE = 0x0004
  573. const m_MSG_DONTWAIT = 0x0040
  574. const m_MSG_EOR = 0x0080
  575. const m_MSG_ERRQUEUE = 0x2000
  576. const m_MSG_FASTOPEN = 0x20000000
  577. const m_MSG_FIN = 0x0200
  578. const m_MSG_MORE = 0x8000
  579. const m_MSG_NOSIGNAL = 0x4000
  580. const m_MSG_OOB = 0x0001
  581. const m_MSG_PEEK = 0x0002
  582. const m_MSG_PROXY = 0x0010
  583. const m_MSG_RST = 0x1000
  584. const m_MSG_SYN = 0x0400
  585. const m_MSG_TRUNC = 0x0020
  586. const m_MSG_WAITALL = 0x0100
  587. const m_MSG_WAITFORONE = 0x10000
  588. const m_MSG_ZEROCOPY = 0x4000000
  589. const m_NAME_MAX = 255
  590. const m_NDEBUG = 1
  591. const m_NGROUPS_MAX = 32
  592. const m_NL_ARGMAX = 9
  593. const m_NL_LANGMAX = 32
  594. const m_NL_MSGMAX = 32767
  595. const m_NL_NMAX = 16
  596. const m_NL_SETMAX = 255
  597. const m_NL_TEXTMAX = 2048
  598. const m_NZERO = 20
  599. const m_O_APPEND = 02000
  600. const m_O_ASYNC = 020000
  601. const m_O_CLOEXEC = 02000000
  602. const m_O_CREAT = 0100
  603. const m_O_DIRECT = 040000
  604. const m_O_DIRECTORY = 0200000
  605. const m_O_DSYNC = 010000
  606. const m_O_EXCL = 0200
  607. const m_O_EXEC = "O_PATH"
  608. const m_O_LARGEFILE = 0100000
  609. const m_O_NDELAY = "O_NONBLOCK"
  610. const m_O_NOATIME = 01000000
  611. const m_O_NOCTTY = 0400
  612. const m_O_NOFOLLOW = 0400000
  613. const m_O_NONBLOCK = 2048
  614. const m_O_PATH = 010000000
  615. const m_O_RDONLY = 00
  616. const m_O_RDWR = 02
  617. const m_O_RSYNC = 04010000
  618. const m_O_SEARCH = "O_PATH"
  619. const m_O_SYNC = 04010000
  620. const m_O_TMPFILE = 020200000
  621. const m_O_TRUNC = 01000
  622. const m_O_TTY_INIT = 0
  623. const m_O_WRONLY = 01
  624. const m_PACKAGE = "libxcb"
  625. const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxcb/issues"
  626. const m_PACKAGE_NAME = "libxcb"
  627. const m_PACKAGE_STRING = "libxcb 1.14"
  628. const m_PACKAGE_TARNAME = "libxcb"
  629. const m_PACKAGE_URL = ""
  630. const m_PACKAGE_VERSION = "1.14"
  631. const m_PACKAGE_VERSION_MAJOR = 1
  632. const m_PACKAGE_VERSION_MINOR = 14
  633. const m_PACKAGE_VERSION_PATCHLEVEL = 0
  634. const m_PAGESIZE = 4096
  635. const m_PAGE_SIZE = "PAGESIZE"
  636. const m_PATH_MAX = 4096
  637. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  638. const m_PF_ALG = 38
  639. const m_PF_APPLETALK = 5
  640. const m_PF_ASH = 18
  641. const m_PF_ATMPVC = 8
  642. const m_PF_ATMSVC = 20
  643. const m_PF_AX25 = 3
  644. const m_PF_BLUETOOTH = 31
  645. const m_PF_BRIDGE = 7
  646. const m_PF_CAIF = 37
  647. const m_PF_CAN = 29
  648. const m_PF_DECnet = 12
  649. const m_PF_ECONET = 19
  650. const m_PF_FILE = "PF_LOCAL"
  651. const m_PF_IB = 27
  652. const m_PF_IEEE802154 = 36
  653. const m_PF_INET = 2
  654. const m_PF_INET6 = 10
  655. const m_PF_IPX = 4
  656. const m_PF_IRDA = 23
  657. const m_PF_ISDN = 34
  658. const m_PF_IUCV = 32
  659. const m_PF_KCM = 41
  660. const m_PF_KEY = 15
  661. const m_PF_LLC = 26
  662. const m_PF_LOCAL = 1
  663. const m_PF_MAX = 45
  664. const m_PF_MPLS = 28
  665. const m_PF_NETBEUI = 13
  666. const m_PF_NETLINK = 16
  667. const m_PF_NETROM = 6
  668. const m_PF_NFC = 39
  669. const m_PF_PACKET = 17
  670. const m_PF_PHONET = 35
  671. const m_PF_PPPOX = 24
  672. const m_PF_QIPCRTR = 42
  673. const m_PF_RDS = 21
  674. const m_PF_ROSE = 11
  675. const m_PF_ROUTE = "PF_NETLINK"
  676. const m_PF_RXRPC = 33
  677. const m_PF_SECURITY = 14
  678. const m_PF_SMC = 43
  679. const m_PF_SNA = 22
  680. const m_PF_TIPC = 30
  681. const m_PF_UNIX = "PF_LOCAL"
  682. const m_PF_UNSPEC = 0
  683. const m_PF_VSOCK = 40
  684. const m_PF_WANPIPE = 25
  685. const m_PF_X25 = 9
  686. const m_PF_XDP = 44
  687. const m_PIPE_BUF = 4096
  688. const m_POLLERR = 0x008
  689. const m_POLLHUP = 0x010
  690. const m_POLLIN = 1
  691. const m_POLLMSG = 0x400
  692. const m_POLLNVAL = 0x020
  693. const m_POLLOUT = 4
  694. const m_POLLPRI = 0x002
  695. const m_POLLRDBAND = 0x080
  696. const m_POLLRDHUP = 0x2000
  697. const m_POLLRDNORM = 0x040
  698. const m_POLLWRBAND = 0x200
  699. const m_POLLWRNORM = 0x100
  700. const m_POSIX_CLOSE_RESTART = 0
  701. const m_POSIX_FADV_DONTNEED = 6
  702. const m_POSIX_FADV_NOREUSE = 7
  703. const m_POSIX_FADV_NORMAL = 0
  704. const m_POSIX_FADV_RANDOM = 1
  705. const m_POSIX_FADV_SEQUENTIAL = 2
  706. const m_POSIX_FADV_WILLNEED = 3
  707. const m_PRIX16 = "X"
  708. const m_PRIX32 = "X"
  709. const m_PRIX8 = "X"
  710. const m_PRIXFAST16 = "X"
  711. const m_PRIXFAST32 = "X"
  712. const m_PRIXFAST8 = "X"
  713. const m_PRIXLEAST16 = "X"
  714. const m_PRIXLEAST32 = "X"
  715. const m_PRIXLEAST8 = "X"
  716. const m_PRId16 = "d"
  717. const m_PRId32 = "d"
  718. const m_PRId8 = "d"
  719. const m_PRIdFAST16 = "d"
  720. const m_PRIdFAST32 = "d"
  721. const m_PRIdFAST8 = "d"
  722. const m_PRIdLEAST16 = "d"
  723. const m_PRIdLEAST32 = "d"
  724. const m_PRIdLEAST8 = "d"
  725. const m_PRIi16 = "i"
  726. const m_PRIi32 = "i"
  727. const m_PRIi8 = "i"
  728. const m_PRIiFAST16 = "i"
  729. const m_PRIiFAST32 = "i"
  730. const m_PRIiFAST8 = "i"
  731. const m_PRIiLEAST16 = "i"
  732. const m_PRIiLEAST32 = "i"
  733. const m_PRIiLEAST8 = "i"
  734. const m_PRIo16 = "o"
  735. const m_PRIo32 = "o"
  736. const m_PRIo8 = "o"
  737. const m_PRIoFAST16 = "o"
  738. const m_PRIoFAST32 = "o"
  739. const m_PRIoFAST8 = "o"
  740. const m_PRIoLEAST16 = "o"
  741. const m_PRIoLEAST32 = "o"
  742. const m_PRIoLEAST8 = "o"
  743. const m_PRIu16 = "u"
  744. const m_PRIu32 = "u"
  745. const m_PRIu8 = "u"
  746. const m_PRIuFAST16 = "u"
  747. const m_PRIuFAST32 = "u"
  748. const m_PRIuFAST8 = "u"
  749. const m_PRIuLEAST16 = "u"
  750. const m_PRIuLEAST32 = "u"
  751. const m_PRIuLEAST8 = "u"
  752. const m_PRIx16 = "x"
  753. const m_PRIx32 = "x"
  754. const m_PRIx8 = "x"
  755. const m_PRIxFAST16 = "x"
  756. const m_PRIxFAST32 = "x"
  757. const m_PRIxFAST8 = "x"
  758. const m_PRIxLEAST16 = "x"
  759. const m_PRIxLEAST32 = "x"
  760. const m_PRIxLEAST8 = "x"
  761. const m_PTHREAD_CANCEL_ASYNCHRONOUS = 1
  762. const m_PTHREAD_CANCEL_DEFERRED = 0
  763. const m_PTHREAD_CANCEL_DISABLE = 1
  764. const m_PTHREAD_CANCEL_ENABLE = 0
  765. const m_PTHREAD_CANCEL_MASKED = 2
  766. const m_PTHREAD_CREATE_DETACHED = 1
  767. const m_PTHREAD_CREATE_JOINABLE = 0
  768. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  769. const m_PTHREAD_EXPLICIT_SCHED = 1
  770. const m_PTHREAD_INHERIT_SCHED = 0
  771. const m_PTHREAD_KEYS_MAX = 128
  772. const m_PTHREAD_MUTEX_DEFAULT = 0
  773. const m_PTHREAD_MUTEX_ERRORCHECK = 2
  774. const m_PTHREAD_MUTEX_NORMAL = 0
  775. const m_PTHREAD_MUTEX_RECURSIVE = 1
  776. const m_PTHREAD_MUTEX_ROBUST = 1
  777. const m_PTHREAD_MUTEX_STALLED = 0
  778. const m_PTHREAD_ONCE_INIT = 0
  779. const m_PTHREAD_PRIO_INHERIT = 1
  780. const m_PTHREAD_PRIO_NONE = 0
  781. const m_PTHREAD_PRIO_PROTECT = 2
  782. const m_PTHREAD_PROCESS_PRIVATE = 0
  783. const m_PTHREAD_PROCESS_SHARED = 1
  784. const m_PTHREAD_SCOPE_PROCESS = 1
  785. const m_PTHREAD_SCOPE_SYSTEM = 0
  786. const m_PTHREAD_STACK_MIN = 2048
  787. const m_PTRDIFF_MAX = "INT64_MAX"
  788. const m_PTRDIFF_MIN = "INT64_MIN"
  789. const m_P_tmpdir = "/tmp"
  790. const m_RAND_MAX = 0x7fffffff
  791. const m_RE_DUP_MAX = 255
  792. const m_RWF_APPEND = 0x00000010
  793. const m_RWF_DSYNC = 0x00000002
  794. const m_RWF_HIPRI = 0x00000001
  795. const m_RWF_NOWAIT = 0x00000008
  796. const m_RWF_SYNC = 0x00000004
  797. const m_RWF_WRITE_LIFE_NOT_SET = 0
  798. const m_RWH_WRITE_LIFE_EXTREME = 5
  799. const m_RWH_WRITE_LIFE_LONG = 4
  800. const m_RWH_WRITE_LIFE_MEDIUM = 3
  801. const m_RWH_WRITE_LIFE_NONE = 1
  802. const m_RWH_WRITE_LIFE_SHORT = 2
  803. const m_R_OK = 4
  804. const m_SCHAR_MAX = 127
  805. const m_SCHED_BATCH = 3
  806. const m_SCHED_DEADLINE = 6
  807. const m_SCHED_FIFO = 1
  808. const m_SCHED_IDLE = 5
  809. const m_SCHED_OTHER = 0
  810. const m_SCHED_RESET_ON_FORK = 0x40000000
  811. const m_SCHED_RR = 2
  812. const m_SCM_CREDENTIALS = 0x02
  813. const m_SCM_RIGHTS = 1
  814. const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
  815. const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
  816. const m_SCM_TIMESTAMPING_OPT_STATS = 54
  817. const m_SCM_TIMESTAMPING_PKTINFO = 58
  818. const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
  819. const m_SCM_TXTIME = "SO_TXTIME"
  820. const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
  821. const m_SCNd16 = "hd"
  822. const m_SCNd32 = "d"
  823. const m_SCNd8 = "hhd"
  824. const m_SCNdFAST16 = "d"
  825. const m_SCNdFAST32 = "d"
  826. const m_SCNdFAST8 = "hhd"
  827. const m_SCNdLEAST16 = "hd"
  828. const m_SCNdLEAST32 = "d"
  829. const m_SCNdLEAST8 = "hhd"
  830. const m_SCNi16 = "hi"
  831. const m_SCNi32 = "i"
  832. const m_SCNi8 = "hhi"
  833. const m_SCNiFAST16 = "i"
  834. const m_SCNiFAST32 = "i"
  835. const m_SCNiFAST8 = "hhi"
  836. const m_SCNiLEAST16 = "hi"
  837. const m_SCNiLEAST32 = "i"
  838. const m_SCNiLEAST8 = "hhi"
  839. const m_SCNo16 = "ho"
  840. const m_SCNo32 = "o"
  841. const m_SCNo8 = "hho"
  842. const m_SCNoFAST16 = "o"
  843. const m_SCNoFAST32 = "o"
  844. const m_SCNoFAST8 = "hho"
  845. const m_SCNoLEAST16 = "ho"
  846. const m_SCNoLEAST32 = "o"
  847. const m_SCNoLEAST8 = "hho"
  848. const m_SCNu16 = "hu"
  849. const m_SCNu32 = "u"
  850. const m_SCNu8 = "hhu"
  851. const m_SCNuFAST16 = "u"
  852. const m_SCNuFAST32 = "u"
  853. const m_SCNuFAST8 = "hhu"
  854. const m_SCNuLEAST16 = "hu"
  855. const m_SCNuLEAST32 = "u"
  856. const m_SCNuLEAST8 = "hhu"
  857. const m_SCNx16 = "hx"
  858. const m_SCNx32 = "x"
  859. const m_SCNx8 = "hhx"
  860. const m_SCNxFAST16 = "x"
  861. const m_SCNxFAST32 = "x"
  862. const m_SCNxFAST8 = "hhx"
  863. const m_SCNxLEAST16 = "hx"
  864. const m_SCNxLEAST32 = "x"
  865. const m_SCNxLEAST8 = "hhx"
  866. const m_SEEK_DATA = 3
  867. const m_SEEK_HOLE = 4
  868. const m_SEM_NSEMS_MAX = 256
  869. const m_SEM_VALUE_MAX = 0x7fffffff
  870. const m_SHRT_MAX = 0x7fff
  871. const m_SHUT_RD = 0
  872. const m_SHUT_RDWR = 2
  873. const m_SHUT_WR = 1
  874. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  875. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  876. const m_SIZE_MAX = "UINT64_MAX"
  877. const m_SOCK_CLOEXEC = 02000000
  878. const m_SOCK_DCCP = 6
  879. const m_SOCK_DGRAM = 2
  880. const m_SOCK_NONBLOCK = 04000
  881. const m_SOCK_PACKET = 10
  882. const m_SOCK_RAW = 3
  883. const m_SOCK_RDM = 4
  884. const m_SOCK_SEQPACKET = 5
  885. const m_SOCK_STREAM = 1
  886. const m_SOL_AAL = 265
  887. const m_SOL_ALG = 279
  888. const m_SOL_ATM = 264
  889. const m_SOL_BLUETOOTH = 274
  890. const m_SOL_CAIF = 278
  891. const m_SOL_DCCP = 269
  892. const m_SOL_DECNET = 261
  893. const m_SOL_ICMPV6 = 58
  894. const m_SOL_IP = 0
  895. const m_SOL_IPV6 = 41
  896. const m_SOL_IRDA = 266
  897. const m_SOL_IUCV = 277
  898. const m_SOL_KCM = 281
  899. const m_SOL_LLC = 268
  900. const m_SOL_NETBEUI = 267
  901. const m_SOL_NETLINK = 270
  902. const m_SOL_NFC = 280
  903. const m_SOL_PACKET = 263
  904. const m_SOL_PNPIPE = 275
  905. const m_SOL_PPPOL2TP = 273
  906. const m_SOL_RAW = 255
  907. const m_SOL_RDS = 276
  908. const m_SOL_RXRPC = 272
  909. const m_SOL_SOCKET = 1
  910. const m_SOL_TIPC = 271
  911. const m_SOL_TLS = 282
  912. const m_SOL_X25 = 262
  913. const m_SOL_XDP = 283
  914. const m_SOMAXCONN = 128
  915. const m_SO_ACCEPTCONN = 30
  916. const m_SO_ATTACH_BPF = 50
  917. const m_SO_ATTACH_FILTER = 26
  918. const m_SO_ATTACH_REUSEPORT_CBPF = 51
  919. const m_SO_ATTACH_REUSEPORT_EBPF = 52
  920. const m_SO_BINDTODEVICE = 25
  921. const m_SO_BINDTOIFINDEX = 62
  922. const m_SO_BPF_EXTENSIONS = 48
  923. const m_SO_BROADCAST = 6
  924. const m_SO_BSDCOMPAT = 14
  925. const m_SO_BUSY_POLL = 46
  926. const m_SO_BUSY_POLL_BUDGET = 70
  927. const m_SO_CNX_ADVICE = 53
  928. const m_SO_COOKIE = 57
  929. const m_SO_DEBUG = 1
  930. const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
  931. const m_SO_DETACH_FILTER = 27
  932. const m_SO_DETACH_REUSEPORT_BPF = 68
  933. const m_SO_DOMAIN = 39
  934. const m_SO_DONTROUTE = 5
  935. const m_SO_ERROR = 4
  936. const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
  937. const m_SO_INCOMING_CPU = 49
  938. const m_SO_INCOMING_NAPI_ID = 56
  939. const m_SO_KEEPALIVE = 9
  940. const m_SO_LINGER = 13
  941. const m_SO_LOCK_FILTER = 44
  942. const m_SO_MARK = 36
  943. const m_SO_MAX_PACING_RATE = 47
  944. const m_SO_MEMINFO = 55
  945. const m_SO_NOFCS = 43
  946. const m_SO_NO_CHECK = 11
  947. const m_SO_OOBINLINE = 10
  948. const m_SO_PASSCRED = 16
  949. const m_SO_PASSSEC = 34
  950. const m_SO_PEEK_OFF = 42
  951. const m_SO_PEERCRED = 17
  952. const m_SO_PEERGROUPS = 59
  953. const m_SO_PEERNAME = 28
  954. const m_SO_PEERSEC = 31
  955. const m_SO_PREFER_BUSY_POLL = 69
  956. const m_SO_PRIORITY = 12
  957. const m_SO_PROTOCOL = 38
  958. const m_SO_RCVBUF = 8
  959. const m_SO_RCVBUFFORCE = 33
  960. const m_SO_RCVLOWAT = 18
  961. const m_SO_RCVTIMEO = 20
  962. const m_SO_REUSEADDR = 2
  963. const m_SO_REUSEPORT = 15
  964. const m_SO_RXQ_OVFL = 40
  965. const m_SO_SECURITY_AUTHENTICATION = 22
  966. const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
  967. const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
  968. const m_SO_SELECT_ERR_QUEUE = 45
  969. const m_SO_SNDBUF = 7
  970. const m_SO_SNDBUFFORCE = 32
  971. const m_SO_SNDLOWAT = 19
  972. const m_SO_SNDTIMEO = 21
  973. const m_SO_TIMESTAMP = 29
  974. const m_SO_TIMESTAMPING = 37
  975. const m_SO_TIMESTAMPNS = 35
  976. const m_SO_TXTIME = 61
  977. const m_SO_TYPE = 3
  978. const m_SO_WIFI_STATUS = 41
  979. const m_SO_ZEROCOPY = 60
  980. const m_SPLICE_F_GIFT = 8
  981. const m_SPLICE_F_MORE = 4
  982. const m_SPLICE_F_MOVE = 1
  983. const m_SPLICE_F_NONBLOCK = 2
  984. const m_SSIZE_MAX = "LONG_MAX"
  985. const m_STDC_HEADERS = 1
  986. const m_STDERR_FILENO = 2
  987. const m_STDIN_FILENO = 0
  988. const m_STDOUT_FILENO = 1
  989. const m_SYMLOOP_MAX = 40
  990. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  991. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  992. const m_SYNC_FILE_RANGE_WRITE = 2
  993. const m_S_IRGRP = 0040
  994. const m_S_IROTH = 0004
  995. const m_S_IRUSR = 0400
  996. const m_S_IRWXG = 0070
  997. const m_S_IRWXO = 0007
  998. const m_S_IRWXU = 0700
  999. const m_S_ISGID = 02000
  1000. const m_S_ISUID = 04000
  1001. const m_S_ISVTX = 01000
  1002. const m_S_IWGRP = 0020
  1003. const m_S_IWOTH = 0002
  1004. const m_S_IWUSR = 0200
  1005. const m_S_IXGRP = 0010
  1006. const m_S_IXOTH = 0001
  1007. const m_S_IXUSR = 0100
  1008. const m_TIMER_ABSTIME = 1
  1009. const m_TIME_UTC = 1
  1010. const m_TMP_MAX = 10000
  1011. const m_TTY_NAME_MAX = 32
  1012. const m_TZNAME_MAX = 6
  1013. const m_UCHAR_MAX = 255
  1014. const m_UINT16_MAX = 0xffff
  1015. const m_UINT32_MAX = "0xffffffffu"
  1016. const m_UINT64_MAX = "0xffffffffffffffffu"
  1017. const m_UINT8_MAX = 0xff
  1018. const m_UINTMAX_MAX = "UINT64_MAX"
  1019. const m_UINTPTR_MAX = "UINT64_MAX"
  1020. const m_UINT_FAST16_MAX = "UINT32_MAX"
  1021. const m_UINT_FAST32_MAX = "UINT32_MAX"
  1022. const m_UINT_FAST64_MAX = "UINT64_MAX"
  1023. const m_UINT_FAST8_MAX = "UINT8_MAX"
  1024. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  1025. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  1026. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  1027. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  1028. const m_UINT_MAX = 0xffffffff
  1029. const m_UIO_MAXIOV = 1024
  1030. const m_USE_POLL = 1
  1031. const m_USHRT_MAX = 0xffff
  1032. const m_VERSION = "1.14"
  1033. const m_WINT_MAX = "UINT32_MAX"
  1034. const m_WINT_MIN = 0
  1035. const m_WNOHANG = 1
  1036. const m_WORD_BIT = 32
  1037. const m_WUNTRACED = 2
  1038. const m_W_OK = 2
  1039. const m_XCB_ACCESS = 10
  1040. const m_XCB_ALLOC = 11
  1041. const m_XCB_ALLOC_COLOR = 84
  1042. const m_XCB_ALLOC_COLOR_CELLS = 86
  1043. const m_XCB_ALLOC_COLOR_PLANES = 87
  1044. const m_XCB_ALLOC_NAMED_COLOR = 85
  1045. const m_XCB_ALLOW_EVENTS = 35
  1046. const m_XCB_ATOM = 5
  1047. const m_XCB_BELL = 104
  1048. const m_XCB_BIGREQUESTS_MAJOR_VERSION = 0
  1049. const m_XCB_BIGREQUESTS_MINOR_VERSION = 0
  1050. const m_XCB_BIG_REQUESTS_ENABLE = 0
  1051. const m_XCB_BUTTON_PRESS = 4
  1052. const m_XCB_BUTTON_RELEASE = 5
  1053. const m_XCB_CHANGE_ACTIVE_POINTER_GRAB = 30
  1054. const m_XCB_CHANGE_GC = 56
  1055. const m_XCB_CHANGE_HOSTS = 109
  1056. const m_XCB_CHANGE_KEYBOARD_CONTROL = 102
  1057. const m_XCB_CHANGE_KEYBOARD_MAPPING = 100
  1058. const m_XCB_CHANGE_POINTER_CONTROL = 105
  1059. const m_XCB_CHANGE_PROPERTY = 18
  1060. const m_XCB_CHANGE_SAVE_SET = 6
  1061. const m_XCB_CHANGE_WINDOW_ATTRIBUTES = 2
  1062. const m_XCB_CIRCULATE_NOTIFY = 26
  1063. const m_XCB_CIRCULATE_REQUEST = 27
  1064. const m_XCB_CIRCULATE_WINDOW = 13
  1065. const m_XCB_CLEAR_AREA = 61
  1066. const m_XCB_CLIENT_MESSAGE = 33
  1067. const m_XCB_CLOSE_FONT = 46
  1068. const m_XCB_COLORMAP = 12
  1069. const m_XCB_COLORMAP_NOTIFY = 32
  1070. const m_XCB_CONFIGURE_NOTIFY = 22
  1071. const m_XCB_CONFIGURE_REQUEST = 23
  1072. const m_XCB_CONFIGURE_WINDOW = 12
  1073. const m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED = 2
  1074. const m_XCB_CONN_CLOSED_FDPASSING_FAILED = 7
  1075. const m_XCB_CONN_CLOSED_INVALID_SCREEN = 6
  1076. const m_XCB_CONN_CLOSED_MEM_INSUFFICIENT = 3
  1077. const m_XCB_CONN_CLOSED_PARSE_ERR = 5
  1078. const m_XCB_CONN_CLOSED_REQ_LEN_EXCEED = 4
  1079. const m_XCB_CONN_ERROR = 1
  1080. const m_XCB_CONVERT_SELECTION = 24
  1081. const m_XCB_COPY_AREA = 62
  1082. const m_XCB_COPY_COLORMAP_AND_FREE = 80
  1083. const m_XCB_COPY_FROM_PARENT = 0
  1084. const m_XCB_COPY_GC = 57
  1085. const m_XCB_COPY_PLANE = 63
  1086. const m_XCB_CREATE_COLORMAP = 78
  1087. const m_XCB_CREATE_CURSOR = 93
  1088. const m_XCB_CREATE_GC = 55
  1089. const m_XCB_CREATE_GLYPH_CURSOR = 94
  1090. const m_XCB_CREATE_NOTIFY = 16
  1091. const m_XCB_CREATE_PIXMAP = 53
  1092. const m_XCB_CREATE_WINDOW = 1
  1093. const m_XCB_CURRENT_TIME = 0
  1094. const m_XCB_CURSOR = 6
  1095. const m_XCB_DELETE_PROPERTY = 19
  1096. const m_XCB_DESTROY_NOTIFY = 17
  1097. const m_XCB_DESTROY_SUBWINDOWS = 5
  1098. const m_XCB_DESTROY_WINDOW = 4
  1099. const m_XCB_DRAWABLE = 9
  1100. const m_XCB_ENTER_NOTIFY = 7
  1101. const m_XCB_EXPOSE = 12
  1102. const m_XCB_FILL_POLY = 69
  1103. const m_XCB_FOCUS_IN = 9
  1104. const m_XCB_FOCUS_OUT = 10
  1105. const m_XCB_FONT = 7
  1106. const m_XCB_FORCE_SCREEN_SAVER = 115
  1107. const m_XCB_FREE_COLORMAP = 79
  1108. const m_XCB_FREE_COLORS = 88
  1109. const m_XCB_FREE_CURSOR = 95
  1110. const m_XCB_FREE_GC = 60
  1111. const m_XCB_FREE_PIXMAP = 54
  1112. const m_XCB_GET_ATOM_NAME = 17
  1113. const m_XCB_GET_FONT_PATH = 52
  1114. const m_XCB_GET_GEOMETRY = 14
  1115. const m_XCB_GET_IMAGE = 73
  1116. const m_XCB_GET_INPUT_FOCUS = 43
  1117. const m_XCB_GET_KEYBOARD_CONTROL = 103
  1118. const m_XCB_GET_KEYBOARD_MAPPING = 101
  1119. const m_XCB_GET_MODIFIER_MAPPING = 119
  1120. const m_XCB_GET_MOTION_EVENTS = 39
  1121. const m_XCB_GET_POINTER_CONTROL = 106
  1122. const m_XCB_GET_POINTER_MAPPING = 117
  1123. const m_XCB_GET_PROPERTY = 20
  1124. const m_XCB_GET_SCREEN_SAVER = 108
  1125. const m_XCB_GET_SELECTION_OWNER = 23
  1126. const m_XCB_GET_WINDOW_ATTRIBUTES = 3
  1127. const m_XCB_GE_GENERIC = 35
  1128. const m_XCB_GRAB_BUTTON = 28
  1129. const m_XCB_GRAB_KEY = 33
  1130. const m_XCB_GRAB_KEYBOARD = 31
  1131. const m_XCB_GRAB_POINTER = 26
  1132. const m_XCB_GRAB_SERVER = 36
  1133. const m_XCB_GRAPHICS_EXPOSURE = 13
  1134. const m_XCB_GRAVITY_NOTIFY = 24
  1135. const m_XCB_G_CONTEXT = 13
  1136. const m_XCB_ID_CHOICE = 14
  1137. const m_XCB_IMAGE_TEXT_16 = 77
  1138. const m_XCB_IMAGE_TEXT_8 = 76
  1139. const m_XCB_IMPLEMENTATION = 17
  1140. const m_XCB_INSTALL_COLORMAP = 81
  1141. const m_XCB_INTERN_ATOM = 16
  1142. const m_XCB_KEYMAP_NOTIFY = 11
  1143. const m_XCB_KEY_PRESS = 2
  1144. const m_XCB_KEY_RELEASE = 3
  1145. const m_XCB_KILL_CLIENT = 113
  1146. const m_XCB_LEAVE_NOTIFY = 8
  1147. const m_XCB_LENGTH = 16
  1148. const m_XCB_LIST_EXTENSIONS = 99
  1149. const m_XCB_LIST_FONTS = 49
  1150. const m_XCB_LIST_FONTS_WITH_INFO = 50
  1151. const m_XCB_LIST_HOSTS = 110
  1152. const m_XCB_LIST_INSTALLED_COLORMAPS = 83
  1153. const m_XCB_LIST_PROPERTIES = 21
  1154. const m_XCB_LOOKUP_COLOR = 92
  1155. const m_XCB_MAPPING_NOTIFY = 34
  1156. const m_XCB_MAP_NOTIFY = 19
  1157. const m_XCB_MAP_REQUEST = 20
  1158. const m_XCB_MAP_SUBWINDOWS = 9
  1159. const m_XCB_MAP_WINDOW = 8
  1160. const m_XCB_MATCH = 8
  1161. const m_XCB_MAX_PASS_FD = 16
  1162. const m_XCB_MOTION_NOTIFY = 6
  1163. const m_XCB_NAME = 15
  1164. const m_XCB_NONE = 0
  1165. const m_XCB_NO_EXPOSURE = 14
  1166. const m_XCB_NO_OPERATION = 127
  1167. const m_XCB_NO_SYMBOL = 0
  1168. const m_XCB_OPEN_FONT = 45
  1169. const m_XCB_PIXMAP = 4
  1170. const m_XCB_POLY_ARC = 68
  1171. const m_XCB_POLY_FILL_ARC = 71
  1172. const m_XCB_POLY_FILL_RECTANGLE = 70
  1173. const m_XCB_POLY_LINE = 65
  1174. const m_XCB_POLY_POINT = 64
  1175. const m_XCB_POLY_RECTANGLE = 67
  1176. const m_XCB_POLY_SEGMENT = 66
  1177. const m_XCB_POLY_TEXT_16 = 75
  1178. const m_XCB_POLY_TEXT_8 = 74
  1179. const m_XCB_PROPERTY_NOTIFY = 28
  1180. const m_XCB_PUT_IMAGE = 72
  1181. const m_XCB_QUERY_BEST_SIZE = 97
  1182. const m_XCB_QUERY_COLORS = 91
  1183. const m_XCB_QUERY_EXTENSION = 98
  1184. const m_XCB_QUERY_FONT = 47
  1185. const m_XCB_QUERY_KEYMAP = 44
  1186. const m_XCB_QUERY_POINTER = 38
  1187. const m_XCB_QUERY_TEXT_EXTENTS = 48
  1188. const m_XCB_QUERY_TREE = 15
  1189. const m_XCB_QUEUE_BUFFER_SIZE = 16384
  1190. const m_XCB_RECOLOR_CURSOR = 96
  1191. const m_XCB_REPARENT_NOTIFY = 21
  1192. const m_XCB_REPARENT_WINDOW = 7
  1193. const m_XCB_REQUEST = 1
  1194. const m_XCB_RESIZE_REQUEST = 25
  1195. const m_XCB_ROTATE_PROPERTIES = 114
  1196. const m_XCB_SELECTION_CLEAR = 29
  1197. const m_XCB_SELECTION_NOTIFY = 31
  1198. const m_XCB_SELECTION_REQUEST = 30
  1199. const m_XCB_SEND_EVENT = 25
  1200. const m_XCB_SET_ACCESS_CONTROL = 111
  1201. const m_XCB_SET_CLIP_RECTANGLES = 59
  1202. const m_XCB_SET_CLOSE_DOWN_MODE = 112
  1203. const m_XCB_SET_DASHES = 58
  1204. const m_XCB_SET_FONT_PATH = 51
  1205. const m_XCB_SET_INPUT_FOCUS = 42
  1206. const m_XCB_SET_MODIFIER_MAPPING = 118
  1207. const m_XCB_SET_POINTER_MAPPING = 116
  1208. const m_XCB_SET_SCREEN_SAVER = 107
  1209. const m_XCB_SET_SELECTION_OWNER = 22
  1210. const m_XCB_STORE_COLORS = 89
  1211. const m_XCB_STORE_NAMED_COLOR = 90
  1212. const m_XCB_TRANSLATE_COORDINATES = 40
  1213. const m_XCB_UNGRAB_BUTTON = 29
  1214. const m_XCB_UNGRAB_KEY = 34
  1215. const m_XCB_UNGRAB_KEYBOARD = 32
  1216. const m_XCB_UNGRAB_POINTER = 27
  1217. const m_XCB_UNGRAB_SERVER = 37
  1218. const m_XCB_UNINSTALL_COLORMAP = 82
  1219. const m_XCB_UNMAP_NOTIFY = 18
  1220. const m_XCB_UNMAP_SUBWINDOWS = 11
  1221. const m_XCB_UNMAP_WINDOW = 10
  1222. const m_XCB_VALUE = 2
  1223. const m_XCB_VISIBILITY_NOTIFY = 15
  1224. const m_XCB_WARP_POINTER = 41
  1225. const m_XCB_WINDOW = 3
  1226. const m_X_OK = 1
  1227. const m_X_PROTOCOL = 11
  1228. const m_X_PROTOCOL_REVISION = 0
  1229. const m_X_TCP_PORT = 6000
  1230. const m__ALL_SOURCE = 1
  1231. const m__CS_GNU_LIBC_VERSION = 2
  1232. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  1233. const m__CS_PATH = 0
  1234. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  1235. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  1236. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  1237. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  1238. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  1239. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  1240. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  1241. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  1242. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  1243. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  1244. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  1245. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  1246. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  1247. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  1248. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  1249. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  1250. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  1251. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  1252. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  1253. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  1254. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  1255. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  1256. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  1257. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  1258. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  1259. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  1260. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  1261. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  1262. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  1263. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  1264. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  1265. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  1266. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  1267. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  1268. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  1269. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  1270. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  1271. const m__CS_V6_ENV = 1148
  1272. const m__CS_V7_ENV = 1149
  1273. const m__GNU_SOURCE = 1
  1274. const m__IOFBF = 0
  1275. const m__IOLBF = 1
  1276. const m__IONBF = 2
  1277. const m__LP64 = 1
  1278. const m__PC_2_SYMLINKS = 20
  1279. const m__PC_ALLOC_SIZE_MIN = 18
  1280. const m__PC_ASYNC_IO = 10
  1281. const m__PC_CHOWN_RESTRICTED = 6
  1282. const m__PC_FILESIZEBITS = 13
  1283. const m__PC_LINK_MAX = 0
  1284. const m__PC_MAX_CANON = 1
  1285. const m__PC_MAX_INPUT = 2
  1286. const m__PC_NAME_MAX = 3
  1287. const m__PC_NO_TRUNC = 7
  1288. const m__PC_PATH_MAX = 4
  1289. const m__PC_PIPE_BUF = 5
  1290. const m__PC_PRIO_IO = 11
  1291. const m__PC_REC_INCR_XFER_SIZE = 14
  1292. const m__PC_REC_MAX_XFER_SIZE = 15
  1293. const m__PC_REC_MIN_XFER_SIZE = 16
  1294. const m__PC_REC_XFER_ALIGN = 17
  1295. const m__PC_SOCK_MAXBUF = 12
  1296. const m__PC_SYMLINK_MAX = 19
  1297. const m__PC_SYNC_IO = 9
  1298. const m__PC_VDISABLE = 8
  1299. const m__POSIX2_BC_BASE_MAX = 99
  1300. const m__POSIX2_BC_DIM_MAX = 2048
  1301. const m__POSIX2_BC_SCALE_MAX = 99
  1302. const m__POSIX2_BC_STRING_MAX = 1000
  1303. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  1304. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  1305. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  1306. const m__POSIX2_EXPR_NEST_MAX = 32
  1307. const m__POSIX2_LINE_MAX = 2048
  1308. const m__POSIX2_RE_DUP_MAX = 255
  1309. const m__POSIX2_VERSION = "_POSIX_VERSION"
  1310. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  1311. const m__POSIX_AIO_LISTIO_MAX = 2
  1312. const m__POSIX_AIO_MAX = 1
  1313. const m__POSIX_ARG_MAX = 4096
  1314. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  1315. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  1316. const m__POSIX_CHILD_MAX = 25
  1317. const m__POSIX_CHOWN_RESTRICTED = 1
  1318. const m__POSIX_CLOCKRES_MIN = 20000000
  1319. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  1320. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  1321. const m__POSIX_DELAYTIMER_MAX = 32
  1322. const m__POSIX_FSYNC = "_POSIX_VERSION"
  1323. const m__POSIX_HOST_NAME_MAX = 255
  1324. const m__POSIX_IPV6 = "_POSIX_VERSION"
  1325. const m__POSIX_JOB_CONTROL = 1
  1326. const m__POSIX_LINK_MAX = 8
  1327. const m__POSIX_LOGIN_NAME_MAX = 9
  1328. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  1329. const m__POSIX_MAX_CANON = 255
  1330. const m__POSIX_MAX_INPUT = 255
  1331. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  1332. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  1333. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  1334. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  1335. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  1336. const m__POSIX_MQ_OPEN_MAX = 8
  1337. const m__POSIX_MQ_PRIO_MAX = 32
  1338. const m__POSIX_NAME_MAX = 14
  1339. const m__POSIX_NGROUPS_MAX = 8
  1340. const m__POSIX_NO_TRUNC = 1
  1341. const m__POSIX_OPEN_MAX = 20
  1342. const m__POSIX_PATH_MAX = 256
  1343. const m__POSIX_PIPE_BUF = 512
  1344. const m__POSIX_PTHREAD_SEMANTICS = 1
  1345. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  1346. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  1347. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  1348. const m__POSIX_REGEXP = 1
  1349. const m__POSIX_RE_DUP_MAX = 255
  1350. const m__POSIX_RTSIG_MAX = 8
  1351. const m__POSIX_SAVED_IDS = 1
  1352. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  1353. const m__POSIX_SEM_NSEMS_MAX = 256
  1354. const m__POSIX_SEM_VALUE_MAX = 32767
  1355. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  1356. const m__POSIX_SHELL = 1
  1357. const m__POSIX_SIGQUEUE_MAX = 32
  1358. const m__POSIX_SPAWN = "_POSIX_VERSION"
  1359. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  1360. const m__POSIX_SSIZE_MAX = 32767
  1361. const m__POSIX_SS_REPL_MAX = 4
  1362. const m__POSIX_STREAM_MAX = 8
  1363. const m__POSIX_SYMLINK_MAX = 255
  1364. const m__POSIX_SYMLOOP_MAX = 8
  1365. const m__POSIX_THREADS = "_POSIX_VERSION"
  1366. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  1367. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  1368. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  1369. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  1370. const m__POSIX_THREAD_KEYS_MAX = 128
  1371. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  1372. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  1373. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  1374. const m__POSIX_THREAD_THREADS_MAX = 64
  1375. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  1376. const m__POSIX_TIMERS = "_POSIX_VERSION"
  1377. const m__POSIX_TIMER_MAX = 32
  1378. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  1379. const m__POSIX_TRACE_NAME_MAX = 8
  1380. const m__POSIX_TRACE_SYS_MAX = 8
  1381. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  1382. const m__POSIX_TTY_NAME_MAX = 9
  1383. const m__POSIX_TZNAME_MAX = 6
  1384. const m__POSIX_V6_LP64_OFF64 = 1
  1385. const m__POSIX_V7_LP64_OFF64 = 1
  1386. const m__POSIX_VDISABLE = 0
  1387. const m__POSIX_VERSION = 200809
  1388. const m__SC_2_CHAR_TERM = 95
  1389. const m__SC_2_C_BIND = 47
  1390. const m__SC_2_C_DEV = 48
  1391. const m__SC_2_FORT_DEV = 49
  1392. const m__SC_2_FORT_RUN = 50
  1393. const m__SC_2_LOCALEDEF = 52
  1394. const m__SC_2_PBS = 168
  1395. const m__SC_2_PBS_ACCOUNTING = 169
  1396. const m__SC_2_PBS_CHECKPOINT = 175
  1397. const m__SC_2_PBS_LOCATE = 170
  1398. const m__SC_2_PBS_MESSAGE = 171
  1399. const m__SC_2_PBS_TRACK = 172
  1400. const m__SC_2_SW_DEV = 51
  1401. const m__SC_2_UPE = 97
  1402. const m__SC_2_VERSION = 46
  1403. const m__SC_ADVISORY_INFO = 132
  1404. const m__SC_AIO_LISTIO_MAX = 23
  1405. const m__SC_AIO_MAX = 24
  1406. const m__SC_AIO_PRIO_DELTA_MAX = 25
  1407. const m__SC_ARG_MAX = 0
  1408. const m__SC_ASYNCHRONOUS_IO = 12
  1409. const m__SC_ATEXIT_MAX = 87
  1410. const m__SC_AVPHYS_PAGES = 86
  1411. const m__SC_BARRIERS = 133
  1412. const m__SC_BC_BASE_MAX = 36
  1413. const m__SC_BC_DIM_MAX = 37
  1414. const m__SC_BC_SCALE_MAX = 38
  1415. const m__SC_BC_STRING_MAX = 39
  1416. const m__SC_CHILD_MAX = 1
  1417. const m__SC_CLK_TCK = 2
  1418. const m__SC_CLOCK_SELECTION = 137
  1419. const m__SC_COLL_WEIGHTS_MAX = 40
  1420. const m__SC_CPUTIME = 138
  1421. const m__SC_DELAYTIMER_MAX = 26
  1422. const m__SC_EXPR_NEST_MAX = 42
  1423. const m__SC_FSYNC = 15
  1424. const m__SC_GETGR_R_SIZE_MAX = 69
  1425. const m__SC_GETPW_R_SIZE_MAX = 70
  1426. const m__SC_HOST_NAME_MAX = 180
  1427. const m__SC_IOV_MAX = 60
  1428. const m__SC_IPV6 = 235
  1429. const m__SC_JOB_CONTROL = 7
  1430. const m__SC_LINE_MAX = 43
  1431. const m__SC_LOGIN_NAME_MAX = 71
  1432. const m__SC_MAPPED_FILES = 16
  1433. const m__SC_MEMLOCK = 17
  1434. const m__SC_MEMLOCK_RANGE = 18
  1435. const m__SC_MEMORY_PROTECTION = 19
  1436. const m__SC_MESSAGE_PASSING = 20
  1437. const m__SC_MINSIGSTKSZ = 249
  1438. const m__SC_MONOTONIC_CLOCK = 149
  1439. const m__SC_MQ_OPEN_MAX = 27
  1440. const m__SC_MQ_PRIO_MAX = 28
  1441. const m__SC_NGROUPS_MAX = 3
  1442. const m__SC_NPROCESSORS_CONF = 83
  1443. const m__SC_NPROCESSORS_ONLN = 84
  1444. const m__SC_NZERO = 109
  1445. const m__SC_OPEN_MAX = 4
  1446. const m__SC_PAGESIZE = 30
  1447. const m__SC_PAGE_SIZE = 30
  1448. const m__SC_PASS_MAX = 88
  1449. const m__SC_PHYS_PAGES = 85
  1450. const m__SC_PRIORITIZED_IO = 13
  1451. const m__SC_PRIORITY_SCHEDULING = 10
  1452. const m__SC_RAW_SOCKETS = 236
  1453. const m__SC_READER_WRITER_LOCKS = 153
  1454. const m__SC_REALTIME_SIGNALS = 9
  1455. const m__SC_REGEXP = 155
  1456. const m__SC_RE_DUP_MAX = 44
  1457. const m__SC_RTSIG_MAX = 31
  1458. const m__SC_SAVED_IDS = 8
  1459. const m__SC_SEMAPHORES = 21
  1460. const m__SC_SEM_NSEMS_MAX = 32
  1461. const m__SC_SEM_VALUE_MAX = 33
  1462. const m__SC_SHARED_MEMORY_OBJECTS = 22
  1463. const m__SC_SHELL = 157
  1464. const m__SC_SIGQUEUE_MAX = 34
  1465. const m__SC_SIGSTKSZ = 250
  1466. const m__SC_SPAWN = 159
  1467. const m__SC_SPIN_LOCKS = 154
  1468. const m__SC_SPORADIC_SERVER = 160
  1469. const m__SC_SS_REPL_MAX = 241
  1470. const m__SC_STREAMS = 174
  1471. const m__SC_STREAM_MAX = 5
  1472. const m__SC_SYMLOOP_MAX = 173
  1473. const m__SC_SYNCHRONIZED_IO = 14
  1474. const m__SC_THREADS = 67
  1475. const m__SC_THREAD_ATTR_STACKADDR = 77
  1476. const m__SC_THREAD_ATTR_STACKSIZE = 78
  1477. const m__SC_THREAD_CPUTIME = 139
  1478. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  1479. const m__SC_THREAD_KEYS_MAX = 74
  1480. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  1481. const m__SC_THREAD_PRIO_INHERIT = 80
  1482. const m__SC_THREAD_PRIO_PROTECT = 81
  1483. const m__SC_THREAD_PROCESS_SHARED = 82
  1484. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  1485. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  1486. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  1487. const m__SC_THREAD_SPORADIC_SERVER = 161
  1488. const m__SC_THREAD_STACK_MIN = 75
  1489. const m__SC_THREAD_THREADS_MAX = 76
  1490. const m__SC_TIMEOUTS = 164
  1491. const m__SC_TIMERS = 11
  1492. const m__SC_TIMER_MAX = 35
  1493. const m__SC_TRACE = 181
  1494. const m__SC_TRACE_EVENT_FILTER = 182
  1495. const m__SC_TRACE_EVENT_NAME_MAX = 242
  1496. const m__SC_TRACE_INHERIT = 183
  1497. const m__SC_TRACE_LOG = 184
  1498. const m__SC_TRACE_NAME_MAX = 243
  1499. const m__SC_TRACE_SYS_MAX = 244
  1500. const m__SC_TRACE_USER_EVENT_MAX = 245
  1501. const m__SC_TTY_NAME_MAX = 72
  1502. const m__SC_TYPED_MEMORY_OBJECTS = 165
  1503. const m__SC_TZNAME_MAX = 6
  1504. const m__SC_UIO_MAXIOV = 60
  1505. const m__SC_V6_ILP32_OFF32 = 176
  1506. const m__SC_V6_ILP32_OFFBIG = 177
  1507. const m__SC_V6_LP64_OFF64 = 178
  1508. const m__SC_V6_LPBIG_OFFBIG = 179
  1509. const m__SC_V7_ILP32_OFF32 = 237
  1510. const m__SC_V7_ILP32_OFFBIG = 238
  1511. const m__SC_V7_LP64_OFF64 = 239
  1512. const m__SC_V7_LPBIG_OFFBIG = 240
  1513. const m__SC_VERSION = 29
  1514. const m__SC_XBS5_ILP32_OFF32 = 125
  1515. const m__SC_XBS5_ILP32_OFFBIG = 126
  1516. const m__SC_XBS5_LP64_OFF64 = 127
  1517. const m__SC_XBS5_LPBIG_OFFBIG = 128
  1518. const m__SC_XOPEN_CRYPT = 92
  1519. const m__SC_XOPEN_ENH_I18N = 93
  1520. const m__SC_XOPEN_LEGACY = 129
  1521. const m__SC_XOPEN_REALTIME = 130
  1522. const m__SC_XOPEN_REALTIME_THREADS = 131
  1523. const m__SC_XOPEN_SHM = 94
  1524. const m__SC_XOPEN_STREAMS = 246
  1525. const m__SC_XOPEN_UNIX = 91
  1526. const m__SC_XOPEN_VERSION = 89
  1527. const m__SC_XOPEN_XCU_VERSION = 90
  1528. const m__SC_XOPEN_XPG2 = 98
  1529. const m__SC_XOPEN_XPG3 = 99
  1530. const m__SC_XOPEN_XPG4 = 100
  1531. const m__STDC_PREDEF_H = 1
  1532. const m__TANDEM_SOURCE = 1
  1533. const m__XOPEN_ENH_I18N = 1
  1534. const m__XOPEN_IOV_MAX = 16
  1535. const m__XOPEN_NAME_MAX = 255
  1536. const m__XOPEN_PATH_MAX = 1024
  1537. const m__XOPEN_UNIX = 1
  1538. const m__XOPEN_VERSION = 700
  1539. const m___ARCH__ = 9
  1540. const m___ATOMIC_ACQUIRE = 2
  1541. const m___ATOMIC_ACQ_REL = 4
  1542. const m___ATOMIC_CONSUME = 1
  1543. const m___ATOMIC_RELAXED = 0
  1544. const m___ATOMIC_RELEASE = 3
  1545. const m___ATOMIC_SEQ_CST = 5
  1546. const m___BIGGEST_ALIGNMENT__ = 8
  1547. const m___BIG_ENDIAN = 4321
  1548. const m___BYTE_ORDER = 4321
  1549. const m___BYTE_ORDER__ = "__ORDER_BIG_ENDIAN__"
  1550. const m___CCGO__ = 1
  1551. const m___CHAR_BIT__ = 8
  1552. const m___CHAR_UNSIGNED__ = 1
  1553. const m___DBL_DECIMAL_DIG__ = 17
  1554. const m___DBL_DIG__ = 15
  1555. const m___DBL_HAS_DENORM__ = 1
  1556. const m___DBL_HAS_INFINITY__ = 1
  1557. const m___DBL_HAS_QUIET_NAN__ = 1
  1558. const m___DBL_MANT_DIG__ = 53
  1559. const m___DBL_MAX_10_EXP__ = 308
  1560. const m___DBL_MAX_EXP__ = 1024
  1561. const m___DEC128_EPSILON__ = 1e-33
  1562. const m___DEC128_MANT_DIG__ = 34
  1563. const m___DEC128_MAX_EXP__ = 6145
  1564. const m___DEC128_MAX__ = "9.999999999999999999999999999999999E6144"
  1565. const m___DEC128_MIN__ = 1e-6143
  1566. const m___DEC128_SUBNORMAL_MIN__ = 0.000000000000000000000000000000001e-6143
  1567. const m___DEC32_EPSILON__ = 1e-6
  1568. const m___DEC32_MANT_DIG__ = 7
  1569. const m___DEC32_MAX_EXP__ = 97
  1570. const m___DEC32_MAX__ = 9.999999e96
  1571. const m___DEC32_MIN__ = 1e-95
  1572. const m___DEC32_SUBNORMAL_MIN__ = 0.000001e-95
  1573. const m___DEC64_EPSILON__ = 1e-15
  1574. const m___DEC64_MANT_DIG__ = 16
  1575. const m___DEC64_MAX_EXP__ = 385
  1576. const m___DEC64_MAX__ = "9.999999999999999E384"
  1577. const m___DEC64_MIN__ = 1e-383
  1578. const m___DEC64_SUBNORMAL_MIN__ = 0.000000000000001e-383
  1579. const m___DECIMAL_DIG__ = 17
  1580. const m___DEC_EVAL_METHOD__ = 2
  1581. const m___ELF__ = 1
  1582. const m___EXTENSIONS__ = 1
  1583. const m___FINITE_MATH_ONLY__ = 0
  1584. const m___FLOAT_WORD_ORDER__ = "__ORDER_BIG_ENDIAN__"
  1585. const m___FLT32X_DECIMAL_DIG__ = 17
  1586. const m___FLT32X_DENORM_MIN__ = 4.9406564584124654e-324
  1587. const m___FLT32X_DIG__ = 15
  1588. const m___FLT32X_EPSILON__ = 2.2204460492503131e-16
  1589. const m___FLT32X_HAS_DENORM__ = 1
  1590. const m___FLT32X_HAS_INFINITY__ = 1
  1591. const m___FLT32X_HAS_QUIET_NAN__ = 1
  1592. const m___FLT32X_MANT_DIG__ = 53
  1593. const m___FLT32X_MAX_10_EXP__ = 308
  1594. const m___FLT32X_MAX_EXP__ = 1024
  1595. const m___FLT32X_MAX__ = 1.7976931348623157e+308
  1596. const m___FLT32X_MIN__ = 2.2250738585072014e-308
  1597. const m___FLT32X_NORM_MAX__ = 1.7976931348623157e+308
  1598. const m___FLT32_DECIMAL_DIG__ = 9
  1599. const m___FLT32_DENORM_MIN__ = 1.4012984643248171e-45
  1600. const m___FLT32_DIG__ = 6
  1601. const m___FLT32_EPSILON__ = 1.1920928955078125e-7
  1602. const m___FLT32_HAS_DENORM__ = 1
  1603. const m___FLT32_HAS_INFINITY__ = 1
  1604. const m___FLT32_HAS_QUIET_NAN__ = 1
  1605. const m___FLT32_MANT_DIG__ = 24
  1606. const m___FLT32_MAX_10_EXP__ = 38
  1607. const m___FLT32_MAX_EXP__ = 128
  1608. const m___FLT32_MAX__ = 3.4028234663852886e+38
  1609. const m___FLT32_MIN__ = 1.1754943508222875e-38
  1610. const m___FLT32_NORM_MAX__ = 3.4028234663852886e+38
  1611. const m___FLT64_DECIMAL_DIG__ = 17
  1612. const m___FLT64_DENORM_MIN__ = 4.9406564584124654e-324
  1613. const m___FLT64_DIG__ = 15
  1614. const m___FLT64_EPSILON__ = 2.2204460492503131e-16
  1615. const m___FLT64_HAS_DENORM__ = 1
  1616. const m___FLT64_HAS_INFINITY__ = 1
  1617. const m___FLT64_HAS_QUIET_NAN__ = 1
  1618. const m___FLT64_MANT_DIG__ = 53
  1619. const m___FLT64_MAX_10_EXP__ = 308
  1620. const m___FLT64_MAX_EXP__ = 1024
  1621. const m___FLT64_MAX__ = 1.7976931348623157e+308
  1622. const m___FLT64_MIN__ = 2.2250738585072014e-308
  1623. const m___FLT64_NORM_MAX__ = 1.7976931348623157e+308
  1624. const m___FLT_DECIMAL_DIG__ = 9
  1625. const m___FLT_DENORM_MIN__ = 1.4012984643248171e-45
  1626. const m___FLT_DIG__ = 6
  1627. const m___FLT_EPSILON__ = 1.1920928955078125e-7
  1628. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  1629. const m___FLT_EVAL_METHOD__ = 0
  1630. const m___FLT_HAS_DENORM__ = 1
  1631. const m___FLT_HAS_INFINITY__ = 1
  1632. const m___FLT_HAS_QUIET_NAN__ = 1
  1633. const m___FLT_MANT_DIG__ = 24
  1634. const m___FLT_MAX_10_EXP__ = 38
  1635. const m___FLT_MAX_EXP__ = 128
  1636. const m___FLT_MAX__ = 3.4028234663852886e+38
  1637. const m___FLT_MIN__ = 1.1754943508222875e-38
  1638. const m___FLT_NORM_MAX__ = 3.4028234663852886e+38
  1639. const m___FLT_RADIX__ = 2
  1640. const m___FP_FAST_FMA = 1
  1641. const m___FP_FAST_FMAF = 1
  1642. const m___FP_FAST_FMAF32 = 1
  1643. const m___FP_FAST_FMAF32x = 1
  1644. const m___FP_FAST_FMAF64 = 1
  1645. const m___FP_FAST_FMAL = 1
  1646. const m___FUNCTION__ = "__func__"
  1647. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  1648. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1649. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1650. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  1651. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1652. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  1653. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1654. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1655. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  1656. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1657. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1658. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  1659. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  1660. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  1661. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  1662. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1663. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  1664. const m___GCC_IEC_559 = 2
  1665. const m___GCC_IEC_559_COMPLEX = 2
  1666. const m___GNUC_MINOR__ = 2
  1667. const m___GNUC_PATCHLEVEL__ = 1
  1668. const m___GNUC_STDC_INLINE__ = 1
  1669. const m___GNUC__ = 10
  1670. const m___GXX_ABI_VERSION = 1014
  1671. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  1672. const m___INT16_MAX__ = 0x7fff
  1673. const m___INT32_MAX__ = 0x7fffffff
  1674. const m___INT32_TYPE__ = "int"
  1675. const m___INT64_MAX__ = 0x7fffffffffffffff
  1676. const m___INT8_MAX__ = 0x7f
  1677. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  1678. const m___INTMAX_WIDTH__ = 64
  1679. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  1680. const m___INTPTR_WIDTH__ = 64
  1681. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  1682. const m___INT_FAST16_WIDTH__ = 64
  1683. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  1684. const m___INT_FAST32_WIDTH__ = 64
  1685. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  1686. const m___INT_FAST64_WIDTH__ = 64
  1687. const m___INT_FAST8_MAX__ = 0x7f
  1688. const m___INT_FAST8_WIDTH__ = 8
  1689. const m___INT_LEAST16_MAX__ = 0x7fff
  1690. const m___INT_LEAST16_WIDTH__ = 16
  1691. const m___INT_LEAST32_MAX__ = 0x7fffffff
  1692. const m___INT_LEAST32_TYPE__ = "int"
  1693. const m___INT_LEAST32_WIDTH__ = 32
  1694. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  1695. const m___INT_LEAST64_WIDTH__ = 64
  1696. const m___INT_LEAST8_MAX__ = 0x7f
  1697. const m___INT_LEAST8_WIDTH__ = 8
  1698. const m___INT_MAX__ = 0x7fffffff
  1699. const m___INT_WIDTH__ = 32
  1700. const m___LDBL_DECIMAL_DIG__ = 17
  1701. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  1702. const m___LDBL_DIG__ = 15
  1703. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  1704. const m___LDBL_HAS_DENORM__ = 1
  1705. const m___LDBL_HAS_INFINITY__ = 1
  1706. const m___LDBL_HAS_QUIET_NAN__ = 1
  1707. const m___LDBL_MANT_DIG__ = 53
  1708. const m___LDBL_MAX_10_EXP__ = 308
  1709. const m___LDBL_MAX_EXP__ = 1024
  1710. const m___LDBL_MAX__ = 1.7976931348623157e+308
  1711. const m___LDBL_MIN__ = 2.2250738585072014e-308
  1712. const m___LDBL_NORM_MAX__ = 1.7976931348623157e+308
  1713. const m___LITTLE_ENDIAN = 1234
  1714. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1715. const m___LONG_LONG_WIDTH__ = 64
  1716. const m___LONG_MAX = 0x7fffffffffffffff
  1717. const m___LONG_MAX__ = 0x7fffffffffffffff
  1718. const m___LONG_WIDTH__ = 64
  1719. const m___LP64__ = 1
  1720. const m___NO_INLINE__ = 1
  1721. const m___ORDER_BIG_ENDIAN__ = 4321
  1722. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1723. const m___ORDER_PDP_ENDIAN__ = 3412
  1724. const m___PDP_ENDIAN = 3412
  1725. const m___PIC__ = 2
  1726. const m___PIE__ = 2
  1727. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1728. const m___PRETTY_FUNCTION__ = "__func__"
  1729. const m___PRI64 = "l"
  1730. const m___PRIPTR = "l"
  1731. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  1732. const m___PTRDIFF_WIDTH__ = 64
  1733. const m___SCHAR_MAX__ = 0x7f
  1734. const m___SCHAR_WIDTH__ = 8
  1735. const m___SHRT_MAX__ = 0x7fff
  1736. const m___SHRT_WIDTH__ = 16
  1737. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1738. const m___SIG_ATOMIC_TYPE__ = "int"
  1739. const m___SIG_ATOMIC_WIDTH__ = 32
  1740. const m___SIZEOF_DOUBLE__ = 8
  1741. const m___SIZEOF_FLOAT__ = 4
  1742. const m___SIZEOF_INT128__ = 16
  1743. const m___SIZEOF_INT__ = 4
  1744. const m___SIZEOF_LONG_DOUBLE__ = 8
  1745. const m___SIZEOF_LONG_LONG__ = 8
  1746. const m___SIZEOF_LONG__ = 8
  1747. const m___SIZEOF_POINTER__ = 8
  1748. const m___SIZEOF_PTRDIFF_T__ = 8
  1749. const m___SIZEOF_SHORT__ = 2
  1750. const m___SIZEOF_SIZE_T__ = 8
  1751. const m___SIZEOF_WCHAR_T__ = 4
  1752. const m___SIZEOF_WINT_T__ = 4
  1753. const m___SIZE_MAX__ = 0xffffffffffffffff
  1754. const m___SIZE_WIDTH__ = 64
  1755. const m___STDC_HOSTED__ = 1
  1756. const m___STDC_IEC_559_COMPLEX__ = 1
  1757. const m___STDC_IEC_559__ = 1
  1758. const m___STDC_ISO_10646__ = 201706
  1759. const m___STDC_UTF_16__ = 1
  1760. const m___STDC_UTF_32__ = 1
  1761. const m___STDC_VERSION__ = 201710
  1762. const m___STDC__ = 1
  1763. const m___UAPI_DEF_IN6_ADDR = 0
  1764. const m___UAPI_DEF_IN6_ADDR_ALT = 0
  1765. const m___UAPI_DEF_IN6_PKTINFO = 0
  1766. const m___UAPI_DEF_IN_ADDR = 0
  1767. const m___UAPI_DEF_IN_CLASS = 0
  1768. const m___UAPI_DEF_IN_IPPROTO = 0
  1769. const m___UAPI_DEF_IN_PKTINFO = 0
  1770. const m___UAPI_DEF_IP6_MTUINFO = 0
  1771. const m___UAPI_DEF_IPPROTO_V6 = 0
  1772. const m___UAPI_DEF_IPV6_MREQ = 0
  1773. const m___UAPI_DEF_IPV6_OPTIONS = 0
  1774. const m___UAPI_DEF_IP_MREQ = 0
  1775. const m___UAPI_DEF_SOCKADDR_IN = 0
  1776. const m___UAPI_DEF_SOCKADDR_IN6 = 0
  1777. const m___UINT16_MAX__ = 0xffff
  1778. const m___UINT32_MAX__ = 0xffffffff
  1779. const m___UINT64_MAX__ = 0xffffffffffffffff
  1780. const m___UINT8_MAX__ = 0xff
  1781. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  1782. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  1783. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  1784. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  1785. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  1786. const m___UINT_FAST8_MAX__ = 0xff
  1787. const m___UINT_LEAST16_MAX__ = 0xffff
  1788. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1789. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  1790. const m___UINT_LEAST8_MAX__ = 0xff
  1791. const m___USE_TIME_BITS64 = 1
  1792. const m___VERSION__ = "10.2.1 20210110"
  1793. const m___WCHAR_MAX__ = 0x7fffffff
  1794. const m___WCHAR_TYPE__ = "int"
  1795. const m___WCHAR_WIDTH__ = 32
  1796. const m___WINT_MAX__ = 0xffffffff
  1797. const m___WINT_MIN__ = 0
  1798. const m___WINT_WIDTH__ = 32
  1799. const m___gnu_linux__ = 1
  1800. const m___inline = "inline"
  1801. const m___linux = 1
  1802. const m___linux__ = 1
  1803. const m___pic__ = 2
  1804. const m___pie__ = 2
  1805. const m___restrict = "restrict"
  1806. const m___restrict_arr = "restrict"
  1807. const m___s390__ = 1
  1808. const m___s390x__ = 1
  1809. const m___tm_gmtoff = "tm_gmtoff"
  1810. const m___tm_zone = "tm_zone"
  1811. const m___unix = 1
  1812. const m___unix__ = 1
  1813. const m___zarch__ = 1
  1814. const m_alloca = "__builtin_alloca"
  1815. const m_linux = 1
  1816. const m_loff_t = "off_t"
  1817. const m_static_assert = "_Static_assert"
  1818. const m_unix = 1
  1819. type t__builtin_va_list = uintptr
  1820. type t__predefined_size_t = uint64
  1821. type t__predefined_wchar_t = int32
  1822. type t__predefined_ptrdiff_t = int64
  1823. type Tsize_t = uint64
  1824. type Tlocale_t = uintptr
  1825. type Tssize_t = int64
  1826. type Toff_t = int64
  1827. type Tva_list = uintptr
  1828. type t__isoc_va_list = uintptr
  1829. type Tfpos_t = struct {
  1830. F__lldata [0]int64
  1831. F__align [0]float64
  1832. F__opaque [16]uint8
  1833. }
  1834. type T_G_fpos64_t = Tfpos_t
  1835. type Tcookie_io_functions_t = struct {
  1836. Fread uintptr
  1837. Fwrite uintptr
  1838. Fseek uintptr
  1839. Fclose1 uintptr
  1840. }
  1841. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  1842. type Tintptr_t = int64
  1843. type Tpid_t = int32
  1844. type Tuid_t = uint32
  1845. type Tgid_t = uint32
  1846. type Tuseconds_t = uint32
  1847. type Twchar_t = int32
  1848. type Tdiv_t = struct {
  1849. Fquot int32
  1850. Frem int32
  1851. }
  1852. type Tldiv_t = struct {
  1853. Fquot int64
  1854. Frem int64
  1855. }
  1856. type Tlldiv_t = struct {
  1857. Fquot int64
  1858. Frem int64
  1859. }
  1860. type Tmode_t = uint32
  1861. type Tiovec = struct {
  1862. Fiov_base uintptr
  1863. Fiov_len Tsize_t
  1864. }
  1865. type Tflock = struct {
  1866. Fl_type int16
  1867. Fl_whence int16
  1868. Fl_start Toff_t
  1869. Fl_len Toff_t
  1870. Fl_pid Tpid_t
  1871. }
  1872. type Tfile_handle = struct {
  1873. Fhandle_bytes uint32
  1874. Fhandle_type int32
  1875. }
  1876. type Tf_owner_ex = struct {
  1877. Ftype1 int32
  1878. Fpid Tpid_t
  1879. }
  1880. type Tregister_t = int64
  1881. type Ttime_t = int64
  1882. type Tsuseconds_t = int64
  1883. type Tint8_t = int8
  1884. type Tint16_t = int16
  1885. type Tint32_t = int32
  1886. type Tint64_t = int64
  1887. type Tu_int64_t = uint64
  1888. type Tnlink_t = uint64
  1889. type Tino_t = uint64
  1890. type Tdev_t = uint64
  1891. type Tblksize_t = int64
  1892. type Tblkcnt_t = int64
  1893. type Tfsblkcnt_t = uint64
  1894. type Tfsfilcnt_t = uint64
  1895. type Ttimer_t = uintptr
  1896. type Tclockid_t = int32
  1897. type Tclock_t = int64
  1898. type Tid_t = uint32
  1899. type Tkey_t = int32
  1900. type Tpthread_t = uintptr
  1901. type Tpthread_once_t = int32
  1902. type Tpthread_key_t = uint32
  1903. type Tpthread_spinlock_t = int32
  1904. type Tpthread_mutexattr_t = struct {
  1905. F__attr uint32
  1906. }
  1907. type Tpthread_condattr_t = struct {
  1908. F__attr uint32
  1909. }
  1910. type Tpthread_barrierattr_t = struct {
  1911. F__attr uint32
  1912. }
  1913. type Tpthread_rwlockattr_t = struct {
  1914. F__attr [2]uint32
  1915. }
  1916. type Tpthread_attr_t = struct {
  1917. F__u struct {
  1918. F__vi [0][14]int32
  1919. F__s [0][7]uint64
  1920. F__i [14]int32
  1921. }
  1922. }
  1923. type Tpthread_mutex_t = struct {
  1924. F__u struct {
  1925. F__vi [0][10]int32
  1926. F__p [0][5]uintptr
  1927. F__i [10]int32
  1928. }
  1929. }
  1930. type Tpthread_cond_t = struct {
  1931. F__u struct {
  1932. F__vi [0][12]int32
  1933. F__p [0][6]uintptr
  1934. F__i [12]int32
  1935. }
  1936. }
  1937. type Tpthread_rwlock_t = struct {
  1938. F__u struct {
  1939. F__vi [0][14]int32
  1940. F__p [0][7]uintptr
  1941. F__i [14]int32
  1942. }
  1943. }
  1944. type Tpthread_barrier_t = struct {
  1945. F__u struct {
  1946. F__vi [0][8]int32
  1947. F__p [0][4]uintptr
  1948. F__i [8]int32
  1949. }
  1950. }
  1951. type Tu_int8_t = uint8
  1952. type Tu_int16_t = uint16
  1953. type Tu_int32_t = uint32
  1954. type Tcaddr_t = uintptr
  1955. type Tu_char = uint8
  1956. type Tu_short = uint16
  1957. type Tushort = uint16
  1958. type Tu_int = uint32
  1959. type Tuint = uint32
  1960. type Tu_long = uint64
  1961. type Tulong = uint64
  1962. type Tquad_t = int64
  1963. type Tu_quad_t = uint64
  1964. type Tuint16_t = uint16
  1965. type Tuint32_t = uint32
  1966. type Tuint64_t = uint64
  1967. type Ttimeval = struct {
  1968. Ftv_sec Ttime_t
  1969. Ftv_usec Tsuseconds_t
  1970. }
  1971. type Ttimespec = struct {
  1972. Ftv_sec Ttime_t
  1973. Ftv_nsec int64
  1974. }
  1975. type Tsigset_t = struct {
  1976. F__bits [16]uint64
  1977. }
  1978. type t__sigset_t = Tsigset_t
  1979. type Tfd_mask = uint64
  1980. type Tfd_set = struct {
  1981. Ffds_bits [16]uint64
  1982. }
  1983. type Tuintptr_t = uint64
  1984. type Tintmax_t = int64
  1985. type Tuint8_t = uint8
  1986. type Tuintmax_t = uint64
  1987. type Tint_fast8_t = int8
  1988. type Tint_fast64_t = int64
  1989. type Tint_least8_t = int8
  1990. type Tint_least16_t = int16
  1991. type Tint_least32_t = int32
  1992. type Tint_least64_t = int64
  1993. type Tuint_fast8_t = uint8
  1994. type Tuint_fast64_t = uint64
  1995. type Tuint_least8_t = uint8
  1996. type Tuint_least16_t = uint16
  1997. type Tuint_least32_t = uint32
  1998. type Tuint_least64_t = uint64
  1999. type Tint_fast16_t = int32
  2000. type Tint_fast32_t = int32
  2001. type Tuint_fast16_t = uint32
  2002. type Tuint_fast32_t = uint32
  2003. type Tsched_param = struct {
  2004. Fsched_priority int32
  2005. F__reserved1 int32
  2006. F__reserved2 [2]struct {
  2007. F__reserved1 Ttime_t
  2008. F__reserved2 int64
  2009. }
  2010. F__reserved3 int32
  2011. }
  2012. type Tcpu_set_t = struct {
  2013. F__bits [16]uint64
  2014. }
  2015. type Ttm = struct {
  2016. Ftm_sec int32
  2017. Ftm_min int32
  2018. Ftm_hour int32
  2019. Ftm_mday int32
  2020. Ftm_mon int32
  2021. Ftm_year int32
  2022. Ftm_wday int32
  2023. Ftm_yday int32
  2024. Ftm_isdst int32
  2025. Ftm_gmtoff int64
  2026. Ftm_zone uintptr
  2027. }
  2028. type Titimerspec = struct {
  2029. Fit_interval Ttimespec
  2030. Fit_value Ttimespec
  2031. }
  2032. type t__ptcb = struct {
  2033. F__f uintptr
  2034. F__x uintptr
  2035. F__next uintptr
  2036. }
  2037. type Tcpu_set_t1 = struct {
  2038. F__bits [16]uint64
  2039. }
  2040. type Txcb_connection_t = struct {
  2041. Fhas_error int32
  2042. Fsetup uintptr
  2043. Ffd int32
  2044. Fiolock Tpthread_mutex_t
  2045. Fin T_xcb_in
  2046. Fout T_xcb_out
  2047. Fext T_xcb_ext
  2048. Fxid T_xcb_xid
  2049. }
  2050. type Txcb_generic_iterator_t = struct {
  2051. Fdata uintptr
  2052. Frem int32
  2053. Findex int32
  2054. }
  2055. type Txcb_generic_reply_t = struct {
  2056. Fresponse_type Tuint8_t
  2057. Fpad0 Tuint8_t
  2058. Fsequence Tuint16_t
  2059. Flength Tuint32_t
  2060. }
  2061. type Txcb_generic_event_t = struct {
  2062. Fresponse_type Tuint8_t
  2063. Fpad0 Tuint8_t
  2064. Fsequence Tuint16_t
  2065. Fpad [7]Tuint32_t
  2066. Ffull_sequence Tuint32_t
  2067. }
  2068. type Txcb_raw_generic_event_t = struct {
  2069. Fresponse_type Tuint8_t
  2070. Fpad0 Tuint8_t
  2071. Fsequence Tuint16_t
  2072. Fpad [7]Tuint32_t
  2073. }
  2074. type Txcb_ge_event_t = struct {
  2075. Fresponse_type Tuint8_t
  2076. Fpad0 Tuint8_t
  2077. Fsequence Tuint16_t
  2078. Flength Tuint32_t
  2079. Fevent_type Tuint16_t
  2080. Fpad1 Tuint16_t
  2081. Fpad [5]Tuint32_t
  2082. Ffull_sequence Tuint32_t
  2083. }
  2084. type Txcb_generic_error_t = struct {
  2085. Fresponse_type Tuint8_t
  2086. Ferror_code Tuint8_t
  2087. Fsequence Tuint16_t
  2088. Fresource_id Tuint32_t
  2089. Fminor_code Tuint16_t
  2090. Fmajor_code Tuint8_t
  2091. Fpad0 Tuint8_t
  2092. Fpad [5]Tuint32_t
  2093. Ffull_sequence Tuint32_t
  2094. }
  2095. type Txcb_void_cookie_t = struct {
  2096. Fsequence uint32
  2097. }
  2098. type Txcb_char2b_t = struct {
  2099. Fbyte1 Tuint8_t
  2100. Fbyte2 Tuint8_t
  2101. }
  2102. type Txcb_char2b_iterator_t = struct {
  2103. Fdata uintptr
  2104. Frem int32
  2105. Findex int32
  2106. }
  2107. type Txcb_window_t = uint32
  2108. type Txcb_window_iterator_t = struct {
  2109. Fdata uintptr
  2110. Frem int32
  2111. Findex int32
  2112. }
  2113. type Txcb_pixmap_t = uint32
  2114. type Txcb_pixmap_iterator_t = struct {
  2115. Fdata uintptr
  2116. Frem int32
  2117. Findex int32
  2118. }
  2119. type Txcb_cursor_t = uint32
  2120. type Txcb_cursor_iterator_t = struct {
  2121. Fdata uintptr
  2122. Frem int32
  2123. Findex int32
  2124. }
  2125. type Txcb_font_t = uint32
  2126. type Txcb_font_iterator_t = struct {
  2127. Fdata uintptr
  2128. Frem int32
  2129. Findex int32
  2130. }
  2131. type Txcb_gcontext_t = uint32
  2132. type Txcb_gcontext_iterator_t = struct {
  2133. Fdata uintptr
  2134. Frem int32
  2135. Findex int32
  2136. }
  2137. type Txcb_colormap_t = uint32
  2138. type Txcb_colormap_iterator_t = struct {
  2139. Fdata uintptr
  2140. Frem int32
  2141. Findex int32
  2142. }
  2143. type Txcb_atom_t = uint32
  2144. type Txcb_atom_iterator_t = struct {
  2145. Fdata uintptr
  2146. Frem int32
  2147. Findex int32
  2148. }
  2149. type Txcb_drawable_t = uint32
  2150. type Txcb_drawable_iterator_t = struct {
  2151. Fdata uintptr
  2152. Frem int32
  2153. Findex int32
  2154. }
  2155. type Txcb_fontable_t = uint32
  2156. type Txcb_fontable_iterator_t = struct {
  2157. Fdata uintptr
  2158. Frem int32
  2159. Findex int32
  2160. }
  2161. type Txcb_bool32_t = uint32
  2162. type Txcb_bool32_iterator_t = struct {
  2163. Fdata uintptr
  2164. Frem int32
  2165. Findex int32
  2166. }
  2167. type Txcb_visualid_t = uint32
  2168. type Txcb_visualid_iterator_t = struct {
  2169. Fdata uintptr
  2170. Frem int32
  2171. Findex int32
  2172. }
  2173. type Txcb_timestamp_t = uint32
  2174. type Txcb_timestamp_iterator_t = struct {
  2175. Fdata uintptr
  2176. Frem int32
  2177. Findex int32
  2178. }
  2179. type Txcb_keysym_t = uint32
  2180. type Txcb_keysym_iterator_t = struct {
  2181. Fdata uintptr
  2182. Frem int32
  2183. Findex int32
  2184. }
  2185. type Txcb_keycode_t = uint8
  2186. type Txcb_keycode_iterator_t = struct {
  2187. Fdata uintptr
  2188. Frem int32
  2189. Findex int32
  2190. }
  2191. type Txcb_keycode32_t = uint32
  2192. type Txcb_keycode32_iterator_t = struct {
  2193. Fdata uintptr
  2194. Frem int32
  2195. Findex int32
  2196. }
  2197. type Txcb_button_t = uint8
  2198. type Txcb_button_iterator_t = struct {
  2199. Fdata uintptr
  2200. Frem int32
  2201. Findex int32
  2202. }
  2203. type Txcb_point_t = struct {
  2204. Fx Tint16_t
  2205. Fy Tint16_t
  2206. }
  2207. type Txcb_point_iterator_t = struct {
  2208. Fdata uintptr
  2209. Frem int32
  2210. Findex int32
  2211. }
  2212. type Txcb_rectangle_t = struct {
  2213. Fx Tint16_t
  2214. Fy Tint16_t
  2215. Fwidth Tuint16_t
  2216. Fheight Tuint16_t
  2217. }
  2218. type Txcb_rectangle_iterator_t = struct {
  2219. Fdata uintptr
  2220. Frem int32
  2221. Findex int32
  2222. }
  2223. type Txcb_arc_t = struct {
  2224. Fx Tint16_t
  2225. Fy Tint16_t
  2226. Fwidth Tuint16_t
  2227. Fheight Tuint16_t
  2228. Fangle1 Tint16_t
  2229. Fangle2 Tint16_t
  2230. }
  2231. type Txcb_arc_iterator_t = struct {
  2232. Fdata uintptr
  2233. Frem int32
  2234. Findex int32
  2235. }
  2236. type Txcb_format_t = struct {
  2237. Fdepth Tuint8_t
  2238. Fbits_per_pixel Tuint8_t
  2239. Fscanline_pad Tuint8_t
  2240. Fpad0 [5]Tuint8_t
  2241. }
  2242. type Txcb_format_iterator_t = struct {
  2243. Fdata uintptr
  2244. Frem int32
  2245. Findex int32
  2246. }
  2247. type Txcb_visual_class_t = int32
  2248. type _xcb_visual_class_t = int32
  2249. const _XCB_VISUAL_CLASS_STATIC_GRAY = 0
  2250. const _XCB_VISUAL_CLASS_GRAY_SCALE = 1
  2251. const _XCB_VISUAL_CLASS_STATIC_COLOR = 2
  2252. const _XCB_VISUAL_CLASS_PSEUDO_COLOR = 3
  2253. const _XCB_VISUAL_CLASS_TRUE_COLOR = 4
  2254. const _XCB_VISUAL_CLASS_DIRECT_COLOR = 5
  2255. type Txcb_visualtype_t = struct {
  2256. Fvisual_id Txcb_visualid_t
  2257. F_class Tuint8_t
  2258. Fbits_per_rgb_value Tuint8_t
  2259. Fcolormap_entries Tuint16_t
  2260. Fred_mask Tuint32_t
  2261. Fgreen_mask Tuint32_t
  2262. Fblue_mask Tuint32_t
  2263. Fpad0 [4]Tuint8_t
  2264. }
  2265. type Txcb_visualtype_iterator_t = struct {
  2266. Fdata uintptr
  2267. Frem int32
  2268. Findex int32
  2269. }
  2270. type Txcb_depth_t = struct {
  2271. Fdepth Tuint8_t
  2272. Fpad0 Tuint8_t
  2273. Fvisuals_len Tuint16_t
  2274. Fpad1 [4]Tuint8_t
  2275. }
  2276. type Txcb_depth_iterator_t = struct {
  2277. Fdata uintptr
  2278. Frem int32
  2279. Findex int32
  2280. }
  2281. type Txcb_event_mask_t = int32
  2282. type _xcb_event_mask_t = int32
  2283. const _XCB_EVENT_MASK_NO_EVENT = 0
  2284. const _XCB_EVENT_MASK_KEY_PRESS = 1
  2285. const _XCB_EVENT_MASK_KEY_RELEASE = 2
  2286. const _XCB_EVENT_MASK_BUTTON_PRESS = 4
  2287. const _XCB_EVENT_MASK_BUTTON_RELEASE = 8
  2288. const _XCB_EVENT_MASK_ENTER_WINDOW = 16
  2289. const _XCB_EVENT_MASK_LEAVE_WINDOW = 32
  2290. const _XCB_EVENT_MASK_POINTER_MOTION = 64
  2291. const _XCB_EVENT_MASK_POINTER_MOTION_HINT = 128
  2292. const _XCB_EVENT_MASK_BUTTON_1_MOTION = 256
  2293. const _XCB_EVENT_MASK_BUTTON_2_MOTION = 512
  2294. const _XCB_EVENT_MASK_BUTTON_3_MOTION = 1024
  2295. const _XCB_EVENT_MASK_BUTTON_4_MOTION = 2048
  2296. const _XCB_EVENT_MASK_BUTTON_5_MOTION = 4096
  2297. const _XCB_EVENT_MASK_BUTTON_MOTION = 8192
  2298. const _XCB_EVENT_MASK_KEYMAP_STATE = 16384
  2299. const _XCB_EVENT_MASK_EXPOSURE = 32768
  2300. const _XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536
  2301. const _XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072
  2302. const _XCB_EVENT_MASK_RESIZE_REDIRECT = 262144
  2303. const _XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288
  2304. const _XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576
  2305. const _XCB_EVENT_MASK_FOCUS_CHANGE = 2097152
  2306. const _XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304
  2307. const _XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608
  2308. const _XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
  2309. type Txcb_backing_store_t = int32
  2310. type _xcb_backing_store_t = int32
  2311. const _XCB_BACKING_STORE_NOT_USEFUL = 0
  2312. const _XCB_BACKING_STORE_WHEN_MAPPED = 1
  2313. const _XCB_BACKING_STORE_ALWAYS = 2
  2314. type Txcb_screen_t = struct {
  2315. Froot Txcb_window_t
  2316. Fdefault_colormap Txcb_colormap_t
  2317. Fwhite_pixel Tuint32_t
  2318. Fblack_pixel Tuint32_t
  2319. Fcurrent_input_masks Tuint32_t
  2320. Fwidth_in_pixels Tuint16_t
  2321. Fheight_in_pixels Tuint16_t
  2322. Fwidth_in_millimeters Tuint16_t
  2323. Fheight_in_millimeters Tuint16_t
  2324. Fmin_installed_maps Tuint16_t
  2325. Fmax_installed_maps Tuint16_t
  2326. Froot_visual Txcb_visualid_t
  2327. Fbacking_stores Tuint8_t
  2328. Fsave_unders Tuint8_t
  2329. Froot_depth Tuint8_t
  2330. Fallowed_depths_len Tuint8_t
  2331. }
  2332. type Txcb_screen_iterator_t = struct {
  2333. Fdata uintptr
  2334. Frem int32
  2335. Findex int32
  2336. }
  2337. type Txcb_setup_request_t = struct {
  2338. Fbyte_order Tuint8_t
  2339. Fpad0 Tuint8_t
  2340. Fprotocol_major_version Tuint16_t
  2341. Fprotocol_minor_version Tuint16_t
  2342. Fauthorization_protocol_name_len Tuint16_t
  2343. Fauthorization_protocol_data_len Tuint16_t
  2344. Fpad1 [2]Tuint8_t
  2345. }
  2346. type Txcb_setup_request_iterator_t = struct {
  2347. Fdata uintptr
  2348. Frem int32
  2349. Findex int32
  2350. }
  2351. type Txcb_setup_failed_t = struct {
  2352. Fstatus Tuint8_t
  2353. Freason_len Tuint8_t
  2354. Fprotocol_major_version Tuint16_t
  2355. Fprotocol_minor_version Tuint16_t
  2356. Flength Tuint16_t
  2357. }
  2358. type Txcb_setup_failed_iterator_t = struct {
  2359. Fdata uintptr
  2360. Frem int32
  2361. Findex int32
  2362. }
  2363. type Txcb_setup_authenticate_t = struct {
  2364. Fstatus Tuint8_t
  2365. Fpad0 [5]Tuint8_t
  2366. Flength Tuint16_t
  2367. }
  2368. type Txcb_setup_authenticate_iterator_t = struct {
  2369. Fdata uintptr
  2370. Frem int32
  2371. Findex int32
  2372. }
  2373. type Txcb_image_order_t = int32
  2374. type _xcb_image_order_t = int32
  2375. const _XCB_IMAGE_ORDER_LSB_FIRST = 0
  2376. const _XCB_IMAGE_ORDER_MSB_FIRST = 1
  2377. type Txcb_setup_t = struct {
  2378. Fstatus Tuint8_t
  2379. Fpad0 Tuint8_t
  2380. Fprotocol_major_version Tuint16_t
  2381. Fprotocol_minor_version Tuint16_t
  2382. Flength Tuint16_t
  2383. Frelease_number Tuint32_t
  2384. Fresource_id_base Tuint32_t
  2385. Fresource_id_mask Tuint32_t
  2386. Fmotion_buffer_size Tuint32_t
  2387. Fvendor_len Tuint16_t
  2388. Fmaximum_request_length Tuint16_t
  2389. Froots_len Tuint8_t
  2390. Fpixmap_formats_len Tuint8_t
  2391. Fimage_byte_order Tuint8_t
  2392. Fbitmap_format_bit_order Tuint8_t
  2393. Fbitmap_format_scanline_unit Tuint8_t
  2394. Fbitmap_format_scanline_pad Tuint8_t
  2395. Fmin_keycode Txcb_keycode_t
  2396. Fmax_keycode Txcb_keycode_t
  2397. Fpad1 [4]Tuint8_t
  2398. }
  2399. type Txcb_setup_iterator_t = struct {
  2400. Fdata uintptr
  2401. Frem int32
  2402. Findex int32
  2403. }
  2404. type Txcb_mod_mask_t = int32
  2405. type _xcb_mod_mask_t = int32
  2406. const _XCB_MOD_MASK_SHIFT = 1
  2407. const _XCB_MOD_MASK_LOCK = 2
  2408. const _XCB_MOD_MASK_CONTROL = 4
  2409. const _XCB_MOD_MASK_1 = 8
  2410. const _XCB_MOD_MASK_2 = 16
  2411. const _XCB_MOD_MASK_3 = 32
  2412. const _XCB_MOD_MASK_4 = 64
  2413. const _XCB_MOD_MASK_5 = 128
  2414. const _XCB_MOD_MASK_ANY = 32768
  2415. type Txcb_key_but_mask_t = int32
  2416. type _xcb_key_but_mask_t = int32
  2417. const _XCB_KEY_BUT_MASK_SHIFT = 1
  2418. const _XCB_KEY_BUT_MASK_LOCK = 2
  2419. const _XCB_KEY_BUT_MASK_CONTROL = 4
  2420. const _XCB_KEY_BUT_MASK_MOD_1 = 8
  2421. const _XCB_KEY_BUT_MASK_MOD_2 = 16
  2422. const _XCB_KEY_BUT_MASK_MOD_3 = 32
  2423. const _XCB_KEY_BUT_MASK_MOD_4 = 64
  2424. const _XCB_KEY_BUT_MASK_MOD_5 = 128
  2425. const _XCB_KEY_BUT_MASK_BUTTON_1 = 256
  2426. const _XCB_KEY_BUT_MASK_BUTTON_2 = 512
  2427. const _XCB_KEY_BUT_MASK_BUTTON_3 = 1024
  2428. const _XCB_KEY_BUT_MASK_BUTTON_4 = 2048
  2429. const _XCB_KEY_BUT_MASK_BUTTON_5 = 4096
  2430. type Txcb_window_enum_t = int32
  2431. type _xcb_window_enum_t = int32
  2432. const _XCB_WINDOW_NONE = 0
  2433. type Txcb_key_press_event_t = struct {
  2434. Fresponse_type Tuint8_t
  2435. Fdetail Txcb_keycode_t
  2436. Fsequence Tuint16_t
  2437. Ftime Txcb_timestamp_t
  2438. Froot Txcb_window_t
  2439. Fevent Txcb_window_t
  2440. Fchild Txcb_window_t
  2441. Froot_x Tint16_t
  2442. Froot_y Tint16_t
  2443. Fevent_x Tint16_t
  2444. Fevent_y Tint16_t
  2445. Fstate Tuint16_t
  2446. Fsame_screen Tuint8_t
  2447. Fpad0 Tuint8_t
  2448. }
  2449. type Txcb_key_release_event_t = struct {
  2450. Fresponse_type Tuint8_t
  2451. Fdetail Txcb_keycode_t
  2452. Fsequence Tuint16_t
  2453. Ftime Txcb_timestamp_t
  2454. Froot Txcb_window_t
  2455. Fevent Txcb_window_t
  2456. Fchild Txcb_window_t
  2457. Froot_x Tint16_t
  2458. Froot_y Tint16_t
  2459. Fevent_x Tint16_t
  2460. Fevent_y Tint16_t
  2461. Fstate Tuint16_t
  2462. Fsame_screen Tuint8_t
  2463. Fpad0 Tuint8_t
  2464. }
  2465. type Txcb_key_press_event_t1 = Txcb_key_release_event_t
  2466. type Txcb_button_mask_t = int32
  2467. type _xcb_button_mask_t = int32
  2468. const _XCB_BUTTON_MASK_1 = 256
  2469. const _XCB_BUTTON_MASK_2 = 512
  2470. const _XCB_BUTTON_MASK_3 = 1024
  2471. const _XCB_BUTTON_MASK_4 = 2048
  2472. const _XCB_BUTTON_MASK_5 = 4096
  2473. const _XCB_BUTTON_MASK_ANY = 32768
  2474. type Txcb_button_press_event_t = struct {
  2475. Fresponse_type Tuint8_t
  2476. Fdetail Txcb_button_t
  2477. Fsequence Tuint16_t
  2478. Ftime Txcb_timestamp_t
  2479. Froot Txcb_window_t
  2480. Fevent Txcb_window_t
  2481. Fchild Txcb_window_t
  2482. Froot_x Tint16_t
  2483. Froot_y Tint16_t
  2484. Fevent_x Tint16_t
  2485. Fevent_y Tint16_t
  2486. Fstate Tuint16_t
  2487. Fsame_screen Tuint8_t
  2488. Fpad0 Tuint8_t
  2489. }
  2490. type Txcb_button_release_event_t = struct {
  2491. Fresponse_type Tuint8_t
  2492. Fdetail Txcb_button_t
  2493. Fsequence Tuint16_t
  2494. Ftime Txcb_timestamp_t
  2495. Froot Txcb_window_t
  2496. Fevent Txcb_window_t
  2497. Fchild Txcb_window_t
  2498. Froot_x Tint16_t
  2499. Froot_y Tint16_t
  2500. Fevent_x Tint16_t
  2501. Fevent_y Tint16_t
  2502. Fstate Tuint16_t
  2503. Fsame_screen Tuint8_t
  2504. Fpad0 Tuint8_t
  2505. }
  2506. type Txcb_button_press_event_t1 = Txcb_button_release_event_t
  2507. type Txcb_motion_t = int32
  2508. type _xcb_motion_t = int32
  2509. const _XCB_MOTION_NORMAL = 0
  2510. const _XCB_MOTION_HINT = 1
  2511. type Txcb_motion_notify_event_t = struct {
  2512. Fresponse_type Tuint8_t
  2513. Fdetail Tuint8_t
  2514. Fsequence Tuint16_t
  2515. Ftime Txcb_timestamp_t
  2516. Froot Txcb_window_t
  2517. Fevent Txcb_window_t
  2518. Fchild Txcb_window_t
  2519. Froot_x Tint16_t
  2520. Froot_y Tint16_t
  2521. Fevent_x Tint16_t
  2522. Fevent_y Tint16_t
  2523. Fstate Tuint16_t
  2524. Fsame_screen Tuint8_t
  2525. Fpad0 Tuint8_t
  2526. }
  2527. type Txcb_notify_detail_t = int32
  2528. type _xcb_notify_detail_t = int32
  2529. const _XCB_NOTIFY_DETAIL_ANCESTOR = 0
  2530. const _XCB_NOTIFY_DETAIL_VIRTUAL = 1
  2531. const _XCB_NOTIFY_DETAIL_INFERIOR = 2
  2532. const _XCB_NOTIFY_DETAIL_NONLINEAR = 3
  2533. const _XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4
  2534. const _XCB_NOTIFY_DETAIL_POINTER = 5
  2535. const _XCB_NOTIFY_DETAIL_POINTER_ROOT = 6
  2536. const _XCB_NOTIFY_DETAIL_NONE = 7
  2537. type Txcb_notify_mode_t = int32
  2538. type _xcb_notify_mode_t = int32
  2539. const _XCB_NOTIFY_MODE_NORMAL = 0
  2540. const _XCB_NOTIFY_MODE_GRAB = 1
  2541. const _XCB_NOTIFY_MODE_UNGRAB = 2
  2542. const _XCB_NOTIFY_MODE_WHILE_GRABBED = 3
  2543. type Txcb_enter_notify_event_t = struct {
  2544. Fresponse_type Tuint8_t
  2545. Fdetail Tuint8_t
  2546. Fsequence Tuint16_t
  2547. Ftime Txcb_timestamp_t
  2548. Froot Txcb_window_t
  2549. Fevent Txcb_window_t
  2550. Fchild Txcb_window_t
  2551. Froot_x Tint16_t
  2552. Froot_y Tint16_t
  2553. Fevent_x Tint16_t
  2554. Fevent_y Tint16_t
  2555. Fstate Tuint16_t
  2556. Fmode Tuint8_t
  2557. Fsame_screen_focus Tuint8_t
  2558. }
  2559. type Txcb_leave_notify_event_t = struct {
  2560. Fresponse_type Tuint8_t
  2561. Fdetail Tuint8_t
  2562. Fsequence Tuint16_t
  2563. Ftime Txcb_timestamp_t
  2564. Froot Txcb_window_t
  2565. Fevent Txcb_window_t
  2566. Fchild Txcb_window_t
  2567. Froot_x Tint16_t
  2568. Froot_y Tint16_t
  2569. Fevent_x Tint16_t
  2570. Fevent_y Tint16_t
  2571. Fstate Tuint16_t
  2572. Fmode Tuint8_t
  2573. Fsame_screen_focus Tuint8_t
  2574. }
  2575. type Txcb_enter_notify_event_t1 = Txcb_leave_notify_event_t
  2576. type Txcb_focus_in_event_t = struct {
  2577. Fresponse_type Tuint8_t
  2578. Fdetail Tuint8_t
  2579. Fsequence Tuint16_t
  2580. Fevent Txcb_window_t
  2581. Fmode Tuint8_t
  2582. Fpad0 [3]Tuint8_t
  2583. }
  2584. type Txcb_focus_out_event_t = struct {
  2585. Fresponse_type Tuint8_t
  2586. Fdetail Tuint8_t
  2587. Fsequence Tuint16_t
  2588. Fevent Txcb_window_t
  2589. Fmode Tuint8_t
  2590. Fpad0 [3]Tuint8_t
  2591. }
  2592. type Txcb_focus_in_event_t1 = Txcb_focus_out_event_t
  2593. type Txcb_keymap_notify_event_t = struct {
  2594. Fresponse_type Tuint8_t
  2595. Fkeys [31]Tuint8_t
  2596. }
  2597. type Txcb_expose_event_t = struct {
  2598. Fresponse_type Tuint8_t
  2599. Fpad0 Tuint8_t
  2600. Fsequence Tuint16_t
  2601. Fwindow Txcb_window_t
  2602. Fx Tuint16_t
  2603. Fy Tuint16_t
  2604. Fwidth Tuint16_t
  2605. Fheight Tuint16_t
  2606. Fcount Tuint16_t
  2607. Fpad1 [2]Tuint8_t
  2608. }
  2609. type Txcb_graphics_exposure_event_t = struct {
  2610. Fresponse_type Tuint8_t
  2611. Fpad0 Tuint8_t
  2612. Fsequence Tuint16_t
  2613. Fdrawable Txcb_drawable_t
  2614. Fx Tuint16_t
  2615. Fy Tuint16_t
  2616. Fwidth Tuint16_t
  2617. Fheight Tuint16_t
  2618. Fminor_opcode Tuint16_t
  2619. Fcount Tuint16_t
  2620. Fmajor_opcode Tuint8_t
  2621. Fpad1 [3]Tuint8_t
  2622. }
  2623. type Txcb_no_exposure_event_t = struct {
  2624. Fresponse_type Tuint8_t
  2625. Fpad0 Tuint8_t
  2626. Fsequence Tuint16_t
  2627. Fdrawable Txcb_drawable_t
  2628. Fminor_opcode Tuint16_t
  2629. Fmajor_opcode Tuint8_t
  2630. Fpad1 Tuint8_t
  2631. }
  2632. type Txcb_visibility_t = int32
  2633. type _xcb_visibility_t = int32
  2634. const _XCB_VISIBILITY_UNOBSCURED = 0
  2635. const _XCB_VISIBILITY_PARTIALLY_OBSCURED = 1
  2636. const _XCB_VISIBILITY_FULLY_OBSCURED = 2
  2637. type Txcb_visibility_notify_event_t = struct {
  2638. Fresponse_type Tuint8_t
  2639. Fpad0 Tuint8_t
  2640. Fsequence Tuint16_t
  2641. Fwindow Txcb_window_t
  2642. Fstate Tuint8_t
  2643. Fpad1 [3]Tuint8_t
  2644. }
  2645. type Txcb_create_notify_event_t = struct {
  2646. Fresponse_type Tuint8_t
  2647. Fpad0 Tuint8_t
  2648. Fsequence Tuint16_t
  2649. Fparent Txcb_window_t
  2650. Fwindow Txcb_window_t
  2651. Fx Tint16_t
  2652. Fy Tint16_t
  2653. Fwidth Tuint16_t
  2654. Fheight Tuint16_t
  2655. Fborder_width Tuint16_t
  2656. Foverride_redirect Tuint8_t
  2657. Fpad1 Tuint8_t
  2658. }
  2659. type Txcb_destroy_notify_event_t = struct {
  2660. Fresponse_type Tuint8_t
  2661. Fpad0 Tuint8_t
  2662. Fsequence Tuint16_t
  2663. Fevent Txcb_window_t
  2664. Fwindow Txcb_window_t
  2665. }
  2666. type Txcb_unmap_notify_event_t = struct {
  2667. Fresponse_type Tuint8_t
  2668. Fpad0 Tuint8_t
  2669. Fsequence Tuint16_t
  2670. Fevent Txcb_window_t
  2671. Fwindow Txcb_window_t
  2672. Ffrom_configure Tuint8_t
  2673. Fpad1 [3]Tuint8_t
  2674. }
  2675. type Txcb_map_notify_event_t = struct {
  2676. Fresponse_type Tuint8_t
  2677. Fpad0 Tuint8_t
  2678. Fsequence Tuint16_t
  2679. Fevent Txcb_window_t
  2680. Fwindow Txcb_window_t
  2681. Foverride_redirect Tuint8_t
  2682. Fpad1 [3]Tuint8_t
  2683. }
  2684. type Txcb_map_request_event_t = struct {
  2685. Fresponse_type Tuint8_t
  2686. Fpad0 Tuint8_t
  2687. Fsequence Tuint16_t
  2688. Fparent Txcb_window_t
  2689. Fwindow Txcb_window_t
  2690. }
  2691. type Txcb_reparent_notify_event_t = struct {
  2692. Fresponse_type Tuint8_t
  2693. Fpad0 Tuint8_t
  2694. Fsequence Tuint16_t
  2695. Fevent Txcb_window_t
  2696. Fwindow Txcb_window_t
  2697. Fparent Txcb_window_t
  2698. Fx Tint16_t
  2699. Fy Tint16_t
  2700. Foverride_redirect Tuint8_t
  2701. Fpad1 [3]Tuint8_t
  2702. }
  2703. type Txcb_configure_notify_event_t = struct {
  2704. Fresponse_type Tuint8_t
  2705. Fpad0 Tuint8_t
  2706. Fsequence Tuint16_t
  2707. Fevent Txcb_window_t
  2708. Fwindow Txcb_window_t
  2709. Fabove_sibling Txcb_window_t
  2710. Fx Tint16_t
  2711. Fy Tint16_t
  2712. Fwidth Tuint16_t
  2713. Fheight Tuint16_t
  2714. Fborder_width Tuint16_t
  2715. Foverride_redirect Tuint8_t
  2716. Fpad1 Tuint8_t
  2717. }
  2718. type Txcb_configure_request_event_t = struct {
  2719. Fresponse_type Tuint8_t
  2720. Fstack_mode Tuint8_t
  2721. Fsequence Tuint16_t
  2722. Fparent Txcb_window_t
  2723. Fwindow Txcb_window_t
  2724. Fsibling Txcb_window_t
  2725. Fx Tint16_t
  2726. Fy Tint16_t
  2727. Fwidth Tuint16_t
  2728. Fheight Tuint16_t
  2729. Fborder_width Tuint16_t
  2730. Fvalue_mask Tuint16_t
  2731. }
  2732. type Txcb_gravity_notify_event_t = struct {
  2733. Fresponse_type Tuint8_t
  2734. Fpad0 Tuint8_t
  2735. Fsequence Tuint16_t
  2736. Fevent Txcb_window_t
  2737. Fwindow Txcb_window_t
  2738. Fx Tint16_t
  2739. Fy Tint16_t
  2740. }
  2741. type Txcb_resize_request_event_t = struct {
  2742. Fresponse_type Tuint8_t
  2743. Fpad0 Tuint8_t
  2744. Fsequence Tuint16_t
  2745. Fwindow Txcb_window_t
  2746. Fwidth Tuint16_t
  2747. Fheight Tuint16_t
  2748. }
  2749. type Txcb_place_t = int32
  2750. type _xcb_place_t = int32
  2751. const _XCB_PLACE_ON_TOP = 0
  2752. const _XCB_PLACE_ON_BOTTOM = 1
  2753. type Txcb_circulate_notify_event_t = struct {
  2754. Fresponse_type Tuint8_t
  2755. Fpad0 Tuint8_t
  2756. Fsequence Tuint16_t
  2757. Fevent Txcb_window_t
  2758. Fwindow Txcb_window_t
  2759. Fpad1 [4]Tuint8_t
  2760. Fplace Tuint8_t
  2761. Fpad2 [3]Tuint8_t
  2762. }
  2763. type Txcb_circulate_request_event_t = struct {
  2764. Fresponse_type Tuint8_t
  2765. Fpad0 Tuint8_t
  2766. Fsequence Tuint16_t
  2767. Fevent Txcb_window_t
  2768. Fwindow Txcb_window_t
  2769. Fpad1 [4]Tuint8_t
  2770. Fplace Tuint8_t
  2771. Fpad2 [3]Tuint8_t
  2772. }
  2773. type Txcb_circulate_notify_event_t1 = Txcb_circulate_request_event_t
  2774. type Txcb_property_t = int32
  2775. type _xcb_property_t = int32
  2776. const _XCB_PROPERTY_NEW_VALUE = 0
  2777. const _XCB_PROPERTY_DELETE = 1
  2778. type Txcb_property_notify_event_t = struct {
  2779. Fresponse_type Tuint8_t
  2780. Fpad0 Tuint8_t
  2781. Fsequence Tuint16_t
  2782. Fwindow Txcb_window_t
  2783. Fatom Txcb_atom_t
  2784. Ftime Txcb_timestamp_t
  2785. Fstate Tuint8_t
  2786. Fpad1 [3]Tuint8_t
  2787. }
  2788. type Txcb_selection_clear_event_t = struct {
  2789. Fresponse_type Tuint8_t
  2790. Fpad0 Tuint8_t
  2791. Fsequence Tuint16_t
  2792. Ftime Txcb_timestamp_t
  2793. Fowner Txcb_window_t
  2794. Fselection Txcb_atom_t
  2795. }
  2796. type Txcb_time_t = int32
  2797. type _xcb_time_t = int32
  2798. const _XCB_TIME_CURRENT_TIME = 0
  2799. type Txcb_atom_enum_t = int32
  2800. type _xcb_atom_enum_t = int32
  2801. const _XCB_ATOM_NONE = 0
  2802. const _XCB_ATOM_ANY = 0
  2803. const _XCB_ATOM_PRIMARY = 1
  2804. const _XCB_ATOM_SECONDARY = 2
  2805. const _XCB_ATOM_ARC = 3
  2806. const _XCB_ATOM_ATOM = 4
  2807. const _XCB_ATOM_BITMAP = 5
  2808. const _XCB_ATOM_CARDINAL = 6
  2809. const _XCB_ATOM_COLORMAP = 7
  2810. const _XCB_ATOM_CURSOR = 8
  2811. const _XCB_ATOM_CUT_BUFFER0 = 9
  2812. const _XCB_ATOM_CUT_BUFFER1 = 10
  2813. const _XCB_ATOM_CUT_BUFFER2 = 11
  2814. const _XCB_ATOM_CUT_BUFFER3 = 12
  2815. const _XCB_ATOM_CUT_BUFFER4 = 13
  2816. const _XCB_ATOM_CUT_BUFFER5 = 14
  2817. const _XCB_ATOM_CUT_BUFFER6 = 15
  2818. const _XCB_ATOM_CUT_BUFFER7 = 16
  2819. const _XCB_ATOM_DRAWABLE = 17
  2820. const _XCB_ATOM_FONT = 18
  2821. const _XCB_ATOM_INTEGER = 19
  2822. const _XCB_ATOM_PIXMAP = 20
  2823. const _XCB_ATOM_POINT = 21
  2824. const _XCB_ATOM_RECTANGLE = 22
  2825. const _XCB_ATOM_RESOURCE_MANAGER = 23
  2826. const _XCB_ATOM_RGB_COLOR_MAP = 24
  2827. const _XCB_ATOM_RGB_BEST_MAP = 25
  2828. const _XCB_ATOM_RGB_BLUE_MAP = 26
  2829. const _XCB_ATOM_RGB_DEFAULT_MAP = 27
  2830. const _XCB_ATOM_RGB_GRAY_MAP = 28
  2831. const _XCB_ATOM_RGB_GREEN_MAP = 29
  2832. const _XCB_ATOM_RGB_RED_MAP = 30
  2833. const _XCB_ATOM_STRING = 31
  2834. const _XCB_ATOM_VISUALID = 32
  2835. const _XCB_ATOM_WINDOW = 33
  2836. const _XCB_ATOM_WM_COMMAND = 34
  2837. const _XCB_ATOM_WM_HINTS = 35
  2838. const _XCB_ATOM_WM_CLIENT_MACHINE = 36
  2839. const _XCB_ATOM_WM_ICON_NAME = 37
  2840. const _XCB_ATOM_WM_ICON_SIZE = 38
  2841. const _XCB_ATOM_WM_NAME = 39
  2842. const _XCB_ATOM_WM_NORMAL_HINTS = 40
  2843. const _XCB_ATOM_WM_SIZE_HINTS = 41
  2844. const _XCB_ATOM_WM_ZOOM_HINTS = 42
  2845. const _XCB_ATOM_MIN_SPACE = 43
  2846. const _XCB_ATOM_NORM_SPACE = 44
  2847. const _XCB_ATOM_MAX_SPACE = 45
  2848. const _XCB_ATOM_END_SPACE = 46
  2849. const _XCB_ATOM_SUPERSCRIPT_X = 47
  2850. const _XCB_ATOM_SUPERSCRIPT_Y = 48
  2851. const _XCB_ATOM_SUBSCRIPT_X = 49
  2852. const _XCB_ATOM_SUBSCRIPT_Y = 50
  2853. const _XCB_ATOM_UNDERLINE_POSITION = 51
  2854. const _XCB_ATOM_UNDERLINE_THICKNESS = 52
  2855. const _XCB_ATOM_STRIKEOUT_ASCENT = 53
  2856. const _XCB_ATOM_STRIKEOUT_DESCENT = 54
  2857. const _XCB_ATOM_ITALIC_ANGLE = 55
  2858. const _XCB_ATOM_X_HEIGHT = 56
  2859. const _XCB_ATOM_QUAD_WIDTH = 57
  2860. const _XCB_ATOM_WEIGHT = 58
  2861. const _XCB_ATOM_POINT_SIZE = 59
  2862. const _XCB_ATOM_RESOLUTION = 60
  2863. const _XCB_ATOM_COPYRIGHT = 61
  2864. const _XCB_ATOM_NOTICE = 62
  2865. const _XCB_ATOM_FONT_NAME = 63
  2866. const _XCB_ATOM_FAMILY_NAME = 64
  2867. const _XCB_ATOM_FULL_NAME = 65
  2868. const _XCB_ATOM_CAP_HEIGHT = 66
  2869. const _XCB_ATOM_WM_CLASS = 67
  2870. const _XCB_ATOM_WM_TRANSIENT_FOR = 68
  2871. type Txcb_selection_request_event_t = struct {
  2872. Fresponse_type Tuint8_t
  2873. Fpad0 Tuint8_t
  2874. Fsequence Tuint16_t
  2875. Ftime Txcb_timestamp_t
  2876. Fowner Txcb_window_t
  2877. Frequestor Txcb_window_t
  2878. Fselection Txcb_atom_t
  2879. Ftarget Txcb_atom_t
  2880. Fproperty Txcb_atom_t
  2881. }
  2882. type Txcb_selection_notify_event_t = struct {
  2883. Fresponse_type Tuint8_t
  2884. Fpad0 Tuint8_t
  2885. Fsequence Tuint16_t
  2886. Ftime Txcb_timestamp_t
  2887. Frequestor Txcb_window_t
  2888. Fselection Txcb_atom_t
  2889. Ftarget Txcb_atom_t
  2890. Fproperty Txcb_atom_t
  2891. }
  2892. type Txcb_colormap_state_t = int32
  2893. type _xcb_colormap_state_t = int32
  2894. const _XCB_COLORMAP_STATE_UNINSTALLED = 0
  2895. const _XCB_COLORMAP_STATE_INSTALLED = 1
  2896. type Txcb_colormap_enum_t = int32
  2897. type _xcb_colormap_enum_t = int32
  2898. const _XCB_COLORMAP_NONE = 0
  2899. type Txcb_colormap_notify_event_t = struct {
  2900. Fresponse_type Tuint8_t
  2901. Fpad0 Tuint8_t
  2902. Fsequence Tuint16_t
  2903. Fwindow Txcb_window_t
  2904. Fcolormap Txcb_colormap_t
  2905. F_new Tuint8_t
  2906. Fstate Tuint8_t
  2907. Fpad1 [2]Tuint8_t
  2908. }
  2909. type Txcb_client_message_data_t = struct {
  2910. Fdata16 [0][10]Tuint16_t
  2911. Fdata32 [0][5]Tuint32_t
  2912. Fdata8 [20]Tuint8_t
  2913. }
  2914. type Txcb_client_message_data_iterator_t = struct {
  2915. Fdata uintptr
  2916. Frem int32
  2917. Findex int32
  2918. }
  2919. type Txcb_client_message_event_t = struct {
  2920. Fresponse_type Tuint8_t
  2921. Fformat Tuint8_t
  2922. Fsequence Tuint16_t
  2923. Fwindow Txcb_window_t
  2924. Ftype1 Txcb_atom_t
  2925. Fdata Txcb_client_message_data_t
  2926. }
  2927. type Txcb_mapping_t = int32
  2928. type _xcb_mapping_t = int32
  2929. const _XCB_MAPPING_MODIFIER = 0
  2930. const _XCB_MAPPING_KEYBOARD = 1
  2931. const _XCB_MAPPING_POINTER = 2
  2932. type Txcb_mapping_notify_event_t = struct {
  2933. Fresponse_type Tuint8_t
  2934. Fpad0 Tuint8_t
  2935. Fsequence Tuint16_t
  2936. Frequest Tuint8_t
  2937. Ffirst_keycode Txcb_keycode_t
  2938. Fcount Tuint8_t
  2939. Fpad1 Tuint8_t
  2940. }
  2941. type Txcb_ge_generic_event_t = struct {
  2942. Fresponse_type Tuint8_t
  2943. Fextension Tuint8_t
  2944. Fsequence Tuint16_t
  2945. Flength Tuint32_t
  2946. Fevent_type Tuint16_t
  2947. Fpad0 [22]Tuint8_t
  2948. Ffull_sequence Tuint32_t
  2949. }
  2950. type Txcb_request_error_t = struct {
  2951. Fresponse_type Tuint8_t
  2952. Ferror_code Tuint8_t
  2953. Fsequence Tuint16_t
  2954. Fbad_value Tuint32_t
  2955. Fminor_opcode Tuint16_t
  2956. Fmajor_opcode Tuint8_t
  2957. Fpad0 Tuint8_t
  2958. }
  2959. type Txcb_value_error_t = struct {
  2960. Fresponse_type Tuint8_t
  2961. Ferror_code Tuint8_t
  2962. Fsequence Tuint16_t
  2963. Fbad_value Tuint32_t
  2964. Fminor_opcode Tuint16_t
  2965. Fmajor_opcode Tuint8_t
  2966. Fpad0 Tuint8_t
  2967. }
  2968. type Txcb_window_error_t = struct {
  2969. Fresponse_type Tuint8_t
  2970. Ferror_code Tuint8_t
  2971. Fsequence Tuint16_t
  2972. Fbad_value Tuint32_t
  2973. Fminor_opcode Tuint16_t
  2974. Fmajor_opcode Tuint8_t
  2975. Fpad0 Tuint8_t
  2976. }
  2977. type Txcb_value_error_t1 = Txcb_window_error_t
  2978. type Txcb_pixmap_error_t = struct {
  2979. Fresponse_type Tuint8_t
  2980. Ferror_code Tuint8_t
  2981. Fsequence Tuint16_t
  2982. Fbad_value Tuint32_t
  2983. Fminor_opcode Tuint16_t
  2984. Fmajor_opcode Tuint8_t
  2985. Fpad0 Tuint8_t
  2986. }
  2987. type Txcb_atom_error_t = struct {
  2988. Fresponse_type Tuint8_t
  2989. Ferror_code Tuint8_t
  2990. Fsequence Tuint16_t
  2991. Fbad_value Tuint32_t
  2992. Fminor_opcode Tuint16_t
  2993. Fmajor_opcode Tuint8_t
  2994. Fpad0 Tuint8_t
  2995. }
  2996. type Txcb_cursor_error_t = struct {
  2997. Fresponse_type Tuint8_t
  2998. Ferror_code Tuint8_t
  2999. Fsequence Tuint16_t
  3000. Fbad_value Tuint32_t
  3001. Fminor_opcode Tuint16_t
  3002. Fmajor_opcode Tuint8_t
  3003. Fpad0 Tuint8_t
  3004. }
  3005. type Txcb_font_error_t = struct {
  3006. Fresponse_type Tuint8_t
  3007. Ferror_code Tuint8_t
  3008. Fsequence Tuint16_t
  3009. Fbad_value Tuint32_t
  3010. Fminor_opcode Tuint16_t
  3011. Fmajor_opcode Tuint8_t
  3012. Fpad0 Tuint8_t
  3013. }
  3014. type Txcb_match_error_t = struct {
  3015. Fresponse_type Tuint8_t
  3016. Ferror_code Tuint8_t
  3017. Fsequence Tuint16_t
  3018. Fbad_value Tuint32_t
  3019. Fminor_opcode Tuint16_t
  3020. Fmajor_opcode Tuint8_t
  3021. Fpad0 Tuint8_t
  3022. }
  3023. type Txcb_request_error_t1 = Txcb_match_error_t
  3024. type Txcb_drawable_error_t = struct {
  3025. Fresponse_type Tuint8_t
  3026. Ferror_code Tuint8_t
  3027. Fsequence Tuint16_t
  3028. Fbad_value Tuint32_t
  3029. Fminor_opcode Tuint16_t
  3030. Fmajor_opcode Tuint8_t
  3031. Fpad0 Tuint8_t
  3032. }
  3033. type Txcb_access_error_t = struct {
  3034. Fresponse_type Tuint8_t
  3035. Ferror_code Tuint8_t
  3036. Fsequence Tuint16_t
  3037. Fbad_value Tuint32_t
  3038. Fminor_opcode Tuint16_t
  3039. Fmajor_opcode Tuint8_t
  3040. Fpad0 Tuint8_t
  3041. }
  3042. type Txcb_alloc_error_t = struct {
  3043. Fresponse_type Tuint8_t
  3044. Ferror_code Tuint8_t
  3045. Fsequence Tuint16_t
  3046. Fbad_value Tuint32_t
  3047. Fminor_opcode Tuint16_t
  3048. Fmajor_opcode Tuint8_t
  3049. Fpad0 Tuint8_t
  3050. }
  3051. type Txcb_colormap_error_t = struct {
  3052. Fresponse_type Tuint8_t
  3053. Ferror_code Tuint8_t
  3054. Fsequence Tuint16_t
  3055. Fbad_value Tuint32_t
  3056. Fminor_opcode Tuint16_t
  3057. Fmajor_opcode Tuint8_t
  3058. Fpad0 Tuint8_t
  3059. }
  3060. type Txcb_g_context_error_t = struct {
  3061. Fresponse_type Tuint8_t
  3062. Ferror_code Tuint8_t
  3063. Fsequence Tuint16_t
  3064. Fbad_value Tuint32_t
  3065. Fminor_opcode Tuint16_t
  3066. Fmajor_opcode Tuint8_t
  3067. Fpad0 Tuint8_t
  3068. }
  3069. type Txcb_id_choice_error_t = struct {
  3070. Fresponse_type Tuint8_t
  3071. Ferror_code Tuint8_t
  3072. Fsequence Tuint16_t
  3073. Fbad_value Tuint32_t
  3074. Fminor_opcode Tuint16_t
  3075. Fmajor_opcode Tuint8_t
  3076. Fpad0 Tuint8_t
  3077. }
  3078. type Txcb_name_error_t = struct {
  3079. Fresponse_type Tuint8_t
  3080. Ferror_code Tuint8_t
  3081. Fsequence Tuint16_t
  3082. Fbad_value Tuint32_t
  3083. Fminor_opcode Tuint16_t
  3084. Fmajor_opcode Tuint8_t
  3085. Fpad0 Tuint8_t
  3086. }
  3087. type Txcb_length_error_t = struct {
  3088. Fresponse_type Tuint8_t
  3089. Ferror_code Tuint8_t
  3090. Fsequence Tuint16_t
  3091. Fbad_value Tuint32_t
  3092. Fminor_opcode Tuint16_t
  3093. Fmajor_opcode Tuint8_t
  3094. Fpad0 Tuint8_t
  3095. }
  3096. type Txcb_implementation_error_t = struct {
  3097. Fresponse_type Tuint8_t
  3098. Ferror_code Tuint8_t
  3099. Fsequence Tuint16_t
  3100. Fbad_value Tuint32_t
  3101. Fminor_opcode Tuint16_t
  3102. Fmajor_opcode Tuint8_t
  3103. Fpad0 Tuint8_t
  3104. }
  3105. type Txcb_window_class_t = int32
  3106. type _xcb_window_class_t = int32
  3107. const _XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0
  3108. const _XCB_WINDOW_CLASS_INPUT_OUTPUT = 1
  3109. const _XCB_WINDOW_CLASS_INPUT_ONLY = 2
  3110. type Txcb_cw_t = int32
  3111. type _xcb_cw_t = int32
  3112. const _XCB_CW_BACK_PIXMAP = 1
  3113. const _XCB_CW_BACK_PIXEL = 2
  3114. const _XCB_CW_BORDER_PIXMAP = 4
  3115. const _XCB_CW_BORDER_PIXEL = 8
  3116. const _XCB_CW_BIT_GRAVITY = 16
  3117. const _XCB_CW_WIN_GRAVITY = 32
  3118. const _XCB_CW_BACKING_STORE = 64
  3119. const _XCB_CW_BACKING_PLANES = 128
  3120. const _XCB_CW_BACKING_PIXEL = 256
  3121. const _XCB_CW_OVERRIDE_REDIRECT = 512
  3122. const _XCB_CW_SAVE_UNDER = 1024
  3123. const _XCB_CW_EVENT_MASK = 2048
  3124. const _XCB_CW_DONT_PROPAGATE = 4096
  3125. const _XCB_CW_COLORMAP = 8192
  3126. const _XCB_CW_CURSOR = 16384
  3127. type Txcb_back_pixmap_t = int32
  3128. type _xcb_back_pixmap_t = int32
  3129. const _XCB_BACK_PIXMAP_NONE = 0
  3130. const _XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
  3131. type Txcb_gravity_t = int32
  3132. type _xcb_gravity_t = int32
  3133. const _XCB_GRAVITY_BIT_FORGET = 0
  3134. const _XCB_GRAVITY_WIN_UNMAP = 0
  3135. const _XCB_GRAVITY_NORTH_WEST = 1
  3136. const _XCB_GRAVITY_NORTH = 2
  3137. const _XCB_GRAVITY_NORTH_EAST = 3
  3138. const _XCB_GRAVITY_WEST = 4
  3139. const _XCB_GRAVITY_CENTER = 5
  3140. const _XCB_GRAVITY_EAST = 6
  3141. const _XCB_GRAVITY_SOUTH_WEST = 7
  3142. const _XCB_GRAVITY_SOUTH = 8
  3143. const _XCB_GRAVITY_SOUTH_EAST = 9
  3144. const _XCB_GRAVITY_STATIC = 10
  3145. type Txcb_create_window_value_list_t = struct {
  3146. Fbackground_pixmap Txcb_pixmap_t
  3147. Fbackground_pixel Tuint32_t
  3148. Fborder_pixmap Txcb_pixmap_t
  3149. Fborder_pixel Tuint32_t
  3150. Fbit_gravity Tuint32_t
  3151. Fwin_gravity Tuint32_t
  3152. Fbacking_store Tuint32_t
  3153. Fbacking_planes Tuint32_t
  3154. Fbacking_pixel Tuint32_t
  3155. Foverride_redirect Txcb_bool32_t
  3156. Fsave_under Txcb_bool32_t
  3157. Fevent_mask Tuint32_t
  3158. Fdo_not_propogate_mask Tuint32_t
  3159. Fcolormap Txcb_colormap_t
  3160. Fcursor Txcb_cursor_t
  3161. }
  3162. type Txcb_create_window_request_t = struct {
  3163. Fmajor_opcode Tuint8_t
  3164. Fdepth Tuint8_t
  3165. Flength Tuint16_t
  3166. Fwid Txcb_window_t
  3167. Fparent Txcb_window_t
  3168. Fx Tint16_t
  3169. Fy Tint16_t
  3170. Fwidth Tuint16_t
  3171. Fheight Tuint16_t
  3172. Fborder_width Tuint16_t
  3173. F_class Tuint16_t
  3174. Fvisual Txcb_visualid_t
  3175. Fvalue_mask Tuint32_t
  3176. }
  3177. type Txcb_change_window_attributes_value_list_t = struct {
  3178. Fbackground_pixmap Txcb_pixmap_t
  3179. Fbackground_pixel Tuint32_t
  3180. Fborder_pixmap Txcb_pixmap_t
  3181. Fborder_pixel Tuint32_t
  3182. Fbit_gravity Tuint32_t
  3183. Fwin_gravity Tuint32_t
  3184. Fbacking_store Tuint32_t
  3185. Fbacking_planes Tuint32_t
  3186. Fbacking_pixel Tuint32_t
  3187. Foverride_redirect Txcb_bool32_t
  3188. Fsave_under Txcb_bool32_t
  3189. Fevent_mask Tuint32_t
  3190. Fdo_not_propogate_mask Tuint32_t
  3191. Fcolormap Txcb_colormap_t
  3192. Fcursor Txcb_cursor_t
  3193. }
  3194. type Txcb_change_window_attributes_request_t = struct {
  3195. Fmajor_opcode Tuint8_t
  3196. Fpad0 Tuint8_t
  3197. Flength Tuint16_t
  3198. Fwindow Txcb_window_t
  3199. Fvalue_mask Tuint32_t
  3200. }
  3201. type Txcb_map_state_t = int32
  3202. type _xcb_map_state_t = int32
  3203. const _XCB_MAP_STATE_UNMAPPED = 0
  3204. const _XCB_MAP_STATE_UNVIEWABLE = 1
  3205. const _XCB_MAP_STATE_VIEWABLE = 2
  3206. type Txcb_get_window_attributes_cookie_t = struct {
  3207. Fsequence uint32
  3208. }
  3209. type Txcb_get_window_attributes_request_t = struct {
  3210. Fmajor_opcode Tuint8_t
  3211. Fpad0 Tuint8_t
  3212. Flength Tuint16_t
  3213. Fwindow Txcb_window_t
  3214. }
  3215. type Txcb_get_window_attributes_reply_t = struct {
  3216. Fresponse_type Tuint8_t
  3217. Fbacking_store Tuint8_t
  3218. Fsequence Tuint16_t
  3219. Flength Tuint32_t
  3220. Fvisual Txcb_visualid_t
  3221. F_class Tuint16_t
  3222. Fbit_gravity Tuint8_t
  3223. Fwin_gravity Tuint8_t
  3224. Fbacking_planes Tuint32_t
  3225. Fbacking_pixel Tuint32_t
  3226. Fsave_under Tuint8_t
  3227. Fmap_is_installed Tuint8_t
  3228. Fmap_state Tuint8_t
  3229. Foverride_redirect Tuint8_t
  3230. Fcolormap Txcb_colormap_t
  3231. Fall_event_masks Tuint32_t
  3232. Fyour_event_mask Tuint32_t
  3233. Fdo_not_propagate_mask Tuint16_t
  3234. Fpad0 [2]Tuint8_t
  3235. }
  3236. type Txcb_destroy_window_request_t = struct {
  3237. Fmajor_opcode Tuint8_t
  3238. Fpad0 Tuint8_t
  3239. Flength Tuint16_t
  3240. Fwindow Txcb_window_t
  3241. }
  3242. type Txcb_destroy_subwindows_request_t = struct {
  3243. Fmajor_opcode Tuint8_t
  3244. Fpad0 Tuint8_t
  3245. Flength Tuint16_t
  3246. Fwindow Txcb_window_t
  3247. }
  3248. type Txcb_set_mode_t = int32
  3249. type _xcb_set_mode_t = int32
  3250. const _XCB_SET_MODE_INSERT = 0
  3251. const _XCB_SET_MODE_DELETE = 1
  3252. type Txcb_change_save_set_request_t = struct {
  3253. Fmajor_opcode Tuint8_t
  3254. Fmode Tuint8_t
  3255. Flength Tuint16_t
  3256. Fwindow Txcb_window_t
  3257. }
  3258. type Txcb_reparent_window_request_t = struct {
  3259. Fmajor_opcode Tuint8_t
  3260. Fpad0 Tuint8_t
  3261. Flength Tuint16_t
  3262. Fwindow Txcb_window_t
  3263. Fparent Txcb_window_t
  3264. Fx Tint16_t
  3265. Fy Tint16_t
  3266. }
  3267. type Txcb_map_window_request_t = struct {
  3268. Fmajor_opcode Tuint8_t
  3269. Fpad0 Tuint8_t
  3270. Flength Tuint16_t
  3271. Fwindow Txcb_window_t
  3272. }
  3273. type Txcb_map_subwindows_request_t = struct {
  3274. Fmajor_opcode Tuint8_t
  3275. Fpad0 Tuint8_t
  3276. Flength Tuint16_t
  3277. Fwindow Txcb_window_t
  3278. }
  3279. type Txcb_unmap_window_request_t = struct {
  3280. Fmajor_opcode Tuint8_t
  3281. Fpad0 Tuint8_t
  3282. Flength Tuint16_t
  3283. Fwindow Txcb_window_t
  3284. }
  3285. type Txcb_unmap_subwindows_request_t = struct {
  3286. Fmajor_opcode Tuint8_t
  3287. Fpad0 Tuint8_t
  3288. Flength Tuint16_t
  3289. Fwindow Txcb_window_t
  3290. }
  3291. type Txcb_config_window_t = int32
  3292. type _xcb_config_window_t = int32
  3293. const _XCB_CONFIG_WINDOW_X = 1
  3294. const _XCB_CONFIG_WINDOW_Y = 2
  3295. const _XCB_CONFIG_WINDOW_WIDTH = 4
  3296. const _XCB_CONFIG_WINDOW_HEIGHT = 8
  3297. const _XCB_CONFIG_WINDOW_BORDER_WIDTH = 16
  3298. const _XCB_CONFIG_WINDOW_SIBLING = 32
  3299. const _XCB_CONFIG_WINDOW_STACK_MODE = 64
  3300. type Txcb_stack_mode_t = int32
  3301. type _xcb_stack_mode_t = int32
  3302. const _XCB_STACK_MODE_ABOVE = 0
  3303. const _XCB_STACK_MODE_BELOW = 1
  3304. const _XCB_STACK_MODE_TOP_IF = 2
  3305. const _XCB_STACK_MODE_BOTTOM_IF = 3
  3306. const _XCB_STACK_MODE_OPPOSITE = 4
  3307. type Txcb_configure_window_value_list_t = struct {
  3308. Fx Tint32_t
  3309. Fy Tint32_t
  3310. Fwidth Tuint32_t
  3311. Fheight Tuint32_t
  3312. Fborder_width Tuint32_t
  3313. Fsibling Txcb_window_t
  3314. Fstack_mode Tuint32_t
  3315. }
  3316. type Txcb_configure_window_request_t = struct {
  3317. Fmajor_opcode Tuint8_t
  3318. Fpad0 Tuint8_t
  3319. Flength Tuint16_t
  3320. Fwindow Txcb_window_t
  3321. Fvalue_mask Tuint16_t
  3322. Fpad1 [2]Tuint8_t
  3323. }
  3324. type Txcb_circulate_t = int32
  3325. type _xcb_circulate_t = int32
  3326. const _XCB_CIRCULATE_RAISE_LOWEST = 0
  3327. const _XCB_CIRCULATE_LOWER_HIGHEST = 1
  3328. type Txcb_circulate_window_request_t = struct {
  3329. Fmajor_opcode Tuint8_t
  3330. Fdirection Tuint8_t
  3331. Flength Tuint16_t
  3332. Fwindow Txcb_window_t
  3333. }
  3334. type Txcb_get_geometry_cookie_t = struct {
  3335. Fsequence uint32
  3336. }
  3337. type Txcb_get_geometry_request_t = struct {
  3338. Fmajor_opcode Tuint8_t
  3339. Fpad0 Tuint8_t
  3340. Flength Tuint16_t
  3341. Fdrawable Txcb_drawable_t
  3342. }
  3343. type Txcb_get_geometry_reply_t = struct {
  3344. Fresponse_type Tuint8_t
  3345. Fdepth Tuint8_t
  3346. Fsequence Tuint16_t
  3347. Flength Tuint32_t
  3348. Froot Txcb_window_t
  3349. Fx Tint16_t
  3350. Fy Tint16_t
  3351. Fwidth Tuint16_t
  3352. Fheight Tuint16_t
  3353. Fborder_width Tuint16_t
  3354. Fpad0 [2]Tuint8_t
  3355. }
  3356. type Txcb_query_tree_cookie_t = struct {
  3357. Fsequence uint32
  3358. }
  3359. type Txcb_query_tree_request_t = struct {
  3360. Fmajor_opcode Tuint8_t
  3361. Fpad0 Tuint8_t
  3362. Flength Tuint16_t
  3363. Fwindow Txcb_window_t
  3364. }
  3365. type Txcb_query_tree_reply_t = struct {
  3366. Fresponse_type Tuint8_t
  3367. Fpad0 Tuint8_t
  3368. Fsequence Tuint16_t
  3369. Flength Tuint32_t
  3370. Froot Txcb_window_t
  3371. Fparent Txcb_window_t
  3372. Fchildren_len Tuint16_t
  3373. Fpad1 [14]Tuint8_t
  3374. }
  3375. type Txcb_intern_atom_cookie_t = struct {
  3376. Fsequence uint32
  3377. }
  3378. type Txcb_intern_atom_request_t = struct {
  3379. Fmajor_opcode Tuint8_t
  3380. Fonly_if_exists Tuint8_t
  3381. Flength Tuint16_t
  3382. Fname_len Tuint16_t
  3383. Fpad0 [2]Tuint8_t
  3384. }
  3385. type Txcb_intern_atom_reply_t = struct {
  3386. Fresponse_type Tuint8_t
  3387. Fpad0 Tuint8_t
  3388. Fsequence Tuint16_t
  3389. Flength Tuint32_t
  3390. Fatom Txcb_atom_t
  3391. }
  3392. type Txcb_get_atom_name_cookie_t = struct {
  3393. Fsequence uint32
  3394. }
  3395. type Txcb_get_atom_name_request_t = struct {
  3396. Fmajor_opcode Tuint8_t
  3397. Fpad0 Tuint8_t
  3398. Flength Tuint16_t
  3399. Fatom Txcb_atom_t
  3400. }
  3401. type Txcb_get_atom_name_reply_t = struct {
  3402. Fresponse_type Tuint8_t
  3403. Fpad0 Tuint8_t
  3404. Fsequence Tuint16_t
  3405. Flength Tuint32_t
  3406. Fname_len Tuint16_t
  3407. Fpad1 [22]Tuint8_t
  3408. }
  3409. type Txcb_prop_mode_t = int32
  3410. type _xcb_prop_mode_t = int32
  3411. const _XCB_PROP_MODE_REPLACE = 0
  3412. const _XCB_PROP_MODE_PREPEND = 1
  3413. const _XCB_PROP_MODE_APPEND = 2
  3414. type Txcb_change_property_request_t = struct {
  3415. Fmajor_opcode Tuint8_t
  3416. Fmode Tuint8_t
  3417. Flength Tuint16_t
  3418. Fwindow Txcb_window_t
  3419. Fproperty Txcb_atom_t
  3420. Ftype1 Txcb_atom_t
  3421. Fformat Tuint8_t
  3422. Fpad0 [3]Tuint8_t
  3423. Fdata_len Tuint32_t
  3424. }
  3425. type Txcb_delete_property_request_t = struct {
  3426. Fmajor_opcode Tuint8_t
  3427. Fpad0 Tuint8_t
  3428. Flength Tuint16_t
  3429. Fwindow Txcb_window_t
  3430. Fproperty Txcb_atom_t
  3431. }
  3432. type Txcb_get_property_type_t = int32
  3433. type _xcb_get_property_type_t = int32
  3434. const _XCB_GET_PROPERTY_TYPE_ANY = 0
  3435. type Txcb_get_property_cookie_t = struct {
  3436. Fsequence uint32
  3437. }
  3438. type Txcb_get_property_request_t = struct {
  3439. Fmajor_opcode Tuint8_t
  3440. F_delete Tuint8_t
  3441. Flength Tuint16_t
  3442. Fwindow Txcb_window_t
  3443. Fproperty Txcb_atom_t
  3444. Ftype1 Txcb_atom_t
  3445. Flong_offset Tuint32_t
  3446. Flong_length Tuint32_t
  3447. }
  3448. type Txcb_get_property_reply_t = struct {
  3449. Fresponse_type Tuint8_t
  3450. Fformat Tuint8_t
  3451. Fsequence Tuint16_t
  3452. Flength Tuint32_t
  3453. Ftype1 Txcb_atom_t
  3454. Fbytes_after Tuint32_t
  3455. Fvalue_len Tuint32_t
  3456. Fpad0 [12]Tuint8_t
  3457. }
  3458. type Txcb_list_properties_cookie_t = struct {
  3459. Fsequence uint32
  3460. }
  3461. type Txcb_list_properties_request_t = struct {
  3462. Fmajor_opcode Tuint8_t
  3463. Fpad0 Tuint8_t
  3464. Flength Tuint16_t
  3465. Fwindow Txcb_window_t
  3466. }
  3467. type Txcb_list_properties_reply_t = struct {
  3468. Fresponse_type Tuint8_t
  3469. Fpad0 Tuint8_t
  3470. Fsequence Tuint16_t
  3471. Flength Tuint32_t
  3472. Fatoms_len Tuint16_t
  3473. Fpad1 [22]Tuint8_t
  3474. }
  3475. type Txcb_set_selection_owner_request_t = struct {
  3476. Fmajor_opcode Tuint8_t
  3477. Fpad0 Tuint8_t
  3478. Flength Tuint16_t
  3479. Fowner Txcb_window_t
  3480. Fselection Txcb_atom_t
  3481. Ftime Txcb_timestamp_t
  3482. }
  3483. type Txcb_get_selection_owner_cookie_t = struct {
  3484. Fsequence uint32
  3485. }
  3486. type Txcb_get_selection_owner_request_t = struct {
  3487. Fmajor_opcode Tuint8_t
  3488. Fpad0 Tuint8_t
  3489. Flength Tuint16_t
  3490. Fselection Txcb_atom_t
  3491. }
  3492. type Txcb_get_selection_owner_reply_t = struct {
  3493. Fresponse_type Tuint8_t
  3494. Fpad0 Tuint8_t
  3495. Fsequence Tuint16_t
  3496. Flength Tuint32_t
  3497. Fowner Txcb_window_t
  3498. }
  3499. type Txcb_convert_selection_request_t = struct {
  3500. Fmajor_opcode Tuint8_t
  3501. Fpad0 Tuint8_t
  3502. Flength Tuint16_t
  3503. Frequestor Txcb_window_t
  3504. Fselection Txcb_atom_t
  3505. Ftarget Txcb_atom_t
  3506. Fproperty Txcb_atom_t
  3507. Ftime Txcb_timestamp_t
  3508. }
  3509. type Txcb_send_event_dest_t = int32
  3510. type _xcb_send_event_dest_t = int32
  3511. const _XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0
  3512. const _XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
  3513. type Txcb_send_event_request_t = struct {
  3514. Fmajor_opcode Tuint8_t
  3515. Fpropagate Tuint8_t
  3516. Flength Tuint16_t
  3517. Fdestination Txcb_window_t
  3518. Fevent_mask Tuint32_t
  3519. Fevent [32]uint8
  3520. }
  3521. type Txcb_grab_mode_t = int32
  3522. type _xcb_grab_mode_t = int32
  3523. const _XCB_GRAB_MODE_SYNC = 0
  3524. const _XCB_GRAB_MODE_ASYNC = 1
  3525. type Txcb_grab_status_t = int32
  3526. type _xcb_grab_status_t = int32
  3527. const _XCB_GRAB_STATUS_SUCCESS = 0
  3528. const _XCB_GRAB_STATUS_ALREADY_GRABBED = 1
  3529. const _XCB_GRAB_STATUS_INVALID_TIME = 2
  3530. const _XCB_GRAB_STATUS_NOT_VIEWABLE = 3
  3531. const _XCB_GRAB_STATUS_FROZEN = 4
  3532. type Txcb_cursor_enum_t = int32
  3533. type _xcb_cursor_enum_t = int32
  3534. const _XCB_CURSOR_NONE = 0
  3535. type Txcb_grab_pointer_cookie_t = struct {
  3536. Fsequence uint32
  3537. }
  3538. type Txcb_grab_pointer_request_t = struct {
  3539. Fmajor_opcode Tuint8_t
  3540. Fowner_events Tuint8_t
  3541. Flength Tuint16_t
  3542. Fgrab_window Txcb_window_t
  3543. Fevent_mask Tuint16_t
  3544. Fpointer_mode Tuint8_t
  3545. Fkeyboard_mode Tuint8_t
  3546. Fconfine_to Txcb_window_t
  3547. Fcursor Txcb_cursor_t
  3548. Ftime Txcb_timestamp_t
  3549. }
  3550. type Txcb_grab_pointer_reply_t = struct {
  3551. Fresponse_type Tuint8_t
  3552. Fstatus Tuint8_t
  3553. Fsequence Tuint16_t
  3554. Flength Tuint32_t
  3555. }
  3556. type Txcb_ungrab_pointer_request_t = struct {
  3557. Fmajor_opcode Tuint8_t
  3558. Fpad0 Tuint8_t
  3559. Flength Tuint16_t
  3560. Ftime Txcb_timestamp_t
  3561. }
  3562. type Txcb_button_index_t = int32
  3563. type _xcb_button_index_t = int32
  3564. const _XCB_BUTTON_INDEX_ANY = 0
  3565. const _XCB_BUTTON_INDEX_1 = 1
  3566. const _XCB_BUTTON_INDEX_2 = 2
  3567. const _XCB_BUTTON_INDEX_3 = 3
  3568. const _XCB_BUTTON_INDEX_4 = 4
  3569. const _XCB_BUTTON_INDEX_5 = 5
  3570. type Txcb_grab_button_request_t = struct {
  3571. Fmajor_opcode Tuint8_t
  3572. Fowner_events Tuint8_t
  3573. Flength Tuint16_t
  3574. Fgrab_window Txcb_window_t
  3575. Fevent_mask Tuint16_t
  3576. Fpointer_mode Tuint8_t
  3577. Fkeyboard_mode Tuint8_t
  3578. Fconfine_to Txcb_window_t
  3579. Fcursor Txcb_cursor_t
  3580. Fbutton Tuint8_t
  3581. Fpad0 Tuint8_t
  3582. Fmodifiers Tuint16_t
  3583. }
  3584. type Txcb_ungrab_button_request_t = struct {
  3585. Fmajor_opcode Tuint8_t
  3586. Fbutton Tuint8_t
  3587. Flength Tuint16_t
  3588. Fgrab_window Txcb_window_t
  3589. Fmodifiers Tuint16_t
  3590. Fpad0 [2]Tuint8_t
  3591. }
  3592. type Txcb_change_active_pointer_grab_request_t = struct {
  3593. Fmajor_opcode Tuint8_t
  3594. Fpad0 Tuint8_t
  3595. Flength Tuint16_t
  3596. Fcursor Txcb_cursor_t
  3597. Ftime Txcb_timestamp_t
  3598. Fevent_mask Tuint16_t
  3599. Fpad1 [2]Tuint8_t
  3600. }
  3601. type Txcb_grab_keyboard_cookie_t = struct {
  3602. Fsequence uint32
  3603. }
  3604. type Txcb_grab_keyboard_request_t = struct {
  3605. Fmajor_opcode Tuint8_t
  3606. Fowner_events Tuint8_t
  3607. Flength Tuint16_t
  3608. Fgrab_window Txcb_window_t
  3609. Ftime Txcb_timestamp_t
  3610. Fpointer_mode Tuint8_t
  3611. Fkeyboard_mode Tuint8_t
  3612. Fpad0 [2]Tuint8_t
  3613. }
  3614. type Txcb_grab_keyboard_reply_t = struct {
  3615. Fresponse_type Tuint8_t
  3616. Fstatus Tuint8_t
  3617. Fsequence Tuint16_t
  3618. Flength Tuint32_t
  3619. }
  3620. type Txcb_ungrab_keyboard_request_t = struct {
  3621. Fmajor_opcode Tuint8_t
  3622. Fpad0 Tuint8_t
  3623. Flength Tuint16_t
  3624. Ftime Txcb_timestamp_t
  3625. }
  3626. type Txcb_grab_t = int32
  3627. type _xcb_grab_t = int32
  3628. const _XCB_GRAB_ANY = 0
  3629. type Txcb_grab_key_request_t = struct {
  3630. Fmajor_opcode Tuint8_t
  3631. Fowner_events Tuint8_t
  3632. Flength Tuint16_t
  3633. Fgrab_window Txcb_window_t
  3634. Fmodifiers Tuint16_t
  3635. Fkey Txcb_keycode_t
  3636. Fpointer_mode Tuint8_t
  3637. Fkeyboard_mode Tuint8_t
  3638. Fpad0 [3]Tuint8_t
  3639. }
  3640. type Txcb_ungrab_key_request_t = struct {
  3641. Fmajor_opcode Tuint8_t
  3642. Fkey Txcb_keycode_t
  3643. Flength Tuint16_t
  3644. Fgrab_window Txcb_window_t
  3645. Fmodifiers Tuint16_t
  3646. Fpad0 [2]Tuint8_t
  3647. }
  3648. type Txcb_allow_t = int32
  3649. type _xcb_allow_t = int32
  3650. const _XCB_ALLOW_ASYNC_POINTER = 0
  3651. const _XCB_ALLOW_SYNC_POINTER = 1
  3652. const _XCB_ALLOW_REPLAY_POINTER = 2
  3653. const _XCB_ALLOW_ASYNC_KEYBOARD = 3
  3654. const _XCB_ALLOW_SYNC_KEYBOARD = 4
  3655. const _XCB_ALLOW_REPLAY_KEYBOARD = 5
  3656. const _XCB_ALLOW_ASYNC_BOTH = 6
  3657. const _XCB_ALLOW_SYNC_BOTH = 7
  3658. type Txcb_allow_events_request_t = struct {
  3659. Fmajor_opcode Tuint8_t
  3660. Fmode Tuint8_t
  3661. Flength Tuint16_t
  3662. Ftime Txcb_timestamp_t
  3663. }
  3664. type Txcb_grab_server_request_t = struct {
  3665. Fmajor_opcode Tuint8_t
  3666. Fpad0 Tuint8_t
  3667. Flength Tuint16_t
  3668. }
  3669. type Txcb_ungrab_server_request_t = struct {
  3670. Fmajor_opcode Tuint8_t
  3671. Fpad0 Tuint8_t
  3672. Flength Tuint16_t
  3673. }
  3674. type Txcb_query_pointer_cookie_t = struct {
  3675. Fsequence uint32
  3676. }
  3677. type Txcb_query_pointer_request_t = struct {
  3678. Fmajor_opcode Tuint8_t
  3679. Fpad0 Tuint8_t
  3680. Flength Tuint16_t
  3681. Fwindow Txcb_window_t
  3682. }
  3683. type Txcb_query_pointer_reply_t = struct {
  3684. Fresponse_type Tuint8_t
  3685. Fsame_screen Tuint8_t
  3686. Fsequence Tuint16_t
  3687. Flength Tuint32_t
  3688. Froot Txcb_window_t
  3689. Fchild Txcb_window_t
  3690. Froot_x Tint16_t
  3691. Froot_y Tint16_t
  3692. Fwin_x Tint16_t
  3693. Fwin_y Tint16_t
  3694. Fmask Tuint16_t
  3695. Fpad0 [2]Tuint8_t
  3696. }
  3697. type Txcb_timecoord_t = struct {
  3698. Ftime Txcb_timestamp_t
  3699. Fx Tint16_t
  3700. Fy Tint16_t
  3701. }
  3702. type Txcb_timecoord_iterator_t = struct {
  3703. Fdata uintptr
  3704. Frem int32
  3705. Findex int32
  3706. }
  3707. type Txcb_get_motion_events_cookie_t = struct {
  3708. Fsequence uint32
  3709. }
  3710. type Txcb_get_motion_events_request_t = struct {
  3711. Fmajor_opcode Tuint8_t
  3712. Fpad0 Tuint8_t
  3713. Flength Tuint16_t
  3714. Fwindow Txcb_window_t
  3715. Fstart Txcb_timestamp_t
  3716. Fstop Txcb_timestamp_t
  3717. }
  3718. type Txcb_get_motion_events_reply_t = struct {
  3719. Fresponse_type Tuint8_t
  3720. Fpad0 Tuint8_t
  3721. Fsequence Tuint16_t
  3722. Flength Tuint32_t
  3723. Fevents_len Tuint32_t
  3724. Fpad1 [20]Tuint8_t
  3725. }
  3726. type Txcb_translate_coordinates_cookie_t = struct {
  3727. Fsequence uint32
  3728. }
  3729. type Txcb_translate_coordinates_request_t = struct {
  3730. Fmajor_opcode Tuint8_t
  3731. Fpad0 Tuint8_t
  3732. Flength Tuint16_t
  3733. Fsrc_window Txcb_window_t
  3734. Fdst_window Txcb_window_t
  3735. Fsrc_x Tint16_t
  3736. Fsrc_y Tint16_t
  3737. }
  3738. type Txcb_translate_coordinates_reply_t = struct {
  3739. Fresponse_type Tuint8_t
  3740. Fsame_screen Tuint8_t
  3741. Fsequence Tuint16_t
  3742. Flength Tuint32_t
  3743. Fchild Txcb_window_t
  3744. Fdst_x Tint16_t
  3745. Fdst_y Tint16_t
  3746. }
  3747. type Txcb_warp_pointer_request_t = struct {
  3748. Fmajor_opcode Tuint8_t
  3749. Fpad0 Tuint8_t
  3750. Flength Tuint16_t
  3751. Fsrc_window Txcb_window_t
  3752. Fdst_window Txcb_window_t
  3753. Fsrc_x Tint16_t
  3754. Fsrc_y Tint16_t
  3755. Fsrc_width Tuint16_t
  3756. Fsrc_height Tuint16_t
  3757. Fdst_x Tint16_t
  3758. Fdst_y Tint16_t
  3759. }
  3760. type Txcb_input_focus_t = int32
  3761. type _xcb_input_focus_t = int32
  3762. const _XCB_INPUT_FOCUS_NONE = 0
  3763. const _XCB_INPUT_FOCUS_POINTER_ROOT = 1
  3764. const _XCB_INPUT_FOCUS_PARENT = 2
  3765. const _XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
  3766. type Txcb_set_input_focus_request_t = struct {
  3767. Fmajor_opcode Tuint8_t
  3768. Frevert_to Tuint8_t
  3769. Flength Tuint16_t
  3770. Ffocus Txcb_window_t
  3771. Ftime Txcb_timestamp_t
  3772. }
  3773. type Txcb_get_input_focus_cookie_t = struct {
  3774. Fsequence uint32
  3775. }
  3776. type Txcb_get_input_focus_request_t = struct {
  3777. Fmajor_opcode Tuint8_t
  3778. Fpad0 Tuint8_t
  3779. Flength Tuint16_t
  3780. }
  3781. type Txcb_get_input_focus_reply_t = struct {
  3782. Fresponse_type Tuint8_t
  3783. Frevert_to Tuint8_t
  3784. Fsequence Tuint16_t
  3785. Flength Tuint32_t
  3786. Ffocus Txcb_window_t
  3787. }
  3788. type Txcb_query_keymap_cookie_t = struct {
  3789. Fsequence uint32
  3790. }
  3791. type Txcb_query_keymap_request_t = struct {
  3792. Fmajor_opcode Tuint8_t
  3793. Fpad0 Tuint8_t
  3794. Flength Tuint16_t
  3795. }
  3796. type Txcb_query_keymap_reply_t = struct {
  3797. Fresponse_type Tuint8_t
  3798. Fpad0 Tuint8_t
  3799. Fsequence Tuint16_t
  3800. Flength Tuint32_t
  3801. Fkeys [32]Tuint8_t
  3802. }
  3803. type Txcb_open_font_request_t = struct {
  3804. Fmajor_opcode Tuint8_t
  3805. Fpad0 Tuint8_t
  3806. Flength Tuint16_t
  3807. Ffid Txcb_font_t
  3808. Fname_len Tuint16_t
  3809. Fpad1 [2]Tuint8_t
  3810. }
  3811. type Txcb_close_font_request_t = struct {
  3812. Fmajor_opcode Tuint8_t
  3813. Fpad0 Tuint8_t
  3814. Flength Tuint16_t
  3815. Ffont Txcb_font_t
  3816. }
  3817. type Txcb_font_draw_t = int32
  3818. type _xcb_font_draw_t = int32
  3819. const _XCB_FONT_DRAW_LEFT_TO_RIGHT = 0
  3820. const _XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
  3821. type Txcb_fontprop_t = struct {
  3822. Fname Txcb_atom_t
  3823. Fvalue Tuint32_t
  3824. }
  3825. type Txcb_fontprop_iterator_t = struct {
  3826. Fdata uintptr
  3827. Frem int32
  3828. Findex int32
  3829. }
  3830. type Txcb_charinfo_t = struct {
  3831. Fleft_side_bearing Tint16_t
  3832. Fright_side_bearing Tint16_t
  3833. Fcharacter_width Tint16_t
  3834. Fascent Tint16_t
  3835. Fdescent Tint16_t
  3836. Fattributes Tuint16_t
  3837. }
  3838. type Txcb_charinfo_iterator_t = struct {
  3839. Fdata uintptr
  3840. Frem int32
  3841. Findex int32
  3842. }
  3843. type Txcb_query_font_cookie_t = struct {
  3844. Fsequence uint32
  3845. }
  3846. type Txcb_query_font_request_t = struct {
  3847. Fmajor_opcode Tuint8_t
  3848. Fpad0 Tuint8_t
  3849. Flength Tuint16_t
  3850. Ffont Txcb_fontable_t
  3851. }
  3852. type Txcb_query_font_reply_t = struct {
  3853. Fresponse_type Tuint8_t
  3854. Fpad0 Tuint8_t
  3855. Fsequence Tuint16_t
  3856. Flength Tuint32_t
  3857. Fmin_bounds Txcb_charinfo_t
  3858. Fpad1 [4]Tuint8_t
  3859. Fmax_bounds Txcb_charinfo_t
  3860. Fpad2 [4]Tuint8_t
  3861. Fmin_char_or_byte2 Tuint16_t
  3862. Fmax_char_or_byte2 Tuint16_t
  3863. Fdefault_char Tuint16_t
  3864. Fproperties_len Tuint16_t
  3865. Fdraw_direction Tuint8_t
  3866. Fmin_byte1 Tuint8_t
  3867. Fmax_byte1 Tuint8_t
  3868. Fall_chars_exist Tuint8_t
  3869. Ffont_ascent Tint16_t
  3870. Ffont_descent Tint16_t
  3871. Fchar_infos_len Tuint32_t
  3872. }
  3873. type Txcb_query_text_extents_cookie_t = struct {
  3874. Fsequence uint32
  3875. }
  3876. type Txcb_query_text_extents_request_t = struct {
  3877. Fmajor_opcode Tuint8_t
  3878. Fodd_length Tuint8_t
  3879. Flength Tuint16_t
  3880. Ffont Txcb_fontable_t
  3881. }
  3882. type Txcb_query_text_extents_reply_t = struct {
  3883. Fresponse_type Tuint8_t
  3884. Fdraw_direction Tuint8_t
  3885. Fsequence Tuint16_t
  3886. Flength Tuint32_t
  3887. Ffont_ascent Tint16_t
  3888. Ffont_descent Tint16_t
  3889. Foverall_ascent Tint16_t
  3890. Foverall_descent Tint16_t
  3891. Foverall_width Tint32_t
  3892. Foverall_left Tint32_t
  3893. Foverall_right Tint32_t
  3894. }
  3895. type Txcb_str_t = struct {
  3896. Fname_len Tuint8_t
  3897. }
  3898. type Txcb_str_iterator_t = struct {
  3899. Fdata uintptr
  3900. Frem int32
  3901. Findex int32
  3902. }
  3903. type Txcb_list_fonts_cookie_t = struct {
  3904. Fsequence uint32
  3905. }
  3906. type Txcb_list_fonts_request_t = struct {
  3907. Fmajor_opcode Tuint8_t
  3908. Fpad0 Tuint8_t
  3909. Flength Tuint16_t
  3910. Fmax_names Tuint16_t
  3911. Fpattern_len Tuint16_t
  3912. }
  3913. type Txcb_list_fonts_reply_t = struct {
  3914. Fresponse_type Tuint8_t
  3915. Fpad0 Tuint8_t
  3916. Fsequence Tuint16_t
  3917. Flength Tuint32_t
  3918. Fnames_len Tuint16_t
  3919. Fpad1 [22]Tuint8_t
  3920. }
  3921. type Txcb_list_fonts_with_info_cookie_t = struct {
  3922. Fsequence uint32
  3923. }
  3924. type Txcb_list_fonts_with_info_request_t = struct {
  3925. Fmajor_opcode Tuint8_t
  3926. Fpad0 Tuint8_t
  3927. Flength Tuint16_t
  3928. Fmax_names Tuint16_t
  3929. Fpattern_len Tuint16_t
  3930. }
  3931. type Txcb_list_fonts_with_info_reply_t = struct {
  3932. Fresponse_type Tuint8_t
  3933. Fname_len Tuint8_t
  3934. Fsequence Tuint16_t
  3935. Flength Tuint32_t
  3936. Fmin_bounds Txcb_charinfo_t
  3937. Fpad0 [4]Tuint8_t
  3938. Fmax_bounds Txcb_charinfo_t
  3939. Fpad1 [4]Tuint8_t
  3940. Fmin_char_or_byte2 Tuint16_t
  3941. Fmax_char_or_byte2 Tuint16_t
  3942. Fdefault_char Tuint16_t
  3943. Fproperties_len Tuint16_t
  3944. Fdraw_direction Tuint8_t
  3945. Fmin_byte1 Tuint8_t
  3946. Fmax_byte1 Tuint8_t
  3947. Fall_chars_exist Tuint8_t
  3948. Ffont_ascent Tint16_t
  3949. Ffont_descent Tint16_t
  3950. Freplies_hint Tuint32_t
  3951. }
  3952. type Txcb_set_font_path_request_t = struct {
  3953. Fmajor_opcode Tuint8_t
  3954. Fpad0 Tuint8_t
  3955. Flength Tuint16_t
  3956. Ffont_qty Tuint16_t
  3957. Fpad1 [2]Tuint8_t
  3958. }
  3959. type Txcb_get_font_path_cookie_t = struct {
  3960. Fsequence uint32
  3961. }
  3962. type Txcb_get_font_path_request_t = struct {
  3963. Fmajor_opcode Tuint8_t
  3964. Fpad0 Tuint8_t
  3965. Flength Tuint16_t
  3966. }
  3967. type Txcb_get_font_path_reply_t = struct {
  3968. Fresponse_type Tuint8_t
  3969. Fpad0 Tuint8_t
  3970. Fsequence Tuint16_t
  3971. Flength Tuint32_t
  3972. Fpath_len Tuint16_t
  3973. Fpad1 [22]Tuint8_t
  3974. }
  3975. type Txcb_create_pixmap_request_t = struct {
  3976. Fmajor_opcode Tuint8_t
  3977. Fdepth Tuint8_t
  3978. Flength Tuint16_t
  3979. Fpid Txcb_pixmap_t
  3980. Fdrawable Txcb_drawable_t
  3981. Fwidth Tuint16_t
  3982. Fheight Tuint16_t
  3983. }
  3984. type Txcb_free_pixmap_request_t = struct {
  3985. Fmajor_opcode Tuint8_t
  3986. Fpad0 Tuint8_t
  3987. Flength Tuint16_t
  3988. Fpixmap Txcb_pixmap_t
  3989. }
  3990. type Txcb_gc_t = int32
  3991. type _xcb_gc_t = int32
  3992. const _XCB_GC_FUNCTION = 1
  3993. const _XCB_GC_PLANE_MASK = 2
  3994. const _XCB_GC_FOREGROUND = 4
  3995. const _XCB_GC_BACKGROUND = 8
  3996. const _XCB_GC_LINE_WIDTH = 16
  3997. const _XCB_GC_LINE_STYLE = 32
  3998. const _XCB_GC_CAP_STYLE = 64
  3999. const _XCB_GC_JOIN_STYLE = 128
  4000. const _XCB_GC_FILL_STYLE = 256
  4001. const _XCB_GC_FILL_RULE = 512
  4002. const _XCB_GC_TILE = 1024
  4003. const _XCB_GC_STIPPLE = 2048
  4004. const _XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096
  4005. const _XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192
  4006. const _XCB_GC_FONT = 16384
  4007. const _XCB_GC_SUBWINDOW_MODE = 32768
  4008. const _XCB_GC_GRAPHICS_EXPOSURES = 65536
  4009. const _XCB_GC_CLIP_ORIGIN_X = 131072
  4010. const _XCB_GC_CLIP_ORIGIN_Y = 262144
  4011. const _XCB_GC_CLIP_MASK = 524288
  4012. const _XCB_GC_DASH_OFFSET = 1048576
  4013. const _XCB_GC_DASH_LIST = 2097152
  4014. const _XCB_GC_ARC_MODE = 4194304
  4015. type Txcb_gx_t = int32
  4016. type _xcb_gx_t = int32
  4017. const _XCB_GX_CLEAR = 0
  4018. const _XCB_GX_AND = 1
  4019. const _XCB_GX_AND_REVERSE = 2
  4020. const _XCB_GX_COPY = 3
  4021. const _XCB_GX_AND_INVERTED = 4
  4022. const _XCB_GX_NOOP = 5
  4023. const _XCB_GX_XOR = 6
  4024. const _XCB_GX_OR = 7
  4025. const _XCB_GX_NOR = 8
  4026. const _XCB_GX_EQUIV = 9
  4027. const _XCB_GX_INVERT = 10
  4028. const _XCB_GX_OR_REVERSE = 11
  4029. const _XCB_GX_COPY_INVERTED = 12
  4030. const _XCB_GX_OR_INVERTED = 13
  4031. const _XCB_GX_NAND = 14
  4032. const _XCB_GX_SET = 15
  4033. type Txcb_line_style_t = int32
  4034. type _xcb_line_style_t = int32
  4035. const _XCB_LINE_STYLE_SOLID = 0
  4036. const _XCB_LINE_STYLE_ON_OFF_DASH = 1
  4037. const _XCB_LINE_STYLE_DOUBLE_DASH = 2
  4038. type Txcb_cap_style_t = int32
  4039. type _xcb_cap_style_t = int32
  4040. const _XCB_CAP_STYLE_NOT_LAST = 0
  4041. const _XCB_CAP_STYLE_BUTT = 1
  4042. const _XCB_CAP_STYLE_ROUND = 2
  4043. const _XCB_CAP_STYLE_PROJECTING = 3
  4044. type Txcb_join_style_t = int32
  4045. type _xcb_join_style_t = int32
  4046. const _XCB_JOIN_STYLE_MITER = 0
  4047. const _XCB_JOIN_STYLE_ROUND = 1
  4048. const _XCB_JOIN_STYLE_BEVEL = 2
  4049. type Txcb_fill_style_t = int32
  4050. type _xcb_fill_style_t = int32
  4051. const _XCB_FILL_STYLE_SOLID = 0
  4052. const _XCB_FILL_STYLE_TILED = 1
  4053. const _XCB_FILL_STYLE_STIPPLED = 2
  4054. const _XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
  4055. type Txcb_fill_rule_t = int32
  4056. type _xcb_fill_rule_t = int32
  4057. const _XCB_FILL_RULE_EVEN_ODD = 0
  4058. const _XCB_FILL_RULE_WINDING = 1
  4059. type Txcb_subwindow_mode_t = int32
  4060. type _xcb_subwindow_mode_t = int32
  4061. const _XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0
  4062. const _XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
  4063. type Txcb_arc_mode_t = int32
  4064. type _xcb_arc_mode_t = int32
  4065. const _XCB_ARC_MODE_CHORD = 0
  4066. const _XCB_ARC_MODE_PIE_SLICE = 1
  4067. type Txcb_create_gc_value_list_t = struct {
  4068. Ffunction Tuint32_t
  4069. Fplane_mask Tuint32_t
  4070. Fforeground Tuint32_t
  4071. Fbackground Tuint32_t
  4072. Fline_width Tuint32_t
  4073. Fline_style Tuint32_t
  4074. Fcap_style Tuint32_t
  4075. Fjoin_style Tuint32_t
  4076. Ffill_style Tuint32_t
  4077. Ffill_rule Tuint32_t
  4078. Ftile Txcb_pixmap_t
  4079. Fstipple Txcb_pixmap_t
  4080. Ftile_stipple_x_origin Tint32_t
  4081. Ftile_stipple_y_origin Tint32_t
  4082. Ffont Txcb_font_t
  4083. Fsubwindow_mode Tuint32_t
  4084. Fgraphics_exposures Txcb_bool32_t
  4085. Fclip_x_origin Tint32_t
  4086. Fclip_y_origin Tint32_t
  4087. Fclip_mask Txcb_pixmap_t
  4088. Fdash_offset Tuint32_t
  4089. Fdashes Tuint32_t
  4090. Farc_mode Tuint32_t
  4091. }
  4092. type Txcb_create_gc_request_t = struct {
  4093. Fmajor_opcode Tuint8_t
  4094. Fpad0 Tuint8_t
  4095. Flength Tuint16_t
  4096. Fcid Txcb_gcontext_t
  4097. Fdrawable Txcb_drawable_t
  4098. Fvalue_mask Tuint32_t
  4099. }
  4100. type Txcb_change_gc_value_list_t = struct {
  4101. Ffunction Tuint32_t
  4102. Fplane_mask Tuint32_t
  4103. Fforeground Tuint32_t
  4104. Fbackground Tuint32_t
  4105. Fline_width Tuint32_t
  4106. Fline_style Tuint32_t
  4107. Fcap_style Tuint32_t
  4108. Fjoin_style Tuint32_t
  4109. Ffill_style Tuint32_t
  4110. Ffill_rule Tuint32_t
  4111. Ftile Txcb_pixmap_t
  4112. Fstipple Txcb_pixmap_t
  4113. Ftile_stipple_x_origin Tint32_t
  4114. Ftile_stipple_y_origin Tint32_t
  4115. Ffont Txcb_font_t
  4116. Fsubwindow_mode Tuint32_t
  4117. Fgraphics_exposures Txcb_bool32_t
  4118. Fclip_x_origin Tint32_t
  4119. Fclip_y_origin Tint32_t
  4120. Fclip_mask Txcb_pixmap_t
  4121. Fdash_offset Tuint32_t
  4122. Fdashes Tuint32_t
  4123. Farc_mode Tuint32_t
  4124. }
  4125. type Txcb_change_gc_request_t = struct {
  4126. Fmajor_opcode Tuint8_t
  4127. Fpad0 Tuint8_t
  4128. Flength Tuint16_t
  4129. Fgc Txcb_gcontext_t
  4130. Fvalue_mask Tuint32_t
  4131. }
  4132. type Txcb_copy_gc_request_t = struct {
  4133. Fmajor_opcode Tuint8_t
  4134. Fpad0 Tuint8_t
  4135. Flength Tuint16_t
  4136. Fsrc_gc Txcb_gcontext_t
  4137. Fdst_gc Txcb_gcontext_t
  4138. Fvalue_mask Tuint32_t
  4139. }
  4140. type Txcb_set_dashes_request_t = struct {
  4141. Fmajor_opcode Tuint8_t
  4142. Fpad0 Tuint8_t
  4143. Flength Tuint16_t
  4144. Fgc Txcb_gcontext_t
  4145. Fdash_offset Tuint16_t
  4146. Fdashes_len Tuint16_t
  4147. }
  4148. type Txcb_clip_ordering_t = int32
  4149. type _xcb_clip_ordering_t = int32
  4150. const _XCB_CLIP_ORDERING_UNSORTED = 0
  4151. const _XCB_CLIP_ORDERING_Y_SORTED = 1
  4152. const _XCB_CLIP_ORDERING_YX_SORTED = 2
  4153. const _XCB_CLIP_ORDERING_YX_BANDED = 3
  4154. type Txcb_set_clip_rectangles_request_t = struct {
  4155. Fmajor_opcode Tuint8_t
  4156. Fordering Tuint8_t
  4157. Flength Tuint16_t
  4158. Fgc Txcb_gcontext_t
  4159. Fclip_x_origin Tint16_t
  4160. Fclip_y_origin Tint16_t
  4161. }
  4162. type Txcb_free_gc_request_t = struct {
  4163. Fmajor_opcode Tuint8_t
  4164. Fpad0 Tuint8_t
  4165. Flength Tuint16_t
  4166. Fgc Txcb_gcontext_t
  4167. }
  4168. type Txcb_clear_area_request_t = struct {
  4169. Fmajor_opcode Tuint8_t
  4170. Fexposures Tuint8_t
  4171. Flength Tuint16_t
  4172. Fwindow Txcb_window_t
  4173. Fx Tint16_t
  4174. Fy Tint16_t
  4175. Fwidth Tuint16_t
  4176. Fheight Tuint16_t
  4177. }
  4178. type Txcb_copy_area_request_t = struct {
  4179. Fmajor_opcode Tuint8_t
  4180. Fpad0 Tuint8_t
  4181. Flength Tuint16_t
  4182. Fsrc_drawable Txcb_drawable_t
  4183. Fdst_drawable Txcb_drawable_t
  4184. Fgc Txcb_gcontext_t
  4185. Fsrc_x Tint16_t
  4186. Fsrc_y Tint16_t
  4187. Fdst_x Tint16_t
  4188. Fdst_y Tint16_t
  4189. Fwidth Tuint16_t
  4190. Fheight Tuint16_t
  4191. }
  4192. type Txcb_copy_plane_request_t = struct {
  4193. Fmajor_opcode Tuint8_t
  4194. Fpad0 Tuint8_t
  4195. Flength Tuint16_t
  4196. Fsrc_drawable Txcb_drawable_t
  4197. Fdst_drawable Txcb_drawable_t
  4198. Fgc Txcb_gcontext_t
  4199. Fsrc_x Tint16_t
  4200. Fsrc_y Tint16_t
  4201. Fdst_x Tint16_t
  4202. Fdst_y Tint16_t
  4203. Fwidth Tuint16_t
  4204. Fheight Tuint16_t
  4205. Fbit_plane Tuint32_t
  4206. }
  4207. type Txcb_coord_mode_t = int32
  4208. type _xcb_coord_mode_t = int32
  4209. const _XCB_COORD_MODE_ORIGIN = 0
  4210. const _XCB_COORD_MODE_PREVIOUS = 1
  4211. type Txcb_poly_point_request_t = struct {
  4212. Fmajor_opcode Tuint8_t
  4213. Fcoordinate_mode Tuint8_t
  4214. Flength Tuint16_t
  4215. Fdrawable Txcb_drawable_t
  4216. Fgc Txcb_gcontext_t
  4217. }
  4218. type Txcb_poly_line_request_t = struct {
  4219. Fmajor_opcode Tuint8_t
  4220. Fcoordinate_mode Tuint8_t
  4221. Flength Tuint16_t
  4222. Fdrawable Txcb_drawable_t
  4223. Fgc Txcb_gcontext_t
  4224. }
  4225. type Txcb_segment_t = struct {
  4226. Fx1 Tint16_t
  4227. Fy1 Tint16_t
  4228. Fx2 Tint16_t
  4229. Fy2 Tint16_t
  4230. }
  4231. type Txcb_segment_iterator_t = struct {
  4232. Fdata uintptr
  4233. Frem int32
  4234. Findex int32
  4235. }
  4236. type Txcb_poly_segment_request_t = struct {
  4237. Fmajor_opcode Tuint8_t
  4238. Fpad0 Tuint8_t
  4239. Flength Tuint16_t
  4240. Fdrawable Txcb_drawable_t
  4241. Fgc Txcb_gcontext_t
  4242. }
  4243. type Txcb_poly_rectangle_request_t = struct {
  4244. Fmajor_opcode Tuint8_t
  4245. Fpad0 Tuint8_t
  4246. Flength Tuint16_t
  4247. Fdrawable Txcb_drawable_t
  4248. Fgc Txcb_gcontext_t
  4249. }
  4250. type Txcb_poly_arc_request_t = struct {
  4251. Fmajor_opcode Tuint8_t
  4252. Fpad0 Tuint8_t
  4253. Flength Tuint16_t
  4254. Fdrawable Txcb_drawable_t
  4255. Fgc Txcb_gcontext_t
  4256. }
  4257. type Txcb_poly_shape_t = int32
  4258. type _xcb_poly_shape_t = int32
  4259. const _XCB_POLY_SHAPE_COMPLEX = 0
  4260. const _XCB_POLY_SHAPE_NONCONVEX = 1
  4261. const _XCB_POLY_SHAPE_CONVEX = 2
  4262. type Txcb_fill_poly_request_t = struct {
  4263. Fmajor_opcode Tuint8_t
  4264. Fpad0 Tuint8_t
  4265. Flength Tuint16_t
  4266. Fdrawable Txcb_drawable_t
  4267. Fgc Txcb_gcontext_t
  4268. Fshape Tuint8_t
  4269. Fcoordinate_mode Tuint8_t
  4270. Fpad1 [2]Tuint8_t
  4271. }
  4272. type Txcb_poly_fill_rectangle_request_t = struct {
  4273. Fmajor_opcode Tuint8_t
  4274. Fpad0 Tuint8_t
  4275. Flength Tuint16_t
  4276. Fdrawable Txcb_drawable_t
  4277. Fgc Txcb_gcontext_t
  4278. }
  4279. type Txcb_poly_fill_arc_request_t = struct {
  4280. Fmajor_opcode Tuint8_t
  4281. Fpad0 Tuint8_t
  4282. Flength Tuint16_t
  4283. Fdrawable Txcb_drawable_t
  4284. Fgc Txcb_gcontext_t
  4285. }
  4286. type Txcb_image_format_t = int32
  4287. type _xcb_image_format_t = int32
  4288. const _XCB_IMAGE_FORMAT_XY_BITMAP = 0
  4289. const _XCB_IMAGE_FORMAT_XY_PIXMAP = 1
  4290. const _XCB_IMAGE_FORMAT_Z_PIXMAP = 2
  4291. type Txcb_put_image_request_t = struct {
  4292. Fmajor_opcode Tuint8_t
  4293. Fformat Tuint8_t
  4294. Flength Tuint16_t
  4295. Fdrawable Txcb_drawable_t
  4296. Fgc Txcb_gcontext_t
  4297. Fwidth Tuint16_t
  4298. Fheight Tuint16_t
  4299. Fdst_x Tint16_t
  4300. Fdst_y Tint16_t
  4301. Fleft_pad Tuint8_t
  4302. Fdepth Tuint8_t
  4303. Fpad0 [2]Tuint8_t
  4304. }
  4305. type Txcb_get_image_cookie_t = struct {
  4306. Fsequence uint32
  4307. }
  4308. type Txcb_get_image_request_t = struct {
  4309. Fmajor_opcode Tuint8_t
  4310. Fformat Tuint8_t
  4311. Flength Tuint16_t
  4312. Fdrawable Txcb_drawable_t
  4313. Fx Tint16_t
  4314. Fy Tint16_t
  4315. Fwidth Tuint16_t
  4316. Fheight Tuint16_t
  4317. Fplane_mask Tuint32_t
  4318. }
  4319. type Txcb_get_image_reply_t = struct {
  4320. Fresponse_type Tuint8_t
  4321. Fdepth Tuint8_t
  4322. Fsequence Tuint16_t
  4323. Flength Tuint32_t
  4324. Fvisual Txcb_visualid_t
  4325. Fpad0 [20]Tuint8_t
  4326. }
  4327. type Txcb_poly_text_8_request_t = struct {
  4328. Fmajor_opcode Tuint8_t
  4329. Fpad0 Tuint8_t
  4330. Flength Tuint16_t
  4331. Fdrawable Txcb_drawable_t
  4332. Fgc Txcb_gcontext_t
  4333. Fx Tint16_t
  4334. Fy Tint16_t
  4335. }
  4336. type Txcb_poly_text_16_request_t = struct {
  4337. Fmajor_opcode Tuint8_t
  4338. Fpad0 Tuint8_t
  4339. Flength Tuint16_t
  4340. Fdrawable Txcb_drawable_t
  4341. Fgc Txcb_gcontext_t
  4342. Fx Tint16_t
  4343. Fy Tint16_t
  4344. }
  4345. type Txcb_image_text_8_request_t = struct {
  4346. Fmajor_opcode Tuint8_t
  4347. Fstring_len Tuint8_t
  4348. Flength Tuint16_t
  4349. Fdrawable Txcb_drawable_t
  4350. Fgc Txcb_gcontext_t
  4351. Fx Tint16_t
  4352. Fy Tint16_t
  4353. }
  4354. type Txcb_image_text_16_request_t = struct {
  4355. Fmajor_opcode Tuint8_t
  4356. Fstring_len Tuint8_t
  4357. Flength Tuint16_t
  4358. Fdrawable Txcb_drawable_t
  4359. Fgc Txcb_gcontext_t
  4360. Fx Tint16_t
  4361. Fy Tint16_t
  4362. }
  4363. type Txcb_colormap_alloc_t = int32
  4364. type _xcb_colormap_alloc_t = int32
  4365. const _XCB_COLORMAP_ALLOC_NONE = 0
  4366. const _XCB_COLORMAP_ALLOC_ALL = 1
  4367. type Txcb_create_colormap_request_t = struct {
  4368. Fmajor_opcode Tuint8_t
  4369. Falloc Tuint8_t
  4370. Flength Tuint16_t
  4371. Fmid Txcb_colormap_t
  4372. Fwindow Txcb_window_t
  4373. Fvisual Txcb_visualid_t
  4374. }
  4375. type Txcb_free_colormap_request_t = struct {
  4376. Fmajor_opcode Tuint8_t
  4377. Fpad0 Tuint8_t
  4378. Flength Tuint16_t
  4379. Fcmap Txcb_colormap_t
  4380. }
  4381. type Txcb_copy_colormap_and_free_request_t = struct {
  4382. Fmajor_opcode Tuint8_t
  4383. Fpad0 Tuint8_t
  4384. Flength Tuint16_t
  4385. Fmid Txcb_colormap_t
  4386. Fsrc_cmap Txcb_colormap_t
  4387. }
  4388. type Txcb_install_colormap_request_t = struct {
  4389. Fmajor_opcode Tuint8_t
  4390. Fpad0 Tuint8_t
  4391. Flength Tuint16_t
  4392. Fcmap Txcb_colormap_t
  4393. }
  4394. type Txcb_uninstall_colormap_request_t = struct {
  4395. Fmajor_opcode Tuint8_t
  4396. Fpad0 Tuint8_t
  4397. Flength Tuint16_t
  4398. Fcmap Txcb_colormap_t
  4399. }
  4400. type Txcb_list_installed_colormaps_cookie_t = struct {
  4401. Fsequence uint32
  4402. }
  4403. type Txcb_list_installed_colormaps_request_t = struct {
  4404. Fmajor_opcode Tuint8_t
  4405. Fpad0 Tuint8_t
  4406. Flength Tuint16_t
  4407. Fwindow Txcb_window_t
  4408. }
  4409. type Txcb_list_installed_colormaps_reply_t = struct {
  4410. Fresponse_type Tuint8_t
  4411. Fpad0 Tuint8_t
  4412. Fsequence Tuint16_t
  4413. Flength Tuint32_t
  4414. Fcmaps_len Tuint16_t
  4415. Fpad1 [22]Tuint8_t
  4416. }
  4417. type Txcb_alloc_color_cookie_t = struct {
  4418. Fsequence uint32
  4419. }
  4420. type Txcb_alloc_color_request_t = struct {
  4421. Fmajor_opcode Tuint8_t
  4422. Fpad0 Tuint8_t
  4423. Flength Tuint16_t
  4424. Fcmap Txcb_colormap_t
  4425. Fred Tuint16_t
  4426. Fgreen Tuint16_t
  4427. Fblue Tuint16_t
  4428. Fpad1 [2]Tuint8_t
  4429. }
  4430. type Txcb_alloc_color_reply_t = struct {
  4431. Fresponse_type Tuint8_t
  4432. Fpad0 Tuint8_t
  4433. Fsequence Tuint16_t
  4434. Flength Tuint32_t
  4435. Fred Tuint16_t
  4436. Fgreen Tuint16_t
  4437. Fblue Tuint16_t
  4438. Fpad1 [2]Tuint8_t
  4439. Fpixel Tuint32_t
  4440. }
  4441. type Txcb_alloc_named_color_cookie_t = struct {
  4442. Fsequence uint32
  4443. }
  4444. type Txcb_alloc_named_color_request_t = struct {
  4445. Fmajor_opcode Tuint8_t
  4446. Fpad0 Tuint8_t
  4447. Flength Tuint16_t
  4448. Fcmap Txcb_colormap_t
  4449. Fname_len Tuint16_t
  4450. Fpad1 [2]Tuint8_t
  4451. }
  4452. type Txcb_alloc_named_color_reply_t = struct {
  4453. Fresponse_type Tuint8_t
  4454. Fpad0 Tuint8_t
  4455. Fsequence Tuint16_t
  4456. Flength Tuint32_t
  4457. Fpixel Tuint32_t
  4458. Fexact_red Tuint16_t
  4459. Fexact_green Tuint16_t
  4460. Fexact_blue Tuint16_t
  4461. Fvisual_red Tuint16_t
  4462. Fvisual_green Tuint16_t
  4463. Fvisual_blue Tuint16_t
  4464. }
  4465. type Txcb_alloc_color_cells_cookie_t = struct {
  4466. Fsequence uint32
  4467. }
  4468. type Txcb_alloc_color_cells_request_t = struct {
  4469. Fmajor_opcode Tuint8_t
  4470. Fcontiguous Tuint8_t
  4471. Flength Tuint16_t
  4472. Fcmap Txcb_colormap_t
  4473. Fcolors Tuint16_t
  4474. Fplanes Tuint16_t
  4475. }
  4476. type Txcb_alloc_color_cells_reply_t = struct {
  4477. Fresponse_type Tuint8_t
  4478. Fpad0 Tuint8_t
  4479. Fsequence Tuint16_t
  4480. Flength Tuint32_t
  4481. Fpixels_len Tuint16_t
  4482. Fmasks_len Tuint16_t
  4483. Fpad1 [20]Tuint8_t
  4484. }
  4485. type Txcb_alloc_color_planes_cookie_t = struct {
  4486. Fsequence uint32
  4487. }
  4488. type Txcb_alloc_color_planes_request_t = struct {
  4489. Fmajor_opcode Tuint8_t
  4490. Fcontiguous Tuint8_t
  4491. Flength Tuint16_t
  4492. Fcmap Txcb_colormap_t
  4493. Fcolors Tuint16_t
  4494. Freds Tuint16_t
  4495. Fgreens Tuint16_t
  4496. Fblues Tuint16_t
  4497. }
  4498. type Txcb_alloc_color_planes_reply_t = struct {
  4499. Fresponse_type Tuint8_t
  4500. Fpad0 Tuint8_t
  4501. Fsequence Tuint16_t
  4502. Flength Tuint32_t
  4503. Fpixels_len Tuint16_t
  4504. Fpad1 [2]Tuint8_t
  4505. Fred_mask Tuint32_t
  4506. Fgreen_mask Tuint32_t
  4507. Fblue_mask Tuint32_t
  4508. Fpad2 [8]Tuint8_t
  4509. }
  4510. type Txcb_free_colors_request_t = struct {
  4511. Fmajor_opcode Tuint8_t
  4512. Fpad0 Tuint8_t
  4513. Flength Tuint16_t
  4514. Fcmap Txcb_colormap_t
  4515. Fplane_mask Tuint32_t
  4516. }
  4517. type Txcb_color_flag_t = int32
  4518. type _xcb_color_flag_t = int32
  4519. const _XCB_COLOR_FLAG_RED = 1
  4520. const _XCB_COLOR_FLAG_GREEN = 2
  4521. const _XCB_COLOR_FLAG_BLUE = 4
  4522. type Txcb_coloritem_t = struct {
  4523. Fpixel Tuint32_t
  4524. Fred Tuint16_t
  4525. Fgreen Tuint16_t
  4526. Fblue Tuint16_t
  4527. Fflags Tuint8_t
  4528. Fpad0 Tuint8_t
  4529. }
  4530. type Txcb_coloritem_iterator_t = struct {
  4531. Fdata uintptr
  4532. Frem int32
  4533. Findex int32
  4534. }
  4535. type Txcb_store_colors_request_t = struct {
  4536. Fmajor_opcode Tuint8_t
  4537. Fpad0 Tuint8_t
  4538. Flength Tuint16_t
  4539. Fcmap Txcb_colormap_t
  4540. }
  4541. type Txcb_store_named_color_request_t = struct {
  4542. Fmajor_opcode Tuint8_t
  4543. Fflags Tuint8_t
  4544. Flength Tuint16_t
  4545. Fcmap Txcb_colormap_t
  4546. Fpixel Tuint32_t
  4547. Fname_len Tuint16_t
  4548. Fpad0 [2]Tuint8_t
  4549. }
  4550. type Txcb_rgb_t = struct {
  4551. Fred Tuint16_t
  4552. Fgreen Tuint16_t
  4553. Fblue Tuint16_t
  4554. Fpad0 [2]Tuint8_t
  4555. }
  4556. type Txcb_rgb_iterator_t = struct {
  4557. Fdata uintptr
  4558. Frem int32
  4559. Findex int32
  4560. }
  4561. type Txcb_query_colors_cookie_t = struct {
  4562. Fsequence uint32
  4563. }
  4564. type Txcb_query_colors_request_t = struct {
  4565. Fmajor_opcode Tuint8_t
  4566. Fpad0 Tuint8_t
  4567. Flength Tuint16_t
  4568. Fcmap Txcb_colormap_t
  4569. }
  4570. type Txcb_query_colors_reply_t = struct {
  4571. Fresponse_type Tuint8_t
  4572. Fpad0 Tuint8_t
  4573. Fsequence Tuint16_t
  4574. Flength Tuint32_t
  4575. Fcolors_len Tuint16_t
  4576. Fpad1 [22]Tuint8_t
  4577. }
  4578. type Txcb_lookup_color_cookie_t = struct {
  4579. Fsequence uint32
  4580. }
  4581. type Txcb_lookup_color_request_t = struct {
  4582. Fmajor_opcode Tuint8_t
  4583. Fpad0 Tuint8_t
  4584. Flength Tuint16_t
  4585. Fcmap Txcb_colormap_t
  4586. Fname_len Tuint16_t
  4587. Fpad1 [2]Tuint8_t
  4588. }
  4589. type Txcb_lookup_color_reply_t = struct {
  4590. Fresponse_type Tuint8_t
  4591. Fpad0 Tuint8_t
  4592. Fsequence Tuint16_t
  4593. Flength Tuint32_t
  4594. Fexact_red Tuint16_t
  4595. Fexact_green Tuint16_t
  4596. Fexact_blue Tuint16_t
  4597. Fvisual_red Tuint16_t
  4598. Fvisual_green Tuint16_t
  4599. Fvisual_blue Tuint16_t
  4600. }
  4601. type Txcb_pixmap_enum_t = int32
  4602. type _xcb_pixmap_enum_t = int32
  4603. const _XCB_PIXMAP_NONE = 0
  4604. type Txcb_create_cursor_request_t = struct {
  4605. Fmajor_opcode Tuint8_t
  4606. Fpad0 Tuint8_t
  4607. Flength Tuint16_t
  4608. Fcid Txcb_cursor_t
  4609. Fsource Txcb_pixmap_t
  4610. Fmask Txcb_pixmap_t
  4611. Ffore_red Tuint16_t
  4612. Ffore_green Tuint16_t
  4613. Ffore_blue Tuint16_t
  4614. Fback_red Tuint16_t
  4615. Fback_green Tuint16_t
  4616. Fback_blue Tuint16_t
  4617. Fx Tuint16_t
  4618. Fy Tuint16_t
  4619. }
  4620. type Txcb_font_enum_t = int32
  4621. type _xcb_font_enum_t = int32
  4622. const _XCB_FONT_NONE = 0
  4623. type Txcb_create_glyph_cursor_request_t = struct {
  4624. Fmajor_opcode Tuint8_t
  4625. Fpad0 Tuint8_t
  4626. Flength Tuint16_t
  4627. Fcid Txcb_cursor_t
  4628. Fsource_font Txcb_font_t
  4629. Fmask_font Txcb_font_t
  4630. Fsource_char Tuint16_t
  4631. Fmask_char Tuint16_t
  4632. Ffore_red Tuint16_t
  4633. Ffore_green Tuint16_t
  4634. Ffore_blue Tuint16_t
  4635. Fback_red Tuint16_t
  4636. Fback_green Tuint16_t
  4637. Fback_blue Tuint16_t
  4638. }
  4639. type Txcb_free_cursor_request_t = struct {
  4640. Fmajor_opcode Tuint8_t
  4641. Fpad0 Tuint8_t
  4642. Flength Tuint16_t
  4643. Fcursor Txcb_cursor_t
  4644. }
  4645. type Txcb_recolor_cursor_request_t = struct {
  4646. Fmajor_opcode Tuint8_t
  4647. Fpad0 Tuint8_t
  4648. Flength Tuint16_t
  4649. Fcursor Txcb_cursor_t
  4650. Ffore_red Tuint16_t
  4651. Ffore_green Tuint16_t
  4652. Ffore_blue Tuint16_t
  4653. Fback_red Tuint16_t
  4654. Fback_green Tuint16_t
  4655. Fback_blue Tuint16_t
  4656. }
  4657. type Txcb_query_shape_of_t = int32
  4658. type _xcb_query_shape_of_t = int32
  4659. const _XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0
  4660. const _XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1
  4661. const _XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
  4662. type Txcb_query_best_size_cookie_t = struct {
  4663. Fsequence uint32
  4664. }
  4665. type Txcb_query_best_size_request_t = struct {
  4666. Fmajor_opcode Tuint8_t
  4667. F_class Tuint8_t
  4668. Flength Tuint16_t
  4669. Fdrawable Txcb_drawable_t
  4670. Fwidth Tuint16_t
  4671. Fheight Tuint16_t
  4672. }
  4673. type Txcb_query_best_size_reply_t = struct {
  4674. Fresponse_type Tuint8_t
  4675. Fpad0 Tuint8_t
  4676. Fsequence Tuint16_t
  4677. Flength Tuint32_t
  4678. Fwidth Tuint16_t
  4679. Fheight Tuint16_t
  4680. }
  4681. type Txcb_query_extension_cookie_t = struct {
  4682. Fsequence uint32
  4683. }
  4684. type Txcb_query_extension_request_t = struct {
  4685. Fmajor_opcode Tuint8_t
  4686. Fpad0 Tuint8_t
  4687. Flength Tuint16_t
  4688. Fname_len Tuint16_t
  4689. Fpad1 [2]Tuint8_t
  4690. }
  4691. type Txcb_query_extension_reply_t = struct {
  4692. Fresponse_type Tuint8_t
  4693. Fpad0 Tuint8_t
  4694. Fsequence Tuint16_t
  4695. Flength Tuint32_t
  4696. Fpresent Tuint8_t
  4697. Fmajor_opcode Tuint8_t
  4698. Ffirst_event Tuint8_t
  4699. Ffirst_error Tuint8_t
  4700. }
  4701. type Txcb_list_extensions_cookie_t = struct {
  4702. Fsequence uint32
  4703. }
  4704. type Txcb_list_extensions_request_t = struct {
  4705. Fmajor_opcode Tuint8_t
  4706. Fpad0 Tuint8_t
  4707. Flength Tuint16_t
  4708. }
  4709. type Txcb_list_extensions_reply_t = struct {
  4710. Fresponse_type Tuint8_t
  4711. Fnames_len Tuint8_t
  4712. Fsequence Tuint16_t
  4713. Flength Tuint32_t
  4714. Fpad0 [24]Tuint8_t
  4715. }
  4716. type Txcb_change_keyboard_mapping_request_t = struct {
  4717. Fmajor_opcode Tuint8_t
  4718. Fkeycode_count Tuint8_t
  4719. Flength Tuint16_t
  4720. Ffirst_keycode Txcb_keycode_t
  4721. Fkeysyms_per_keycode Tuint8_t
  4722. Fpad0 [2]Tuint8_t
  4723. }
  4724. type Txcb_get_keyboard_mapping_cookie_t = struct {
  4725. Fsequence uint32
  4726. }
  4727. type Txcb_get_keyboard_mapping_request_t = struct {
  4728. Fmajor_opcode Tuint8_t
  4729. Fpad0 Tuint8_t
  4730. Flength Tuint16_t
  4731. Ffirst_keycode Txcb_keycode_t
  4732. Fcount Tuint8_t
  4733. }
  4734. type Txcb_get_keyboard_mapping_reply_t = struct {
  4735. Fresponse_type Tuint8_t
  4736. Fkeysyms_per_keycode Tuint8_t
  4737. Fsequence Tuint16_t
  4738. Flength Tuint32_t
  4739. Fpad0 [24]Tuint8_t
  4740. }
  4741. type Txcb_kb_t = int32
  4742. type _xcb_kb_t = int32
  4743. const _XCB_KB_KEY_CLICK_PERCENT = 1
  4744. const _XCB_KB_BELL_PERCENT = 2
  4745. const _XCB_KB_BELL_PITCH = 4
  4746. const _XCB_KB_BELL_DURATION = 8
  4747. const _XCB_KB_LED = 16
  4748. const _XCB_KB_LED_MODE = 32
  4749. const _XCB_KB_KEY = 64
  4750. const _XCB_KB_AUTO_REPEAT_MODE = 128
  4751. type Txcb_led_mode_t = int32
  4752. type _xcb_led_mode_t = int32
  4753. const _XCB_LED_MODE_OFF = 0
  4754. const _XCB_LED_MODE_ON = 1
  4755. type Txcb_auto_repeat_mode_t = int32
  4756. type _xcb_auto_repeat_mode_t = int32
  4757. const _XCB_AUTO_REPEAT_MODE_OFF = 0
  4758. const _XCB_AUTO_REPEAT_MODE_ON = 1
  4759. const _XCB_AUTO_REPEAT_MODE_DEFAULT = 2
  4760. type Txcb_change_keyboard_control_value_list_t = struct {
  4761. Fkey_click_percent Tint32_t
  4762. Fbell_percent Tint32_t
  4763. Fbell_pitch Tint32_t
  4764. Fbell_duration Tint32_t
  4765. Fled Tuint32_t
  4766. Fled_mode Tuint32_t
  4767. Fkey Txcb_keycode32_t
  4768. Fauto_repeat_mode Tuint32_t
  4769. }
  4770. type Txcb_change_keyboard_control_request_t = struct {
  4771. Fmajor_opcode Tuint8_t
  4772. Fpad0 Tuint8_t
  4773. Flength Tuint16_t
  4774. Fvalue_mask Tuint32_t
  4775. }
  4776. type Txcb_get_keyboard_control_cookie_t = struct {
  4777. Fsequence uint32
  4778. }
  4779. type Txcb_get_keyboard_control_request_t = struct {
  4780. Fmajor_opcode Tuint8_t
  4781. Fpad0 Tuint8_t
  4782. Flength Tuint16_t
  4783. }
  4784. type Txcb_get_keyboard_control_reply_t = struct {
  4785. Fresponse_type Tuint8_t
  4786. Fglobal_auto_repeat Tuint8_t
  4787. Fsequence Tuint16_t
  4788. Flength Tuint32_t
  4789. Fled_mask Tuint32_t
  4790. Fkey_click_percent Tuint8_t
  4791. Fbell_percent Tuint8_t
  4792. Fbell_pitch Tuint16_t
  4793. Fbell_duration Tuint16_t
  4794. Fpad0 [2]Tuint8_t
  4795. Fauto_repeats [32]Tuint8_t
  4796. }
  4797. type Txcb_bell_request_t = struct {
  4798. Fmajor_opcode Tuint8_t
  4799. Fpercent Tint8_t
  4800. Flength Tuint16_t
  4801. }
  4802. type Txcb_change_pointer_control_request_t = struct {
  4803. Fmajor_opcode Tuint8_t
  4804. Fpad0 Tuint8_t
  4805. Flength Tuint16_t
  4806. Facceleration_numerator Tint16_t
  4807. Facceleration_denominator Tint16_t
  4808. Fthreshold Tint16_t
  4809. Fdo_acceleration Tuint8_t
  4810. Fdo_threshold Tuint8_t
  4811. }
  4812. type Txcb_get_pointer_control_cookie_t = struct {
  4813. Fsequence uint32
  4814. }
  4815. type Txcb_get_pointer_control_request_t = struct {
  4816. Fmajor_opcode Tuint8_t
  4817. Fpad0 Tuint8_t
  4818. Flength Tuint16_t
  4819. }
  4820. type Txcb_get_pointer_control_reply_t = struct {
  4821. Fresponse_type Tuint8_t
  4822. Fpad0 Tuint8_t
  4823. Fsequence Tuint16_t
  4824. Flength Tuint32_t
  4825. Facceleration_numerator Tuint16_t
  4826. Facceleration_denominator Tuint16_t
  4827. Fthreshold Tuint16_t
  4828. Fpad1 [18]Tuint8_t
  4829. }
  4830. type Txcb_blanking_t = int32
  4831. type _xcb_blanking_t = int32
  4832. const _XCB_BLANKING_NOT_PREFERRED = 0
  4833. const _XCB_BLANKING_PREFERRED = 1
  4834. const _XCB_BLANKING_DEFAULT = 2
  4835. type Txcb_exposures_t = int32
  4836. type _xcb_exposures_t = int32
  4837. const _XCB_EXPOSURES_NOT_ALLOWED = 0
  4838. const _XCB_EXPOSURES_ALLOWED = 1
  4839. const _XCB_EXPOSURES_DEFAULT = 2
  4840. type Txcb_set_screen_saver_request_t = struct {
  4841. Fmajor_opcode Tuint8_t
  4842. Fpad0 Tuint8_t
  4843. Flength Tuint16_t
  4844. Ftimeout Tint16_t
  4845. Finterval Tint16_t
  4846. Fprefer_blanking Tuint8_t
  4847. Fallow_exposures Tuint8_t
  4848. }
  4849. type Txcb_get_screen_saver_cookie_t = struct {
  4850. Fsequence uint32
  4851. }
  4852. type Txcb_get_screen_saver_request_t = struct {
  4853. Fmajor_opcode Tuint8_t
  4854. Fpad0 Tuint8_t
  4855. Flength Tuint16_t
  4856. }
  4857. type Txcb_get_screen_saver_reply_t = struct {
  4858. Fresponse_type Tuint8_t
  4859. Fpad0 Tuint8_t
  4860. Fsequence Tuint16_t
  4861. Flength Tuint32_t
  4862. Ftimeout Tuint16_t
  4863. Finterval Tuint16_t
  4864. Fprefer_blanking Tuint8_t
  4865. Fallow_exposures Tuint8_t
  4866. Fpad1 [18]Tuint8_t
  4867. }
  4868. type Txcb_host_mode_t = int32
  4869. type _xcb_host_mode_t = int32
  4870. const _XCB_HOST_MODE_INSERT = 0
  4871. const _XCB_HOST_MODE_DELETE = 1
  4872. type Txcb_family_t = int32
  4873. type _xcb_family_t = int32
  4874. const _XCB_FAMILY_INTERNET = 0
  4875. const _XCB_FAMILY_DECNET = 1
  4876. const _XCB_FAMILY_CHAOS = 2
  4877. const _XCB_FAMILY_SERVER_INTERPRETED = 5
  4878. const _XCB_FAMILY_INTERNET_6 = 6
  4879. type Txcb_change_hosts_request_t = struct {
  4880. Fmajor_opcode Tuint8_t
  4881. Fmode Tuint8_t
  4882. Flength Tuint16_t
  4883. Ffamily Tuint8_t
  4884. Fpad0 Tuint8_t
  4885. Faddress_len Tuint16_t
  4886. }
  4887. type Txcb_host_t = struct {
  4888. Ffamily Tuint8_t
  4889. Fpad0 Tuint8_t
  4890. Faddress_len Tuint16_t
  4891. }
  4892. type Txcb_host_iterator_t = struct {
  4893. Fdata uintptr
  4894. Frem int32
  4895. Findex int32
  4896. }
  4897. type Txcb_list_hosts_cookie_t = struct {
  4898. Fsequence uint32
  4899. }
  4900. type Txcb_list_hosts_request_t = struct {
  4901. Fmajor_opcode Tuint8_t
  4902. Fpad0 Tuint8_t
  4903. Flength Tuint16_t
  4904. }
  4905. type Txcb_list_hosts_reply_t = struct {
  4906. Fresponse_type Tuint8_t
  4907. Fmode Tuint8_t
  4908. Fsequence Tuint16_t
  4909. Flength Tuint32_t
  4910. Fhosts_len Tuint16_t
  4911. Fpad0 [22]Tuint8_t
  4912. }
  4913. type Txcb_access_control_t = int32
  4914. type _xcb_access_control_t = int32
  4915. const _XCB_ACCESS_CONTROL_DISABLE = 0
  4916. const _XCB_ACCESS_CONTROL_ENABLE = 1
  4917. type Txcb_set_access_control_request_t = struct {
  4918. Fmajor_opcode Tuint8_t
  4919. Fmode Tuint8_t
  4920. Flength Tuint16_t
  4921. }
  4922. type Txcb_close_down_t = int32
  4923. type _xcb_close_down_t = int32
  4924. const _XCB_CLOSE_DOWN_DESTROY_ALL = 0
  4925. const _XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1
  4926. const _XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
  4927. type Txcb_set_close_down_mode_request_t = struct {
  4928. Fmajor_opcode Tuint8_t
  4929. Fmode Tuint8_t
  4930. Flength Tuint16_t
  4931. }
  4932. type Txcb_kill_t = int32
  4933. type _xcb_kill_t = int32
  4934. const _XCB_KILL_ALL_TEMPORARY = 0
  4935. type Txcb_kill_client_request_t = struct {
  4936. Fmajor_opcode Tuint8_t
  4937. Fpad0 Tuint8_t
  4938. Flength Tuint16_t
  4939. Fresource Tuint32_t
  4940. }
  4941. type Txcb_rotate_properties_request_t = struct {
  4942. Fmajor_opcode Tuint8_t
  4943. Fpad0 Tuint8_t
  4944. Flength Tuint16_t
  4945. Fwindow Txcb_window_t
  4946. Fatoms_len Tuint16_t
  4947. Fdelta Tint16_t
  4948. }
  4949. type Txcb_screen_saver_t = int32
  4950. type _xcb_screen_saver_t = int32
  4951. const _XCB_SCREEN_SAVER_RESET = 0
  4952. const _XCB_SCREEN_SAVER_ACTIVE = 1
  4953. type Txcb_force_screen_saver_request_t = struct {
  4954. Fmajor_opcode Tuint8_t
  4955. Fmode Tuint8_t
  4956. Flength Tuint16_t
  4957. }
  4958. type Txcb_mapping_status_t = int32
  4959. type _xcb_mapping_status_t = int32
  4960. const _XCB_MAPPING_STATUS_SUCCESS = 0
  4961. const _XCB_MAPPING_STATUS_BUSY = 1
  4962. const _XCB_MAPPING_STATUS_FAILURE = 2
  4963. type Txcb_set_pointer_mapping_cookie_t = struct {
  4964. Fsequence uint32
  4965. }
  4966. type Txcb_set_pointer_mapping_request_t = struct {
  4967. Fmajor_opcode Tuint8_t
  4968. Fmap_len Tuint8_t
  4969. Flength Tuint16_t
  4970. }
  4971. type Txcb_set_pointer_mapping_reply_t = struct {
  4972. Fresponse_type Tuint8_t
  4973. Fstatus Tuint8_t
  4974. Fsequence Tuint16_t
  4975. Flength Tuint32_t
  4976. }
  4977. type Txcb_get_pointer_mapping_cookie_t = struct {
  4978. Fsequence uint32
  4979. }
  4980. type Txcb_get_pointer_mapping_request_t = struct {
  4981. Fmajor_opcode Tuint8_t
  4982. Fpad0 Tuint8_t
  4983. Flength Tuint16_t
  4984. }
  4985. type Txcb_get_pointer_mapping_reply_t = struct {
  4986. Fresponse_type Tuint8_t
  4987. Fmap_len Tuint8_t
  4988. Fsequence Tuint16_t
  4989. Flength Tuint32_t
  4990. Fpad0 [24]Tuint8_t
  4991. }
  4992. type Txcb_map_index_t = int32
  4993. type _xcb_map_index_t = int32
  4994. const _XCB_MAP_INDEX_SHIFT = 0
  4995. const _XCB_MAP_INDEX_LOCK = 1
  4996. const _XCB_MAP_INDEX_CONTROL = 2
  4997. const _XCB_MAP_INDEX_1 = 3
  4998. const _XCB_MAP_INDEX_2 = 4
  4999. const _XCB_MAP_INDEX_3 = 5
  5000. const _XCB_MAP_INDEX_4 = 6
  5001. const _XCB_MAP_INDEX_5 = 7
  5002. type Txcb_set_modifier_mapping_cookie_t = struct {
  5003. Fsequence uint32
  5004. }
  5005. type Txcb_set_modifier_mapping_request_t = struct {
  5006. Fmajor_opcode Tuint8_t
  5007. Fkeycodes_per_modifier Tuint8_t
  5008. Flength Tuint16_t
  5009. }
  5010. type Txcb_set_modifier_mapping_reply_t = struct {
  5011. Fresponse_type Tuint8_t
  5012. Fstatus Tuint8_t
  5013. Fsequence Tuint16_t
  5014. Flength Tuint32_t
  5015. }
  5016. type Txcb_get_modifier_mapping_cookie_t = struct {
  5017. Fsequence uint32
  5018. }
  5019. type Txcb_get_modifier_mapping_request_t = struct {
  5020. Fmajor_opcode Tuint8_t
  5021. Fpad0 Tuint8_t
  5022. Flength Tuint16_t
  5023. }
  5024. type Txcb_get_modifier_mapping_reply_t = struct {
  5025. Fresponse_type Tuint8_t
  5026. Fkeycodes_per_modifier Tuint8_t
  5027. Fsequence Tuint16_t
  5028. Flength Tuint32_t
  5029. Fpad0 [24]Tuint8_t
  5030. }
  5031. type Txcb_no_operation_request_t = struct {
  5032. Fmajor_opcode Tuint8_t
  5033. Fpad0 Tuint8_t
  5034. Flength Tuint16_t
  5035. }
  5036. type Txcb_auth_info_t = struct {
  5037. Fnamelen int32
  5038. Fname uintptr
  5039. Fdatalen int32
  5040. Fdata uintptr
  5041. }
  5042. type Txcb_big_requests_enable_cookie_t = struct {
  5043. Fsequence uint32
  5044. }
  5045. type Txcb_big_requests_enable_request_t = struct {
  5046. Fmajor_opcode Tuint8_t
  5047. Fminor_opcode Tuint8_t
  5048. Flength Tuint16_t
  5049. }
  5050. type Txcb_big_requests_enable_reply_t = struct {
  5051. Fresponse_type Tuint8_t
  5052. Fpad0 Tuint8_t
  5053. Fsequence Tuint16_t
  5054. Flength Tuint32_t
  5055. Fmaximum_request_length Tuint32_t
  5056. }
  5057. type _workarounds = int32
  5058. const _WORKAROUND_NONE = 0
  5059. const _WORKAROUND_GLX_GET_FB_CONFIGS_BUG = 1
  5060. const _WORKAROUND_EXTERNAL_SOCKET_OWNER = 2
  5061. type _lazy_reply_tag = int32
  5062. const _LAZY_NONE = 0
  5063. const _LAZY_COOKIE = 1
  5064. const _LAZY_FORCED = 2
  5065. type Txcb_list_free_func_t = uintptr
  5066. type T_xcb_fd = struct {
  5067. Ffd [16]int32
  5068. Fnfd int32
  5069. Fifd int32
  5070. }
  5071. type T_xcb_out = struct {
  5072. Fcond Tpthread_cond_t
  5073. Fwriting int32
  5074. Fsocket_cond Tpthread_cond_t
  5075. Freturn_socket uintptr
  5076. Fsocket_closure uintptr
  5077. Fsocket_moving int32
  5078. Fqueue [16384]uint8
  5079. Fqueue_len int32
  5080. Frequest Tuint64_t
  5081. Frequest_written Tuint64_t
  5082. Ftotal_written Tuint64_t
  5083. Freqlenlock Tpthread_mutex_t
  5084. Fmaximum_request_length_tag _lazy_reply_tag
  5085. Fmaximum_request_length struct {
  5086. Fvalue [0]Tuint32_t
  5087. Fcookie Txcb_big_requests_enable_cookie_t
  5088. }
  5089. Fout_fd T_xcb_fd
  5090. }
  5091. type T_xcb_in = struct {
  5092. Fevent_cond Tpthread_cond_t
  5093. Freading int32
  5094. Fqueue [4096]uint8
  5095. Fqueue_len int32
  5096. Frequest_expected Tuint64_t
  5097. Frequest_read Tuint64_t
  5098. Frequest_completed Tuint64_t
  5099. Ftotal_read Tuint64_t
  5100. Fcurrent_reply uintptr
  5101. Fcurrent_reply_tail uintptr
  5102. Freplies uintptr
  5103. Fevents uintptr
  5104. Fevents_tail uintptr
  5105. Freaders uintptr
  5106. Fspecial_waiters uintptr
  5107. Fpending_replies uintptr
  5108. Fpending_replies_tail uintptr
  5109. Fin_fd T_xcb_fd
  5110. Fspecial_events uintptr
  5111. }
  5112. type T_xcb_xid = struct {
  5113. Flock Tpthread_mutex_t
  5114. Flast Tuint32_t
  5115. Fbase Tuint32_t
  5116. Fmax Tuint32_t
  5117. Finc Tuint32_t
  5118. }
  5119. type T_xcb_ext = struct {
  5120. Flock Tpthread_mutex_t
  5121. Fextensions uintptr
  5122. Fextensions_size int32
  5123. }
  5124. type Txcb_connection_t1 = struct {
  5125. Fhas_error int32
  5126. Fsetup uintptr
  5127. Ffd int32
  5128. Fiolock Tpthread_mutex_t
  5129. Fin T_xcb_in
  5130. Fout T_xcb_out
  5131. Fext T_xcb_ext
  5132. Fxid T_xcb_xid
  5133. }
  5134. type Tnfds_t = uint64
  5135. type Tpollfd = struct {
  5136. Ffd int32
  5137. Fevents int16
  5138. Frevents int16
  5139. }
  5140. type Tsocklen_t = uint32
  5141. type Tsa_family_t = uint16
  5142. type Tmsghdr = struct {
  5143. Fmsg_name uintptr
  5144. Fmsg_namelen Tsocklen_t
  5145. Fmsg_iov uintptr
  5146. F__pad1 int32
  5147. Fmsg_iovlen int32
  5148. Fmsg_control uintptr
  5149. F__pad2 int32
  5150. Fmsg_controllen Tsocklen_t
  5151. Fmsg_flags int32
  5152. }
  5153. type Tcmsghdr = struct {
  5154. F__pad1 int32
  5155. Fcmsg_len Tsocklen_t
  5156. Fcmsg_level int32
  5157. Fcmsg_type int32
  5158. }
  5159. type Tucred = struct {
  5160. Fpid Tpid_t
  5161. Fuid Tuid_t
  5162. Fgid Tgid_t
  5163. }
  5164. type Tmmsghdr = struct {
  5165. Fmsg_hdr Tmsghdr
  5166. Fmsg_len uint32
  5167. }
  5168. type Tlinger = struct {
  5169. Fl_onoff int32
  5170. Fl_linger int32
  5171. }
  5172. type Tsockaddr = struct {
  5173. Fsa_family Tsa_family_t
  5174. Fsa_data [14]uint8
  5175. }
  5176. type Tsockaddr_storage = struct {
  5177. Fss_family Tsa_family_t
  5178. F__ss_padding [118]uint8
  5179. F__ss_align uint64
  5180. }
  5181. type Timaxdiv_t = struct {
  5182. Fquot Tintmax_t
  5183. Frem Tintmax_t
  5184. }
  5185. type Tin_port_t = uint16
  5186. type Tin_addr_t = uint32
  5187. type Tin_addr = struct {
  5188. Fs_addr Tin_addr_t
  5189. }
  5190. type Tsockaddr_in = struct {
  5191. Fsin_family Tsa_family_t
  5192. Fsin_port Tin_port_t
  5193. Fsin_addr Tin_addr
  5194. Fsin_zero [8]Tuint8_t
  5195. }
  5196. type Tin6_addr = struct {
  5197. F__in6_union struct {
  5198. F__s6_addr16 [0][8]Tuint16_t
  5199. F__s6_addr32 [0][4]Tuint32_t
  5200. F__s6_addr [16]Tuint8_t
  5201. }
  5202. }
  5203. type Tsockaddr_in6 = struct {
  5204. Fsin6_family Tsa_family_t
  5205. Fsin6_port Tin_port_t
  5206. Fsin6_flowinfo Tuint32_t
  5207. Fsin6_addr Tin6_addr
  5208. Fsin6_scope_id Tuint32_t
  5209. }
  5210. type Tipv6_mreq = struct {
  5211. Fipv6mr_multiaddr Tin6_addr
  5212. Fipv6mr_interface uint32
  5213. }
  5214. type Tip_opts = struct {
  5215. Fip_dst Tin_addr
  5216. Fip_opts [40]uint8
  5217. }
  5218. type Tip_mreq = struct {
  5219. Fimr_multiaddr Tin_addr
  5220. Fimr_interface Tin_addr
  5221. }
  5222. type Tip_mreqn = struct {
  5223. Fimr_multiaddr Tin_addr
  5224. Fimr_address Tin_addr
  5225. Fimr_ifindex int32
  5226. }
  5227. type Tip_mreq_source = struct {
  5228. Fimr_multiaddr Tin_addr
  5229. Fimr_interface Tin_addr
  5230. Fimr_sourceaddr Tin_addr
  5231. }
  5232. type Tip_msfilter = struct {
  5233. Fimsf_multiaddr Tin_addr
  5234. Fimsf_interface Tin_addr
  5235. Fimsf_fmode Tuint32_t
  5236. Fimsf_numsrc Tuint32_t
  5237. Fimsf_slist [1]Tin_addr
  5238. }
  5239. type Tgroup_req = struct {
  5240. Fgr_interface Tuint32_t
  5241. Fgr_group Tsockaddr_storage
  5242. }
  5243. type Tgroup_source_req = struct {
  5244. Fgsr_interface Tuint32_t
  5245. Fgsr_group Tsockaddr_storage
  5246. Fgsr_source Tsockaddr_storage
  5247. }
  5248. type Tgroup_filter = struct {
  5249. Fgf_interface Tuint32_t
  5250. Fgf_group Tsockaddr_storage
  5251. Fgf_fmode Tuint32_t
  5252. Fgf_numsrc Tuint32_t
  5253. Fgf_slist [1]Tsockaddr_storage
  5254. }
  5255. type Tin_pktinfo = struct {
  5256. Fipi_ifindex int32
  5257. Fipi_spec_dst Tin_addr
  5258. Fipi_addr Tin_addr
  5259. }
  5260. type Tin6_pktinfo = struct {
  5261. Fipi6_addr Tin6_addr
  5262. Fipi6_ifindex uint32
  5263. }
  5264. type Tip6_mtuinfo = struct {
  5265. Fip6m_addr Tsockaddr_in6
  5266. Fip6m_mtu Tuint32_t
  5267. }
  5268. /* SHUT_RDWR is fairly recent and is not available on all platforms */
  5269. type Txcb_setup_generic_t = struct {
  5270. Fstatus Tuint8_t
  5271. Fpad0 [5]Tuint8_t
  5272. Flength Tuint16_t
  5273. }
  5274. var _xcb_error_setup = Txcb_setup_t{}
  5275. // C documentation
  5276. //
  5277. // /* Keep this list in sync with is_static_error_conn()! */
  5278. var _xcb_con_error = int32(m_XCB_CONN_ERROR)
  5279. var _xcb_con_closed_mem_er = int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT)
  5280. var _xcb_con_closed_parse_er = int32(m_XCB_CONN_CLOSED_PARSE_ERR)
  5281. var _xcb_con_closed_screen_er = int32(m_XCB_CONN_CLOSED_INVALID_SCREEN)
  5282. func _is_static_error_conn(tls *libc.TLS, c uintptr) (r int32) {
  5283. 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)))
  5284. }
  5285. func _set_fd_flags(tls *libc.TLS, fd int32) (r int32) {
  5286. bp := tls.Alloc(16)
  5287. defer tls.Free(16)
  5288. var flags int32
  5289. _ = flags
  5290. /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
  5291. flags = libc.Xfcntl(tls, fd, int32(m_F_GETFL), libc.VaList(bp+8, 0))
  5292. if flags == -int32(1) {
  5293. return 0
  5294. }
  5295. flags |= int32(m_O_NONBLOCK)
  5296. if libc.Xfcntl(tls, fd, int32(m_F_SETFL), libc.VaList(bp+8, flags)) == -int32(1) {
  5297. return 0
  5298. }
  5299. if libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC))) == -int32(1) {
  5300. return 0
  5301. }
  5302. return int32(1)
  5303. }
  5304. func _write_setup(tls *libc.TLS, c uintptr, auth_info uintptr) (r int32) {
  5305. bp := tls.Alloc(112)
  5306. defer tls.Free(112)
  5307. var count, ret, v1, v2, v4, v5, v7, v8 int32
  5308. var v3, v6 Tuint16_t
  5309. var _ /* out at bp+0 */ Txcb_setup_request_t
  5310. var _ /* parts at bp+16 */ [6]Tiovec
  5311. _, _, _, _, _, _, _, _, _, _ = count, ret, v1, v2, v3, v4, v5, v6, v7, v8
  5312. count = 0
  5313. libc.Xmemset(tls, bp, 0, uint64(12))
  5314. /* B = 0x42 = MSB first, l = 0x6c = LSB first */
  5315. if libc.Xhtonl(tls, _endian) == _endian {
  5316. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x42)
  5317. } else {
  5318. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x6c)
  5319. }
  5320. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_major_version = uint16(m_X_PROTOCOL)
  5321. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_minor_version = uint16(m_X_PROTOCOL_REVISION)
  5322. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = uint16(0)
  5323. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = uint16(0)
  5324. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(12)
  5325. v1 = count
  5326. count++
  5327. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v1].Fiov_base = bp
  5328. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = -libc.Uint64FromInt64(12) & libc.Uint64FromInt32(3)
  5329. v2 = count
  5330. count++
  5331. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v2].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5332. if auth_info != 0 {
  5333. v3 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fnamelen)
  5334. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = v3
  5335. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v3)
  5336. v4 = count
  5337. count++
  5338. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v4].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fname
  5339. (*(*[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))
  5340. v5 = count
  5341. count++
  5342. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v5].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5343. v6 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdatalen)
  5344. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = v6
  5345. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v6)
  5346. v7 = count
  5347. count++
  5348. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v7].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdata
  5349. (*(*[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))
  5350. v8 = count
  5351. count++
  5352. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v8].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5353. }
  5354. libc.Xpthread_mutex_lock(tls, c+24)
  5355. ret = X_xcb_out_send(tls, c, bp+16, count)
  5356. libc.Xpthread_mutex_unlock(tls, c+24)
  5357. return ret
  5358. }
  5359. var _pad [3]uint8
  5360. var _endian = uint32(0x01020304)
  5361. func _read_setup(tls *libc.TLS, c uintptr) (r int32) {
  5362. var setup, setup1, tmp uintptr
  5363. _, _, _ = setup, setup1, tmp
  5364. /* Read the server response */
  5365. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = libc.Xmalloc(tls, uint64(8))
  5366. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup != 0) {
  5367. return 0
  5368. }
  5369. if libc.Uint64FromInt32(X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, int32(8))) != uint64(8) {
  5370. return 0
  5371. }
  5372. 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))
  5373. if !(tmp != 0) {
  5374. return 0
  5375. }
  5376. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = tmp
  5377. 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 {
  5378. return 0
  5379. }
  5380. /* 0 = failed, 2 = authenticate, 1 = success */
  5381. switch libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fstatus) {
  5382. case 0: /* failed */
  5383. setup = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5384. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_failed_reason(tls, setup), libc.Uint64FromInt32(Xxcb_setup_failed_reason_length(tls, setup)))
  5385. return 0
  5386. case int32(2): /* authenticate */
  5387. setup1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5388. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_authenticate_reason(tls, setup1), libc.Uint64FromInt32(Xxcb_setup_authenticate_reason_length(tls, setup1)))
  5389. return 0
  5390. }
  5391. return int32(1)
  5392. }
  5393. // C documentation
  5394. //
  5395. // /* precondition: there must be something for us to write. */
  5396. func _write_vec(tls *libc.TLS, c uintptr, vector uintptr, count uintptr) (r int32) {
  5397. bp := tls.Alloc(144)
  5398. defer tls.Free(144)
  5399. var cur, i, n int32
  5400. var hdr, v1 uintptr
  5401. var _ /* cmsgbuf at bp+0 */ struct {
  5402. Fbuf [0][80]uint8
  5403. Fcmsghdr Tcmsghdr
  5404. F__ccgo_pad2 [64]byte
  5405. }
  5406. var _ /* msg at bp+80 */ Tmsghdr
  5407. _, _, _, _, _ = cur, hdr, i, n, v1
  5408. n = *(*int32)(unsafe.Pointer(count))
  5409. if n > int32(m_IOV_MAX) {
  5410. n = int32(m_IOV_MAX)
  5411. }
  5412. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd != 0 {
  5413. *(*Tmsghdr)(unsafe.Pointer(bp + 80)) = Tmsghdr{
  5414. Fmsg_iov: *(*uintptr)(unsafe.Pointer(vector)),
  5415. Fmsg_iovlen: n,
  5416. Fmsg_control: bp,
  5417. 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)),
  5418. }
  5419. if uint64((*Tmsghdr)(unsafe.Pointer(bp+80)).Fmsg_controllen) >= uint64(16) {
  5420. v1 = (*Tmsghdr)(unsafe.Pointer(bp + 80)).Fmsg_control
  5421. } else {
  5422. v1 = libc.UintptrFromInt32(0)
  5423. }
  5424. hdr = v1
  5425. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len = (*(*Tmsghdr)(unsafe.Pointer(bp + 80))).Fmsg_controllen
  5426. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level = int32(m_SOL_SOCKET)
  5427. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type = int32(m_SCM_RIGHTS)
  5428. libc.Xmemcpy(tls, hdr+libc.UintptrFromInt32(1)*16, c+4400+16584, libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*uint64(4))
  5429. n = int32(libc.Xsendmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+80, 0))
  5430. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5431. return int32(1)
  5432. }
  5433. i = 0
  5434. for {
  5435. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd) {
  5436. break
  5437. }
  5438. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 4400 + 16584 + uintptr(i)*4)))
  5439. goto _2
  5440. _2:
  5441. ;
  5442. i++
  5443. }
  5444. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd = 0
  5445. } else {
  5446. n = int32(libc.Xwritev(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, *(*uintptr)(unsafe.Pointer(vector)), n))
  5447. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5448. return int32(1)
  5449. }
  5450. }
  5451. if n <= 0 {
  5452. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5453. return 0
  5454. }
  5455. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written += libc.Uint64FromInt32(n)
  5456. for {
  5457. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5458. break
  5459. }
  5460. cur = libc.Int32FromUint64((*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len)
  5461. if cur > n {
  5462. cur = n
  5463. }
  5464. *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)) + 8)) -= libc.Uint64FromInt32(cur)
  5465. (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base = (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base + uintptr(cur)
  5466. n -= cur
  5467. if (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len != 0 {
  5468. break
  5469. }
  5470. goto _3
  5471. _3:
  5472. ;
  5473. *(*int32)(unsafe.Pointer(count))--
  5474. *(*uintptr)(unsafe.Pointer(vector)) += 16
  5475. }
  5476. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5477. *(*uintptr)(unsafe.Pointer(vector)) = uintptr(0)
  5478. }
  5479. return int32(1)
  5480. }
  5481. /* Public interface */
  5482. func Xxcb_get_setup(tls *libc.TLS, c uintptr) (r uintptr) {
  5483. if _is_static_error_conn(tls, c) != 0 {
  5484. return uintptr(unsafe.Pointer(&_xcb_error_setup))
  5485. }
  5486. /* doesn't need locking because it's never written to. */
  5487. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5488. }
  5489. func Xxcb_get_file_descriptor(tls *libc.TLS, c uintptr) (r int32) {
  5490. if _is_static_error_conn(tls, c) != 0 {
  5491. return -int32(1)
  5492. }
  5493. /* doesn't need locking because it's never written to. */
  5494. return (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5495. }
  5496. func Xxcb_connection_has_error(tls *libc.TLS, c uintptr) (r int32) {
  5497. /* doesn't need locking because it's read and written atomically. */
  5498. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error
  5499. }
  5500. func Xxcb_connect_to_fd(tls *libc.TLS, fd int32, auth_info uintptr) (r uintptr) {
  5501. var c uintptr
  5502. _ = c
  5503. c = libc.Xcalloc(tls, uint64(1), uint64(21168))
  5504. if !(c != 0) {
  5505. libc.Xclose(tls, fd)
  5506. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  5507. }
  5508. (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd = fd
  5509. 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) {
  5510. Xxcb_disconnect(tls, c)
  5511. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  5512. }
  5513. return c
  5514. }
  5515. func Xxcb_disconnect(tls *libc.TLS, c uintptr) {
  5516. if c == libc.UintptrFromInt32(0) || _is_static_error_conn(tls, c) != 0 {
  5517. return
  5518. }
  5519. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)
  5520. /* disallow further sends and receives */
  5521. libc.Xshutdown(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, int32(m_SHUT_RDWR))
  5522. libc.Xclose(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd)
  5523. libc.Xpthread_mutex_destroy(tls, c+24)
  5524. X_xcb_in_destroy(tls, c+64)
  5525. X_xcb_out_destroy(tls, c+4400)
  5526. X_xcb_ext_destroy(tls, c)
  5527. X_xcb_xid_destroy(tls, c)
  5528. libc.Xfree(tls, c)
  5529. }
  5530. /* Private interface */
  5531. func X_xcb_conn_shutdown(tls *libc.TLS, c uintptr, err int32) {
  5532. (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error = err
  5533. }
  5534. // C documentation
  5535. //
  5536. // /* Return connection error state.
  5537. // * To make thread-safe, I need a seperate static
  5538. // * variable for every possible error.
  5539. // * has_error is the first field in xcb_connection_t, so just
  5540. // * return a casted int here; checking has_error (and only
  5541. // * has_error) will be safe.
  5542. // */
  5543. func X_xcb_conn_ret_error(tls *libc.TLS, err int32) (r uintptr) {
  5544. switch err {
  5545. case int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT):
  5546. return uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er))
  5547. case int32(m_XCB_CONN_CLOSED_PARSE_ERR):
  5548. return uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er))
  5549. case int32(m_XCB_CONN_CLOSED_INVALID_SCREEN):
  5550. return uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er))
  5551. case int32(m_XCB_CONN_ERROR):
  5552. fallthrough
  5553. default:
  5554. return uintptr(unsafe.Pointer(&_xcb_con_error))
  5555. }
  5556. return r
  5557. }
  5558. func X_xcb_conn_wait(tls *libc.TLS, c uintptr, cond uintptr, vector uintptr, count uintptr) (r int32) {
  5559. bp := tls.Alloc(16)
  5560. defer tls.Free(16)
  5561. var may_read, ret, v1 int32
  5562. var p2 uintptr
  5563. var _ /* fd at bp+0 */ Tpollfd
  5564. _, _, _, _ = may_read, ret, v1, p2
  5565. /* If the thing I should be doing is already being done, wait for it. */
  5566. if count != 0 {
  5567. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting
  5568. } else {
  5569. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading
  5570. }
  5571. if v1 != 0 {
  5572. libc.Xpthread_cond_wait(tls, cond, c+24)
  5573. return int32(1)
  5574. }
  5575. libc.Xmemset(tls, bp, 0, uint64(8))
  5576. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5577. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  5578. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading++
  5579. if count != 0 {
  5580. p2 = bp + 4
  5581. *(*int16)(unsafe.Pointer(p2)) = int16(int32(*(*int16)(unsafe.Pointer(p2))) | libc.Int32FromInt32(m_POLLOUT))
  5582. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting++
  5583. }
  5584. libc.Xpthread_mutex_unlock(tls, c+24)
  5585. for cond1 := true; cond1; cond1 = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  5586. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  5587. /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
  5588. * it as if it failed. */
  5589. if ret >= 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents) & ^int32((*(*Tpollfd)(unsafe.Pointer(bp))).Fevents) != 0 {
  5590. ret = -int32(1)
  5591. break
  5592. }
  5593. }
  5594. if ret < 0 {
  5595. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5596. ret = 0
  5597. }
  5598. libc.Xpthread_mutex_lock(tls, c+24)
  5599. if ret != 0 {
  5600. /* The code allows two threads to call select()/poll() at the same time.
  5601. * First thread just wants to read, a second thread wants to write, too.
  5602. * We have to make sure that we don't steal the reading thread's reply
  5603. * and let it get stuck in select()/poll().
  5604. * So a thread may read if either:
  5605. * - There is no other thread that wants to read (the above situation
  5606. * did not occur).
  5607. * - It is the reading thread (above situation occurred).
  5608. */
  5609. may_read = libc.BoolInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == int32(1) || !(count != 0))
  5610. if may_read != 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLIN) != 0 {
  5611. ret = libc.BoolInt32(ret != 0 && X_xcb_in_read(tls, c) != 0)
  5612. }
  5613. if int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLOUT) != 0 {
  5614. ret = libc.BoolInt32(ret != 0 && _write_vec(tls, c, vector, count) != 0)
  5615. }
  5616. }
  5617. if count != 0 {
  5618. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting--
  5619. }
  5620. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading--
  5621. return ret
  5622. }
  5623. func Xxcb_total_read(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5624. var n Tuint64_t
  5625. _ = n
  5626. if Xxcb_connection_has_error(tls, c) != 0 {
  5627. return uint64(0)
  5628. }
  5629. libc.Xpthread_mutex_lock(tls, c+24)
  5630. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read
  5631. libc.Xpthread_mutex_unlock(tls, c+24)
  5632. return n
  5633. }
  5634. func Xxcb_total_written(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5635. var n Tuint64_t
  5636. _ = n
  5637. if Xxcb_connection_has_error(tls, c) != 0 {
  5638. return uint64(0)
  5639. }
  5640. libc.Xpthread_mutex_lock(tls, c+24)
  5641. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written
  5642. libc.Xpthread_mutex_unlock(tls, c+24)
  5643. return n
  5644. }
  5645. const m_SEEK_CUR = 1
  5646. const m_SEEK_END = 2
  5647. const m_SEEK_SET = 0
  5648. type Txcb_extension_t = struct {
  5649. Fname uintptr
  5650. Fglobal_id int32
  5651. }
  5652. type Txcb_extension_t1 = struct {
  5653. Fname uintptr
  5654. Fglobal_id int32
  5655. }
  5656. type Txcb_protocol_request_t = struct {
  5657. Fcount Tsize_t
  5658. Fext uintptr
  5659. Fopcode Tuint8_t
  5660. Fisvoid Tuint8_t
  5661. }
  5662. type _xcb_send_request_flags_t = int32
  5663. const _XCB_REQUEST_CHECKED = 1
  5664. const _XCB_REQUEST_RAW = 2
  5665. const _XCB_REQUEST_DISCARD_REPLY = 4
  5666. const _XCB_REQUEST_REPLY_FDS = 8
  5667. /*
  5668. * This file generated automatically from bigreq.xml by c_client.py.
  5669. * Edit at your peril.
  5670. */
  5671. /**
  5672. * @defgroup XCB_BigRequests_API XCB BigRequests API
  5673. * @brief BigRequests XCB Protocol Implementation.
  5674. * @{
  5675. **/
  5676. /**
  5677. * @}
  5678. */
  5679. func _send_request(tls *libc.TLS, c uintptr, isvoid int32, workaround _workarounds, flags int32, vector uintptr, count int32) {
  5680. var p1 uintptr
  5681. _ = p1
  5682. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5683. return
  5684. }
  5685. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest++
  5686. if !(isvoid != 0) {
  5687. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  5688. }
  5689. if workaround != int32(_WORKAROUND_NONE) || flags != 0 {
  5690. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest, workaround, flags)
  5691. }
  5692. for count != 0 && libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)+(*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len <= uint64(16384) {
  5693. 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)
  5694. p1 = c + 4400 + 16508
  5695. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5696. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5697. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(0)
  5698. vector += 16
  5699. count--
  5700. }
  5701. if !(count != 0) {
  5702. return
  5703. }
  5704. vector -= 16
  5705. count++
  5706. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = c + 4400 + 124
  5707. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  5708. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  5709. X_xcb_out_send(tls, c, vector, count)
  5710. }
  5711. func _send_sync(tls *libc.TLS, c uintptr) {
  5712. bp := tls.Alloc(32)
  5713. defer tls.Free(32)
  5714. var _ /* vector at bp+0 */ [2]Tiovec
  5715. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base = uintptr(unsafe.Pointer(&_sync_req))
  5716. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len = uint64(4)
  5717. _send_request(tls, c, 0, int32(_WORKAROUND_NONE), int32(_XCB_REQUEST_DISCARD_REPLY), bp+uintptr(1)*16, int32(1))
  5718. }
  5719. var _sync_req = *(*struct {
  5720. Fpacket [0]Tuint32_t
  5721. Ffields struct {
  5722. Fmajor Tuint8_t
  5723. Fpad Tuint8_t
  5724. Flen1 Tuint16_t
  5725. }
  5726. })(unsafe.Pointer(&struct {
  5727. Fmajor uint8
  5728. Fpad uint8
  5729. Flen1 uint16
  5730. }{
  5731. Fmajor: uint8(43),
  5732. Flen1: uint16(1),
  5733. }))
  5734. func _get_socket_back(tls *libc.TLS, c uintptr) {
  5735. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving != 0 {
  5736. libc.Xpthread_cond_wait(tls, c+4400+56, c+24)
  5737. }
  5738. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0) {
  5739. return
  5740. }
  5741. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = int32(1)
  5742. libc.Xpthread_mutex_unlock(tls, c+24)
  5743. (*(*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)
  5744. libc.Xpthread_mutex_lock(tls, c+24)
  5745. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = 0
  5746. libc.Xpthread_cond_broadcast(tls, c+4400+56)
  5747. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = uintptr(0)
  5748. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = uintptr(0)
  5749. X_xcb_in_replies_done(tls, c)
  5750. }
  5751. func _prepare_socket_request(tls *libc.TLS, c uintptr) {
  5752. /* We're about to append data to out.queue, so we need to
  5753. * atomically test for an external socket owner *and* some other
  5754. * thread currently writing.
  5755. *
  5756. * If we have an external socket owner, we have to get the socket back
  5757. * before we can use it again.
  5758. *
  5759. * If some other thread is writing to the socket, we assume it's
  5760. * writing from out.queue, and so we can't stick data there.
  5761. *
  5762. * We satisfy this condition by first calling get_socket_back
  5763. * (which may drop the lock, but will return when XCB owns the
  5764. * socket again) and then checking for another writing thread and
  5765. * escaping the loop if we're ready to go.
  5766. */
  5767. for {
  5768. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5769. return
  5770. }
  5771. _get_socket_back(tls, c)
  5772. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0) {
  5773. break
  5774. }
  5775. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  5776. goto _1
  5777. _1:
  5778. }
  5779. }
  5780. /* Public interface */
  5781. func Xxcb_prefetch_maximum_request_length(tls *libc.TLS, c uintptr) {
  5782. var ext uintptr
  5783. _ = ext
  5784. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5785. return
  5786. }
  5787. libc.Xpthread_mutex_lock(tls, c+4400+16536)
  5788. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_NONE) {
  5789. ext = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_big_requests_id)))
  5790. if ext != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext)).Fpresent != 0 {
  5791. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_COOKIE)
  5792. *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16580)) = Xxcb_big_requests_enable(tls, c)
  5793. } else {
  5794. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5795. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5796. }
  5797. }
  5798. libc.Xpthread_mutex_unlock(tls, c+4400+16536)
  5799. }
  5800. func Xxcb_get_maximum_request_length(tls *libc.TLS, c uintptr) (r1 Tuint32_t) {
  5801. var r uintptr
  5802. _ = r
  5803. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5804. return uint32(0)
  5805. }
  5806. Xxcb_prefetch_maximum_request_length(tls, c)
  5807. libc.Xpthread_mutex_lock(tls, c+4400+16536)
  5808. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_COOKIE) {
  5809. r = Xxcb_big_requests_enable_reply(tls, c, *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16580)), uintptr(0))
  5810. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5811. if r != 0 {
  5812. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = (*Txcb_big_requests_enable_reply_t)(unsafe.Pointer(r)).Fmaximum_request_length
  5813. libc.Xfree(tls, r)
  5814. } else {
  5815. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5816. }
  5817. }
  5818. libc.Xpthread_mutex_unlock(tls, c+4400+16536)
  5819. return *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580))
  5820. }
  5821. func _close_fds(tls *libc.TLS, fds uintptr, num_fds uint32) {
  5822. var index uint32
  5823. _ = index
  5824. index = uint32(0)
  5825. for {
  5826. if !(index < num_fds) {
  5827. break
  5828. }
  5829. libc.Xclose(tls, *(*int32)(unsafe.Pointer(fds + uintptr(index)*4)))
  5830. goto _1
  5831. _1:
  5832. ;
  5833. index++
  5834. }
  5835. }
  5836. func _send_fds(tls *libc.TLS, c uintptr, fds uintptr, num_fds uint32) {
  5837. var v1 int32
  5838. var v2 uintptr
  5839. _, _ = v1, v2
  5840. /* Calling _xcb_out_flush_to() can drop the iolock and wait on a condition
  5841. * variable if another thread is currently writing (c->out.writing > 0).
  5842. * This call waits for writers to be done and thus _xcb_out_flush_to() will
  5843. * do the work itself (in which case we are a writer and
  5844. * prepare_socket_request() will wait for us to be done if another threads
  5845. * tries to send fds, too). Thanks to this, we can atomically write out FDs.
  5846. */
  5847. _prepare_socket_request(tls, c)
  5848. for num_fds > uint32(0) {
  5849. 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) {
  5850. /* XXX: if c->out.writing > 0, this releases the iolock and
  5851. * potentially allows other threads to interfere with their own fds.
  5852. */
  5853. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  5854. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) {
  5855. /* We need some request to send FDs with */
  5856. X_xcb_out_send_sync(tls, c)
  5857. }
  5858. }
  5859. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5860. break
  5861. }
  5862. v2 = c + 4400 + 16584 + 64
  5863. v1 = *(*int32)(unsafe.Pointer(v2))
  5864. *(*int32)(unsafe.Pointer(v2))++
  5865. *(*int32)(unsafe.Pointer(c + 4400 + 16584 + uintptr(v1)*4)) = *(*int32)(unsafe.Pointer(fds))
  5866. fds += 4
  5867. num_fds--
  5868. }
  5869. _close_fds(tls, fds, num_fds)
  5870. }
  5871. 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) {
  5872. bp := tls.Alloc(16)
  5873. defer tls.Free(16)
  5874. var extension uintptr
  5875. var i uint32
  5876. var longlen, v2 Tsize_t
  5877. var request Tuint64_t
  5878. var shortlen Tuint16_t
  5879. var veclen int32
  5880. var workaround _workarounds
  5881. var v3 uint64
  5882. var _ /* prefix at bp+0 */ [2]Tuint32_t
  5883. _, _, _, _, _, _, _, _, _ = extension, i, longlen, request, shortlen, veclen, workaround, v2, v3
  5884. veclen = libc.Int32FromUint64((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount)
  5885. workaround = int32(_WORKAROUND_NONE)
  5886. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5887. _close_fds(tls, fds, num_fds)
  5888. return uint64(0)
  5889. }
  5890. if !(flags&int32(_XCB_REQUEST_RAW) != 0) {
  5891. shortlen = uint16(0)
  5892. longlen = uint64(0)
  5893. /* set the major opcode, and the minor opcode for extensions */
  5894. if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 {
  5895. extension = Xxcb_get_extension_data(tls, c, (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)
  5896. if !(extension != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fpresent != 0) {
  5897. _close_fds(tls, fds, num_fds)
  5898. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED))
  5899. return uint64(0)
  5900. }
  5901. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fmajor_opcode
  5902. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5903. } else {
  5904. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5905. }
  5906. /* put together the length field, possibly using BIGREQUESTS */
  5907. i = uint32(0)
  5908. for {
  5909. if !(uint64(i) < (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount) {
  5910. break
  5911. }
  5912. longlen += (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_len
  5913. if !((*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base != 0) {
  5914. (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base = uintptr(unsafe.Pointer(&_pad1))
  5915. }
  5916. goto _1
  5917. _1:
  5918. ;
  5919. i++
  5920. }
  5921. longlen >>= uint64(2)
  5922. if longlen <= uint64((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length) {
  5923. /* we don't need BIGREQUESTS. */
  5924. shortlen = uint16(longlen)
  5925. longlen = uint64(0)
  5926. } else {
  5927. if longlen > uint64(Xxcb_get_maximum_request_length(tls, c)) {
  5928. _close_fds(tls, fds, num_fds)
  5929. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_REQ_LEN_EXCEED))
  5930. return uint64(0) /* server can't take this; maybe need BIGREQUESTS? */
  5931. }
  5932. }
  5933. /* set the length field. */
  5934. *(*Tuint16_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*2)) = shortlen
  5935. if !(shortlen != 0) {
  5936. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[0] = *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base))
  5937. longlen++
  5938. v2 = longlen
  5939. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] = uint32(v2)
  5940. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr(1)*4
  5941. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len -= uint64(4)
  5942. vector -= 16
  5943. veclen++
  5944. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = bp
  5945. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(8)
  5946. }
  5947. }
  5948. flags &= ^int32(_XCB_REQUEST_RAW)
  5949. /* do we need to work around the X server bug described in glx.xml? */
  5950. /* XXX: GetFBConfigs won't use BIG-REQUESTS in any sane
  5951. * configuration, but that should be handled here anyway. */
  5952. 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)) {
  5953. workaround = int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG)
  5954. }
  5955. /* get a sequence number and arrange for delivery. */
  5956. libc.Xpthread_mutex_lock(tls, c+24)
  5957. /* send FDs before establishing a good request number, because this might
  5958. * call send_sync(), too
  5959. */
  5960. _send_fds(tls, c, fds, num_fds)
  5961. _prepare_socket_request(tls, c)
  5962. /* send GetInputFocus (sync_req) when 64k-2 requests have been sent without
  5963. * a reply.
  5964. * Also send sync_req (could use NoOp) at 32-bit wrap to avoid having
  5965. * applications see sequence 0 as that is used to indicate
  5966. * an error in sending the request
  5967. */
  5968. 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) {
  5969. _send_sync(tls, c)
  5970. _prepare_socket_request(tls, c)
  5971. }
  5972. _send_request(tls, c, libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid), workaround, flags, vector, veclen)
  5973. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5974. v3 = uint64(0)
  5975. } else {
  5976. v3 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  5977. }
  5978. request = v3
  5979. libc.Xpthread_mutex_unlock(tls, c+24)
  5980. return request
  5981. }
  5982. var _pad1 [3]uint8
  5983. // C documentation
  5984. //
  5985. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  5986. func Xxcb_send_request_with_fds(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r uint32) {
  5987. return uint32(Xxcb_send_request_with_fds64(tls, c, flags, vector, req, num_fds, fds))
  5988. }
  5989. func Xxcb_send_request64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r Tuint64_t) {
  5990. return Xxcb_send_request_with_fds64(tls, c, flags, vector, req, uint32(0), libc.UintptrFromInt32(0))
  5991. }
  5992. // C documentation
  5993. //
  5994. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  5995. func Xxcb_send_request(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r uint32) {
  5996. return uint32(Xxcb_send_request64(tls, c, flags, vector, req))
  5997. }
  5998. func Xxcb_send_fd(tls *libc.TLS, c uintptr, fd int32) {
  5999. bp := tls.Alloc(16)
  6000. defer tls.Free(16)
  6001. var _ /* fds at bp+0 */ [1]int32
  6002. *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{
  6003. 0: fd,
  6004. }
  6005. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6006. libc.Xclose(tls, fd)
  6007. return
  6008. }
  6009. libc.Xpthread_mutex_lock(tls, c+24)
  6010. _send_fds(tls, c, bp, uint32(1))
  6011. libc.Xpthread_mutex_unlock(tls, c+24)
  6012. }
  6013. func Xxcb_take_socket(tls *libc.TLS, c uintptr, return_socket uintptr, closure uintptr, flags int32, sent uintptr) (r int32) {
  6014. var ret int32
  6015. _ = ret
  6016. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6017. return 0
  6018. }
  6019. libc.Xpthread_mutex_lock(tls, c+24)
  6020. _get_socket_back(tls, c)
  6021. /* _xcb_out_flush may drop the iolock allowing other threads to
  6022. * write requests, so keep flushing until we're done
  6023. */
  6024. for cond := true; cond; cond = ret != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest != (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written {
  6025. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6026. }
  6027. if ret != 0 {
  6028. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = return_socket
  6029. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = closure
  6030. if flags != 0 {
  6031. /* c->out.request + 1 will be the first request sent by the external
  6032. * socket owner. If the socket is returned before this request is sent
  6033. * it will be detected in _xcb_in_replies_done and this pending_reply
  6034. * will be discarded.
  6035. */
  6036. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+uint64(1), int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER), flags)
  6037. }
  6038. *(*Tuint64_t)(unsafe.Pointer(sent)) = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6039. }
  6040. libc.Xpthread_mutex_unlock(tls, c+24)
  6041. return ret
  6042. }
  6043. func Xxcb_writev(tls *libc.TLS, c uintptr, vector uintptr, count int32, requests Tuint64_t) (r int32) {
  6044. var ret int32
  6045. _ = ret
  6046. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6047. return 0
  6048. }
  6049. libc.Xpthread_mutex_lock(tls, c+24)
  6050. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest += requests
  6051. ret = X_xcb_out_send(tls, c, vector, count)
  6052. libc.Xpthread_mutex_unlock(tls, c+24)
  6053. return ret
  6054. }
  6055. func Xxcb_flush(tls *libc.TLS, c uintptr) (r int32) {
  6056. var ret int32
  6057. _ = ret
  6058. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6059. return 0
  6060. }
  6061. libc.Xpthread_mutex_lock(tls, c+24)
  6062. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6063. libc.Xpthread_mutex_unlock(tls, c+24)
  6064. return ret
  6065. }
  6066. /* Private interface */
  6067. func X_xcb_out_init(tls *libc.TLS, out uintptr) (r int32) {
  6068. if libc.Xpthread_cond_init(tls, out+56, uintptr(0)) != 0 {
  6069. return 0
  6070. }
  6071. (*T_xcb_out)(unsafe.Pointer(out)).Freturn_socket = uintptr(0)
  6072. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_closure = uintptr(0)
  6073. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_moving = 0
  6074. if libc.Xpthread_cond_init(tls, out, uintptr(0)) != 0 {
  6075. return 0
  6076. }
  6077. (*T_xcb_out)(unsafe.Pointer(out)).Fwriting = 0
  6078. (*T_xcb_out)(unsafe.Pointer(out)).Fqueue_len = 0
  6079. (*T_xcb_out)(unsafe.Pointer(out)).Frequest = uint64(0)
  6080. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_written = uint64(0)
  6081. if libc.Xpthread_mutex_init(tls, out+16536, uintptr(0)) != 0 {
  6082. return 0
  6083. }
  6084. (*T_xcb_out)(unsafe.Pointer(out)).Fmaximum_request_length_tag = int32(_LAZY_NONE)
  6085. return int32(1)
  6086. }
  6087. func X_xcb_out_destroy(tls *libc.TLS, out uintptr) {
  6088. libc.Xpthread_cond_destroy(tls, out)
  6089. libc.Xpthread_mutex_destroy(tls, out+16536)
  6090. }
  6091. func X_xcb_out_send(tls *libc.TLS, c uintptr, _vector uintptr, _count int32) (r int32) {
  6092. bp := tls.Alloc(16)
  6093. defer tls.Free(16)
  6094. *(*uintptr)(unsafe.Pointer(bp)) = _vector
  6095. *(*int32)(unsafe.Pointer(bp + 8)) = _count
  6096. var ret int32
  6097. _ = ret
  6098. ret = int32(1)
  6099. for ret != 0 && *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
  6100. ret = X_xcb_conn_wait(tls, c, c+4400, bp, bp+8)
  6101. }
  6102. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6103. libc.Xpthread_cond_broadcast(tls, c+4400)
  6104. X_xcb_in_wake_up_next_reader(tls, c)
  6105. return ret
  6106. }
  6107. func X_xcb_out_send_sync(tls *libc.TLS, c uintptr) {
  6108. _prepare_socket_request(tls, c)
  6109. _send_sync(tls, c)
  6110. }
  6111. func X_xcb_out_flush_to(tls *libc.TLS, c uintptr, request Tuint64_t) (r int32) {
  6112. bp := tls.Alloc(16)
  6113. defer tls.Free(16)
  6114. var _ /* vec at bp+0 */ Tiovec
  6115. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written-request) >= 0 {
  6116. return int32(1)
  6117. }
  6118. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len != 0 {
  6119. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_base = c + 4400 + 124
  6120. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  6121. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  6122. return X_xcb_out_send(tls, c, bp, int32(1))
  6123. }
  6124. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0 {
  6125. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  6126. }
  6127. return int32(1)
  6128. }
  6129. const m_INT32_MAX1 = 2147483647
  6130. const m_MSG_CTRUNC1 = 8
  6131. const m_MSG_TRUNC1 = 32
  6132. const m_POLLOUT1 = 0x004
  6133. const m_XCB_ERROR = 0
  6134. const m_XCB_REPLY = 1
  6135. const m_XCB_XGE_EVENT = 35
  6136. type Txcb_special_event_t = struct {
  6137. Fnext uintptr
  6138. Fextension Tuint8_t
  6139. Feid Tuint32_t
  6140. Fstamp uintptr
  6141. Fevents uintptr
  6142. Fevents_tail uintptr
  6143. Fspecial_event_cond Tpthread_cond_t
  6144. }
  6145. type Txcb_special_event = Txcb_special_event_t
  6146. type Tevent_list = struct {
  6147. Fevent uintptr
  6148. Fnext uintptr
  6149. }
  6150. type Treply_list = struct {
  6151. Freply uintptr
  6152. Fnext uintptr
  6153. }
  6154. type Tpending_reply = struct {
  6155. Ffirst_request Tuint64_t
  6156. Flast_request Tuint64_t
  6157. Fworkaround _workarounds
  6158. Fflags int32
  6159. Fnext uintptr
  6160. }
  6161. type Treader_list = struct {
  6162. Frequest Tuint64_t
  6163. Fdata uintptr
  6164. Fnext uintptr
  6165. }
  6166. type Tspecial_list = struct {
  6167. Fse uintptr
  6168. Fnext uintptr
  6169. }
  6170. func _remove_finished_readers(tls *libc.TLS, prev_reader uintptr, completed Tuint64_t) {
  6171. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-completed) <= 0 {
  6172. /* If you don't have what you're looking for now, you never
  6173. * will. Wake up and leave me alone. */
  6174. libc.Xpthread_cond_signal(tls, (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fdata)
  6175. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6176. }
  6177. }
  6178. func _read_fds(tls *libc.TLS, c uintptr, fds uintptr, nfd int32) (r int32) {
  6179. var ifds uintptr
  6180. var infd int32
  6181. _, _ = ifds, infd
  6182. ifds = c + 64 + 4256 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4
  6183. infd = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd - (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  6184. if nfd > infd {
  6185. return 0
  6186. }
  6187. libc.Xmemcpy(tls, fds, ifds, libc.Uint64FromInt32(nfd)*uint64(4))
  6188. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd += nfd
  6189. return int32(1)
  6190. }
  6191. type Txcb_ge_special_event_t = struct {
  6192. Fresponse_type Tuint8_t
  6193. Fextension Tuint8_t
  6194. Fsequence Tuint16_t
  6195. Flength Tuint32_t
  6196. Fevtype Tuint16_t
  6197. Fpad0 [2]Tuint8_t
  6198. Feid Tuint32_t
  6199. Fpad1 [16]Tuint8_t
  6200. }
  6201. func _event_special(tls *libc.TLS, c uintptr, event uintptr) (r int32) {
  6202. var ges, special_event uintptr
  6203. _, _ = ges, special_event
  6204. ges = (*Tevent_list)(unsafe.Pointer(event)).Fevent
  6205. /* Special events are always XGE events */
  6206. if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fresponse_type)&int32(0x7f) != int32(m_XCB_XGE_EVENT) {
  6207. return 0
  6208. }
  6209. special_event = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6210. for {
  6211. if !(special_event != 0) {
  6212. break
  6213. }
  6214. 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 {
  6215. *(*uintptr)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail)) = event
  6216. (*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail = event + 8
  6217. if (*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp != 0 {
  6218. *(*Tuint32_t)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp))++
  6219. }
  6220. libc.Xpthread_cond_signal(tls, special_event+40)
  6221. return int32(1)
  6222. }
  6223. goto _1
  6224. _1:
  6225. ;
  6226. special_event = (*Txcb_special_event)(unsafe.Pointer(special_event)).Fnext
  6227. }
  6228. return 0
  6229. }
  6230. func _read_packet(tls *libc.TLS, c uintptr) (r int32) {
  6231. bp := tls.Alloc(16)
  6232. defer tls.Free(16)
  6233. var buf, cur, event, oldpend, p, pend uintptr
  6234. var bufsize, eventlength, lastread, length Tuint64_t
  6235. var nfd int32
  6236. var v1 uint64
  6237. var _ /* genrep at bp+0 */ Txcb_generic_reply_t
  6238. _, _, _, _, _, _, _, _, _, _, _, _ = buf, bufsize, cur, event, eventlength, lastread, length, nfd, oldpend, p, pend, v1
  6239. length = uint64(32)
  6240. eventlength = uint64(0) /* length after first 32 bytes for GenericEvents */
  6241. nfd = 0
  6242. pend = uintptr(0)
  6243. /* Wait for there to be enough data for us to read a whole packet */
  6244. if libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len) < length {
  6245. return 0
  6246. }
  6247. /* Get the response type, length, and sequence number. */
  6248. libc.Xmemcpy(tls, bp, c+64+52, uint64(8))
  6249. /* Compute 32-bit sequence number of this packet. */
  6250. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) != int32(m_XCB_KEYMAP_NOTIFY) {
  6251. lastread = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6252. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read = lastread&uint64(0xffffffffffff0000) | uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fsequence)
  6253. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-lastread) < 0 {
  6254. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read += uint64(0x10000)
  6255. }
  6256. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) > 0 {
  6257. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6258. }
  6259. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read != lastread {
  6260. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6261. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(lastread), (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply)
  6262. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = uintptr(0)
  6263. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6264. }
  6265. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read - uint64(1)
  6266. }
  6267. 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 {
  6268. oldpend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6269. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies = (*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext
  6270. if !((*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext != 0) {
  6271. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = c + 64 + 4240
  6272. }
  6273. libc.Xfree(tls, oldpend)
  6274. }
  6275. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR {
  6276. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6277. }
  6278. _remove_finished_readers(tls, c+64+4224, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed)
  6279. }
  6280. 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) {
  6281. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6282. 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)) {
  6283. pend = uintptr(0)
  6284. }
  6285. }
  6286. /* For reply packets, check that the entire packet is available. */
  6287. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6288. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG) {
  6289. p = c + 64 + 52
  6290. (*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength = *(*Tuint32_t)(unsafe.Pointer(p + 2*4)) * *(*Tuint32_t)(unsafe.Pointer(p + 3*4)) * uint32(2)
  6291. }
  6292. length += uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength * uint32(4))
  6293. /* XXX a bit of a hack -- we "know" that all FD replys place
  6294. * the number of fds in the pad0 byte */
  6295. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_REPLY_FDS) != 0 {
  6296. nfd = libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fpad0)
  6297. }
  6298. }
  6299. /* XGE events may have sizes > 32 */
  6300. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) == int32(m_XCB_XGE_EVENT) {
  6301. eventlength = uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength * uint32(4))
  6302. }
  6303. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6304. v1 = uint64(0)
  6305. } else {
  6306. v1 = uint64(4)
  6307. }
  6308. bufsize = length + eventlength + libc.Uint64FromInt32(nfd)*uint64(4) + v1
  6309. if bufsize < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT32_MAX1)) {
  6310. buf = libc.Xmalloc(tls, bufsize)
  6311. } else {
  6312. buf = libc.UintptrFromInt32(0)
  6313. }
  6314. if !(buf != 0) {
  6315. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6316. return 0
  6317. }
  6318. if X_xcb_in_read_block(tls, c, buf, libc.Int32FromUint64(length)) <= 0 {
  6319. libc.Xfree(tls, buf)
  6320. return 0
  6321. }
  6322. /* pull in XGE event data if available, append after event struct */
  6323. if eventlength != 0 {
  6324. if X_xcb_in_read_block(tls, c, buf+1*36, libc.Int32FromUint64(eventlength)) <= 0 {
  6325. libc.Xfree(tls, buf)
  6326. return 0
  6327. }
  6328. }
  6329. if nfd != 0 {
  6330. if !(_read_fds(tls, c, buf+uintptr(length), nfd) != 0) {
  6331. libc.Xfree(tls, buf)
  6332. return 0
  6333. }
  6334. }
  6335. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_DISCARD_REPLY) != 0 {
  6336. libc.Xfree(tls, buf)
  6337. return int32(1)
  6338. }
  6339. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) != int32(m_XCB_REPLY) {
  6340. (*Txcb_generic_event_t)(unsafe.Pointer(buf)).Ffull_sequence = uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read)
  6341. }
  6342. /* reply, or checked error */
  6343. 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 {
  6344. cur = libc.Xmalloc(tls, uint64(16))
  6345. if !(cur != 0) {
  6346. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6347. libc.Xfree(tls, buf)
  6348. return 0
  6349. }
  6350. (*Treply_list)(unsafe.Pointer(cur)).Freply = buf
  6351. (*Treply_list)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  6352. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail)) = cur
  6353. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = cur + 8
  6354. 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 {
  6355. libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  6356. }
  6357. return int32(1)
  6358. }
  6359. /* event, or unchecked error */
  6360. event = libc.Xmalloc(tls, uint64(16))
  6361. if !(event != 0) {
  6362. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6363. libc.Xfree(tls, buf)
  6364. return 0
  6365. }
  6366. (*Tevent_list)(unsafe.Pointer(event)).Fevent = buf
  6367. (*Tevent_list)(unsafe.Pointer(event)).Fnext = uintptr(0)
  6368. if !(_event_special(tls, c, event) != 0) {
  6369. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail)) = event
  6370. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = event + 8
  6371. libc.Xpthread_cond_signal(tls, c+64)
  6372. }
  6373. return int32(1) /* I have something for you... */
  6374. }
  6375. func _get_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6376. var cur, ret uintptr
  6377. _, _ = cur, ret
  6378. cur = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents
  6379. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents != 0) {
  6380. return uintptr(0)
  6381. }
  6382. ret = (*Tevent_list)(unsafe.Pointer(cur)).Fevent
  6383. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents = (*Tevent_list)(unsafe.Pointer(cur)).Fnext
  6384. if !((*Tevent_list)(unsafe.Pointer(cur)).Fnext != 0) {
  6385. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = c + 64 + 4208
  6386. }
  6387. libc.Xfree(tls, cur)
  6388. return ret
  6389. }
  6390. func _free_reply_list(tls *libc.TLS, head uintptr) {
  6391. var cur uintptr
  6392. _ = cur
  6393. for head != 0 {
  6394. cur = head
  6395. head = (*Treply_list)(unsafe.Pointer(cur)).Fnext
  6396. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(cur)).Freply)
  6397. libc.Xfree(tls, cur)
  6398. }
  6399. }
  6400. func _read_block(tls *libc.TLS, fd int32, buf uintptr, len1 Tssize_t) (r int32) {
  6401. bp := tls.Alloc(16)
  6402. defer tls.Free(16)
  6403. var done, ret int32
  6404. var _ /* pfd at bp+0 */ Tpollfd
  6405. _, _ = done, ret
  6406. done = 0
  6407. for int64(done) < len1 {
  6408. ret = int32(libc.Xrecv(tls, fd, buf+uintptr(done), libc.Uint64FromInt64(len1-int64(done)), 0))
  6409. if ret > 0 {
  6410. done += ret
  6411. }
  6412. if ret < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  6413. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = fd
  6414. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  6415. (*(*Tpollfd)(unsafe.Pointer(bp))).Frevents = 0
  6416. for cond := true; cond; cond = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  6417. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  6418. }
  6419. }
  6420. if ret <= 0 {
  6421. return ret
  6422. }
  6423. }
  6424. return int32(len1)
  6425. }
  6426. func _poll_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6427. var head uintptr
  6428. _ = head
  6429. /* If an error occurred when issuing the request, fail immediately. */
  6430. if !(request != 0) {
  6431. head = uintptr(0)
  6432. } else {
  6433. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) < 0 {
  6434. head = X_xcb_map_remove(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(request))
  6435. if head != 0 && (*Treply_list)(unsafe.Pointer(head)).Fnext != 0 {
  6436. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(request), (*Treply_list)(unsafe.Pointer(head)).Fnext)
  6437. }
  6438. } else {
  6439. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6440. head = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply
  6441. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = (*Treply_list)(unsafe.Pointer(head)).Fnext
  6442. if !((*Treply_list)(unsafe.Pointer(head)).Fnext != 0) {
  6443. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6444. }
  6445. } else {
  6446. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed {
  6447. head = uintptr(0)
  6448. } else {
  6449. return 0
  6450. }
  6451. }
  6452. }
  6453. }
  6454. if error1 != 0 {
  6455. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6456. }
  6457. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6458. if head != 0 {
  6459. if libc.Int32FromUint8((*Txcb_generic_reply_t)(unsafe.Pointer((*Treply_list)(unsafe.Pointer(head)).Freply)).Fresponse_type) == m_XCB_ERROR {
  6460. if error1 != 0 {
  6461. *(*uintptr)(unsafe.Pointer(error1)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6462. } else {
  6463. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(head)).Freply)
  6464. }
  6465. } else {
  6466. *(*uintptr)(unsafe.Pointer(reply)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6467. }
  6468. libc.Xfree(tls, head)
  6469. }
  6470. return int32(1)
  6471. }
  6472. func _insert_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr, request Tuint64_t, cond uintptr) {
  6473. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-request) <= 0 {
  6474. prev_reader = *(*uintptr)(unsafe.Pointer(prev_reader)) + 16
  6475. }
  6476. (*Treader_list)(unsafe.Pointer(reader)).Frequest = request
  6477. (*Treader_list)(unsafe.Pointer(reader)).Fdata = cond
  6478. (*Treader_list)(unsafe.Pointer(reader)).Fnext = *(*uintptr)(unsafe.Pointer(prev_reader))
  6479. *(*uintptr)(unsafe.Pointer(prev_reader)) = reader
  6480. }
  6481. func _remove_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr) {
  6482. 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 {
  6483. if *(*uintptr)(unsafe.Pointer(prev_reader)) == reader {
  6484. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6485. break
  6486. }
  6487. }
  6488. }
  6489. func _insert_special(tls *libc.TLS, prev_special uintptr, special uintptr, se uintptr) {
  6490. (*Tspecial_list)(unsafe.Pointer(special)).Fse = se
  6491. (*Tspecial_list)(unsafe.Pointer(special)).Fnext = *(*uintptr)(unsafe.Pointer(prev_special))
  6492. *(*uintptr)(unsafe.Pointer(prev_special)) = special
  6493. }
  6494. func _remove_special(tls *libc.TLS, prev_special uintptr, special uintptr) {
  6495. for *(*uintptr)(unsafe.Pointer(prev_special)) != 0 {
  6496. if *(*uintptr)(unsafe.Pointer(prev_special)) == special {
  6497. *(*uintptr)(unsafe.Pointer(prev_special)) = (*Tspecial_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_special)))).Fnext
  6498. break
  6499. }
  6500. prev_special = *(*uintptr)(unsafe.Pointer(prev_special)) + 8
  6501. }
  6502. }
  6503. func _wait_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6504. bp := tls.Alloc(80)
  6505. defer tls.Free(80)
  6506. var _ /* cond at bp+8 */ Tpthread_cond_t
  6507. var _ /* reader at bp+56 */ Treader_list
  6508. var _ /* ret at bp+0 */ uintptr
  6509. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6510. /* If this request has not been written yet, write it. */
  6511. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 || X_xcb_out_flush_to(tls, c, request) != 0 {
  6512. *(*Tpthread_cond_t)(unsafe.Pointer(bp + 8)) = Tpthread_cond_t{}
  6513. *(*int32)(unsafe.Pointer(bp + 8)) = 0
  6514. _insert_reader(tls, c+64+4224, bp+56, request, bp+8)
  6515. for !(_poll_for_reply(tls, c, request, bp, e) != 0) {
  6516. if !(X_xcb_conn_wait(tls, c, bp+8, uintptr(0), uintptr(0)) != 0) {
  6517. break
  6518. }
  6519. }
  6520. _remove_reader(tls, c+64+4224, bp+56)
  6521. libc.Xpthread_cond_destroy(tls, bp+8)
  6522. }
  6523. X_xcb_in_wake_up_next_reader(tls, c)
  6524. return *(*uintptr)(unsafe.Pointer(bp))
  6525. }
  6526. func _widen(tls *libc.TLS, c uintptr, request uint32) (r Tuint64_t) {
  6527. var widened_request Tuint64_t
  6528. _ = widened_request
  6529. widened_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest&uint64(0xffffffff00000000) | uint64(request)
  6530. if widened_request > (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest {
  6531. widened_request -= libc.Uint64FromUint64(1) << libc.Int32FromInt32(32)
  6532. }
  6533. return widened_request
  6534. }
  6535. /* Public interface */
  6536. func Xxcb_wait_for_reply(tls *libc.TLS, c uintptr, request uint32, e uintptr) (r uintptr) {
  6537. var ret uintptr
  6538. _ = ret
  6539. if e != 0 {
  6540. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6541. }
  6542. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6543. return uintptr(0)
  6544. }
  6545. libc.Xpthread_mutex_lock(tls, c+24)
  6546. ret = _wait_for_reply(tls, c, _widen(tls, c, request), e)
  6547. libc.Xpthread_mutex_unlock(tls, c+24)
  6548. return ret
  6549. }
  6550. func Xxcb_wait_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6551. var ret uintptr
  6552. _ = ret
  6553. if e != 0 {
  6554. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6555. }
  6556. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6557. return uintptr(0)
  6558. }
  6559. libc.Xpthread_mutex_lock(tls, c+24)
  6560. ret = _wait_for_reply(tls, c, request, e)
  6561. libc.Xpthread_mutex_unlock(tls, c+24)
  6562. return ret
  6563. }
  6564. func Xxcb_get_reply_fds(tls *libc.TLS, c uintptr, reply uintptr, reply_size Tsize_t) (r uintptr) {
  6565. return reply + uintptr(reply_size)
  6566. }
  6567. func _insert_pending_discard(tls *libc.TLS, c uintptr, prev_next uintptr, seq Tuint64_t) {
  6568. var pend uintptr
  6569. _ = pend
  6570. pend = libc.Xmalloc(tls, uint64(32))
  6571. if !(pend != 0) {
  6572. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6573. return
  6574. }
  6575. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = seq
  6576. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = seq
  6577. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = 0
  6578. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = int32(_XCB_REQUEST_DISCARD_REPLY)
  6579. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = *(*uintptr)(unsafe.Pointer(prev_next))
  6580. *(*uintptr)(unsafe.Pointer(prev_next)) = pend
  6581. if !((*Tpending_reply)(unsafe.Pointer(pend)).Fnext != 0) {
  6582. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  6583. }
  6584. }
  6585. func _discard_reply(tls *libc.TLS, c uintptr, request Tuint64_t) {
  6586. bp := tls.Alloc(16)
  6587. defer tls.Free(16)
  6588. var prev_pend uintptr
  6589. var _ /* reply at bp+0 */ uintptr
  6590. _ = prev_pend
  6591. /* Free any replies or errors that we've already read. Stop if
  6592. * xcb_wait_for_reply would block or we've run out of replies. */
  6593. for _poll_for_reply(tls, c, request, bp, uintptr(0)) != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
  6594. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp)))
  6595. }
  6596. /* If we've proven there are no more responses coming, we're done. */
  6597. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
  6598. return
  6599. }
  6600. /* Walk the list of pending requests. Mark the first match for deletion. */
  6601. prev_pend = c + 64 + 4240
  6602. for {
  6603. if !(*(*uintptr)(unsafe.Pointer(prev_pend)) != 0) {
  6604. break
  6605. }
  6606. if libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request-request) > 0 {
  6607. break
  6608. }
  6609. if (*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request == request {
  6610. /* Pending reply found. Mark for discard: */
  6611. *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)) + 20)) |= int32(_XCB_REQUEST_DISCARD_REPLY)
  6612. return
  6613. }
  6614. goto _1
  6615. _1:
  6616. ;
  6617. prev_pend = *(*uintptr)(unsafe.Pointer(prev_pend)) + 24
  6618. }
  6619. /* Pending reply not found (likely due to _unchecked request). Create one: */
  6620. _insert_pending_discard(tls, c, prev_pend, request)
  6621. }
  6622. func Xxcb_discard_reply(tls *libc.TLS, c uintptr, sequence uint32) {
  6623. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6624. return
  6625. }
  6626. /* If an error occurred when issuing the request, fail immediately. */
  6627. if !(sequence != 0) {
  6628. return
  6629. }
  6630. libc.Xpthread_mutex_lock(tls, c+24)
  6631. _discard_reply(tls, c, _widen(tls, c, sequence))
  6632. libc.Xpthread_mutex_unlock(tls, c+24)
  6633. }
  6634. func Xxcb_discard_reply64(tls *libc.TLS, c uintptr, sequence Tuint64_t) {
  6635. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6636. return
  6637. }
  6638. /* If an error occurred when issuing the request, fail immediately. */
  6639. if !(sequence != 0) {
  6640. return
  6641. }
  6642. libc.Xpthread_mutex_lock(tls, c+24)
  6643. _discard_reply(tls, c, sequence)
  6644. libc.Xpthread_mutex_unlock(tls, c+24)
  6645. }
  6646. func Xxcb_poll_for_reply(tls *libc.TLS, c uintptr, request uint32, reply uintptr, error1 uintptr) (r int32) {
  6647. var ret int32
  6648. _ = ret
  6649. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6650. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6651. if error1 != 0 {
  6652. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6653. }
  6654. return int32(1) /* would not block */
  6655. }
  6656. libc.Xpthread_mutex_lock(tls, c+24)
  6657. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6658. 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 */
  6659. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6660. }
  6661. libc.Xpthread_mutex_unlock(tls, c+24)
  6662. return ret
  6663. }
  6664. func Xxcb_poll_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6665. var ret int32
  6666. _ = ret
  6667. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6668. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6669. if error1 != 0 {
  6670. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6671. }
  6672. return int32(1) /* would not block */
  6673. }
  6674. libc.Xpthread_mutex_lock(tls, c+24)
  6675. ret = _poll_for_reply(tls, c, request, reply, error1)
  6676. 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 */
  6677. ret = _poll_for_reply(tls, c, request, reply, error1)
  6678. }
  6679. libc.Xpthread_mutex_unlock(tls, c+24)
  6680. return ret
  6681. }
  6682. func Xxcb_wait_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6683. var ret, v1 uintptr
  6684. _, _ = ret, v1
  6685. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6686. return uintptr(0)
  6687. }
  6688. libc.Xpthread_mutex_lock(tls, c+24)
  6689. /* get_event returns 0 on empty list. */
  6690. for {
  6691. v1 = _get_event(tls, c)
  6692. ret = v1
  6693. if !!(v1 != 0) {
  6694. break
  6695. }
  6696. if !(X_xcb_conn_wait(tls, c, c+64, uintptr(0), uintptr(0)) != 0) {
  6697. break
  6698. }
  6699. }
  6700. X_xcb_in_wake_up_next_reader(tls, c)
  6701. libc.Xpthread_mutex_unlock(tls, c+24)
  6702. return ret
  6703. }
  6704. func _poll_for_next_event(tls *libc.TLS, c uintptr, queued int32) (r uintptr) {
  6705. var ret uintptr
  6706. _ = ret
  6707. ret = uintptr(0)
  6708. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
  6709. libc.Xpthread_mutex_lock(tls, c+24)
  6710. /* FIXME: follow X meets Z architecture changes. */
  6711. ret = _get_event(tls, c)
  6712. 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 */
  6713. ret = _get_event(tls, c)
  6714. }
  6715. libc.Xpthread_mutex_unlock(tls, c+24)
  6716. }
  6717. return ret
  6718. }
  6719. func Xxcb_poll_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6720. return _poll_for_next_event(tls, c, 0)
  6721. }
  6722. func Xxcb_poll_for_queued_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6723. return _poll_for_next_event(tls, c, int32(1))
  6724. }
  6725. func Xxcb_request_check(tls *libc.TLS, c uintptr, cookie Txcb_void_cookie_t) (r uintptr) {
  6726. bp := tls.Alloc(16)
  6727. defer tls.Free(16)
  6728. var reply uintptr
  6729. var request Tuint64_t
  6730. var _ /* ret at bp+0 */ uintptr
  6731. _, _ = reply, request
  6732. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6733. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6734. return uintptr(0)
  6735. }
  6736. libc.Xpthread_mutex_lock(tls, c+24)
  6737. request = _widen(tls, c, cookie.Fsequence)
  6738. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) >= 0 && libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) > 0 {
  6739. X_xcb_out_send_sync(tls, c)
  6740. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6741. }
  6742. reply = _wait_for_reply(tls, c, request, bp)
  6743. libc.Xpthread_mutex_unlock(tls, c+24)
  6744. return *(*uintptr)(unsafe.Pointer(bp))
  6745. }
  6746. func _get_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6747. var event, events, v1, v2 uintptr
  6748. _, _, _, _ = event, events, v1, v2
  6749. event = libc.UintptrFromInt32(0)
  6750. v1 = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6751. events = v1
  6752. if v1 != libc.UintptrFromInt32(0) {
  6753. event = (*Tevent_list)(unsafe.Pointer(events)).Fevent
  6754. v2 = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6755. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = v2
  6756. if !(v2 != 0) {
  6757. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6758. }
  6759. libc.Xfree(tls, events)
  6760. }
  6761. return event
  6762. }
  6763. func Xxcb_poll_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6764. var event uintptr
  6765. _ = event
  6766. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6767. return uintptr(0)
  6768. }
  6769. libc.Xpthread_mutex_lock(tls, c+24)
  6770. event = _get_special_event(tls, c, se)
  6771. 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 */
  6772. event = _get_special_event(tls, c, se)
  6773. }
  6774. libc.Xpthread_mutex_unlock(tls, c+24)
  6775. return event
  6776. }
  6777. func Xxcb_wait_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6778. bp := tls.Alloc(16)
  6779. defer tls.Free(16)
  6780. var event, v1 uintptr
  6781. var _ /* special at bp+0 */ Tspecial_list
  6782. _, _ = event, v1
  6783. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6784. return uintptr(0)
  6785. }
  6786. libc.Xpthread_mutex_lock(tls, c+24)
  6787. _insert_special(tls, c+64+4232, bp, se)
  6788. /* get_special_event returns 0 on empty list. */
  6789. for {
  6790. v1 = _get_special_event(tls, c, se)
  6791. event = v1
  6792. if !!(v1 != 0) {
  6793. break
  6794. }
  6795. if !(X_xcb_conn_wait(tls, c, se+40, uintptr(0), uintptr(0)) != 0) {
  6796. break
  6797. }
  6798. }
  6799. _remove_special(tls, c+64+4232, bp)
  6800. X_xcb_in_wake_up_next_reader(tls, c)
  6801. libc.Xpthread_mutex_unlock(tls, c+24)
  6802. return event
  6803. }
  6804. func Xxcb_register_for_special_xge(tls *libc.TLS, c uintptr, ext uintptr, eid Tuint32_t, stamp uintptr) (r uintptr) {
  6805. var ext_reply, se uintptr
  6806. _, _ = ext_reply, se
  6807. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6808. return libc.UintptrFromInt32(0)
  6809. }
  6810. ext_reply = Xxcb_get_extension_data(tls, c, ext)
  6811. if !(ext_reply != 0) {
  6812. return libc.UintptrFromInt32(0)
  6813. }
  6814. libc.Xpthread_mutex_lock(tls, c+24)
  6815. se = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6816. for {
  6817. if !(se != 0) {
  6818. break
  6819. }
  6820. 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 {
  6821. libc.Xpthread_mutex_unlock(tls, c+24)
  6822. return libc.UintptrFromInt32(0)
  6823. }
  6824. goto _1
  6825. _1:
  6826. ;
  6827. se = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6828. }
  6829. se = libc.Xcalloc(tls, uint64(1), uint64(88))
  6830. if !(se != 0) {
  6831. libc.Xpthread_mutex_unlock(tls, c+24)
  6832. return libc.UintptrFromInt32(0)
  6833. }
  6834. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension = (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode
  6835. (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid = eid
  6836. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = libc.UintptrFromInt32(0)
  6837. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6838. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fstamp = stamp
  6839. libc.Xpthread_cond_init(tls, se+40, uintptr(0))
  6840. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6841. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events = se
  6842. libc.Xpthread_mutex_unlock(tls, c+24)
  6843. return se
  6844. }
  6845. func Xxcb_unregister_for_special_event(tls *libc.TLS, c uintptr, se uintptr) {
  6846. var events, next, prev, s, v2 uintptr
  6847. _, _, _, _, _ = events, next, prev, s, v2
  6848. if !(se != 0) {
  6849. return
  6850. }
  6851. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6852. return
  6853. }
  6854. libc.Xpthread_mutex_lock(tls, c+24)
  6855. prev = c + 64 + 4328
  6856. for {
  6857. v2 = *(*uintptr)(unsafe.Pointer(prev))
  6858. s = v2
  6859. if !(v2 != libc.UintptrFromInt32(0)) {
  6860. break
  6861. }
  6862. if s == se {
  6863. *(*uintptr)(unsafe.Pointer(prev)) = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6864. events = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6865. for {
  6866. if !(events != 0) {
  6867. break
  6868. }
  6869. next = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6870. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(events)).Fevent)
  6871. libc.Xfree(tls, events)
  6872. goto _3
  6873. _3:
  6874. ;
  6875. events = next
  6876. }
  6877. libc.Xpthread_cond_destroy(tls, se+40)
  6878. libc.Xfree(tls, se)
  6879. break
  6880. }
  6881. goto _1
  6882. _1:
  6883. ;
  6884. prev = s
  6885. }
  6886. libc.Xpthread_mutex_unlock(tls, c+24)
  6887. }
  6888. /* Private interface */
  6889. func X_xcb_in_init(tls *libc.TLS, in uintptr) (r int32) {
  6890. if libc.Xpthread_cond_init(tls, in, uintptr(0)) != 0 {
  6891. return 0
  6892. }
  6893. (*T_xcb_in)(unsafe.Pointer(in)).Freading = 0
  6894. (*T_xcb_in)(unsafe.Pointer(in)).Fqueue_len = 0
  6895. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_read = uint64(0)
  6896. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_completed = uint64(0)
  6897. (*T_xcb_in)(unsafe.Pointer(in)).Freplies = X_xcb_map_new(tls)
  6898. if !((*T_xcb_in)(unsafe.Pointer(in)).Freplies != 0) {
  6899. return 0
  6900. }
  6901. (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply_tail = in + 4184
  6902. (*T_xcb_in)(unsafe.Pointer(in)).Fevents_tail = in + 4208
  6903. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies_tail = in + 4240
  6904. return int32(1)
  6905. }
  6906. func X_xcb_in_destroy(tls *libc.TLS, in uintptr) {
  6907. var e, pend uintptr
  6908. _, _ = e, pend
  6909. libc.Xpthread_cond_destroy(tls, in)
  6910. _free_reply_list(tls, (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply)
  6911. X_xcb_map_delete(tls, (*T_xcb_in)(unsafe.Pointer(in)).Freplies, __ccgo_fp(_free_reply_list))
  6912. for (*T_xcb_in)(unsafe.Pointer(in)).Fevents != 0 {
  6913. e = (*T_xcb_in)(unsafe.Pointer(in)).Fevents
  6914. (*T_xcb_in)(unsafe.Pointer(in)).Fevents = (*Tevent_list)(unsafe.Pointer(e)).Fnext
  6915. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(e)).Fevent)
  6916. libc.Xfree(tls, e)
  6917. }
  6918. for (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies != 0 {
  6919. pend = (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies
  6920. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies = (*Tpending_reply)(unsafe.Pointer(pend)).Fnext
  6921. libc.Xfree(tls, pend)
  6922. }
  6923. }
  6924. func X_xcb_in_wake_up_next_reader(tls *libc.TLS, c uintptr) {
  6925. var pthreadret int32
  6926. _ = pthreadret
  6927. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 {
  6928. pthreadret = libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  6929. } else {
  6930. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters != 0 {
  6931. pthreadret = libc.Xpthread_cond_signal(tls, (*Tspecial_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters)).Fse+40)
  6932. } else {
  6933. pthreadret = libc.Xpthread_cond_signal(tls, c+64)
  6934. }
  6935. }
  6936. }
  6937. func X_xcb_in_expect_reply(tls *libc.TLS, c uintptr, request Tuint64_t, workaround _workarounds, flags int32) (r int32) {
  6938. var pend uintptr
  6939. var v1 Tuint64_t
  6940. _, _ = pend, v1
  6941. pend = libc.Xmalloc(tls, uint64(32))
  6942. if !(pend != 0) {
  6943. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6944. return 0
  6945. }
  6946. v1 = request
  6947. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = v1
  6948. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = v1
  6949. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = workaround
  6950. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = flags
  6951. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = uintptr(0)
  6952. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail)) = pend
  6953. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  6954. return int32(1)
  6955. }
  6956. func X_xcb_in_replies_done(tls *libc.TLS, c uintptr) {
  6957. var pend, prev_next uintptr
  6958. _, _ = pend, prev_next
  6959. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail != c+64+4240 {
  6960. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail - uintptr(Tsize_t(libc.UintptrFromInt32(0)+24))
  6961. if (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) {
  6962. if libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest) <= 0 {
  6963. (*Tpending_reply1)(unsafe.Pointer(pend)).Flast_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6964. (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround = int32(_WORKAROUND_NONE)
  6965. } else {
  6966. /* The socket was taken, but no requests were actually sent
  6967. * so just discard the pending_reply that was created.
  6968. */
  6969. prev_next = c + 64 + 4240
  6970. for *(*uintptr)(unsafe.Pointer(prev_next)) != pend {
  6971. prev_next = *(*uintptr)(unsafe.Pointer(prev_next)) + 24
  6972. }
  6973. *(*uintptr)(unsafe.Pointer(prev_next)) = libc.UintptrFromInt32(0)
  6974. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = prev_next
  6975. libc.Xfree(tls, pend)
  6976. }
  6977. }
  6978. }
  6979. }
  6980. func X_xcb_in_read(tls *libc.TLS, c uintptr) (r int32) {
  6981. bp := tls.Alloc(160)
  6982. defer tls.Free(160)
  6983. var hdr, v2, v3 uintptr
  6984. var i, n, nfd int32
  6985. var _ /* cmsgbuf at bp+16 */ struct {
  6986. Fbuf [0][80]uint8
  6987. Fcmsghdr Tcmsghdr
  6988. F__ccgo_pad2 [64]byte
  6989. }
  6990. var _ /* iov at bp+0 */ Tiovec
  6991. var _ /* msg at bp+96 */ Tmsghdr
  6992. _, _, _, _, _, _ = hdr, i, n, nfd, v2, v3
  6993. *(*Tiovec)(unsafe.Pointer(bp)) = Tiovec{
  6994. Fiov_base: c + 64 + 52 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  6995. Fiov_len: uint64(4096) - libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  6996. }
  6997. *(*Tmsghdr)(unsafe.Pointer(bp + 96)) = Tmsghdr{
  6998. Fmsg_iov: bp,
  6999. Fmsg_iovlen: int32(1),
  7000. Fmsg_control: bp + 16,
  7001. 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))),
  7002. }
  7003. n = int32(libc.Xrecvmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+96, 0))
  7004. /* Check for truncation errors. Only MSG_CTRUNC is
  7005. * probably possible here, which would indicate that
  7006. * the sender tried to transmit more than XCB_MAX_PASS_FD
  7007. * file descriptors.
  7008. */
  7009. if (*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_flags&(libc.Int32FromInt32(m_MSG_TRUNC1)|libc.Int32FromInt32(m_MSG_CTRUNC1)) != 0 {
  7010. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7011. return 0
  7012. }
  7013. if n > 0 {
  7014. if uint64((*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_controllen) >= uint64(16) {
  7015. if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) {
  7016. v2 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control
  7017. } else {
  7018. v2 = libc.UintptrFromInt32(0)
  7019. }
  7020. hdr = v2
  7021. for {
  7022. if !(hdr != 0) {
  7023. break
  7024. }
  7025. if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level == int32(m_SOL_SOCKET) && (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type == int32(m_SCM_RIGHTS) {
  7026. 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))
  7027. 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))
  7028. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd += nfd
  7029. }
  7030. goto _1
  7031. _1:
  7032. ;
  7033. 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)) {
  7034. v3 = uintptr(0)
  7035. } else {
  7036. 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))))
  7037. }
  7038. hdr = v3
  7039. }
  7040. }
  7041. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read += libc.Uint64FromInt32(n)
  7042. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len += n
  7043. }
  7044. for _read_packet(tls, c) != 0 {
  7045. /* empty */
  7046. }
  7047. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7048. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd -= (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  7049. 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))
  7050. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd = 0
  7051. /* If we have any left-over file descriptors after emptying
  7052. * the input buffer, then the server sent some that we weren't
  7053. * expecting. Close them and mark the connection as broken;
  7054. */
  7055. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len == 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7056. i = 0
  7057. for {
  7058. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd) {
  7059. break
  7060. }
  7061. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 64 + 4256 + uintptr(i)*4)))
  7062. goto _4
  7063. _4:
  7064. ;
  7065. i++
  7066. }
  7067. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7068. return 0
  7069. }
  7070. }
  7071. 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)) {
  7072. return int32(1)
  7073. }
  7074. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7075. return 0
  7076. }
  7077. func X_xcb_in_read_block(tls *libc.TLS, c uintptr, buf uintptr, len1 int32) (r int32) {
  7078. var done, ret int32
  7079. _, _ = done, ret
  7080. done = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len
  7081. if len1 < done {
  7082. done = len1
  7083. }
  7084. libc.Xmemcpy(tls, buf, c+64+52, libc.Uint64FromInt32(done))
  7085. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len -= done
  7086. libc.Xmemmove(tls, c+64+52, c+64+52+uintptr(done), libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len))
  7087. if len1 > done {
  7088. ret = _read_block(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, buf+uintptr(done), int64(len1-done))
  7089. if ret <= 0 {
  7090. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7091. return ret
  7092. }
  7093. }
  7094. return len1
  7095. }
  7096. type Tpending_reply1 = struct {
  7097. Ffirst_request Tuint64_t
  7098. Flast_request Tuint64_t
  7099. Fworkaround _workarounds
  7100. Fflags int32
  7101. Fnext uintptr
  7102. }
  7103. type Treader_list1 = struct {
  7104. Frequest Tuint64_t
  7105. Fdata uintptr
  7106. Fnext uintptr
  7107. }
  7108. type Tspecial_list1 = struct {
  7109. Fse uintptr
  7110. Fnext uintptr
  7111. }
  7112. type Txcb_ge_special_event_t1 = struct {
  7113. Fresponse_type Tuint8_t
  7114. Fextension Tuint8_t
  7115. Fsequence Tuint16_t
  7116. Flength Tuint32_t
  7117. Fevtype Tuint16_t
  7118. Fpad0 [2]Tuint8_t
  7119. Feid Tuint32_t
  7120. Fpad1 [16]Tuint8_t
  7121. }
  7122. const m_INT32_MAX2 = 0x7fffffff
  7123. type Tlazyreply = struct {
  7124. Ftag _lazy_reply_tag
  7125. Fvalue struct {
  7126. Freply [0]uintptr
  7127. Fcookie Txcb_query_extension_cookie_t
  7128. F__ccgo_pad2 [4]byte
  7129. }
  7130. }
  7131. func _get_index(tls *libc.TLS, c uintptr, idx int32) (r uintptr) {
  7132. var new_extensions uintptr
  7133. var new_size int32
  7134. _, _ = new_extensions, new_size
  7135. if idx > (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size {
  7136. new_size = idx << int32(1)
  7137. new_extensions = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions, uint64(16)*libc.Uint64FromInt32(new_size))
  7138. if !(new_extensions != 0) {
  7139. return uintptr(0)
  7140. }
  7141. 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))
  7142. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions = new_extensions
  7143. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size = new_size
  7144. }
  7145. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr(idx)*16 - uintptr(1)*16
  7146. }
  7147. func _get_lazyreply(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7148. var data uintptr
  7149. var v1 int32
  7150. _, _ = data, v1
  7151. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7152. if !((*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id != 0) {
  7153. _next_global_id++
  7154. v1 = _next_global_id
  7155. (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id = v1
  7156. }
  7157. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7158. data = _get_index(tls, c, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id)
  7159. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_NONE) {
  7160. /* cache miss: query the server */
  7161. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_COOKIE)
  7162. (*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)
  7163. }
  7164. return data
  7165. }
  7166. var _global_lock = Tpthread_mutex_t{}
  7167. var _next_global_id int32
  7168. /* Public interface */
  7169. // C documentation
  7170. //
  7171. // /* Do not free the returned xcb_query_extension_reply_t - on return, it's aliased
  7172. // * from the cache. */
  7173. func Xxcb_get_extension_data(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7174. var data, v1 uintptr
  7175. _, _ = data, v1
  7176. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7177. return uintptr(0)
  7178. }
  7179. libc.Xpthread_mutex_lock(tls, c+21056)
  7180. data = _get_lazyreply(tls, c, ext)
  7181. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_COOKIE) {
  7182. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_FORCED)
  7183. *(*uintptr)(unsafe.Pointer(data + 8)) = Xxcb_query_extension_reply(tls, c, (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie, uintptr(0))
  7184. }
  7185. libc.Xpthread_mutex_unlock(tls, c+21056)
  7186. if data != 0 {
  7187. v1 = *(*uintptr)(unsafe.Pointer(data + 8))
  7188. } else {
  7189. v1 = uintptr(0)
  7190. }
  7191. return v1
  7192. }
  7193. func Xxcb_prefetch_extension_data(tls *libc.TLS, c uintptr, ext uintptr) {
  7194. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7195. return
  7196. }
  7197. libc.Xpthread_mutex_lock(tls, c+21056)
  7198. _get_lazyreply(tls, c, ext)
  7199. libc.Xpthread_mutex_unlock(tls, c+21056)
  7200. }
  7201. /* Private interface */
  7202. func X_xcb_ext_init(tls *libc.TLS, c uintptr) (r int32) {
  7203. if libc.Xpthread_mutex_init(tls, c+21056, uintptr(0)) != 0 {
  7204. return 0
  7205. }
  7206. return int32(1)
  7207. }
  7208. func X_xcb_ext_destroy(tls *libc.TLS, c uintptr) {
  7209. var v1 int32
  7210. var v2 uintptr
  7211. _, _ = v1, v2
  7212. libc.Xpthread_mutex_destroy(tls, c+21056)
  7213. for {
  7214. v2 = c + 21056 + 48
  7215. v1 = *(*int32)(unsafe.Pointer(v2))
  7216. *(*int32)(unsafe.Pointer(v2))--
  7217. if !(v1 > 0) {
  7218. break
  7219. }
  7220. 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) {
  7221. 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)))
  7222. }
  7223. }
  7224. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions)
  7225. }
  7226. type Tlazyreply1 = struct {
  7227. Ftag _lazy_reply_tag
  7228. Fvalue struct {
  7229. Freply [0]uintptr
  7230. Fcookie Txcb_query_extension_cookie_t
  7231. F__ccgo_pad2 [4]byte
  7232. }
  7233. }
  7234. const m_XCB_XCMISC_MAJOR_VERSION = 1
  7235. const m_XCB_XCMISC_MINOR_VERSION = 1
  7236. const m_XCB_XC_MISC_GET_VERSION = 0
  7237. const m_XCB_XC_MISC_GET_XID_LIST = 2
  7238. const m_XCB_XC_MISC_GET_XID_RANGE = 1
  7239. type Txcb_xc_misc_get_version_cookie_t = struct {
  7240. Fsequence uint32
  7241. }
  7242. type Txcb_xc_misc_get_version_request_t = struct {
  7243. Fmajor_opcode Tuint8_t
  7244. Fminor_opcode Tuint8_t
  7245. Flength Tuint16_t
  7246. Fclient_major_version Tuint16_t
  7247. Fclient_minor_version Tuint16_t
  7248. }
  7249. type Txcb_xc_misc_get_version_reply_t = struct {
  7250. Fresponse_type Tuint8_t
  7251. Fpad0 Tuint8_t
  7252. Fsequence Tuint16_t
  7253. Flength Tuint32_t
  7254. Fserver_major_version Tuint16_t
  7255. Fserver_minor_version Tuint16_t
  7256. }
  7257. type Txcb_xc_misc_get_xid_range_cookie_t = struct {
  7258. Fsequence uint32
  7259. }
  7260. type Txcb_xc_misc_get_xid_range_request_t = struct {
  7261. Fmajor_opcode Tuint8_t
  7262. Fminor_opcode Tuint8_t
  7263. Flength Tuint16_t
  7264. }
  7265. type Txcb_xc_misc_get_xid_range_reply_t = struct {
  7266. Fresponse_type Tuint8_t
  7267. Fpad0 Tuint8_t
  7268. Fsequence Tuint16_t
  7269. Flength Tuint32_t
  7270. Fstart_id Tuint32_t
  7271. Fcount Tuint32_t
  7272. }
  7273. type Txcb_xc_misc_get_xid_list_cookie_t = struct {
  7274. Fsequence uint32
  7275. }
  7276. type Txcb_xc_misc_get_xid_list_request_t = struct {
  7277. Fmajor_opcode Tuint8_t
  7278. Fminor_opcode Tuint8_t
  7279. Flength Tuint16_t
  7280. Fcount Tuint32_t
  7281. }
  7282. type Txcb_xc_misc_get_xid_list_reply_t = struct {
  7283. Fresponse_type Tuint8_t
  7284. Fpad0 Tuint8_t
  7285. Fsequence Tuint16_t
  7286. Flength Tuint32_t
  7287. Fids_len Tuint32_t
  7288. Fpad1 [20]Tuint8_t
  7289. }
  7290. /**
  7291. * @}
  7292. */
  7293. /* Public interface */
  7294. func Xxcb_generate_id(tls *libc.TLS, c uintptr) (r Tuint32_t) {
  7295. var range1, xc_misc_reply uintptr
  7296. var ret Tuint32_t
  7297. _, _, _ = range1, ret, xc_misc_reply
  7298. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7299. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7300. }
  7301. libc.Xpthread_mutex_lock(tls, c+21112)
  7302. 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) {
  7303. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast == uint32(0) {
  7304. /* finish setting up initial range */
  7305. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
  7306. } else {
  7307. /* check for extension */
  7308. xc_misc_reply = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)))
  7309. if !(xc_misc_reply != 0) {
  7310. libc.Xpthread_mutex_unlock(tls, c+21112)
  7311. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7312. }
  7313. /* get new range */
  7314. range1 = Xxcb_xc_misc_get_xid_range_reply(tls, c, Xxcb_xc_misc_get_xid_range(tls, c), uintptr(0))
  7315. /* XXX The latter disjunct is what the server returns
  7316. when it is out of XIDs. Sweet. */
  7317. 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) {
  7318. libc.Xpthread_mutex_unlock(tls, c+21112)
  7319. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7320. }
  7321. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id
  7322. (*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
  7323. libc.Xfree(tls, range1)
  7324. }
  7325. } else {
  7326. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast += (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
  7327. }
  7328. ret = (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast | (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase
  7329. libc.Xpthread_mutex_unlock(tls, c+21112)
  7330. return ret
  7331. }
  7332. /* Private interface */
  7333. func X_xcb_xid_init(tls *libc.TLS, c uintptr) (r int32) {
  7334. if libc.Xpthread_mutex_init(tls, c+21112, uintptr(0)) != 0 {
  7335. return 0
  7336. }
  7337. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = uint32(0)
  7338. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = uint32(0)
  7339. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_base
  7340. (*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
  7341. return int32(1)
  7342. }
  7343. func X_xcb_xid_destroy(tls *libc.TLS, c uintptr) {
  7344. libc.Xpthread_mutex_destroy(tls, c+21112)
  7345. }
  7346. type T_xcb_map = struct {
  7347. Fhead uintptr
  7348. Ftail uintptr
  7349. }
  7350. type Tnode = struct {
  7351. Fnext uintptr
  7352. Fkey uint32
  7353. Fdata uintptr
  7354. }
  7355. type T_xcb_map1 = struct {
  7356. Fhead uintptr
  7357. Ftail uintptr
  7358. }
  7359. /* Private interface */
  7360. func X_xcb_map_new(tls *libc.TLS) (r uintptr) {
  7361. var list uintptr
  7362. _ = list
  7363. list = libc.Xmalloc(tls, uint64(16))
  7364. if !(list != 0) {
  7365. return uintptr(0)
  7366. }
  7367. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = uintptr(0)
  7368. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = list
  7369. return list
  7370. }
  7371. func X_xcb_map_delete(tls *libc.TLS, list uintptr, do_free Txcb_list_free_func_t) {
  7372. var cur uintptr
  7373. _ = cur
  7374. if !(list != 0) {
  7375. return
  7376. }
  7377. for (*T_xcb_map)(unsafe.Pointer(list)).Fhead != 0 {
  7378. cur = (*T_xcb_map)(unsafe.Pointer(list)).Fhead
  7379. if do_free != 0 {
  7380. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{do_free})))(tls, (*Tnode)(unsafe.Pointer(cur)).Fdata)
  7381. }
  7382. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = (*Tnode)(unsafe.Pointer(cur)).Fnext
  7383. libc.Xfree(tls, cur)
  7384. }
  7385. libc.Xfree(tls, list)
  7386. }
  7387. func X_xcb_map_put(tls *libc.TLS, list uintptr, key uint32, data uintptr) (r int32) {
  7388. var cur uintptr
  7389. _ = cur
  7390. cur = libc.Xmalloc(tls, uint64(24))
  7391. if !(cur != 0) {
  7392. return 0
  7393. }
  7394. (*Tnode)(unsafe.Pointer(cur)).Fkey = key
  7395. (*Tnode)(unsafe.Pointer(cur)).Fdata = data
  7396. (*Tnode)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  7397. *(*uintptr)(unsafe.Pointer((*T_xcb_map)(unsafe.Pointer(list)).Ftail)) = cur
  7398. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7399. return int32(1)
  7400. }
  7401. func X_xcb_map_remove(tls *libc.TLS, list uintptr, key uint32) (r uintptr) {
  7402. var cur, ret, tmp uintptr
  7403. _, _, _ = cur, ret, tmp
  7404. cur = list
  7405. for {
  7406. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7407. break
  7408. }
  7409. if (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fkey == key {
  7410. tmp = *(*uintptr)(unsafe.Pointer(cur))
  7411. ret = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fdata
  7412. *(*uintptr)(unsafe.Pointer(cur)) = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fnext
  7413. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7414. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7415. }
  7416. libc.Xfree(tls, tmp)
  7417. return ret
  7418. }
  7419. goto _1
  7420. _1:
  7421. ;
  7422. cur = *(*uintptr)(unsafe.Pointer(cur))
  7423. }
  7424. return uintptr(0)
  7425. }
  7426. const m_AI_ADDRCONFIG = 0x20
  7427. const m_AI_ALL = 0x10
  7428. const m_AI_CANONNAME = 0x02
  7429. const m_AI_NUMERICHOST = 4
  7430. const m_AI_NUMERICSERV = 1024
  7431. const m_AI_PASSIVE = 0x01
  7432. const m_AI_V4MAPPED = 0x08
  7433. const m_HOST_NOT_FOUND = 1
  7434. const m_MSG_CTRUNC2 = 0x0008
  7435. const m_MSG_TRUNC2 = 0x0020
  7436. const m_NI_DGRAM = 0x10
  7437. const m_NI_MAXHOST = 255
  7438. const m_NI_MAXSERV = 32
  7439. const m_NI_NAMEREQD = 0x08
  7440. const m_NI_NOFQDN = 0x04
  7441. const m_NI_NUMERICHOST = 0x01
  7442. const m_NI_NUMERICSCOPE = 0x100
  7443. const m_NI_NUMERICSERV = 0x02
  7444. const m_NO_ADDRESS = "NO_DATA"
  7445. const m_NO_DATA = 4
  7446. const m_NO_RECOVERY = 3
  7447. const m_O_NONBLOCK1 = 04000
  7448. const m_SCM_RIGHTS1 = 0x01
  7449. const m_SOCK_CLOEXEC1 = 524288
  7450. const m_SOL_TCP = 6
  7451. const m_TCPI_OPT_ECN = 8
  7452. const m_TCPI_OPT_SACK = 2
  7453. const m_TCPI_OPT_TIMESTAMPS = 1
  7454. const m_TCPI_OPT_WSCALE = 4
  7455. const m_TCPOLEN_MAXSEG = 4
  7456. const m_TCPOLEN_SACK_PERMITTED = 2
  7457. const m_TCPOLEN_TIMESTAMP = 10
  7458. const m_TCPOLEN_WINDOW = 3
  7459. const m_TCPOPT_EOL = 0
  7460. const m_TCPOPT_MAXSEG = 2
  7461. const m_TCPOPT_NOP = 1
  7462. const m_TCPOPT_SACK = 5
  7463. const m_TCPOPT_SACK_PERMITTED = 4
  7464. const m_TCPOPT_TIMESTAMP = 8
  7465. const m_TCPOPT_WINDOW = 3
  7466. const m_TCP_CA_CWR = 2
  7467. const m_TCP_CA_Disorder = 1
  7468. const m_TCP_CA_Loss = 4
  7469. const m_TCP_CA_Open = 0
  7470. const m_TCP_CA_Recovery = 3
  7471. const m_TCP_CC_INFO = 26
  7472. const m_TCP_CLOSE = 7
  7473. const m_TCP_CLOSE_WAIT = 8
  7474. const m_TCP_CLOSING = 11
  7475. const m_TCP_CM_INQ = "TCP_INQ"
  7476. const m_TCP_CONGESTION = 13
  7477. const m_TCP_CORK = 3
  7478. const m_TCP_DEFER_ACCEPT = 9
  7479. const m_TCP_ESTABLISHED = 1
  7480. const m_TCP_FASTOPEN = 23
  7481. const m_TCP_FASTOPEN_CONNECT = 30
  7482. const m_TCP_FASTOPEN_KEY = 33
  7483. const m_TCP_FASTOPEN_NO_COOKIE = 34
  7484. const m_TCP_FIN_WAIT1 = 4
  7485. const m_TCP_FIN_WAIT2 = 5
  7486. const m_TCP_INFO = 11
  7487. const m_TCP_INQ = 36
  7488. const m_TCP_KEEPCNT = 6
  7489. const m_TCP_KEEPIDLE = 4
  7490. const m_TCP_KEEPINTVL = 5
  7491. const m_TCP_LAST_ACK = 9
  7492. const m_TCP_LINGER2 = 8
  7493. const m_TCP_LISTEN = 10
  7494. const m_TCP_MAXSEG = 2
  7495. const m_TCP_MD5SIG = 14
  7496. const m_TCP_MD5SIG_EXT = 32
  7497. const m_TCP_MD5SIG_FLAG_IFINDEX = 0x2
  7498. const m_TCP_MD5SIG_FLAG_PREFIX = 0x1
  7499. const m_TCP_MD5SIG_MAXKEYLEN = 80
  7500. const m_TCP_NODELAY = 1
  7501. const m_TCP_NOTSENT_LOWAT = 25
  7502. const m_TCP_QUEUE_SEQ = 21
  7503. const m_TCP_QUICKACK = 12
  7504. const m_TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT = 0x1
  7505. const m_TCP_REPAIR = 19
  7506. const m_TCP_REPAIR_OFF = 0
  7507. const m_TCP_REPAIR_ON = 1
  7508. const m_TCP_REPAIR_OPTIONS = 22
  7509. const m_TCP_REPAIR_QUEUE = 20
  7510. const m_TCP_REPAIR_WINDOW = 29
  7511. const m_TCP_SAVED_SYN = 28
  7512. const m_TCP_SAVE_SYN = 27
  7513. const m_TCP_SYNCNT = 7
  7514. const m_TCP_SYN_RECV = 3
  7515. const m_TCP_SYN_SENT = 2
  7516. const m_TCP_THIN_DUPACK = 17
  7517. const m_TCP_THIN_LINEAR_TIMEOUTS = 16
  7518. const m_TCP_TIMESTAMP = 24
  7519. const m_TCP_TIME_WAIT = 6
  7520. const m_TCP_TX_DELAY = 37
  7521. const m_TCP_ULP = 31
  7522. const m_TCP_USER_TIMEOUT = 18
  7523. const m_TCP_WINDOW_CLAMP = 10
  7524. const m_TCP_ZEROCOPY_RECEIVE = 35
  7525. const m_TH_ACK = 0x10
  7526. const m_TH_FIN = 0x01
  7527. const m_TH_PUSH = 0x08
  7528. const m_TH_RST = 0x04
  7529. const m_TH_SYN = 0x02
  7530. const m_TH_URG = 0x20
  7531. const m_TRY_AGAIN = 2
  7532. type Tmax_align_t = struct {
  7533. F__ll int64
  7534. F__ld float64
  7535. }
  7536. type Tptrdiff_t = int64
  7537. type Tsockaddr_un = struct {
  7538. Fsun_family Tsa_family_t
  7539. Fsun_path [108]uint8
  7540. }
  7541. const _TCP_NLA_PAD = 0
  7542. const _TCP_NLA_BUSY = 1
  7543. const _TCP_NLA_RWND_LIMITED = 2
  7544. const _TCP_NLA_SNDBUF_LIMITED = 3
  7545. const _TCP_NLA_DATA_SEGS_OUT = 4
  7546. const _TCP_NLA_TOTAL_RETRANS = 5
  7547. const _TCP_NLA_PACING_RATE = 6
  7548. const _TCP_NLA_DELIVERY_RATE = 7
  7549. const _TCP_NLA_SND_CWND = 8
  7550. const _TCP_NLA_REORDERING = 9
  7551. const _TCP_NLA_MIN_RTT = 10
  7552. const _TCP_NLA_RECUR_RETRANS = 11
  7553. const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12
  7554. const _TCP_NLA_SNDQ_SIZE = 13
  7555. const _TCP_NLA_CA_STATE = 14
  7556. const _TCP_NLA_SND_SSTHRESH = 15
  7557. const _TCP_NLA_DELIVERED = 16
  7558. const _TCP_NLA_DELIVERED_CE = 17
  7559. const _TCP_NLA_BYTES_SENT = 18
  7560. const _TCP_NLA_BYTES_RETRANS = 19
  7561. const _TCP_NLA_DSACK_DUPS = 20
  7562. const _TCP_NLA_REORD_SEEN = 21
  7563. const _TCP_NLA_SRTT = 22
  7564. const _TCP_NLA_TIMEOUT_REHASH = 23
  7565. const _TCP_NLA_BYTES_NOTSENT = 24
  7566. const _TCP_NLA_EDT = 25
  7567. const _TCP_NLA_TTL = 26
  7568. type Ttcp_seq = uint32
  7569. type Ttcphdr = struct {
  7570. F__ccgo0_0 struct {
  7571. F__ccgo1_0 [0]struct {
  7572. Fth_sport Tuint16_t
  7573. Fth_dport Tuint16_t
  7574. Fth_seq Tuint32_t
  7575. Fth_ack Tuint32_t
  7576. F__ccgo12 uint8
  7577. Fth_flags Tuint8_t
  7578. Fth_win Tuint16_t
  7579. Fth_sum Tuint16_t
  7580. Fth_urp Tuint16_t
  7581. }
  7582. F__ccgo0_0 struct {
  7583. Fsource Tuint16_t
  7584. Fdest Tuint16_t
  7585. Fseq Tuint32_t
  7586. Fack_seq Tuint32_t
  7587. F__ccgo12 uint16
  7588. Fwindow Tuint16_t
  7589. Fcheck Tuint16_t
  7590. Furg_ptr Tuint16_t
  7591. }
  7592. }
  7593. }
  7594. type _tcp_fastopen_client_fail = int32
  7595. const _TFO_STATUS_UNSPEC = 0
  7596. const _TFO_COOKIE_UNAVAILABLE = 1
  7597. const _TFO_DATA_NOT_ACKED = 2
  7598. const _TFO_SYN_RETRANSMITTED = 3
  7599. type Ttcp_info = struct {
  7600. Ftcpi_state Tuint8_t
  7601. Ftcpi_ca_state Tuint8_t
  7602. Ftcpi_retransmits Tuint8_t
  7603. Ftcpi_probes Tuint8_t
  7604. Ftcpi_backoff Tuint8_t
  7605. Ftcpi_options Tuint8_t
  7606. F__ccgo6 uint8
  7607. F__ccgo7 uint8
  7608. Ftcpi_rto Tuint32_t
  7609. Ftcpi_ato Tuint32_t
  7610. Ftcpi_snd_mss Tuint32_t
  7611. Ftcpi_rcv_mss Tuint32_t
  7612. Ftcpi_unacked Tuint32_t
  7613. Ftcpi_sacked Tuint32_t
  7614. Ftcpi_lost Tuint32_t
  7615. Ftcpi_retrans Tuint32_t
  7616. Ftcpi_fackets Tuint32_t
  7617. Ftcpi_last_data_sent Tuint32_t
  7618. Ftcpi_last_ack_sent Tuint32_t
  7619. Ftcpi_last_data_recv Tuint32_t
  7620. Ftcpi_last_ack_recv Tuint32_t
  7621. Ftcpi_pmtu Tuint32_t
  7622. Ftcpi_rcv_ssthresh Tuint32_t
  7623. Ftcpi_rtt Tuint32_t
  7624. Ftcpi_rttvar Tuint32_t
  7625. Ftcpi_snd_ssthresh Tuint32_t
  7626. Ftcpi_snd_cwnd Tuint32_t
  7627. Ftcpi_advmss Tuint32_t
  7628. Ftcpi_reordering Tuint32_t
  7629. Ftcpi_rcv_rtt Tuint32_t
  7630. Ftcpi_rcv_space Tuint32_t
  7631. Ftcpi_total_retrans Tuint32_t
  7632. Ftcpi_pacing_rate Tuint64_t
  7633. Ftcpi_max_pacing_rate Tuint64_t
  7634. Ftcpi_bytes_acked Tuint64_t
  7635. Ftcpi_bytes_received Tuint64_t
  7636. Ftcpi_segs_out Tuint32_t
  7637. Ftcpi_segs_in Tuint32_t
  7638. Ftcpi_notsent_bytes Tuint32_t
  7639. Ftcpi_min_rtt Tuint32_t
  7640. Ftcpi_data_segs_in Tuint32_t
  7641. Ftcpi_data_segs_out Tuint32_t
  7642. Ftcpi_delivery_rate Tuint64_t
  7643. Ftcpi_busy_time Tuint64_t
  7644. Ftcpi_rwnd_limited Tuint64_t
  7645. Ftcpi_sndbuf_limited Tuint64_t
  7646. Ftcpi_delivered Tuint32_t
  7647. Ftcpi_delivered_ce Tuint32_t
  7648. Ftcpi_bytes_sent Tuint64_t
  7649. Ftcpi_bytes_retrans Tuint64_t
  7650. Ftcpi_dsack_dups Tuint32_t
  7651. Ftcpi_reord_seen Tuint32_t
  7652. Ftcpi_rcv_ooopack Tuint32_t
  7653. Ftcpi_snd_wnd Tuint32_t
  7654. }
  7655. type Ttcp_md5sig = struct {
  7656. Ftcpm_addr Tsockaddr_storage
  7657. Ftcpm_flags Tuint8_t
  7658. Ftcpm_prefixlen Tuint8_t
  7659. Ftcpm_keylen Tuint16_t
  7660. Ftcpm_ifindex int32
  7661. Ftcpm_key [80]Tuint8_t
  7662. }
  7663. type Ttcp_diag_md5sig = struct {
  7664. Ftcpm_family Tuint8_t
  7665. Ftcpm_prefixlen Tuint8_t
  7666. Ftcpm_keylen Tuint16_t
  7667. Ftcpm_addr [4]Tuint32_t
  7668. Ftcpm_key [80]Tuint8_t
  7669. }
  7670. type Ttcp_repair_window = struct {
  7671. Fsnd_wl1 Tuint32_t
  7672. Fsnd_wnd Tuint32_t
  7673. Fmax_window Tuint32_t
  7674. Frcv_wnd Tuint32_t
  7675. Frcv_wup Tuint32_t
  7676. }
  7677. type Ttcp_zerocopy_receive = struct {
  7678. Faddress Tuint64_t
  7679. Flength Tuint32_t
  7680. Frecv_skip_hint Tuint32_t
  7681. Finq Tuint32_t
  7682. Ferr Tint32_t
  7683. Fcopybuf_address Tuint64_t
  7684. Fcopybuf_len Tint32_t
  7685. Fflags Tuint32_t
  7686. Fmsg_control Tuint64_t
  7687. Fmsg_controllen Tuint64_t
  7688. Fmsg_flags Tuint32_t
  7689. Freserved Tuint32_t
  7690. }
  7691. type Taddrinfo = struct {
  7692. Fai_flags int32
  7693. Fai_family int32
  7694. Fai_socktype int32
  7695. Fai_protocol int32
  7696. Fai_addrlen Tsocklen_t
  7697. Fai_addr uintptr
  7698. Fai_canonname uintptr
  7699. Fai_next uintptr
  7700. }
  7701. type Tnetent = struct {
  7702. Fn_name uintptr
  7703. Fn_aliases uintptr
  7704. Fn_addrtype int32
  7705. Fn_net Tuint32_t
  7706. }
  7707. type Thostent = struct {
  7708. Fh_name uintptr
  7709. Fh_aliases uintptr
  7710. Fh_addrtype int32
  7711. Fh_length int32
  7712. Fh_addr_list uintptr
  7713. }
  7714. type Tservent = struct {
  7715. Fs_name uintptr
  7716. Fs_aliases uintptr
  7717. Fs_port int32
  7718. Fs_proto uintptr
  7719. }
  7720. type Tprotoent = struct {
  7721. Fp_name uintptr
  7722. Fp_aliases uintptr
  7723. Fp_proto int32
  7724. }
  7725. func Xxcb_popcount(tls *libc.TLS, mask Tuint32_t) (r int32) {
  7726. var y Tuint32_t
  7727. _ = y
  7728. y = mask >> libc.Int32FromInt32(1) & uint32(033333333333)
  7729. y = mask - y - y>>libc.Int32FromInt32(1)&uint32(033333333333)
  7730. return libc.Int32FromUint32((y + y>>libc.Int32FromInt32(3)) & uint32(030707070707) % uint32(077))
  7731. }
  7732. func Xxcb_sumof(tls *libc.TLS, list uintptr, len1 int32) (r int32) {
  7733. var i, s int32
  7734. _, _ = i, s
  7735. s = 0
  7736. i = 0
  7737. for {
  7738. if !(i < len1) {
  7739. break
  7740. }
  7741. s += libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(list)))
  7742. list++
  7743. goto _1
  7744. _1:
  7745. ;
  7746. i++
  7747. }
  7748. return s
  7749. }
  7750. func __xcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7751. bp := tls.Alloc(16)
  7752. defer tls.Free(16)
  7753. var colon, slash uintptr
  7754. var display, len1, screen int32
  7755. var _ /* dot at bp+0 */ uintptr
  7756. var _ /* end at bp+8 */ uintptr
  7757. _, _, _, _, _ = colon, display, len1, screen, slash
  7758. if !(name != 0) || !(*(*uint8)(unsafe.Pointer(name)) != 0) {
  7759. name = libc.Xgetenv(tls, __ccgo_ts+4)
  7760. }
  7761. if !(name != 0) {
  7762. return 0
  7763. }
  7764. slash = libc.Xstrrchr(tls, name, int32('/'))
  7765. if slash != 0 {
  7766. len1 = int32(int64(slash) - int64(name))
  7767. if protocol != 0 {
  7768. *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7769. if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
  7770. return 0
  7771. }
  7772. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(protocol)), name, libc.Uint64FromInt32(len1))
  7773. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(protocol)) + uintptr(len1))) = uint8('\000')
  7774. }
  7775. name = slash + uintptr(1)
  7776. } else {
  7777. if protocol != 0 {
  7778. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7779. }
  7780. }
  7781. colon = libc.Xstrrchr(tls, name, int32(':'))
  7782. if !(colon != 0) {
  7783. goto error_out
  7784. }
  7785. len1 = int32(int64(colon) - int64(name))
  7786. colon++
  7787. display = libc.Int32FromUint64(libc.Xstrtoul(tls, colon, bp, int32(10)))
  7788. if *(*uintptr)(unsafe.Pointer(bp)) == colon {
  7789. goto error_out
  7790. }
  7791. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('\000') {
  7792. screen = 0
  7793. } else {
  7794. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('.') {
  7795. goto error_out
  7796. }
  7797. *(*uintptr)(unsafe.Pointer(bp))++
  7798. screen = libc.Int32FromUint64(libc.Xstrtoul(tls, *(*uintptr)(unsafe.Pointer(bp)), bp+8, int32(10)))
  7799. if *(*uintptr)(unsafe.Pointer(bp + 8)) == *(*uintptr)(unsafe.Pointer(bp)) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))) != int32('\000') {
  7800. goto error_out
  7801. }
  7802. }
  7803. /* At this point, the display string is fully parsed and valid, but
  7804. * the caller's memory is untouched. */
  7805. *(*uintptr)(unsafe.Pointer(host)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7806. if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
  7807. goto error_out
  7808. }
  7809. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(host)), name, libc.Uint64FromInt32(len1))
  7810. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(host)) + uintptr(len1))) = uint8('\000')
  7811. *(*int32)(unsafe.Pointer(displayp)) = display
  7812. if screenp != 0 {
  7813. *(*int32)(unsafe.Pointer(screenp)) = screen
  7814. }
  7815. return int32(1)
  7816. goto error_out
  7817. error_out:
  7818. ;
  7819. if protocol != 0 {
  7820. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(protocol)))
  7821. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7822. }
  7823. return 0
  7824. }
  7825. func Xxcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7826. return __xcb_parse_display(tls, name, host, libc.UintptrFromInt32(0), displayp, screenp)
  7827. }
  7828. func __xcb_open(tls *libc.TLS, host uintptr, protocol uintptr, display int32) (r int32) {
  7829. bp := tls.Alloc(32)
  7830. defer tls.Free(32)
  7831. var actual_filelen, fd int32
  7832. var base, file uintptr
  7833. var filelen Tsize_t
  7834. var port, port1 uint16
  7835. var v1 uint64
  7836. _, _, _, _, _, _, _, _ = actual_filelen, base, fd, file, filelen, port, port1, v1
  7837. base = uintptr(unsafe.Pointer(&_unix_base))
  7838. file = libc.UintptrFromInt32(0)
  7839. /* If protocol or host is "unix", fall through to Unix socket code below */
  7840. if (!(protocol != 0) || libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) != int32('\000') && libc.Xstrcmp(tls, __ccgo_ts+12, host) != 0 {
  7841. /* display specifies TCP */
  7842. port = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  7843. return __xcb_open_tcp(tls, host, protocol, port)
  7844. }
  7845. filelen = libc.Xstrlen(tls, base) + uint64(1) + libc.Uint64FromInt64(4)*libc.Uint64FromInt32(3) + uint64(1)
  7846. file = libc.Xmalloc(tls, filelen)
  7847. if file == libc.UintptrFromInt32(0) {
  7848. return -int32(1)
  7849. }
  7850. /* display specifies Unix socket */
  7851. actual_filelen = libc.X__builtin_snprintf(tls, file, filelen, __ccgo_ts+17, libc.VaList(bp+8, base, display))
  7852. if actual_filelen < 0 {
  7853. libc.Xfree(tls, file)
  7854. return -int32(1)
  7855. }
  7856. /* snprintf may truncate the file */
  7857. if libc.Uint64FromInt32(actual_filelen) < filelen-uint64(1) {
  7858. v1 = libc.Uint64FromInt32(actual_filelen)
  7859. } else {
  7860. v1 = filelen - uint64(1)
  7861. }
  7862. filelen = v1
  7863. fd = __xcb_open_abstract(tls, protocol, file, filelen)
  7864. 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) {
  7865. libc.Xfree(tls, file)
  7866. return fd
  7867. }
  7868. fd = __xcb_open_unix(tls, protocol, file)
  7869. libc.Xfree(tls, file)
  7870. if fd < 0 && !(protocol != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  7871. port1 = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  7872. fd = __xcb_open_tcp(tls, host, protocol, port1)
  7873. }
  7874. return fd
  7875. return -int32(1) /* if control reaches here then something has gone wrong */
  7876. }
  7877. var _unix_base = [17]uint8{'/', 't', 'm', 'p', '/', '.', 'X', '1', '1', '-', 'u', 'n', 'i', 'x', '/', 'X'}
  7878. func __xcb_socket(tls *libc.TLS, family int32, type1 int32, proto int32) (r int32) {
  7879. bp := tls.Alloc(16)
  7880. defer tls.Free(16)
  7881. var fd int32
  7882. _ = fd
  7883. fd = libc.Xsocket(tls, family, type1|int32(m_SOCK_CLOEXEC1), proto)
  7884. if fd == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINVAL) {
  7885. fd = libc.Xsocket(tls, family, type1, proto)
  7886. if fd >= 0 {
  7887. libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
  7888. }
  7889. }
  7890. return fd
  7891. }
  7892. func __xcb_do_connect(tls *libc.TLS, fd int32, addr uintptr, addrlen int32) (r int32) {
  7893. bp := tls.Alloc(16)
  7894. defer tls.Free(16)
  7895. var _ /* on at bp+0 */ int32
  7896. *(*int32)(unsafe.Pointer(bp)) = int32(1)
  7897. if fd < 0 {
  7898. return -int32(1)
  7899. }
  7900. libc.Xsetsockopt(tls, fd, int32(m_IPPROTO_TCP), int32(m_TCP_NODELAY), bp, uint32(4))
  7901. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_KEEPALIVE), bp, uint32(4))
  7902. return libc.Xconnect(tls, fd, addr, libc.Uint32FromInt32(addrlen))
  7903. }
  7904. func __xcb_open_tcp(tls *libc.TLS, host uintptr, protocol uintptr, port uint16) (r int32) {
  7905. bp := tls.Alloc(80)
  7906. defer tls.Free(80)
  7907. var addr, bracket, v1 uintptr
  7908. var fd int32
  7909. var v2 bool
  7910. var _ /* hints at bp+0 */ Taddrinfo
  7911. var _ /* results at bp+56 */ uintptr
  7912. var _ /* service at bp+48 */ [6]uint8
  7913. _, _, _, _, _ = addr, bracket, fd, v1, v2
  7914. fd = -int32(1)
  7915. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+22, protocol) != 0 && libc.Xstrcmp(tls, __ccgo_ts+26, protocol) != 0 && libc.Xstrcmp(tls, __ccgo_ts+31, protocol) != 0 {
  7916. return -int32(1)
  7917. }
  7918. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  7919. host = __ccgo_ts + 37
  7920. }
  7921. libc.Xmemset(tls, bp, 0, uint64(48))
  7922. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICSERV)
  7923. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = m_PF_UNSPEC
  7924. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_socktype = int32(m_SOCK_STREAM)
  7925. /* Allow IPv6 addresses enclosed in brackets. */
  7926. if v2 = libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('['); v2 {
  7927. v1 = libc.Xstrrchr(tls, host, int32(']'))
  7928. bracket = v1
  7929. }
  7930. if v2 && v1 != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bracket + 1))) == int32('\000') {
  7931. *(*uint8)(unsafe.Pointer(bracket)) = uint8('\000')
  7932. host++
  7933. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICHOST)
  7934. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = int32(m_PF_INET6)
  7935. }
  7936. libc.X__builtin_snprintf(tls, bp+48, uint64(6), __ccgo_ts+47, libc.VaList(bp+72, libc.Int32FromUint16(port)))
  7937. if libc.Xgetaddrinfo(tls, host, bp+48, bp, bp+56) != 0 {
  7938. /* FIXME: use gai_strerror, and fill in error connection */
  7939. return -int32(1)
  7940. }
  7941. addr = *(*uintptr)(unsafe.Pointer(bp + 56))
  7942. for {
  7943. if !(addr != 0) {
  7944. break
  7945. }
  7946. fd = __xcb_socket(tls, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_family, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_socktype, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_protocol)
  7947. if __xcb_do_connect(tls, fd, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_addr, libc.Int32FromUint32((*Taddrinfo)(unsafe.Pointer(addr)).Fai_addrlen)) >= 0 {
  7948. break
  7949. }
  7950. libc.Xclose(tls, fd)
  7951. fd = -int32(1)
  7952. goto _3
  7953. _3:
  7954. ;
  7955. addr = (*Taddrinfo)(unsafe.Pointer(addr)).Fai_next
  7956. }
  7957. libc.Xfreeaddrinfo(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
  7958. return fd
  7959. }
  7960. func __xcb_open_unix(tls *libc.TLS, protocol uintptr, file uintptr) (r int32) {
  7961. bp := tls.Alloc(128)
  7962. defer tls.Free(128)
  7963. var fd int32
  7964. var _ /* addr at bp+0 */ Tsockaddr_un
  7965. var _ /* len at bp+112 */ Tsocklen_t
  7966. var _ /* val at bp+116 */ int32
  7967. _ = fd
  7968. *(*Tsocklen_t)(unsafe.Pointer(bp + 112)) = uint32(4)
  7969. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  7970. return -int32(1)
  7971. }
  7972. libc.Xstrcpy(tls, bp+2, file)
  7973. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  7974. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  7975. if fd == -int32(1) {
  7976. return -int32(1)
  7977. }
  7978. 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) {
  7979. *(*int32)(unsafe.Pointer(bp + 116)) = libc.Int32FromInt32(64) * libc.Int32FromInt32(1024)
  7980. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, uint32(4))
  7981. }
  7982. if libc.Xconnect(tls, fd, bp, uint32(110)) == -int32(1) {
  7983. libc.Xclose(tls, fd)
  7984. return -int32(1)
  7985. }
  7986. return fd
  7987. }
  7988. func __xcb_open_abstract(tls *libc.TLS, protocol uintptr, file uintptr, filelen Tsize_t) (r int32) {
  7989. bp := tls.Alloc(112)
  7990. defer tls.Free(112)
  7991. var fd int32
  7992. var namelen Tsocklen_t
  7993. var _ /* addr at bp+0 */ Tsockaddr_un
  7994. _, _ = fd, namelen
  7995. *(*Tsockaddr_un)(unsafe.Pointer(bp)) = Tsockaddr_un{}
  7996. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  7997. return -int32(1)
  7998. }
  7999. libc.Xstrcpy(tls, bp+2+uintptr(1), file)
  8000. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8001. namelen = uint32(uint64(libc.UintptrFromInt32(0)+2) + libc.Uint64FromInt32(1) + filelen)
  8002. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8003. if fd == -int32(1) {
  8004. return -int32(1)
  8005. }
  8006. if libc.Xconnect(tls, fd, bp, namelen) == -int32(1) {
  8007. libc.Xclose(tls, fd)
  8008. return -int32(1)
  8009. }
  8010. return fd
  8011. }
  8012. func Xxcb_connect(tls *libc.TLS, displayname uintptr, screenp uintptr) (r uintptr) {
  8013. return Xxcb_connect_to_display_with_auth_info(tls, displayname, libc.UintptrFromInt32(0), screenp)
  8014. }
  8015. func Xxcb_connect_to_display_with_auth_info(tls *libc.TLS, displayname uintptr, auth uintptr, screenp uintptr) (r uintptr) {
  8016. bp := tls.Alloc(64)
  8017. defer tls.Free(64)
  8018. var c uintptr
  8019. var fd, parsed int32
  8020. var _ /* display at bp+0 */ int32
  8021. var _ /* host at bp+8 */ uintptr
  8022. var _ /* ourauth at bp+24 */ Txcb_auth_info_t
  8023. var _ /* protocol at bp+16 */ uintptr
  8024. _, _, _ = c, fd, parsed
  8025. *(*int32)(unsafe.Pointer(bp)) = 0
  8026. *(*uintptr)(unsafe.Pointer(bp + 8)) = libc.UintptrFromInt32(0)
  8027. *(*uintptr)(unsafe.Pointer(bp + 16)) = libc.UintptrFromInt32(0)
  8028. parsed = __xcb_parse_display(tls, displayname, bp+8, bp+16, bp, screenp)
  8029. if !(parsed != 0) {
  8030. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_PARSE_ERR))
  8031. goto out
  8032. }
  8033. fd = __xcb_open(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), *(*uintptr)(unsafe.Pointer(bp + 16)), *(*int32)(unsafe.Pointer(bp)))
  8034. if fd == -int32(1) {
  8035. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  8036. goto out
  8037. }
  8038. if auth != 0 {
  8039. c = Xxcb_connect_to_fd(tls, fd, auth)
  8040. goto out
  8041. }
  8042. if X_xcb_get_auth_info(tls, fd, bp+24, *(*int32)(unsafe.Pointer(bp))) != 0 {
  8043. c = Xxcb_connect_to_fd(tls, fd, bp+24)
  8044. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fname)
  8045. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fdata)
  8046. } else {
  8047. c = Xxcb_connect_to_fd(tls, fd, uintptr(0))
  8048. }
  8049. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  8050. goto out
  8051. }
  8052. /* Make sure requested screen number is in bounds for this server */
  8053. 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) {
  8054. Xxcb_disconnect(tls, c)
  8055. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_INVALID_SCREEN))
  8056. goto out
  8057. }
  8058. goto out
  8059. out:
  8060. ;
  8061. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
  8062. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
  8063. return c
  8064. }
  8065. const m_AUTH_PROTO_MIT_MAGIC_COOKIE = "MIT-MAGIC-COOKIE-1"
  8066. const m_AUTH_PROTO_XDM_AUTHORIZATION = "XDM-AUTHORIZATION-1"
  8067. const m_CANBSIZ = 255
  8068. const m_DEV_BSIZE = 512
  8069. const m_FALSE = 0
  8070. const m_FUNCPROTO = 15
  8071. const m_FamilyKrb5Principal = 253
  8072. const m_FamilyLocal = 256
  8073. const m_FamilyLocalHost = 252
  8074. const m_FamilyNetname = 254
  8075. const m_FamilyWild = 65535
  8076. const m_INITIAL_SOCKNAME_SLACK = 108
  8077. const m_ITIMER_PROF = 2
  8078. const m_ITIMER_REAL = 0
  8079. const m_ITIMER_VIRTUAL = 1
  8080. const m_LOCK_ERROR = 1
  8081. const m_LOCK_SUCCESS = 0
  8082. const m_LOCK_TIMEOUT = 2
  8083. const m_MAXHOSTNAMELEN = 64
  8084. const m_MAXNAMLEN = 255
  8085. const m_MAXPATHLEN = 4096
  8086. const m_MAXSYMLINKS = 20
  8087. const m_NBBY = 8
  8088. const m_NCARGS = 131072
  8089. const m_NGROUPS = 32
  8090. const m_NOFILE = 256
  8091. const m_NeedFunctionPrototypes = 1
  8092. const m_NeedNestedPrototypes = 1
  8093. const m_NeedVarargsPrototypes = 1
  8094. const m_NeedWidePrototypes = 0
  8095. const m_PRIO_MAX = 20
  8096. const m_PRIO_PGRP = 1
  8097. const m_PRIO_PROCESS = 0
  8098. const m_PRIO_USER = 2
  8099. const m_RLIMIT_AS = 9
  8100. const m_RLIMIT_CORE = 4
  8101. const m_RLIMIT_CPU = 0
  8102. const m_RLIMIT_DATA = 2
  8103. const m_RLIMIT_FSIZE = 1
  8104. const m_RLIMIT_LOCKS = 10
  8105. const m_RLIMIT_MEMLOCK = 8
  8106. const m_RLIMIT_MSGQUEUE = 12
  8107. const m_RLIMIT_NICE = 13
  8108. const m_RLIMIT_NLIMITS = 16
  8109. const m_RLIMIT_NOFILE = 7
  8110. const m_RLIMIT_NPROC = 6
  8111. const m_RLIMIT_RSS = 5
  8112. const m_RLIMIT_RTPRIO = 14
  8113. const m_RLIMIT_RTTIME = 15
  8114. const m_RLIMIT_SIGPENDING = 11
  8115. const m_RLIMIT_STACK = 3
  8116. const m_RLIM_NLIMITS = "RLIMIT_NLIMITS"
  8117. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  8118. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  8119. const m_RUSAGE_SELF = 0
  8120. const m_RUSAGE_THREAD = 1
  8121. const m_SOCK_CLOEXEC2 = 02000000
  8122. const m_TRUE = 1
  8123. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  8124. const m_XDM_KA_RTX_LIMIT = 4
  8125. const m_XDM_MAX_MSGLEN = 8192
  8126. const m_XDM_MAX_RTX = 32
  8127. const m_XDM_MIN_RTX = 2
  8128. const m_XDM_PROTOCOL_VERSION = 1
  8129. const m_XDM_RTX_LIMIT = 7
  8130. const m_XDM_UDP_PORT = 177
  8131. const m_XMD_H = 1
  8132. const m__X_INLINE = "inline"
  8133. const m__X_RESTRICT_KYWD = "restrict"
  8134. const m__Xconst = "const"
  8135. const m_prlimit64 = "prlimit"
  8136. type TXauth = struct {
  8137. Ffamily uint16
  8138. Faddress_length uint16
  8139. Faddress uintptr
  8140. Fnumber_length uint16
  8141. Fnumber uintptr
  8142. Fname_length uint16
  8143. Fname uintptr
  8144. Fdata_length uint16
  8145. Fdata uintptr
  8146. }
  8147. type Txauth = TXauth
  8148. type Titimerval = struct {
  8149. Fit_interval Ttimeval
  8150. Fit_value Ttimeval
  8151. }
  8152. type Ttimezone = struct {
  8153. Ftz_minuteswest int32
  8154. Ftz_dsttime int32
  8155. }
  8156. type Trlim_t = uint64
  8157. type Trlimit = struct {
  8158. Frlim_cur Trlim_t
  8159. Frlim_max Trlim_t
  8160. }
  8161. type Trusage = struct {
  8162. Fru_utime Ttimeval
  8163. Fru_stime Ttimeval
  8164. Fru_maxrss int64
  8165. Fru_ixrss int64
  8166. Fru_idrss int64
  8167. Fru_isrss int64
  8168. Fru_minflt int64
  8169. Fru_majflt int64
  8170. Fru_nswap int64
  8171. Fru_inblock int64
  8172. Fru_oublock int64
  8173. Fru_msgsnd int64
  8174. Fru_msgrcv int64
  8175. Fru_nsignals int64
  8176. Fru_nvcsw int64
  8177. Fru_nivcsw int64
  8178. F__reserved [16]int64
  8179. }
  8180. type TINT64 = int64
  8181. type TINT32 = int32
  8182. type TINT16 = int16
  8183. type TINT8 = int8
  8184. type TCARD64 = uint64
  8185. type TCARD32 = uint32
  8186. type TCARD16 = uint16
  8187. type TCARD8 = uint8
  8188. type TBITS32 = uint32
  8189. type TBITS16 = uint16
  8190. type TBYTE = uint8
  8191. type TBOOL = uint8
  8192. type TxdmOpCode = int32
  8193. const _BROADCAST_QUERY = 1
  8194. const _QUERY = 2
  8195. const _INDIRECT_QUERY = 3
  8196. const _FORWARD_QUERY = 4
  8197. const _WILLING = 5
  8198. const _UNWILLING = 6
  8199. const _REQUEST = 7
  8200. const _ACCEPT = 8
  8201. const _DECLINE = 9
  8202. const _MANAGE = 10
  8203. const _REFUSE = 11
  8204. const _FAILED = 12
  8205. const _KEEPALIVE = 13
  8206. const _ALIVE = 14
  8207. type Txdmcp_states = int32
  8208. const _XDM_QUERY = 0
  8209. const _XDM_BROADCAST = 1
  8210. const _XDM_INDIRECT = 2
  8211. const _XDM_COLLECT_QUERY = 3
  8212. const _XDM_COLLECT_BROADCAST_QUERY = 4
  8213. const _XDM_COLLECT_INDIRECT_QUERY = 5
  8214. const _XDM_START_CONNECTION = 6
  8215. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  8216. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  8217. const _XDM_MANAGE = 9
  8218. const _XDM_RUN_SESSION = 10
  8219. const _XDM_OFF = 11
  8220. const _XDM_AWAIT_USER_INPUT = 12
  8221. const _XDM_KEEPALIVE = 13
  8222. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  8223. const _XDM_KEEP_ME_LAST = 15
  8224. type TCARD8Ptr = uintptr
  8225. type TCARD16Ptr = uintptr
  8226. type TCARD32Ptr = uintptr
  8227. type TARRAY8 = struct {
  8228. Flength TCARD16
  8229. Fdata TCARD8Ptr
  8230. }
  8231. type T_ARRAY8 = TARRAY8
  8232. type TARRAY8Ptr = uintptr
  8233. type TARRAY16 = struct {
  8234. Flength TCARD8
  8235. Fdata TCARD16Ptr
  8236. }
  8237. type T_ARRAY16 = TARRAY16
  8238. type TARRAY16Ptr = uintptr
  8239. type TARRAY32 = struct {
  8240. Flength TCARD8
  8241. Fdata TCARD32Ptr
  8242. }
  8243. type T_ARRAY32 = TARRAY32
  8244. type TARRAY32Ptr = uintptr
  8245. type TARRAYofARRAY8 = struct {
  8246. Flength TCARD8
  8247. Fdata TARRAY8Ptr
  8248. }
  8249. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  8250. type TARRAYofARRAY8Ptr = uintptr
  8251. type TXdmcpHeader = struct {
  8252. Fversion TCARD16
  8253. Fopcode TCARD16
  8254. Flength TCARD16
  8255. }
  8256. type T_XdmcpHeader = TXdmcpHeader
  8257. type TXdmcpHeaderPtr = uintptr
  8258. type TXdmcpBuffer = struct {
  8259. Fdata uintptr
  8260. Fsize int32
  8261. Fpointer int32
  8262. Fcount int32
  8263. }
  8264. type T_XdmcpBuffer = TXdmcpBuffer
  8265. type TXdmcpBufferPtr = uintptr
  8266. type TXdmAuthKeyRec = struct {
  8267. Fdata [8]TBYTE
  8268. }
  8269. type T_XdmAuthKey = TXdmAuthKeyRec
  8270. type TXdmAuthKeyPtr = uintptr
  8271. type TXdmcpNetaddr = uintptr
  8272. type _auth_protos = int32
  8273. const _AUTH_XA1 = 0
  8274. const _AUTH_MC1 = 1
  8275. const _N_AUTH_PROTOS = 2
  8276. var _authnames = [2]uintptr{
  8277. 0: __ccgo_ts + 51,
  8278. 1: __ccgo_ts + 71,
  8279. }
  8280. var _authnameslen = [2]int32{
  8281. 0: libc.Int32FromUint64(libc.Uint64FromInt64(20) - libc.Uint64FromInt32(1)),
  8282. 1: libc.Int32FromUint64(libc.Uint64FromInt64(19) - libc.Uint64FromInt32(1)),
  8283. }
  8284. func _memdup(tls *libc.TLS, dst uintptr, src uintptr, len1 Tsize_t) (r Tsize_t) {
  8285. if len1 != 0 {
  8286. *(*uintptr)(unsafe.Pointer(dst)) = libc.Xmalloc(tls, len1)
  8287. } else {
  8288. *(*uintptr)(unsafe.Pointer(dst)) = uintptr(0)
  8289. }
  8290. if !(*(*uintptr)(unsafe.Pointer(dst)) != 0) {
  8291. return uint64(0)
  8292. }
  8293. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(dst)), src, len1)
  8294. return len1
  8295. }
  8296. func _authname_match(tls *libc.TLS, kind _auth_protos, name uintptr, namelen Tsize_t) (r int32) {
  8297. if libc.Uint64FromInt32(_authnameslen[kind]) != namelen {
  8298. return 0
  8299. }
  8300. if libc.Xmemcmp(tls, _authnames[kind], name, namelen) != 0 {
  8301. return 0
  8302. }
  8303. return int32(1)
  8304. }
  8305. func _get_authptr(tls *libc.TLS, sockname uintptr, display int32) (r uintptr) {
  8306. bp := tls.Alloc(320)
  8307. defer tls.Free(320)
  8308. var addr uintptr
  8309. var addrlen, dispbuflen int32
  8310. var family uint16
  8311. var v1 uint64
  8312. var _ /* dispbuf at bp+256 */ [40]uint8
  8313. var _ /* hostnamebuf at bp+0 */ [256]uint8
  8314. _, _, _, _, _ = addr, addrlen, dispbuflen, family, v1
  8315. addr = uintptr(0)
  8316. addrlen = 0
  8317. family = libc.Uint16FromInt32(libc.Int32FromInt32(m_FamilyLocal)) /* 256 */
  8318. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8319. case int32(m_PF_INET6):
  8320. addr = sockname + 8
  8321. addrlen = int32(16)
  8322. 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)) {
  8323. 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)) {
  8324. family = uint16(_XCB_FAMILY_INTERNET_6)
  8325. }
  8326. break
  8327. }
  8328. addr += uintptr(12)
  8329. /* if v4-mapped, fall through. */
  8330. fallthrough
  8331. case int32(m_PF_INET):
  8332. if !(addr != 0) {
  8333. addr = sockname + 4
  8334. }
  8335. addrlen = int32(4)
  8336. if *(*Tin_addr_t)(unsafe.Pointer(addr)) != libc.Xhtonl(tls, libc.Uint32FromInt32(0x7f000001)) {
  8337. family = uint16(_XCB_FAMILY_INTERNET)
  8338. }
  8339. case int32(m_PF_LOCAL):
  8340. default:
  8341. return uintptr(0) /* cannot authenticate this family */
  8342. }
  8343. dispbuflen = libc.X__builtin_snprintf(tls, bp+256, uint64(40), __ccgo_ts+90, libc.VaList(bp+304, display))
  8344. if dispbuflen < 0 {
  8345. return uintptr(0)
  8346. }
  8347. /* snprintf may have truncate our text */
  8348. if libc.Uint64FromInt32(dispbuflen) < libc.Uint64FromInt64(40)-libc.Uint64FromInt32(1) {
  8349. v1 = libc.Uint64FromInt32(dispbuflen)
  8350. } else {
  8351. v1 = libc.Uint64FromInt64(40) - libc.Uint64FromInt32(1)
  8352. }
  8353. dispbuflen = libc.Int32FromUint64(v1)
  8354. if libc.Int32FromUint16(family) == int32(m_FamilyLocal) {
  8355. if libc.Xgethostname(tls, bp, uint64(256)) == -int32(1) {
  8356. return uintptr(0)
  8357. } /* do not know own hostname */
  8358. addr = bp
  8359. addrlen = libc.Int32FromUint64(libc.Xstrlen(tls, addr))
  8360. }
  8361. 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)))
  8362. }
  8363. func _next_nonce(tls *libc.TLS) (r int32) {
  8364. var ret, v1 int32
  8365. _, _ = ret, v1
  8366. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8367. v1 = _nonce
  8368. _nonce++
  8369. ret = v1
  8370. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8371. return ret
  8372. }
  8373. var _nonce int32
  8374. var _nonce_mutex = Tpthread_mutex_t{}
  8375. func _do_append(tls *libc.TLS, buf uintptr, idxp uintptr, val uintptr, valsize Tsize_t) {
  8376. var p1 uintptr
  8377. _ = p1
  8378. libc.Xmemcpy(tls, buf+uintptr(*(*int32)(unsafe.Pointer(idxp))), val, valsize)
  8379. p1 = idxp
  8380. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + valsize)
  8381. }
  8382. func _compute_auth(tls *libc.TLS, info uintptr, authptr uintptr, sockname uintptr) (r int32) {
  8383. bp := tls.Alloc(32)
  8384. defer tls.Free(32)
  8385. var si, si6 uintptr
  8386. var v2 int32
  8387. var _ /* fakeaddr at bp+12 */ Tuint32_t
  8388. var _ /* fakeaddr at bp+4 */ Tuint32_t
  8389. var _ /* fakeport at bp+16 */ Tuint16_t
  8390. var _ /* fakeport at bp+8 */ Tuint16_t
  8391. var _ /* j at bp+0 */ int32
  8392. var _ /* now at bp+20 */ Tuint32_t
  8393. _, _, _ = si, si6, v2
  8394. if _authname_match(tls, int32(_AUTH_MC1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8395. (*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)))
  8396. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen != 0) {
  8397. return 0
  8398. }
  8399. return int32(1)
  8400. }
  8401. if _authname_match(tls, int32(_AUTH_XA1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8402. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(192)/libc.Int32FromInt32(8)))
  8403. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata != 0) {
  8404. return 0
  8405. }
  8406. *(*int32)(unsafe.Pointer(bp)) = 0
  8407. for {
  8408. if !(*(*int32)(unsafe.Pointer(bp)) < int32(8)) {
  8409. break
  8410. }
  8411. *(*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)))))
  8412. goto _1
  8413. _1:
  8414. ;
  8415. *(*int32)(unsafe.Pointer(bp))++
  8416. }
  8417. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8418. case int32(m_PF_INET):
  8419. /*block*/
  8420. si = sockname
  8421. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+4, uint64(4))
  8422. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+2, uint64(2))
  8423. case int32(m_PF_INET6):
  8424. /*block*/
  8425. si6 = sockname
  8426. 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) {
  8427. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+8+12, uint64(4))
  8428. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+2, uint64(2))
  8429. } else {
  8430. /* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
  8431. same thing Xlib does: use all zeroes for the 4-byte address
  8432. and 2-byte port number. */
  8433. *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uint32(0)
  8434. *(*Tuint16_t)(unsafe.Pointer(bp + 8)) = uint16(0)
  8435. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+4, uint64(4))
  8436. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+8, uint64(2))
  8437. }
  8438. case int32(m_PF_LOCAL):
  8439. /*block*/
  8440. *(*Tuint32_t)(unsafe.Pointer(bp + 12)) = libc.Xhtonl(tls, uint32(0xffffffff)-libc.Uint32FromInt32(_next_nonce(tls)))
  8441. *(*Tuint16_t)(unsafe.Pointer(bp + 16)) = libc.Xhtons(tls, libc.Uint16FromInt32(libc.Xgetpid(tls)))
  8442. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+12, uint64(4))
  8443. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+16, uint64(2))
  8444. default:
  8445. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata)
  8446. return 0 /* do not know how to build this */
  8447. }
  8448. *(*Tuint32_t)(unsafe.Pointer(bp + 20)) = libc.Xhtonl(tls, libc.Uint32FromInt64(libc.Xtime(tls, uintptr(0))))
  8449. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+20, uint64(4))
  8450. for *(*int32)(unsafe.Pointer(bp)) < libc.Int32FromInt32(192)/libc.Int32FromInt32(8) {
  8451. v2 = *(*int32)(unsafe.Pointer(bp))
  8452. *(*int32)(unsafe.Pointer(bp))++
  8453. *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(v2))) = uint8(0)
  8454. }
  8455. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = *(*int32)(unsafe.Pointer(bp))
  8456. 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)
  8457. return int32(1)
  8458. }
  8459. return 0 /* Unknown authorization type */
  8460. }
  8461. /* `sockaddr_un.sun_path' typical size usually ranges between 92 and 108 */
  8462. // C documentation
  8463. //
  8464. // /* Return a dynamically allocated socket address structure according
  8465. // to the value returned by either getpeername() or getsockname()
  8466. // (according to POSIX, applications should not assume a particular
  8467. // length for `sockaddr_un.sun_path') */
  8468. func _get_peer_sock_name(tls *libc.TLS, socket_func uintptr, fd int32) (r uintptr) {
  8469. bp := tls.Alloc(16)
  8470. defer tls.Free(16)
  8471. var new_sockname, sockname, v1 uintptr
  8472. var socknamelen Tsocklen_t
  8473. var _ /* actual_socknamelen at bp+0 */ Tsocklen_t
  8474. _, _, _, _ = new_sockname, sockname, socknamelen, v1
  8475. socknamelen = uint32(libc.Uint64FromInt64(16) + libc.Uint64FromInt32(m_INITIAL_SOCKNAME_SLACK))
  8476. *(*Tsocklen_t)(unsafe.Pointer(bp)) = socknamelen
  8477. sockname = libc.Xmalloc(tls, uint64(socknamelen))
  8478. if sockname == libc.UintptrFromInt32(0) {
  8479. return libc.UintptrFromInt32(0)
  8480. }
  8481. /* Both getpeername() and getsockname() truncates sockname if
  8482. there is not enough space and set the required length in
  8483. actual_socknamelen */
  8484. if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) {
  8485. goto sock_or_realloc_error
  8486. }
  8487. if *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
  8488. new_sockname = libc.UintptrFromInt32(0)
  8489. socknamelen = *(*Tsocklen_t)(unsafe.Pointer(bp))
  8490. v1 = libc.Xrealloc(tls, sockname, uint64(*(*Tsocklen_t)(unsafe.Pointer(bp))))
  8491. new_sockname = v1
  8492. if v1 == libc.UintptrFromInt32(0) {
  8493. goto sock_or_realloc_error
  8494. }
  8495. sockname = new_sockname
  8496. 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 {
  8497. goto sock_or_realloc_error
  8498. }
  8499. }
  8500. return sockname
  8501. goto sock_or_realloc_error
  8502. sock_or_realloc_error:
  8503. ;
  8504. libc.Xfree(tls, sockname)
  8505. return libc.UintptrFromInt32(0)
  8506. }
  8507. func X_xcb_get_auth_info(tls *libc.TLS, fd int32, info uintptr, display int32) (r int32) {
  8508. var authptr, sockname, v1, v2, v3 uintptr
  8509. var gotsockname, ret int32
  8510. _, _, _, _, _, _, _ = authptr, gotsockname, ret, sockname, v1, v2, v3
  8511. /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
  8512. xtrans/Xtransutils.c */
  8513. sockname = libc.UintptrFromInt32(0)
  8514. gotsockname = 0
  8515. authptr = uintptr(0)
  8516. ret = int32(1)
  8517. /* Some systems like hpux or Hurd do not expose peer names
  8518. * for UNIX Domain Sockets, but this is irrelevant,
  8519. * since compute_auth() ignores the peer name in this
  8520. * case anyway.*/
  8521. v1 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetpeername), fd)
  8522. sockname = v1
  8523. if v1 == libc.UintptrFromInt32(0) {
  8524. v2 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8525. sockname = v2
  8526. if v2 == libc.UintptrFromInt32(0) {
  8527. return 0
  8528. } /* can only authenticate sockets */
  8529. if libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) != int32(m_PF_LOCAL) {
  8530. libc.Xfree(tls, sockname)
  8531. return 0 /* except for AF_UNIX, sockets should have peernames */
  8532. }
  8533. gotsockname = int32(1)
  8534. }
  8535. authptr = _get_authptr(tls, sockname, display)
  8536. if authptr == uintptr(0) {
  8537. libc.Xfree(tls, sockname)
  8538. return 0 /* cannot find good auth data */
  8539. }
  8540. (*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)))
  8541. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen != 0) {
  8542. goto no_auth
  8543. } /* out of memory */
  8544. if !(gotsockname != 0) {
  8545. libc.Xfree(tls, sockname)
  8546. v3 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8547. sockname = v3
  8548. if v3 == libc.UintptrFromInt32(0) {
  8549. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8550. goto no_auth /* can only authenticate sockets */
  8551. }
  8552. }
  8553. ret = _compute_auth(tls, info, authptr, sockname)
  8554. if !(ret != 0) {
  8555. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8556. goto no_auth /* cannot build auth record */
  8557. }
  8558. libc.Xfree(tls, sockname)
  8559. sockname = libc.UintptrFromInt32(0)
  8560. libxau.XXauDisposeAuth(tls, authptr)
  8561. return ret
  8562. goto no_auth
  8563. no_auth:
  8564. ;
  8565. libc.Xfree(tls, sockname)
  8566. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname = uintptr(0)
  8567. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = 0
  8568. libxau.XXauDisposeAuth(tls, authptr)
  8569. return 0
  8570. }
  8571. /*
  8572. * This file generated automatically from xproto.xml by c_client.py.
  8573. * Edit at your peril.
  8574. */
  8575. /**
  8576. * @defgroup XCB__API XCB API
  8577. * @brief XCB Protocol Implementation.
  8578. * @{
  8579. **/
  8580. /**
  8581. * @}
  8582. */
  8583. func Xxcb_char2b_next(tls *libc.TLS, i uintptr) {
  8584. var p1 uintptr
  8585. _ = p1
  8586. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Frem--
  8587. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Fdata += 2
  8588. p1 = i + 12
  8589. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(2))
  8590. }
  8591. func Xxcb_char2b_end(tls *libc.TLS, i Txcb_char2b_iterator_t) (r Txcb_generic_iterator_t) {
  8592. var ret Txcb_generic_iterator_t
  8593. _ = ret
  8594. ret.Fdata = i.Fdata + uintptr(i.Frem)*2
  8595. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8596. ret.Frem = 0
  8597. return ret
  8598. }
  8599. func Xxcb_window_next(tls *libc.TLS, i uintptr) {
  8600. var p1 uintptr
  8601. _ = p1
  8602. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Frem--
  8603. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8604. p1 = i + 12
  8605. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8606. }
  8607. func Xxcb_window_end(tls *libc.TLS, i Txcb_window_iterator_t) (r Txcb_generic_iterator_t) {
  8608. var ret Txcb_generic_iterator_t
  8609. _ = ret
  8610. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8611. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8612. ret.Frem = 0
  8613. return ret
  8614. }
  8615. func Xxcb_pixmap_next(tls *libc.TLS, i uintptr) {
  8616. var p1 uintptr
  8617. _ = p1
  8618. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Frem--
  8619. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8620. p1 = i + 12
  8621. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8622. }
  8623. func Xxcb_pixmap_end(tls *libc.TLS, i Txcb_pixmap_iterator_t) (r Txcb_generic_iterator_t) {
  8624. var ret Txcb_generic_iterator_t
  8625. _ = ret
  8626. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8627. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8628. ret.Frem = 0
  8629. return ret
  8630. }
  8631. func Xxcb_cursor_next(tls *libc.TLS, i uintptr) {
  8632. var p1 uintptr
  8633. _ = p1
  8634. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Frem--
  8635. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8636. p1 = i + 12
  8637. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8638. }
  8639. func Xxcb_cursor_end(tls *libc.TLS, i Txcb_cursor_iterator_t) (r Txcb_generic_iterator_t) {
  8640. var ret Txcb_generic_iterator_t
  8641. _ = ret
  8642. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8643. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8644. ret.Frem = 0
  8645. return ret
  8646. }
  8647. func Xxcb_font_next(tls *libc.TLS, i uintptr) {
  8648. var p1 uintptr
  8649. _ = p1
  8650. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Frem--
  8651. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8652. p1 = i + 12
  8653. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8654. }
  8655. func Xxcb_font_end(tls *libc.TLS, i Txcb_font_iterator_t) (r Txcb_generic_iterator_t) {
  8656. var ret Txcb_generic_iterator_t
  8657. _ = ret
  8658. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8659. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8660. ret.Frem = 0
  8661. return ret
  8662. }
  8663. func Xxcb_gcontext_next(tls *libc.TLS, i uintptr) {
  8664. var p1 uintptr
  8665. _ = p1
  8666. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Frem--
  8667. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8668. p1 = i + 12
  8669. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8670. }
  8671. func Xxcb_gcontext_end(tls *libc.TLS, i Txcb_gcontext_iterator_t) (r Txcb_generic_iterator_t) {
  8672. var ret Txcb_generic_iterator_t
  8673. _ = ret
  8674. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8675. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8676. ret.Frem = 0
  8677. return ret
  8678. }
  8679. func Xxcb_colormap_next(tls *libc.TLS, i uintptr) {
  8680. var p1 uintptr
  8681. _ = p1
  8682. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Frem--
  8683. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8684. p1 = i + 12
  8685. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8686. }
  8687. func Xxcb_colormap_end(tls *libc.TLS, i Txcb_colormap_iterator_t) (r Txcb_generic_iterator_t) {
  8688. var ret Txcb_generic_iterator_t
  8689. _ = ret
  8690. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8691. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8692. ret.Frem = 0
  8693. return ret
  8694. }
  8695. func Xxcb_atom_next(tls *libc.TLS, i uintptr) {
  8696. var p1 uintptr
  8697. _ = p1
  8698. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Frem--
  8699. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8700. p1 = i + 12
  8701. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8702. }
  8703. func Xxcb_atom_end(tls *libc.TLS, i Txcb_atom_iterator_t) (r Txcb_generic_iterator_t) {
  8704. var ret Txcb_generic_iterator_t
  8705. _ = ret
  8706. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8707. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8708. ret.Frem = 0
  8709. return ret
  8710. }
  8711. func Xxcb_drawable_next(tls *libc.TLS, i uintptr) {
  8712. var p1 uintptr
  8713. _ = p1
  8714. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Frem--
  8715. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8716. p1 = i + 12
  8717. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8718. }
  8719. func Xxcb_drawable_end(tls *libc.TLS, i Txcb_drawable_iterator_t) (r Txcb_generic_iterator_t) {
  8720. var ret Txcb_generic_iterator_t
  8721. _ = ret
  8722. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8723. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8724. ret.Frem = 0
  8725. return ret
  8726. }
  8727. func Xxcb_fontable_next(tls *libc.TLS, i uintptr) {
  8728. var p1 uintptr
  8729. _ = p1
  8730. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Frem--
  8731. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8732. p1 = i + 12
  8733. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8734. }
  8735. func Xxcb_fontable_end(tls *libc.TLS, i Txcb_fontable_iterator_t) (r Txcb_generic_iterator_t) {
  8736. var ret Txcb_generic_iterator_t
  8737. _ = ret
  8738. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8739. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8740. ret.Frem = 0
  8741. return ret
  8742. }
  8743. func Xxcb_bool32_next(tls *libc.TLS, i uintptr) {
  8744. var p1 uintptr
  8745. _ = p1
  8746. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Frem--
  8747. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8748. p1 = i + 12
  8749. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8750. }
  8751. func Xxcb_bool32_end(tls *libc.TLS, i Txcb_bool32_iterator_t) (r Txcb_generic_iterator_t) {
  8752. var ret Txcb_generic_iterator_t
  8753. _ = ret
  8754. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8755. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8756. ret.Frem = 0
  8757. return ret
  8758. }
  8759. func Xxcb_visualid_next(tls *libc.TLS, i uintptr) {
  8760. var p1 uintptr
  8761. _ = p1
  8762. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Frem--
  8763. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8764. p1 = i + 12
  8765. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8766. }
  8767. func Xxcb_visualid_end(tls *libc.TLS, i Txcb_visualid_iterator_t) (r Txcb_generic_iterator_t) {
  8768. var ret Txcb_generic_iterator_t
  8769. _ = ret
  8770. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8771. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8772. ret.Frem = 0
  8773. return ret
  8774. }
  8775. func Xxcb_timestamp_next(tls *libc.TLS, i uintptr) {
  8776. var p1 uintptr
  8777. _ = p1
  8778. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Frem--
  8779. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8780. p1 = i + 12
  8781. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8782. }
  8783. func Xxcb_timestamp_end(tls *libc.TLS, i Txcb_timestamp_iterator_t) (r Txcb_generic_iterator_t) {
  8784. var ret Txcb_generic_iterator_t
  8785. _ = ret
  8786. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8787. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8788. ret.Frem = 0
  8789. return ret
  8790. }
  8791. func Xxcb_keysym_next(tls *libc.TLS, i uintptr) {
  8792. var p1 uintptr
  8793. _ = p1
  8794. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Frem--
  8795. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8796. p1 = i + 12
  8797. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8798. }
  8799. func Xxcb_keysym_end(tls *libc.TLS, i Txcb_keysym_iterator_t) (r Txcb_generic_iterator_t) {
  8800. var ret Txcb_generic_iterator_t
  8801. _ = ret
  8802. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8803. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8804. ret.Frem = 0
  8805. return ret
  8806. }
  8807. func Xxcb_keycode_next(tls *libc.TLS, i uintptr) {
  8808. var p1 uintptr
  8809. _ = p1
  8810. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Frem--
  8811. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Fdata++
  8812. p1 = i + 12
  8813. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8814. }
  8815. func Xxcb_keycode_end(tls *libc.TLS, i Txcb_keycode_iterator_t) (r Txcb_generic_iterator_t) {
  8816. var ret Txcb_generic_iterator_t
  8817. _ = ret
  8818. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8819. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8820. ret.Frem = 0
  8821. return ret
  8822. }
  8823. func Xxcb_keycode32_next(tls *libc.TLS, i uintptr) {
  8824. var p1 uintptr
  8825. _ = p1
  8826. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Frem--
  8827. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8828. p1 = i + 12
  8829. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8830. }
  8831. func Xxcb_keycode32_end(tls *libc.TLS, i Txcb_keycode32_iterator_t) (r Txcb_generic_iterator_t) {
  8832. var ret Txcb_generic_iterator_t
  8833. _ = ret
  8834. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8835. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8836. ret.Frem = 0
  8837. return ret
  8838. }
  8839. func Xxcb_button_next(tls *libc.TLS, i uintptr) {
  8840. var p1 uintptr
  8841. _ = p1
  8842. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Frem--
  8843. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Fdata++
  8844. p1 = i + 12
  8845. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8846. }
  8847. func Xxcb_button_end(tls *libc.TLS, i Txcb_button_iterator_t) (r Txcb_generic_iterator_t) {
  8848. var ret Txcb_generic_iterator_t
  8849. _ = ret
  8850. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8851. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8852. ret.Frem = 0
  8853. return ret
  8854. }
  8855. func Xxcb_point_next(tls *libc.TLS, i uintptr) {
  8856. var p1 uintptr
  8857. _ = p1
  8858. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Frem--
  8859. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8860. p1 = i + 12
  8861. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8862. }
  8863. func Xxcb_point_end(tls *libc.TLS, i Txcb_point_iterator_t) (r Txcb_generic_iterator_t) {
  8864. var ret Txcb_generic_iterator_t
  8865. _ = ret
  8866. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8867. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8868. ret.Frem = 0
  8869. return ret
  8870. }
  8871. func Xxcb_rectangle_next(tls *libc.TLS, i uintptr) {
  8872. var p1 uintptr
  8873. _ = p1
  8874. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Frem--
  8875. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  8876. p1 = i + 12
  8877. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  8878. }
  8879. func Xxcb_rectangle_end(tls *libc.TLS, i Txcb_rectangle_iterator_t) (r Txcb_generic_iterator_t) {
  8880. var ret Txcb_generic_iterator_t
  8881. _ = ret
  8882. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  8883. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8884. ret.Frem = 0
  8885. return ret
  8886. }
  8887. func Xxcb_arc_next(tls *libc.TLS, i uintptr) {
  8888. var p1 uintptr
  8889. _ = p1
  8890. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Frem--
  8891. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  8892. p1 = i + 12
  8893. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  8894. }
  8895. func Xxcb_arc_end(tls *libc.TLS, i Txcb_arc_iterator_t) (r Txcb_generic_iterator_t) {
  8896. var ret Txcb_generic_iterator_t
  8897. _ = ret
  8898. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  8899. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8900. ret.Frem = 0
  8901. return ret
  8902. }
  8903. func Xxcb_format_next(tls *libc.TLS, i uintptr) {
  8904. var p1 uintptr
  8905. _ = p1
  8906. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Frem--
  8907. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  8908. p1 = i + 12
  8909. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  8910. }
  8911. func Xxcb_format_end(tls *libc.TLS, i Txcb_format_iterator_t) (r Txcb_generic_iterator_t) {
  8912. var ret Txcb_generic_iterator_t
  8913. _ = ret
  8914. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  8915. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8916. ret.Frem = 0
  8917. return ret
  8918. }
  8919. func Xxcb_visualtype_next(tls *libc.TLS, i uintptr) {
  8920. var p1 uintptr
  8921. _ = p1
  8922. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Frem--
  8923. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Fdata += 24
  8924. p1 = i + 12
  8925. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(24))
  8926. }
  8927. func Xxcb_visualtype_end(tls *libc.TLS, i Txcb_visualtype_iterator_t) (r Txcb_generic_iterator_t) {
  8928. var ret Txcb_generic_iterator_t
  8929. _ = ret
  8930. ret.Fdata = i.Fdata + uintptr(i.Frem)*24
  8931. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8932. ret.Frem = 0
  8933. return ret
  8934. }
  8935. func Xxcb_depth_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  8936. var _aux, xcb_tmp uintptr
  8937. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  8938. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  8939. xcb_tmp = _buffer
  8940. _aux = _buffer
  8941. xcb_buffer_len = uint32(0)
  8942. xcb_block_len = uint32(0)
  8943. xcb_pad = uint32(0)
  8944. xcb_align_to = uint32(0)
  8945. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  8946. xcb_tmp += uintptr(xcb_block_len)
  8947. xcb_buffer_len += xcb_block_len
  8948. xcb_block_len = uint32(0)
  8949. /* visuals */
  8950. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_depth_t)(unsafe.Pointer(_aux)).Fvisuals_len)*libc.Uint64FromInt64(24))
  8951. xcb_tmp += uintptr(xcb_block_len)
  8952. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  8953. /* insert padding */
  8954. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  8955. xcb_buffer_len += xcb_block_len + xcb_pad
  8956. if uint32(0) != xcb_pad {
  8957. xcb_tmp += uintptr(xcb_pad)
  8958. xcb_pad = uint32(0)
  8959. }
  8960. xcb_block_len = uint32(0)
  8961. return libc.Int32FromUint32(xcb_buffer_len)
  8962. }
  8963. func Xxcb_depth_visuals(tls *libc.TLS, R uintptr) (r uintptr) {
  8964. return R + libc.UintptrFromInt32(1)*8
  8965. }
  8966. func Xxcb_depth_visuals_length(tls *libc.TLS, R uintptr) (r int32) {
  8967. return libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  8968. }
  8969. func Xxcb_depth_visuals_iterator(tls *libc.TLS, R uintptr) (r Txcb_visualtype_iterator_t) {
  8970. var i Txcb_visualtype_iterator_t
  8971. _ = i
  8972. i.Fdata = R + libc.UintptrFromInt32(1)*8
  8973. i.Frem = libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  8974. i.Findex = int32(int64(i.Fdata) - int64(R))
  8975. return i
  8976. }
  8977. func Xxcb_depth_next(tls *libc.TLS, i uintptr) {
  8978. var R uintptr
  8979. var child Txcb_generic_iterator_t
  8980. _, _ = R, child
  8981. R = (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata
  8982. child.Fdata = R + uintptr(Xxcb_depth_sizeof(tls, R))
  8983. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata))
  8984. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Frem--
  8985. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  8986. }
  8987. func Xxcb_depth_end(tls *libc.TLS, _i Txcb_depth_iterator_t) (r Txcb_generic_iterator_t) {
  8988. bp := tls.Alloc(16)
  8989. defer tls.Free(16)
  8990. *(*Txcb_depth_iterator_t)(unsafe.Pointer(bp)) = _i
  8991. var ret Txcb_generic_iterator_t
  8992. _ = ret
  8993. for (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  8994. Xxcb_depth_next(tls, bp)
  8995. }
  8996. ret.Fdata = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Fdata
  8997. ret.Frem = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem
  8998. ret.Findex = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Findex
  8999. return ret
  9000. }
  9001. func Xxcb_screen_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9002. var _aux, xcb_tmp uintptr
  9003. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9004. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9005. xcb_tmp = _buffer
  9006. _aux = _buffer
  9007. xcb_buffer_len = uint32(0)
  9008. xcb_block_len = uint32(0)
  9009. xcb_pad = uint32(0)
  9010. xcb_align_to = uint32(0)
  9011. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9012. xcb_tmp += uintptr(xcb_block_len)
  9013. xcb_buffer_len += xcb_block_len
  9014. xcb_block_len = uint32(0)
  9015. /* allowed_depths */
  9016. i = uint32(0)
  9017. for {
  9018. if !(i < uint32((*Txcb_screen_t)(unsafe.Pointer(_aux)).Fallowed_depths_len)) {
  9019. break
  9020. }
  9021. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_depth_sizeof(tls, xcb_tmp))
  9022. xcb_block_len += xcb_tmp_len
  9023. xcb_tmp += uintptr(xcb_tmp_len)
  9024. goto _1
  9025. _1:
  9026. ;
  9027. i++
  9028. }
  9029. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  9030. /* insert padding */
  9031. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9032. xcb_buffer_len += xcb_block_len + xcb_pad
  9033. if uint32(0) != xcb_pad {
  9034. xcb_tmp += uintptr(xcb_pad)
  9035. xcb_pad = uint32(0)
  9036. }
  9037. xcb_block_len = uint32(0)
  9038. return libc.Int32FromUint32(xcb_buffer_len)
  9039. }
  9040. func Xxcb_screen_allowed_depths_length(tls *libc.TLS, R uintptr) (r int32) {
  9041. return libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9042. }
  9043. func Xxcb_screen_allowed_depths_iterator(tls *libc.TLS, R uintptr) (r Txcb_depth_iterator_t) {
  9044. var i Txcb_depth_iterator_t
  9045. _ = i
  9046. i.Fdata = R + libc.UintptrFromInt32(1)*40
  9047. i.Frem = libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9048. i.Findex = int32(int64(i.Fdata) - int64(R))
  9049. return i
  9050. }
  9051. func Xxcb_screen_next(tls *libc.TLS, i uintptr) {
  9052. var R uintptr
  9053. var child Txcb_generic_iterator_t
  9054. _, _ = R, child
  9055. R = (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata
  9056. child.Fdata = R + uintptr(Xxcb_screen_sizeof(tls, R))
  9057. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata))
  9058. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Frem--
  9059. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9060. }
  9061. func Xxcb_screen_end(tls *libc.TLS, _i Txcb_screen_iterator_t) (r Txcb_generic_iterator_t) {
  9062. bp := tls.Alloc(16)
  9063. defer tls.Free(16)
  9064. *(*Txcb_screen_iterator_t)(unsafe.Pointer(bp)) = _i
  9065. var ret Txcb_generic_iterator_t
  9066. _ = ret
  9067. for (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9068. Xxcb_screen_next(tls, bp)
  9069. }
  9070. ret.Fdata = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Fdata
  9071. ret.Frem = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem
  9072. ret.Findex = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Findex
  9073. return ret
  9074. }
  9075. func Xxcb_setup_request_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9076. var _aux, xcb_tmp uintptr
  9077. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9078. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9079. xcb_tmp = _buffer
  9080. _aux = _buffer
  9081. xcb_buffer_len = uint32(0)
  9082. xcb_block_len = uint32(0)
  9083. xcb_pad = uint32(0)
  9084. xcb_align_to = uint32(0)
  9085. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  9086. xcb_tmp += uintptr(xcb_block_len)
  9087. xcb_buffer_len += xcb_block_len
  9088. xcb_block_len = uint32(0)
  9089. /* authorization_protocol_name */
  9090. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_name_len)*libc.Uint64FromInt64(1))
  9091. xcb_tmp += uintptr(xcb_block_len)
  9092. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9093. xcb_align_to = uint32(4)
  9094. /* insert padding */
  9095. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9096. xcb_buffer_len += xcb_block_len + xcb_pad
  9097. if uint32(0) != xcb_pad {
  9098. xcb_tmp += uintptr(xcb_pad)
  9099. xcb_pad = uint32(0)
  9100. }
  9101. xcb_block_len = uint32(0)
  9102. /* insert padding */
  9103. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9104. xcb_buffer_len += xcb_block_len + xcb_pad
  9105. if uint32(0) != xcb_pad {
  9106. xcb_tmp += uintptr(xcb_pad)
  9107. xcb_pad = uint32(0)
  9108. }
  9109. xcb_block_len = uint32(0)
  9110. /* authorization_protocol_data */
  9111. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_data_len)*libc.Uint64FromInt64(1))
  9112. xcb_tmp += uintptr(xcb_block_len)
  9113. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9114. xcb_align_to = uint32(4)
  9115. /* insert padding */
  9116. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9117. xcb_buffer_len += xcb_block_len + xcb_pad
  9118. if uint32(0) != xcb_pad {
  9119. xcb_tmp += uintptr(xcb_pad)
  9120. xcb_pad = uint32(0)
  9121. }
  9122. xcb_block_len = uint32(0)
  9123. /* insert padding */
  9124. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9125. xcb_buffer_len += xcb_block_len + xcb_pad
  9126. if uint32(0) != xcb_pad {
  9127. xcb_tmp += uintptr(xcb_pad)
  9128. xcb_pad = uint32(0)
  9129. }
  9130. xcb_block_len = uint32(0)
  9131. return libc.Int32FromUint32(xcb_buffer_len)
  9132. }
  9133. func Xxcb_setup_request_authorization_protocol_name(tls *libc.TLS, R uintptr) (r uintptr) {
  9134. return R + libc.UintptrFromInt32(1)*12
  9135. }
  9136. func Xxcb_setup_request_authorization_protocol_name_length(tls *libc.TLS, R uintptr) (r int32) {
  9137. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9138. }
  9139. func Xxcb_setup_request_authorization_protocol_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9140. var i Txcb_generic_iterator_t
  9141. _ = i
  9142. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9143. i.Frem = 0
  9144. i.Findex = int32(int64(i.Fdata) - int64(R))
  9145. return i
  9146. }
  9147. func Xxcb_setup_request_authorization_protocol_data(tls *libc.TLS, R uintptr) (r uintptr) {
  9148. var prev Txcb_generic_iterator_t
  9149. _ = prev
  9150. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9151. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9152. }
  9153. func Xxcb_setup_request_authorization_protocol_data_length(tls *libc.TLS, R uintptr) (r int32) {
  9154. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
  9155. }
  9156. func Xxcb_setup_request_authorization_protocol_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9157. var i, prev Txcb_generic_iterator_t
  9158. _, _ = i, prev
  9159. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9160. 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)
  9161. i.Frem = 0
  9162. i.Findex = int32(int64(i.Fdata) - int64(R))
  9163. return i
  9164. }
  9165. func Xxcb_setup_request_next(tls *libc.TLS, i uintptr) {
  9166. var R uintptr
  9167. var child Txcb_generic_iterator_t
  9168. _, _ = R, child
  9169. R = (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata
  9170. child.Fdata = R + uintptr(Xxcb_setup_request_sizeof(tls, R))
  9171. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata))
  9172. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Frem--
  9173. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9174. }
  9175. func Xxcb_setup_request_end(tls *libc.TLS, _i Txcb_setup_request_iterator_t) (r Txcb_generic_iterator_t) {
  9176. bp := tls.Alloc(16)
  9177. defer tls.Free(16)
  9178. *(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp)) = _i
  9179. var ret Txcb_generic_iterator_t
  9180. _ = ret
  9181. for (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9182. Xxcb_setup_request_next(tls, bp)
  9183. }
  9184. ret.Fdata = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Fdata
  9185. ret.Frem = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem
  9186. ret.Findex = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Findex
  9187. return ret
  9188. }
  9189. func Xxcb_setup_failed_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9190. var _aux, xcb_tmp uintptr
  9191. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9192. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9193. xcb_tmp = _buffer
  9194. _aux = _buffer
  9195. xcb_buffer_len = uint32(0)
  9196. xcb_block_len = uint32(0)
  9197. xcb_pad = uint32(0)
  9198. xcb_align_to = uint32(0)
  9199. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9200. xcb_tmp += uintptr(xcb_block_len)
  9201. xcb_buffer_len += xcb_block_len
  9202. xcb_block_len = uint32(0)
  9203. /* reason */
  9204. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_failed_t)(unsafe.Pointer(_aux)).Freason_len)*libc.Uint64FromInt64(1))
  9205. xcb_tmp += uintptr(xcb_block_len)
  9206. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9207. /* insert padding */
  9208. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9209. xcb_buffer_len += xcb_block_len + xcb_pad
  9210. if uint32(0) != xcb_pad {
  9211. xcb_tmp += uintptr(xcb_pad)
  9212. xcb_pad = uint32(0)
  9213. }
  9214. xcb_block_len = uint32(0)
  9215. return libc.Int32FromUint32(xcb_buffer_len)
  9216. }
  9217. func Xxcb_setup_failed_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9218. return R + libc.UintptrFromInt32(1)*8
  9219. }
  9220. func Xxcb_setup_failed_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9221. return libc.Int32FromUint8((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9222. }
  9223. func Xxcb_setup_failed_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9224. var i Txcb_generic_iterator_t
  9225. _ = i
  9226. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9227. i.Frem = 0
  9228. i.Findex = int32(int64(i.Fdata) - int64(R))
  9229. return i
  9230. }
  9231. func Xxcb_setup_failed_next(tls *libc.TLS, i uintptr) {
  9232. var R uintptr
  9233. var child Txcb_generic_iterator_t
  9234. _, _ = R, child
  9235. R = (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata
  9236. child.Fdata = R + uintptr(Xxcb_setup_failed_sizeof(tls, R))
  9237. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata))
  9238. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Frem--
  9239. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9240. }
  9241. func Xxcb_setup_failed_end(tls *libc.TLS, _i Txcb_setup_failed_iterator_t) (r Txcb_generic_iterator_t) {
  9242. bp := tls.Alloc(16)
  9243. defer tls.Free(16)
  9244. *(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp)) = _i
  9245. var ret Txcb_generic_iterator_t
  9246. _ = ret
  9247. for (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9248. Xxcb_setup_failed_next(tls, bp)
  9249. }
  9250. ret.Fdata = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Fdata
  9251. ret.Frem = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem
  9252. ret.Findex = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Findex
  9253. return ret
  9254. }
  9255. func Xxcb_setup_authenticate_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9256. var _aux, xcb_tmp uintptr
  9257. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9258. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9259. xcb_tmp = _buffer
  9260. _aux = _buffer
  9261. xcb_buffer_len = uint32(0)
  9262. xcb_block_len = uint32(0)
  9263. xcb_pad = uint32(0)
  9264. xcb_align_to = uint32(0)
  9265. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9266. xcb_tmp += uintptr(xcb_block_len)
  9267. xcb_buffer_len += xcb_block_len
  9268. xcb_block_len = uint32(0)
  9269. /* reason */
  9270. 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))
  9271. xcb_tmp += uintptr(xcb_block_len)
  9272. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9273. /* insert padding */
  9274. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9275. xcb_buffer_len += xcb_block_len + xcb_pad
  9276. if uint32(0) != xcb_pad {
  9277. xcb_tmp += uintptr(xcb_pad)
  9278. xcb_pad = uint32(0)
  9279. }
  9280. xcb_block_len = uint32(0)
  9281. return libc.Int32FromUint32(xcb_buffer_len)
  9282. }
  9283. func Xxcb_setup_authenticate_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9284. return R + libc.UintptrFromInt32(1)*8
  9285. }
  9286. func Xxcb_setup_authenticate_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9287. return libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength) * int32(4)
  9288. }
  9289. func Xxcb_setup_authenticate_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9290. var i Txcb_generic_iterator_t
  9291. _ = i
  9292. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))
  9293. i.Frem = 0
  9294. i.Findex = int32(int64(i.Fdata) - int64(R))
  9295. return i
  9296. }
  9297. func Xxcb_setup_authenticate_next(tls *libc.TLS, i uintptr) {
  9298. var R uintptr
  9299. var child Txcb_generic_iterator_t
  9300. _, _ = R, child
  9301. R = (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata
  9302. child.Fdata = R + uintptr(Xxcb_setup_authenticate_sizeof(tls, R))
  9303. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata))
  9304. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Frem--
  9305. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9306. }
  9307. func Xxcb_setup_authenticate_end(tls *libc.TLS, _i Txcb_setup_authenticate_iterator_t) (r Txcb_generic_iterator_t) {
  9308. bp := tls.Alloc(16)
  9309. defer tls.Free(16)
  9310. *(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp)) = _i
  9311. var ret Txcb_generic_iterator_t
  9312. _ = ret
  9313. for (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9314. Xxcb_setup_authenticate_next(tls, bp)
  9315. }
  9316. ret.Fdata = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Fdata
  9317. ret.Frem = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem
  9318. ret.Findex = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Findex
  9319. return ret
  9320. }
  9321. func Xxcb_setup_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9322. var _aux, xcb_tmp uintptr
  9323. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9324. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9325. xcb_tmp = _buffer
  9326. _aux = _buffer
  9327. xcb_buffer_len = uint32(0)
  9328. xcb_block_len = uint32(0)
  9329. xcb_pad = uint32(0)
  9330. xcb_align_to = uint32(0)
  9331. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9332. xcb_tmp += uintptr(xcb_block_len)
  9333. xcb_buffer_len += xcb_block_len
  9334. xcb_block_len = uint32(0)
  9335. /* vendor */
  9336. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fvendor_len)*libc.Uint64FromInt64(1))
  9337. xcb_tmp += uintptr(xcb_block_len)
  9338. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9339. xcb_align_to = uint32(4)
  9340. /* insert padding */
  9341. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9342. xcb_buffer_len += xcb_block_len + xcb_pad
  9343. if uint32(0) != xcb_pad {
  9344. xcb_tmp += uintptr(xcb_pad)
  9345. xcb_pad = uint32(0)
  9346. }
  9347. xcb_block_len = uint32(0)
  9348. /* insert padding */
  9349. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9350. xcb_buffer_len += xcb_block_len + xcb_pad
  9351. if uint32(0) != xcb_pad {
  9352. xcb_tmp += uintptr(xcb_pad)
  9353. xcb_pad = uint32(0)
  9354. }
  9355. xcb_block_len = uint32(0)
  9356. /* pixmap_formats */
  9357. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fpixmap_formats_len)*libc.Uint64FromInt64(8))
  9358. xcb_tmp += uintptr(xcb_block_len)
  9359. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9360. /* insert padding */
  9361. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9362. xcb_buffer_len += xcb_block_len + xcb_pad
  9363. if uint32(0) != xcb_pad {
  9364. xcb_tmp += uintptr(xcb_pad)
  9365. xcb_pad = uint32(0)
  9366. }
  9367. xcb_block_len = uint32(0)
  9368. /* roots */
  9369. i = uint32(0)
  9370. for {
  9371. if !(i < uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Froots_len)) {
  9372. break
  9373. }
  9374. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_screen_sizeof(tls, xcb_tmp))
  9375. xcb_block_len += xcb_tmp_len
  9376. xcb_tmp += uintptr(xcb_tmp_len)
  9377. goto _1
  9378. _1:
  9379. ;
  9380. i++
  9381. }
  9382. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9383. /* insert padding */
  9384. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9385. xcb_buffer_len += xcb_block_len + xcb_pad
  9386. if uint32(0) != xcb_pad {
  9387. xcb_tmp += uintptr(xcb_pad)
  9388. xcb_pad = uint32(0)
  9389. }
  9390. xcb_block_len = uint32(0)
  9391. return libc.Int32FromUint32(xcb_buffer_len)
  9392. }
  9393. func Xxcb_setup_vendor(tls *libc.TLS, R uintptr) (r uintptr) {
  9394. return R + libc.UintptrFromInt32(1)*40
  9395. }
  9396. func Xxcb_setup_vendor_length(tls *libc.TLS, R uintptr) (r int32) {
  9397. return libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9398. }
  9399. func Xxcb_setup_vendor_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9400. var i Txcb_generic_iterator_t
  9401. _ = i
  9402. i.Fdata = R + libc.UintptrFromInt32(1)*40 + uintptr((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9403. i.Frem = 0
  9404. i.Findex = int32(int64(i.Fdata) - int64(R))
  9405. return i
  9406. }
  9407. func Xxcb_setup_pixmap_formats(tls *libc.TLS, R uintptr) (r uintptr) {
  9408. var prev Txcb_generic_iterator_t
  9409. _ = prev
  9410. prev = Xxcb_setup_vendor_end(tls, R)
  9411. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9412. }
  9413. func Xxcb_setup_pixmap_formats_length(tls *libc.TLS, R uintptr) (r int32) {
  9414. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9415. }
  9416. func Xxcb_setup_pixmap_formats_iterator(tls *libc.TLS, R uintptr) (r Txcb_format_iterator_t) {
  9417. var i Txcb_format_iterator_t
  9418. var prev Txcb_generic_iterator_t
  9419. _, _ = i, prev
  9420. prev = Xxcb_setup_vendor_end(tls, R)
  9421. i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)))
  9422. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9423. i.Findex = int32(int64(i.Fdata) - int64(R))
  9424. return i
  9425. }
  9426. func Xxcb_setup_roots_length(tls *libc.TLS, R uintptr) (r int32) {
  9427. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9428. }
  9429. func Xxcb_setup_roots_iterator(tls *libc.TLS, R uintptr) (r Txcb_screen_iterator_t) {
  9430. var i Txcb_screen_iterator_t
  9431. var prev Txcb_generic_iterator_t
  9432. _, _ = i, prev
  9433. prev = Xxcb_format_end(tls, Xxcb_setup_pixmap_formats_iterator(tls, R))
  9434. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  9435. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9436. i.Findex = int32(int64(i.Fdata) - int64(R))
  9437. return i
  9438. }
  9439. func Xxcb_setup_next(tls *libc.TLS, i uintptr) {
  9440. var R uintptr
  9441. var child Txcb_generic_iterator_t
  9442. _, _ = R, child
  9443. R = (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata
  9444. child.Fdata = R + uintptr(Xxcb_setup_sizeof(tls, R))
  9445. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata))
  9446. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Frem--
  9447. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9448. }
  9449. func Xxcb_setup_end(tls *libc.TLS, _i Txcb_setup_iterator_t) (r Txcb_generic_iterator_t) {
  9450. bp := tls.Alloc(16)
  9451. defer tls.Free(16)
  9452. *(*Txcb_setup_iterator_t)(unsafe.Pointer(bp)) = _i
  9453. var ret Txcb_generic_iterator_t
  9454. _ = ret
  9455. for (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9456. Xxcb_setup_next(tls, bp)
  9457. }
  9458. ret.Fdata = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Fdata
  9459. ret.Frem = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem
  9460. ret.Findex = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Findex
  9461. return ret
  9462. }
  9463. func Xxcb_client_message_data_next(tls *libc.TLS, i uintptr) {
  9464. var p1 uintptr
  9465. _ = p1
  9466. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Frem--
  9467. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Fdata += 20
  9468. p1 = i + 12
  9469. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(20))
  9470. }
  9471. func Xxcb_client_message_data_end(tls *libc.TLS, i Txcb_client_message_data_iterator_t) (r Txcb_generic_iterator_t) {
  9472. var ret Txcb_generic_iterator_t
  9473. _ = ret
  9474. ret.Fdata = i.Fdata + uintptr(i.Frem)*20
  9475. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9476. ret.Frem = 0
  9477. return ret
  9478. }
  9479. func Xxcb_create_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9480. bp := tls.Alloc(16)
  9481. defer tls.Free(16)
  9482. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  9483. var xcb_out, xcb_tmp uintptr
  9484. var xcb_parts [16]Tiovec
  9485. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  9486. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  9487. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  9488. xcb_buffer_len = uint32(0)
  9489. xcb_align_to = uint32(0)
  9490. xcb_padding_offset = uint32(0)
  9491. xcb_pad = uint32(0)
  9492. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  9493. xcb_parts_idx = uint32(0)
  9494. xcb_block_len = uint32(0)
  9495. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9496. /* xcb_create_window_value_list_t.background_pixmap */
  9497. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  9498. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9499. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9500. xcb_parts_idx++
  9501. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9502. }
  9503. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9504. /* xcb_create_window_value_list_t.background_pixel */
  9505. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  9506. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9507. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9508. xcb_parts_idx++
  9509. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9510. }
  9511. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9512. /* xcb_create_window_value_list_t.border_pixmap */
  9513. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  9514. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9515. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9516. xcb_parts_idx++
  9517. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9518. }
  9519. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9520. /* xcb_create_window_value_list_t.border_pixel */
  9521. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  9522. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9523. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9524. xcb_parts_idx++
  9525. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9526. }
  9527. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9528. /* xcb_create_window_value_list_t.bit_gravity */
  9529. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  9530. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9531. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9532. xcb_parts_idx++
  9533. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9534. }
  9535. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9536. /* xcb_create_window_value_list_t.win_gravity */
  9537. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  9538. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9539. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9540. xcb_parts_idx++
  9541. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9542. }
  9543. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9544. /* xcb_create_window_value_list_t.backing_store */
  9545. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  9546. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9547. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9548. xcb_parts_idx++
  9549. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9550. }
  9551. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9552. /* xcb_create_window_value_list_t.backing_planes */
  9553. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  9554. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9555. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9556. xcb_parts_idx++
  9557. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9558. }
  9559. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9560. /* xcb_create_window_value_list_t.backing_pixel */
  9561. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  9562. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9563. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9564. xcb_parts_idx++
  9565. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9566. }
  9567. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9568. /* xcb_create_window_value_list_t.override_redirect */
  9569. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  9570. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9571. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9572. xcb_parts_idx++
  9573. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9574. }
  9575. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9576. /* xcb_create_window_value_list_t.save_under */
  9577. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  9578. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9579. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9580. xcb_parts_idx++
  9581. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9582. }
  9583. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9584. /* xcb_create_window_value_list_t.event_mask */
  9585. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  9586. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9587. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9588. xcb_parts_idx++
  9589. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9590. }
  9591. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9592. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9593. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  9594. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9595. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9596. xcb_parts_idx++
  9597. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9598. }
  9599. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9600. /* xcb_create_window_value_list_t.colormap */
  9601. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  9602. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9603. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9604. xcb_parts_idx++
  9605. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9606. }
  9607. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9608. /* xcb_create_window_value_list_t.cursor */
  9609. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  9610. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9611. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9612. xcb_parts_idx++
  9613. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9614. }
  9615. /* insert padding */
  9616. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9617. xcb_buffer_len += xcb_block_len + xcb_pad
  9618. if uint32(0) != xcb_pad {
  9619. xcb_parts[xcb_parts_idx].Fiov_base = bp
  9620. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  9621. xcb_parts_idx++
  9622. xcb_pad = uint32(0)
  9623. }
  9624. xcb_block_len = uint32(0)
  9625. xcb_padding_offset = uint32(0)
  9626. if libc.UintptrFromInt32(0) == xcb_out {
  9627. /* allocate memory */
  9628. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  9629. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  9630. }
  9631. xcb_tmp = xcb_out
  9632. i = uint32(0)
  9633. for {
  9634. if !(i < xcb_parts_idx) {
  9635. break
  9636. }
  9637. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  9638. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  9639. }
  9640. if uint64(0) != xcb_parts[i].Fiov_len {
  9641. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  9642. }
  9643. goto _1
  9644. _1:
  9645. ;
  9646. i++
  9647. }
  9648. return libc.Int32FromUint32(xcb_buffer_len)
  9649. }
  9650. func Xxcb_create_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9651. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  9652. var xcb_tmp uintptr
  9653. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  9654. xcb_tmp = _buffer
  9655. xcb_buffer_len = uint32(0)
  9656. xcb_block_len = uint32(0)
  9657. xcb_pad = uint32(0)
  9658. xcb_align_to = uint32(0)
  9659. xcb_padding_offset = uint32(0)
  9660. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9661. /* xcb_create_window_value_list_t.background_pixmap */
  9662. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9663. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9664. xcb_tmp += uintptr(4)
  9665. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9666. }
  9667. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9668. /* xcb_create_window_value_list_t.background_pixel */
  9669. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9670. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9671. xcb_tmp += uintptr(4)
  9672. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9673. }
  9674. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9675. /* xcb_create_window_value_list_t.border_pixmap */
  9676. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9677. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9678. xcb_tmp += uintptr(4)
  9679. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9680. }
  9681. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9682. /* xcb_create_window_value_list_t.border_pixel */
  9683. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9684. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9685. xcb_tmp += uintptr(4)
  9686. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9687. }
  9688. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9689. /* xcb_create_window_value_list_t.bit_gravity */
  9690. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9691. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9692. xcb_tmp += uintptr(4)
  9693. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9694. }
  9695. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9696. /* xcb_create_window_value_list_t.win_gravity */
  9697. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9698. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9699. xcb_tmp += uintptr(4)
  9700. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9701. }
  9702. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9703. /* xcb_create_window_value_list_t.backing_store */
  9704. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9705. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9706. xcb_tmp += uintptr(4)
  9707. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9708. }
  9709. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9710. /* xcb_create_window_value_list_t.backing_planes */
  9711. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9712. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9713. xcb_tmp += uintptr(4)
  9714. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9715. }
  9716. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9717. /* xcb_create_window_value_list_t.backing_pixel */
  9718. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9719. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9720. xcb_tmp += uintptr(4)
  9721. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9722. }
  9723. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9724. /* xcb_create_window_value_list_t.override_redirect */
  9725. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9726. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9727. xcb_tmp += uintptr(4)
  9728. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9729. }
  9730. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9731. /* xcb_create_window_value_list_t.save_under */
  9732. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9733. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9734. xcb_tmp += uintptr(4)
  9735. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9736. }
  9737. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9738. /* xcb_create_window_value_list_t.event_mask */
  9739. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9740. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9741. xcb_tmp += uintptr(4)
  9742. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9743. }
  9744. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9745. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9746. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9747. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9748. xcb_tmp += uintptr(4)
  9749. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9750. }
  9751. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9752. /* xcb_create_window_value_list_t.colormap */
  9753. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  9754. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9755. xcb_tmp += uintptr(4)
  9756. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9757. }
  9758. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9759. /* xcb_create_window_value_list_t.cursor */
  9760. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  9761. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9762. xcb_tmp += uintptr(4)
  9763. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9764. }
  9765. /* insert padding */
  9766. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9767. xcb_buffer_len += xcb_block_len + xcb_pad
  9768. if uint32(0) != xcb_pad {
  9769. xcb_tmp += uintptr(xcb_pad)
  9770. xcb_pad = uint32(0)
  9771. }
  9772. xcb_block_len = uint32(0)
  9773. xcb_padding_offset = uint32(0)
  9774. return libc.Int32FromUint32(xcb_buffer_len)
  9775. }
  9776. func Xxcb_create_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  9777. bp := tls.Alloc(64)
  9778. defer tls.Free(64)
  9779. var _ /* _aux at bp+0 */ Txcb_create_window_value_list_t
  9780. return Xxcb_create_window_value_list_unpack(tls, _buffer, value_mask, bp)
  9781. }
  9782. func Xxcb_create_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9783. var _aux, xcb_tmp uintptr
  9784. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9785. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9786. xcb_tmp = _buffer
  9787. _aux = _buffer
  9788. xcb_buffer_len = uint32(0)
  9789. xcb_block_len = uint32(0)
  9790. xcb_pad = uint32(0)
  9791. xcb_align_to = uint32(0)
  9792. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  9793. xcb_tmp += uintptr(xcb_block_len)
  9794. xcb_buffer_len += xcb_block_len
  9795. xcb_block_len = uint32(0)
  9796. /* value_list */
  9797. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  9798. xcb_tmp += uintptr(xcb_block_len)
  9799. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9800. /* insert padding */
  9801. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9802. xcb_buffer_len += xcb_block_len + xcb_pad
  9803. if uint32(0) != xcb_pad {
  9804. xcb_tmp += uintptr(xcb_pad)
  9805. xcb_pad = uint32(0)
  9806. }
  9807. xcb_block_len = uint32(0)
  9808. return libc.Int32FromUint32(xcb_buffer_len)
  9809. }
  9810. 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) {
  9811. bp := tls.Alloc(112)
  9812. defer tls.Free(112)
  9813. var xcb_ret Txcb_void_cookie_t
  9814. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9815. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9816. _ = xcb_ret
  9817. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9818. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9819. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9820. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9821. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9822. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9823. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9824. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9825. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9826. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9827. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9828. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9829. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9830. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9831. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9832. /* xcb_create_window_value_list_t value_list */
  9833. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9834. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  9835. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req)))
  9836. return xcb_ret
  9837. }
  9838. var _xcb_req = Txcb_protocol_request_t{
  9839. Fcount: uint64(3),
  9840. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9841. Fisvoid: uint8(1),
  9842. }
  9843. 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) {
  9844. bp := tls.Alloc(112)
  9845. defer tls.Free(112)
  9846. var xcb_ret Txcb_void_cookie_t
  9847. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9848. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9849. _ = xcb_ret
  9850. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9851. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9852. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9853. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9854. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9855. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9856. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9857. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9858. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9859. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9860. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9861. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9862. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9863. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9864. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9865. /* xcb_create_window_value_list_t value_list */
  9866. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9867. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  9868. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req1)))
  9869. return xcb_ret
  9870. }
  9871. var _xcb_req1 = Txcb_protocol_request_t{
  9872. Fcount: uint64(3),
  9873. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9874. Fisvoid: uint8(1),
  9875. }
  9876. 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) {
  9877. bp := tls.Alloc(128)
  9878. defer tls.Free(128)
  9879. var xcb_ret Txcb_void_cookie_t
  9880. var _ /* xcb_aux0 at bp+112 */ uintptr
  9881. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9882. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9883. _ = xcb_ret
  9884. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  9885. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9886. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9887. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9888. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9889. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9890. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9891. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9892. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9893. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9894. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9895. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9896. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9897. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9898. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9899. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9900. /* xcb_create_window_value_list_t value_list */
  9901. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  9902. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  9903. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req2)))
  9904. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  9905. return xcb_ret
  9906. }
  9907. var _xcb_req2 = Txcb_protocol_request_t{
  9908. Fcount: uint64(3),
  9909. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9910. Fisvoid: uint8(1),
  9911. }
  9912. 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) {
  9913. bp := tls.Alloc(128)
  9914. defer tls.Free(128)
  9915. var xcb_ret Txcb_void_cookie_t
  9916. var _ /* xcb_aux0 at bp+112 */ uintptr
  9917. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9918. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9919. _ = xcb_ret
  9920. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  9921. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9922. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9923. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9924. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9925. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9926. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9927. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9928. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9929. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9930. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9931. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9932. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9933. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9934. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9935. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9936. /* xcb_create_window_value_list_t value_list */
  9937. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  9938. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  9939. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req3)))
  9940. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  9941. return xcb_ret
  9942. }
  9943. var _xcb_req3 = Txcb_protocol_request_t{
  9944. Fcount: uint64(3),
  9945. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9946. Fisvoid: uint8(1),
  9947. }
  9948. func Xxcb_create_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  9949. return R + libc.UintptrFromInt32(1)*32
  9950. }
  9951. func Xxcb_change_window_attributes_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9952. bp := tls.Alloc(16)
  9953. defer tls.Free(16)
  9954. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  9955. var xcb_out, xcb_tmp uintptr
  9956. var xcb_parts [16]Tiovec
  9957. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  9958. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  9959. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  9960. xcb_buffer_len = uint32(0)
  9961. xcb_align_to = uint32(0)
  9962. xcb_padding_offset = uint32(0)
  9963. xcb_pad = uint32(0)
  9964. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  9965. xcb_parts_idx = uint32(0)
  9966. xcb_block_len = uint32(0)
  9967. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9968. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  9969. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  9970. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9971. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9972. xcb_parts_idx++
  9973. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9974. }
  9975. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9976. /* xcb_change_window_attributes_value_list_t.background_pixel */
  9977. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  9978. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9979. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9980. xcb_parts_idx++
  9981. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9982. }
  9983. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9984. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  9985. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  9986. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9987. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9988. xcb_parts_idx++
  9989. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9990. }
  9991. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9992. /* xcb_change_window_attributes_value_list_t.border_pixel */
  9993. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  9994. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9995. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9996. xcb_parts_idx++
  9997. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9998. }
  9999. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10000. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10001. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10002. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10003. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10004. xcb_parts_idx++
  10005. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10006. }
  10007. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10008. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10009. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10010. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10011. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10012. xcb_parts_idx++
  10013. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10014. }
  10015. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10016. /* xcb_change_window_attributes_value_list_t.backing_store */
  10017. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10018. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10019. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10020. xcb_parts_idx++
  10021. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10022. }
  10023. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10024. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10025. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  10026. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10027. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10028. xcb_parts_idx++
  10029. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10030. }
  10031. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10032. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10033. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  10034. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10035. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10036. xcb_parts_idx++
  10037. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10038. }
  10039. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10040. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10041. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  10042. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10043. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10044. xcb_parts_idx++
  10045. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10046. }
  10047. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10048. /* xcb_change_window_attributes_value_list_t.save_under */
  10049. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  10050. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10051. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10052. xcb_parts_idx++
  10053. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10054. }
  10055. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10056. /* xcb_change_window_attributes_value_list_t.event_mask */
  10057. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  10058. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10059. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10060. xcb_parts_idx++
  10061. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10062. }
  10063. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10064. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10065. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  10066. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10067. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10068. xcb_parts_idx++
  10069. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10070. }
  10071. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10072. /* xcb_change_window_attributes_value_list_t.colormap */
  10073. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  10074. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10075. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10076. xcb_parts_idx++
  10077. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10078. }
  10079. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10080. /* xcb_change_window_attributes_value_list_t.cursor */
  10081. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  10082. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10083. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10084. xcb_parts_idx++
  10085. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10086. }
  10087. /* insert padding */
  10088. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10089. xcb_buffer_len += xcb_block_len + xcb_pad
  10090. if uint32(0) != xcb_pad {
  10091. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10092. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10093. xcb_parts_idx++
  10094. xcb_pad = uint32(0)
  10095. }
  10096. xcb_block_len = uint32(0)
  10097. xcb_padding_offset = uint32(0)
  10098. if libc.UintptrFromInt32(0) == xcb_out {
  10099. /* allocate memory */
  10100. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10101. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10102. }
  10103. xcb_tmp = xcb_out
  10104. i = uint32(0)
  10105. for {
  10106. if !(i < xcb_parts_idx) {
  10107. break
  10108. }
  10109. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10110. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10111. }
  10112. if uint64(0) != xcb_parts[i].Fiov_len {
  10113. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10114. }
  10115. goto _1
  10116. _1:
  10117. ;
  10118. i++
  10119. }
  10120. return libc.Int32FromUint32(xcb_buffer_len)
  10121. }
  10122. func Xxcb_change_window_attributes_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10123. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10124. var xcb_tmp uintptr
  10125. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10126. xcb_tmp = _buffer
  10127. xcb_buffer_len = uint32(0)
  10128. xcb_block_len = uint32(0)
  10129. xcb_pad = uint32(0)
  10130. xcb_align_to = uint32(0)
  10131. xcb_padding_offset = uint32(0)
  10132. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10133. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10134. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10135. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10136. xcb_tmp += uintptr(4)
  10137. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10138. }
  10139. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10140. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10141. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10142. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10143. xcb_tmp += uintptr(4)
  10144. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10145. }
  10146. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10147. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10148. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10149. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10150. xcb_tmp += uintptr(4)
  10151. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10152. }
  10153. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10154. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10155. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10156. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10157. xcb_tmp += uintptr(4)
  10158. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10159. }
  10160. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10161. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10162. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10163. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10164. xcb_tmp += uintptr(4)
  10165. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10166. }
  10167. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10168. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10169. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10170. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10171. xcb_tmp += uintptr(4)
  10172. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10173. }
  10174. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10175. /* xcb_change_window_attributes_value_list_t.backing_store */
  10176. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10177. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10178. xcb_tmp += uintptr(4)
  10179. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10180. }
  10181. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10182. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10183. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10184. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10185. xcb_tmp += uintptr(4)
  10186. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10187. }
  10188. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10189. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10190. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10191. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10192. xcb_tmp += uintptr(4)
  10193. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10194. }
  10195. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10196. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10197. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10198. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10199. xcb_tmp += uintptr(4)
  10200. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10201. }
  10202. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10203. /* xcb_change_window_attributes_value_list_t.save_under */
  10204. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10205. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10206. xcb_tmp += uintptr(4)
  10207. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10208. }
  10209. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10210. /* xcb_change_window_attributes_value_list_t.event_mask */
  10211. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10212. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10213. xcb_tmp += uintptr(4)
  10214. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10215. }
  10216. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10217. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10218. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10219. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10220. xcb_tmp += uintptr(4)
  10221. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10222. }
  10223. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10224. /* xcb_change_window_attributes_value_list_t.colormap */
  10225. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  10226. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10227. xcb_tmp += uintptr(4)
  10228. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10229. }
  10230. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10231. /* xcb_change_window_attributes_value_list_t.cursor */
  10232. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  10233. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10234. xcb_tmp += uintptr(4)
  10235. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10236. }
  10237. /* insert padding */
  10238. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10239. xcb_buffer_len += xcb_block_len + xcb_pad
  10240. if uint32(0) != xcb_pad {
  10241. xcb_tmp += uintptr(xcb_pad)
  10242. xcb_pad = uint32(0)
  10243. }
  10244. xcb_block_len = uint32(0)
  10245. xcb_padding_offset = uint32(0)
  10246. return libc.Int32FromUint32(xcb_buffer_len)
  10247. }
  10248. func Xxcb_change_window_attributes_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  10249. bp := tls.Alloc(64)
  10250. defer tls.Free(64)
  10251. var _ /* _aux at bp+0 */ Txcb_change_window_attributes_value_list_t
  10252. return Xxcb_change_window_attributes_value_list_unpack(tls, _buffer, value_mask, bp)
  10253. }
  10254. func Xxcb_change_window_attributes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10255. var _aux, xcb_tmp uintptr
  10256. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10257. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10258. xcb_tmp = _buffer
  10259. _aux = _buffer
  10260. xcb_buffer_len = uint32(0)
  10261. xcb_block_len = uint32(0)
  10262. xcb_pad = uint32(0)
  10263. xcb_align_to = uint32(0)
  10264. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  10265. xcb_tmp += uintptr(xcb_block_len)
  10266. xcb_buffer_len += xcb_block_len
  10267. xcb_block_len = uint32(0)
  10268. /* value_list */
  10269. 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))
  10270. xcb_tmp += uintptr(xcb_block_len)
  10271. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  10272. /* insert padding */
  10273. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10274. xcb_buffer_len += xcb_block_len + xcb_pad
  10275. if uint32(0) != xcb_pad {
  10276. xcb_tmp += uintptr(xcb_pad)
  10277. xcb_pad = uint32(0)
  10278. }
  10279. xcb_block_len = uint32(0)
  10280. return libc.Int32FromUint32(xcb_buffer_len)
  10281. }
  10282. 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) {
  10283. bp := tls.Alloc(96)
  10284. defer tls.Free(96)
  10285. var xcb_ret Txcb_void_cookie_t
  10286. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10287. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10288. _ = xcb_ret
  10289. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10290. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10291. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10292. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10293. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10294. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10295. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10296. /* xcb_change_window_attributes_value_list_t value_list */
  10297. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10298. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10299. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req4)))
  10300. return xcb_ret
  10301. }
  10302. var _xcb_req4 = Txcb_protocol_request_t{
  10303. Fcount: uint64(3),
  10304. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10305. Fisvoid: uint8(1),
  10306. }
  10307. 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) {
  10308. bp := tls.Alloc(96)
  10309. defer tls.Free(96)
  10310. var xcb_ret Txcb_void_cookie_t
  10311. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10312. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10313. _ = xcb_ret
  10314. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10315. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10316. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10317. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10318. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10319. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10320. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10321. /* xcb_change_window_attributes_value_list_t value_list */
  10322. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10323. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10324. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req5)))
  10325. return xcb_ret
  10326. }
  10327. var _xcb_req5 = Txcb_protocol_request_t{
  10328. Fcount: uint64(3),
  10329. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10330. Fisvoid: uint8(1),
  10331. }
  10332. 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) {
  10333. bp := tls.Alloc(112)
  10334. defer tls.Free(112)
  10335. var xcb_ret Txcb_void_cookie_t
  10336. var _ /* xcb_aux0 at bp+96 */ uintptr
  10337. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10338. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10339. _ = xcb_ret
  10340. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10341. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10342. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10343. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10344. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10345. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10346. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10347. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10348. /* xcb_change_window_attributes_value_list_t value_list */
  10349. (*(*[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))
  10350. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10351. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req6)))
  10352. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10353. return xcb_ret
  10354. }
  10355. var _xcb_req6 = Txcb_protocol_request_t{
  10356. Fcount: uint64(3),
  10357. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10358. Fisvoid: uint8(1),
  10359. }
  10360. 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) {
  10361. bp := tls.Alloc(112)
  10362. defer tls.Free(112)
  10363. var xcb_ret Txcb_void_cookie_t
  10364. var _ /* xcb_aux0 at bp+96 */ uintptr
  10365. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10366. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10367. _ = xcb_ret
  10368. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10369. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10370. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10371. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10372. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10373. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10374. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10375. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10376. /* xcb_change_window_attributes_value_list_t value_list */
  10377. (*(*[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))
  10378. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10379. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req7)))
  10380. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10381. return xcb_ret
  10382. }
  10383. var _xcb_req7 = Txcb_protocol_request_t{
  10384. Fcount: uint64(3),
  10385. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10386. Fisvoid: uint8(1),
  10387. }
  10388. func Xxcb_change_window_attributes_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10389. return R + libc.UintptrFromInt32(1)*12
  10390. }
  10391. func Xxcb_get_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10392. bp := tls.Alloc(80)
  10393. defer tls.Free(80)
  10394. var xcb_ret Txcb_get_window_attributes_cookie_t
  10395. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10396. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10397. _ = xcb_ret
  10398. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10399. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10400. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10401. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10402. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10403. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10404. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req8)))
  10405. return xcb_ret
  10406. }
  10407. var _xcb_req8 = Txcb_protocol_request_t{
  10408. Fcount: uint64(2),
  10409. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10410. }
  10411. func Xxcb_get_window_attributes_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10412. bp := tls.Alloc(80)
  10413. defer tls.Free(80)
  10414. var xcb_ret Txcb_get_window_attributes_cookie_t
  10415. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10416. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10417. _ = xcb_ret
  10418. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10419. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10420. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10421. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10422. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10423. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10424. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req9)))
  10425. return xcb_ret
  10426. }
  10427. var _xcb_req9 = Txcb_protocol_request_t{
  10428. Fcount: uint64(2),
  10429. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10430. }
  10431. func Xxcb_get_window_attributes_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_window_attributes_cookie_t, e uintptr) (r uintptr) {
  10432. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  10433. }
  10434. func Xxcb_destroy_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10435. bp := tls.Alloc(80)
  10436. defer tls.Free(80)
  10437. var xcb_ret Txcb_void_cookie_t
  10438. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10439. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10440. _ = xcb_ret
  10441. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10442. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10443. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10444. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10445. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10446. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10447. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req10)))
  10448. return xcb_ret
  10449. }
  10450. var _xcb_req10 = Txcb_protocol_request_t{
  10451. Fcount: uint64(2),
  10452. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10453. Fisvoid: uint8(1),
  10454. }
  10455. func Xxcb_destroy_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10456. bp := tls.Alloc(80)
  10457. defer tls.Free(80)
  10458. var xcb_ret Txcb_void_cookie_t
  10459. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10460. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10461. _ = xcb_ret
  10462. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10463. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10464. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10465. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10466. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10467. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10468. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req11)))
  10469. return xcb_ret
  10470. }
  10471. var _xcb_req11 = Txcb_protocol_request_t{
  10472. Fcount: uint64(2),
  10473. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10474. Fisvoid: uint8(1),
  10475. }
  10476. func Xxcb_destroy_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10477. bp := tls.Alloc(80)
  10478. defer tls.Free(80)
  10479. var xcb_ret Txcb_void_cookie_t
  10480. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10481. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10482. _ = xcb_ret
  10483. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10484. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10485. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10486. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10487. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10488. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10489. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req12)))
  10490. return xcb_ret
  10491. }
  10492. var _xcb_req12 = Txcb_protocol_request_t{
  10493. Fcount: uint64(2),
  10494. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10495. Fisvoid: uint8(1),
  10496. }
  10497. func Xxcb_destroy_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10498. bp := tls.Alloc(80)
  10499. defer tls.Free(80)
  10500. var xcb_ret Txcb_void_cookie_t
  10501. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10502. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10503. _ = xcb_ret
  10504. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10505. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10506. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10507. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10508. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10509. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10510. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req13)))
  10511. return xcb_ret
  10512. }
  10513. var _xcb_req13 = Txcb_protocol_request_t{
  10514. Fcount: uint64(2),
  10515. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10516. Fisvoid: uint8(1),
  10517. }
  10518. func Xxcb_change_save_set_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10519. bp := tls.Alloc(80)
  10520. defer tls.Free(80)
  10521. var xcb_ret Txcb_void_cookie_t
  10522. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10523. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10524. _ = xcb_ret
  10525. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10526. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10527. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10528. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10529. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10530. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10531. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req14)))
  10532. return xcb_ret
  10533. }
  10534. var _xcb_req14 = Txcb_protocol_request_t{
  10535. Fcount: uint64(2),
  10536. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10537. Fisvoid: uint8(1),
  10538. }
  10539. func Xxcb_change_save_set(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10540. bp := tls.Alloc(80)
  10541. defer tls.Free(80)
  10542. var xcb_ret Txcb_void_cookie_t
  10543. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10544. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10545. _ = xcb_ret
  10546. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10547. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10548. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10549. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10550. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10551. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10552. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req15)))
  10553. return xcb_ret
  10554. }
  10555. var _xcb_req15 = Txcb_protocol_request_t{
  10556. Fcount: uint64(2),
  10557. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10558. Fisvoid: uint8(1),
  10559. }
  10560. 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) {
  10561. bp := tls.Alloc(80)
  10562. defer tls.Free(80)
  10563. var xcb_ret Txcb_void_cookie_t
  10564. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10565. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10566. _ = xcb_ret
  10567. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10568. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10569. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10570. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10571. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10572. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10573. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10574. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10575. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10576. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req16)))
  10577. return xcb_ret
  10578. }
  10579. var _xcb_req16 = Txcb_protocol_request_t{
  10580. Fcount: uint64(2),
  10581. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10582. Fisvoid: uint8(1),
  10583. }
  10584. 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) {
  10585. bp := tls.Alloc(80)
  10586. defer tls.Free(80)
  10587. var xcb_ret Txcb_void_cookie_t
  10588. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10589. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10590. _ = xcb_ret
  10591. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10592. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10593. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10594. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10595. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10596. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10597. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10598. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10599. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10600. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req17)))
  10601. return xcb_ret
  10602. }
  10603. var _xcb_req17 = Txcb_protocol_request_t{
  10604. Fcount: uint64(2),
  10605. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10606. Fisvoid: uint8(1),
  10607. }
  10608. func Xxcb_map_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10609. bp := tls.Alloc(80)
  10610. defer tls.Free(80)
  10611. var xcb_ret Txcb_void_cookie_t
  10612. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10613. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10614. _ = xcb_ret
  10615. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10616. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10617. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10618. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10619. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10620. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10621. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req18)))
  10622. return xcb_ret
  10623. }
  10624. var _xcb_req18 = Txcb_protocol_request_t{
  10625. Fcount: uint64(2),
  10626. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10627. Fisvoid: uint8(1),
  10628. }
  10629. func Xxcb_map_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10630. bp := tls.Alloc(80)
  10631. defer tls.Free(80)
  10632. var xcb_ret Txcb_void_cookie_t
  10633. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10634. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10635. _ = xcb_ret
  10636. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10637. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10638. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10639. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10640. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10641. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10642. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req19)))
  10643. return xcb_ret
  10644. }
  10645. var _xcb_req19 = Txcb_protocol_request_t{
  10646. Fcount: uint64(2),
  10647. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10648. Fisvoid: uint8(1),
  10649. }
  10650. func Xxcb_map_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10651. bp := tls.Alloc(80)
  10652. defer tls.Free(80)
  10653. var xcb_ret Txcb_void_cookie_t
  10654. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10655. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10656. _ = xcb_ret
  10657. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10658. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10659. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10660. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10661. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10662. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10663. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req20)))
  10664. return xcb_ret
  10665. }
  10666. var _xcb_req20 = Txcb_protocol_request_t{
  10667. Fcount: uint64(2),
  10668. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10669. Fisvoid: uint8(1),
  10670. }
  10671. func Xxcb_map_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10672. bp := tls.Alloc(80)
  10673. defer tls.Free(80)
  10674. var xcb_ret Txcb_void_cookie_t
  10675. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10676. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10677. _ = xcb_ret
  10678. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10679. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10680. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10681. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10682. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10683. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10684. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req21)))
  10685. return xcb_ret
  10686. }
  10687. var _xcb_req21 = Txcb_protocol_request_t{
  10688. Fcount: uint64(2),
  10689. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10690. Fisvoid: uint8(1),
  10691. }
  10692. func Xxcb_unmap_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10693. bp := tls.Alloc(80)
  10694. defer tls.Free(80)
  10695. var xcb_ret Txcb_void_cookie_t
  10696. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10697. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10698. _ = xcb_ret
  10699. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10700. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10701. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10702. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10703. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10704. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10705. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req22)))
  10706. return xcb_ret
  10707. }
  10708. var _xcb_req22 = Txcb_protocol_request_t{
  10709. Fcount: uint64(2),
  10710. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10711. Fisvoid: uint8(1),
  10712. }
  10713. func Xxcb_unmap_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10714. bp := tls.Alloc(80)
  10715. defer tls.Free(80)
  10716. var xcb_ret Txcb_void_cookie_t
  10717. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10718. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10719. _ = xcb_ret
  10720. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10721. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10722. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10723. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10724. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10725. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10726. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req23)))
  10727. return xcb_ret
  10728. }
  10729. var _xcb_req23 = Txcb_protocol_request_t{
  10730. Fcount: uint64(2),
  10731. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10732. Fisvoid: uint8(1),
  10733. }
  10734. func Xxcb_unmap_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10735. bp := tls.Alloc(80)
  10736. defer tls.Free(80)
  10737. var xcb_ret Txcb_void_cookie_t
  10738. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10739. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10740. _ = xcb_ret
  10741. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10742. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10743. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10744. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10745. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10746. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10747. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req24)))
  10748. return xcb_ret
  10749. }
  10750. var _xcb_req24 = Txcb_protocol_request_t{
  10751. Fcount: uint64(2),
  10752. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10753. Fisvoid: uint8(1),
  10754. }
  10755. func Xxcb_unmap_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10756. bp := tls.Alloc(80)
  10757. defer tls.Free(80)
  10758. var xcb_ret Txcb_void_cookie_t
  10759. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10760. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10761. _ = xcb_ret
  10762. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10763. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10764. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10765. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10766. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10767. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10768. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req25)))
  10769. return xcb_ret
  10770. }
  10771. var _xcb_req25 = Txcb_protocol_request_t{
  10772. Fcount: uint64(2),
  10773. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10774. Fisvoid: uint8(1),
  10775. }
  10776. func Xxcb_configure_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10777. bp := tls.Alloc(16)
  10778. defer tls.Free(16)
  10779. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10780. var xcb_out, xcb_tmp uintptr
  10781. var xcb_parts [8]Tiovec
  10782. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10783. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10784. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10785. xcb_buffer_len = uint32(0)
  10786. xcb_align_to = uint32(0)
  10787. xcb_padding_offset = uint32(0)
  10788. xcb_pad = uint32(0)
  10789. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10790. xcb_parts_idx = uint32(0)
  10791. xcb_block_len = uint32(0)
  10792. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10793. /* xcb_configure_window_value_list_t.x */
  10794. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10795. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10796. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10797. xcb_parts_idx++
  10798. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10799. }
  10800. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10801. /* xcb_configure_window_value_list_t.y */
  10802. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10803. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10804. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10805. xcb_parts_idx++
  10806. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10807. }
  10808. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10809. /* xcb_configure_window_value_list_t.width */
  10810. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10811. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10812. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10813. xcb_parts_idx++
  10814. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10815. }
  10816. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  10817. /* xcb_configure_window_value_list_t.height */
  10818. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10819. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10820. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10821. xcb_parts_idx++
  10822. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10823. }
  10824. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  10825. /* xcb_configure_window_value_list_t.border_width */
  10826. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10827. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10828. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10829. xcb_parts_idx++
  10830. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10831. }
  10832. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  10833. /* xcb_configure_window_value_list_t.sibling */
  10834. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10835. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10836. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10837. xcb_parts_idx++
  10838. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10839. }
  10840. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  10841. /* xcb_configure_window_value_list_t.stack_mode */
  10842. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10843. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10844. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10845. xcb_parts_idx++
  10846. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10847. }
  10848. /* insert padding */
  10849. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10850. xcb_buffer_len += xcb_block_len + xcb_pad
  10851. if uint32(0) != xcb_pad {
  10852. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10853. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10854. xcb_parts_idx++
  10855. xcb_pad = uint32(0)
  10856. }
  10857. xcb_block_len = uint32(0)
  10858. xcb_padding_offset = uint32(0)
  10859. if libc.UintptrFromInt32(0) == xcb_out {
  10860. /* allocate memory */
  10861. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10862. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10863. }
  10864. xcb_tmp = xcb_out
  10865. i = uint32(0)
  10866. for {
  10867. if !(i < xcb_parts_idx) {
  10868. break
  10869. }
  10870. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10871. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10872. }
  10873. if uint64(0) != xcb_parts[i].Fiov_len {
  10874. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10875. }
  10876. goto _1
  10877. _1:
  10878. ;
  10879. i++
  10880. }
  10881. return libc.Int32FromUint32(xcb_buffer_len)
  10882. }
  10883. func Xxcb_configure_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10884. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10885. var xcb_tmp uintptr
  10886. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10887. xcb_tmp = _buffer
  10888. xcb_buffer_len = uint32(0)
  10889. xcb_block_len = uint32(0)
  10890. xcb_pad = uint32(0)
  10891. xcb_align_to = uint32(0)
  10892. xcb_padding_offset = uint32(0)
  10893. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10894. /* xcb_configure_window_value_list_t.x */
  10895. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fx = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  10896. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10897. xcb_tmp += uintptr(4)
  10898. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10899. }
  10900. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10901. /* xcb_configure_window_value_list_t.y */
  10902. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fy = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  10903. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10904. xcb_tmp += uintptr(4)
  10905. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10906. }
  10907. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10908. /* xcb_configure_window_value_list_t.width */
  10909. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fwidth = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10910. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10911. xcb_tmp += uintptr(4)
  10912. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10913. }
  10914. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  10915. /* xcb_configure_window_value_list_t.height */
  10916. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fheight = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10917. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10918. xcb_tmp += uintptr(4)
  10919. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10920. }
  10921. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  10922. /* xcb_configure_window_value_list_t.border_width */
  10923. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10924. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10925. xcb_tmp += uintptr(4)
  10926. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10927. }
  10928. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  10929. /* xcb_configure_window_value_list_t.sibling */
  10930. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fsibling = *(*Txcb_window_t)(unsafe.Pointer(xcb_tmp))
  10931. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10932. xcb_tmp += uintptr(4)
  10933. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10934. }
  10935. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  10936. /* xcb_configure_window_value_list_t.stack_mode */
  10937. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fstack_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10938. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10939. xcb_tmp += uintptr(4)
  10940. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10941. }
  10942. /* insert padding */
  10943. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10944. xcb_buffer_len += xcb_block_len + xcb_pad
  10945. if uint32(0) != xcb_pad {
  10946. xcb_tmp += uintptr(xcb_pad)
  10947. xcb_pad = uint32(0)
  10948. }
  10949. xcb_block_len = uint32(0)
  10950. xcb_padding_offset = uint32(0)
  10951. return libc.Int32FromUint32(xcb_buffer_len)
  10952. }
  10953. func Xxcb_configure_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t) (r int32) {
  10954. bp := tls.Alloc(32)
  10955. defer tls.Free(32)
  10956. var _ /* _aux at bp+0 */ Txcb_configure_window_value_list_t
  10957. return Xxcb_configure_window_value_list_unpack(tls, _buffer, value_mask, bp)
  10958. }
  10959. func Xxcb_configure_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10960. var _aux, xcb_tmp uintptr
  10961. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10962. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10963. xcb_tmp = _buffer
  10964. _aux = _buffer
  10965. xcb_buffer_len = uint32(0)
  10966. xcb_block_len = uint32(0)
  10967. xcb_pad = uint32(0)
  10968. xcb_align_to = uint32(0)
  10969. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  10970. xcb_tmp += uintptr(xcb_block_len)
  10971. xcb_buffer_len += xcb_block_len
  10972. xcb_block_len = uint32(0)
  10973. /* value_list */
  10974. xcb_block_len += libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_configure_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  10975. xcb_tmp += uintptr(xcb_block_len)
  10976. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  10977. /* insert padding */
  10978. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10979. xcb_buffer_len += xcb_block_len + xcb_pad
  10980. if uint32(0) != xcb_pad {
  10981. xcb_tmp += uintptr(xcb_pad)
  10982. xcb_pad = uint32(0)
  10983. }
  10984. xcb_block_len = uint32(0)
  10985. return libc.Int32FromUint32(xcb_buffer_len)
  10986. }
  10987. 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) {
  10988. bp := tls.Alloc(96)
  10989. defer tls.Free(96)
  10990. var xcb_ret Txcb_void_cookie_t
  10991. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  10992. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10993. _ = xcb_ret
  10994. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10995. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10996. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10997. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  10998. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10999. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11000. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11001. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11002. /* xcb_configure_window_value_list_t value_list */
  11003. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11004. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11005. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req26)))
  11006. return xcb_ret
  11007. }
  11008. var _xcb_req26 = Txcb_protocol_request_t{
  11009. Fcount: uint64(3),
  11010. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11011. Fisvoid: uint8(1),
  11012. }
  11013. 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) {
  11014. bp := tls.Alloc(96)
  11015. defer tls.Free(96)
  11016. var xcb_ret Txcb_void_cookie_t
  11017. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11018. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11019. _ = xcb_ret
  11020. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11021. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11022. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11023. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11024. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11025. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11026. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11027. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11028. /* xcb_configure_window_value_list_t value_list */
  11029. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11030. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11031. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req27)))
  11032. return xcb_ret
  11033. }
  11034. var _xcb_req27 = Txcb_protocol_request_t{
  11035. Fcount: uint64(3),
  11036. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11037. Fisvoid: uint8(1),
  11038. }
  11039. 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) {
  11040. bp := tls.Alloc(112)
  11041. defer tls.Free(112)
  11042. var xcb_ret Txcb_void_cookie_t
  11043. var _ /* xcb_aux0 at bp+96 */ uintptr
  11044. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11045. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11046. _ = xcb_ret
  11047. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11048. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11049. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11050. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11051. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11052. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11053. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11054. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11055. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11056. /* xcb_configure_window_value_list_t value_list */
  11057. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11058. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11059. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req28)))
  11060. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11061. return xcb_ret
  11062. }
  11063. var _xcb_req28 = Txcb_protocol_request_t{
  11064. Fcount: uint64(3),
  11065. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11066. Fisvoid: uint8(1),
  11067. }
  11068. 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) {
  11069. bp := tls.Alloc(112)
  11070. defer tls.Free(112)
  11071. var xcb_ret Txcb_void_cookie_t
  11072. var _ /* xcb_aux0 at bp+96 */ uintptr
  11073. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11074. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11075. _ = xcb_ret
  11076. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11077. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11078. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11079. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11080. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11081. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11082. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11083. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11084. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11085. /* xcb_configure_window_value_list_t value_list */
  11086. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11087. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11088. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req29)))
  11089. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11090. return xcb_ret
  11091. }
  11092. var _xcb_req29 = Txcb_protocol_request_t{
  11093. Fcount: uint64(3),
  11094. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11095. Fisvoid: uint8(1),
  11096. }
  11097. func Xxcb_configure_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  11098. return R + libc.UintptrFromInt32(1)*12
  11099. }
  11100. func Xxcb_circulate_window_checked(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11101. bp := tls.Alloc(80)
  11102. defer tls.Free(80)
  11103. var xcb_ret Txcb_void_cookie_t
  11104. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11105. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11106. _ = xcb_ret
  11107. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11108. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11109. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11110. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11111. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11112. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11113. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req30)))
  11114. return xcb_ret
  11115. }
  11116. var _xcb_req30 = Txcb_protocol_request_t{
  11117. Fcount: uint64(2),
  11118. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11119. Fisvoid: uint8(1),
  11120. }
  11121. func Xxcb_circulate_window(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11122. bp := tls.Alloc(80)
  11123. defer tls.Free(80)
  11124. var xcb_ret Txcb_void_cookie_t
  11125. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11126. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11127. _ = xcb_ret
  11128. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11129. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11130. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11131. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11132. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11133. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11134. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req31)))
  11135. return xcb_ret
  11136. }
  11137. var _xcb_req31 = Txcb_protocol_request_t{
  11138. Fcount: uint64(2),
  11139. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11140. Fisvoid: uint8(1),
  11141. }
  11142. func Xxcb_get_geometry(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11143. bp := tls.Alloc(80)
  11144. defer tls.Free(80)
  11145. var xcb_ret Txcb_get_geometry_cookie_t
  11146. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11147. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11148. _ = xcb_ret
  11149. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11150. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11151. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11152. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11153. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11154. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11155. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req32)))
  11156. return xcb_ret
  11157. }
  11158. var _xcb_req32 = Txcb_protocol_request_t{
  11159. Fcount: uint64(2),
  11160. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11161. }
  11162. func Xxcb_get_geometry_unchecked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11163. bp := tls.Alloc(80)
  11164. defer tls.Free(80)
  11165. var xcb_ret Txcb_get_geometry_cookie_t
  11166. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11167. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11168. _ = xcb_ret
  11169. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11170. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11171. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11172. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11173. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11174. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11175. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req33)))
  11176. return xcb_ret
  11177. }
  11178. var _xcb_req33 = Txcb_protocol_request_t{
  11179. Fcount: uint64(2),
  11180. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11181. }
  11182. func Xxcb_get_geometry_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_geometry_cookie_t, e uintptr) (r uintptr) {
  11183. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11184. }
  11185. func Xxcb_query_tree_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11186. var _aux, xcb_tmp uintptr
  11187. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11188. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11189. xcb_tmp = _buffer
  11190. _aux = _buffer
  11191. xcb_buffer_len = uint32(0)
  11192. xcb_block_len = uint32(0)
  11193. xcb_pad = uint32(0)
  11194. xcb_align_to = uint32(0)
  11195. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11196. xcb_tmp += uintptr(xcb_block_len)
  11197. xcb_buffer_len += xcb_block_len
  11198. xcb_block_len = uint32(0)
  11199. /* children */
  11200. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_tree_reply_t)(unsafe.Pointer(_aux)).Fchildren_len)*libc.Uint64FromInt64(4))
  11201. xcb_tmp += uintptr(xcb_block_len)
  11202. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11203. /* insert padding */
  11204. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11205. xcb_buffer_len += xcb_block_len + xcb_pad
  11206. if uint32(0) != xcb_pad {
  11207. xcb_tmp += uintptr(xcb_pad)
  11208. xcb_pad = uint32(0)
  11209. }
  11210. xcb_block_len = uint32(0)
  11211. return libc.Int32FromUint32(xcb_buffer_len)
  11212. }
  11213. func Xxcb_query_tree(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11214. bp := tls.Alloc(80)
  11215. defer tls.Free(80)
  11216. var xcb_ret Txcb_query_tree_cookie_t
  11217. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11218. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11219. _ = xcb_ret
  11220. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11221. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11222. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11223. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11224. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11225. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11226. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req34)))
  11227. return xcb_ret
  11228. }
  11229. var _xcb_req34 = Txcb_protocol_request_t{
  11230. Fcount: uint64(2),
  11231. Fopcode: uint8(m_XCB_QUERY_TREE),
  11232. }
  11233. func Xxcb_query_tree_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11234. bp := tls.Alloc(80)
  11235. defer tls.Free(80)
  11236. var xcb_ret Txcb_query_tree_cookie_t
  11237. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11238. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11239. _ = xcb_ret
  11240. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11241. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11242. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11243. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11244. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11245. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11246. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req35)))
  11247. return xcb_ret
  11248. }
  11249. var _xcb_req35 = Txcb_protocol_request_t{
  11250. Fcount: uint64(2),
  11251. Fopcode: uint8(m_XCB_QUERY_TREE),
  11252. }
  11253. func Xxcb_query_tree_children(tls *libc.TLS, R uintptr) (r uintptr) {
  11254. return R + libc.UintptrFromInt32(1)*32
  11255. }
  11256. func Xxcb_query_tree_children_length(tls *libc.TLS, R uintptr) (r int32) {
  11257. return libc.Int32FromUint16((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)
  11258. }
  11259. func Xxcb_query_tree_children_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11260. var i Txcb_generic_iterator_t
  11261. _ = i
  11262. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)*4
  11263. i.Frem = 0
  11264. i.Findex = int32(int64(i.Fdata) - int64(R))
  11265. return i
  11266. }
  11267. func Xxcb_query_tree_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_tree_cookie_t, e uintptr) (r uintptr) {
  11268. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11269. }
  11270. func Xxcb_intern_atom_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11271. var _aux, xcb_tmp uintptr
  11272. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11273. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11274. xcb_tmp = _buffer
  11275. _aux = _buffer
  11276. xcb_buffer_len = uint32(0)
  11277. xcb_block_len = uint32(0)
  11278. xcb_pad = uint32(0)
  11279. xcb_align_to = uint32(0)
  11280. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  11281. xcb_tmp += uintptr(xcb_block_len)
  11282. xcb_buffer_len += xcb_block_len
  11283. xcb_block_len = uint32(0)
  11284. /* name */
  11285. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_intern_atom_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11286. xcb_tmp += uintptr(xcb_block_len)
  11287. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11288. /* insert padding */
  11289. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11290. xcb_buffer_len += xcb_block_len + xcb_pad
  11291. if uint32(0) != xcb_pad {
  11292. xcb_tmp += uintptr(xcb_pad)
  11293. xcb_pad = uint32(0)
  11294. }
  11295. xcb_block_len = uint32(0)
  11296. return libc.Int32FromUint32(xcb_buffer_len)
  11297. }
  11298. 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) {
  11299. bp := tls.Alloc(112)
  11300. defer tls.Free(112)
  11301. var xcb_ret Txcb_intern_atom_cookie_t
  11302. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11303. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11304. _ = xcb_ret
  11305. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11306. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11307. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11309. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11310. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11311. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11312. /* char name */
  11313. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11314. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11315. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11316. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11317. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req36)))
  11318. return xcb_ret
  11319. }
  11320. var _xcb_req36 = Txcb_protocol_request_t{
  11321. Fcount: uint64(4),
  11322. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11323. }
  11324. 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) {
  11325. bp := tls.Alloc(112)
  11326. defer tls.Free(112)
  11327. var xcb_ret Txcb_intern_atom_cookie_t
  11328. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11329. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11330. _ = xcb_ret
  11331. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11332. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11333. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11334. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11335. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11336. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11337. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11338. /* char name */
  11339. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11340. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11341. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11342. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11343. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req37)))
  11344. return xcb_ret
  11345. }
  11346. var _xcb_req37 = Txcb_protocol_request_t{
  11347. Fcount: uint64(4),
  11348. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11349. }
  11350. func Xxcb_intern_atom_reply(tls *libc.TLS, c uintptr, cookie Txcb_intern_atom_cookie_t, e uintptr) (r uintptr) {
  11351. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11352. }
  11353. func Xxcb_get_atom_name_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11354. var _aux, xcb_tmp uintptr
  11355. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11356. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11357. xcb_tmp = _buffer
  11358. _aux = _buffer
  11359. xcb_buffer_len = uint32(0)
  11360. xcb_block_len = uint32(0)
  11361. xcb_pad = uint32(0)
  11362. xcb_align_to = uint32(0)
  11363. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11364. xcb_tmp += uintptr(xcb_block_len)
  11365. xcb_buffer_len += xcb_block_len
  11366. xcb_block_len = uint32(0)
  11367. /* name */
  11368. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11369. xcb_tmp += uintptr(xcb_block_len)
  11370. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11371. /* insert padding */
  11372. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11373. xcb_buffer_len += xcb_block_len + xcb_pad
  11374. if uint32(0) != xcb_pad {
  11375. xcb_tmp += uintptr(xcb_pad)
  11376. xcb_pad = uint32(0)
  11377. }
  11378. xcb_block_len = uint32(0)
  11379. return libc.Int32FromUint32(xcb_buffer_len)
  11380. }
  11381. func Xxcb_get_atom_name(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11382. bp := tls.Alloc(80)
  11383. defer tls.Free(80)
  11384. var xcb_ret Txcb_get_atom_name_cookie_t
  11385. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11386. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11387. _ = xcb_ret
  11388. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11389. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11390. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11391. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11392. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11393. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11394. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req38)))
  11395. return xcb_ret
  11396. }
  11397. var _xcb_req38 = Txcb_protocol_request_t{
  11398. Fcount: uint64(2),
  11399. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11400. }
  11401. func Xxcb_get_atom_name_unchecked(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11402. bp := tls.Alloc(80)
  11403. defer tls.Free(80)
  11404. var xcb_ret Txcb_get_atom_name_cookie_t
  11405. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11406. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11407. _ = xcb_ret
  11408. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11409. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11411. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11412. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11413. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11414. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req39)))
  11415. return xcb_ret
  11416. }
  11417. var _xcb_req39 = Txcb_protocol_request_t{
  11418. Fcount: uint64(2),
  11419. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11420. }
  11421. func Xxcb_get_atom_name_name(tls *libc.TLS, R uintptr) (r uintptr) {
  11422. return R + libc.UintptrFromInt32(1)*32
  11423. }
  11424. func Xxcb_get_atom_name_name_length(tls *libc.TLS, R uintptr) (r int32) {
  11425. return libc.Int32FromUint16((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11426. }
  11427. func Xxcb_get_atom_name_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11428. var i Txcb_generic_iterator_t
  11429. _ = i
  11430. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11431. i.Frem = 0
  11432. i.Findex = int32(int64(i.Fdata) - int64(R))
  11433. return i
  11434. }
  11435. func Xxcb_get_atom_name_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_atom_name_cookie_t, e uintptr) (r uintptr) {
  11436. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11437. }
  11438. func Xxcb_change_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11439. var _aux, xcb_tmp uintptr
  11440. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11441. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11442. xcb_tmp = _buffer
  11443. _aux = _buffer
  11444. xcb_buffer_len = uint32(0)
  11445. xcb_block_len = uint32(0)
  11446. xcb_pad = uint32(0)
  11447. xcb_align_to = uint32(0)
  11448. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  11449. xcb_tmp += uintptr(xcb_block_len)
  11450. xcb_buffer_len += xcb_block_len
  11451. xcb_block_len = uint32(0)
  11452. /* data */
  11453. 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))
  11454. xcb_tmp += uintptr(xcb_block_len)
  11455. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11456. /* insert padding */
  11457. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11458. xcb_buffer_len += xcb_block_len + xcb_pad
  11459. if uint32(0) != xcb_pad {
  11460. xcb_tmp += uintptr(xcb_pad)
  11461. xcb_pad = uint32(0)
  11462. }
  11463. xcb_block_len = uint32(0)
  11464. return libc.Int32FromUint32(xcb_buffer_len)
  11465. }
  11466. 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) {
  11467. bp := tls.Alloc(128)
  11468. defer tls.Free(128)
  11469. var xcb_ret Txcb_void_cookie_t
  11470. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11471. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11472. _ = xcb_ret
  11473. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11474. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11475. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11476. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11477. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11478. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11479. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11480. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11481. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11482. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11483. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11484. /* void data */
  11485. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11486. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11487. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11488. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11489. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req40)))
  11490. return xcb_ret
  11491. }
  11492. var _xcb_req40 = Txcb_protocol_request_t{
  11493. Fcount: uint64(4),
  11494. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11495. Fisvoid: uint8(1),
  11496. }
  11497. 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) {
  11498. bp := tls.Alloc(128)
  11499. defer tls.Free(128)
  11500. var xcb_ret Txcb_void_cookie_t
  11501. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11502. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11503. _ = xcb_ret
  11504. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11505. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11506. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11507. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11508. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11509. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11510. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11511. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11512. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11513. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11514. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11515. /* void data */
  11516. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11517. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11518. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11519. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11520. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req41)))
  11521. return xcb_ret
  11522. }
  11523. var _xcb_req41 = Txcb_protocol_request_t{
  11524. Fcount: uint64(4),
  11525. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11526. Fisvoid: uint8(1),
  11527. }
  11528. func Xxcb_change_property_data(tls *libc.TLS, R uintptr) (r uintptr) {
  11529. return R + libc.UintptrFromInt32(1)*24
  11530. }
  11531. func Xxcb_change_property_data_length(tls *libc.TLS, R uintptr) (r int32) {
  11532. 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))
  11533. }
  11534. func Xxcb_change_property_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11535. var i Txcb_generic_iterator_t
  11536. _ = i
  11537. 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))
  11538. i.Frem = 0
  11539. i.Findex = int32(int64(i.Fdata) - int64(R))
  11540. return i
  11541. }
  11542. func Xxcb_delete_property_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11543. bp := tls.Alloc(80)
  11544. defer tls.Free(80)
  11545. var xcb_ret Txcb_void_cookie_t
  11546. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11547. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11548. _ = xcb_ret
  11549. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11550. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11551. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11552. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11553. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11554. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11555. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11556. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req42)))
  11557. return xcb_ret
  11558. }
  11559. var _xcb_req42 = Txcb_protocol_request_t{
  11560. Fcount: uint64(2),
  11561. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11562. Fisvoid: uint8(1),
  11563. }
  11564. func Xxcb_delete_property(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11565. bp := tls.Alloc(80)
  11566. defer tls.Free(80)
  11567. var xcb_ret Txcb_void_cookie_t
  11568. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11569. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11570. _ = xcb_ret
  11571. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11572. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11573. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11574. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11575. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11576. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11577. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11578. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req43)))
  11579. return xcb_ret
  11580. }
  11581. var _xcb_req43 = Txcb_protocol_request_t{
  11582. Fcount: uint64(2),
  11583. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11584. Fisvoid: uint8(1),
  11585. }
  11586. func Xxcb_get_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11587. var _aux, xcb_tmp uintptr
  11588. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11589. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11590. xcb_tmp = _buffer
  11591. _aux = _buffer
  11592. xcb_buffer_len = uint32(0)
  11593. xcb_block_len = uint32(0)
  11594. xcb_pad = uint32(0)
  11595. xcb_align_to = uint32(0)
  11596. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11597. xcb_tmp += uintptr(xcb_block_len)
  11598. xcb_buffer_len += xcb_block_len
  11599. xcb_block_len = uint32(0)
  11600. /* value */
  11601. 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))
  11602. xcb_tmp += uintptr(xcb_block_len)
  11603. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11604. /* insert padding */
  11605. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11606. xcb_buffer_len += xcb_block_len + xcb_pad
  11607. if uint32(0) != xcb_pad {
  11608. xcb_tmp += uintptr(xcb_pad)
  11609. xcb_pad = uint32(0)
  11610. }
  11611. xcb_block_len = uint32(0)
  11612. return libc.Int32FromUint32(xcb_buffer_len)
  11613. }
  11614. 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) {
  11615. bp := tls.Alloc(96)
  11616. defer tls.Free(96)
  11617. var xcb_ret Txcb_get_property_cookie_t
  11618. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11619. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11620. _ = xcb_ret
  11621. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11622. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11623. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11624. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11625. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11626. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11627. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11628. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11629. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11630. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11631. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req44)))
  11632. return xcb_ret
  11633. }
  11634. var _xcb_req44 = Txcb_protocol_request_t{
  11635. Fcount: uint64(2),
  11636. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11637. }
  11638. 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) {
  11639. bp := tls.Alloc(96)
  11640. defer tls.Free(96)
  11641. var xcb_ret Txcb_get_property_cookie_t
  11642. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11643. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11644. _ = xcb_ret
  11645. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11646. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11647. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11648. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11649. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11650. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11651. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11652. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11653. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11654. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11655. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req45)))
  11656. return xcb_ret
  11657. }
  11658. var _xcb_req45 = Txcb_protocol_request_t{
  11659. Fcount: uint64(2),
  11660. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11661. }
  11662. func Xxcb_get_property_value(tls *libc.TLS, R uintptr) (r uintptr) {
  11663. return R + libc.UintptrFromInt32(1)*32
  11664. }
  11665. func Xxcb_get_property_value_length(tls *libc.TLS, R uintptr) (r int32) {
  11666. 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)))
  11667. }
  11668. func Xxcb_get_property_value_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11669. var i Txcb_generic_iterator_t
  11670. _ = i
  11671. 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)))
  11672. i.Frem = 0
  11673. i.Findex = int32(int64(i.Fdata) - int64(R))
  11674. return i
  11675. }
  11676. func Xxcb_get_property_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_property_cookie_t, e uintptr) (r uintptr) {
  11677. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11678. }
  11679. func Xxcb_list_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11680. var _aux, xcb_tmp uintptr
  11681. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11682. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11683. xcb_tmp = _buffer
  11684. _aux = _buffer
  11685. xcb_buffer_len = uint32(0)
  11686. xcb_block_len = uint32(0)
  11687. xcb_pad = uint32(0)
  11688. xcb_align_to = uint32(0)
  11689. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11690. xcb_tmp += uintptr(xcb_block_len)
  11691. xcb_buffer_len += xcb_block_len
  11692. xcb_block_len = uint32(0)
  11693. /* atoms */
  11694. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_properties_reply_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  11695. xcb_tmp += uintptr(xcb_block_len)
  11696. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11697. /* insert padding */
  11698. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11699. xcb_buffer_len += xcb_block_len + xcb_pad
  11700. if uint32(0) != xcb_pad {
  11701. xcb_tmp += uintptr(xcb_pad)
  11702. xcb_pad = uint32(0)
  11703. }
  11704. xcb_block_len = uint32(0)
  11705. return libc.Int32FromUint32(xcb_buffer_len)
  11706. }
  11707. func Xxcb_list_properties(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11708. bp := tls.Alloc(80)
  11709. defer tls.Free(80)
  11710. var xcb_ret Txcb_list_properties_cookie_t
  11711. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11712. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11713. _ = xcb_ret
  11714. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11715. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11716. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11717. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11718. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11719. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11720. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req46)))
  11721. return xcb_ret
  11722. }
  11723. var _xcb_req46 = Txcb_protocol_request_t{
  11724. Fcount: uint64(2),
  11725. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11726. }
  11727. func Xxcb_list_properties_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11728. bp := tls.Alloc(80)
  11729. defer tls.Free(80)
  11730. var xcb_ret Txcb_list_properties_cookie_t
  11731. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11732. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11733. _ = xcb_ret
  11734. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11735. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11736. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11737. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11738. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11739. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11740. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req47)))
  11741. return xcb_ret
  11742. }
  11743. var _xcb_req47 = Txcb_protocol_request_t{
  11744. Fcount: uint64(2),
  11745. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11746. }
  11747. func Xxcb_list_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  11748. return R + libc.UintptrFromInt32(1)*32
  11749. }
  11750. func Xxcb_list_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  11751. return libc.Int32FromUint16((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)
  11752. }
  11753. func Xxcb_list_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11754. var i Txcb_generic_iterator_t
  11755. _ = i
  11756. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)*4
  11757. i.Frem = 0
  11758. i.Findex = int32(int64(i.Fdata) - int64(R))
  11759. return i
  11760. }
  11761. func Xxcb_list_properties_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_properties_cookie_t, e uintptr) (r uintptr) {
  11762. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11763. }
  11764. 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) {
  11765. bp := tls.Alloc(80)
  11766. defer tls.Free(80)
  11767. var xcb_ret Txcb_void_cookie_t
  11768. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11769. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11770. _ = xcb_ret
  11771. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11772. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11773. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11774. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11777. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11778. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11779. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req48)))
  11780. return xcb_ret
  11781. }
  11782. var _xcb_req48 = Txcb_protocol_request_t{
  11783. Fcount: uint64(2),
  11784. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11785. Fisvoid: uint8(1),
  11786. }
  11787. 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) {
  11788. bp := tls.Alloc(80)
  11789. defer tls.Free(80)
  11790. var xcb_ret Txcb_void_cookie_t
  11791. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11792. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11793. _ = xcb_ret
  11794. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11795. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11796. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11797. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11798. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11799. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11800. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11801. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11802. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req49)))
  11803. return xcb_ret
  11804. }
  11805. var _xcb_req49 = Txcb_protocol_request_t{
  11806. Fcount: uint64(2),
  11807. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11808. Fisvoid: uint8(1),
  11809. }
  11810. func Xxcb_get_selection_owner(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11811. bp := tls.Alloc(80)
  11812. defer tls.Free(80)
  11813. var xcb_ret Txcb_get_selection_owner_cookie_t
  11814. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11815. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11816. _ = xcb_ret
  11817. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11818. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11819. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11820. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11821. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11822. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11823. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req50)))
  11824. return xcb_ret
  11825. }
  11826. var _xcb_req50 = Txcb_protocol_request_t{
  11827. Fcount: uint64(2),
  11828. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11829. }
  11830. func Xxcb_get_selection_owner_unchecked(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11831. bp := tls.Alloc(80)
  11832. defer tls.Free(80)
  11833. var xcb_ret Txcb_get_selection_owner_cookie_t
  11834. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11835. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11836. _ = xcb_ret
  11837. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11838. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11839. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11840. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11841. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11842. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11843. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req51)))
  11844. return xcb_ret
  11845. }
  11846. var _xcb_req51 = Txcb_protocol_request_t{
  11847. Fcount: uint64(2),
  11848. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11849. }
  11850. func Xxcb_get_selection_owner_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_selection_owner_cookie_t, e uintptr) (r uintptr) {
  11851. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11852. }
  11853. 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) {
  11854. bp := tls.Alloc(96)
  11855. defer tls.Free(96)
  11856. var xcb_ret Txcb_void_cookie_t
  11857. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  11858. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11859. _ = xcb_ret
  11860. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11861. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  11862. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11863. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  11864. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11865. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11867. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11868. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11869. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11870. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req52)))
  11871. return xcb_ret
  11872. }
  11873. var _xcb_req52 = Txcb_protocol_request_t{
  11874. Fcount: uint64(2),
  11875. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  11876. Fisvoid: uint8(1),
  11877. }
  11878. 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) {
  11879. bp := tls.Alloc(96)
  11880. defer tls.Free(96)
  11881. var xcb_ret Txcb_void_cookie_t
  11882. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  11883. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11884. _ = xcb_ret
  11885. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11886. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  11887. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11888. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  11889. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11890. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11891. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11892. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11893. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11894. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11895. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req53)))
  11896. return xcb_ret
  11897. }
  11898. var _xcb_req53 = Txcb_protocol_request_t{
  11899. Fcount: uint64(2),
  11900. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  11901. Fisvoid: uint8(1),
  11902. }
  11903. 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) {
  11904. bp := tls.Alloc(112)
  11905. defer tls.Free(112)
  11906. var xcb_ret Txcb_void_cookie_t
  11907. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  11908. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11909. _ = xcb_ret
  11910. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  11911. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  11912. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  11913. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  11914. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11915. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  11916. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11917. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11918. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req54)))
  11919. return xcb_ret
  11920. }
  11921. var _xcb_req54 = Txcb_protocol_request_t{
  11922. Fcount: uint64(2),
  11923. Fopcode: uint8(m_XCB_SEND_EVENT),
  11924. Fisvoid: uint8(1),
  11925. }
  11926. 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) {
  11927. bp := tls.Alloc(112)
  11928. defer tls.Free(112)
  11929. var xcb_ret Txcb_void_cookie_t
  11930. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  11931. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11932. _ = xcb_ret
  11933. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  11934. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  11935. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  11936. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  11937. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11938. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  11939. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11940. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11941. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req55)))
  11942. return xcb_ret
  11943. }
  11944. var _xcb_req55 = Txcb_protocol_request_t{
  11945. Fcount: uint64(2),
  11946. Fopcode: uint8(m_XCB_SEND_EVENT),
  11947. Fisvoid: uint8(1),
  11948. }
  11949. 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) {
  11950. bp := tls.Alloc(96)
  11951. defer tls.Free(96)
  11952. var xcb_ret Txcb_grab_pointer_cookie_t
  11953. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  11954. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11955. _ = xcb_ret
  11956. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  11957. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  11958. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  11959. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  11960. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  11961. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  11962. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  11963. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11967. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11968. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req56)))
  11969. return xcb_ret
  11970. }
  11971. var _xcb_req56 = Txcb_protocol_request_t{
  11972. Fcount: uint64(2),
  11973. Fopcode: uint8(m_XCB_GRAB_POINTER),
  11974. }
  11975. 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) {
  11976. bp := tls.Alloc(96)
  11977. defer tls.Free(96)
  11978. var xcb_ret Txcb_grab_pointer_cookie_t
  11979. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  11980. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11981. _ = xcb_ret
  11982. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  11983. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  11984. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  11985. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  11986. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  11987. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  11988. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  11989. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11990. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11991. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11992. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11993. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11994. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req57)))
  11995. return xcb_ret
  11996. }
  11997. var _xcb_req57 = Txcb_protocol_request_t{
  11998. Fcount: uint64(2),
  11999. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12000. }
  12001. func Xxcb_grab_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_pointer_cookie_t, e uintptr) (r uintptr) {
  12002. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12003. }
  12004. func Xxcb_ungrab_pointer_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12005. bp := tls.Alloc(80)
  12006. defer tls.Free(80)
  12007. var xcb_ret Txcb_void_cookie_t
  12008. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12009. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12010. _ = xcb_ret
  12011. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12012. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12013. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12014. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12015. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12016. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12017. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req58)))
  12018. return xcb_ret
  12019. }
  12020. var _xcb_req58 = Txcb_protocol_request_t{
  12021. Fcount: uint64(2),
  12022. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12023. Fisvoid: uint8(1),
  12024. }
  12025. func Xxcb_ungrab_pointer(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12026. bp := tls.Alloc(80)
  12027. defer tls.Free(80)
  12028. var xcb_ret Txcb_void_cookie_t
  12029. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12030. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12031. _ = xcb_ret
  12032. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12033. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12034. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12035. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12036. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12037. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12038. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req59)))
  12039. return xcb_ret
  12040. }
  12041. var _xcb_req59 = Txcb_protocol_request_t{
  12042. Fcount: uint64(2),
  12043. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12044. Fisvoid: uint8(1),
  12045. }
  12046. 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) {
  12047. bp := tls.Alloc(96)
  12048. defer tls.Free(96)
  12049. var xcb_ret Txcb_void_cookie_t
  12050. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12051. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12052. _ = xcb_ret
  12053. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12054. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12055. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12056. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12057. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12058. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12059. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12060. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12061. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12062. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12066. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12067. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req60)))
  12068. return xcb_ret
  12069. }
  12070. var _xcb_req60 = Txcb_protocol_request_t{
  12071. Fcount: uint64(2),
  12072. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12073. Fisvoid: uint8(1),
  12074. }
  12075. 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) {
  12076. bp := tls.Alloc(96)
  12077. defer tls.Free(96)
  12078. var xcb_ret Txcb_void_cookie_t
  12079. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12080. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12081. _ = xcb_ret
  12082. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12083. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12084. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12085. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12086. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12087. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12088. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12089. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12090. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12091. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12092. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12093. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12094. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12095. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12096. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req61)))
  12097. return xcb_ret
  12098. }
  12099. var _xcb_req61 = Txcb_protocol_request_t{
  12100. Fcount: uint64(2),
  12101. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12102. Fisvoid: uint8(1),
  12103. }
  12104. 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) {
  12105. bp := tls.Alloc(80)
  12106. defer tls.Free(80)
  12107. var xcb_ret Txcb_void_cookie_t
  12108. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12109. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12110. _ = xcb_ret
  12111. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12112. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12113. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12114. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12115. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12116. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12117. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12118. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12119. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req62)))
  12120. return xcb_ret
  12121. }
  12122. var _xcb_req62 = Txcb_protocol_request_t{
  12123. Fcount: uint64(2),
  12124. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12125. Fisvoid: uint8(1),
  12126. }
  12127. 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) {
  12128. bp := tls.Alloc(80)
  12129. defer tls.Free(80)
  12130. var xcb_ret Txcb_void_cookie_t
  12131. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12132. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12133. _ = xcb_ret
  12134. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12135. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12136. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12137. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12138. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12142. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req63)))
  12143. return xcb_ret
  12144. }
  12145. var _xcb_req63 = Txcb_protocol_request_t{
  12146. Fcount: uint64(2),
  12147. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12148. Fisvoid: uint8(1),
  12149. }
  12150. 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) {
  12151. bp := tls.Alloc(80)
  12152. defer tls.Free(80)
  12153. var xcb_ret Txcb_void_cookie_t
  12154. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12155. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12156. _ = xcb_ret
  12157. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12158. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12159. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12160. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12161. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12164. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12165. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12166. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req64)))
  12167. return xcb_ret
  12168. }
  12169. var _xcb_req64 = Txcb_protocol_request_t{
  12170. Fcount: uint64(2),
  12171. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12172. Fisvoid: uint8(1),
  12173. }
  12174. 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) {
  12175. bp := tls.Alloc(80)
  12176. defer tls.Free(80)
  12177. var xcb_ret Txcb_void_cookie_t
  12178. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12179. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12180. _ = xcb_ret
  12181. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12182. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12183. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12184. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12185. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12186. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12187. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12188. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12189. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12190. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req65)))
  12191. return xcb_ret
  12192. }
  12193. var _xcb_req65 = Txcb_protocol_request_t{
  12194. Fcount: uint64(2),
  12195. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12196. Fisvoid: uint8(1),
  12197. }
  12198. 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) {
  12199. bp := tls.Alloc(80)
  12200. defer tls.Free(80)
  12201. var xcb_ret Txcb_grab_keyboard_cookie_t
  12202. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12203. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12204. _ = xcb_ret
  12205. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12206. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12207. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12208. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12209. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12210. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12213. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12214. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12215. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req66)))
  12216. return xcb_ret
  12217. }
  12218. var _xcb_req66 = Txcb_protocol_request_t{
  12219. Fcount: uint64(2),
  12220. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12221. }
  12222. 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) {
  12223. bp := tls.Alloc(80)
  12224. defer tls.Free(80)
  12225. var xcb_ret Txcb_grab_keyboard_cookie_t
  12226. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12227. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12228. _ = xcb_ret
  12229. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12230. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12231. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12232. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12233. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12234. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12235. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12236. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12239. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req67)))
  12240. return xcb_ret
  12241. }
  12242. var _xcb_req67 = Txcb_protocol_request_t{
  12243. Fcount: uint64(2),
  12244. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12245. }
  12246. func Xxcb_grab_keyboard_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_keyboard_cookie_t, e uintptr) (r uintptr) {
  12247. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12248. }
  12249. func Xxcb_ungrab_keyboard_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12250. bp := tls.Alloc(80)
  12251. defer tls.Free(80)
  12252. var xcb_ret Txcb_void_cookie_t
  12253. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12254. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12255. _ = xcb_ret
  12256. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12257. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12262. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req68)))
  12263. return xcb_ret
  12264. }
  12265. var _xcb_req68 = Txcb_protocol_request_t{
  12266. Fcount: uint64(2),
  12267. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12268. Fisvoid: uint8(1),
  12269. }
  12270. func Xxcb_ungrab_keyboard(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12271. bp := tls.Alloc(80)
  12272. defer tls.Free(80)
  12273. var xcb_ret Txcb_void_cookie_t
  12274. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12275. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12276. _ = xcb_ret
  12277. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12278. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12281. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12282. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12283. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req69)))
  12284. return xcb_ret
  12285. }
  12286. var _xcb_req69 = Txcb_protocol_request_t{
  12287. Fcount: uint64(2),
  12288. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12289. Fisvoid: uint8(1),
  12290. }
  12291. 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) {
  12292. bp := tls.Alloc(80)
  12293. defer tls.Free(80)
  12294. var xcb_ret Txcb_void_cookie_t
  12295. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12296. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12297. _ = xcb_ret
  12298. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12299. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12300. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12301. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12302. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12303. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12304. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12305. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12306. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12307. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12308. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12309. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req70)))
  12310. return xcb_ret
  12311. }
  12312. var _xcb_req70 = Txcb_protocol_request_t{
  12313. Fcount: uint64(2),
  12314. Fopcode: uint8(m_XCB_GRAB_KEY),
  12315. Fisvoid: uint8(1),
  12316. }
  12317. 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) {
  12318. bp := tls.Alloc(80)
  12319. defer tls.Free(80)
  12320. var xcb_ret Txcb_void_cookie_t
  12321. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12322. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12323. _ = xcb_ret
  12324. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12325. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12326. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12327. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12328. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12329. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12330. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12332. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12333. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12334. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12335. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req71)))
  12336. return xcb_ret
  12337. }
  12338. var _xcb_req71 = Txcb_protocol_request_t{
  12339. Fcount: uint64(2),
  12340. Fopcode: uint8(m_XCB_GRAB_KEY),
  12341. Fisvoid: uint8(1),
  12342. }
  12343. 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) {
  12344. bp := tls.Alloc(80)
  12345. defer tls.Free(80)
  12346. var xcb_ret Txcb_void_cookie_t
  12347. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12348. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12349. _ = xcb_ret
  12350. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12351. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12352. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12353. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12354. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12355. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12356. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12357. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12358. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req72)))
  12359. return xcb_ret
  12360. }
  12361. var _xcb_req72 = Txcb_protocol_request_t{
  12362. Fcount: uint64(2),
  12363. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12364. Fisvoid: uint8(1),
  12365. }
  12366. 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) {
  12367. bp := tls.Alloc(80)
  12368. defer tls.Free(80)
  12369. var xcb_ret Txcb_void_cookie_t
  12370. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12371. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12372. _ = xcb_ret
  12373. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12374. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12375. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12376. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12377. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12378. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12379. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12380. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12381. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req73)))
  12382. return xcb_ret
  12383. }
  12384. var _xcb_req73 = Txcb_protocol_request_t{
  12385. Fcount: uint64(2),
  12386. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12387. Fisvoid: uint8(1),
  12388. }
  12389. func Xxcb_allow_events_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12390. bp := tls.Alloc(80)
  12391. defer tls.Free(80)
  12392. var xcb_ret Txcb_void_cookie_t
  12393. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12394. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12395. _ = xcb_ret
  12396. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12397. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12398. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12399. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12400. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12401. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12402. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req74)))
  12403. return xcb_ret
  12404. }
  12405. var _xcb_req74 = Txcb_protocol_request_t{
  12406. Fcount: uint64(2),
  12407. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12408. Fisvoid: uint8(1),
  12409. }
  12410. func Xxcb_allow_events(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12411. bp := tls.Alloc(80)
  12412. defer tls.Free(80)
  12413. var xcb_ret Txcb_void_cookie_t
  12414. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12415. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12416. _ = xcb_ret
  12417. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12418. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12419. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12420. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12421. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12422. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12423. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req75)))
  12424. return xcb_ret
  12425. }
  12426. var _xcb_req75 = Txcb_protocol_request_t{
  12427. Fcount: uint64(2),
  12428. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12429. Fisvoid: uint8(1),
  12430. }
  12431. func Xxcb_grab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12432. bp := tls.Alloc(80)
  12433. defer tls.Free(80)
  12434. var xcb_ret Txcb_void_cookie_t
  12435. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12436. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12437. _ = xcb_ret
  12438. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12439. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12440. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12441. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12442. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12443. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req76)))
  12444. return xcb_ret
  12445. }
  12446. var _xcb_req76 = Txcb_protocol_request_t{
  12447. Fcount: uint64(2),
  12448. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12449. Fisvoid: uint8(1),
  12450. }
  12451. func Xxcb_grab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12452. bp := tls.Alloc(80)
  12453. defer tls.Free(80)
  12454. var xcb_ret Txcb_void_cookie_t
  12455. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12456. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12457. _ = xcb_ret
  12458. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12459. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12460. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12461. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12462. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12463. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req77)))
  12464. return xcb_ret
  12465. }
  12466. var _xcb_req77 = Txcb_protocol_request_t{
  12467. Fcount: uint64(2),
  12468. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12469. Fisvoid: uint8(1),
  12470. }
  12471. func Xxcb_ungrab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12472. bp := tls.Alloc(80)
  12473. defer tls.Free(80)
  12474. var xcb_ret Txcb_void_cookie_t
  12475. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12476. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12477. _ = xcb_ret
  12478. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12479. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12480. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12481. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12482. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12483. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req78)))
  12484. return xcb_ret
  12485. }
  12486. var _xcb_req78 = Txcb_protocol_request_t{
  12487. Fcount: uint64(2),
  12488. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12489. Fisvoid: uint8(1),
  12490. }
  12491. func Xxcb_ungrab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12492. bp := tls.Alloc(80)
  12493. defer tls.Free(80)
  12494. var xcb_ret Txcb_void_cookie_t
  12495. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12496. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12497. _ = xcb_ret
  12498. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12499. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12500. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12501. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12503. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req79)))
  12504. return xcb_ret
  12505. }
  12506. var _xcb_req79 = Txcb_protocol_request_t{
  12507. Fcount: uint64(2),
  12508. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12509. Fisvoid: uint8(1),
  12510. }
  12511. func Xxcb_query_pointer(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12512. bp := tls.Alloc(80)
  12513. defer tls.Free(80)
  12514. var xcb_ret Txcb_query_pointer_cookie_t
  12515. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12516. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12517. _ = xcb_ret
  12518. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12519. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12520. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12521. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12522. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12523. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12524. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req80)))
  12525. return xcb_ret
  12526. }
  12527. var _xcb_req80 = Txcb_protocol_request_t{
  12528. Fcount: uint64(2),
  12529. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12530. }
  12531. func Xxcb_query_pointer_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12532. bp := tls.Alloc(80)
  12533. defer tls.Free(80)
  12534. var xcb_ret Txcb_query_pointer_cookie_t
  12535. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12536. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12537. _ = xcb_ret
  12538. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12539. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12540. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12541. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12542. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12543. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12544. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req81)))
  12545. return xcb_ret
  12546. }
  12547. var _xcb_req81 = Txcb_protocol_request_t{
  12548. Fcount: uint64(2),
  12549. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12550. }
  12551. func Xxcb_query_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_pointer_cookie_t, e uintptr) (r uintptr) {
  12552. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12553. }
  12554. func Xxcb_timecoord_next(tls *libc.TLS, i uintptr) {
  12555. var p1 uintptr
  12556. _ = p1
  12557. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Frem--
  12558. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  12559. p1 = i + 12
  12560. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  12561. }
  12562. func Xxcb_timecoord_end(tls *libc.TLS, i Txcb_timecoord_iterator_t) (r Txcb_generic_iterator_t) {
  12563. var ret Txcb_generic_iterator_t
  12564. _ = ret
  12565. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  12566. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  12567. ret.Frem = 0
  12568. return ret
  12569. }
  12570. func Xxcb_get_motion_events_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12571. var _aux, xcb_tmp uintptr
  12572. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12573. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12574. xcb_tmp = _buffer
  12575. _aux = _buffer
  12576. xcb_buffer_len = uint32(0)
  12577. xcb_block_len = uint32(0)
  12578. xcb_pad = uint32(0)
  12579. xcb_align_to = uint32(0)
  12580. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  12581. xcb_tmp += uintptr(xcb_block_len)
  12582. xcb_buffer_len += xcb_block_len
  12583. xcb_block_len = uint32(0)
  12584. /* events */
  12585. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(_aux)).Fevents_len)*libc.Uint64FromInt64(8))
  12586. xcb_tmp += uintptr(xcb_block_len)
  12587. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  12588. /* insert padding */
  12589. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12590. xcb_buffer_len += xcb_block_len + xcb_pad
  12591. if uint32(0) != xcb_pad {
  12592. xcb_tmp += uintptr(xcb_pad)
  12593. xcb_pad = uint32(0)
  12594. }
  12595. xcb_block_len = uint32(0)
  12596. return libc.Int32FromUint32(xcb_buffer_len)
  12597. }
  12598. 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) {
  12599. bp := tls.Alloc(80)
  12600. defer tls.Free(80)
  12601. var xcb_ret Txcb_get_motion_events_cookie_t
  12602. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12603. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12604. _ = xcb_ret
  12605. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12606. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12607. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12608. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12609. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12610. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12611. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12612. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12613. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req82)))
  12614. return xcb_ret
  12615. }
  12616. var _xcb_req82 = Txcb_protocol_request_t{
  12617. Fcount: uint64(2),
  12618. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12619. }
  12620. 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) {
  12621. bp := tls.Alloc(80)
  12622. defer tls.Free(80)
  12623. var xcb_ret Txcb_get_motion_events_cookie_t
  12624. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12625. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12626. _ = xcb_ret
  12627. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12628. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12629. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12630. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12631. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12632. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12633. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12634. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12635. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req83)))
  12636. return xcb_ret
  12637. }
  12638. var _xcb_req83 = Txcb_protocol_request_t{
  12639. Fcount: uint64(2),
  12640. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12641. }
  12642. func Xxcb_get_motion_events_events(tls *libc.TLS, R uintptr) (r uintptr) {
  12643. return R + libc.UintptrFromInt32(1)*32
  12644. }
  12645. func Xxcb_get_motion_events_events_length(tls *libc.TLS, R uintptr) (r int32) {
  12646. return libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12647. }
  12648. func Xxcb_get_motion_events_events_iterator(tls *libc.TLS, R uintptr) (r Txcb_timecoord_iterator_t) {
  12649. var i Txcb_timecoord_iterator_t
  12650. _ = i
  12651. i.Fdata = R + libc.UintptrFromInt32(1)*32
  12652. i.Frem = libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12653. i.Findex = int32(int64(i.Fdata) - int64(R))
  12654. return i
  12655. }
  12656. func Xxcb_get_motion_events_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_motion_events_cookie_t, e uintptr) (r uintptr) {
  12657. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12658. }
  12659. 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) {
  12660. bp := tls.Alloc(80)
  12661. defer tls.Free(80)
  12662. var xcb_ret Txcb_translate_coordinates_cookie_t
  12663. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12664. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12665. _ = xcb_ret
  12666. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12667. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12668. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12669. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12670. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12671. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12672. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12673. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12674. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12675. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req84)))
  12676. return xcb_ret
  12677. }
  12678. var _xcb_req84 = Txcb_protocol_request_t{
  12679. Fcount: uint64(2),
  12680. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12681. }
  12682. 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) {
  12683. bp := tls.Alloc(80)
  12684. defer tls.Free(80)
  12685. var xcb_ret Txcb_translate_coordinates_cookie_t
  12686. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12687. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12688. _ = xcb_ret
  12689. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12690. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12691. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12692. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12693. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12694. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12695. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12696. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12697. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12698. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req85)))
  12699. return xcb_ret
  12700. }
  12701. var _xcb_req85 = Txcb_protocol_request_t{
  12702. Fcount: uint64(2),
  12703. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12704. }
  12705. func Xxcb_translate_coordinates_reply(tls *libc.TLS, c uintptr, cookie Txcb_translate_coordinates_cookie_t, e uintptr) (r uintptr) {
  12706. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12707. }
  12708. 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) {
  12709. bp := tls.Alloc(96)
  12710. defer tls.Free(96)
  12711. var xcb_ret Txcb_void_cookie_t
  12712. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12713. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12714. _ = xcb_ret
  12715. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12716. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12717. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12718. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12719. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12720. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12721. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12722. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12723. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12724. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12725. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12726. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12727. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12728. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req86)))
  12729. return xcb_ret
  12730. }
  12731. var _xcb_req86 = Txcb_protocol_request_t{
  12732. Fcount: uint64(2),
  12733. Fopcode: uint8(m_XCB_WARP_POINTER),
  12734. Fisvoid: uint8(1),
  12735. }
  12736. 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) {
  12737. bp := tls.Alloc(96)
  12738. defer tls.Free(96)
  12739. var xcb_ret Txcb_void_cookie_t
  12740. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12741. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12742. _ = xcb_ret
  12743. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12744. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12745. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12746. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12747. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12748. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12749. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12750. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12751. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12752. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12753. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12754. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12755. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12756. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req87)))
  12757. return xcb_ret
  12758. }
  12759. var _xcb_req87 = Txcb_protocol_request_t{
  12760. Fcount: uint64(2),
  12761. Fopcode: uint8(m_XCB_WARP_POINTER),
  12762. Fisvoid: uint8(1),
  12763. }
  12764. 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) {
  12765. bp := tls.Alloc(80)
  12766. defer tls.Free(80)
  12767. var xcb_ret Txcb_void_cookie_t
  12768. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12769. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12770. _ = xcb_ret
  12771. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12772. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12773. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12774. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12777. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12778. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req88)))
  12779. return xcb_ret
  12780. }
  12781. var _xcb_req88 = Txcb_protocol_request_t{
  12782. Fcount: uint64(2),
  12783. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12784. Fisvoid: uint8(1),
  12785. }
  12786. 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) {
  12787. bp := tls.Alloc(80)
  12788. defer tls.Free(80)
  12789. var xcb_ret Txcb_void_cookie_t
  12790. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12791. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12792. _ = xcb_ret
  12793. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12794. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12795. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12796. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12797. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12798. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12799. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12800. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req89)))
  12801. return xcb_ret
  12802. }
  12803. var _xcb_req89 = Txcb_protocol_request_t{
  12804. Fcount: uint64(2),
  12805. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12806. Fisvoid: uint8(1),
  12807. }
  12808. func Xxcb_get_input_focus(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12809. bp := tls.Alloc(80)
  12810. defer tls.Free(80)
  12811. var xcb_ret Txcb_get_input_focus_cookie_t
  12812. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12813. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12814. _ = xcb_ret
  12815. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12816. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12817. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12818. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12819. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12820. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req90)))
  12821. return xcb_ret
  12822. }
  12823. var _xcb_req90 = Txcb_protocol_request_t{
  12824. Fcount: uint64(2),
  12825. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12826. }
  12827. func Xxcb_get_input_focus_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12828. bp := tls.Alloc(80)
  12829. defer tls.Free(80)
  12830. var xcb_ret Txcb_get_input_focus_cookie_t
  12831. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12832. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12833. _ = xcb_ret
  12834. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12835. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12836. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12837. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12838. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12839. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req91)))
  12840. return xcb_ret
  12841. }
  12842. var _xcb_req91 = Txcb_protocol_request_t{
  12843. Fcount: uint64(2),
  12844. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12845. }
  12846. func Xxcb_get_input_focus_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_input_focus_cookie_t, e uintptr) (r uintptr) {
  12847. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12848. }
  12849. func Xxcb_query_keymap(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  12850. bp := tls.Alloc(80)
  12851. defer tls.Free(80)
  12852. var xcb_ret Txcb_query_keymap_cookie_t
  12853. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  12854. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12855. _ = xcb_ret
  12856. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12857. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12858. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12859. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12860. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12861. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req92)))
  12862. return xcb_ret
  12863. }
  12864. var _xcb_req92 = Txcb_protocol_request_t{
  12865. Fcount: uint64(2),
  12866. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  12867. }
  12868. func Xxcb_query_keymap_unchecked(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  12869. bp := tls.Alloc(80)
  12870. defer tls.Free(80)
  12871. var xcb_ret Txcb_query_keymap_cookie_t
  12872. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  12873. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12874. _ = xcb_ret
  12875. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12876. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12877. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12878. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12879. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12880. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req93)))
  12881. return xcb_ret
  12882. }
  12883. var _xcb_req93 = Txcb_protocol_request_t{
  12884. Fcount: uint64(2),
  12885. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  12886. }
  12887. func Xxcb_query_keymap_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_keymap_cookie_t, e uintptr) (r uintptr) {
  12888. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12889. }
  12890. func Xxcb_open_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12891. var _aux, xcb_tmp uintptr
  12892. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12893. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12894. xcb_tmp = _buffer
  12895. _aux = _buffer
  12896. xcb_buffer_len = uint32(0)
  12897. xcb_block_len = uint32(0)
  12898. xcb_pad = uint32(0)
  12899. xcb_align_to = uint32(0)
  12900. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  12901. xcb_tmp += uintptr(xcb_block_len)
  12902. xcb_buffer_len += xcb_block_len
  12903. xcb_block_len = uint32(0)
  12904. /* name */
  12905. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_open_font_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  12906. xcb_tmp += uintptr(xcb_block_len)
  12907. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  12908. /* insert padding */
  12909. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12910. xcb_buffer_len += xcb_block_len + xcb_pad
  12911. if uint32(0) != xcb_pad {
  12912. xcb_tmp += uintptr(xcb_pad)
  12913. xcb_pad = uint32(0)
  12914. }
  12915. xcb_block_len = uint32(0)
  12916. return libc.Int32FromUint32(xcb_buffer_len)
  12917. }
  12918. 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) {
  12919. bp := tls.Alloc(112)
  12920. defer tls.Free(112)
  12921. var xcb_ret Txcb_void_cookie_t
  12922. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  12923. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  12924. _ = xcb_ret
  12925. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  12926. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  12927. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  12928. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  12929. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  12930. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12931. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12932. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12933. /* char name */
  12934. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  12935. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  12936. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  12937. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  12938. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req94)))
  12939. return xcb_ret
  12940. }
  12941. var _xcb_req94 = Txcb_protocol_request_t{
  12942. Fcount: uint64(4),
  12943. Fopcode: uint8(m_XCB_OPEN_FONT),
  12944. Fisvoid: uint8(1),
  12945. }
  12946. func Xxcb_open_font(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
  12947. bp := tls.Alloc(112)
  12948. defer tls.Free(112)
  12949. var xcb_ret Txcb_void_cookie_t
  12950. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  12951. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  12952. _ = xcb_ret
  12953. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  12954. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  12955. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  12956. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  12957. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  12958. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12959. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12960. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12961. /* char name */
  12962. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  12963. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  12964. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  12965. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  12966. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req95)))
  12967. return xcb_ret
  12968. }
  12969. var _xcb_req95 = Txcb_protocol_request_t{
  12970. Fcount: uint64(4),
  12971. Fopcode: uint8(m_XCB_OPEN_FONT),
  12972. Fisvoid: uint8(1),
  12973. }
  12974. func Xxcb_open_font_name(tls *libc.TLS, R uintptr) (r uintptr) {
  12975. return R + libc.UintptrFromInt32(1)*12
  12976. }
  12977. func Xxcb_open_font_name_length(tls *libc.TLS, R uintptr) (r int32) {
  12978. return libc.Int32FromUint16((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  12979. }
  12980. func Xxcb_open_font_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  12981. var i Txcb_generic_iterator_t
  12982. _ = i
  12983. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  12984. i.Frem = 0
  12985. i.Findex = int32(int64(i.Fdata) - int64(R))
  12986. return i
  12987. }
  12988. func Xxcb_close_font_checked(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  12989. bp := tls.Alloc(80)
  12990. defer tls.Free(80)
  12991. var xcb_ret Txcb_void_cookie_t
  12992. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  12993. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12994. _ = xcb_ret
  12995. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12996. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  12997. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12998. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12999. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13000. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13001. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req96)))
  13002. return xcb_ret
  13003. }
  13004. var _xcb_req96 = Txcb_protocol_request_t{
  13005. Fcount: uint64(2),
  13006. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13007. Fisvoid: uint8(1),
  13008. }
  13009. func Xxcb_close_font(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13010. bp := tls.Alloc(80)
  13011. defer tls.Free(80)
  13012. var xcb_ret Txcb_void_cookie_t
  13013. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13014. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13015. _ = xcb_ret
  13016. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13017. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13018. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13019. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13020. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13021. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13022. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req97)))
  13023. return xcb_ret
  13024. }
  13025. var _xcb_req97 = Txcb_protocol_request_t{
  13026. Fcount: uint64(2),
  13027. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13028. Fisvoid: uint8(1),
  13029. }
  13030. func Xxcb_fontprop_next(tls *libc.TLS, i uintptr) {
  13031. var p1 uintptr
  13032. _ = p1
  13033. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Frem--
  13034. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  13035. p1 = i + 12
  13036. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  13037. }
  13038. func Xxcb_fontprop_end(tls *libc.TLS, i Txcb_fontprop_iterator_t) (r Txcb_generic_iterator_t) {
  13039. var ret Txcb_generic_iterator_t
  13040. _ = ret
  13041. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  13042. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13043. ret.Frem = 0
  13044. return ret
  13045. }
  13046. func Xxcb_charinfo_next(tls *libc.TLS, i uintptr) {
  13047. var p1 uintptr
  13048. _ = p1
  13049. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Frem--
  13050. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  13051. p1 = i + 12
  13052. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  13053. }
  13054. func Xxcb_charinfo_end(tls *libc.TLS, i Txcb_charinfo_iterator_t) (r Txcb_generic_iterator_t) {
  13055. var ret Txcb_generic_iterator_t
  13056. _ = ret
  13057. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  13058. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13059. ret.Frem = 0
  13060. return ret
  13061. }
  13062. func Xxcb_query_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13063. var _aux, xcb_tmp uintptr
  13064. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13065. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13066. xcb_tmp = _buffer
  13067. _aux = _buffer
  13068. xcb_buffer_len = uint32(0)
  13069. xcb_block_len = uint32(0)
  13070. xcb_pad = uint32(0)
  13071. xcb_align_to = uint32(0)
  13072. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(60))
  13073. xcb_tmp += uintptr(xcb_block_len)
  13074. xcb_buffer_len += xcb_block_len
  13075. xcb_block_len = uint32(0)
  13076. /* properties */
  13077. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fproperties_len)*libc.Uint64FromInt64(8))
  13078. xcb_tmp += uintptr(xcb_block_len)
  13079. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13080. /* insert padding */
  13081. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13082. xcb_buffer_len += xcb_block_len + xcb_pad
  13083. if uint32(0) != xcb_pad {
  13084. xcb_tmp += uintptr(xcb_pad)
  13085. xcb_pad = uint32(0)
  13086. }
  13087. xcb_block_len = uint32(0)
  13088. /* char_infos */
  13089. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fchar_infos_len)*libc.Uint64FromInt64(12))
  13090. xcb_tmp += uintptr(xcb_block_len)
  13091. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  13092. /* insert padding */
  13093. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13094. xcb_buffer_len += xcb_block_len + xcb_pad
  13095. if uint32(0) != xcb_pad {
  13096. xcb_tmp += uintptr(xcb_pad)
  13097. xcb_pad = uint32(0)
  13098. }
  13099. xcb_block_len = uint32(0)
  13100. return libc.Int32FromUint32(xcb_buffer_len)
  13101. }
  13102. func Xxcb_query_font(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13103. bp := tls.Alloc(80)
  13104. defer tls.Free(80)
  13105. var xcb_ret Txcb_query_font_cookie_t
  13106. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13107. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13108. _ = xcb_ret
  13109. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13110. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13111. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13112. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13113. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13114. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13115. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req98)))
  13116. return xcb_ret
  13117. }
  13118. var _xcb_req98 = Txcb_protocol_request_t{
  13119. Fcount: uint64(2),
  13120. Fopcode: uint8(m_XCB_QUERY_FONT),
  13121. }
  13122. func Xxcb_query_font_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13123. bp := tls.Alloc(80)
  13124. defer tls.Free(80)
  13125. var xcb_ret Txcb_query_font_cookie_t
  13126. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13127. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13128. _ = xcb_ret
  13129. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13130. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13131. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13132. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13133. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13134. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13135. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req99)))
  13136. return xcb_ret
  13137. }
  13138. var _xcb_req99 = Txcb_protocol_request_t{
  13139. Fcount: uint64(2),
  13140. Fopcode: uint8(m_XCB_QUERY_FONT),
  13141. }
  13142. func Xxcb_query_font_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13143. return R + libc.UintptrFromInt32(1)*60
  13144. }
  13145. func Xxcb_query_font_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13146. return libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13147. }
  13148. func Xxcb_query_font_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13149. var i Txcb_fontprop_iterator_t
  13150. _ = i
  13151. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13152. i.Frem = libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13153. i.Findex = int32(int64(i.Fdata) - int64(R))
  13154. return i
  13155. }
  13156. func Xxcb_query_font_char_infos(tls *libc.TLS, R uintptr) (r uintptr) {
  13157. var prev Txcb_generic_iterator_t
  13158. _ = prev
  13159. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13160. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3)) + libc.UintptrFromInt32(0)
  13161. }
  13162. func Xxcb_query_font_char_infos_length(tls *libc.TLS, R uintptr) (r int32) {
  13163. return libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13164. }
  13165. func Xxcb_query_font_char_infos_iterator(tls *libc.TLS, R uintptr) (r Txcb_charinfo_iterator_t) {
  13166. var i Txcb_charinfo_iterator_t
  13167. var prev Txcb_generic_iterator_t
  13168. _, _ = i, prev
  13169. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13170. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  13171. i.Frem = libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13172. i.Findex = int32(int64(i.Fdata) - int64(R))
  13173. return i
  13174. }
  13175. func Xxcb_query_font_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_font_cookie_t, e uintptr) (r uintptr) {
  13176. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13177. }
  13178. func Xxcb_query_text_extents_sizeof(tls *libc.TLS, _buffer uintptr, string_len Tuint32_t) (r int32) {
  13179. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13180. var xcb_tmp uintptr
  13181. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13182. xcb_tmp = _buffer
  13183. xcb_buffer_len = uint32(0)
  13184. xcb_block_len = uint32(0)
  13185. xcb_pad = uint32(0)
  13186. xcb_align_to = uint32(0)
  13187. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13188. xcb_tmp += uintptr(xcb_block_len)
  13189. xcb_buffer_len += xcb_block_len
  13190. xcb_block_len = uint32(0)
  13191. /* string */
  13192. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(string_len)*libc.Uint64FromInt64(2))
  13193. xcb_tmp += uintptr(xcb_block_len)
  13194. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13195. /* insert padding */
  13196. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13197. xcb_buffer_len += xcb_block_len + xcb_pad
  13198. if uint32(0) != xcb_pad {
  13199. xcb_tmp += uintptr(xcb_pad)
  13200. xcb_pad = uint32(0)
  13201. }
  13202. xcb_block_len = uint32(0)
  13203. return libc.Int32FromUint32(xcb_buffer_len)
  13204. }
  13205. 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) {
  13206. bp := tls.Alloc(112)
  13207. defer tls.Free(112)
  13208. var xcb_ret Txcb_query_text_extents_cookie_t
  13209. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13210. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13211. _ = xcb_ret
  13212. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13213. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13214. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13215. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13216. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13217. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13218. /* xcb_char2b_t string */
  13219. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13220. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13221. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13222. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13223. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req100)))
  13224. return xcb_ret
  13225. }
  13226. var _xcb_req100 = Txcb_protocol_request_t{
  13227. Fcount: uint64(4),
  13228. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13229. }
  13230. 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) {
  13231. bp := tls.Alloc(112)
  13232. defer tls.Free(112)
  13233. var xcb_ret Txcb_query_text_extents_cookie_t
  13234. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13235. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13236. _ = xcb_ret
  13237. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13238. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13239. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13240. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13241. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13242. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13243. /* xcb_char2b_t string */
  13244. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13245. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13246. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13247. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13248. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req101)))
  13249. return xcb_ret
  13250. }
  13251. var _xcb_req101 = Txcb_protocol_request_t{
  13252. Fcount: uint64(4),
  13253. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13254. }
  13255. func Xxcb_query_text_extents_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_text_extents_cookie_t, e uintptr) (r uintptr) {
  13256. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13257. }
  13258. func Xxcb_str_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13259. var _aux, xcb_tmp uintptr
  13260. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13261. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13262. xcb_tmp = _buffer
  13263. _aux = _buffer
  13264. xcb_buffer_len = uint32(0)
  13265. xcb_block_len = uint32(0)
  13266. xcb_pad = uint32(0)
  13267. xcb_align_to = uint32(0)
  13268. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(1))
  13269. xcb_tmp += uintptr(xcb_block_len)
  13270. xcb_buffer_len += xcb_block_len
  13271. xcb_block_len = uint32(0)
  13272. /* name */
  13273. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_str_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  13274. xcb_tmp += uintptr(xcb_block_len)
  13275. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13276. /* insert padding */
  13277. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13278. xcb_buffer_len += xcb_block_len + xcb_pad
  13279. if uint32(0) != xcb_pad {
  13280. xcb_tmp += uintptr(xcb_pad)
  13281. xcb_pad = uint32(0)
  13282. }
  13283. xcb_block_len = uint32(0)
  13284. return libc.Int32FromUint32(xcb_buffer_len)
  13285. }
  13286. func Xxcb_str_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13287. return R + libc.UintptrFromInt32(1)
  13288. }
  13289. func Xxcb_str_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13290. return libc.Int32FromUint8((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13291. }
  13292. func Xxcb_str_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13293. var i Txcb_generic_iterator_t
  13294. _ = i
  13295. i.Fdata = R + libc.UintptrFromInt32(1) + uintptr((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13296. i.Frem = 0
  13297. i.Findex = int32(int64(i.Fdata) - int64(R))
  13298. return i
  13299. }
  13300. func Xxcb_str_next(tls *libc.TLS, i uintptr) {
  13301. var R uintptr
  13302. var child Txcb_generic_iterator_t
  13303. _, _ = R, child
  13304. R = (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata
  13305. child.Fdata = R + uintptr(Xxcb_str_sizeof(tls, R))
  13306. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata))
  13307. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Frem--
  13308. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  13309. }
  13310. func Xxcb_str_end(tls *libc.TLS, _i Txcb_str_iterator_t) (r Txcb_generic_iterator_t) {
  13311. bp := tls.Alloc(16)
  13312. defer tls.Free(16)
  13313. *(*Txcb_str_iterator_t)(unsafe.Pointer(bp)) = _i
  13314. var ret Txcb_generic_iterator_t
  13315. _ = ret
  13316. for (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  13317. Xxcb_str_next(tls, bp)
  13318. }
  13319. ret.Fdata = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Fdata
  13320. ret.Frem = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem
  13321. ret.Findex = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Findex
  13322. return ret
  13323. }
  13324. func Xxcb_list_fonts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13325. var _aux, xcb_tmp uintptr
  13326. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13327. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13328. xcb_tmp = _buffer
  13329. _aux = _buffer
  13330. xcb_buffer_len = uint32(0)
  13331. xcb_block_len = uint32(0)
  13332. xcb_pad = uint32(0)
  13333. xcb_align_to = uint32(0)
  13334. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13335. xcb_tmp += uintptr(xcb_block_len)
  13336. xcb_buffer_len += xcb_block_len
  13337. xcb_block_len = uint32(0)
  13338. /* pattern */
  13339. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13340. xcb_tmp += uintptr(xcb_block_len)
  13341. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13342. /* insert padding */
  13343. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13344. xcb_buffer_len += xcb_block_len + xcb_pad
  13345. if uint32(0) != xcb_pad {
  13346. xcb_tmp += uintptr(xcb_pad)
  13347. xcb_pad = uint32(0)
  13348. }
  13349. xcb_block_len = uint32(0)
  13350. return libc.Int32FromUint32(xcb_buffer_len)
  13351. }
  13352. 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) {
  13353. bp := tls.Alloc(112)
  13354. defer tls.Free(112)
  13355. var xcb_ret Txcb_list_fonts_cookie_t
  13356. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13357. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13358. _ = xcb_ret
  13359. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13360. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13361. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13362. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13363. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13364. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13365. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13366. /* char pattern */
  13367. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13368. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13369. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13370. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13371. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req102)))
  13372. return xcb_ret
  13373. }
  13374. var _xcb_req102 = Txcb_protocol_request_t{
  13375. Fcount: uint64(4),
  13376. Fopcode: uint8(m_XCB_LIST_FONTS),
  13377. }
  13378. 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) {
  13379. bp := tls.Alloc(112)
  13380. defer tls.Free(112)
  13381. var xcb_ret Txcb_list_fonts_cookie_t
  13382. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13383. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13384. _ = xcb_ret
  13385. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13386. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13387. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13388. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13389. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13390. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13391. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13392. /* char pattern */
  13393. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13394. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13395. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13396. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13397. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req103)))
  13398. return xcb_ret
  13399. }
  13400. var _xcb_req103 = Txcb_protocol_request_t{
  13401. Fcount: uint64(4),
  13402. Fopcode: uint8(m_XCB_LIST_FONTS),
  13403. }
  13404. func Xxcb_list_fonts_names_length(tls *libc.TLS, R uintptr) (r int32) {
  13405. return libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13406. }
  13407. func Xxcb_list_fonts_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13408. var i Txcb_str_iterator_t
  13409. _ = i
  13410. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13411. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13412. i.Findex = int32(int64(i.Fdata) - int64(R))
  13413. return i
  13414. }
  13415. func Xxcb_list_fonts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_cookie_t, e uintptr) (r uintptr) {
  13416. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13417. }
  13418. func Xxcb_list_fonts_with_info_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13419. var _aux, xcb_tmp uintptr
  13420. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13421. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13422. xcb_tmp = _buffer
  13423. _aux = _buffer
  13424. xcb_buffer_len = uint32(0)
  13425. xcb_block_len = uint32(0)
  13426. xcb_pad = uint32(0)
  13427. xcb_align_to = uint32(0)
  13428. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13429. xcb_tmp += uintptr(xcb_block_len)
  13430. xcb_buffer_len += xcb_block_len
  13431. xcb_block_len = uint32(0)
  13432. /* pattern */
  13433. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13434. xcb_tmp += uintptr(xcb_block_len)
  13435. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13436. /* insert padding */
  13437. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13438. xcb_buffer_len += xcb_block_len + xcb_pad
  13439. if uint32(0) != xcb_pad {
  13440. xcb_tmp += uintptr(xcb_pad)
  13441. xcb_pad = uint32(0)
  13442. }
  13443. xcb_block_len = uint32(0)
  13444. return libc.Int32FromUint32(xcb_buffer_len)
  13445. }
  13446. 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) {
  13447. bp := tls.Alloc(112)
  13448. defer tls.Free(112)
  13449. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13450. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13451. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13452. _ = xcb_ret
  13453. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13454. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13455. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13456. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13457. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13458. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13459. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13460. /* char pattern */
  13461. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13462. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13463. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13464. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13465. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req104)))
  13466. return xcb_ret
  13467. }
  13468. var _xcb_req104 = Txcb_protocol_request_t{
  13469. Fcount: uint64(4),
  13470. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13471. }
  13472. 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) {
  13473. bp := tls.Alloc(112)
  13474. defer tls.Free(112)
  13475. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13476. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13477. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13478. _ = xcb_ret
  13479. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13480. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13481. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13482. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13483. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13484. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13485. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13486. /* char pattern */
  13487. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13488. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13489. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13490. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13491. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req105)))
  13492. return xcb_ret
  13493. }
  13494. var _xcb_req105 = Txcb_protocol_request_t{
  13495. Fcount: uint64(4),
  13496. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13497. }
  13498. func Xxcb_list_fonts_with_info_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13499. return R + libc.UintptrFromInt32(1)*60
  13500. }
  13501. func Xxcb_list_fonts_with_info_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13502. return libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13503. }
  13504. func Xxcb_list_fonts_with_info_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13505. var i Txcb_fontprop_iterator_t
  13506. _ = i
  13507. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13508. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13509. i.Findex = int32(int64(i.Fdata) - int64(R))
  13510. return i
  13511. }
  13512. func Xxcb_list_fonts_with_info_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13513. var prev Txcb_generic_iterator_t
  13514. _ = prev
  13515. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13516. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  13517. }
  13518. func Xxcb_list_fonts_with_info_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13519. return libc.Int32FromUint8((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13520. }
  13521. func Xxcb_list_fonts_with_info_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13522. var i, prev Txcb_generic_iterator_t
  13523. _, _ = i, prev
  13524. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13525. 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)
  13526. i.Frem = 0
  13527. i.Findex = int32(int64(i.Fdata) - int64(R))
  13528. return i
  13529. }
  13530. func Xxcb_list_fonts_with_info_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_with_info_cookie_t, e uintptr) (r uintptr) {
  13531. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13532. }
  13533. func Xxcb_set_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13534. var _aux, xcb_tmp uintptr
  13535. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13536. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13537. xcb_tmp = _buffer
  13538. _aux = _buffer
  13539. xcb_buffer_len = uint32(0)
  13540. xcb_block_len = uint32(0)
  13541. xcb_pad = uint32(0)
  13542. xcb_align_to = uint32(0)
  13543. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13544. xcb_tmp += uintptr(xcb_block_len)
  13545. xcb_buffer_len += xcb_block_len
  13546. xcb_block_len = uint32(0)
  13547. /* font */
  13548. i = uint32(0)
  13549. for {
  13550. if !(i < uint32((*Txcb_set_font_path_request_t)(unsafe.Pointer(_aux)).Ffont_qty)) {
  13551. break
  13552. }
  13553. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13554. xcb_block_len += xcb_tmp_len
  13555. xcb_tmp += uintptr(xcb_tmp_len)
  13556. goto _1
  13557. _1:
  13558. ;
  13559. i++
  13560. }
  13561. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13562. /* insert padding */
  13563. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13564. xcb_buffer_len += xcb_block_len + xcb_pad
  13565. if uint32(0) != xcb_pad {
  13566. xcb_tmp += uintptr(xcb_pad)
  13567. xcb_pad = uint32(0)
  13568. }
  13569. xcb_block_len = uint32(0)
  13570. return libc.Int32FromUint32(xcb_buffer_len)
  13571. }
  13572. func Xxcb_set_font_path_checked(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13573. bp := tls.Alloc(112)
  13574. defer tls.Free(112)
  13575. var i, xcb_tmp_len uint32
  13576. var xcb_ret Txcb_void_cookie_t
  13577. var xcb_tmp uintptr
  13578. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13579. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13580. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13581. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13582. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13583. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13585. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13587. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13588. /* xcb_str_t font */
  13589. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13590. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13591. xcb_tmp = font
  13592. i = uint32(0)
  13593. for {
  13594. if !(i < uint32(font_qty)) {
  13595. break
  13596. }
  13597. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13598. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13599. xcb_tmp += uintptr(xcb_tmp_len)
  13600. goto _1
  13601. _1:
  13602. ;
  13603. i++
  13604. }
  13605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13606. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13607. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req106)))
  13608. return xcb_ret
  13609. }
  13610. var _xcb_req106 = Txcb_protocol_request_t{
  13611. Fcount: uint64(4),
  13612. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13613. Fisvoid: uint8(1),
  13614. }
  13615. func Xxcb_set_font_path(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13616. bp := tls.Alloc(112)
  13617. defer tls.Free(112)
  13618. var i, xcb_tmp_len uint32
  13619. var xcb_ret Txcb_void_cookie_t
  13620. var xcb_tmp uintptr
  13621. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13622. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13623. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13624. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13625. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13626. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13627. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13628. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13629. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13630. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13631. /* xcb_str_t font */
  13632. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13633. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13634. xcb_tmp = font
  13635. i = uint32(0)
  13636. for {
  13637. if !(i < uint32(font_qty)) {
  13638. break
  13639. }
  13640. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13641. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13642. xcb_tmp += uintptr(xcb_tmp_len)
  13643. goto _1
  13644. _1:
  13645. ;
  13646. i++
  13647. }
  13648. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13649. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13650. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req107)))
  13651. return xcb_ret
  13652. }
  13653. var _xcb_req107 = Txcb_protocol_request_t{
  13654. Fcount: uint64(4),
  13655. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13656. Fisvoid: uint8(1),
  13657. }
  13658. func Xxcb_set_font_path_font_length(tls *libc.TLS, R uintptr) (r int32) {
  13659. return libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13660. }
  13661. func Xxcb_set_font_path_font_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13662. var i Txcb_str_iterator_t
  13663. _ = i
  13664. i.Fdata = R + libc.UintptrFromInt32(1)*8
  13665. i.Frem = libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13666. i.Findex = int32(int64(i.Fdata) - int64(R))
  13667. return i
  13668. }
  13669. func Xxcb_get_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13670. var _aux, xcb_tmp uintptr
  13671. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13672. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13673. xcb_tmp = _buffer
  13674. _aux = _buffer
  13675. xcb_buffer_len = uint32(0)
  13676. xcb_block_len = uint32(0)
  13677. xcb_pad = uint32(0)
  13678. xcb_align_to = uint32(0)
  13679. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  13680. xcb_tmp += uintptr(xcb_block_len)
  13681. xcb_buffer_len += xcb_block_len
  13682. xcb_block_len = uint32(0)
  13683. /* path */
  13684. i = uint32(0)
  13685. for {
  13686. if !(i < uint32((*Txcb_get_font_path_reply_t)(unsafe.Pointer(_aux)).Fpath_len)) {
  13687. break
  13688. }
  13689. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13690. xcb_block_len += xcb_tmp_len
  13691. xcb_tmp += uintptr(xcb_tmp_len)
  13692. goto _1
  13693. _1:
  13694. ;
  13695. i++
  13696. }
  13697. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13698. /* insert padding */
  13699. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13700. xcb_buffer_len += xcb_block_len + xcb_pad
  13701. if uint32(0) != xcb_pad {
  13702. xcb_tmp += uintptr(xcb_pad)
  13703. xcb_pad = uint32(0)
  13704. }
  13705. xcb_block_len = uint32(0)
  13706. return libc.Int32FromUint32(xcb_buffer_len)
  13707. }
  13708. func Xxcb_get_font_path(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13709. bp := tls.Alloc(80)
  13710. defer tls.Free(80)
  13711. var xcb_ret Txcb_get_font_path_cookie_t
  13712. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13713. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13714. _ = xcb_ret
  13715. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13716. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13717. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13718. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13719. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13720. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req108)))
  13721. return xcb_ret
  13722. }
  13723. var _xcb_req108 = Txcb_protocol_request_t{
  13724. Fcount: uint64(2),
  13725. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13726. }
  13727. func Xxcb_get_font_path_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13728. bp := tls.Alloc(80)
  13729. defer tls.Free(80)
  13730. var xcb_ret Txcb_get_font_path_cookie_t
  13731. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13732. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13733. _ = xcb_ret
  13734. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13735. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13736. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13737. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13738. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13739. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req109)))
  13740. return xcb_ret
  13741. }
  13742. var _xcb_req109 = Txcb_protocol_request_t{
  13743. Fcount: uint64(2),
  13744. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13745. }
  13746. func Xxcb_get_font_path_path_length(tls *libc.TLS, R uintptr) (r int32) {
  13747. return libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13748. }
  13749. func Xxcb_get_font_path_path_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13750. var i Txcb_str_iterator_t
  13751. _ = i
  13752. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13753. i.Frem = libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13754. i.Findex = int32(int64(i.Fdata) - int64(R))
  13755. return i
  13756. }
  13757. func Xxcb_get_font_path_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_font_path_cookie_t, e uintptr) (r uintptr) {
  13758. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13759. }
  13760. 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) {
  13761. bp := tls.Alloc(80)
  13762. defer tls.Free(80)
  13763. var xcb_ret Txcb_void_cookie_t
  13764. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13765. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13766. _ = xcb_ret
  13767. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13768. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13769. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13770. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13771. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13772. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13773. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13774. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13776. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req110)))
  13777. return xcb_ret
  13778. }
  13779. var _xcb_req110 = Txcb_protocol_request_t{
  13780. Fcount: uint64(2),
  13781. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13782. Fisvoid: uint8(1),
  13783. }
  13784. 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) {
  13785. bp := tls.Alloc(80)
  13786. defer tls.Free(80)
  13787. var xcb_ret Txcb_void_cookie_t
  13788. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13789. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13790. _ = xcb_ret
  13791. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13792. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13793. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13794. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13795. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13796. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13797. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13798. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13799. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13800. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req111)))
  13801. return xcb_ret
  13802. }
  13803. var _xcb_req111 = Txcb_protocol_request_t{
  13804. Fcount: uint64(2),
  13805. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13806. Fisvoid: uint8(1),
  13807. }
  13808. func Xxcb_free_pixmap_checked(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13809. bp := tls.Alloc(80)
  13810. defer tls.Free(80)
  13811. var xcb_ret Txcb_void_cookie_t
  13812. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13813. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13814. _ = xcb_ret
  13815. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13816. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13817. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13818. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13819. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13820. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13821. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req112)))
  13822. return xcb_ret
  13823. }
  13824. var _xcb_req112 = Txcb_protocol_request_t{
  13825. Fcount: uint64(2),
  13826. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13827. Fisvoid: uint8(1),
  13828. }
  13829. func Xxcb_free_pixmap(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13830. bp := tls.Alloc(80)
  13831. defer tls.Free(80)
  13832. var xcb_ret Txcb_void_cookie_t
  13833. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13834. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13835. _ = xcb_ret
  13836. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13837. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13838. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13839. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13840. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13841. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13842. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req113)))
  13843. return xcb_ret
  13844. }
  13845. var _xcb_req113 = Txcb_protocol_request_t{
  13846. Fcount: uint64(2),
  13847. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13848. Fisvoid: uint8(1),
  13849. }
  13850. func Xxcb_create_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  13851. bp := tls.Alloc(16)
  13852. defer tls.Free(16)
  13853. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  13854. var xcb_out, xcb_tmp uintptr
  13855. var xcb_parts [24]Tiovec
  13856. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  13857. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  13858. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  13859. xcb_buffer_len = uint32(0)
  13860. xcb_align_to = uint32(0)
  13861. xcb_padding_offset = uint32(0)
  13862. xcb_pad = uint32(0)
  13863. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  13864. xcb_parts_idx = uint32(0)
  13865. xcb_block_len = uint32(0)
  13866. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  13867. /* xcb_create_gc_value_list_t.function */
  13868. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  13869. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13870. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13871. xcb_parts_idx++
  13872. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13873. }
  13874. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  13875. /* xcb_create_gc_value_list_t.plane_mask */
  13876. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  13877. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13878. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13879. xcb_parts_idx++
  13880. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13881. }
  13882. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  13883. /* xcb_create_gc_value_list_t.foreground */
  13884. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  13885. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13886. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13887. xcb_parts_idx++
  13888. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13889. }
  13890. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  13891. /* xcb_create_gc_value_list_t.background */
  13892. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  13893. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13894. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13895. xcb_parts_idx++
  13896. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13897. }
  13898. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  13899. /* xcb_create_gc_value_list_t.line_width */
  13900. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  13901. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13902. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13903. xcb_parts_idx++
  13904. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13905. }
  13906. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  13907. /* xcb_create_gc_value_list_t.line_style */
  13908. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  13909. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13910. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13911. xcb_parts_idx++
  13912. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13913. }
  13914. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  13915. /* xcb_create_gc_value_list_t.cap_style */
  13916. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  13917. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13918. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13919. xcb_parts_idx++
  13920. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13921. }
  13922. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  13923. /* xcb_create_gc_value_list_t.join_style */
  13924. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  13925. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13926. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13927. xcb_parts_idx++
  13928. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13929. }
  13930. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  13931. /* xcb_create_gc_value_list_t.fill_style */
  13932. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  13933. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13934. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13935. xcb_parts_idx++
  13936. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13937. }
  13938. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  13939. /* xcb_create_gc_value_list_t.fill_rule */
  13940. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  13941. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13942. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13943. xcb_parts_idx++
  13944. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13945. }
  13946. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  13947. /* xcb_create_gc_value_list_t.tile */
  13948. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  13949. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13950. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13951. xcb_parts_idx++
  13952. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13953. }
  13954. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  13955. /* xcb_create_gc_value_list_t.stipple */
  13956. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  13957. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13958. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13959. xcb_parts_idx++
  13960. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13961. }
  13962. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  13963. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  13964. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  13965. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13966. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13967. xcb_parts_idx++
  13968. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13969. }
  13970. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  13971. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  13972. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  13973. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13974. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13975. xcb_parts_idx++
  13976. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13977. }
  13978. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  13979. /* xcb_create_gc_value_list_t.font */
  13980. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  13981. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13982. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13983. xcb_parts_idx++
  13984. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13985. }
  13986. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  13987. /* xcb_create_gc_value_list_t.subwindow_mode */
  13988. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  13989. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13990. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13991. xcb_parts_idx++
  13992. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13993. }
  13994. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  13995. /* xcb_create_gc_value_list_t.graphics_exposures */
  13996. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  13997. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13998. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13999. xcb_parts_idx++
  14000. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14001. }
  14002. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14003. /* xcb_create_gc_value_list_t.clip_x_origin */
  14004. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14005. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14006. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14007. xcb_parts_idx++
  14008. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14009. }
  14010. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14011. /* xcb_create_gc_value_list_t.clip_y_origin */
  14012. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14013. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14014. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14015. xcb_parts_idx++
  14016. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14017. }
  14018. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14019. /* xcb_create_gc_value_list_t.clip_mask */
  14020. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14021. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14022. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14023. xcb_parts_idx++
  14024. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14025. }
  14026. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14027. /* xcb_create_gc_value_list_t.dash_offset */
  14028. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14029. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14030. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14031. xcb_parts_idx++
  14032. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14033. }
  14034. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14035. /* xcb_create_gc_value_list_t.dashes */
  14036. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14037. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14038. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14039. xcb_parts_idx++
  14040. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14041. }
  14042. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14043. /* xcb_create_gc_value_list_t.arc_mode */
  14044. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14045. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14046. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14047. xcb_parts_idx++
  14048. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14049. }
  14050. /* insert padding */
  14051. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14052. xcb_buffer_len += xcb_block_len + xcb_pad
  14053. if uint32(0) != xcb_pad {
  14054. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14055. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14056. xcb_parts_idx++
  14057. xcb_pad = uint32(0)
  14058. }
  14059. xcb_block_len = uint32(0)
  14060. xcb_padding_offset = uint32(0)
  14061. if libc.UintptrFromInt32(0) == xcb_out {
  14062. /* allocate memory */
  14063. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14064. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14065. }
  14066. xcb_tmp = xcb_out
  14067. i = uint32(0)
  14068. for {
  14069. if !(i < xcb_parts_idx) {
  14070. break
  14071. }
  14072. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14073. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14074. }
  14075. if uint64(0) != xcb_parts[i].Fiov_len {
  14076. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14077. }
  14078. goto _1
  14079. _1:
  14080. ;
  14081. i++
  14082. }
  14083. return libc.Int32FromUint32(xcb_buffer_len)
  14084. }
  14085. func Xxcb_create_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14086. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14087. var xcb_tmp uintptr
  14088. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14089. xcb_tmp = _buffer
  14090. xcb_buffer_len = uint32(0)
  14091. xcb_block_len = uint32(0)
  14092. xcb_pad = uint32(0)
  14093. xcb_align_to = uint32(0)
  14094. xcb_padding_offset = uint32(0)
  14095. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14096. /* xcb_create_gc_value_list_t.function */
  14097. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14098. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14099. xcb_tmp += uintptr(4)
  14100. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14101. }
  14102. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14103. /* xcb_create_gc_value_list_t.plane_mask */
  14104. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14105. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14106. xcb_tmp += uintptr(4)
  14107. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14108. }
  14109. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14110. /* xcb_create_gc_value_list_t.foreground */
  14111. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14112. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14113. xcb_tmp += uintptr(4)
  14114. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14115. }
  14116. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14117. /* xcb_create_gc_value_list_t.background */
  14118. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14119. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14120. xcb_tmp += uintptr(4)
  14121. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14122. }
  14123. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14124. /* xcb_create_gc_value_list_t.line_width */
  14125. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14126. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14127. xcb_tmp += uintptr(4)
  14128. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14129. }
  14130. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14131. /* xcb_create_gc_value_list_t.line_style */
  14132. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14133. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14134. xcb_tmp += uintptr(4)
  14135. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14136. }
  14137. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14138. /* xcb_create_gc_value_list_t.cap_style */
  14139. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14140. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14141. xcb_tmp += uintptr(4)
  14142. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14143. }
  14144. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14145. /* xcb_create_gc_value_list_t.join_style */
  14146. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14147. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14148. xcb_tmp += uintptr(4)
  14149. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14150. }
  14151. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14152. /* xcb_create_gc_value_list_t.fill_style */
  14153. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14154. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14155. xcb_tmp += uintptr(4)
  14156. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14157. }
  14158. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14159. /* xcb_create_gc_value_list_t.fill_rule */
  14160. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14161. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14162. xcb_tmp += uintptr(4)
  14163. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14164. }
  14165. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14166. /* xcb_create_gc_value_list_t.tile */
  14167. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14168. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14169. xcb_tmp += uintptr(4)
  14170. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14171. }
  14172. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14173. /* xcb_create_gc_value_list_t.stipple */
  14174. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14175. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14176. xcb_tmp += uintptr(4)
  14177. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14178. }
  14179. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14180. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14181. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14182. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14183. xcb_tmp += uintptr(4)
  14184. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14185. }
  14186. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14187. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14188. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14189. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14190. xcb_tmp += uintptr(4)
  14191. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14192. }
  14193. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14194. /* xcb_create_gc_value_list_t.font */
  14195. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14196. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14197. xcb_tmp += uintptr(4)
  14198. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14199. }
  14200. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14201. /* xcb_create_gc_value_list_t.subwindow_mode */
  14202. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14203. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14204. xcb_tmp += uintptr(4)
  14205. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14206. }
  14207. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14208. /* xcb_create_gc_value_list_t.graphics_exposures */
  14209. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14210. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14211. xcb_tmp += uintptr(4)
  14212. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14213. }
  14214. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14215. /* xcb_create_gc_value_list_t.clip_x_origin */
  14216. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14217. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14218. xcb_tmp += uintptr(4)
  14219. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14220. }
  14221. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14222. /* xcb_create_gc_value_list_t.clip_y_origin */
  14223. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14224. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14225. xcb_tmp += uintptr(4)
  14226. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14227. }
  14228. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14229. /* xcb_create_gc_value_list_t.clip_mask */
  14230. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14231. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14232. xcb_tmp += uintptr(4)
  14233. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14234. }
  14235. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14236. /* xcb_create_gc_value_list_t.dash_offset */
  14237. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14238. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14239. xcb_tmp += uintptr(4)
  14240. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14241. }
  14242. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14243. /* xcb_create_gc_value_list_t.dashes */
  14244. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14245. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14246. xcb_tmp += uintptr(4)
  14247. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14248. }
  14249. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14250. /* xcb_create_gc_value_list_t.arc_mode */
  14251. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14252. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14253. xcb_tmp += uintptr(4)
  14254. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14255. }
  14256. /* insert padding */
  14257. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14258. xcb_buffer_len += xcb_block_len + xcb_pad
  14259. if uint32(0) != xcb_pad {
  14260. xcb_tmp += uintptr(xcb_pad)
  14261. xcb_pad = uint32(0)
  14262. }
  14263. xcb_block_len = uint32(0)
  14264. xcb_padding_offset = uint32(0)
  14265. return libc.Int32FromUint32(xcb_buffer_len)
  14266. }
  14267. func Xxcb_create_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14268. bp := tls.Alloc(96)
  14269. defer tls.Free(96)
  14270. var _ /* _aux at bp+0 */ Txcb_create_gc_value_list_t
  14271. return Xxcb_create_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14272. }
  14273. func Xxcb_create_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14274. var _aux, xcb_tmp uintptr
  14275. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14276. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14277. xcb_tmp = _buffer
  14278. _aux = _buffer
  14279. xcb_buffer_len = uint32(0)
  14280. xcb_block_len = uint32(0)
  14281. xcb_pad = uint32(0)
  14282. xcb_align_to = uint32(0)
  14283. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  14284. xcb_tmp += uintptr(xcb_block_len)
  14285. xcb_buffer_len += xcb_block_len
  14286. xcb_block_len = uint32(0)
  14287. /* value_list */
  14288. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14289. xcb_tmp += uintptr(xcb_block_len)
  14290. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14291. /* insert padding */
  14292. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14293. xcb_buffer_len += xcb_block_len + xcb_pad
  14294. if uint32(0) != xcb_pad {
  14295. xcb_tmp += uintptr(xcb_pad)
  14296. xcb_pad = uint32(0)
  14297. }
  14298. xcb_block_len = uint32(0)
  14299. return libc.Int32FromUint32(xcb_buffer_len)
  14300. }
  14301. 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) {
  14302. bp := tls.Alloc(96)
  14303. defer tls.Free(96)
  14304. var xcb_ret Txcb_void_cookie_t
  14305. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14306. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14307. _ = xcb_ret
  14308. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14309. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14310. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14311. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14312. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14313. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14314. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14315. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14316. /* xcb_create_gc_value_list_t value_list */
  14317. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14318. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14319. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req114)))
  14320. return xcb_ret
  14321. }
  14322. var _xcb_req114 = Txcb_protocol_request_t{
  14323. Fcount: uint64(3),
  14324. Fopcode: uint8(m_XCB_CREATE_GC),
  14325. Fisvoid: uint8(1),
  14326. }
  14327. 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) {
  14328. bp := tls.Alloc(96)
  14329. defer tls.Free(96)
  14330. var xcb_ret Txcb_void_cookie_t
  14331. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14332. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14333. _ = xcb_ret
  14334. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14335. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14336. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14337. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14338. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14339. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14340. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14341. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14342. /* xcb_create_gc_value_list_t value_list */
  14343. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14344. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14345. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req115)))
  14346. return xcb_ret
  14347. }
  14348. var _xcb_req115 = Txcb_protocol_request_t{
  14349. Fcount: uint64(3),
  14350. Fopcode: uint8(m_XCB_CREATE_GC),
  14351. Fisvoid: uint8(1),
  14352. }
  14353. 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) {
  14354. bp := tls.Alloc(112)
  14355. defer tls.Free(112)
  14356. var xcb_ret Txcb_void_cookie_t
  14357. var _ /* xcb_aux0 at bp+96 */ uintptr
  14358. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14359. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14360. _ = xcb_ret
  14361. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14362. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14363. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14364. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14365. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14366. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14367. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14368. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14369. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14370. /* xcb_create_gc_value_list_t value_list */
  14371. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14372. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14373. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req116)))
  14374. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14375. return xcb_ret
  14376. }
  14377. var _xcb_req116 = Txcb_protocol_request_t{
  14378. Fcount: uint64(3),
  14379. Fopcode: uint8(m_XCB_CREATE_GC),
  14380. Fisvoid: uint8(1),
  14381. }
  14382. 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) {
  14383. bp := tls.Alloc(112)
  14384. defer tls.Free(112)
  14385. var xcb_ret Txcb_void_cookie_t
  14386. var _ /* xcb_aux0 at bp+96 */ uintptr
  14387. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14388. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14389. _ = xcb_ret
  14390. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14391. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14392. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14393. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14394. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14395. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14396. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14397. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14398. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14399. /* xcb_create_gc_value_list_t value_list */
  14400. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14401. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14402. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req117)))
  14403. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14404. return xcb_ret
  14405. }
  14406. var _xcb_req117 = Txcb_protocol_request_t{
  14407. Fcount: uint64(3),
  14408. Fopcode: uint8(m_XCB_CREATE_GC),
  14409. Fisvoid: uint8(1),
  14410. }
  14411. func Xxcb_create_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  14412. return R + libc.UintptrFromInt32(1)*16
  14413. }
  14414. func Xxcb_change_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14415. bp := tls.Alloc(16)
  14416. defer tls.Free(16)
  14417. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14418. var xcb_out, xcb_tmp uintptr
  14419. var xcb_parts [24]Tiovec
  14420. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  14421. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14422. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14423. xcb_buffer_len = uint32(0)
  14424. xcb_align_to = uint32(0)
  14425. xcb_padding_offset = uint32(0)
  14426. xcb_pad = uint32(0)
  14427. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  14428. xcb_parts_idx = uint32(0)
  14429. xcb_block_len = uint32(0)
  14430. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14431. /* xcb_change_gc_value_list_t.function */
  14432. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14433. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14434. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14435. xcb_parts_idx++
  14436. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14437. }
  14438. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14439. /* xcb_change_gc_value_list_t.plane_mask */
  14440. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14441. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14442. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14443. xcb_parts_idx++
  14444. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14445. }
  14446. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14447. /* xcb_change_gc_value_list_t.foreground */
  14448. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14449. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14450. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14451. xcb_parts_idx++
  14452. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14453. }
  14454. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14455. /* xcb_change_gc_value_list_t.background */
  14456. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14457. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14458. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14459. xcb_parts_idx++
  14460. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14461. }
  14462. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14463. /* xcb_change_gc_value_list_t.line_width */
  14464. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14465. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14466. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14467. xcb_parts_idx++
  14468. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14469. }
  14470. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14471. /* xcb_change_gc_value_list_t.line_style */
  14472. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14473. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14474. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14475. xcb_parts_idx++
  14476. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14477. }
  14478. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14479. /* xcb_change_gc_value_list_t.cap_style */
  14480. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14481. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14482. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14483. xcb_parts_idx++
  14484. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14485. }
  14486. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14487. /* xcb_change_gc_value_list_t.join_style */
  14488. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14489. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14490. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14491. xcb_parts_idx++
  14492. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14493. }
  14494. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14495. /* xcb_change_gc_value_list_t.fill_style */
  14496. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14497. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14498. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14499. xcb_parts_idx++
  14500. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14501. }
  14502. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14503. /* xcb_change_gc_value_list_t.fill_rule */
  14504. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14505. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14506. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14507. xcb_parts_idx++
  14508. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14509. }
  14510. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14511. /* xcb_change_gc_value_list_t.tile */
  14512. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14513. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14514. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14515. xcb_parts_idx++
  14516. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14517. }
  14518. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14519. /* xcb_change_gc_value_list_t.stipple */
  14520. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14521. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14522. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14523. xcb_parts_idx++
  14524. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14525. }
  14526. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14527. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14528. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14529. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14530. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14531. xcb_parts_idx++
  14532. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14533. }
  14534. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14535. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14536. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14537. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14538. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14539. xcb_parts_idx++
  14540. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14541. }
  14542. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14543. /* xcb_change_gc_value_list_t.font */
  14544. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14545. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14546. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14547. xcb_parts_idx++
  14548. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14549. }
  14550. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14551. /* xcb_change_gc_value_list_t.subwindow_mode */
  14552. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14553. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14554. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14555. xcb_parts_idx++
  14556. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14557. }
  14558. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14559. /* xcb_change_gc_value_list_t.graphics_exposures */
  14560. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14561. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14562. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14563. xcb_parts_idx++
  14564. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14565. }
  14566. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14567. /* xcb_change_gc_value_list_t.clip_x_origin */
  14568. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14569. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14570. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14571. xcb_parts_idx++
  14572. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14573. }
  14574. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14575. /* xcb_change_gc_value_list_t.clip_y_origin */
  14576. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14577. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14578. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14579. xcb_parts_idx++
  14580. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14581. }
  14582. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14583. /* xcb_change_gc_value_list_t.clip_mask */
  14584. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14585. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14586. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14587. xcb_parts_idx++
  14588. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14589. }
  14590. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14591. /* xcb_change_gc_value_list_t.dash_offset */
  14592. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14593. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14594. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14595. xcb_parts_idx++
  14596. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14597. }
  14598. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14599. /* xcb_change_gc_value_list_t.dashes */
  14600. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14601. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14602. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14603. xcb_parts_idx++
  14604. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14605. }
  14606. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14607. /* xcb_change_gc_value_list_t.arc_mode */
  14608. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14609. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14610. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14611. xcb_parts_idx++
  14612. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14613. }
  14614. /* insert padding */
  14615. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14616. xcb_buffer_len += xcb_block_len + xcb_pad
  14617. if uint32(0) != xcb_pad {
  14618. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14619. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14620. xcb_parts_idx++
  14621. xcb_pad = uint32(0)
  14622. }
  14623. xcb_block_len = uint32(0)
  14624. xcb_padding_offset = uint32(0)
  14625. if libc.UintptrFromInt32(0) == xcb_out {
  14626. /* allocate memory */
  14627. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14628. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14629. }
  14630. xcb_tmp = xcb_out
  14631. i = uint32(0)
  14632. for {
  14633. if !(i < xcb_parts_idx) {
  14634. break
  14635. }
  14636. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14637. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14638. }
  14639. if uint64(0) != xcb_parts[i].Fiov_len {
  14640. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14641. }
  14642. goto _1
  14643. _1:
  14644. ;
  14645. i++
  14646. }
  14647. return libc.Int32FromUint32(xcb_buffer_len)
  14648. }
  14649. func Xxcb_change_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14650. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14651. var xcb_tmp uintptr
  14652. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14653. xcb_tmp = _buffer
  14654. xcb_buffer_len = uint32(0)
  14655. xcb_block_len = uint32(0)
  14656. xcb_pad = uint32(0)
  14657. xcb_align_to = uint32(0)
  14658. xcb_padding_offset = uint32(0)
  14659. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14660. /* xcb_change_gc_value_list_t.function */
  14661. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14662. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14663. xcb_tmp += uintptr(4)
  14664. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14665. }
  14666. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14667. /* xcb_change_gc_value_list_t.plane_mask */
  14668. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14669. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14670. xcb_tmp += uintptr(4)
  14671. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14672. }
  14673. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14674. /* xcb_change_gc_value_list_t.foreground */
  14675. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14676. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14677. xcb_tmp += uintptr(4)
  14678. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14679. }
  14680. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14681. /* xcb_change_gc_value_list_t.background */
  14682. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14683. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14684. xcb_tmp += uintptr(4)
  14685. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14686. }
  14687. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14688. /* xcb_change_gc_value_list_t.line_width */
  14689. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14690. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14691. xcb_tmp += uintptr(4)
  14692. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14693. }
  14694. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14695. /* xcb_change_gc_value_list_t.line_style */
  14696. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14697. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14698. xcb_tmp += uintptr(4)
  14699. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14700. }
  14701. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14702. /* xcb_change_gc_value_list_t.cap_style */
  14703. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14704. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14705. xcb_tmp += uintptr(4)
  14706. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14707. }
  14708. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14709. /* xcb_change_gc_value_list_t.join_style */
  14710. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14711. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14712. xcb_tmp += uintptr(4)
  14713. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14714. }
  14715. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14716. /* xcb_change_gc_value_list_t.fill_style */
  14717. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14718. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14719. xcb_tmp += uintptr(4)
  14720. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14721. }
  14722. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14723. /* xcb_change_gc_value_list_t.fill_rule */
  14724. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14725. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14726. xcb_tmp += uintptr(4)
  14727. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14728. }
  14729. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14730. /* xcb_change_gc_value_list_t.tile */
  14731. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14732. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14733. xcb_tmp += uintptr(4)
  14734. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14735. }
  14736. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14737. /* xcb_change_gc_value_list_t.stipple */
  14738. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14739. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14740. xcb_tmp += uintptr(4)
  14741. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14742. }
  14743. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14744. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14745. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14746. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14747. xcb_tmp += uintptr(4)
  14748. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14749. }
  14750. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14751. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14752. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14753. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14754. xcb_tmp += uintptr(4)
  14755. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14756. }
  14757. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14758. /* xcb_change_gc_value_list_t.font */
  14759. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14760. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14761. xcb_tmp += uintptr(4)
  14762. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14763. }
  14764. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14765. /* xcb_change_gc_value_list_t.subwindow_mode */
  14766. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14767. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14768. xcb_tmp += uintptr(4)
  14769. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14770. }
  14771. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14772. /* xcb_change_gc_value_list_t.graphics_exposures */
  14773. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14774. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14775. xcb_tmp += uintptr(4)
  14776. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14777. }
  14778. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14779. /* xcb_change_gc_value_list_t.clip_x_origin */
  14780. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14781. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14782. xcb_tmp += uintptr(4)
  14783. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14784. }
  14785. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14786. /* xcb_change_gc_value_list_t.clip_y_origin */
  14787. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14788. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14789. xcb_tmp += uintptr(4)
  14790. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14791. }
  14792. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14793. /* xcb_change_gc_value_list_t.clip_mask */
  14794. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14795. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14796. xcb_tmp += uintptr(4)
  14797. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14798. }
  14799. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14800. /* xcb_change_gc_value_list_t.dash_offset */
  14801. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14802. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14803. xcb_tmp += uintptr(4)
  14804. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14805. }
  14806. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14807. /* xcb_change_gc_value_list_t.dashes */
  14808. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14809. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14810. xcb_tmp += uintptr(4)
  14811. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14812. }
  14813. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14814. /* xcb_change_gc_value_list_t.arc_mode */
  14815. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14816. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14817. xcb_tmp += uintptr(4)
  14818. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14819. }
  14820. /* insert padding */
  14821. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14822. xcb_buffer_len += xcb_block_len + xcb_pad
  14823. if uint32(0) != xcb_pad {
  14824. xcb_tmp += uintptr(xcb_pad)
  14825. xcb_pad = uint32(0)
  14826. }
  14827. xcb_block_len = uint32(0)
  14828. xcb_padding_offset = uint32(0)
  14829. return libc.Int32FromUint32(xcb_buffer_len)
  14830. }
  14831. func Xxcb_change_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14832. bp := tls.Alloc(96)
  14833. defer tls.Free(96)
  14834. var _ /* _aux at bp+0 */ Txcb_change_gc_value_list_t
  14835. return Xxcb_change_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14836. }
  14837. func Xxcb_change_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14838. var _aux, xcb_tmp uintptr
  14839. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14840. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14841. xcb_tmp = _buffer
  14842. _aux = _buffer
  14843. xcb_buffer_len = uint32(0)
  14844. xcb_block_len = uint32(0)
  14845. xcb_pad = uint32(0)
  14846. xcb_align_to = uint32(0)
  14847. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  14848. xcb_tmp += uintptr(xcb_block_len)
  14849. xcb_buffer_len += xcb_block_len
  14850. xcb_block_len = uint32(0)
  14851. /* value_list */
  14852. xcb_block_len += libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14853. xcb_tmp += uintptr(xcb_block_len)
  14854. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14855. /* insert padding */
  14856. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14857. xcb_buffer_len += xcb_block_len + xcb_pad
  14858. if uint32(0) != xcb_pad {
  14859. xcb_tmp += uintptr(xcb_pad)
  14860. xcb_pad = uint32(0)
  14861. }
  14862. xcb_block_len = uint32(0)
  14863. return libc.Int32FromUint32(xcb_buffer_len)
  14864. }
  14865. 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) {
  14866. bp := tls.Alloc(96)
  14867. defer tls.Free(96)
  14868. var xcb_ret Txcb_void_cookie_t
  14869. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14870. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14871. _ = xcb_ret
  14872. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14873. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14874. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14875. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14876. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14877. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14878. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14879. /* xcb_change_gc_value_list_t value_list */
  14880. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14881. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  14882. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req118)))
  14883. return xcb_ret
  14884. }
  14885. var _xcb_req118 = Txcb_protocol_request_t{
  14886. Fcount: uint64(3),
  14887. Fopcode: uint8(m_XCB_CHANGE_GC),
  14888. Fisvoid: uint8(1),
  14889. }
  14890. 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) {
  14891. bp := tls.Alloc(96)
  14892. defer tls.Free(96)
  14893. var xcb_ret Txcb_void_cookie_t
  14894. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14895. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14896. _ = xcb_ret
  14897. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14898. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14899. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14900. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14901. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14902. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14903. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14904. /* xcb_change_gc_value_list_t value_list */
  14905. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14906. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  14907. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req119)))
  14908. return xcb_ret
  14909. }
  14910. var _xcb_req119 = Txcb_protocol_request_t{
  14911. Fcount: uint64(3),
  14912. Fopcode: uint8(m_XCB_CHANGE_GC),
  14913. Fisvoid: uint8(1),
  14914. }
  14915. 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) {
  14916. bp := tls.Alloc(112)
  14917. defer tls.Free(112)
  14918. var xcb_ret Txcb_void_cookie_t
  14919. var _ /* xcb_aux0 at bp+96 */ uintptr
  14920. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14921. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14922. _ = xcb_ret
  14923. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14924. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14925. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14926. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14927. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14928. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14929. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14930. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14931. /* xcb_change_gc_value_list_t value_list */
  14932. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14933. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14934. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req120)))
  14935. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14936. return xcb_ret
  14937. }
  14938. var _xcb_req120 = Txcb_protocol_request_t{
  14939. Fcount: uint64(3),
  14940. Fopcode: uint8(m_XCB_CHANGE_GC),
  14941. Fisvoid: uint8(1),
  14942. }
  14943. 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) {
  14944. bp := tls.Alloc(112)
  14945. defer tls.Free(112)
  14946. var xcb_ret Txcb_void_cookie_t
  14947. var _ /* xcb_aux0 at bp+96 */ uintptr
  14948. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14949. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14950. _ = xcb_ret
  14951. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14952. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14953. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14954. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14955. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14956. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14957. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14958. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14959. /* xcb_change_gc_value_list_t value_list */
  14960. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14961. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14962. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req121)))
  14963. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14964. return xcb_ret
  14965. }
  14966. var _xcb_req121 = Txcb_protocol_request_t{
  14967. Fcount: uint64(3),
  14968. Fopcode: uint8(m_XCB_CHANGE_GC),
  14969. Fisvoid: uint8(1),
  14970. }
  14971. func Xxcb_change_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  14972. return R + libc.UintptrFromInt32(1)*12
  14973. }
  14974. 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) {
  14975. bp := tls.Alloc(80)
  14976. defer tls.Free(80)
  14977. var xcb_ret Txcb_void_cookie_t
  14978. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  14979. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  14980. _ = xcb_ret
  14981. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  14982. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  14983. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  14984. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  14985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  14986. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14987. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14988. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14989. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req122)))
  14990. return xcb_ret
  14991. }
  14992. var _xcb_req122 = Txcb_protocol_request_t{
  14993. Fcount: uint64(2),
  14994. Fopcode: uint8(m_XCB_COPY_GC),
  14995. Fisvoid: uint8(1),
  14996. }
  14997. 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) {
  14998. bp := tls.Alloc(80)
  14999. defer tls.Free(80)
  15000. var xcb_ret Txcb_void_cookie_t
  15001. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15002. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15003. _ = xcb_ret
  15004. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15005. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15006. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15007. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15008. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15009. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15010. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15011. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15012. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req123)))
  15013. return xcb_ret
  15014. }
  15015. var _xcb_req123 = Txcb_protocol_request_t{
  15016. Fcount: uint64(2),
  15017. Fopcode: uint8(m_XCB_COPY_GC),
  15018. Fisvoid: uint8(1),
  15019. }
  15020. func Xxcb_set_dashes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15021. var _aux, xcb_tmp uintptr
  15022. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15023. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15024. xcb_tmp = _buffer
  15025. _aux = _buffer
  15026. xcb_buffer_len = uint32(0)
  15027. xcb_block_len = uint32(0)
  15028. xcb_pad = uint32(0)
  15029. xcb_align_to = uint32(0)
  15030. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15031. xcb_tmp += uintptr(xcb_block_len)
  15032. xcb_buffer_len += xcb_block_len
  15033. xcb_block_len = uint32(0)
  15034. /* dashes */
  15035. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_dashes_request_t)(unsafe.Pointer(_aux)).Fdashes_len)*libc.Uint64FromInt64(1))
  15036. xcb_tmp += uintptr(xcb_block_len)
  15037. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  15038. /* insert padding */
  15039. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15040. xcb_buffer_len += xcb_block_len + xcb_pad
  15041. if uint32(0) != xcb_pad {
  15042. xcb_tmp += uintptr(xcb_pad)
  15043. xcb_pad = uint32(0)
  15044. }
  15045. xcb_block_len = uint32(0)
  15046. return libc.Int32FromUint32(xcb_buffer_len)
  15047. }
  15048. 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) {
  15049. bp := tls.Alloc(112)
  15050. defer tls.Free(112)
  15051. var xcb_ret Txcb_void_cookie_t
  15052. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15053. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15054. _ = xcb_ret
  15055. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15056. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15057. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15058. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15059. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15060. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15061. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15062. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15063. /* uint8_t dashes */
  15064. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15065. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15066. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15067. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15068. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req124)))
  15069. return xcb_ret
  15070. }
  15071. var _xcb_req124 = Txcb_protocol_request_t{
  15072. Fcount: uint64(4),
  15073. Fopcode: uint8(m_XCB_SET_DASHES),
  15074. Fisvoid: uint8(1),
  15075. }
  15076. 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) {
  15077. bp := tls.Alloc(112)
  15078. defer tls.Free(112)
  15079. var xcb_ret Txcb_void_cookie_t
  15080. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15081. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15082. _ = xcb_ret
  15083. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15084. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15085. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15086. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15087. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15088. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15089. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15090. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15091. /* uint8_t dashes */
  15092. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15093. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15094. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15095. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15096. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req125)))
  15097. return xcb_ret
  15098. }
  15099. var _xcb_req125 = Txcb_protocol_request_t{
  15100. Fcount: uint64(4),
  15101. Fopcode: uint8(m_XCB_SET_DASHES),
  15102. Fisvoid: uint8(1),
  15103. }
  15104. func Xxcb_set_dashes_dashes(tls *libc.TLS, R uintptr) (r uintptr) {
  15105. return R + libc.UintptrFromInt32(1)*12
  15106. }
  15107. func Xxcb_set_dashes_dashes_length(tls *libc.TLS, R uintptr) (r int32) {
  15108. return libc.Int32FromUint16((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15109. }
  15110. func Xxcb_set_dashes_dashes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  15111. var i Txcb_generic_iterator_t
  15112. _ = i
  15113. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15114. i.Frem = 0
  15115. i.Findex = int32(int64(i.Fdata) - int64(R))
  15116. return i
  15117. }
  15118. func Xxcb_set_clip_rectangles_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15119. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15120. var xcb_tmp uintptr
  15121. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15122. xcb_tmp = _buffer
  15123. xcb_buffer_len = uint32(0)
  15124. xcb_block_len = uint32(0)
  15125. xcb_pad = uint32(0)
  15126. xcb_align_to = uint32(0)
  15127. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15128. xcb_tmp += uintptr(xcb_block_len)
  15129. xcb_buffer_len += xcb_block_len
  15130. xcb_block_len = uint32(0)
  15131. /* rectangles */
  15132. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15133. xcb_tmp += uintptr(xcb_block_len)
  15134. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15135. /* insert padding */
  15136. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15137. xcb_buffer_len += xcb_block_len + xcb_pad
  15138. if uint32(0) != xcb_pad {
  15139. xcb_tmp += uintptr(xcb_pad)
  15140. xcb_pad = uint32(0)
  15141. }
  15142. xcb_block_len = uint32(0)
  15143. return libc.Int32FromUint32(xcb_buffer_len)
  15144. }
  15145. 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) {
  15146. bp := tls.Alloc(112)
  15147. defer tls.Free(112)
  15148. var xcb_ret Txcb_void_cookie_t
  15149. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15150. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15151. _ = xcb_ret
  15152. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15153. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15154. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15155. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15156. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15157. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15158. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15159. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15160. /* xcb_rectangle_t rectangles */
  15161. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15162. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15163. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15164. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15165. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req126)))
  15166. return xcb_ret
  15167. }
  15168. var _xcb_req126 = Txcb_protocol_request_t{
  15169. Fcount: uint64(4),
  15170. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15171. Fisvoid: uint8(1),
  15172. }
  15173. 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) {
  15174. bp := tls.Alloc(112)
  15175. defer tls.Free(112)
  15176. var xcb_ret Txcb_void_cookie_t
  15177. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15178. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15179. _ = xcb_ret
  15180. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15181. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15182. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15183. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15184. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15185. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15186. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15187. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15188. /* xcb_rectangle_t rectangles */
  15189. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15190. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15191. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15192. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15193. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req127)))
  15194. return xcb_ret
  15195. }
  15196. var _xcb_req127 = Txcb_protocol_request_t{
  15197. Fcount: uint64(4),
  15198. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15199. Fisvoid: uint8(1),
  15200. }
  15201. func Xxcb_set_clip_rectangles_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15202. return R + libc.UintptrFromInt32(1)*12
  15203. }
  15204. func Xxcb_set_clip_rectangles_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15205. 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))
  15206. }
  15207. func Xxcb_set_clip_rectangles_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15208. var i Txcb_rectangle_iterator_t
  15209. _ = i
  15210. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15211. 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))
  15212. i.Findex = int32(int64(i.Fdata) - int64(R))
  15213. return i
  15214. }
  15215. func Xxcb_free_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15216. bp := tls.Alloc(80)
  15217. defer tls.Free(80)
  15218. var xcb_ret Txcb_void_cookie_t
  15219. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15220. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15221. _ = xcb_ret
  15222. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15223. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15224. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15225. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15226. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15227. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15228. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req128)))
  15229. return xcb_ret
  15230. }
  15231. var _xcb_req128 = Txcb_protocol_request_t{
  15232. Fcount: uint64(2),
  15233. Fopcode: uint8(m_XCB_FREE_GC),
  15234. Fisvoid: uint8(1),
  15235. }
  15236. func Xxcb_free_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15237. bp := tls.Alloc(80)
  15238. defer tls.Free(80)
  15239. var xcb_ret Txcb_void_cookie_t
  15240. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15241. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15242. _ = xcb_ret
  15243. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15244. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15245. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15246. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15247. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15248. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15249. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req129)))
  15250. return xcb_ret
  15251. }
  15252. var _xcb_req129 = Txcb_protocol_request_t{
  15253. Fcount: uint64(2),
  15254. Fopcode: uint8(m_XCB_FREE_GC),
  15255. Fisvoid: uint8(1),
  15256. }
  15257. 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) {
  15258. bp := tls.Alloc(80)
  15259. defer tls.Free(80)
  15260. var xcb_ret Txcb_void_cookie_t
  15261. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15262. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15263. _ = xcb_ret
  15264. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15265. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15266. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15267. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15268. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15269. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15270. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15271. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15272. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15273. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15274. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req130)))
  15275. return xcb_ret
  15276. }
  15277. var _xcb_req130 = Txcb_protocol_request_t{
  15278. Fcount: uint64(2),
  15279. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15280. Fisvoid: uint8(1),
  15281. }
  15282. 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) {
  15283. bp := tls.Alloc(80)
  15284. defer tls.Free(80)
  15285. var xcb_ret Txcb_void_cookie_t
  15286. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15287. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15288. _ = xcb_ret
  15289. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15290. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15291. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15292. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15293. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15294. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15295. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15296. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15299. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req131)))
  15300. return xcb_ret
  15301. }
  15302. var _xcb_req131 = Txcb_protocol_request_t{
  15303. Fcount: uint64(2),
  15304. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15305. Fisvoid: uint8(1),
  15306. }
  15307. 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) {
  15308. bp := tls.Alloc(96)
  15309. defer tls.Free(96)
  15310. var xcb_ret Txcb_void_cookie_t
  15311. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15312. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15313. _ = xcb_ret
  15314. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15315. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15316. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15317. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15318. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15319. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15320. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15321. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15322. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15323. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15324. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15325. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15326. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15327. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15328. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req132)))
  15329. return xcb_ret
  15330. }
  15331. var _xcb_req132 = Txcb_protocol_request_t{
  15332. Fcount: uint64(2),
  15333. Fopcode: uint8(m_XCB_COPY_AREA),
  15334. Fisvoid: uint8(1),
  15335. }
  15336. 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) {
  15337. bp := tls.Alloc(96)
  15338. defer tls.Free(96)
  15339. var xcb_ret Txcb_void_cookie_t
  15340. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15341. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15342. _ = xcb_ret
  15343. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15344. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15345. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15346. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15347. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15348. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15349. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15350. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15351. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15352. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15353. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15354. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15355. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15356. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15357. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req133)))
  15358. return xcb_ret
  15359. }
  15360. var _xcb_req133 = Txcb_protocol_request_t{
  15361. Fcount: uint64(2),
  15362. Fopcode: uint8(m_XCB_COPY_AREA),
  15363. Fisvoid: uint8(1),
  15364. }
  15365. 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) {
  15366. bp := tls.Alloc(96)
  15367. defer tls.Free(96)
  15368. var xcb_ret Txcb_void_cookie_t
  15369. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15370. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15371. _ = xcb_ret
  15372. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15373. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15374. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15375. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15376. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15377. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15378. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15379. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15380. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15381. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15382. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15383. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15384. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15385. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15386. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15387. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req134)))
  15388. return xcb_ret
  15389. }
  15390. var _xcb_req134 = Txcb_protocol_request_t{
  15391. Fcount: uint64(2),
  15392. Fopcode: uint8(m_XCB_COPY_PLANE),
  15393. Fisvoid: uint8(1),
  15394. }
  15395. 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) {
  15396. bp := tls.Alloc(96)
  15397. defer tls.Free(96)
  15398. var xcb_ret Txcb_void_cookie_t
  15399. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15400. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15401. _ = xcb_ret
  15402. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15403. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15404. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15405. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15406. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15407. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15408. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15409. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15410. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15411. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15412. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15413. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15414. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15415. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15416. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15417. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req135)))
  15418. return xcb_ret
  15419. }
  15420. var _xcb_req135 = Txcb_protocol_request_t{
  15421. Fcount: uint64(2),
  15422. Fopcode: uint8(m_XCB_COPY_PLANE),
  15423. Fisvoid: uint8(1),
  15424. }
  15425. func Xxcb_poly_point_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15426. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15427. var xcb_tmp uintptr
  15428. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15429. xcb_tmp = _buffer
  15430. xcb_buffer_len = uint32(0)
  15431. xcb_block_len = uint32(0)
  15432. xcb_pad = uint32(0)
  15433. xcb_align_to = uint32(0)
  15434. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15435. xcb_tmp += uintptr(xcb_block_len)
  15436. xcb_buffer_len += xcb_block_len
  15437. xcb_block_len = uint32(0)
  15438. /* points */
  15439. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15440. xcb_tmp += uintptr(xcb_block_len)
  15441. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15442. /* insert padding */
  15443. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15444. xcb_buffer_len += xcb_block_len + xcb_pad
  15445. if uint32(0) != xcb_pad {
  15446. xcb_tmp += uintptr(xcb_pad)
  15447. xcb_pad = uint32(0)
  15448. }
  15449. xcb_block_len = uint32(0)
  15450. return libc.Int32FromUint32(xcb_buffer_len)
  15451. }
  15452. 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) {
  15453. bp := tls.Alloc(112)
  15454. defer tls.Free(112)
  15455. var xcb_ret Txcb_void_cookie_t
  15456. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15457. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15458. _ = xcb_ret
  15459. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15460. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15461. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15462. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15463. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15464. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15465. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15466. /* xcb_point_t points */
  15467. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15468. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15469. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15470. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15471. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req136)))
  15472. return xcb_ret
  15473. }
  15474. var _xcb_req136 = Txcb_protocol_request_t{
  15475. Fcount: uint64(4),
  15476. Fopcode: uint8(m_XCB_POLY_POINT),
  15477. Fisvoid: uint8(1),
  15478. }
  15479. 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) {
  15480. bp := tls.Alloc(112)
  15481. defer tls.Free(112)
  15482. var xcb_ret Txcb_void_cookie_t
  15483. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15484. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15485. _ = xcb_ret
  15486. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15487. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15488. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15489. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15490. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15491. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15492. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15493. /* xcb_point_t points */
  15494. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15495. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15496. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15497. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15498. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req137)))
  15499. return xcb_ret
  15500. }
  15501. var _xcb_req137 = Txcb_protocol_request_t{
  15502. Fcount: uint64(4),
  15503. Fopcode: uint8(m_XCB_POLY_POINT),
  15504. Fisvoid: uint8(1),
  15505. }
  15506. func Xxcb_poly_point_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15507. return R + libc.UintptrFromInt32(1)*12
  15508. }
  15509. func Xxcb_poly_point_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15510. 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))
  15511. }
  15512. func Xxcb_poly_point_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15513. var i Txcb_point_iterator_t
  15514. _ = i
  15515. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15516. 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))
  15517. i.Findex = int32(int64(i.Fdata) - int64(R))
  15518. return i
  15519. }
  15520. func Xxcb_poly_line_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15521. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15522. var xcb_tmp uintptr
  15523. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15524. xcb_tmp = _buffer
  15525. xcb_buffer_len = uint32(0)
  15526. xcb_block_len = uint32(0)
  15527. xcb_pad = uint32(0)
  15528. xcb_align_to = uint32(0)
  15529. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15530. xcb_tmp += uintptr(xcb_block_len)
  15531. xcb_buffer_len += xcb_block_len
  15532. xcb_block_len = uint32(0)
  15533. /* points */
  15534. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15535. xcb_tmp += uintptr(xcb_block_len)
  15536. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15537. /* insert padding */
  15538. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15539. xcb_buffer_len += xcb_block_len + xcb_pad
  15540. if uint32(0) != xcb_pad {
  15541. xcb_tmp += uintptr(xcb_pad)
  15542. xcb_pad = uint32(0)
  15543. }
  15544. xcb_block_len = uint32(0)
  15545. return libc.Int32FromUint32(xcb_buffer_len)
  15546. }
  15547. 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) {
  15548. bp := tls.Alloc(112)
  15549. defer tls.Free(112)
  15550. var xcb_ret Txcb_void_cookie_t
  15551. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15552. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15553. _ = xcb_ret
  15554. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15555. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15556. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15557. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15558. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15559. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15560. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15561. /* xcb_point_t points */
  15562. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15563. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15564. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15565. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15566. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req138)))
  15567. return xcb_ret
  15568. }
  15569. var _xcb_req138 = Txcb_protocol_request_t{
  15570. Fcount: uint64(4),
  15571. Fopcode: uint8(m_XCB_POLY_LINE),
  15572. Fisvoid: uint8(1),
  15573. }
  15574. 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) {
  15575. bp := tls.Alloc(112)
  15576. defer tls.Free(112)
  15577. var xcb_ret Txcb_void_cookie_t
  15578. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15579. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15580. _ = xcb_ret
  15581. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15582. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15583. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15585. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15587. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15588. /* xcb_point_t points */
  15589. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15590. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15591. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15592. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15593. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req139)))
  15594. return xcb_ret
  15595. }
  15596. var _xcb_req139 = Txcb_protocol_request_t{
  15597. Fcount: uint64(4),
  15598. Fopcode: uint8(m_XCB_POLY_LINE),
  15599. Fisvoid: uint8(1),
  15600. }
  15601. func Xxcb_poly_line_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15602. return R + libc.UintptrFromInt32(1)*12
  15603. }
  15604. func Xxcb_poly_line_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15605. 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))
  15606. }
  15607. func Xxcb_poly_line_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15608. var i Txcb_point_iterator_t
  15609. _ = i
  15610. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15611. 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))
  15612. i.Findex = int32(int64(i.Fdata) - int64(R))
  15613. return i
  15614. }
  15615. func Xxcb_segment_next(tls *libc.TLS, i uintptr) {
  15616. var p1 uintptr
  15617. _ = p1
  15618. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Frem--
  15619. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  15620. p1 = i + 12
  15621. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  15622. }
  15623. func Xxcb_segment_end(tls *libc.TLS, i Txcb_segment_iterator_t) (r Txcb_generic_iterator_t) {
  15624. var ret Txcb_generic_iterator_t
  15625. _ = ret
  15626. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  15627. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  15628. ret.Frem = 0
  15629. return ret
  15630. }
  15631. func Xxcb_poly_segment_sizeof(tls *libc.TLS, _buffer uintptr, segments_len Tuint32_t) (r int32) {
  15632. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15633. var xcb_tmp uintptr
  15634. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15635. xcb_tmp = _buffer
  15636. xcb_buffer_len = uint32(0)
  15637. xcb_block_len = uint32(0)
  15638. xcb_pad = uint32(0)
  15639. xcb_align_to = uint32(0)
  15640. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15641. xcb_tmp += uintptr(xcb_block_len)
  15642. xcb_buffer_len += xcb_block_len
  15643. xcb_block_len = uint32(0)
  15644. /* segments */
  15645. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(segments_len)*libc.Uint64FromInt64(8))
  15646. xcb_tmp += uintptr(xcb_block_len)
  15647. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15648. /* insert padding */
  15649. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15650. xcb_buffer_len += xcb_block_len + xcb_pad
  15651. if uint32(0) != xcb_pad {
  15652. xcb_tmp += uintptr(xcb_pad)
  15653. xcb_pad = uint32(0)
  15654. }
  15655. xcb_block_len = uint32(0)
  15656. return libc.Int32FromUint32(xcb_buffer_len)
  15657. }
  15658. 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) {
  15659. bp := tls.Alloc(112)
  15660. defer tls.Free(112)
  15661. var xcb_ret Txcb_void_cookie_t
  15662. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15663. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15664. _ = xcb_ret
  15665. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15666. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15667. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15668. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15669. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15670. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15671. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15672. /* xcb_segment_t segments */
  15673. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15674. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15675. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15676. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15677. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req140)))
  15678. return xcb_ret
  15679. }
  15680. var _xcb_req140 = Txcb_protocol_request_t{
  15681. Fcount: uint64(4),
  15682. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15683. Fisvoid: uint8(1),
  15684. }
  15685. 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) {
  15686. bp := tls.Alloc(112)
  15687. defer tls.Free(112)
  15688. var xcb_ret Txcb_void_cookie_t
  15689. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15690. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15691. _ = xcb_ret
  15692. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15693. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15694. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15695. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15696. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15697. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15698. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15699. /* xcb_segment_t segments */
  15700. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15701. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15702. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15703. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15704. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req141)))
  15705. return xcb_ret
  15706. }
  15707. var _xcb_req141 = Txcb_protocol_request_t{
  15708. Fcount: uint64(4),
  15709. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15710. Fisvoid: uint8(1),
  15711. }
  15712. func Xxcb_poly_segment_segments(tls *libc.TLS, R uintptr) (r uintptr) {
  15713. return R + libc.UintptrFromInt32(1)*12
  15714. }
  15715. func Xxcb_poly_segment_segments_length(tls *libc.TLS, R uintptr) (r int32) {
  15716. 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))
  15717. }
  15718. func Xxcb_poly_segment_segments_iterator(tls *libc.TLS, R uintptr) (r Txcb_segment_iterator_t) {
  15719. var i Txcb_segment_iterator_t
  15720. _ = i
  15721. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15722. 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))
  15723. i.Findex = int32(int64(i.Fdata) - int64(R))
  15724. return i
  15725. }
  15726. func Xxcb_poly_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15727. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15728. var xcb_tmp uintptr
  15729. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15730. xcb_tmp = _buffer
  15731. xcb_buffer_len = uint32(0)
  15732. xcb_block_len = uint32(0)
  15733. xcb_pad = uint32(0)
  15734. xcb_align_to = uint32(0)
  15735. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15736. xcb_tmp += uintptr(xcb_block_len)
  15737. xcb_buffer_len += xcb_block_len
  15738. xcb_block_len = uint32(0)
  15739. /* rectangles */
  15740. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15741. xcb_tmp += uintptr(xcb_block_len)
  15742. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15743. /* insert padding */
  15744. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15745. xcb_buffer_len += xcb_block_len + xcb_pad
  15746. if uint32(0) != xcb_pad {
  15747. xcb_tmp += uintptr(xcb_pad)
  15748. xcb_pad = uint32(0)
  15749. }
  15750. xcb_block_len = uint32(0)
  15751. return libc.Int32FromUint32(xcb_buffer_len)
  15752. }
  15753. 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) {
  15754. bp := tls.Alloc(112)
  15755. defer tls.Free(112)
  15756. var xcb_ret Txcb_void_cookie_t
  15757. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15758. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15759. _ = xcb_ret
  15760. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15761. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15762. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15763. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15764. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15765. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15766. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15767. /* xcb_rectangle_t rectangles */
  15768. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15769. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15770. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15771. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15772. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req142)))
  15773. return xcb_ret
  15774. }
  15775. var _xcb_req142 = Txcb_protocol_request_t{
  15776. Fcount: uint64(4),
  15777. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15778. Fisvoid: uint8(1),
  15779. }
  15780. 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) {
  15781. bp := tls.Alloc(112)
  15782. defer tls.Free(112)
  15783. var xcb_ret Txcb_void_cookie_t
  15784. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15785. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15786. _ = xcb_ret
  15787. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15788. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15789. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15790. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15791. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15792. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15793. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15794. /* xcb_rectangle_t rectangles */
  15795. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15797. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15798. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15799. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req143)))
  15800. return xcb_ret
  15801. }
  15802. var _xcb_req143 = Txcb_protocol_request_t{
  15803. Fcount: uint64(4),
  15804. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15805. Fisvoid: uint8(1),
  15806. }
  15807. func Xxcb_poly_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15808. return R + libc.UintptrFromInt32(1)*12
  15809. }
  15810. func Xxcb_poly_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15811. 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))
  15812. }
  15813. func Xxcb_poly_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15814. var i Txcb_rectangle_iterator_t
  15815. _ = i
  15816. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15817. 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))
  15818. i.Findex = int32(int64(i.Fdata) - int64(R))
  15819. return i
  15820. }
  15821. func Xxcb_poly_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  15822. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15823. var xcb_tmp uintptr
  15824. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15825. xcb_tmp = _buffer
  15826. xcb_buffer_len = uint32(0)
  15827. xcb_block_len = uint32(0)
  15828. xcb_pad = uint32(0)
  15829. xcb_align_to = uint32(0)
  15830. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15831. xcb_tmp += uintptr(xcb_block_len)
  15832. xcb_buffer_len += xcb_block_len
  15833. xcb_block_len = uint32(0)
  15834. /* arcs */
  15835. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  15836. xcb_tmp += uintptr(xcb_block_len)
  15837. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15838. /* insert padding */
  15839. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15840. xcb_buffer_len += xcb_block_len + xcb_pad
  15841. if uint32(0) != xcb_pad {
  15842. xcb_tmp += uintptr(xcb_pad)
  15843. xcb_pad = uint32(0)
  15844. }
  15845. xcb_block_len = uint32(0)
  15846. return libc.Int32FromUint32(xcb_buffer_len)
  15847. }
  15848. 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) {
  15849. bp := tls.Alloc(112)
  15850. defer tls.Free(112)
  15851. var xcb_ret Txcb_void_cookie_t
  15852. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  15853. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15854. _ = xcb_ret
  15855. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15856. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15857. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15858. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15859. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15860. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15861. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15862. /* xcb_arc_t arcs */
  15863. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  15864. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  15865. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15866. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15867. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req144)))
  15868. return xcb_ret
  15869. }
  15870. var _xcb_req144 = Txcb_protocol_request_t{
  15871. Fcount: uint64(4),
  15872. Fopcode: uint8(m_XCB_POLY_ARC),
  15873. Fisvoid: uint8(1),
  15874. }
  15875. 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) {
  15876. bp := tls.Alloc(112)
  15877. defer tls.Free(112)
  15878. var xcb_ret Txcb_void_cookie_t
  15879. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  15880. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15881. _ = xcb_ret
  15882. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15883. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15884. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15885. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15886. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15887. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15888. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15889. /* xcb_arc_t arcs */
  15890. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  15891. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  15892. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15893. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15894. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req145)))
  15895. return xcb_ret
  15896. }
  15897. var _xcb_req145 = Txcb_protocol_request_t{
  15898. Fcount: uint64(4),
  15899. Fopcode: uint8(m_XCB_POLY_ARC),
  15900. Fisvoid: uint8(1),
  15901. }
  15902. func Xxcb_poly_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  15903. return R + libc.UintptrFromInt32(1)*12
  15904. }
  15905. func Xxcb_poly_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  15906. 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))
  15907. }
  15908. func Xxcb_poly_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  15909. var i Txcb_arc_iterator_t
  15910. _ = i
  15911. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15912. 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))
  15913. i.Findex = int32(int64(i.Fdata) - int64(R))
  15914. return i
  15915. }
  15916. func Xxcb_fill_poly_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15917. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15918. var xcb_tmp uintptr
  15919. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15920. xcb_tmp = _buffer
  15921. xcb_buffer_len = uint32(0)
  15922. xcb_block_len = uint32(0)
  15923. xcb_pad = uint32(0)
  15924. xcb_align_to = uint32(0)
  15925. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  15926. xcb_tmp += uintptr(xcb_block_len)
  15927. xcb_buffer_len += xcb_block_len
  15928. xcb_block_len = uint32(0)
  15929. /* points */
  15930. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15931. xcb_tmp += uintptr(xcb_block_len)
  15932. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15933. /* insert padding */
  15934. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15935. xcb_buffer_len += xcb_block_len + xcb_pad
  15936. if uint32(0) != xcb_pad {
  15937. xcb_tmp += uintptr(xcb_pad)
  15938. xcb_pad = uint32(0)
  15939. }
  15940. xcb_block_len = uint32(0)
  15941. return libc.Int32FromUint32(xcb_buffer_len)
  15942. }
  15943. 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) {
  15944. bp := tls.Alloc(112)
  15945. defer tls.Free(112)
  15946. var xcb_ret Txcb_void_cookie_t
  15947. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  15948. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15949. _ = xcb_ret
  15950. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15951. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15952. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15953. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  15954. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15955. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  15956. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15957. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15958. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15959. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15960. /* xcb_point_t points */
  15961. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15962. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15963. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15964. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15965. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req146)))
  15966. return xcb_ret
  15967. }
  15968. var _xcb_req146 = Txcb_protocol_request_t{
  15969. Fcount: uint64(4),
  15970. Fopcode: uint8(m_XCB_FILL_POLY),
  15971. Fisvoid: uint8(1),
  15972. }
  15973. 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) {
  15974. bp := tls.Alloc(112)
  15975. defer tls.Free(112)
  15976. var xcb_ret Txcb_void_cookie_t
  15977. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  15978. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15979. _ = xcb_ret
  15980. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15981. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15982. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15983. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  15984. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15985. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  15986. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15987. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15988. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15989. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15990. /* xcb_point_t points */
  15991. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15992. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15993. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15994. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15995. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req147)))
  15996. return xcb_ret
  15997. }
  15998. var _xcb_req147 = Txcb_protocol_request_t{
  15999. Fcount: uint64(4),
  16000. Fopcode: uint8(m_XCB_FILL_POLY),
  16001. Fisvoid: uint8(1),
  16002. }
  16003. func Xxcb_fill_poly_points(tls *libc.TLS, R uintptr) (r uintptr) {
  16004. return R + libc.UintptrFromInt32(1)*16
  16005. }
  16006. func Xxcb_fill_poly_points_length(tls *libc.TLS, R uintptr) (r int32) {
  16007. 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))
  16008. }
  16009. func Xxcb_fill_poly_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  16010. var i Txcb_point_iterator_t
  16011. _ = i
  16012. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16013. 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))
  16014. i.Findex = int32(int64(i.Fdata) - int64(R))
  16015. return i
  16016. }
  16017. func Xxcb_poly_fill_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  16018. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16019. var xcb_tmp uintptr
  16020. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16021. xcb_tmp = _buffer
  16022. xcb_buffer_len = uint32(0)
  16023. xcb_block_len = uint32(0)
  16024. xcb_pad = uint32(0)
  16025. xcb_align_to = uint32(0)
  16026. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16027. xcb_tmp += uintptr(xcb_block_len)
  16028. xcb_buffer_len += xcb_block_len
  16029. xcb_block_len = uint32(0)
  16030. /* rectangles */
  16031. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  16032. xcb_tmp += uintptr(xcb_block_len)
  16033. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16034. /* insert padding */
  16035. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16036. xcb_buffer_len += xcb_block_len + xcb_pad
  16037. if uint32(0) != xcb_pad {
  16038. xcb_tmp += uintptr(xcb_pad)
  16039. xcb_pad = uint32(0)
  16040. }
  16041. xcb_block_len = uint32(0)
  16042. return libc.Int32FromUint32(xcb_buffer_len)
  16043. }
  16044. 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) {
  16045. bp := tls.Alloc(112)
  16046. defer tls.Free(112)
  16047. var xcb_ret Txcb_void_cookie_t
  16048. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16049. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16050. _ = xcb_ret
  16051. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16052. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16053. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16054. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16055. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16056. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16057. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16058. /* xcb_rectangle_t rectangles */
  16059. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16060. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16061. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16062. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16063. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req148)))
  16064. return xcb_ret
  16065. }
  16066. var _xcb_req148 = Txcb_protocol_request_t{
  16067. Fcount: uint64(4),
  16068. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16069. Fisvoid: uint8(1),
  16070. }
  16071. 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) {
  16072. bp := tls.Alloc(112)
  16073. defer tls.Free(112)
  16074. var xcb_ret Txcb_void_cookie_t
  16075. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16076. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16077. _ = xcb_ret
  16078. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16079. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16080. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16081. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16082. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16083. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16084. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16085. /* xcb_rectangle_t rectangles */
  16086. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16087. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16088. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16089. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16090. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req149)))
  16091. return xcb_ret
  16092. }
  16093. var _xcb_req149 = Txcb_protocol_request_t{
  16094. Fcount: uint64(4),
  16095. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16096. Fisvoid: uint8(1),
  16097. }
  16098. func Xxcb_poly_fill_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  16099. return R + libc.UintptrFromInt32(1)*12
  16100. }
  16101. func Xxcb_poly_fill_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  16102. 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))
  16103. }
  16104. func Xxcb_poly_fill_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  16105. var i Txcb_rectangle_iterator_t
  16106. _ = i
  16107. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16108. 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))
  16109. i.Findex = int32(int64(i.Fdata) - int64(R))
  16110. return i
  16111. }
  16112. func Xxcb_poly_fill_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  16113. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16114. var xcb_tmp uintptr
  16115. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16116. xcb_tmp = _buffer
  16117. xcb_buffer_len = uint32(0)
  16118. xcb_block_len = uint32(0)
  16119. xcb_pad = uint32(0)
  16120. xcb_align_to = uint32(0)
  16121. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16122. xcb_tmp += uintptr(xcb_block_len)
  16123. xcb_buffer_len += xcb_block_len
  16124. xcb_block_len = uint32(0)
  16125. /* arcs */
  16126. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  16127. xcb_tmp += uintptr(xcb_block_len)
  16128. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16129. /* insert padding */
  16130. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16131. xcb_buffer_len += xcb_block_len + xcb_pad
  16132. if uint32(0) != xcb_pad {
  16133. xcb_tmp += uintptr(xcb_pad)
  16134. xcb_pad = uint32(0)
  16135. }
  16136. xcb_block_len = uint32(0)
  16137. return libc.Int32FromUint32(xcb_buffer_len)
  16138. }
  16139. 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) {
  16140. bp := tls.Alloc(112)
  16141. defer tls.Free(112)
  16142. var xcb_ret Txcb_void_cookie_t
  16143. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16144. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16145. _ = xcb_ret
  16146. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16147. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16148. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16149. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16150. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16151. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16152. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16153. /* xcb_arc_t arcs */
  16154. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16155. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16156. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16157. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16158. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req150)))
  16159. return xcb_ret
  16160. }
  16161. var _xcb_req150 = Txcb_protocol_request_t{
  16162. Fcount: uint64(4),
  16163. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16164. Fisvoid: uint8(1),
  16165. }
  16166. 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) {
  16167. bp := tls.Alloc(112)
  16168. defer tls.Free(112)
  16169. var xcb_ret Txcb_void_cookie_t
  16170. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16171. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16172. _ = xcb_ret
  16173. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16174. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16175. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16176. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16177. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16178. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16179. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16180. /* xcb_arc_t arcs */
  16181. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16182. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16183. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16184. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16185. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req151)))
  16186. return xcb_ret
  16187. }
  16188. var _xcb_req151 = Txcb_protocol_request_t{
  16189. Fcount: uint64(4),
  16190. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16191. Fisvoid: uint8(1),
  16192. }
  16193. func Xxcb_poly_fill_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16194. return R + libc.UintptrFromInt32(1)*12
  16195. }
  16196. func Xxcb_poly_fill_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16197. 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))
  16198. }
  16199. func Xxcb_poly_fill_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16200. var i Txcb_arc_iterator_t
  16201. _ = i
  16202. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16203. 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))
  16204. i.Findex = int32(int64(i.Fdata) - int64(R))
  16205. return i
  16206. }
  16207. func Xxcb_put_image_sizeof(tls *libc.TLS, _buffer uintptr, data_len Tuint32_t) (r int32) {
  16208. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16209. var xcb_tmp uintptr
  16210. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16211. xcb_tmp = _buffer
  16212. xcb_buffer_len = uint32(0)
  16213. xcb_block_len = uint32(0)
  16214. xcb_pad = uint32(0)
  16215. xcb_align_to = uint32(0)
  16216. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  16217. xcb_tmp += uintptr(xcb_block_len)
  16218. xcb_buffer_len += xcb_block_len
  16219. xcb_block_len = uint32(0)
  16220. /* data */
  16221. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(data_len)*libc.Uint64FromInt64(1))
  16222. xcb_tmp += uintptr(xcb_block_len)
  16223. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16224. /* insert padding */
  16225. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16226. xcb_buffer_len += xcb_block_len + xcb_pad
  16227. if uint32(0) != xcb_pad {
  16228. xcb_tmp += uintptr(xcb_pad)
  16229. xcb_pad = uint32(0)
  16230. }
  16231. xcb_block_len = uint32(0)
  16232. return libc.Int32FromUint32(xcb_buffer_len)
  16233. }
  16234. 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) {
  16235. bp := tls.Alloc(128)
  16236. defer tls.Free(128)
  16237. var xcb_ret Txcb_void_cookie_t
  16238. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16239. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16240. _ = xcb_ret
  16241. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16242. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16243. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16244. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16245. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16246. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16247. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16248. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16249. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16250. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16251. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16252. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16253. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16254. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16255. /* uint8_t data */
  16256. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16257. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16258. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16259. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16260. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req152)))
  16261. return xcb_ret
  16262. }
  16263. var _xcb_req152 = Txcb_protocol_request_t{
  16264. Fcount: uint64(4),
  16265. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16266. Fisvoid: uint8(1),
  16267. }
  16268. 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) {
  16269. bp := tls.Alloc(128)
  16270. defer tls.Free(128)
  16271. var xcb_ret Txcb_void_cookie_t
  16272. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16273. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16274. _ = xcb_ret
  16275. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16276. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16277. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16278. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16279. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16280. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16281. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16282. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16283. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16284. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16285. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16286. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16287. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16288. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16289. /* uint8_t data */
  16290. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16291. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16292. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16293. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16294. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req153)))
  16295. return xcb_ret
  16296. }
  16297. var _xcb_req153 = Txcb_protocol_request_t{
  16298. Fcount: uint64(4),
  16299. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16300. Fisvoid: uint8(1),
  16301. }
  16302. func Xxcb_put_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16303. return R + libc.UintptrFromInt32(1)*24
  16304. }
  16305. func Xxcb_put_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16306. 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))
  16307. }
  16308. func Xxcb_put_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16309. var i Txcb_generic_iterator_t
  16310. _ = i
  16311. 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))
  16312. i.Frem = 0
  16313. i.Findex = int32(int64(i.Fdata) - int64(R))
  16314. return i
  16315. }
  16316. func Xxcb_get_image_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16317. var _aux, xcb_tmp uintptr
  16318. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16319. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16320. xcb_tmp = _buffer
  16321. _aux = _buffer
  16322. xcb_buffer_len = uint32(0)
  16323. xcb_block_len = uint32(0)
  16324. xcb_pad = uint32(0)
  16325. xcb_align_to = uint32(0)
  16326. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  16327. xcb_tmp += uintptr(xcb_block_len)
  16328. xcb_buffer_len += xcb_block_len
  16329. xcb_block_len = uint32(0)
  16330. /* data */
  16331. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_image_reply_t)(unsafe.Pointer(_aux)).Flength*libc.Uint32FromInt32(4))*libc.Uint64FromInt64(1))
  16332. xcb_tmp += uintptr(xcb_block_len)
  16333. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16334. /* insert padding */
  16335. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16336. xcb_buffer_len += xcb_block_len + xcb_pad
  16337. if uint32(0) != xcb_pad {
  16338. xcb_tmp += uintptr(xcb_pad)
  16339. xcb_pad = uint32(0)
  16340. }
  16341. xcb_block_len = uint32(0)
  16342. return libc.Int32FromUint32(xcb_buffer_len)
  16343. }
  16344. 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) {
  16345. bp := tls.Alloc(96)
  16346. defer tls.Free(96)
  16347. var xcb_ret Txcb_get_image_cookie_t
  16348. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16349. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16350. _ = xcb_ret
  16351. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16352. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16353. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16354. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16355. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16356. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16357. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16360. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16361. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16362. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req154)))
  16363. return xcb_ret
  16364. }
  16365. var _xcb_req154 = Txcb_protocol_request_t{
  16366. Fcount: uint64(2),
  16367. Fopcode: uint8(m_XCB_GET_IMAGE),
  16368. }
  16369. 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) {
  16370. bp := tls.Alloc(96)
  16371. defer tls.Free(96)
  16372. var xcb_ret Txcb_get_image_cookie_t
  16373. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16374. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16375. _ = xcb_ret
  16376. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16377. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16378. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16379. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16380. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16381. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16382. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16383. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16384. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16385. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16386. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16387. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req155)))
  16388. return xcb_ret
  16389. }
  16390. var _xcb_req155 = Txcb_protocol_request_t{
  16391. Fcount: uint64(2),
  16392. Fopcode: uint8(m_XCB_GET_IMAGE),
  16393. }
  16394. func Xxcb_get_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16395. return R + libc.UintptrFromInt32(1)*32
  16396. }
  16397. func Xxcb_get_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16398. return libc.Int32FromUint32((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength * libc.Uint32FromInt32(4))
  16399. }
  16400. func Xxcb_get_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16401. var i Txcb_generic_iterator_t
  16402. _ = i
  16403. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength*libc.Uint32FromInt32(4))
  16404. i.Frem = 0
  16405. i.Findex = int32(int64(i.Fdata) - int64(R))
  16406. return i
  16407. }
  16408. func Xxcb_get_image_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_image_cookie_t, e uintptr) (r uintptr) {
  16409. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  16410. }
  16411. func Xxcb_poly_text_8_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16412. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16413. var xcb_tmp uintptr
  16414. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16415. xcb_tmp = _buffer
  16416. xcb_buffer_len = uint32(0)
  16417. xcb_block_len = uint32(0)
  16418. xcb_pad = uint32(0)
  16419. xcb_align_to = uint32(0)
  16420. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16421. xcb_tmp += uintptr(xcb_block_len)
  16422. xcb_buffer_len += xcb_block_len
  16423. xcb_block_len = uint32(0)
  16424. /* items */
  16425. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16426. xcb_tmp += uintptr(xcb_block_len)
  16427. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16428. /* insert padding */
  16429. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16430. xcb_buffer_len += xcb_block_len + xcb_pad
  16431. if uint32(0) != xcb_pad {
  16432. xcb_tmp += uintptr(xcb_pad)
  16433. xcb_pad = uint32(0)
  16434. }
  16435. xcb_block_len = uint32(0)
  16436. return libc.Int32FromUint32(xcb_buffer_len)
  16437. }
  16438. 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) {
  16439. bp := tls.Alloc(112)
  16440. defer tls.Free(112)
  16441. var xcb_ret Txcb_void_cookie_t
  16442. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16443. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16444. _ = xcb_ret
  16445. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16446. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16447. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16448. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16449. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16450. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16451. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16452. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16453. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16454. /* uint8_t items */
  16455. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16456. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16457. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16458. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16459. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req156)))
  16460. return xcb_ret
  16461. }
  16462. var _xcb_req156 = Txcb_protocol_request_t{
  16463. Fcount: uint64(4),
  16464. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16465. Fisvoid: uint8(1),
  16466. }
  16467. 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) {
  16468. bp := tls.Alloc(112)
  16469. defer tls.Free(112)
  16470. var xcb_ret Txcb_void_cookie_t
  16471. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16472. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16473. _ = xcb_ret
  16474. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16475. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16476. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16477. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16478. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16479. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16480. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16481. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16482. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16483. /* uint8_t items */
  16484. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16485. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16486. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16487. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16488. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req157)))
  16489. return xcb_ret
  16490. }
  16491. var _xcb_req157 = Txcb_protocol_request_t{
  16492. Fcount: uint64(4),
  16493. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16494. Fisvoid: uint8(1),
  16495. }
  16496. func Xxcb_poly_text_8_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16497. return R + libc.UintptrFromInt32(1)*16
  16498. }
  16499. func Xxcb_poly_text_8_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16500. 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))
  16501. }
  16502. func Xxcb_poly_text_8_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16503. var i Txcb_generic_iterator_t
  16504. _ = i
  16505. 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))
  16506. i.Frem = 0
  16507. i.Findex = int32(int64(i.Fdata) - int64(R))
  16508. return i
  16509. }
  16510. func Xxcb_poly_text_16_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16511. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16512. var xcb_tmp uintptr
  16513. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16514. xcb_tmp = _buffer
  16515. xcb_buffer_len = uint32(0)
  16516. xcb_block_len = uint32(0)
  16517. xcb_pad = uint32(0)
  16518. xcb_align_to = uint32(0)
  16519. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16520. xcb_tmp += uintptr(xcb_block_len)
  16521. xcb_buffer_len += xcb_block_len
  16522. xcb_block_len = uint32(0)
  16523. /* items */
  16524. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16525. xcb_tmp += uintptr(xcb_block_len)
  16526. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16527. /* insert padding */
  16528. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16529. xcb_buffer_len += xcb_block_len + xcb_pad
  16530. if uint32(0) != xcb_pad {
  16531. xcb_tmp += uintptr(xcb_pad)
  16532. xcb_pad = uint32(0)
  16533. }
  16534. xcb_block_len = uint32(0)
  16535. return libc.Int32FromUint32(xcb_buffer_len)
  16536. }
  16537. 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) {
  16538. bp := tls.Alloc(112)
  16539. defer tls.Free(112)
  16540. var xcb_ret Txcb_void_cookie_t
  16541. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16542. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16543. _ = xcb_ret
  16544. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16545. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16546. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16547. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16548. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16549. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16550. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16551. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16552. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16553. /* uint8_t items */
  16554. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16555. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16556. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16557. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16558. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req158)))
  16559. return xcb_ret
  16560. }
  16561. var _xcb_req158 = Txcb_protocol_request_t{
  16562. Fcount: uint64(4),
  16563. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16564. Fisvoid: uint8(1),
  16565. }
  16566. 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) {
  16567. bp := tls.Alloc(112)
  16568. defer tls.Free(112)
  16569. var xcb_ret Txcb_void_cookie_t
  16570. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16571. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16572. _ = xcb_ret
  16573. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16574. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16575. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16576. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16577. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16578. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16579. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16580. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16581. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16582. /* uint8_t items */
  16583. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16585. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16587. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req159)))
  16588. return xcb_ret
  16589. }
  16590. var _xcb_req159 = Txcb_protocol_request_t{
  16591. Fcount: uint64(4),
  16592. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16593. Fisvoid: uint8(1),
  16594. }
  16595. func Xxcb_poly_text_16_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16596. return R + libc.UintptrFromInt32(1)*16
  16597. }
  16598. func Xxcb_poly_text_16_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16599. 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))
  16600. }
  16601. func Xxcb_poly_text_16_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16602. var i Txcb_generic_iterator_t
  16603. _ = i
  16604. 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))
  16605. i.Frem = 0
  16606. i.Findex = int32(int64(i.Fdata) - int64(R))
  16607. return i
  16608. }
  16609. func Xxcb_image_text_8_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16610. var _aux, xcb_tmp uintptr
  16611. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16612. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16613. xcb_tmp = _buffer
  16614. _aux = _buffer
  16615. xcb_buffer_len = uint32(0)
  16616. xcb_block_len = uint32(0)
  16617. xcb_pad = uint32(0)
  16618. xcb_align_to = uint32(0)
  16619. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16620. xcb_tmp += uintptr(xcb_block_len)
  16621. xcb_buffer_len += xcb_block_len
  16622. xcb_block_len = uint32(0)
  16623. /* string */
  16624. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_8_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(1))
  16625. xcb_tmp += uintptr(xcb_block_len)
  16626. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16627. /* insert padding */
  16628. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16629. xcb_buffer_len += xcb_block_len + xcb_pad
  16630. if uint32(0) != xcb_pad {
  16631. xcb_tmp += uintptr(xcb_pad)
  16632. xcb_pad = uint32(0)
  16633. }
  16634. xcb_block_len = uint32(0)
  16635. return libc.Int32FromUint32(xcb_buffer_len)
  16636. }
  16637. 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) {
  16638. bp := tls.Alloc(112)
  16639. defer tls.Free(112)
  16640. var xcb_ret Txcb_void_cookie_t
  16641. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16642. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16643. _ = xcb_ret
  16644. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16645. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16646. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16647. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16648. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16649. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16650. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16651. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16652. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16653. /* char string */
  16654. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16655. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16656. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16657. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16658. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req160)))
  16659. return xcb_ret
  16660. }
  16661. var _xcb_req160 = Txcb_protocol_request_t{
  16662. Fcount: uint64(4),
  16663. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16664. Fisvoid: uint8(1),
  16665. }
  16666. 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) {
  16667. bp := tls.Alloc(112)
  16668. defer tls.Free(112)
  16669. var xcb_ret Txcb_void_cookie_t
  16670. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16671. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16672. _ = xcb_ret
  16673. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16674. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16675. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16676. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16677. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16678. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16679. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16680. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16681. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16682. /* char string */
  16683. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16684. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16685. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16686. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16687. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req161)))
  16688. return xcb_ret
  16689. }
  16690. var _xcb_req161 = Txcb_protocol_request_t{
  16691. Fcount: uint64(4),
  16692. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16693. Fisvoid: uint8(1),
  16694. }
  16695. func Xxcb_image_text_8_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16696. return R + libc.UintptrFromInt32(1)*16
  16697. }
  16698. func Xxcb_image_text_8_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16699. return libc.Int32FromUint8((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16700. }
  16701. func Xxcb_image_text_8_string_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16702. var i Txcb_generic_iterator_t
  16703. _ = i
  16704. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16705. i.Frem = 0
  16706. i.Findex = int32(int64(i.Fdata) - int64(R))
  16707. return i
  16708. }
  16709. func Xxcb_image_text_16_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16710. var _aux, xcb_tmp uintptr
  16711. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16712. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16713. xcb_tmp = _buffer
  16714. _aux = _buffer
  16715. xcb_buffer_len = uint32(0)
  16716. xcb_block_len = uint32(0)
  16717. xcb_pad = uint32(0)
  16718. xcb_align_to = uint32(0)
  16719. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16720. xcb_tmp += uintptr(xcb_block_len)
  16721. xcb_buffer_len += xcb_block_len
  16722. xcb_block_len = uint32(0)
  16723. /* string */
  16724. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_16_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(2))
  16725. xcb_tmp += uintptr(xcb_block_len)
  16726. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16727. /* insert padding */
  16728. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16729. xcb_buffer_len += xcb_block_len + xcb_pad
  16730. if uint32(0) != xcb_pad {
  16731. xcb_tmp += uintptr(xcb_pad)
  16732. xcb_pad = uint32(0)
  16733. }
  16734. xcb_block_len = uint32(0)
  16735. return libc.Int32FromUint32(xcb_buffer_len)
  16736. }
  16737. 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) {
  16738. bp := tls.Alloc(112)
  16739. defer tls.Free(112)
  16740. var xcb_ret Txcb_void_cookie_t
  16741. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16742. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16743. _ = xcb_ret
  16744. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16745. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16746. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16747. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16748. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16749. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16750. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16751. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16752. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16753. /* xcb_char2b_t string */
  16754. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16755. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16756. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16757. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16758. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req162)))
  16759. return xcb_ret
  16760. }
  16761. var _xcb_req162 = Txcb_protocol_request_t{
  16762. Fcount: uint64(4),
  16763. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16764. Fisvoid: uint8(1),
  16765. }
  16766. 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) {
  16767. bp := tls.Alloc(112)
  16768. defer tls.Free(112)
  16769. var xcb_ret Txcb_void_cookie_t
  16770. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16771. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16772. _ = xcb_ret
  16773. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16774. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16775. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16776. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16777. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16778. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16779. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16780. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16781. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16782. /* xcb_char2b_t string */
  16783. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16784. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16785. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16786. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16787. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req163)))
  16788. return xcb_ret
  16789. }
  16790. var _xcb_req163 = Txcb_protocol_request_t{
  16791. Fcount: uint64(4),
  16792. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16793. Fisvoid: uint8(1),
  16794. }
  16795. func Xxcb_image_text_16_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16796. return R + libc.UintptrFromInt32(1)*16
  16797. }
  16798. func Xxcb_image_text_16_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16799. return libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16800. }
  16801. func Xxcb_image_text_16_string_iterator(tls *libc.TLS, R uintptr) (r Txcb_char2b_iterator_t) {
  16802. var i Txcb_char2b_iterator_t
  16803. _ = i
  16804. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16805. i.Frem = libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16806. i.Findex = int32(int64(i.Fdata) - int64(R))
  16807. return i
  16808. }
  16809. 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) {
  16810. bp := tls.Alloc(80)
  16811. defer tls.Free(80)
  16812. var xcb_ret Txcb_void_cookie_t
  16813. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16814. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16815. _ = xcb_ret
  16816. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16817. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16818. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16819. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16820. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16821. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16822. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16823. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16824. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req164)))
  16825. return xcb_ret
  16826. }
  16827. var _xcb_req164 = Txcb_protocol_request_t{
  16828. Fcount: uint64(2),
  16829. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16830. Fisvoid: uint8(1),
  16831. }
  16832. 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) {
  16833. bp := tls.Alloc(80)
  16834. defer tls.Free(80)
  16835. var xcb_ret Txcb_void_cookie_t
  16836. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16837. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16838. _ = xcb_ret
  16839. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16840. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16841. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16842. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16843. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16844. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16845. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16846. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16847. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req165)))
  16848. return xcb_ret
  16849. }
  16850. var _xcb_req165 = Txcb_protocol_request_t{
  16851. Fcount: uint64(2),
  16852. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16853. Fisvoid: uint8(1),
  16854. }
  16855. func Xxcb_free_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  16856. bp := tls.Alloc(80)
  16857. defer tls.Free(80)
  16858. var xcb_ret Txcb_void_cookie_t
  16859. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  16860. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16861. _ = xcb_ret
  16862. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16863. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  16864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16865. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  16866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16867. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16868. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req166)))
  16869. return xcb_ret
  16870. }
  16871. var _xcb_req166 = Txcb_protocol_request_t{
  16872. Fcount: uint64(2),
  16873. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  16874. Fisvoid: uint8(1),
  16875. }
  16876. func Xxcb_free_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  16877. bp := tls.Alloc(80)
  16878. defer tls.Free(80)
  16879. var xcb_ret Txcb_void_cookie_t
  16880. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  16881. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16882. _ = xcb_ret
  16883. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16884. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  16885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16886. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  16887. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16888. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16889. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req167)))
  16890. return xcb_ret
  16891. }
  16892. var _xcb_req167 = Txcb_protocol_request_t{
  16893. Fcount: uint64(2),
  16894. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  16895. Fisvoid: uint8(1),
  16896. }
  16897. 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) {
  16898. bp := tls.Alloc(80)
  16899. defer tls.Free(80)
  16900. var xcb_ret Txcb_void_cookie_t
  16901. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  16902. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16903. _ = xcb_ret
  16904. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16905. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16906. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  16907. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16909. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16910. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16911. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req168)))
  16912. return xcb_ret
  16913. }
  16914. var _xcb_req168 = Txcb_protocol_request_t{
  16915. Fcount: uint64(2),
  16916. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  16917. Fisvoid: uint8(1),
  16918. }
  16919. 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) {
  16920. bp := tls.Alloc(80)
  16921. defer tls.Free(80)
  16922. var xcb_ret Txcb_void_cookie_t
  16923. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  16924. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16925. _ = xcb_ret
  16926. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16927. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16928. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  16929. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16930. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16931. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16932. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16933. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req169)))
  16934. return xcb_ret
  16935. }
  16936. var _xcb_req169 = Txcb_protocol_request_t{
  16937. Fcount: uint64(2),
  16938. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  16939. Fisvoid: uint8(1),
  16940. }
  16941. func Xxcb_install_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  16942. bp := tls.Alloc(80)
  16943. defer tls.Free(80)
  16944. var xcb_ret Txcb_void_cookie_t
  16945. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  16946. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16947. _ = xcb_ret
  16948. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16949. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  16950. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16951. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  16952. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16953. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16954. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req170)))
  16955. return xcb_ret
  16956. }
  16957. var _xcb_req170 = Txcb_protocol_request_t{
  16958. Fcount: uint64(2),
  16959. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  16960. Fisvoid: uint8(1),
  16961. }
  16962. func Xxcb_install_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  16963. bp := tls.Alloc(80)
  16964. defer tls.Free(80)
  16965. var xcb_ret Txcb_void_cookie_t
  16966. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  16967. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16968. _ = xcb_ret
  16969. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16970. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  16971. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16972. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  16973. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16974. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16975. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req171)))
  16976. return xcb_ret
  16977. }
  16978. var _xcb_req171 = Txcb_protocol_request_t{
  16979. Fcount: uint64(2),
  16980. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  16981. Fisvoid: uint8(1),
  16982. }
  16983. func Xxcb_uninstall_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  16984. bp := tls.Alloc(80)
  16985. defer tls.Free(80)
  16986. var xcb_ret Txcb_void_cookie_t
  16987. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  16988. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16989. _ = xcb_ret
  16990. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16991. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  16992. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16993. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  16994. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16995. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16996. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req172)))
  16997. return xcb_ret
  16998. }
  16999. var _xcb_req172 = Txcb_protocol_request_t{
  17000. Fcount: uint64(2),
  17001. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17002. Fisvoid: uint8(1),
  17003. }
  17004. func Xxcb_uninstall_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17005. bp := tls.Alloc(80)
  17006. defer tls.Free(80)
  17007. var xcb_ret Txcb_void_cookie_t
  17008. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17009. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17010. _ = xcb_ret
  17011. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17012. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17013. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17014. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17015. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17016. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17017. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req173)))
  17018. return xcb_ret
  17019. }
  17020. var _xcb_req173 = Txcb_protocol_request_t{
  17021. Fcount: uint64(2),
  17022. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17023. Fisvoid: uint8(1),
  17024. }
  17025. func Xxcb_list_installed_colormaps_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17026. var _aux, xcb_tmp uintptr
  17027. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17028. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17029. xcb_tmp = _buffer
  17030. _aux = _buffer
  17031. xcb_buffer_len = uint32(0)
  17032. xcb_block_len = uint32(0)
  17033. xcb_pad = uint32(0)
  17034. xcb_align_to = uint32(0)
  17035. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17036. xcb_tmp += uintptr(xcb_block_len)
  17037. xcb_buffer_len += xcb_block_len
  17038. xcb_block_len = uint32(0)
  17039. /* cmaps */
  17040. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(_aux)).Fcmaps_len)*libc.Uint64FromInt64(4))
  17041. xcb_tmp += uintptr(xcb_block_len)
  17042. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17043. /* insert padding */
  17044. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17045. xcb_buffer_len += xcb_block_len + xcb_pad
  17046. if uint32(0) != xcb_pad {
  17047. xcb_tmp += uintptr(xcb_pad)
  17048. xcb_pad = uint32(0)
  17049. }
  17050. xcb_block_len = uint32(0)
  17051. return libc.Int32FromUint32(xcb_buffer_len)
  17052. }
  17053. func Xxcb_list_installed_colormaps(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17054. bp := tls.Alloc(80)
  17055. defer tls.Free(80)
  17056. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17057. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17058. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17059. _ = xcb_ret
  17060. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17061. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17062. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17066. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req174)))
  17067. return xcb_ret
  17068. }
  17069. var _xcb_req174 = Txcb_protocol_request_t{
  17070. Fcount: uint64(2),
  17071. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17072. }
  17073. func Xxcb_list_installed_colormaps_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17074. bp := tls.Alloc(80)
  17075. defer tls.Free(80)
  17076. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17077. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17078. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17079. _ = xcb_ret
  17080. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17081. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17082. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17083. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17084. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17085. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17086. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req175)))
  17087. return xcb_ret
  17088. }
  17089. var _xcb_req175 = Txcb_protocol_request_t{
  17090. Fcount: uint64(2),
  17091. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17092. }
  17093. func Xxcb_list_installed_colormaps_cmaps(tls *libc.TLS, R uintptr) (r uintptr) {
  17094. return R + libc.UintptrFromInt32(1)*32
  17095. }
  17096. func Xxcb_list_installed_colormaps_cmaps_length(tls *libc.TLS, R uintptr) (r int32) {
  17097. return libc.Int32FromUint16((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)
  17098. }
  17099. func Xxcb_list_installed_colormaps_cmaps_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17100. var i Txcb_generic_iterator_t
  17101. _ = i
  17102. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)*4
  17103. i.Frem = 0
  17104. i.Findex = int32(int64(i.Fdata) - int64(R))
  17105. return i
  17106. }
  17107. func Xxcb_list_installed_colormaps_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_installed_colormaps_cookie_t, e uintptr) (r uintptr) {
  17108. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17109. }
  17110. 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) {
  17111. bp := tls.Alloc(80)
  17112. defer tls.Free(80)
  17113. var xcb_ret Txcb_alloc_color_cookie_t
  17114. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17115. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17116. _ = xcb_ret
  17117. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17118. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17119. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17120. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17121. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17122. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17126. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17127. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req176)))
  17128. return xcb_ret
  17129. }
  17130. var _xcb_req176 = Txcb_protocol_request_t{
  17131. Fcount: uint64(2),
  17132. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17133. }
  17134. 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) {
  17135. bp := tls.Alloc(80)
  17136. defer tls.Free(80)
  17137. var xcb_ret Txcb_alloc_color_cookie_t
  17138. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17139. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17140. _ = xcb_ret
  17141. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17142. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17143. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17144. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17145. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17146. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17147. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17148. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17149. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17150. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17151. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req177)))
  17152. return xcb_ret
  17153. }
  17154. var _xcb_req177 = Txcb_protocol_request_t{
  17155. Fcount: uint64(2),
  17156. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17157. }
  17158. func Xxcb_alloc_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cookie_t, e uintptr) (r uintptr) {
  17159. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17160. }
  17161. func Xxcb_alloc_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17162. var _aux, xcb_tmp uintptr
  17163. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17164. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17165. xcb_tmp = _buffer
  17166. _aux = _buffer
  17167. xcb_buffer_len = uint32(0)
  17168. xcb_block_len = uint32(0)
  17169. xcb_pad = uint32(0)
  17170. xcb_align_to = uint32(0)
  17171. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17172. xcb_tmp += uintptr(xcb_block_len)
  17173. xcb_buffer_len += xcb_block_len
  17174. xcb_block_len = uint32(0)
  17175. /* name */
  17176. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17177. xcb_tmp += uintptr(xcb_block_len)
  17178. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17179. /* insert padding */
  17180. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17181. xcb_buffer_len += xcb_block_len + xcb_pad
  17182. if uint32(0) != xcb_pad {
  17183. xcb_tmp += uintptr(xcb_pad)
  17184. xcb_pad = uint32(0)
  17185. }
  17186. xcb_block_len = uint32(0)
  17187. return libc.Int32FromUint32(xcb_buffer_len)
  17188. }
  17189. 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) {
  17190. bp := tls.Alloc(112)
  17191. defer tls.Free(112)
  17192. var xcb_ret Txcb_alloc_named_color_cookie_t
  17193. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17194. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17195. _ = xcb_ret
  17196. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17197. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17198. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17199. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17200. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17201. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17202. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17203. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17204. /* char name */
  17205. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17206. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17207. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17208. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17209. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req178)))
  17210. return xcb_ret
  17211. }
  17212. var _xcb_req178 = Txcb_protocol_request_t{
  17213. Fcount: uint64(4),
  17214. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17215. }
  17216. 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) {
  17217. bp := tls.Alloc(112)
  17218. defer tls.Free(112)
  17219. var xcb_ret Txcb_alloc_named_color_cookie_t
  17220. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17221. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17222. _ = xcb_ret
  17223. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17224. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17225. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17226. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17227. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17228. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17229. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17230. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17231. /* char name */
  17232. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17233. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17234. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17235. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17236. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req179)))
  17237. return xcb_ret
  17238. }
  17239. var _xcb_req179 = Txcb_protocol_request_t{
  17240. Fcount: uint64(4),
  17241. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17242. }
  17243. func Xxcb_alloc_named_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_named_color_cookie_t, e uintptr) (r uintptr) {
  17244. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17245. }
  17246. func Xxcb_alloc_color_cells_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17247. var _aux, xcb_tmp uintptr
  17248. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17249. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17250. xcb_tmp = _buffer
  17251. _aux = _buffer
  17252. xcb_buffer_len = uint32(0)
  17253. xcb_block_len = uint32(0)
  17254. xcb_pad = uint32(0)
  17255. xcb_align_to = uint32(0)
  17256. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17257. xcb_tmp += uintptr(xcb_block_len)
  17258. xcb_buffer_len += xcb_block_len
  17259. xcb_block_len = uint32(0)
  17260. /* pixels */
  17261. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17262. xcb_tmp += uintptr(xcb_block_len)
  17263. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17264. /* insert padding */
  17265. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17266. xcb_buffer_len += xcb_block_len + xcb_pad
  17267. if uint32(0) != xcb_pad {
  17268. xcb_tmp += uintptr(xcb_pad)
  17269. xcb_pad = uint32(0)
  17270. }
  17271. xcb_block_len = uint32(0)
  17272. /* masks */
  17273. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fmasks_len)*libc.Uint64FromInt64(4))
  17274. xcb_tmp += uintptr(xcb_block_len)
  17275. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17276. /* insert padding */
  17277. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17278. xcb_buffer_len += xcb_block_len + xcb_pad
  17279. if uint32(0) != xcb_pad {
  17280. xcb_tmp += uintptr(xcb_pad)
  17281. xcb_pad = uint32(0)
  17282. }
  17283. xcb_block_len = uint32(0)
  17284. return libc.Int32FromUint32(xcb_buffer_len)
  17285. }
  17286. 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) {
  17287. bp := tls.Alloc(80)
  17288. defer tls.Free(80)
  17289. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17290. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17291. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17292. _ = xcb_ret
  17293. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17294. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17295. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17296. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17301. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req180)))
  17302. return xcb_ret
  17303. }
  17304. var _xcb_req180 = Txcb_protocol_request_t{
  17305. Fcount: uint64(2),
  17306. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17307. }
  17308. 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) {
  17309. bp := tls.Alloc(80)
  17310. defer tls.Free(80)
  17311. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17312. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17313. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17314. _ = xcb_ret
  17315. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17316. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17317. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17318. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17320. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17321. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17322. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17323. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req181)))
  17324. return xcb_ret
  17325. }
  17326. var _xcb_req181 = Txcb_protocol_request_t{
  17327. Fcount: uint64(2),
  17328. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17329. }
  17330. func Xxcb_alloc_color_cells_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17331. return R + libc.UintptrFromInt32(1)*32
  17332. }
  17333. func Xxcb_alloc_color_cells_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17334. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17335. }
  17336. func Xxcb_alloc_color_cells_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17337. var i Txcb_generic_iterator_t
  17338. _ = i
  17339. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17340. i.Frem = 0
  17341. i.Findex = int32(int64(i.Fdata) - int64(R))
  17342. return i
  17343. }
  17344. func Xxcb_alloc_color_cells_masks(tls *libc.TLS, R uintptr) (r uintptr) {
  17345. var prev Txcb_generic_iterator_t
  17346. _ = prev
  17347. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17348. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  17349. }
  17350. func Xxcb_alloc_color_cells_masks_length(tls *libc.TLS, R uintptr) (r int32) {
  17351. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)
  17352. }
  17353. func Xxcb_alloc_color_cells_masks_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17354. var i, prev Txcb_generic_iterator_t
  17355. _, _ = i, prev
  17356. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17357. 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
  17358. i.Frem = 0
  17359. i.Findex = int32(int64(i.Fdata) - int64(R))
  17360. return i
  17361. }
  17362. func Xxcb_alloc_color_cells_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cells_cookie_t, e uintptr) (r uintptr) {
  17363. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17364. }
  17365. func Xxcb_alloc_color_planes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17366. var _aux, xcb_tmp uintptr
  17367. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17368. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17369. xcb_tmp = _buffer
  17370. _aux = _buffer
  17371. xcb_buffer_len = uint32(0)
  17372. xcb_block_len = uint32(0)
  17373. xcb_pad = uint32(0)
  17374. xcb_align_to = uint32(0)
  17375. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17376. xcb_tmp += uintptr(xcb_block_len)
  17377. xcb_buffer_len += xcb_block_len
  17378. xcb_block_len = uint32(0)
  17379. /* pixels */
  17380. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17381. xcb_tmp += uintptr(xcb_block_len)
  17382. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17383. /* insert padding */
  17384. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17385. xcb_buffer_len += xcb_block_len + xcb_pad
  17386. if uint32(0) != xcb_pad {
  17387. xcb_tmp += uintptr(xcb_pad)
  17388. xcb_pad = uint32(0)
  17389. }
  17390. xcb_block_len = uint32(0)
  17391. return libc.Int32FromUint32(xcb_buffer_len)
  17392. }
  17393. 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) {
  17394. bp := tls.Alloc(80)
  17395. defer tls.Free(80)
  17396. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17397. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17398. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17399. _ = xcb_ret
  17400. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17401. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17402. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17403. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17404. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17405. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17406. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17407. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17408. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17409. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17410. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req182)))
  17411. return xcb_ret
  17412. }
  17413. var _xcb_req182 = Txcb_protocol_request_t{
  17414. Fcount: uint64(2),
  17415. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17416. }
  17417. 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) {
  17418. bp := tls.Alloc(80)
  17419. defer tls.Free(80)
  17420. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17421. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17422. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17423. _ = xcb_ret
  17424. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17425. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17426. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17427. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17428. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17429. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17430. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17431. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17432. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17433. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17434. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req183)))
  17435. return xcb_ret
  17436. }
  17437. var _xcb_req183 = Txcb_protocol_request_t{
  17438. Fcount: uint64(2),
  17439. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17440. }
  17441. func Xxcb_alloc_color_planes_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17442. return R + libc.UintptrFromInt32(1)*32
  17443. }
  17444. func Xxcb_alloc_color_planes_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17445. return libc.Int32FromUint16((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17446. }
  17447. func Xxcb_alloc_color_planes_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17448. var i Txcb_generic_iterator_t
  17449. _ = i
  17450. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17451. i.Frem = 0
  17452. i.Findex = int32(int64(i.Fdata) - int64(R))
  17453. return i
  17454. }
  17455. func Xxcb_alloc_color_planes_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_planes_cookie_t, e uintptr) (r uintptr) {
  17456. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17457. }
  17458. func Xxcb_free_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17459. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17460. var xcb_tmp uintptr
  17461. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17462. xcb_tmp = _buffer
  17463. xcb_buffer_len = uint32(0)
  17464. xcb_block_len = uint32(0)
  17465. xcb_pad = uint32(0)
  17466. xcb_align_to = uint32(0)
  17467. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17468. xcb_tmp += uintptr(xcb_block_len)
  17469. xcb_buffer_len += xcb_block_len
  17470. xcb_block_len = uint32(0)
  17471. /* pixels */
  17472. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17473. xcb_tmp += uintptr(xcb_block_len)
  17474. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17475. /* insert padding */
  17476. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17477. xcb_buffer_len += xcb_block_len + xcb_pad
  17478. if uint32(0) != xcb_pad {
  17479. xcb_tmp += uintptr(xcb_pad)
  17480. xcb_pad = uint32(0)
  17481. }
  17482. xcb_block_len = uint32(0)
  17483. return libc.Int32FromUint32(xcb_buffer_len)
  17484. }
  17485. 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) {
  17486. bp := tls.Alloc(112)
  17487. defer tls.Free(112)
  17488. var xcb_ret Txcb_void_cookie_t
  17489. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17490. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17491. _ = xcb_ret
  17492. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17493. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17494. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17495. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17496. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17497. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17498. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17499. /* uint32_t pixels */
  17500. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17501. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17502. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17503. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17504. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req184)))
  17505. return xcb_ret
  17506. }
  17507. var _xcb_req184 = Txcb_protocol_request_t{
  17508. Fcount: uint64(4),
  17509. Fopcode: uint8(m_XCB_FREE_COLORS),
  17510. Fisvoid: uint8(1),
  17511. }
  17512. 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) {
  17513. bp := tls.Alloc(112)
  17514. defer tls.Free(112)
  17515. var xcb_ret Txcb_void_cookie_t
  17516. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17517. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17518. _ = xcb_ret
  17519. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17520. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17521. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17522. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17523. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17524. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17525. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17526. /* uint32_t pixels */
  17527. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17528. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17529. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17530. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17531. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req185)))
  17532. return xcb_ret
  17533. }
  17534. var _xcb_req185 = Txcb_protocol_request_t{
  17535. Fcount: uint64(4),
  17536. Fopcode: uint8(m_XCB_FREE_COLORS),
  17537. Fisvoid: uint8(1),
  17538. }
  17539. func Xxcb_free_colors_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17540. return R + libc.UintptrFromInt32(1)*12
  17541. }
  17542. func Xxcb_free_colors_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17543. 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))
  17544. }
  17545. func Xxcb_free_colors_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17546. var i Txcb_generic_iterator_t
  17547. _ = i
  17548. 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
  17549. i.Frem = 0
  17550. i.Findex = int32(int64(i.Fdata) - int64(R))
  17551. return i
  17552. }
  17553. func Xxcb_coloritem_next(tls *libc.TLS, i uintptr) {
  17554. var p1 uintptr
  17555. _ = p1
  17556. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Frem--
  17557. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  17558. p1 = i + 12
  17559. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  17560. }
  17561. func Xxcb_coloritem_end(tls *libc.TLS, i Txcb_coloritem_iterator_t) (r Txcb_generic_iterator_t) {
  17562. var ret Txcb_generic_iterator_t
  17563. _ = ret
  17564. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  17565. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17566. ret.Frem = 0
  17567. return ret
  17568. }
  17569. func Xxcb_store_colors_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  17570. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17571. var xcb_tmp uintptr
  17572. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17573. xcb_tmp = _buffer
  17574. xcb_buffer_len = uint32(0)
  17575. xcb_block_len = uint32(0)
  17576. xcb_pad = uint32(0)
  17577. xcb_align_to = uint32(0)
  17578. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17579. xcb_tmp += uintptr(xcb_block_len)
  17580. xcb_buffer_len += xcb_block_len
  17581. xcb_block_len = uint32(0)
  17582. /* items */
  17583. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(12))
  17584. xcb_tmp += uintptr(xcb_block_len)
  17585. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17586. /* insert padding */
  17587. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17588. xcb_buffer_len += xcb_block_len + xcb_pad
  17589. if uint32(0) != xcb_pad {
  17590. xcb_tmp += uintptr(xcb_pad)
  17591. xcb_pad = uint32(0)
  17592. }
  17593. xcb_block_len = uint32(0)
  17594. return libc.Int32FromUint32(xcb_buffer_len)
  17595. }
  17596. 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) {
  17597. bp := tls.Alloc(112)
  17598. defer tls.Free(112)
  17599. var xcb_ret Txcb_void_cookie_t
  17600. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17601. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17602. _ = xcb_ret
  17603. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17604. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17606. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17607. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17608. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17609. /* xcb_coloritem_t items */
  17610. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17611. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17612. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17613. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17614. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req186)))
  17615. return xcb_ret
  17616. }
  17617. var _xcb_req186 = Txcb_protocol_request_t{
  17618. Fcount: uint64(4),
  17619. Fopcode: uint8(m_XCB_STORE_COLORS),
  17620. Fisvoid: uint8(1),
  17621. }
  17622. func Xxcb_store_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
  17623. bp := tls.Alloc(112)
  17624. defer tls.Free(112)
  17625. var xcb_ret Txcb_void_cookie_t
  17626. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17627. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17628. _ = xcb_ret
  17629. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17630. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17631. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17632. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17633. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17634. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17635. /* xcb_coloritem_t items */
  17636. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17637. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17638. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17639. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17640. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req187)))
  17641. return xcb_ret
  17642. }
  17643. var _xcb_req187 = Txcb_protocol_request_t{
  17644. Fcount: uint64(4),
  17645. Fopcode: uint8(m_XCB_STORE_COLORS),
  17646. Fisvoid: uint8(1),
  17647. }
  17648. func Xxcb_store_colors_items(tls *libc.TLS, R uintptr) (r uintptr) {
  17649. return R + libc.UintptrFromInt32(1)*8
  17650. }
  17651. func Xxcb_store_colors_items_length(tls *libc.TLS, R uintptr) (r int32) {
  17652. 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))
  17653. }
  17654. func Xxcb_store_colors_items_iterator(tls *libc.TLS, R uintptr) (r Txcb_coloritem_iterator_t) {
  17655. var i Txcb_coloritem_iterator_t
  17656. _ = i
  17657. i.Fdata = R + libc.UintptrFromInt32(1)*8
  17658. 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))
  17659. i.Findex = int32(int64(i.Fdata) - int64(R))
  17660. return i
  17661. }
  17662. func Xxcb_store_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17663. var _aux, xcb_tmp uintptr
  17664. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17665. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17666. xcb_tmp = _buffer
  17667. _aux = _buffer
  17668. xcb_buffer_len = uint32(0)
  17669. xcb_block_len = uint32(0)
  17670. xcb_pad = uint32(0)
  17671. xcb_align_to = uint32(0)
  17672. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  17673. xcb_tmp += uintptr(xcb_block_len)
  17674. xcb_buffer_len += xcb_block_len
  17675. xcb_block_len = uint32(0)
  17676. /* name */
  17677. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_store_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17678. xcb_tmp += uintptr(xcb_block_len)
  17679. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17680. /* insert padding */
  17681. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17682. xcb_buffer_len += xcb_block_len + xcb_pad
  17683. if uint32(0) != xcb_pad {
  17684. xcb_tmp += uintptr(xcb_pad)
  17685. xcb_pad = uint32(0)
  17686. }
  17687. xcb_block_len = uint32(0)
  17688. return libc.Int32FromUint32(xcb_buffer_len)
  17689. }
  17690. 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) {
  17691. bp := tls.Alloc(112)
  17692. defer tls.Free(112)
  17693. var xcb_ret Txcb_void_cookie_t
  17694. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17695. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17696. _ = xcb_ret
  17697. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17698. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17699. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17700. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17701. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17702. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17703. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17704. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17705. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17706. /* char name */
  17707. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17708. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17709. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17710. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17711. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req188)))
  17712. return xcb_ret
  17713. }
  17714. var _xcb_req188 = Txcb_protocol_request_t{
  17715. Fcount: uint64(4),
  17716. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17717. Fisvoid: uint8(1),
  17718. }
  17719. 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) {
  17720. bp := tls.Alloc(112)
  17721. defer tls.Free(112)
  17722. var xcb_ret Txcb_void_cookie_t
  17723. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17724. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17725. _ = xcb_ret
  17726. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17727. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17728. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17729. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17730. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17731. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17732. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17733. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17734. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17735. /* char name */
  17736. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17738. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17739. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17740. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req189)))
  17741. return xcb_ret
  17742. }
  17743. var _xcb_req189 = Txcb_protocol_request_t{
  17744. Fcount: uint64(4),
  17745. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17746. Fisvoid: uint8(1),
  17747. }
  17748. func Xxcb_store_named_color_name(tls *libc.TLS, R uintptr) (r uintptr) {
  17749. return R + libc.UintptrFromInt32(1)*16
  17750. }
  17751. func Xxcb_store_named_color_name_length(tls *libc.TLS, R uintptr) (r int32) {
  17752. return libc.Int32FromUint16((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17753. }
  17754. func Xxcb_store_named_color_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17755. var i Txcb_generic_iterator_t
  17756. _ = i
  17757. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17758. i.Frem = 0
  17759. i.Findex = int32(int64(i.Fdata) - int64(R))
  17760. return i
  17761. }
  17762. func Xxcb_rgb_next(tls *libc.TLS, i uintptr) {
  17763. var p1 uintptr
  17764. _ = p1
  17765. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Frem--
  17766. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  17767. p1 = i + 12
  17768. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  17769. }
  17770. func Xxcb_rgb_end(tls *libc.TLS, i Txcb_rgb_iterator_t) (r Txcb_generic_iterator_t) {
  17771. var ret Txcb_generic_iterator_t
  17772. _ = ret
  17773. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  17774. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17775. ret.Frem = 0
  17776. return ret
  17777. }
  17778. func Xxcb_query_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17779. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17780. var xcb_tmp uintptr
  17781. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17782. xcb_tmp = _buffer
  17783. xcb_buffer_len = uint32(0)
  17784. xcb_block_len = uint32(0)
  17785. xcb_pad = uint32(0)
  17786. xcb_align_to = uint32(0)
  17787. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17788. xcb_tmp += uintptr(xcb_block_len)
  17789. xcb_buffer_len += xcb_block_len
  17790. xcb_block_len = uint32(0)
  17791. /* pixels */
  17792. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17793. xcb_tmp += uintptr(xcb_block_len)
  17794. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17795. /* insert padding */
  17796. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17797. xcb_buffer_len += xcb_block_len + xcb_pad
  17798. if uint32(0) != xcb_pad {
  17799. xcb_tmp += uintptr(xcb_pad)
  17800. xcb_pad = uint32(0)
  17801. }
  17802. xcb_block_len = uint32(0)
  17803. return libc.Int32FromUint32(xcb_buffer_len)
  17804. }
  17805. 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) {
  17806. bp := tls.Alloc(112)
  17807. defer tls.Free(112)
  17808. var xcb_ret Txcb_query_colors_cookie_t
  17809. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17810. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17811. _ = xcb_ret
  17812. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17813. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17814. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17815. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17816. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17817. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17818. /* uint32_t pixels */
  17819. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17820. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17821. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17822. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17823. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req190)))
  17824. return xcb_ret
  17825. }
  17826. var _xcb_req190 = Txcb_protocol_request_t{
  17827. Fcount: uint64(4),
  17828. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17829. }
  17830. 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) {
  17831. bp := tls.Alloc(112)
  17832. defer tls.Free(112)
  17833. var xcb_ret Txcb_query_colors_cookie_t
  17834. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17835. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17836. _ = xcb_ret
  17837. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17838. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17839. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17840. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17841. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17842. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17843. /* uint32_t pixels */
  17844. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17845. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17846. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17847. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17848. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req191)))
  17849. return xcb_ret
  17850. }
  17851. var _xcb_req191 = Txcb_protocol_request_t{
  17852. Fcount: uint64(4),
  17853. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17854. }
  17855. func Xxcb_query_colors_colors(tls *libc.TLS, R uintptr) (r uintptr) {
  17856. return R + libc.UintptrFromInt32(1)*32
  17857. }
  17858. func Xxcb_query_colors_colors_length(tls *libc.TLS, R uintptr) (r int32) {
  17859. return libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  17860. }
  17861. func Xxcb_query_colors_colors_iterator(tls *libc.TLS, R uintptr) (r Txcb_rgb_iterator_t) {
  17862. var i Txcb_rgb_iterator_t
  17863. _ = i
  17864. i.Fdata = R + libc.UintptrFromInt32(1)*32
  17865. i.Frem = libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  17866. i.Findex = int32(int64(i.Fdata) - int64(R))
  17867. return i
  17868. }
  17869. func Xxcb_query_colors_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_colors_cookie_t, e uintptr) (r uintptr) {
  17870. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17871. }
  17872. func Xxcb_lookup_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17873. var _aux, xcb_tmp uintptr
  17874. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17875. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17876. xcb_tmp = _buffer
  17877. _aux = _buffer
  17878. xcb_buffer_len = uint32(0)
  17879. xcb_block_len = uint32(0)
  17880. xcb_pad = uint32(0)
  17881. xcb_align_to = uint32(0)
  17882. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17883. xcb_tmp += uintptr(xcb_block_len)
  17884. xcb_buffer_len += xcb_block_len
  17885. xcb_block_len = uint32(0)
  17886. /* name */
  17887. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_lookup_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17888. xcb_tmp += uintptr(xcb_block_len)
  17889. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17890. /* insert padding */
  17891. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17892. xcb_buffer_len += xcb_block_len + xcb_pad
  17893. if uint32(0) != xcb_pad {
  17894. xcb_tmp += uintptr(xcb_pad)
  17895. xcb_pad = uint32(0)
  17896. }
  17897. xcb_block_len = uint32(0)
  17898. return libc.Int32FromUint32(xcb_buffer_len)
  17899. }
  17900. 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) {
  17901. bp := tls.Alloc(112)
  17902. defer tls.Free(112)
  17903. var xcb_ret Txcb_lookup_color_cookie_t
  17904. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  17905. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17906. _ = xcb_ret
  17907. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17908. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17909. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17910. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17911. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17912. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17913. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17914. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17915. /* char name */
  17916. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17917. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17918. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17919. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17920. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req192)))
  17921. return xcb_ret
  17922. }
  17923. var _xcb_req192 = Txcb_protocol_request_t{
  17924. Fcount: uint64(4),
  17925. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  17926. }
  17927. 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) {
  17928. bp := tls.Alloc(112)
  17929. defer tls.Free(112)
  17930. var xcb_ret Txcb_lookup_color_cookie_t
  17931. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  17932. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17933. _ = xcb_ret
  17934. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17935. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17936. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17937. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17938. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17939. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17940. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17941. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17942. /* char name */
  17943. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17944. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17945. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17946. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17947. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req193)))
  17948. return xcb_ret
  17949. }
  17950. var _xcb_req193 = Txcb_protocol_request_t{
  17951. Fcount: uint64(4),
  17952. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  17953. }
  17954. func Xxcb_lookup_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_lookup_color_cookie_t, e uintptr) (r uintptr) {
  17955. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17956. }
  17957. 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) {
  17958. bp := tls.Alloc(96)
  17959. defer tls.Free(96)
  17960. var xcb_ret Txcb_void_cookie_t
  17961. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  17962. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17963. _ = xcb_ret
  17964. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17965. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  17966. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  17967. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  17968. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  17969. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  17970. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  17971. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  17972. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  17973. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  17974. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  17975. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  17976. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17977. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  17978. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17979. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17980. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req194)))
  17981. return xcb_ret
  17982. }
  17983. var _xcb_req194 = Txcb_protocol_request_t{
  17984. Fcount: uint64(2),
  17985. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  17986. Fisvoid: uint8(1),
  17987. }
  17988. 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) {
  17989. bp := tls.Alloc(96)
  17990. defer tls.Free(96)
  17991. var xcb_ret Txcb_void_cookie_t
  17992. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  17993. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17994. _ = xcb_ret
  17995. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17996. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  17997. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  17998. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  17999. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18000. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18001. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18002. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18003. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18004. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18005. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18006. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18007. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18008. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18009. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18010. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18011. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req195)))
  18012. return xcb_ret
  18013. }
  18014. var _xcb_req195 = Txcb_protocol_request_t{
  18015. Fcount: uint64(2),
  18016. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18017. Fisvoid: uint8(1),
  18018. }
  18019. 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) {
  18020. bp := tls.Alloc(96)
  18021. defer tls.Free(96)
  18022. var xcb_ret Txcb_void_cookie_t
  18023. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18024. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18025. _ = xcb_ret
  18026. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18027. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18028. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18029. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18030. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18031. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18032. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18033. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18034. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18035. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18036. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18037. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18038. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18039. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18040. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18041. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18042. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req196)))
  18043. return xcb_ret
  18044. }
  18045. var _xcb_req196 = Txcb_protocol_request_t{
  18046. Fcount: uint64(2),
  18047. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18048. Fisvoid: uint8(1),
  18049. }
  18050. 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) {
  18051. bp := tls.Alloc(96)
  18052. defer tls.Free(96)
  18053. var xcb_ret Txcb_void_cookie_t
  18054. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18055. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18056. _ = xcb_ret
  18057. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18058. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18059. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18060. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18061. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18062. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18063. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18064. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18065. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18066. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18067. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18068. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18069. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18070. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18071. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18073. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req197)))
  18074. return xcb_ret
  18075. }
  18076. var _xcb_req197 = Txcb_protocol_request_t{
  18077. Fcount: uint64(2),
  18078. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18079. Fisvoid: uint8(1),
  18080. }
  18081. func Xxcb_free_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18082. bp := tls.Alloc(80)
  18083. defer tls.Free(80)
  18084. var xcb_ret Txcb_void_cookie_t
  18085. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18086. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18087. _ = xcb_ret
  18088. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18089. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18090. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18091. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18092. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18093. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18094. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req198)))
  18095. return xcb_ret
  18096. }
  18097. var _xcb_req198 = Txcb_protocol_request_t{
  18098. Fcount: uint64(2),
  18099. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18100. Fisvoid: uint8(1),
  18101. }
  18102. func Xxcb_free_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18103. bp := tls.Alloc(80)
  18104. defer tls.Free(80)
  18105. var xcb_ret Txcb_void_cookie_t
  18106. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18107. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18108. _ = xcb_ret
  18109. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18110. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18111. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18112. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18113. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18114. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18115. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req199)))
  18116. return xcb_ret
  18117. }
  18118. var _xcb_req199 = Txcb_protocol_request_t{
  18119. Fcount: uint64(2),
  18120. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18121. Fisvoid: uint8(1),
  18122. }
  18123. 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) {
  18124. bp := tls.Alloc(96)
  18125. defer tls.Free(96)
  18126. var xcb_ret Txcb_void_cookie_t
  18127. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18128. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18129. _ = xcb_ret
  18130. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18131. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18132. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18133. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18134. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18135. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18136. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18137. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18138. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18142. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req200)))
  18143. return xcb_ret
  18144. }
  18145. var _xcb_req200 = Txcb_protocol_request_t{
  18146. Fcount: uint64(2),
  18147. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18148. Fisvoid: uint8(1),
  18149. }
  18150. 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) {
  18151. bp := tls.Alloc(96)
  18152. defer tls.Free(96)
  18153. var xcb_ret Txcb_void_cookie_t
  18154. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18155. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18156. _ = xcb_ret
  18157. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18158. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18159. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18160. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18161. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18162. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18163. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18164. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18165. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18166. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18167. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18168. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18169. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req201)))
  18170. return xcb_ret
  18171. }
  18172. var _xcb_req201 = Txcb_protocol_request_t{
  18173. Fcount: uint64(2),
  18174. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18175. Fisvoid: uint8(1),
  18176. }
  18177. 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) {
  18178. bp := tls.Alloc(80)
  18179. defer tls.Free(80)
  18180. var xcb_ret Txcb_query_best_size_cookie_t
  18181. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18182. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18183. _ = xcb_ret
  18184. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18185. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18186. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18187. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18188. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18189. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18190. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18191. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18192. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req202)))
  18193. return xcb_ret
  18194. }
  18195. var _xcb_req202 = Txcb_protocol_request_t{
  18196. Fcount: uint64(2),
  18197. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18198. }
  18199. 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) {
  18200. bp := tls.Alloc(80)
  18201. defer tls.Free(80)
  18202. var xcb_ret Txcb_query_best_size_cookie_t
  18203. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18204. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18205. _ = xcb_ret
  18206. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18207. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18208. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18209. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18210. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18213. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18214. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req203)))
  18215. return xcb_ret
  18216. }
  18217. var _xcb_req203 = Txcb_protocol_request_t{
  18218. Fcount: uint64(2),
  18219. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18220. }
  18221. func Xxcb_query_best_size_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_best_size_cookie_t, e uintptr) (r uintptr) {
  18222. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18223. }
  18224. func Xxcb_query_extension_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18225. var _aux, xcb_tmp uintptr
  18226. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18227. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18228. xcb_tmp = _buffer
  18229. _aux = _buffer
  18230. xcb_buffer_len = uint32(0)
  18231. xcb_block_len = uint32(0)
  18232. xcb_pad = uint32(0)
  18233. xcb_align_to = uint32(0)
  18234. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18235. xcb_tmp += uintptr(xcb_block_len)
  18236. xcb_buffer_len += xcb_block_len
  18237. xcb_block_len = uint32(0)
  18238. /* name */
  18239. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_extension_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  18240. xcb_tmp += uintptr(xcb_block_len)
  18241. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18242. /* insert padding */
  18243. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18244. xcb_buffer_len += xcb_block_len + xcb_pad
  18245. if uint32(0) != xcb_pad {
  18246. xcb_tmp += uintptr(xcb_pad)
  18247. xcb_pad = uint32(0)
  18248. }
  18249. xcb_block_len = uint32(0)
  18250. return libc.Int32FromUint32(xcb_buffer_len)
  18251. }
  18252. func Xxcb_query_extension(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18253. bp := tls.Alloc(112)
  18254. defer tls.Free(112)
  18255. var xcb_ret Txcb_query_extension_cookie_t
  18256. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18257. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18258. _ = xcb_ret
  18259. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18260. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18261. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18262. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18263. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18264. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18265. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18266. /* char name */
  18267. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18268. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18269. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18270. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18271. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req204)))
  18272. return xcb_ret
  18273. }
  18274. var _xcb_req204 = Txcb_protocol_request_t{
  18275. Fcount: uint64(4),
  18276. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18277. }
  18278. func Xxcb_query_extension_unchecked(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18279. bp := tls.Alloc(112)
  18280. defer tls.Free(112)
  18281. var xcb_ret Txcb_query_extension_cookie_t
  18282. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18283. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18284. _ = xcb_ret
  18285. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18286. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18287. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18288. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18289. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18290. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18291. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18292. /* char name */
  18293. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18294. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18295. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18296. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18297. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req205)))
  18298. return xcb_ret
  18299. }
  18300. var _xcb_req205 = Txcb_protocol_request_t{
  18301. Fcount: uint64(4),
  18302. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18303. }
  18304. func Xxcb_query_extension_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_extension_cookie_t, e uintptr) (r uintptr) {
  18305. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18306. }
  18307. func Xxcb_list_extensions_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18308. var _aux, xcb_tmp uintptr
  18309. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  18310. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  18311. xcb_tmp = _buffer
  18312. _aux = _buffer
  18313. xcb_buffer_len = uint32(0)
  18314. xcb_block_len = uint32(0)
  18315. xcb_pad = uint32(0)
  18316. xcb_align_to = uint32(0)
  18317. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18318. xcb_tmp += uintptr(xcb_block_len)
  18319. xcb_buffer_len += xcb_block_len
  18320. xcb_block_len = uint32(0)
  18321. /* names */
  18322. i = uint32(0)
  18323. for {
  18324. if !(i < uint32((*Txcb_list_extensions_reply_t)(unsafe.Pointer(_aux)).Fnames_len)) {
  18325. break
  18326. }
  18327. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  18328. xcb_block_len += xcb_tmp_len
  18329. xcb_tmp += uintptr(xcb_tmp_len)
  18330. goto _1
  18331. _1:
  18332. ;
  18333. i++
  18334. }
  18335. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18336. /* insert padding */
  18337. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18338. xcb_buffer_len += xcb_block_len + xcb_pad
  18339. if uint32(0) != xcb_pad {
  18340. xcb_tmp += uintptr(xcb_pad)
  18341. xcb_pad = uint32(0)
  18342. }
  18343. xcb_block_len = uint32(0)
  18344. return libc.Int32FromUint32(xcb_buffer_len)
  18345. }
  18346. func Xxcb_list_extensions(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18347. bp := tls.Alloc(80)
  18348. defer tls.Free(80)
  18349. var xcb_ret Txcb_list_extensions_cookie_t
  18350. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18351. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18352. _ = xcb_ret
  18353. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18354. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18355. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18356. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18357. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18358. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req206)))
  18359. return xcb_ret
  18360. }
  18361. var _xcb_req206 = Txcb_protocol_request_t{
  18362. Fcount: uint64(2),
  18363. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18364. }
  18365. func Xxcb_list_extensions_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18366. bp := tls.Alloc(80)
  18367. defer tls.Free(80)
  18368. var xcb_ret Txcb_list_extensions_cookie_t
  18369. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18370. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18371. _ = xcb_ret
  18372. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18373. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18374. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18375. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18376. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18377. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req207)))
  18378. return xcb_ret
  18379. }
  18380. var _xcb_req207 = Txcb_protocol_request_t{
  18381. Fcount: uint64(2),
  18382. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18383. }
  18384. func Xxcb_list_extensions_names_length(tls *libc.TLS, R uintptr) (r int32) {
  18385. return libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18386. }
  18387. func Xxcb_list_extensions_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  18388. var i Txcb_str_iterator_t
  18389. _ = i
  18390. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18391. i.Frem = libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18392. i.Findex = int32(int64(i.Fdata) - int64(R))
  18393. return i
  18394. }
  18395. func Xxcb_list_extensions_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_extensions_cookie_t, e uintptr) (r uintptr) {
  18396. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18397. }
  18398. func Xxcb_change_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18399. var _aux, xcb_tmp uintptr
  18400. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18401. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18402. xcb_tmp = _buffer
  18403. _aux = _buffer
  18404. xcb_buffer_len = uint32(0)
  18405. xcb_block_len = uint32(0)
  18406. xcb_pad = uint32(0)
  18407. xcb_align_to = uint32(0)
  18408. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18409. xcb_tmp += uintptr(xcb_block_len)
  18410. xcb_buffer_len += xcb_block_len
  18411. xcb_block_len = uint32(0)
  18412. /* keysyms */
  18413. 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))
  18414. xcb_tmp += uintptr(xcb_block_len)
  18415. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18416. /* insert padding */
  18417. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18418. xcb_buffer_len += xcb_block_len + xcb_pad
  18419. if uint32(0) != xcb_pad {
  18420. xcb_tmp += uintptr(xcb_pad)
  18421. xcb_pad = uint32(0)
  18422. }
  18423. xcb_block_len = uint32(0)
  18424. return libc.Int32FromUint32(xcb_buffer_len)
  18425. }
  18426. 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) {
  18427. bp := tls.Alloc(112)
  18428. defer tls.Free(112)
  18429. var xcb_ret Txcb_void_cookie_t
  18430. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18431. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18432. _ = xcb_ret
  18433. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18434. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18435. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18436. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18437. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18438. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18439. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18440. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18441. /* xcb_keysym_t keysyms */
  18442. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18443. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18444. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18445. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18446. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req208)))
  18447. return xcb_ret
  18448. }
  18449. var _xcb_req208 = Txcb_protocol_request_t{
  18450. Fcount: uint64(4),
  18451. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18452. Fisvoid: uint8(1),
  18453. }
  18454. 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) {
  18455. bp := tls.Alloc(112)
  18456. defer tls.Free(112)
  18457. var xcb_ret Txcb_void_cookie_t
  18458. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18459. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18460. _ = xcb_ret
  18461. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18462. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18463. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18464. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18465. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18466. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18467. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18468. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18469. /* xcb_keysym_t keysyms */
  18470. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18471. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18472. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18473. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18474. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req209)))
  18475. return xcb_ret
  18476. }
  18477. var _xcb_req209 = Txcb_protocol_request_t{
  18478. Fcount: uint64(4),
  18479. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18480. Fisvoid: uint8(1),
  18481. }
  18482. func Xxcb_change_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18483. return R + libc.UintptrFromInt32(1)*8
  18484. }
  18485. func Xxcb_change_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18486. 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)
  18487. }
  18488. func Xxcb_change_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18489. var i Txcb_generic_iterator_t
  18490. _ = i
  18491. 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
  18492. i.Frem = 0
  18493. i.Findex = int32(int64(i.Fdata) - int64(R))
  18494. return i
  18495. }
  18496. func Xxcb_get_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18497. var _aux, xcb_tmp uintptr
  18498. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18499. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18500. xcb_tmp = _buffer
  18501. _aux = _buffer
  18502. xcb_buffer_len = uint32(0)
  18503. xcb_block_len = uint32(0)
  18504. xcb_pad = uint32(0)
  18505. xcb_align_to = uint32(0)
  18506. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18507. xcb_tmp += uintptr(xcb_block_len)
  18508. xcb_buffer_len += xcb_block_len
  18509. xcb_block_len = uint32(0)
  18510. /* keysyms */
  18511. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(_aux)).Flength)*libc.Uint64FromInt64(4))
  18512. xcb_tmp += uintptr(xcb_block_len)
  18513. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18514. /* insert padding */
  18515. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18516. xcb_buffer_len += xcb_block_len + xcb_pad
  18517. if uint32(0) != xcb_pad {
  18518. xcb_tmp += uintptr(xcb_pad)
  18519. xcb_pad = uint32(0)
  18520. }
  18521. xcb_block_len = uint32(0)
  18522. return libc.Int32FromUint32(xcb_buffer_len)
  18523. }
  18524. 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) {
  18525. bp := tls.Alloc(80)
  18526. defer tls.Free(80)
  18527. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18528. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18529. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18530. _ = xcb_ret
  18531. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18532. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18533. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18534. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18535. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18536. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18537. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18538. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req210)))
  18539. return xcb_ret
  18540. }
  18541. var _xcb_req210 = Txcb_protocol_request_t{
  18542. Fcount: uint64(2),
  18543. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18544. }
  18545. 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) {
  18546. bp := tls.Alloc(80)
  18547. defer tls.Free(80)
  18548. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18549. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18550. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18551. _ = xcb_ret
  18552. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18553. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18554. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18555. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18556. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18557. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18558. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18559. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req211)))
  18560. return xcb_ret
  18561. }
  18562. var _xcb_req211 = Txcb_protocol_request_t{
  18563. Fcount: uint64(2),
  18564. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18565. }
  18566. func Xxcb_get_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18567. return R + libc.UintptrFromInt32(1)*32
  18568. }
  18569. func Xxcb_get_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18570. return libc.Int32FromUint32((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)
  18571. }
  18572. func Xxcb_get_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18573. var i Txcb_generic_iterator_t
  18574. _ = i
  18575. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)*4
  18576. i.Frem = 0
  18577. i.Findex = int32(int64(i.Fdata) - int64(R))
  18578. return i
  18579. }
  18580. func Xxcb_get_keyboard_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_mapping_cookie_t, e uintptr) (r uintptr) {
  18581. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18582. }
  18583. func Xxcb_change_keyboard_control_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18584. bp := tls.Alloc(16)
  18585. defer tls.Free(16)
  18586. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  18587. var xcb_out, xcb_tmp uintptr
  18588. var xcb_parts [9]Tiovec
  18589. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  18590. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  18591. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  18592. xcb_buffer_len = uint32(0)
  18593. xcb_align_to = uint32(0)
  18594. xcb_padding_offset = uint32(0)
  18595. xcb_pad = uint32(0)
  18596. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  18597. xcb_parts_idx = uint32(0)
  18598. xcb_block_len = uint32(0)
  18599. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18600. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18601. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  18602. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18603. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18604. xcb_parts_idx++
  18605. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18606. }
  18607. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18608. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18609. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  18610. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18611. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18612. xcb_parts_idx++
  18613. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18614. }
  18615. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18616. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18617. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  18618. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18619. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18620. xcb_parts_idx++
  18621. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18622. }
  18623. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18624. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18625. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  18626. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18627. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18628. xcb_parts_idx++
  18629. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18630. }
  18631. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18632. /* xcb_change_keyboard_control_value_list_t.led */
  18633. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  18634. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18635. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18636. xcb_parts_idx++
  18637. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18638. }
  18639. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18640. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18641. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  18642. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18643. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18644. xcb_parts_idx++
  18645. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18646. }
  18647. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18648. /* xcb_change_keyboard_control_value_list_t.key */
  18649. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  18650. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18651. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18652. xcb_parts_idx++
  18653. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18654. }
  18655. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18656. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18657. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  18658. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18659. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18660. xcb_parts_idx++
  18661. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18662. }
  18663. /* insert padding */
  18664. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18665. xcb_buffer_len += xcb_block_len + xcb_pad
  18666. if uint32(0) != xcb_pad {
  18667. xcb_parts[xcb_parts_idx].Fiov_base = bp
  18668. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  18669. xcb_parts_idx++
  18670. xcb_pad = uint32(0)
  18671. }
  18672. xcb_block_len = uint32(0)
  18673. xcb_padding_offset = uint32(0)
  18674. if libc.UintptrFromInt32(0) == xcb_out {
  18675. /* allocate memory */
  18676. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  18677. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  18678. }
  18679. xcb_tmp = xcb_out
  18680. i = uint32(0)
  18681. for {
  18682. if !(i < xcb_parts_idx) {
  18683. break
  18684. }
  18685. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  18686. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  18687. }
  18688. if uint64(0) != xcb_parts[i].Fiov_len {
  18689. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  18690. }
  18691. goto _1
  18692. _1:
  18693. ;
  18694. i++
  18695. }
  18696. return libc.Int32FromUint32(xcb_buffer_len)
  18697. }
  18698. func Xxcb_change_keyboard_control_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18699. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  18700. var xcb_tmp uintptr
  18701. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  18702. xcb_tmp = _buffer
  18703. xcb_buffer_len = uint32(0)
  18704. xcb_block_len = uint32(0)
  18705. xcb_pad = uint32(0)
  18706. xcb_align_to = uint32(0)
  18707. xcb_padding_offset = uint32(0)
  18708. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18709. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18710. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey_click_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18711. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18712. xcb_tmp += uintptr(4)
  18713. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18714. }
  18715. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18716. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18717. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18718. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18719. xcb_tmp += uintptr(4)
  18720. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18721. }
  18722. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18723. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18724. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_pitch = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18725. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18726. xcb_tmp += uintptr(4)
  18727. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18728. }
  18729. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18730. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18731. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_duration = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18732. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18733. xcb_tmp += uintptr(4)
  18734. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18735. }
  18736. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18737. /* xcb_change_keyboard_control_value_list_t.led */
  18738. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18739. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18740. xcb_tmp += uintptr(4)
  18741. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18742. }
  18743. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18744. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18745. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18746. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18747. xcb_tmp += uintptr(4)
  18748. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18749. }
  18750. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18751. /* xcb_change_keyboard_control_value_list_t.key */
  18752. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey = *(*Txcb_keycode32_t)(unsafe.Pointer(xcb_tmp))
  18753. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18754. xcb_tmp += uintptr(4)
  18755. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18756. }
  18757. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18758. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18759. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fauto_repeat_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18760. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18761. xcb_tmp += uintptr(4)
  18762. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18763. }
  18764. /* insert padding */
  18765. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18766. xcb_buffer_len += xcb_block_len + xcb_pad
  18767. if uint32(0) != xcb_pad {
  18768. xcb_tmp += uintptr(xcb_pad)
  18769. xcb_pad = uint32(0)
  18770. }
  18771. xcb_block_len = uint32(0)
  18772. xcb_padding_offset = uint32(0)
  18773. return libc.Int32FromUint32(xcb_buffer_len)
  18774. }
  18775. func Xxcb_change_keyboard_control_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  18776. bp := tls.Alloc(32)
  18777. defer tls.Free(32)
  18778. var _ /* _aux at bp+0 */ Txcb_change_keyboard_control_value_list_t
  18779. return Xxcb_change_keyboard_control_value_list_unpack(tls, _buffer, value_mask, bp)
  18780. }
  18781. func Xxcb_change_keyboard_control_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18782. var _aux, xcb_tmp uintptr
  18783. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18784. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18785. xcb_tmp = _buffer
  18786. _aux = _buffer
  18787. xcb_buffer_len = uint32(0)
  18788. xcb_block_len = uint32(0)
  18789. xcb_pad = uint32(0)
  18790. xcb_align_to = uint32(0)
  18791. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18792. xcb_tmp += uintptr(xcb_block_len)
  18793. xcb_buffer_len += xcb_block_len
  18794. xcb_block_len = uint32(0)
  18795. /* value_list */
  18796. 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))
  18797. xcb_tmp += uintptr(xcb_block_len)
  18798. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18799. /* insert padding */
  18800. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18801. xcb_buffer_len += xcb_block_len + xcb_pad
  18802. if uint32(0) != xcb_pad {
  18803. xcb_tmp += uintptr(xcb_pad)
  18804. xcb_pad = uint32(0)
  18805. }
  18806. xcb_block_len = uint32(0)
  18807. return libc.Int32FromUint32(xcb_buffer_len)
  18808. }
  18809. func Xxcb_change_keyboard_control_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18810. bp := tls.Alloc(96)
  18811. defer tls.Free(96)
  18812. var xcb_ret Txcb_void_cookie_t
  18813. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18814. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18815. _ = xcb_ret
  18816. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18817. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18818. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18819. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18820. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18821. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18822. /* xcb_change_keyboard_control_value_list_t value_list */
  18823. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18824. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18825. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req212)))
  18826. return xcb_ret
  18827. }
  18828. var _xcb_req212 = Txcb_protocol_request_t{
  18829. Fcount: uint64(3),
  18830. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18831. Fisvoid: uint8(1),
  18832. }
  18833. func Xxcb_change_keyboard_control(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18834. bp := tls.Alloc(96)
  18835. defer tls.Free(96)
  18836. var xcb_ret Txcb_void_cookie_t
  18837. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18838. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18839. _ = xcb_ret
  18840. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18841. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18842. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18843. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18844. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18845. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18846. /* xcb_change_keyboard_control_value_list_t value_list */
  18847. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18848. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18849. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req213)))
  18850. return xcb_ret
  18851. }
  18852. var _xcb_req213 = Txcb_protocol_request_t{
  18853. Fcount: uint64(3),
  18854. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18855. Fisvoid: uint8(1),
  18856. }
  18857. func Xxcb_change_keyboard_control_aux_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18858. bp := tls.Alloc(96)
  18859. defer tls.Free(96)
  18860. var xcb_ret Txcb_void_cookie_t
  18861. var _ /* xcb_aux0 at bp+88 */ uintptr
  18862. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18863. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18864. _ = xcb_ret
  18865. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  18866. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18867. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18868. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18869. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18870. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18871. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18872. /* xcb_change_keyboard_control_value_list_t value_list */
  18873. (*(*[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))
  18874. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  18875. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req214)))
  18876. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  18877. return xcb_ret
  18878. }
  18879. var _xcb_req214 = Txcb_protocol_request_t{
  18880. Fcount: uint64(3),
  18881. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18882. Fisvoid: uint8(1),
  18883. }
  18884. func Xxcb_change_keyboard_control_aux(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18885. bp := tls.Alloc(96)
  18886. defer tls.Free(96)
  18887. var xcb_ret Txcb_void_cookie_t
  18888. var _ /* xcb_aux0 at bp+88 */ uintptr
  18889. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18890. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18891. _ = xcb_ret
  18892. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  18893. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18894. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18895. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18896. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18897. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18898. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18899. /* xcb_change_keyboard_control_value_list_t value_list */
  18900. (*(*[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))
  18901. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  18902. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req215)))
  18903. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  18904. return xcb_ret
  18905. }
  18906. var _xcb_req215 = Txcb_protocol_request_t{
  18907. Fcount: uint64(3),
  18908. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18909. Fisvoid: uint8(1),
  18910. }
  18911. func Xxcb_change_keyboard_control_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  18912. return R + libc.UintptrFromInt32(1)*8
  18913. }
  18914. func Xxcb_get_keyboard_control(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  18915. bp := tls.Alloc(80)
  18916. defer tls.Free(80)
  18917. var xcb_ret Txcb_get_keyboard_control_cookie_t
  18918. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  18919. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18920. _ = xcb_ret
  18921. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18922. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18923. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18924. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18925. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18926. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req216)))
  18927. return xcb_ret
  18928. }
  18929. var _xcb_req216 = Txcb_protocol_request_t{
  18930. Fcount: uint64(2),
  18931. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  18932. }
  18933. func Xxcb_get_keyboard_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  18934. bp := tls.Alloc(80)
  18935. defer tls.Free(80)
  18936. var xcb_ret Txcb_get_keyboard_control_cookie_t
  18937. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  18938. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18939. _ = xcb_ret
  18940. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18941. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18942. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18943. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18944. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18945. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req217)))
  18946. return xcb_ret
  18947. }
  18948. var _xcb_req217 = Txcb_protocol_request_t{
  18949. Fcount: uint64(2),
  18950. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  18951. }
  18952. func Xxcb_get_keyboard_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_control_cookie_t, e uintptr) (r uintptr) {
  18953. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18954. }
  18955. func Xxcb_bell_checked(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  18956. bp := tls.Alloc(80)
  18957. defer tls.Free(80)
  18958. var xcb_ret Txcb_void_cookie_t
  18959. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  18960. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18961. _ = xcb_ret
  18962. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  18963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18967. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req218)))
  18968. return xcb_ret
  18969. }
  18970. var _xcb_req218 = Txcb_protocol_request_t{
  18971. Fcount: uint64(2),
  18972. Fopcode: uint8(m_XCB_BELL),
  18973. Fisvoid: uint8(1),
  18974. }
  18975. func Xxcb_bell(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  18976. bp := tls.Alloc(80)
  18977. defer tls.Free(80)
  18978. var xcb_ret Txcb_void_cookie_t
  18979. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  18980. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18981. _ = xcb_ret
  18982. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  18983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18984. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18986. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18987. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req219)))
  18988. return xcb_ret
  18989. }
  18990. var _xcb_req219 = Txcb_protocol_request_t{
  18991. Fcount: uint64(2),
  18992. Fopcode: uint8(m_XCB_BELL),
  18993. Fisvoid: uint8(1),
  18994. }
  18995. 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) {
  18996. bp := tls.Alloc(80)
  18997. defer tls.Free(80)
  18998. var xcb_ret Txcb_void_cookie_t
  18999. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19000. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19001. _ = xcb_ret
  19002. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19003. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19004. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19005. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19006. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19007. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19008. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19009. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19010. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19011. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19012. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req220)))
  19013. return xcb_ret
  19014. }
  19015. var _xcb_req220 = Txcb_protocol_request_t{
  19016. Fcount: uint64(2),
  19017. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19018. Fisvoid: uint8(1),
  19019. }
  19020. 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) {
  19021. bp := tls.Alloc(80)
  19022. defer tls.Free(80)
  19023. var xcb_ret Txcb_void_cookie_t
  19024. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19025. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19026. _ = xcb_ret
  19027. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19028. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19029. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19030. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19031. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19032. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19033. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19034. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19035. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19036. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19037. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req221)))
  19038. return xcb_ret
  19039. }
  19040. var _xcb_req221 = Txcb_protocol_request_t{
  19041. Fcount: uint64(2),
  19042. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19043. Fisvoid: uint8(1),
  19044. }
  19045. func Xxcb_get_pointer_control(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19046. bp := tls.Alloc(80)
  19047. defer tls.Free(80)
  19048. var xcb_ret Txcb_get_pointer_control_cookie_t
  19049. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19050. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19051. _ = xcb_ret
  19052. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19053. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19054. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19055. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19056. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19057. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req222)))
  19058. return xcb_ret
  19059. }
  19060. var _xcb_req222 = Txcb_protocol_request_t{
  19061. Fcount: uint64(2),
  19062. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19063. }
  19064. func Xxcb_get_pointer_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19065. bp := tls.Alloc(80)
  19066. defer tls.Free(80)
  19067. var xcb_ret Txcb_get_pointer_control_cookie_t
  19068. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19069. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19070. _ = xcb_ret
  19071. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19073. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19074. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19075. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19076. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req223)))
  19077. return xcb_ret
  19078. }
  19079. var _xcb_req223 = Txcb_protocol_request_t{
  19080. Fcount: uint64(2),
  19081. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19082. }
  19083. func Xxcb_get_pointer_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_control_cookie_t, e uintptr) (r uintptr) {
  19084. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19085. }
  19086. 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) {
  19087. bp := tls.Alloc(80)
  19088. defer tls.Free(80)
  19089. var xcb_ret Txcb_void_cookie_t
  19090. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19091. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19092. _ = xcb_ret
  19093. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19094. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19095. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19096. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19097. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19098. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19099. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19100. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19101. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19102. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req224)))
  19103. return xcb_ret
  19104. }
  19105. var _xcb_req224 = Txcb_protocol_request_t{
  19106. Fcount: uint64(2),
  19107. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19108. Fisvoid: uint8(1),
  19109. }
  19110. 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) {
  19111. bp := tls.Alloc(80)
  19112. defer tls.Free(80)
  19113. var xcb_ret Txcb_void_cookie_t
  19114. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19115. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19116. _ = xcb_ret
  19117. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19118. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19119. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19120. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19121. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19122. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19126. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req225)))
  19127. return xcb_ret
  19128. }
  19129. var _xcb_req225 = Txcb_protocol_request_t{
  19130. Fcount: uint64(2),
  19131. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19132. Fisvoid: uint8(1),
  19133. }
  19134. func Xxcb_get_screen_saver(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19135. bp := tls.Alloc(80)
  19136. defer tls.Free(80)
  19137. var xcb_ret Txcb_get_screen_saver_cookie_t
  19138. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19139. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19140. _ = xcb_ret
  19141. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19143. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19144. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19145. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19146. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req226)))
  19147. return xcb_ret
  19148. }
  19149. var _xcb_req226 = Txcb_protocol_request_t{
  19150. Fcount: uint64(2),
  19151. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19152. }
  19153. func Xxcb_get_screen_saver_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19154. bp := tls.Alloc(80)
  19155. defer tls.Free(80)
  19156. var xcb_ret Txcb_get_screen_saver_cookie_t
  19157. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19158. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19159. _ = xcb_ret
  19160. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19164. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19165. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req227)))
  19166. return xcb_ret
  19167. }
  19168. var _xcb_req227 = Txcb_protocol_request_t{
  19169. Fcount: uint64(2),
  19170. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19171. }
  19172. func Xxcb_get_screen_saver_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_screen_saver_cookie_t, e uintptr) (r uintptr) {
  19173. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19174. }
  19175. func Xxcb_change_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19176. var _aux, xcb_tmp uintptr
  19177. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19178. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19179. xcb_tmp = _buffer
  19180. _aux = _buffer
  19181. xcb_buffer_len = uint32(0)
  19182. xcb_block_len = uint32(0)
  19183. xcb_pad = uint32(0)
  19184. xcb_align_to = uint32(0)
  19185. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  19186. xcb_tmp += uintptr(xcb_block_len)
  19187. xcb_buffer_len += xcb_block_len
  19188. xcb_block_len = uint32(0)
  19189. /* address */
  19190. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_hosts_request_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19191. xcb_tmp += uintptr(xcb_block_len)
  19192. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19193. /* insert padding */
  19194. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19195. xcb_buffer_len += xcb_block_len + xcb_pad
  19196. if uint32(0) != xcb_pad {
  19197. xcb_tmp += uintptr(xcb_pad)
  19198. xcb_pad = uint32(0)
  19199. }
  19200. xcb_block_len = uint32(0)
  19201. return libc.Int32FromUint32(xcb_buffer_len)
  19202. }
  19203. 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) {
  19204. bp := tls.Alloc(112)
  19205. defer tls.Free(112)
  19206. var xcb_ret Txcb_void_cookie_t
  19207. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19208. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19209. _ = xcb_ret
  19210. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19211. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19212. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19213. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19214. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19215. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19216. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19217. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19218. /* uint8_t address */
  19219. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19220. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19221. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19222. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19223. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req228)))
  19224. return xcb_ret
  19225. }
  19226. var _xcb_req228 = Txcb_protocol_request_t{
  19227. Fcount: uint64(4),
  19228. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19229. Fisvoid: uint8(1),
  19230. }
  19231. 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) {
  19232. bp := tls.Alloc(112)
  19233. defer tls.Free(112)
  19234. var xcb_ret Txcb_void_cookie_t
  19235. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19236. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19237. _ = xcb_ret
  19238. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19239. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19240. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19241. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19242. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19243. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19244. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19245. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19246. /* uint8_t address */
  19247. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19248. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19249. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19250. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19251. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req229)))
  19252. return xcb_ret
  19253. }
  19254. var _xcb_req229 = Txcb_protocol_request_t{
  19255. Fcount: uint64(4),
  19256. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19257. Fisvoid: uint8(1),
  19258. }
  19259. func Xxcb_change_hosts_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19260. return R + libc.UintptrFromInt32(1)*8
  19261. }
  19262. func Xxcb_change_hosts_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19263. return libc.Int32FromUint16((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19264. }
  19265. func Xxcb_change_hosts_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19266. var i Txcb_generic_iterator_t
  19267. _ = i
  19268. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19269. i.Frem = 0
  19270. i.Findex = int32(int64(i.Fdata) - int64(R))
  19271. return i
  19272. }
  19273. func Xxcb_host_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19274. var _aux, xcb_tmp uintptr
  19275. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19276. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19277. xcb_tmp = _buffer
  19278. _aux = _buffer
  19279. xcb_buffer_len = uint32(0)
  19280. xcb_block_len = uint32(0)
  19281. xcb_pad = uint32(0)
  19282. xcb_align_to = uint32(0)
  19283. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19284. xcb_tmp += uintptr(xcb_block_len)
  19285. xcb_buffer_len += xcb_block_len
  19286. xcb_block_len = uint32(0)
  19287. /* address */
  19288. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_host_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19289. xcb_tmp += uintptr(xcb_block_len)
  19290. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19291. xcb_align_to = uint32(4)
  19292. /* insert padding */
  19293. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19294. xcb_buffer_len += xcb_block_len + xcb_pad
  19295. if uint32(0) != xcb_pad {
  19296. xcb_tmp += uintptr(xcb_pad)
  19297. xcb_pad = uint32(0)
  19298. }
  19299. xcb_block_len = uint32(0)
  19300. /* insert padding */
  19301. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19302. xcb_buffer_len += xcb_block_len + xcb_pad
  19303. if uint32(0) != xcb_pad {
  19304. xcb_tmp += uintptr(xcb_pad)
  19305. xcb_pad = uint32(0)
  19306. }
  19307. xcb_block_len = uint32(0)
  19308. return libc.Int32FromUint32(xcb_buffer_len)
  19309. }
  19310. func Xxcb_host_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19311. return R + libc.UintptrFromInt32(1)*4
  19312. }
  19313. func Xxcb_host_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19314. return libc.Int32FromUint16((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19315. }
  19316. func Xxcb_host_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19317. var i Txcb_generic_iterator_t
  19318. _ = i
  19319. i.Fdata = R + libc.UintptrFromInt32(1)*4 + uintptr((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19320. i.Frem = 0
  19321. i.Findex = int32(int64(i.Fdata) - int64(R))
  19322. return i
  19323. }
  19324. func Xxcb_host_next(tls *libc.TLS, i uintptr) {
  19325. var R uintptr
  19326. var child Txcb_generic_iterator_t
  19327. _, _ = R, child
  19328. R = (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata
  19329. child.Fdata = R + uintptr(Xxcb_host_sizeof(tls, R))
  19330. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata))
  19331. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Frem--
  19332. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  19333. }
  19334. func Xxcb_host_end(tls *libc.TLS, _i Txcb_host_iterator_t) (r Txcb_generic_iterator_t) {
  19335. bp := tls.Alloc(16)
  19336. defer tls.Free(16)
  19337. *(*Txcb_host_iterator_t)(unsafe.Pointer(bp)) = _i
  19338. var ret Txcb_generic_iterator_t
  19339. _ = ret
  19340. for (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  19341. Xxcb_host_next(tls, bp)
  19342. }
  19343. ret.Fdata = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Fdata
  19344. ret.Frem = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem
  19345. ret.Findex = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Findex
  19346. return ret
  19347. }
  19348. func Xxcb_list_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19349. var _aux, xcb_tmp uintptr
  19350. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  19351. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  19352. xcb_tmp = _buffer
  19353. _aux = _buffer
  19354. xcb_buffer_len = uint32(0)
  19355. xcb_block_len = uint32(0)
  19356. xcb_pad = uint32(0)
  19357. xcb_align_to = uint32(0)
  19358. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19359. xcb_tmp += uintptr(xcb_block_len)
  19360. xcb_buffer_len += xcb_block_len
  19361. xcb_block_len = uint32(0)
  19362. /* hosts */
  19363. i = uint32(0)
  19364. for {
  19365. if !(i < uint32((*Txcb_list_hosts_reply_t)(unsafe.Pointer(_aux)).Fhosts_len)) {
  19366. break
  19367. }
  19368. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_host_sizeof(tls, xcb_tmp))
  19369. xcb_block_len += xcb_tmp_len
  19370. xcb_tmp += uintptr(xcb_tmp_len)
  19371. goto _1
  19372. _1:
  19373. ;
  19374. i++
  19375. }
  19376. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  19377. /* insert padding */
  19378. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19379. xcb_buffer_len += xcb_block_len + xcb_pad
  19380. if uint32(0) != xcb_pad {
  19381. xcb_tmp += uintptr(xcb_pad)
  19382. xcb_pad = uint32(0)
  19383. }
  19384. xcb_block_len = uint32(0)
  19385. return libc.Int32FromUint32(xcb_buffer_len)
  19386. }
  19387. func Xxcb_list_hosts(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19388. bp := tls.Alloc(80)
  19389. defer tls.Free(80)
  19390. var xcb_ret Txcb_list_hosts_cookie_t
  19391. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19392. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19393. _ = xcb_ret
  19394. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19395. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19396. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19397. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19398. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19399. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req230)))
  19400. return xcb_ret
  19401. }
  19402. var _xcb_req230 = Txcb_protocol_request_t{
  19403. Fcount: uint64(2),
  19404. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19405. }
  19406. func Xxcb_list_hosts_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19407. bp := tls.Alloc(80)
  19408. defer tls.Free(80)
  19409. var xcb_ret Txcb_list_hosts_cookie_t
  19410. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19411. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19412. _ = xcb_ret
  19413. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19414. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19415. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19416. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19417. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19418. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req231)))
  19419. return xcb_ret
  19420. }
  19421. var _xcb_req231 = Txcb_protocol_request_t{
  19422. Fcount: uint64(2),
  19423. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19424. }
  19425. func Xxcb_list_hosts_hosts_length(tls *libc.TLS, R uintptr) (r int32) {
  19426. return libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19427. }
  19428. func Xxcb_list_hosts_hosts_iterator(tls *libc.TLS, R uintptr) (r Txcb_host_iterator_t) {
  19429. var i Txcb_host_iterator_t
  19430. _ = i
  19431. i.Fdata = R + libc.UintptrFromInt32(1)*32
  19432. i.Frem = libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19433. i.Findex = int32(int64(i.Fdata) - int64(R))
  19434. return i
  19435. }
  19436. func Xxcb_list_hosts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_hosts_cookie_t, e uintptr) (r uintptr) {
  19437. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19438. }
  19439. func Xxcb_set_access_control_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19440. bp := tls.Alloc(80)
  19441. defer tls.Free(80)
  19442. var xcb_ret Txcb_void_cookie_t
  19443. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19444. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19445. _ = xcb_ret
  19446. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19447. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19448. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19449. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19450. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19451. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req232)))
  19452. return xcb_ret
  19453. }
  19454. var _xcb_req232 = Txcb_protocol_request_t{
  19455. Fcount: uint64(2),
  19456. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19457. Fisvoid: uint8(1),
  19458. }
  19459. func Xxcb_set_access_control(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19460. bp := tls.Alloc(80)
  19461. defer tls.Free(80)
  19462. var xcb_ret Txcb_void_cookie_t
  19463. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19464. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19465. _ = xcb_ret
  19466. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19467. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19468. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19469. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19470. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19471. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req233)))
  19472. return xcb_ret
  19473. }
  19474. var _xcb_req233 = Txcb_protocol_request_t{
  19475. Fcount: uint64(2),
  19476. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19477. Fisvoid: uint8(1),
  19478. }
  19479. func Xxcb_set_close_down_mode_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19480. bp := tls.Alloc(80)
  19481. defer tls.Free(80)
  19482. var xcb_ret Txcb_void_cookie_t
  19483. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19484. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19485. _ = xcb_ret
  19486. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19487. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19488. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19489. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19490. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19491. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req234)))
  19492. return xcb_ret
  19493. }
  19494. var _xcb_req234 = Txcb_protocol_request_t{
  19495. Fcount: uint64(2),
  19496. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19497. Fisvoid: uint8(1),
  19498. }
  19499. func Xxcb_set_close_down_mode(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19500. bp := tls.Alloc(80)
  19501. defer tls.Free(80)
  19502. var xcb_ret Txcb_void_cookie_t
  19503. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19504. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19505. _ = xcb_ret
  19506. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19507. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19508. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19509. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19510. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19511. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req235)))
  19512. return xcb_ret
  19513. }
  19514. var _xcb_req235 = Txcb_protocol_request_t{
  19515. Fcount: uint64(2),
  19516. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19517. Fisvoid: uint8(1),
  19518. }
  19519. func Xxcb_kill_client_checked(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19520. bp := tls.Alloc(80)
  19521. defer tls.Free(80)
  19522. var xcb_ret Txcb_void_cookie_t
  19523. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19524. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19525. _ = xcb_ret
  19526. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19527. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19528. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19529. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19530. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19531. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19532. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req236)))
  19533. return xcb_ret
  19534. }
  19535. var _xcb_req236 = Txcb_protocol_request_t{
  19536. Fcount: uint64(2),
  19537. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19538. Fisvoid: uint8(1),
  19539. }
  19540. func Xxcb_kill_client(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19541. bp := tls.Alloc(80)
  19542. defer tls.Free(80)
  19543. var xcb_ret Txcb_void_cookie_t
  19544. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19545. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19546. _ = xcb_ret
  19547. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19548. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19549. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19550. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19551. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19552. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19553. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req237)))
  19554. return xcb_ret
  19555. }
  19556. var _xcb_req237 = Txcb_protocol_request_t{
  19557. Fcount: uint64(2),
  19558. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19559. Fisvoid: uint8(1),
  19560. }
  19561. func Xxcb_rotate_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19562. var _aux, xcb_tmp uintptr
  19563. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19564. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19565. xcb_tmp = _buffer
  19566. _aux = _buffer
  19567. xcb_buffer_len = uint32(0)
  19568. xcb_block_len = uint32(0)
  19569. xcb_pad = uint32(0)
  19570. xcb_align_to = uint32(0)
  19571. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  19572. xcb_tmp += uintptr(xcb_block_len)
  19573. xcb_buffer_len += xcb_block_len
  19574. xcb_block_len = uint32(0)
  19575. /* atoms */
  19576. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_rotate_properties_request_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  19577. xcb_tmp += uintptr(xcb_block_len)
  19578. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  19579. /* insert padding */
  19580. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19581. xcb_buffer_len += xcb_block_len + xcb_pad
  19582. if uint32(0) != xcb_pad {
  19583. xcb_tmp += uintptr(xcb_pad)
  19584. xcb_pad = uint32(0)
  19585. }
  19586. xcb_block_len = uint32(0)
  19587. return libc.Int32FromUint32(xcb_buffer_len)
  19588. }
  19589. 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) {
  19590. bp := tls.Alloc(112)
  19591. defer tls.Free(112)
  19592. var xcb_ret Txcb_void_cookie_t
  19593. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19594. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19595. _ = xcb_ret
  19596. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19597. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19598. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19599. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19600. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19601. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19602. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19603. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19604. /* xcb_atom_t atoms */
  19605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19606. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19607. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19608. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19609. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req238)))
  19610. return xcb_ret
  19611. }
  19612. var _xcb_req238 = Txcb_protocol_request_t{
  19613. Fcount: uint64(4),
  19614. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19615. Fisvoid: uint8(1),
  19616. }
  19617. 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) {
  19618. bp := tls.Alloc(112)
  19619. defer tls.Free(112)
  19620. var xcb_ret Txcb_void_cookie_t
  19621. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19622. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19623. _ = xcb_ret
  19624. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19625. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19626. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19627. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19628. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19629. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19630. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19631. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19632. /* xcb_atom_t atoms */
  19633. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19634. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19635. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19636. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19637. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req239)))
  19638. return xcb_ret
  19639. }
  19640. var _xcb_req239 = Txcb_protocol_request_t{
  19641. Fcount: uint64(4),
  19642. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19643. Fisvoid: uint8(1),
  19644. }
  19645. func Xxcb_rotate_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  19646. return R + libc.UintptrFromInt32(1)*12
  19647. }
  19648. func Xxcb_rotate_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  19649. return libc.Int32FromUint16((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)
  19650. }
  19651. func Xxcb_rotate_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19652. var i Txcb_generic_iterator_t
  19653. _ = i
  19654. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)*4
  19655. i.Frem = 0
  19656. i.Findex = int32(int64(i.Fdata) - int64(R))
  19657. return i
  19658. }
  19659. func Xxcb_force_screen_saver_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19660. bp := tls.Alloc(80)
  19661. defer tls.Free(80)
  19662. var xcb_ret Txcb_void_cookie_t
  19663. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19664. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19665. _ = xcb_ret
  19666. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19667. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19668. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19669. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19670. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19671. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req240)))
  19672. return xcb_ret
  19673. }
  19674. var _xcb_req240 = Txcb_protocol_request_t{
  19675. Fcount: uint64(2),
  19676. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19677. Fisvoid: uint8(1),
  19678. }
  19679. func Xxcb_force_screen_saver(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19680. bp := tls.Alloc(80)
  19681. defer tls.Free(80)
  19682. var xcb_ret Txcb_void_cookie_t
  19683. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19684. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19685. _ = xcb_ret
  19686. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19687. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19688. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19689. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19690. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19691. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req241)))
  19692. return xcb_ret
  19693. }
  19694. var _xcb_req241 = Txcb_protocol_request_t{
  19695. Fcount: uint64(2),
  19696. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19697. Fisvoid: uint8(1),
  19698. }
  19699. func Xxcb_set_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19700. var _aux, xcb_tmp uintptr
  19701. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19702. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19703. xcb_tmp = _buffer
  19704. _aux = _buffer
  19705. xcb_buffer_len = uint32(0)
  19706. xcb_block_len = uint32(0)
  19707. xcb_pad = uint32(0)
  19708. xcb_align_to = uint32(0)
  19709. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19710. xcb_tmp += uintptr(xcb_block_len)
  19711. xcb_buffer_len += xcb_block_len
  19712. xcb_block_len = uint32(0)
  19713. /* map */
  19714. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19715. xcb_tmp += uintptr(xcb_block_len)
  19716. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19717. /* insert padding */
  19718. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19719. xcb_buffer_len += xcb_block_len + xcb_pad
  19720. if uint32(0) != xcb_pad {
  19721. xcb_tmp += uintptr(xcb_pad)
  19722. xcb_pad = uint32(0)
  19723. }
  19724. xcb_block_len = uint32(0)
  19725. return libc.Int32FromUint32(xcb_buffer_len)
  19726. }
  19727. func Xxcb_set_pointer_mapping(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19728. bp := tls.Alloc(112)
  19729. defer tls.Free(112)
  19730. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19731. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19732. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19733. _ = xcb_ret
  19734. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19735. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19736. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19738. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19739. /* uint8_t map */
  19740. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19741. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19742. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19743. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19744. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req242)))
  19745. return xcb_ret
  19746. }
  19747. var _xcb_req242 = Txcb_protocol_request_t{
  19748. Fcount: uint64(4),
  19749. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19750. }
  19751. func Xxcb_set_pointer_mapping_unchecked(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19752. bp := tls.Alloc(112)
  19753. defer tls.Free(112)
  19754. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19755. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19756. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19757. _ = xcb_ret
  19758. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19759. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19760. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19761. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19762. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19763. /* uint8_t map */
  19764. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19765. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19766. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19767. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19768. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req243)))
  19769. return xcb_ret
  19770. }
  19771. var _xcb_req243 = Txcb_protocol_request_t{
  19772. Fcount: uint64(4),
  19773. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19774. }
  19775. func Xxcb_set_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19776. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19777. }
  19778. func Xxcb_get_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19779. var _aux, xcb_tmp uintptr
  19780. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19781. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19782. xcb_tmp = _buffer
  19783. _aux = _buffer
  19784. xcb_buffer_len = uint32(0)
  19785. xcb_block_len = uint32(0)
  19786. xcb_pad = uint32(0)
  19787. xcb_align_to = uint32(0)
  19788. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19789. xcb_tmp += uintptr(xcb_block_len)
  19790. xcb_buffer_len += xcb_block_len
  19791. xcb_block_len = uint32(0)
  19792. /* map */
  19793. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19794. xcb_tmp += uintptr(xcb_block_len)
  19795. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19796. /* insert padding */
  19797. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19798. xcb_buffer_len += xcb_block_len + xcb_pad
  19799. if uint32(0) != xcb_pad {
  19800. xcb_tmp += uintptr(xcb_pad)
  19801. xcb_pad = uint32(0)
  19802. }
  19803. xcb_block_len = uint32(0)
  19804. return libc.Int32FromUint32(xcb_buffer_len)
  19805. }
  19806. func Xxcb_get_pointer_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19807. bp := tls.Alloc(80)
  19808. defer tls.Free(80)
  19809. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19810. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19811. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19812. _ = xcb_ret
  19813. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19814. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19815. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19816. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19817. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19818. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req244)))
  19819. return xcb_ret
  19820. }
  19821. var _xcb_req244 = Txcb_protocol_request_t{
  19822. Fcount: uint64(2),
  19823. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19824. }
  19825. func Xxcb_get_pointer_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19826. bp := tls.Alloc(80)
  19827. defer tls.Free(80)
  19828. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19829. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19830. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19831. _ = xcb_ret
  19832. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19833. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19834. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19835. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19836. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19837. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req245)))
  19838. return xcb_ret
  19839. }
  19840. var _xcb_req245 = Txcb_protocol_request_t{
  19841. Fcount: uint64(2),
  19842. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19843. }
  19844. func Xxcb_get_pointer_mapping_map(tls *libc.TLS, R uintptr) (r uintptr) {
  19845. return R + libc.UintptrFromInt32(1)*32
  19846. }
  19847. func Xxcb_get_pointer_mapping_map_length(tls *libc.TLS, R uintptr) (r int32) {
  19848. return libc.Int32FromUint8((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  19849. }
  19850. func Xxcb_get_pointer_mapping_map_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19851. var i Txcb_generic_iterator_t
  19852. _ = i
  19853. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  19854. i.Frem = 0
  19855. i.Findex = int32(int64(i.Fdata) - int64(R))
  19856. return i
  19857. }
  19858. func Xxcb_get_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19859. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19860. }
  19861. func Xxcb_set_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19862. var _aux, xcb_tmp uintptr
  19863. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19864. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19865. xcb_tmp = _buffer
  19866. _aux = _buffer
  19867. xcb_buffer_len = uint32(0)
  19868. xcb_block_len = uint32(0)
  19869. xcb_pad = uint32(0)
  19870. xcb_align_to = uint32(0)
  19871. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19872. xcb_tmp += uintptr(xcb_block_len)
  19873. xcb_buffer_len += xcb_block_len
  19874. xcb_block_len = uint32(0)
  19875. /* keycodes */
  19876. 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))
  19877. xcb_tmp += uintptr(xcb_block_len)
  19878. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19879. /* insert padding */
  19880. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19881. xcb_buffer_len += xcb_block_len + xcb_pad
  19882. if uint32(0) != xcb_pad {
  19883. xcb_tmp += uintptr(xcb_pad)
  19884. xcb_pad = uint32(0)
  19885. }
  19886. xcb_block_len = uint32(0)
  19887. return libc.Int32FromUint32(xcb_buffer_len)
  19888. }
  19889. func Xxcb_set_modifier_mapping(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
  19890. bp := tls.Alloc(112)
  19891. defer tls.Free(112)
  19892. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  19893. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  19894. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19895. _ = xcb_ret
  19896. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  19897. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19898. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19899. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19900. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19901. /* xcb_keycode_t keycodes */
  19902. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  19903. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  19904. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19905. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19906. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req246)))
  19907. return xcb_ret
  19908. }
  19909. var _xcb_req246 = Txcb_protocol_request_t{
  19910. Fcount: uint64(4),
  19911. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  19912. }
  19913. 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) {
  19914. bp := tls.Alloc(112)
  19915. defer tls.Free(112)
  19916. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  19917. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  19918. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19919. _ = xcb_ret
  19920. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  19921. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19922. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19923. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19924. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19925. /* xcb_keycode_t keycodes */
  19926. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  19927. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  19928. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19929. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19930. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req247)))
  19931. return xcb_ret
  19932. }
  19933. var _xcb_req247 = Txcb_protocol_request_t{
  19934. Fcount: uint64(4),
  19935. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  19936. }
  19937. func Xxcb_set_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  19938. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19939. }
  19940. func Xxcb_get_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19941. var _aux, xcb_tmp uintptr
  19942. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19943. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19944. xcb_tmp = _buffer
  19945. _aux = _buffer
  19946. xcb_buffer_len = uint32(0)
  19947. xcb_block_len = uint32(0)
  19948. xcb_pad = uint32(0)
  19949. xcb_align_to = uint32(0)
  19950. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19951. xcb_tmp += uintptr(xcb_block_len)
  19952. xcb_buffer_len += xcb_block_len
  19953. xcb_block_len = uint32(0)
  19954. /* keycodes */
  19955. 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))
  19956. xcb_tmp += uintptr(xcb_block_len)
  19957. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19958. /* insert padding */
  19959. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19960. xcb_buffer_len += xcb_block_len + xcb_pad
  19961. if uint32(0) != xcb_pad {
  19962. xcb_tmp += uintptr(xcb_pad)
  19963. xcb_pad = uint32(0)
  19964. }
  19965. xcb_block_len = uint32(0)
  19966. return libc.Int32FromUint32(xcb_buffer_len)
  19967. }
  19968. func Xxcb_get_modifier_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  19969. bp := tls.Alloc(80)
  19970. defer tls.Free(80)
  19971. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  19972. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  19973. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19974. _ = xcb_ret
  19975. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19976. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19977. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19978. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19979. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19980. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req248)))
  19981. return xcb_ret
  19982. }
  19983. var _xcb_req248 = Txcb_protocol_request_t{
  19984. Fcount: uint64(2),
  19985. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  19986. }
  19987. func Xxcb_get_modifier_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  19988. bp := tls.Alloc(80)
  19989. defer tls.Free(80)
  19990. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  19991. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  19992. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19993. _ = xcb_ret
  19994. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19995. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19996. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19997. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19998. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19999. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req249)))
  20000. return xcb_ret
  20001. }
  20002. var _xcb_req249 = Txcb_protocol_request_t{
  20003. Fcount: uint64(2),
  20004. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20005. }
  20006. func Xxcb_get_modifier_mapping_keycodes(tls *libc.TLS, R uintptr) (r uintptr) {
  20007. return R + libc.UintptrFromInt32(1)*32
  20008. }
  20009. func Xxcb_get_modifier_mapping_keycodes_length(tls *libc.TLS, R uintptr) (r int32) {
  20010. return libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier) * int32(8)
  20011. }
  20012. func Xxcb_get_modifier_mapping_keycodes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20013. var i Txcb_generic_iterator_t
  20014. _ = i
  20015. 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))
  20016. i.Frem = 0
  20017. i.Findex = int32(int64(i.Fdata) - int64(R))
  20018. return i
  20019. }
  20020. func Xxcb_get_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20021. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20022. }
  20023. func Xxcb_no_operation_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20024. bp := tls.Alloc(80)
  20025. defer tls.Free(80)
  20026. var xcb_ret Txcb_void_cookie_t
  20027. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20028. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20029. _ = xcb_ret
  20030. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20031. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20032. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20033. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20034. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20035. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req250)))
  20036. return xcb_ret
  20037. }
  20038. var _xcb_req250 = Txcb_protocol_request_t{
  20039. Fcount: uint64(2),
  20040. Fopcode: uint8(m_XCB_NO_OPERATION),
  20041. Fisvoid: uint8(1),
  20042. }
  20043. func Xxcb_no_operation(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20044. bp := tls.Alloc(80)
  20045. defer tls.Free(80)
  20046. var xcb_ret Txcb_void_cookie_t
  20047. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20048. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20049. _ = xcb_ret
  20050. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20051. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20052. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20053. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20054. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20055. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req251)))
  20056. return xcb_ret
  20057. }
  20058. var _xcb_req251 = Txcb_protocol_request_t{
  20059. Fcount: uint64(2),
  20060. Fopcode: uint8(m_XCB_NO_OPERATION),
  20061. Fisvoid: uint8(1),
  20062. }
  20063. func Xxcb_big_requests_enable(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20064. bp := tls.Alloc(80)
  20065. defer tls.Free(80)
  20066. var xcb_ret Txcb_big_requests_enable_cookie_t
  20067. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20068. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20069. _ = xcb_ret
  20070. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20071. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20073. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20074. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req252)))
  20075. return xcb_ret
  20076. }
  20077. var _xcb_req252 = Txcb_protocol_request_t{
  20078. Fcount: uint64(2),
  20079. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20080. }
  20081. func Xxcb_big_requests_enable_unchecked(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20082. bp := tls.Alloc(80)
  20083. defer tls.Free(80)
  20084. var xcb_ret Txcb_big_requests_enable_cookie_t
  20085. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20086. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20087. _ = xcb_ret
  20088. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20089. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20090. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20091. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20092. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req253)))
  20093. return xcb_ret
  20094. }
  20095. var _xcb_req253 = Txcb_protocol_request_t{
  20096. Fcount: uint64(2),
  20097. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20098. }
  20099. func Xxcb_big_requests_enable_reply(tls *libc.TLS, c uintptr, cookie Txcb_big_requests_enable_cookie_t, e uintptr) (r uintptr) {
  20100. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20101. }
  20102. 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) {
  20103. bp := tls.Alloc(80)
  20104. defer tls.Free(80)
  20105. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20106. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20107. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20108. _ = xcb_ret
  20109. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20110. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20111. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20112. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20113. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20114. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20115. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req254)))
  20116. return xcb_ret
  20117. }
  20118. var _xcb_req254 = Txcb_protocol_request_t{
  20119. Fcount: uint64(2),
  20120. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20121. }
  20122. 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) {
  20123. bp := tls.Alloc(80)
  20124. defer tls.Free(80)
  20125. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20126. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20127. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20128. _ = xcb_ret
  20129. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20130. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20131. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20132. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20133. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20134. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20135. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req255)))
  20136. return xcb_ret
  20137. }
  20138. var _xcb_req255 = Txcb_protocol_request_t{
  20139. Fcount: uint64(2),
  20140. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20141. }
  20142. func Xxcb_xc_misc_get_version_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_version_cookie_t, e uintptr) (r uintptr) {
  20143. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20144. }
  20145. func Xxcb_xc_misc_get_xid_range(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20146. bp := tls.Alloc(80)
  20147. defer tls.Free(80)
  20148. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20149. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20150. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20151. _ = xcb_ret
  20152. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20153. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20154. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20156. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req256)))
  20157. return xcb_ret
  20158. }
  20159. var _xcb_req256 = Txcb_protocol_request_t{
  20160. Fcount: uint64(2),
  20161. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20162. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20163. }
  20164. func Xxcb_xc_misc_get_xid_range_unchecked(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20165. bp := tls.Alloc(80)
  20166. defer tls.Free(80)
  20167. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20168. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20169. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20170. _ = xcb_ret
  20171. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20172. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20173. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20174. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20175. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req257)))
  20176. return xcb_ret
  20177. }
  20178. var _xcb_req257 = Txcb_protocol_request_t{
  20179. Fcount: uint64(2),
  20180. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20181. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20182. }
  20183. 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) {
  20184. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20185. }
  20186. func Xxcb_xc_misc_get_xid_list_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20187. var _aux, xcb_tmp uintptr
  20188. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20189. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20190. xcb_tmp = _buffer
  20191. _aux = _buffer
  20192. xcb_buffer_len = uint32(0)
  20193. xcb_block_len = uint32(0)
  20194. xcb_pad = uint32(0)
  20195. xcb_align_to = uint32(0)
  20196. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20197. xcb_tmp += uintptr(xcb_block_len)
  20198. xcb_buffer_len += xcb_block_len
  20199. xcb_block_len = uint32(0)
  20200. /* ids */
  20201. 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))
  20202. xcb_tmp += uintptr(xcb_block_len)
  20203. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  20204. /* insert padding */
  20205. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20206. xcb_buffer_len += xcb_block_len + xcb_pad
  20207. if uint32(0) != xcb_pad {
  20208. xcb_tmp += uintptr(xcb_pad)
  20209. xcb_pad = uint32(0)
  20210. }
  20211. xcb_block_len = uint32(0)
  20212. return libc.Int32FromUint32(xcb_buffer_len)
  20213. }
  20214. func Xxcb_xc_misc_get_xid_list(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
  20215. bp := tls.Alloc(80)
  20216. defer tls.Free(80)
  20217. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20218. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20219. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20220. _ = xcb_ret
  20221. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20222. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20223. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20224. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20225. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20226. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req258)))
  20227. return xcb_ret
  20228. }
  20229. var _xcb_req258 = Txcb_protocol_request_t{
  20230. Fcount: uint64(2),
  20231. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20232. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20233. }
  20234. 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) {
  20235. bp := tls.Alloc(80)
  20236. defer tls.Free(80)
  20237. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20238. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20239. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20240. _ = xcb_ret
  20241. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20242. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20243. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20244. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20245. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20246. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req259)))
  20247. return xcb_ret
  20248. }
  20249. var _xcb_req259 = Txcb_protocol_request_t{
  20250. Fcount: uint64(2),
  20251. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20252. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20253. }
  20254. func Xxcb_xc_misc_get_xid_list_ids(tls *libc.TLS, R uintptr) (r uintptr) {
  20255. return R + libc.UintptrFromInt32(1)*32
  20256. }
  20257. func Xxcb_xc_misc_get_xid_list_ids_length(tls *libc.TLS, R uintptr) (r int32) {
  20258. return libc.Int32FromUint32((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)
  20259. }
  20260. func Xxcb_xc_misc_get_xid_list_ids_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20261. var i Txcb_generic_iterator_t
  20262. _ = i
  20263. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)*4
  20264. i.Frem = 0
  20265. i.Findex = int32(int64(i.Fdata) - int64(R))
  20266. return i
  20267. }
  20268. 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) {
  20269. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20270. }
  20271. func __ccgo_fp(f interface{}) uintptr {
  20272. type iface [2]uintptr
  20273. return (*iface)(unsafe.Pointer(&f))[1]
  20274. }
  20275. /**
  20276. * @}
  20277. */
  20278. var Xxcb_big_requests_id = Txcb_extension_t{
  20279. Fname: __ccgo_ts + 93,
  20280. }
  20281. /**
  20282. * @}
  20283. */
  20284. var Xxcb_xc_misc_id = Txcb_extension_t{
  20285. Fname: __ccgo_ts + 106,
  20286. }
  20287. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  20288. var __ccgo_ts1 = "GLX\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"