ccgo_linux_arm64.go 845 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239
  1. // Code generated for linux/arm64 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/arm64 -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libXdmcp/include/linux/arm64 -lXau -lXdmcp -o libxcb.go --package-name libxcb src/.libs/libxcb.a', DO NOT EDIT.
  2. //go:build linux && arm64
  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_SENDMSG = 1
  338. const m_HAVE_STDINT_H = 1
  339. const m_HAVE_STDIO_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_HAVE_WCHAR_H = 1
  347. const m_HOST_NAME_MAX = 255
  348. const m_INET6_ADDRSTRLEN = 46
  349. const m_INET_ADDRSTRLEN = 16
  350. const m_INT16_MAX = 0x7fff
  351. const m_INT32_MAX = 0x7fffffff
  352. const m_INT64_MAX = 0x7fffffffffffffff
  353. const m_INT8_MAX = 0x7f
  354. const m_INTMAX_MAX = "INT64_MAX"
  355. const m_INTMAX_MIN = "INT64_MIN"
  356. const m_INTPTR_MAX = "INT64_MAX"
  357. const m_INTPTR_MIN = "INT64_MIN"
  358. const m_INT_FAST16_MAX = "INT32_MAX"
  359. const m_INT_FAST16_MIN = "INT32_MIN"
  360. const m_INT_FAST32_MAX = "INT32_MAX"
  361. const m_INT_FAST32_MIN = "INT32_MIN"
  362. const m_INT_FAST64_MAX = "INT64_MAX"
  363. const m_INT_FAST64_MIN = "INT64_MIN"
  364. const m_INT_FAST8_MAX = "INT8_MAX"
  365. const m_INT_FAST8_MIN = "INT8_MIN"
  366. const m_INT_LEAST16_MAX = "INT16_MAX"
  367. const m_INT_LEAST16_MIN = "INT16_MIN"
  368. const m_INT_LEAST32_MAX = "INT32_MAX"
  369. const m_INT_LEAST32_MIN = "INT32_MIN"
  370. const m_INT_LEAST64_MAX = "INT64_MAX"
  371. const m_INT_LEAST64_MIN = "INT64_MIN"
  372. const m_INT_LEAST8_MAX = "INT8_MAX"
  373. const m_INT_LEAST8_MIN = "INT8_MIN"
  374. const m_INT_MAX = 0x7fffffff
  375. const m_IN_CLASSA_MAX = 128
  376. const m_IN_CLASSA_NET = 0xff000000
  377. const m_IN_CLASSA_NSHIFT = 24
  378. const m_IN_CLASSB_MAX = 65536
  379. const m_IN_CLASSB_NET = 0xffff0000
  380. const m_IN_CLASSB_NSHIFT = 16
  381. const m_IN_CLASSC_NET = 0xffffff00
  382. const m_IN_CLASSC_NSHIFT = 8
  383. const m_IN_LOOPBACKNET = 127
  384. const m_IOV_MAX = 1024
  385. const m_IPPORT_RESERVED = 1024
  386. const m_IPPROTO_AH = 51
  387. const m_IPPROTO_BEETPH = 94
  388. const m_IPPROTO_COMP = 108
  389. const m_IPPROTO_DCCP = 33
  390. const m_IPPROTO_DSTOPTS = 60
  391. const m_IPPROTO_EGP = 8
  392. const m_IPPROTO_ENCAP = 98
  393. const m_IPPROTO_ESP = 50
  394. const m_IPPROTO_ETHERNET = 143
  395. const m_IPPROTO_FRAGMENT = 44
  396. const m_IPPROTO_GRE = 47
  397. const m_IPPROTO_HOPOPTS = 0
  398. const m_IPPROTO_ICMP = 1
  399. const m_IPPROTO_ICMPV6 = 58
  400. const m_IPPROTO_IDP = 22
  401. const m_IPPROTO_IGMP = 2
  402. const m_IPPROTO_IP = 0
  403. const m_IPPROTO_IPIP = 4
  404. const m_IPPROTO_IPV6 = 41
  405. const m_IPPROTO_MAX = 263
  406. const m_IPPROTO_MH = 135
  407. const m_IPPROTO_MPLS = 137
  408. const m_IPPROTO_MPTCP = 262
  409. const m_IPPROTO_MTP = 92
  410. const m_IPPROTO_NONE = 59
  411. const m_IPPROTO_PIM = 103
  412. const m_IPPROTO_PUP = 12
  413. const m_IPPROTO_RAW = 255
  414. const m_IPPROTO_ROUTING = 43
  415. const m_IPPROTO_RSVP = 46
  416. const m_IPPROTO_SCTP = 132
  417. const m_IPPROTO_TCP = 6
  418. const m_IPPROTO_TP = 29
  419. const m_IPPROTO_UDP = 17
  420. const m_IPPROTO_UDPLITE = 136
  421. const m_IPV6_2292DSTOPTS = 4
  422. const m_IPV6_2292HOPLIMIT = 8
  423. const m_IPV6_2292HOPOPTS = 3
  424. const m_IPV6_2292PKTINFO = 2
  425. const m_IPV6_2292PKTOPTIONS = 6
  426. const m_IPV6_2292RTHDR = 5
  427. const m_IPV6_ADDRFORM = 1
  428. const m_IPV6_ADDR_PREFERENCES = 72
  429. const m_IPV6_ADD_MEMBERSHIP = "IPV6_JOIN_GROUP"
  430. const m_IPV6_AUTHHDR = 10
  431. const m_IPV6_AUTOFLOWLABEL = 70
  432. const m_IPV6_CHECKSUM = 7
  433. const m_IPV6_DONTFRAG = 62
  434. const m_IPV6_DROP_MEMBERSHIP = "IPV6_LEAVE_GROUP"
  435. const m_IPV6_DSTOPTS = 59
  436. const m_IPV6_FREEBIND = 78
  437. const m_IPV6_HDRINCL = 36
  438. const m_IPV6_HOPLIMIT = 52
  439. const m_IPV6_HOPOPTS = 54
  440. const m_IPV6_IPSEC_POLICY = 34
  441. const m_IPV6_JOIN_ANYCAST = 27
  442. const m_IPV6_JOIN_GROUP = 20
  443. const m_IPV6_LEAVE_ANYCAST = 28
  444. const m_IPV6_LEAVE_GROUP = 21
  445. const m_IPV6_MINHOPCOUNT = 73
  446. const m_IPV6_MTU = 24
  447. const m_IPV6_MTU_DISCOVER = 23
  448. const m_IPV6_MULTICAST_ALL = 29
  449. const m_IPV6_MULTICAST_HOPS = 18
  450. const m_IPV6_MULTICAST_IF = 17
  451. const m_IPV6_MULTICAST_LOOP = 19
  452. const m_IPV6_NEXTHOP = 9
  453. const m_IPV6_ORIGDSTADDR = 74
  454. const m_IPV6_PATHMTU = 61
  455. const m_IPV6_PKTINFO = 50
  456. const m_IPV6_PMTUDISC_DO = 2
  457. const m_IPV6_PMTUDISC_DONT = 0
  458. const m_IPV6_PMTUDISC_INTERFACE = 4
  459. const m_IPV6_PMTUDISC_OMIT = 5
  460. const m_IPV6_PMTUDISC_PROBE = 3
  461. const m_IPV6_PMTUDISC_WANT = 1
  462. const m_IPV6_PREFER_SRC_CGA = 0x0008
  463. const m_IPV6_PREFER_SRC_COA = 0x0004
  464. const m_IPV6_PREFER_SRC_HOME = 0x0400
  465. const m_IPV6_PREFER_SRC_NONCGA = 0x0800
  466. const m_IPV6_PREFER_SRC_PUBLIC = 0x0002
  467. const m_IPV6_PREFER_SRC_PUBTMP_DEFAULT = 0x0100
  468. const m_IPV6_PREFER_SRC_TMP = 0x0001
  469. const m_IPV6_RECVDSTOPTS = 58
  470. const m_IPV6_RECVERR = 25
  471. const m_IPV6_RECVFRAGSIZE = 77
  472. const m_IPV6_RECVHOPLIMIT = 51
  473. const m_IPV6_RECVHOPOPTS = 53
  474. const m_IPV6_RECVORIGDSTADDR = "IPV6_ORIGDSTADDR"
  475. const m_IPV6_RECVPATHMTU = 60
  476. const m_IPV6_RECVPKTINFO = 49
  477. const m_IPV6_RECVRTHDR = 56
  478. const m_IPV6_RECVTCLASS = 66
  479. const m_IPV6_ROUTER_ALERT = 22
  480. const m_IPV6_ROUTER_ALERT_ISOLATE = 30
  481. const m_IPV6_RTHDR = 57
  482. const m_IPV6_RTHDRDSTOPTS = 55
  483. const m_IPV6_RTHDR_LOOSE = 0
  484. const m_IPV6_RTHDR_STRICT = 1
  485. const m_IPV6_RTHDR_TYPE_0 = 0
  486. const m_IPV6_RXDSTOPTS = "IPV6_DSTOPTS"
  487. const m_IPV6_RXHOPOPTS = "IPV6_HOPOPTS"
  488. const m_IPV6_TCLASS = 67
  489. const m_IPV6_TRANSPARENT = 75
  490. const m_IPV6_UNICAST_HOPS = 16
  491. const m_IPV6_UNICAST_IF = 76
  492. const m_IPV6_V6ONLY = 26
  493. const m_IPV6_XFRM_POLICY = 35
  494. const m_IP_ADD_MEMBERSHIP = 35
  495. const m_IP_ADD_SOURCE_MEMBERSHIP = 39
  496. const m_IP_BIND_ADDRESS_NO_PORT = 24
  497. const m_IP_BLOCK_SOURCE = 38
  498. const m_IP_CHECKSUM = 23
  499. const m_IP_DEFAULT_MULTICAST_LOOP = 1
  500. const m_IP_DEFAULT_MULTICAST_TTL = 1
  501. const m_IP_DROP_MEMBERSHIP = 36
  502. const m_IP_DROP_SOURCE_MEMBERSHIP = 40
  503. const m_IP_FREEBIND = 15
  504. const m_IP_HDRINCL = 3
  505. const m_IP_IPSEC_POLICY = 16
  506. const m_IP_MAX_MEMBERSHIPS = 20
  507. const m_IP_MINTTL = 21
  508. const m_IP_MSFILTER = 41
  509. const m_IP_MTU = 14
  510. const m_IP_MTU_DISCOVER = 10
  511. const m_IP_MULTICAST_ALL = 49
  512. const m_IP_MULTICAST_IF = 32
  513. const m_IP_MULTICAST_LOOP = 34
  514. const m_IP_MULTICAST_TTL = 33
  515. const m_IP_NODEFRAG = 22
  516. const m_IP_OPTIONS = 4
  517. const m_IP_ORIGDSTADDR = 20
  518. const m_IP_PASSSEC = 18
  519. const m_IP_PKTINFO = 8
  520. const m_IP_PKTOPTIONS = 9
  521. const m_IP_PMTUDISC = 10
  522. const m_IP_PMTUDISC_DO = 2
  523. const m_IP_PMTUDISC_DONT = 0
  524. const m_IP_PMTUDISC_INTERFACE = 4
  525. const m_IP_PMTUDISC_OMIT = 5
  526. const m_IP_PMTUDISC_PROBE = 3
  527. const m_IP_PMTUDISC_WANT = 1
  528. const m_IP_RECVERR = 11
  529. const m_IP_RECVERR_RFC4884 = 26
  530. const m_IP_RECVFRAGSIZE = 25
  531. const m_IP_RECVOPTS = 6
  532. const m_IP_RECVORIGDSTADDR = "IP_ORIGDSTADDR"
  533. const m_IP_RECVRETOPTS = "IP_RETOPTS"
  534. const m_IP_RECVTOS = 13
  535. const m_IP_RECVTTL = 12
  536. const m_IP_RETOPTS = 7
  537. const m_IP_ROUTER_ALERT = 5
  538. const m_IP_TOS = 1
  539. const m_IP_TRANSPARENT = 19
  540. const m_IP_TTL = 2
  541. const m_IP_UNBLOCK_SOURCE = 37
  542. const m_IP_UNICAST_IF = 50
  543. const m_IP_XFRM_POLICY = 17
  544. const m_LINE_MAX = 4096
  545. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  546. const m_LLONG_MAX = 0x7fffffffffffffff
  547. const m_LOGIN_NAME_MAX = 256
  548. const m_LONG_BIT = 64
  549. const m_LONG_MAX = "__LONG_MAX"
  550. const m_LT_OBJDIR = ".libs/"
  551. const m_L_INCR = 1
  552. const m_L_SET = 0
  553. const m_L_XTND = 2
  554. const m_L_ctermid = 20
  555. const m_L_cuserid = 20
  556. const m_L_tmpnam = 20
  557. const m_MAX_HANDLE_SZ = 128
  558. const m_MB_LEN_MAX = 4
  559. const m_MCAST_BLOCK_SOURCE = 43
  560. const m_MCAST_EXCLUDE = 0
  561. const m_MCAST_INCLUDE = 1
  562. const m_MCAST_JOIN_GROUP = 42
  563. const m_MCAST_JOIN_SOURCE_GROUP = 46
  564. const m_MCAST_LEAVE_GROUP = 45
  565. const m_MCAST_LEAVE_SOURCE_GROUP = 47
  566. const m_MCAST_MSFILTER = 48
  567. const m_MCAST_UNBLOCK_SOURCE = 44
  568. const m_MQ_PRIO_MAX = 32768
  569. const m_MSG_BATCH = 0x40000
  570. const m_MSG_CMSG_CLOEXEC = 0x40000000
  571. const m_MSG_CONFIRM = 0x0800
  572. const m_MSG_CTRUNC = 0x0008
  573. const m_MSG_DONTROUTE = 0x0004
  574. const m_MSG_DONTWAIT = 0x0040
  575. const m_MSG_EOR = 0x0080
  576. const m_MSG_ERRQUEUE = 0x2000
  577. const m_MSG_FASTOPEN = 0x20000000
  578. const m_MSG_FIN = 0x0200
  579. const m_MSG_MORE = 0x8000
  580. const m_MSG_NOSIGNAL = 0x4000
  581. const m_MSG_OOB = 0x0001
  582. const m_MSG_PEEK = 0x0002
  583. const m_MSG_PROXY = 0x0010
  584. const m_MSG_RST = 0x1000
  585. const m_MSG_SYN = 0x0400
  586. const m_MSG_TRUNC = 0x0020
  587. const m_MSG_WAITALL = 0x0100
  588. const m_MSG_WAITFORONE = 0x10000
  589. const m_MSG_ZEROCOPY = 0x4000000
  590. const m_NAME_MAX = 255
  591. const m_NDEBUG = 1
  592. const m_NGROUPS_MAX = 32
  593. const m_NL_ARGMAX = 9
  594. const m_NL_LANGMAX = 32
  595. const m_NL_MSGMAX = 32767
  596. const m_NL_NMAX = 16
  597. const m_NL_SETMAX = 255
  598. const m_NL_TEXTMAX = 2048
  599. const m_NZERO = 20
  600. const m_O_APPEND = 02000
  601. const m_O_ASYNC = 020000
  602. const m_O_CLOEXEC = 02000000
  603. const m_O_CREAT = 0100
  604. const m_O_DIRECT = 0200000
  605. const m_O_DIRECTORY = 040000
  606. const m_O_DSYNC = 010000
  607. const m_O_EXCL = 0200
  608. const m_O_EXEC = "O_PATH"
  609. const m_O_LARGEFILE = 0400000
  610. const m_O_NDELAY = "O_NONBLOCK"
  611. const m_O_NOATIME = 01000000
  612. const m_O_NOCTTY = 0400
  613. const m_O_NOFOLLOW = 0100000
  614. const m_O_NONBLOCK = 2048
  615. const m_O_PATH = 010000000
  616. const m_O_RDONLY = 00
  617. const m_O_RDWR = 02
  618. const m_O_RSYNC = 04010000
  619. const m_O_SEARCH = "O_PATH"
  620. const m_O_SYNC = 04010000
  621. const m_O_TMPFILE = 020040000
  622. const m_O_TRUNC = 01000
  623. const m_O_TTY_INIT = 0
  624. const m_O_WRONLY = 01
  625. const m_PACKAGE = "libxcb"
  626. const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxcb/issues"
  627. const m_PACKAGE_NAME = "libxcb"
  628. const m_PACKAGE_STRING = "libxcb 1.15"
  629. const m_PACKAGE_TARNAME = "libxcb"
  630. const m_PACKAGE_URL = ""
  631. const m_PACKAGE_VERSION = "1.15"
  632. const m_PACKAGE_VERSION_MAJOR = 1
  633. const m_PACKAGE_VERSION_MINOR = 15
  634. const m_PACKAGE_VERSION_PATCHLEVEL = 0
  635. const m_PATH_MAX = 4096
  636. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  637. const m_PF_ALG = 38
  638. const m_PF_APPLETALK = 5
  639. const m_PF_ASH = 18
  640. const m_PF_ATMPVC = 8
  641. const m_PF_ATMSVC = 20
  642. const m_PF_AX25 = 3
  643. const m_PF_BLUETOOTH = 31
  644. const m_PF_BRIDGE = 7
  645. const m_PF_CAIF = 37
  646. const m_PF_CAN = 29
  647. const m_PF_DECnet = 12
  648. const m_PF_ECONET = 19
  649. const m_PF_FILE = "PF_LOCAL"
  650. const m_PF_IB = 27
  651. const m_PF_IEEE802154 = 36
  652. const m_PF_INET = 2
  653. const m_PF_INET6 = 10
  654. const m_PF_IPX = 4
  655. const m_PF_IRDA = 23
  656. const m_PF_ISDN = 34
  657. const m_PF_IUCV = 32
  658. const m_PF_KCM = 41
  659. const m_PF_KEY = 15
  660. const m_PF_LLC = 26
  661. const m_PF_LOCAL = 1
  662. const m_PF_MAX = 45
  663. const m_PF_MPLS = 28
  664. const m_PF_NETBEUI = 13
  665. const m_PF_NETLINK = 16
  666. const m_PF_NETROM = 6
  667. const m_PF_NFC = 39
  668. const m_PF_PACKET = 17
  669. const m_PF_PHONET = 35
  670. const m_PF_PPPOX = 24
  671. const m_PF_QIPCRTR = 42
  672. const m_PF_RDS = 21
  673. const m_PF_ROSE = 11
  674. const m_PF_ROUTE = "PF_NETLINK"
  675. const m_PF_RXRPC = 33
  676. const m_PF_SECURITY = 14
  677. const m_PF_SMC = 43
  678. const m_PF_SNA = 22
  679. const m_PF_TIPC = 30
  680. const m_PF_UNIX = "PF_LOCAL"
  681. const m_PF_UNSPEC = 0
  682. const m_PF_VSOCK = 40
  683. const m_PF_WANPIPE = 25
  684. const m_PF_X25 = 9
  685. const m_PF_XDP = 44
  686. const m_PIPE_BUF = 4096
  687. const m_POLLERR = 0x008
  688. const m_POLLHUP = 0x010
  689. const m_POLLIN = 1
  690. const m_POLLMSG = 0x400
  691. const m_POLLNVAL = 0x020
  692. const m_POLLOUT = 4
  693. const m_POLLPRI = 0x002
  694. const m_POLLRDBAND = 0x080
  695. const m_POLLRDHUP = 0x2000
  696. const m_POLLRDNORM = 0x040
  697. const m_POLLWRBAND = 0x200
  698. const m_POLLWRNORM = 0x100
  699. const m_POSIX_CLOSE_RESTART = 0
  700. const m_POSIX_FADV_DONTNEED = 4
  701. const m_POSIX_FADV_NOREUSE = 5
  702. const m_POSIX_FADV_NORMAL = 0
  703. const m_POSIX_FADV_RANDOM = 1
  704. const m_POSIX_FADV_SEQUENTIAL = 2
  705. const m_POSIX_FADV_WILLNEED = 3
  706. const m_PRIX16 = "X"
  707. const m_PRIX32 = "X"
  708. const m_PRIX8 = "X"
  709. const m_PRIXFAST16 = "X"
  710. const m_PRIXFAST32 = "X"
  711. const m_PRIXFAST8 = "X"
  712. const m_PRIXLEAST16 = "X"
  713. const m_PRIXLEAST32 = "X"
  714. const m_PRIXLEAST8 = "X"
  715. const m_PRId16 = "d"
  716. const m_PRId32 = "d"
  717. const m_PRId8 = "d"
  718. const m_PRIdFAST16 = "d"
  719. const m_PRIdFAST32 = "d"
  720. const m_PRIdFAST8 = "d"
  721. const m_PRIdLEAST16 = "d"
  722. const m_PRIdLEAST32 = "d"
  723. const m_PRIdLEAST8 = "d"
  724. const m_PRIi16 = "i"
  725. const m_PRIi32 = "i"
  726. const m_PRIi8 = "i"
  727. const m_PRIiFAST16 = "i"
  728. const m_PRIiFAST32 = "i"
  729. const m_PRIiFAST8 = "i"
  730. const m_PRIiLEAST16 = "i"
  731. const m_PRIiLEAST32 = "i"
  732. const m_PRIiLEAST8 = "i"
  733. const m_PRIo16 = "o"
  734. const m_PRIo32 = "o"
  735. const m_PRIo8 = "o"
  736. const m_PRIoFAST16 = "o"
  737. const m_PRIoFAST32 = "o"
  738. const m_PRIoFAST8 = "o"
  739. const m_PRIoLEAST16 = "o"
  740. const m_PRIoLEAST32 = "o"
  741. const m_PRIoLEAST8 = "o"
  742. const m_PRIu16 = "u"
  743. const m_PRIu32 = "u"
  744. const m_PRIu8 = "u"
  745. const m_PRIuFAST16 = "u"
  746. const m_PRIuFAST32 = "u"
  747. const m_PRIuFAST8 = "u"
  748. const m_PRIuLEAST16 = "u"
  749. const m_PRIuLEAST32 = "u"
  750. const m_PRIuLEAST8 = "u"
  751. const m_PRIx16 = "x"
  752. const m_PRIx32 = "x"
  753. const m_PRIx8 = "x"
  754. const m_PRIxFAST16 = "x"
  755. const m_PRIxFAST32 = "x"
  756. const m_PRIxFAST8 = "x"
  757. const m_PRIxLEAST16 = "x"
  758. const m_PRIxLEAST32 = "x"
  759. const m_PRIxLEAST8 = "x"
  760. const m_PTHREAD_CANCEL_ASYNCHRONOUS = 1
  761. const m_PTHREAD_CANCEL_DEFERRED = 0
  762. const m_PTHREAD_CANCEL_DISABLE = 1
  763. const m_PTHREAD_CANCEL_ENABLE = 0
  764. const m_PTHREAD_CANCEL_MASKED = 2
  765. const m_PTHREAD_CREATE_DETACHED = 1
  766. const m_PTHREAD_CREATE_JOINABLE = 0
  767. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  768. const m_PTHREAD_EXPLICIT_SCHED = 1
  769. const m_PTHREAD_INHERIT_SCHED = 0
  770. const m_PTHREAD_KEYS_MAX = 128
  771. const m_PTHREAD_MUTEX_DEFAULT = 0
  772. const m_PTHREAD_MUTEX_ERRORCHECK = 2
  773. const m_PTHREAD_MUTEX_NORMAL = 0
  774. const m_PTHREAD_MUTEX_RECURSIVE = 1
  775. const m_PTHREAD_MUTEX_ROBUST = 1
  776. const m_PTHREAD_MUTEX_STALLED = 0
  777. const m_PTHREAD_ONCE_INIT = 0
  778. const m_PTHREAD_PRIO_INHERIT = 1
  779. const m_PTHREAD_PRIO_NONE = 0
  780. const m_PTHREAD_PRIO_PROTECT = 2
  781. const m_PTHREAD_PROCESS_PRIVATE = 0
  782. const m_PTHREAD_PROCESS_SHARED = 1
  783. const m_PTHREAD_SCOPE_PROCESS = 1
  784. const m_PTHREAD_SCOPE_SYSTEM = 0
  785. const m_PTHREAD_STACK_MIN = 2048
  786. const m_PTRDIFF_MAX = "INT64_MAX"
  787. const m_PTRDIFF_MIN = "INT64_MIN"
  788. const m_P_tmpdir = "/tmp"
  789. const m_RAND_MAX = 0x7fffffff
  790. const m_RE_DUP_MAX = 255
  791. const m_RWF_APPEND = 0x00000010
  792. const m_RWF_DSYNC = 0x00000002
  793. const m_RWF_HIPRI = 0x00000001
  794. const m_RWF_NOWAIT = 0x00000008
  795. const m_RWF_SYNC = 0x00000004
  796. const m_RWF_WRITE_LIFE_NOT_SET = 0
  797. const m_RWH_WRITE_LIFE_EXTREME = 5
  798. const m_RWH_WRITE_LIFE_LONG = 4
  799. const m_RWH_WRITE_LIFE_MEDIUM = 3
  800. const m_RWH_WRITE_LIFE_NONE = 1
  801. const m_RWH_WRITE_LIFE_SHORT = 2
  802. const m_R_OK = 4
  803. const m_SCHAR_MAX = 127
  804. const m_SCHED_BATCH = 3
  805. const m_SCHED_DEADLINE = 6
  806. const m_SCHED_FIFO = 1
  807. const m_SCHED_IDLE = 5
  808. const m_SCHED_OTHER = 0
  809. const m_SCHED_RESET_ON_FORK = 0x40000000
  810. const m_SCHED_RR = 2
  811. const m_SCM_CREDENTIALS = 0x02
  812. const m_SCM_RIGHTS = 1
  813. const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
  814. const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
  815. const m_SCM_TIMESTAMPING_OPT_STATS = 54
  816. const m_SCM_TIMESTAMPING_PKTINFO = 58
  817. const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
  818. const m_SCM_TXTIME = "SO_TXTIME"
  819. const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
  820. const m_SCNd16 = "hd"
  821. const m_SCNd32 = "d"
  822. const m_SCNd8 = "hhd"
  823. const m_SCNdFAST16 = "d"
  824. const m_SCNdFAST32 = "d"
  825. const m_SCNdFAST8 = "hhd"
  826. const m_SCNdLEAST16 = "hd"
  827. const m_SCNdLEAST32 = "d"
  828. const m_SCNdLEAST8 = "hhd"
  829. const m_SCNi16 = "hi"
  830. const m_SCNi32 = "i"
  831. const m_SCNi8 = "hhi"
  832. const m_SCNiFAST16 = "i"
  833. const m_SCNiFAST32 = "i"
  834. const m_SCNiFAST8 = "hhi"
  835. const m_SCNiLEAST16 = "hi"
  836. const m_SCNiLEAST32 = "i"
  837. const m_SCNiLEAST8 = "hhi"
  838. const m_SCNo16 = "ho"
  839. const m_SCNo32 = "o"
  840. const m_SCNo8 = "hho"
  841. const m_SCNoFAST16 = "o"
  842. const m_SCNoFAST32 = "o"
  843. const m_SCNoFAST8 = "hho"
  844. const m_SCNoLEAST16 = "ho"
  845. const m_SCNoLEAST32 = "o"
  846. const m_SCNoLEAST8 = "hho"
  847. const m_SCNu16 = "hu"
  848. const m_SCNu32 = "u"
  849. const m_SCNu8 = "hhu"
  850. const m_SCNuFAST16 = "u"
  851. const m_SCNuFAST32 = "u"
  852. const m_SCNuFAST8 = "hhu"
  853. const m_SCNuLEAST16 = "hu"
  854. const m_SCNuLEAST32 = "u"
  855. const m_SCNuLEAST8 = "hhu"
  856. const m_SCNx16 = "hx"
  857. const m_SCNx32 = "x"
  858. const m_SCNx8 = "hhx"
  859. const m_SCNxFAST16 = "x"
  860. const m_SCNxFAST32 = "x"
  861. const m_SCNxFAST8 = "hhx"
  862. const m_SCNxLEAST16 = "hx"
  863. const m_SCNxLEAST32 = "x"
  864. const m_SCNxLEAST8 = "hhx"
  865. const m_SEEK_DATA = 3
  866. const m_SEEK_HOLE = 4
  867. const m_SEM_NSEMS_MAX = 256
  868. const m_SEM_VALUE_MAX = 0x7fffffff
  869. const m_SHRT_MAX = 0x7fff
  870. const m_SHUT_RD = 0
  871. const m_SHUT_RDWR = 2
  872. const m_SHUT_WR = 1
  873. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  874. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  875. const m_SIZE_MAX = "UINT64_MAX"
  876. const m_SOCK_CLOEXEC = 02000000
  877. const m_SOCK_DCCP = 6
  878. const m_SOCK_DGRAM = 2
  879. const m_SOCK_NONBLOCK = 04000
  880. const m_SOCK_PACKET = 10
  881. const m_SOCK_RAW = 3
  882. const m_SOCK_RDM = 4
  883. const m_SOCK_SEQPACKET = 5
  884. const m_SOCK_STREAM = 1
  885. const m_SOL_AAL = 265
  886. const m_SOL_ALG = 279
  887. const m_SOL_ATM = 264
  888. const m_SOL_BLUETOOTH = 274
  889. const m_SOL_CAIF = 278
  890. const m_SOL_DCCP = 269
  891. const m_SOL_DECNET = 261
  892. const m_SOL_ICMPV6 = 58
  893. const m_SOL_IP = 0
  894. const m_SOL_IPV6 = 41
  895. const m_SOL_IRDA = 266
  896. const m_SOL_IUCV = 277
  897. const m_SOL_KCM = 281
  898. const m_SOL_LLC = 268
  899. const m_SOL_NETBEUI = 267
  900. const m_SOL_NETLINK = 270
  901. const m_SOL_NFC = 280
  902. const m_SOL_PACKET = 263
  903. const m_SOL_PNPIPE = 275
  904. const m_SOL_PPPOL2TP = 273
  905. const m_SOL_RAW = 255
  906. const m_SOL_RDS = 276
  907. const m_SOL_RXRPC = 272
  908. const m_SOL_SOCKET = 1
  909. const m_SOL_TIPC = 271
  910. const m_SOL_TLS = 282
  911. const m_SOL_X25 = 262
  912. const m_SOL_XDP = 283
  913. const m_SOMAXCONN = 128
  914. const m_SO_ACCEPTCONN = 30
  915. const m_SO_ATTACH_BPF = 50
  916. const m_SO_ATTACH_FILTER = 26
  917. const m_SO_ATTACH_REUSEPORT_CBPF = 51
  918. const m_SO_ATTACH_REUSEPORT_EBPF = 52
  919. const m_SO_BINDTODEVICE = 25
  920. const m_SO_BINDTOIFINDEX = 62
  921. const m_SO_BPF_EXTENSIONS = 48
  922. const m_SO_BROADCAST = 6
  923. const m_SO_BSDCOMPAT = 14
  924. const m_SO_BUSY_POLL = 46
  925. const m_SO_BUSY_POLL_BUDGET = 70
  926. const m_SO_CNX_ADVICE = 53
  927. const m_SO_COOKIE = 57
  928. const m_SO_DEBUG = 1
  929. const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
  930. const m_SO_DETACH_FILTER = 27
  931. const m_SO_DETACH_REUSEPORT_BPF = 68
  932. const m_SO_DOMAIN = 39
  933. const m_SO_DONTROUTE = 5
  934. const m_SO_ERROR = 4
  935. const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
  936. const m_SO_INCOMING_CPU = 49
  937. const m_SO_INCOMING_NAPI_ID = 56
  938. const m_SO_KEEPALIVE = 9
  939. const m_SO_LINGER = 13
  940. const m_SO_LOCK_FILTER = 44
  941. const m_SO_MARK = 36
  942. const m_SO_MAX_PACING_RATE = 47
  943. const m_SO_MEMINFO = 55
  944. const m_SO_NOFCS = 43
  945. const m_SO_NO_CHECK = 11
  946. const m_SO_OOBINLINE = 10
  947. const m_SO_PASSCRED = 16
  948. const m_SO_PASSSEC = 34
  949. const m_SO_PEEK_OFF = 42
  950. const m_SO_PEERCRED = 17
  951. const m_SO_PEERGROUPS = 59
  952. const m_SO_PEERNAME = 28
  953. const m_SO_PEERSEC = 31
  954. const m_SO_PREFER_BUSY_POLL = 69
  955. const m_SO_PRIORITY = 12
  956. const m_SO_PROTOCOL = 38
  957. const m_SO_RCVBUF = 8
  958. const m_SO_RCVBUFFORCE = 33
  959. const m_SO_RCVLOWAT = 18
  960. const m_SO_RCVTIMEO = 20
  961. const m_SO_REUSEADDR = 2
  962. const m_SO_REUSEPORT = 15
  963. const m_SO_RXQ_OVFL = 40
  964. const m_SO_SECURITY_AUTHENTICATION = 22
  965. const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
  966. const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
  967. const m_SO_SELECT_ERR_QUEUE = 45
  968. const m_SO_SNDBUF = 7
  969. const m_SO_SNDBUFFORCE = 32
  970. const m_SO_SNDLOWAT = 19
  971. const m_SO_SNDTIMEO = 21
  972. const m_SO_TIMESTAMP = 29
  973. const m_SO_TIMESTAMPING = 37
  974. const m_SO_TIMESTAMPNS = 35
  975. const m_SO_TXTIME = 61
  976. const m_SO_TYPE = 3
  977. const m_SO_WIFI_STATUS = 41
  978. const m_SO_ZEROCOPY = 60
  979. const m_SPLICE_F_GIFT = 8
  980. const m_SPLICE_F_MORE = 4
  981. const m_SPLICE_F_MOVE = 1
  982. const m_SPLICE_F_NONBLOCK = 2
  983. const m_SSIZE_MAX = "LONG_MAX"
  984. const m_STDC_HEADERS = 1
  985. const m_STDERR_FILENO = 2
  986. const m_STDIN_FILENO = 0
  987. const m_STDOUT_FILENO = 1
  988. const m_SYMLOOP_MAX = 40
  989. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  990. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  991. const m_SYNC_FILE_RANGE_WRITE = 2
  992. const m_S_IRGRP = 0040
  993. const m_S_IROTH = 0004
  994. const m_S_IRUSR = 0400
  995. const m_S_IRWXG = 0070
  996. const m_S_IRWXO = 0007
  997. const m_S_IRWXU = 0700
  998. const m_S_ISGID = 02000
  999. const m_S_ISUID = 04000
  1000. const m_S_ISVTX = 01000
  1001. const m_S_IWGRP = 0020
  1002. const m_S_IWOTH = 0002
  1003. const m_S_IWUSR = 0200
  1004. const m_S_IXGRP = 0010
  1005. const m_S_IXOTH = 0001
  1006. const m_S_IXUSR = 0100
  1007. const m_TIMER_ABSTIME = 1
  1008. const m_TIME_UTC = 1
  1009. const m_TMP_MAX = 10000
  1010. const m_TTY_NAME_MAX = 32
  1011. const m_TZNAME_MAX = 6
  1012. const m_UCHAR_MAX = 255
  1013. const m_UINT16_MAX = 0xffff
  1014. const m_UINT32_MAX = "0xffffffffu"
  1015. const m_UINT64_MAX = "0xffffffffffffffffu"
  1016. const m_UINT8_MAX = 0xff
  1017. const m_UINTMAX_MAX = "UINT64_MAX"
  1018. const m_UINTPTR_MAX = "UINT64_MAX"
  1019. const m_UINT_FAST16_MAX = "UINT32_MAX"
  1020. const m_UINT_FAST32_MAX = "UINT32_MAX"
  1021. const m_UINT_FAST64_MAX = "UINT64_MAX"
  1022. const m_UINT_FAST8_MAX = "UINT8_MAX"
  1023. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  1024. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  1025. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  1026. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  1027. const m_UINT_MAX = 0xffffffff
  1028. const m_UIO_MAXIOV = 1024
  1029. const m_USE_POLL = 1
  1030. const m_USHRT_MAX = 0xffff
  1031. const m_VERSION = "1.15"
  1032. const m_WINT_MAX = "UINT32_MAX"
  1033. const m_WINT_MIN = 0
  1034. const m_WNOHANG = 1
  1035. const m_WORD_BIT = 32
  1036. const m_WUNTRACED = 2
  1037. const m_W_OK = 2
  1038. const m_XCB_ACCESS = 10
  1039. const m_XCB_ALLOC = 11
  1040. const m_XCB_ALLOC_COLOR = 84
  1041. const m_XCB_ALLOC_COLOR_CELLS = 86
  1042. const m_XCB_ALLOC_COLOR_PLANES = 87
  1043. const m_XCB_ALLOC_NAMED_COLOR = 85
  1044. const m_XCB_ALLOW_EVENTS = 35
  1045. const m_XCB_ATOM = 5
  1046. const m_XCB_BELL = 104
  1047. const m_XCB_BIGREQUESTS_MAJOR_VERSION = 0
  1048. const m_XCB_BIGREQUESTS_MINOR_VERSION = 0
  1049. const m_XCB_BIG_REQUESTS_ENABLE = 0
  1050. const m_XCB_BUTTON_PRESS = 4
  1051. const m_XCB_BUTTON_RELEASE = 5
  1052. const m_XCB_CHANGE_ACTIVE_POINTER_GRAB = 30
  1053. const m_XCB_CHANGE_GC = 56
  1054. const m_XCB_CHANGE_HOSTS = 109
  1055. const m_XCB_CHANGE_KEYBOARD_CONTROL = 102
  1056. const m_XCB_CHANGE_KEYBOARD_MAPPING = 100
  1057. const m_XCB_CHANGE_POINTER_CONTROL = 105
  1058. const m_XCB_CHANGE_PROPERTY = 18
  1059. const m_XCB_CHANGE_SAVE_SET = 6
  1060. const m_XCB_CHANGE_WINDOW_ATTRIBUTES = 2
  1061. const m_XCB_CIRCULATE_NOTIFY = 26
  1062. const m_XCB_CIRCULATE_REQUEST = 27
  1063. const m_XCB_CIRCULATE_WINDOW = 13
  1064. const m_XCB_CLEAR_AREA = 61
  1065. const m_XCB_CLIENT_MESSAGE = 33
  1066. const m_XCB_CLOSE_FONT = 46
  1067. const m_XCB_COLORMAP = 12
  1068. const m_XCB_COLORMAP_NOTIFY = 32
  1069. const m_XCB_CONFIGURE_NOTIFY = 22
  1070. const m_XCB_CONFIGURE_REQUEST = 23
  1071. const m_XCB_CONFIGURE_WINDOW = 12
  1072. const m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED = 2
  1073. const m_XCB_CONN_CLOSED_FDPASSING_FAILED = 7
  1074. const m_XCB_CONN_CLOSED_INVALID_SCREEN = 6
  1075. const m_XCB_CONN_CLOSED_MEM_INSUFFICIENT = 3
  1076. const m_XCB_CONN_CLOSED_PARSE_ERR = 5
  1077. const m_XCB_CONN_CLOSED_REQ_LEN_EXCEED = 4
  1078. const m_XCB_CONN_ERROR = 1
  1079. const m_XCB_CONVERT_SELECTION = 24
  1080. const m_XCB_COPY_AREA = 62
  1081. const m_XCB_COPY_COLORMAP_AND_FREE = 80
  1082. const m_XCB_COPY_FROM_PARENT = 0
  1083. const m_XCB_COPY_GC = 57
  1084. const m_XCB_COPY_PLANE = 63
  1085. const m_XCB_CREATE_COLORMAP = 78
  1086. const m_XCB_CREATE_CURSOR = 93
  1087. const m_XCB_CREATE_GC = 55
  1088. const m_XCB_CREATE_GLYPH_CURSOR = 94
  1089. const m_XCB_CREATE_NOTIFY = 16
  1090. const m_XCB_CREATE_PIXMAP = 53
  1091. const m_XCB_CREATE_WINDOW = 1
  1092. const m_XCB_CURRENT_TIME = 0
  1093. const m_XCB_CURSOR = 6
  1094. const m_XCB_DELETE_PROPERTY = 19
  1095. const m_XCB_DESTROY_NOTIFY = 17
  1096. const m_XCB_DESTROY_SUBWINDOWS = 5
  1097. const m_XCB_DESTROY_WINDOW = 4
  1098. const m_XCB_DRAWABLE = 9
  1099. const m_XCB_ENTER_NOTIFY = 7
  1100. const m_XCB_EXPOSE = 12
  1101. const m_XCB_FILL_POLY = 69
  1102. const m_XCB_FOCUS_IN = 9
  1103. const m_XCB_FOCUS_OUT = 10
  1104. const m_XCB_FONT = 7
  1105. const m_XCB_FORCE_SCREEN_SAVER = 115
  1106. const m_XCB_FREE_COLORMAP = 79
  1107. const m_XCB_FREE_COLORS = 88
  1108. const m_XCB_FREE_CURSOR = 95
  1109. const m_XCB_FREE_GC = 60
  1110. const m_XCB_FREE_PIXMAP = 54
  1111. const m_XCB_GET_ATOM_NAME = 17
  1112. const m_XCB_GET_FONT_PATH = 52
  1113. const m_XCB_GET_GEOMETRY = 14
  1114. const m_XCB_GET_IMAGE = 73
  1115. const m_XCB_GET_INPUT_FOCUS = 43
  1116. const m_XCB_GET_KEYBOARD_CONTROL = 103
  1117. const m_XCB_GET_KEYBOARD_MAPPING = 101
  1118. const m_XCB_GET_MODIFIER_MAPPING = 119
  1119. const m_XCB_GET_MOTION_EVENTS = 39
  1120. const m_XCB_GET_POINTER_CONTROL = 106
  1121. const m_XCB_GET_POINTER_MAPPING = 117
  1122. const m_XCB_GET_PROPERTY = 20
  1123. const m_XCB_GET_SCREEN_SAVER = 108
  1124. const m_XCB_GET_SELECTION_OWNER = 23
  1125. const m_XCB_GET_WINDOW_ATTRIBUTES = 3
  1126. const m_XCB_GE_GENERIC = 35
  1127. const m_XCB_GRAB_BUTTON = 28
  1128. const m_XCB_GRAB_KEY = 33
  1129. const m_XCB_GRAB_KEYBOARD = 31
  1130. const m_XCB_GRAB_POINTER = 26
  1131. const m_XCB_GRAB_SERVER = 36
  1132. const m_XCB_GRAPHICS_EXPOSURE = 13
  1133. const m_XCB_GRAVITY_NOTIFY = 24
  1134. const m_XCB_G_CONTEXT = 13
  1135. const m_XCB_ID_CHOICE = 14
  1136. const m_XCB_IMAGE_TEXT_16 = 77
  1137. const m_XCB_IMAGE_TEXT_8 = 76
  1138. const m_XCB_IMPLEMENTATION = 17
  1139. const m_XCB_INSTALL_COLORMAP = 81
  1140. const m_XCB_INTERN_ATOM = 16
  1141. const m_XCB_KEYMAP_NOTIFY = 11
  1142. const m_XCB_KEY_PRESS = 2
  1143. const m_XCB_KEY_RELEASE = 3
  1144. const m_XCB_KILL_CLIENT = 113
  1145. const m_XCB_LEAVE_NOTIFY = 8
  1146. const m_XCB_LENGTH = 16
  1147. const m_XCB_LIST_EXTENSIONS = 99
  1148. const m_XCB_LIST_FONTS = 49
  1149. const m_XCB_LIST_FONTS_WITH_INFO = 50
  1150. const m_XCB_LIST_HOSTS = 110
  1151. const m_XCB_LIST_INSTALLED_COLORMAPS = 83
  1152. const m_XCB_LIST_PROPERTIES = 21
  1153. const m_XCB_LOOKUP_COLOR = 92
  1154. const m_XCB_MAPPING_NOTIFY = 34
  1155. const m_XCB_MAP_NOTIFY = 19
  1156. const m_XCB_MAP_REQUEST = 20
  1157. const m_XCB_MAP_SUBWINDOWS = 9
  1158. const m_XCB_MAP_WINDOW = 8
  1159. const m_XCB_MATCH = 8
  1160. const m_XCB_MAX_PASS_FD = 16
  1161. const m_XCB_MOTION_NOTIFY = 6
  1162. const m_XCB_NAME = 15
  1163. const m_XCB_NONE = 0
  1164. const m_XCB_NO_EXPOSURE = 14
  1165. const m_XCB_NO_OPERATION = 127
  1166. const m_XCB_NO_SYMBOL = 0
  1167. const m_XCB_OPEN_FONT = 45
  1168. const m_XCB_PIXMAP = 4
  1169. const m_XCB_POLY_ARC = 68
  1170. const m_XCB_POLY_FILL_ARC = 71
  1171. const m_XCB_POLY_FILL_RECTANGLE = 70
  1172. const m_XCB_POLY_LINE = 65
  1173. const m_XCB_POLY_POINT = 64
  1174. const m_XCB_POLY_RECTANGLE = 67
  1175. const m_XCB_POLY_SEGMENT = 66
  1176. const m_XCB_POLY_TEXT_16 = 75
  1177. const m_XCB_POLY_TEXT_8 = 74
  1178. const m_XCB_PROPERTY_NOTIFY = 28
  1179. const m_XCB_PUT_IMAGE = 72
  1180. const m_XCB_QUERY_BEST_SIZE = 97
  1181. const m_XCB_QUERY_COLORS = 91
  1182. const m_XCB_QUERY_EXTENSION = 98
  1183. const m_XCB_QUERY_FONT = 47
  1184. const m_XCB_QUERY_KEYMAP = 44
  1185. const m_XCB_QUERY_POINTER = 38
  1186. const m_XCB_QUERY_TEXT_EXTENTS = 48
  1187. const m_XCB_QUERY_TREE = 15
  1188. const m_XCB_QUEUE_BUFFER_SIZE = 16384
  1189. const m_XCB_RECOLOR_CURSOR = 96
  1190. const m_XCB_REPARENT_NOTIFY = 21
  1191. const m_XCB_REPARENT_WINDOW = 7
  1192. const m_XCB_REQUEST = 1
  1193. const m_XCB_RESIZE_REQUEST = 25
  1194. const m_XCB_ROTATE_PROPERTIES = 114
  1195. const m_XCB_SELECTION_CLEAR = 29
  1196. const m_XCB_SELECTION_NOTIFY = 31
  1197. const m_XCB_SELECTION_REQUEST = 30
  1198. const m_XCB_SEND_EVENT = 25
  1199. const m_XCB_SET_ACCESS_CONTROL = 111
  1200. const m_XCB_SET_CLIP_RECTANGLES = 59
  1201. const m_XCB_SET_CLOSE_DOWN_MODE = 112
  1202. const m_XCB_SET_DASHES = 58
  1203. const m_XCB_SET_FONT_PATH = 51
  1204. const m_XCB_SET_INPUT_FOCUS = 42
  1205. const m_XCB_SET_MODIFIER_MAPPING = 118
  1206. const m_XCB_SET_POINTER_MAPPING = 116
  1207. const m_XCB_SET_SCREEN_SAVER = 107
  1208. const m_XCB_SET_SELECTION_OWNER = 22
  1209. const m_XCB_STORE_COLORS = 89
  1210. const m_XCB_STORE_NAMED_COLOR = 90
  1211. const m_XCB_TRANSLATE_COORDINATES = 40
  1212. const m_XCB_UNGRAB_BUTTON = 29
  1213. const m_XCB_UNGRAB_KEY = 34
  1214. const m_XCB_UNGRAB_KEYBOARD = 32
  1215. const m_XCB_UNGRAB_POINTER = 27
  1216. const m_XCB_UNGRAB_SERVER = 37
  1217. const m_XCB_UNINSTALL_COLORMAP = 82
  1218. const m_XCB_UNMAP_NOTIFY = 18
  1219. const m_XCB_UNMAP_SUBWINDOWS = 11
  1220. const m_XCB_UNMAP_WINDOW = 10
  1221. const m_XCB_VALUE = 2
  1222. const m_XCB_VISIBILITY_NOTIFY = 15
  1223. const m_XCB_WARP_POINTER = 41
  1224. const m_XCB_WINDOW = 3
  1225. const m_X_OK = 1
  1226. const m_X_PROTOCOL = 11
  1227. const m_X_PROTOCOL_REVISION = 0
  1228. const m_X_TCP_PORT = 6000
  1229. const m__ALL_SOURCE = 1
  1230. const m__CS_GNU_LIBC_VERSION = 2
  1231. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  1232. const m__CS_PATH = 0
  1233. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  1234. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  1235. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  1236. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  1237. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  1238. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  1239. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  1240. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  1241. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  1242. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  1243. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  1244. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  1245. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  1246. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  1247. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  1248. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  1249. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  1250. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  1251. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  1252. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  1253. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  1254. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  1255. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  1256. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  1257. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  1258. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  1259. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  1260. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  1261. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  1262. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  1263. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  1264. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  1265. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  1266. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  1267. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  1268. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  1269. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  1270. const m__CS_V6_ENV = 1148
  1271. const m__CS_V7_ENV = 1149
  1272. const m__DARWIN_C_SOURCE = 1
  1273. const m__GNU_SOURCE = 1
  1274. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  1275. const m__IOFBF = 0
  1276. const m__IOLBF = 1
  1277. const m__IONBF = 2
  1278. const m__LP64 = 1
  1279. const m__NETBSD_SOURCE = 1
  1280. const m__OPENBSD_SOURCE = 1
  1281. const m__PC_2_SYMLINKS = 20
  1282. const m__PC_ALLOC_SIZE_MIN = 18
  1283. const m__PC_ASYNC_IO = 10
  1284. const m__PC_CHOWN_RESTRICTED = 6
  1285. const m__PC_FILESIZEBITS = 13
  1286. const m__PC_LINK_MAX = 0
  1287. const m__PC_MAX_CANON = 1
  1288. const m__PC_MAX_INPUT = 2
  1289. const m__PC_NAME_MAX = 3
  1290. const m__PC_NO_TRUNC = 7
  1291. const m__PC_PATH_MAX = 4
  1292. const m__PC_PIPE_BUF = 5
  1293. const m__PC_PRIO_IO = 11
  1294. const m__PC_REC_INCR_XFER_SIZE = 14
  1295. const m__PC_REC_MAX_XFER_SIZE = 15
  1296. const m__PC_REC_MIN_XFER_SIZE = 16
  1297. const m__PC_REC_XFER_ALIGN = 17
  1298. const m__PC_SOCK_MAXBUF = 12
  1299. const m__PC_SYMLINK_MAX = 19
  1300. const m__PC_SYNC_IO = 9
  1301. const m__PC_VDISABLE = 8
  1302. const m__POSIX2_BC_BASE_MAX = 99
  1303. const m__POSIX2_BC_DIM_MAX = 2048
  1304. const m__POSIX2_BC_SCALE_MAX = 99
  1305. const m__POSIX2_BC_STRING_MAX = 1000
  1306. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  1307. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  1308. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  1309. const m__POSIX2_EXPR_NEST_MAX = 32
  1310. const m__POSIX2_LINE_MAX = 2048
  1311. const m__POSIX2_RE_DUP_MAX = 255
  1312. const m__POSIX2_VERSION = "_POSIX_VERSION"
  1313. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  1314. const m__POSIX_AIO_LISTIO_MAX = 2
  1315. const m__POSIX_AIO_MAX = 1
  1316. const m__POSIX_ARG_MAX = 4096
  1317. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  1318. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  1319. const m__POSIX_CHILD_MAX = 25
  1320. const m__POSIX_CHOWN_RESTRICTED = 1
  1321. const m__POSIX_CLOCKRES_MIN = 20000000
  1322. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  1323. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  1324. const m__POSIX_DELAYTIMER_MAX = 32
  1325. const m__POSIX_FSYNC = "_POSIX_VERSION"
  1326. const m__POSIX_HOST_NAME_MAX = 255
  1327. const m__POSIX_IPV6 = "_POSIX_VERSION"
  1328. const m__POSIX_JOB_CONTROL = 1
  1329. const m__POSIX_LINK_MAX = 8
  1330. const m__POSIX_LOGIN_NAME_MAX = 9
  1331. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  1332. const m__POSIX_MAX_CANON = 255
  1333. const m__POSIX_MAX_INPUT = 255
  1334. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  1335. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  1336. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  1337. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  1338. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  1339. const m__POSIX_MQ_OPEN_MAX = 8
  1340. const m__POSIX_MQ_PRIO_MAX = 32
  1341. const m__POSIX_NAME_MAX = 14
  1342. const m__POSIX_NGROUPS_MAX = 8
  1343. const m__POSIX_NO_TRUNC = 1
  1344. const m__POSIX_OPEN_MAX = 20
  1345. const m__POSIX_PATH_MAX = 256
  1346. const m__POSIX_PIPE_BUF = 512
  1347. const m__POSIX_PTHREAD_SEMANTICS = 1
  1348. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  1349. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  1350. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  1351. const m__POSIX_REGEXP = 1
  1352. const m__POSIX_RE_DUP_MAX = 255
  1353. const m__POSIX_RTSIG_MAX = 8
  1354. const m__POSIX_SAVED_IDS = 1
  1355. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  1356. const m__POSIX_SEM_NSEMS_MAX = 256
  1357. const m__POSIX_SEM_VALUE_MAX = 32767
  1358. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  1359. const m__POSIX_SHELL = 1
  1360. const m__POSIX_SIGQUEUE_MAX = 32
  1361. const m__POSIX_SPAWN = "_POSIX_VERSION"
  1362. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  1363. const m__POSIX_SSIZE_MAX = 32767
  1364. const m__POSIX_SS_REPL_MAX = 4
  1365. const m__POSIX_STREAM_MAX = 8
  1366. const m__POSIX_SYMLINK_MAX = 255
  1367. const m__POSIX_SYMLOOP_MAX = 8
  1368. const m__POSIX_THREADS = "_POSIX_VERSION"
  1369. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  1370. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  1371. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  1372. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  1373. const m__POSIX_THREAD_KEYS_MAX = 128
  1374. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  1375. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  1376. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  1377. const m__POSIX_THREAD_THREADS_MAX = 64
  1378. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  1379. const m__POSIX_TIMERS = "_POSIX_VERSION"
  1380. const m__POSIX_TIMER_MAX = 32
  1381. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  1382. const m__POSIX_TRACE_NAME_MAX = 8
  1383. const m__POSIX_TRACE_SYS_MAX = 8
  1384. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  1385. const m__POSIX_TTY_NAME_MAX = 9
  1386. const m__POSIX_TZNAME_MAX = 6
  1387. const m__POSIX_V6_LP64_OFF64 = 1
  1388. const m__POSIX_V7_LP64_OFF64 = 1
  1389. const m__POSIX_VDISABLE = 0
  1390. const m__POSIX_VERSION = 200809
  1391. const m__SC_2_CHAR_TERM = 95
  1392. const m__SC_2_C_BIND = 47
  1393. const m__SC_2_C_DEV = 48
  1394. const m__SC_2_FORT_DEV = 49
  1395. const m__SC_2_FORT_RUN = 50
  1396. const m__SC_2_LOCALEDEF = 52
  1397. const m__SC_2_PBS = 168
  1398. const m__SC_2_PBS_ACCOUNTING = 169
  1399. const m__SC_2_PBS_CHECKPOINT = 175
  1400. const m__SC_2_PBS_LOCATE = 170
  1401. const m__SC_2_PBS_MESSAGE = 171
  1402. const m__SC_2_PBS_TRACK = 172
  1403. const m__SC_2_SW_DEV = 51
  1404. const m__SC_2_UPE = 97
  1405. const m__SC_2_VERSION = 46
  1406. const m__SC_ADVISORY_INFO = 132
  1407. const m__SC_AIO_LISTIO_MAX = 23
  1408. const m__SC_AIO_MAX = 24
  1409. const m__SC_AIO_PRIO_DELTA_MAX = 25
  1410. const m__SC_ARG_MAX = 0
  1411. const m__SC_ASYNCHRONOUS_IO = 12
  1412. const m__SC_ATEXIT_MAX = 87
  1413. const m__SC_AVPHYS_PAGES = 86
  1414. const m__SC_BARRIERS = 133
  1415. const m__SC_BC_BASE_MAX = 36
  1416. const m__SC_BC_DIM_MAX = 37
  1417. const m__SC_BC_SCALE_MAX = 38
  1418. const m__SC_BC_STRING_MAX = 39
  1419. const m__SC_CHILD_MAX = 1
  1420. const m__SC_CLK_TCK = 2
  1421. const m__SC_CLOCK_SELECTION = 137
  1422. const m__SC_COLL_WEIGHTS_MAX = 40
  1423. const m__SC_CPUTIME = 138
  1424. const m__SC_DELAYTIMER_MAX = 26
  1425. const m__SC_EXPR_NEST_MAX = 42
  1426. const m__SC_FSYNC = 15
  1427. const m__SC_GETGR_R_SIZE_MAX = 69
  1428. const m__SC_GETPW_R_SIZE_MAX = 70
  1429. const m__SC_HOST_NAME_MAX = 180
  1430. const m__SC_IOV_MAX = 60
  1431. const m__SC_IPV6 = 235
  1432. const m__SC_JOB_CONTROL = 7
  1433. const m__SC_LINE_MAX = 43
  1434. const m__SC_LOGIN_NAME_MAX = 71
  1435. const m__SC_MAPPED_FILES = 16
  1436. const m__SC_MEMLOCK = 17
  1437. const m__SC_MEMLOCK_RANGE = 18
  1438. const m__SC_MEMORY_PROTECTION = 19
  1439. const m__SC_MESSAGE_PASSING = 20
  1440. const m__SC_MINSIGSTKSZ = 249
  1441. const m__SC_MONOTONIC_CLOCK = 149
  1442. const m__SC_MQ_OPEN_MAX = 27
  1443. const m__SC_MQ_PRIO_MAX = 28
  1444. const m__SC_NGROUPS_MAX = 3
  1445. const m__SC_NPROCESSORS_CONF = 83
  1446. const m__SC_NPROCESSORS_ONLN = 84
  1447. const m__SC_NZERO = 109
  1448. const m__SC_OPEN_MAX = 4
  1449. const m__SC_PAGESIZE = 30
  1450. const m__SC_PAGE_SIZE = 30
  1451. const m__SC_PASS_MAX = 88
  1452. const m__SC_PHYS_PAGES = 85
  1453. const m__SC_PRIORITIZED_IO = 13
  1454. const m__SC_PRIORITY_SCHEDULING = 10
  1455. const m__SC_RAW_SOCKETS = 236
  1456. const m__SC_READER_WRITER_LOCKS = 153
  1457. const m__SC_REALTIME_SIGNALS = 9
  1458. const m__SC_REGEXP = 155
  1459. const m__SC_RE_DUP_MAX = 44
  1460. const m__SC_RTSIG_MAX = 31
  1461. const m__SC_SAVED_IDS = 8
  1462. const m__SC_SEMAPHORES = 21
  1463. const m__SC_SEM_NSEMS_MAX = 32
  1464. const m__SC_SEM_VALUE_MAX = 33
  1465. const m__SC_SHARED_MEMORY_OBJECTS = 22
  1466. const m__SC_SHELL = 157
  1467. const m__SC_SIGQUEUE_MAX = 34
  1468. const m__SC_SIGSTKSZ = 250
  1469. const m__SC_SPAWN = 159
  1470. const m__SC_SPIN_LOCKS = 154
  1471. const m__SC_SPORADIC_SERVER = 160
  1472. const m__SC_SS_REPL_MAX = 241
  1473. const m__SC_STREAMS = 174
  1474. const m__SC_STREAM_MAX = 5
  1475. const m__SC_SYMLOOP_MAX = 173
  1476. const m__SC_SYNCHRONIZED_IO = 14
  1477. const m__SC_THREADS = 67
  1478. const m__SC_THREAD_ATTR_STACKADDR = 77
  1479. const m__SC_THREAD_ATTR_STACKSIZE = 78
  1480. const m__SC_THREAD_CPUTIME = 139
  1481. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  1482. const m__SC_THREAD_KEYS_MAX = 74
  1483. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  1484. const m__SC_THREAD_PRIO_INHERIT = 80
  1485. const m__SC_THREAD_PRIO_PROTECT = 81
  1486. const m__SC_THREAD_PROCESS_SHARED = 82
  1487. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  1488. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  1489. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  1490. const m__SC_THREAD_SPORADIC_SERVER = 161
  1491. const m__SC_THREAD_STACK_MIN = 75
  1492. const m__SC_THREAD_THREADS_MAX = 76
  1493. const m__SC_TIMEOUTS = 164
  1494. const m__SC_TIMERS = 11
  1495. const m__SC_TIMER_MAX = 35
  1496. const m__SC_TRACE = 181
  1497. const m__SC_TRACE_EVENT_FILTER = 182
  1498. const m__SC_TRACE_EVENT_NAME_MAX = 242
  1499. const m__SC_TRACE_INHERIT = 183
  1500. const m__SC_TRACE_LOG = 184
  1501. const m__SC_TRACE_NAME_MAX = 243
  1502. const m__SC_TRACE_SYS_MAX = 244
  1503. const m__SC_TRACE_USER_EVENT_MAX = 245
  1504. const m__SC_TTY_NAME_MAX = 72
  1505. const m__SC_TYPED_MEMORY_OBJECTS = 165
  1506. const m__SC_TZNAME_MAX = 6
  1507. const m__SC_UIO_MAXIOV = 60
  1508. const m__SC_V6_ILP32_OFF32 = 176
  1509. const m__SC_V6_ILP32_OFFBIG = 177
  1510. const m__SC_V6_LP64_OFF64 = 178
  1511. const m__SC_V6_LPBIG_OFFBIG = 179
  1512. const m__SC_V7_ILP32_OFF32 = 237
  1513. const m__SC_V7_ILP32_OFFBIG = 238
  1514. const m__SC_V7_LP64_OFF64 = 239
  1515. const m__SC_V7_LPBIG_OFFBIG = 240
  1516. const m__SC_VERSION = 29
  1517. const m__SC_XBS5_ILP32_OFF32 = 125
  1518. const m__SC_XBS5_ILP32_OFFBIG = 126
  1519. const m__SC_XBS5_LP64_OFF64 = 127
  1520. const m__SC_XBS5_LPBIG_OFFBIG = 128
  1521. const m__SC_XOPEN_CRYPT = 92
  1522. const m__SC_XOPEN_ENH_I18N = 93
  1523. const m__SC_XOPEN_LEGACY = 129
  1524. const m__SC_XOPEN_REALTIME = 130
  1525. const m__SC_XOPEN_REALTIME_THREADS = 131
  1526. const m__SC_XOPEN_SHM = 94
  1527. const m__SC_XOPEN_STREAMS = 246
  1528. const m__SC_XOPEN_UNIX = 91
  1529. const m__SC_XOPEN_VERSION = 89
  1530. const m__SC_XOPEN_XCU_VERSION = 90
  1531. const m__SC_XOPEN_XPG2 = 98
  1532. const m__SC_XOPEN_XPG3 = 99
  1533. const m__SC_XOPEN_XPG4 = 100
  1534. const m__STDC_PREDEF_H = 1
  1535. const m__TANDEM_SOURCE = 1
  1536. const m__XOPEN_ENH_I18N = 1
  1537. const m__XOPEN_IOV_MAX = 16
  1538. const m__XOPEN_NAME_MAX = 255
  1539. const m__XOPEN_PATH_MAX = 1024
  1540. const m__XOPEN_UNIX = 1
  1541. const m__XOPEN_VERSION = 700
  1542. const m___AARCH64EL__ = 1
  1543. const m___AARCH64_CMODEL_SMALL__ = 1
  1544. const m___ARM_64BIT_STATE = 1
  1545. const m___ARM_ALIGN_MAX_PWR = 28
  1546. const m___ARM_ALIGN_MAX_STACK_PWR = 16
  1547. const m___ARM_ARCH = 8
  1548. const m___ARM_ARCH_8A = 1
  1549. const m___ARM_ARCH_ISA_A64 = 1
  1550. const m___ARM_ARCH_PROFILE = 65
  1551. const m___ARM_FEATURE_CLZ = 1
  1552. const m___ARM_FEATURE_FMA = 1
  1553. const m___ARM_FEATURE_IDIV = 1
  1554. const m___ARM_FEATURE_NUMERIC_MAXMIN = 1
  1555. const m___ARM_FEATURE_UNALIGNED = 1
  1556. const m___ARM_FP = 14
  1557. const m___ARM_FP16_ARGS = 1
  1558. const m___ARM_FP16_FORMAT_IEEE = 1
  1559. const m___ARM_NEON = 1
  1560. const m___ARM_PCS_AAPCS64 = 1
  1561. const m___ARM_SIZEOF_MINIMAL_ENUM = 4
  1562. const m___ARM_SIZEOF_WCHAR_T = 4
  1563. const m___ATOMIC_ACQUIRE = 2
  1564. const m___ATOMIC_ACQ_REL = 4
  1565. const m___ATOMIC_CONSUME = 1
  1566. const m___ATOMIC_RELAXED = 0
  1567. const m___ATOMIC_RELEASE = 3
  1568. const m___ATOMIC_SEQ_CST = 5
  1569. const m___BIGGEST_ALIGNMENT__ = 16
  1570. const m___BIG_ENDIAN = 4321
  1571. const m___BYTE_ORDER = 1234
  1572. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1573. const m___CCGO__ = 1
  1574. const m___CHAR_BIT__ = 8
  1575. const m___CHAR_UNSIGNED__ = 1
  1576. const m___DBL_DECIMAL_DIG__ = 17
  1577. const m___DBL_DIG__ = 15
  1578. const m___DBL_HAS_DENORM__ = 1
  1579. const m___DBL_HAS_INFINITY__ = 1
  1580. const m___DBL_HAS_QUIET_NAN__ = 1
  1581. const m___DBL_IS_IEC_60559__ = 2
  1582. const m___DBL_MANT_DIG__ = 53
  1583. const m___DBL_MAX_10_EXP__ = 308
  1584. const m___DBL_MAX_EXP__ = 1024
  1585. const m___DECIMAL_DIG__ = 36
  1586. const m___DEC_EVAL_METHOD__ = 2
  1587. const m___ELF__ = 1
  1588. const m___EXTENSIONS__ = 1
  1589. const m___FINITE_MATH_ONLY__ = 0
  1590. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1591. const m___FLT128_DECIMAL_DIG__ = 36
  1592. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1593. const m___FLT128_DIG__ = 33
  1594. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1595. const m___FLT128_HAS_DENORM__ = 1
  1596. const m___FLT128_HAS_INFINITY__ = 1
  1597. const m___FLT128_HAS_QUIET_NAN__ = 1
  1598. const m___FLT128_IS_IEC_60559__ = 2
  1599. const m___FLT128_MANT_DIG__ = 113
  1600. const m___FLT128_MAX_10_EXP__ = 4932
  1601. const m___FLT128_MAX_EXP__ = 16384
  1602. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1603. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  1604. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1605. const m___FLT16_DECIMAL_DIG__ = 5
  1606. const m___FLT16_DENORM_MIN__ = 5.96046447753906250000000000000000000e-8
  1607. const m___FLT16_DIG__ = 3
  1608. const m___FLT16_EPSILON__ = 9.76562500000000000000000000000000000e-4
  1609. const m___FLT16_HAS_DENORM__ = 1
  1610. const m___FLT16_HAS_INFINITY__ = 1
  1611. const m___FLT16_HAS_QUIET_NAN__ = 1
  1612. const m___FLT16_IS_IEC_60559__ = 2
  1613. const m___FLT16_MANT_DIG__ = 11
  1614. const m___FLT16_MAX_10_EXP__ = 4
  1615. const m___FLT16_MAX_EXP__ = 16
  1616. const m___FLT16_MAX__ = 6.55040000000000000000000000000000000e+4
  1617. const m___FLT16_MIN__ = 6.10351562500000000000000000000000000e-5
  1618. const m___FLT16_NORM_MAX__ = 6.55040000000000000000000000000000000e+4
  1619. const m___FLT32X_DECIMAL_DIG__ = 17
  1620. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1621. const m___FLT32X_DIG__ = 15
  1622. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1623. const m___FLT32X_HAS_DENORM__ = 1
  1624. const m___FLT32X_HAS_INFINITY__ = 1
  1625. const m___FLT32X_HAS_QUIET_NAN__ = 1
  1626. const m___FLT32X_IS_IEC_60559__ = 2
  1627. const m___FLT32X_MANT_DIG__ = 53
  1628. const m___FLT32X_MAX_10_EXP__ = 308
  1629. const m___FLT32X_MAX_EXP__ = 1024
  1630. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  1631. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  1632. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1633. const m___FLT32_DECIMAL_DIG__ = 9
  1634. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1635. const m___FLT32_DIG__ = 6
  1636. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1637. const m___FLT32_HAS_DENORM__ = 1
  1638. const m___FLT32_HAS_INFINITY__ = 1
  1639. const m___FLT32_HAS_QUIET_NAN__ = 1
  1640. const m___FLT32_IS_IEC_60559__ = 2
  1641. const m___FLT32_MANT_DIG__ = 24
  1642. const m___FLT32_MAX_10_EXP__ = 38
  1643. const m___FLT32_MAX_EXP__ = 128
  1644. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  1645. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  1646. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1647. const m___FLT64X_DECIMAL_DIG__ = 36
  1648. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1649. const m___FLT64X_DIG__ = 33
  1650. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1651. const m___FLT64X_HAS_DENORM__ = 1
  1652. const m___FLT64X_HAS_INFINITY__ = 1
  1653. const m___FLT64X_HAS_QUIET_NAN__ = 1
  1654. const m___FLT64X_IS_IEC_60559__ = 2
  1655. const m___FLT64X_MANT_DIG__ = 113
  1656. const m___FLT64X_MAX_10_EXP__ = 4932
  1657. const m___FLT64X_MAX_EXP__ = 16384
  1658. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1659. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  1660. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1661. const m___FLT64_DECIMAL_DIG__ = 17
  1662. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1663. const m___FLT64_DIG__ = 15
  1664. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1665. const m___FLT64_HAS_DENORM__ = 1
  1666. const m___FLT64_HAS_INFINITY__ = 1
  1667. const m___FLT64_HAS_QUIET_NAN__ = 1
  1668. const m___FLT64_IS_IEC_60559__ = 2
  1669. const m___FLT64_MANT_DIG__ = 53
  1670. const m___FLT64_MAX_10_EXP__ = 308
  1671. const m___FLT64_MAX_EXP__ = 1024
  1672. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  1673. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  1674. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1675. const m___FLT_DECIMAL_DIG__ = 9
  1676. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1677. const m___FLT_DIG__ = 6
  1678. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1679. const m___FLT_EVAL_METHOD_C99__ = 0
  1680. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  1681. const m___FLT_EVAL_METHOD__ = 0
  1682. const m___FLT_HAS_DENORM__ = 1
  1683. const m___FLT_HAS_INFINITY__ = 1
  1684. const m___FLT_HAS_QUIET_NAN__ = 1
  1685. const m___FLT_IS_IEC_60559__ = 2
  1686. const m___FLT_MANT_DIG__ = 24
  1687. const m___FLT_MAX_10_EXP__ = 38
  1688. const m___FLT_MAX_EXP__ = 128
  1689. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  1690. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  1691. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1692. const m___FLT_RADIX__ = 2
  1693. const m___FP_FAST_FMA = 1
  1694. const m___FP_FAST_FMAF = 1
  1695. const m___FP_FAST_FMAF32 = 1
  1696. const m___FP_FAST_FMAF32x = 1
  1697. const m___FP_FAST_FMAF64 = 1
  1698. const m___FUNCTION__ = "__func__"
  1699. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  1700. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  1701. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1702. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1703. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  1704. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1705. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  1706. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1707. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1708. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  1709. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1710. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1711. const m___GCC_CONSTRUCTIVE_SIZE = 64
  1712. const m___GCC_DESTRUCTIVE_SIZE = 256
  1713. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  1714. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  1715. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  1716. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  1717. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1718. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  1719. const m___GCC_IEC_559 = 2
  1720. const m___GCC_IEC_559_COMPLEX = 2
  1721. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  1722. const m___GNUC_MINOR__ = 2
  1723. const m___GNUC_PATCHLEVEL__ = 0
  1724. const m___GNUC_STDC_INLINE__ = 1
  1725. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  1726. const m___GNUC__ = 12
  1727. const m___GXX_ABI_VERSION = 1017
  1728. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  1729. const m___INT16_MAX__ = 0x7fff
  1730. const m___INT32_MAX__ = 0x7fffffff
  1731. const m___INT32_TYPE__ = "int"
  1732. const m___INT64_MAX__ = 0x7fffffffffffffff
  1733. const m___INT8_MAX__ = 0x7f
  1734. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  1735. const m___INTMAX_WIDTH__ = 64
  1736. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  1737. const m___INTPTR_WIDTH__ = 64
  1738. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  1739. const m___INT_FAST16_WIDTH__ = 64
  1740. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  1741. const m___INT_FAST32_WIDTH__ = 64
  1742. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  1743. const m___INT_FAST64_WIDTH__ = 64
  1744. const m___INT_FAST8_MAX__ = 0x7f
  1745. const m___INT_FAST8_WIDTH__ = 8
  1746. const m___INT_LEAST16_MAX__ = 0x7fff
  1747. const m___INT_LEAST16_WIDTH__ = 16
  1748. const m___INT_LEAST32_MAX__ = 0x7fffffff
  1749. const m___INT_LEAST32_TYPE__ = "int"
  1750. const m___INT_LEAST32_WIDTH__ = 32
  1751. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  1752. const m___INT_LEAST64_WIDTH__ = 64
  1753. const m___INT_LEAST8_MAX__ = 0x7f
  1754. const m___INT_LEAST8_WIDTH__ = 8
  1755. const m___INT_MAX__ = 0x7fffffff
  1756. const m___INT_WIDTH__ = 32
  1757. const m___LDBL_DECIMAL_DIG__ = 36
  1758. const m___LDBL_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1759. const m___LDBL_DIG__ = 33
  1760. const m___LDBL_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1761. const m___LDBL_HAS_DENORM__ = 1
  1762. const m___LDBL_HAS_INFINITY__ = 1
  1763. const m___LDBL_HAS_QUIET_NAN__ = 1
  1764. const m___LDBL_IS_IEC_60559__ = 2
  1765. const m___LDBL_MANT_DIG__ = 113
  1766. const m___LDBL_MAX_10_EXP__ = 4932
  1767. const m___LDBL_MAX_EXP__ = 16384
  1768. const m___LDBL_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1769. const m___LDBL_MIN__ = 3.36210314311209350626267781732175260e-4932
  1770. const m___LDBL_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1771. const m___LITTLE_ENDIAN = 1234
  1772. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1773. const m___LONG_LONG_WIDTH__ = 64
  1774. const m___LONG_MAX = 0x7fffffffffffffff
  1775. const m___LONG_MAX__ = 0x7fffffffffffffff
  1776. const m___LONG_WIDTH__ = 64
  1777. const m___LP64__ = 1
  1778. const m___NO_INLINE__ = 1
  1779. const m___ORDER_BIG_ENDIAN__ = 4321
  1780. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1781. const m___ORDER_PDP_ENDIAN__ = 3412
  1782. const m___PDP_ENDIAN = 3412
  1783. const m___PIC__ = 2
  1784. const m___PIE__ = 2
  1785. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1786. const m___PRETTY_FUNCTION__ = "__func__"
  1787. const m___PRI64 = "l"
  1788. const m___PRIPTR = "l"
  1789. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  1790. const m___PTRDIFF_WIDTH__ = 64
  1791. const m___SCHAR_MAX__ = 0x7f
  1792. const m___SCHAR_WIDTH__ = 8
  1793. const m___SHRT_MAX__ = 0x7fff
  1794. const m___SHRT_WIDTH__ = 16
  1795. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1796. const m___SIG_ATOMIC_TYPE__ = "int"
  1797. const m___SIG_ATOMIC_WIDTH__ = 32
  1798. const m___SIZEOF_DOUBLE__ = 8
  1799. const m___SIZEOF_FLOAT__ = 4
  1800. const m___SIZEOF_INT128__ = 16
  1801. const m___SIZEOF_INT__ = 4
  1802. const m___SIZEOF_LONG_DOUBLE__ = 8
  1803. const m___SIZEOF_LONG_LONG__ = 8
  1804. const m___SIZEOF_LONG__ = 8
  1805. const m___SIZEOF_POINTER__ = 8
  1806. const m___SIZEOF_PTRDIFF_T__ = 8
  1807. const m___SIZEOF_SHORT__ = 2
  1808. const m___SIZEOF_SIZE_T__ = 8
  1809. const m___SIZEOF_WCHAR_T__ = 4
  1810. const m___SIZEOF_WINT_T__ = 4
  1811. const m___SIZE_MAX__ = 0xffffffffffffffff
  1812. const m___SIZE_WIDTH__ = 64
  1813. const m___STDC_HOSTED__ = 1
  1814. const m___STDC_IEC_559_COMPLEX__ = 1
  1815. const m___STDC_IEC_559__ = 1
  1816. const m___STDC_IEC_60559_BFP__ = 201404
  1817. const m___STDC_IEC_60559_COMPLEX__ = 201404
  1818. const m___STDC_ISO_10646__ = 201706
  1819. const m___STDC_UTF_16__ = 1
  1820. const m___STDC_UTF_32__ = 1
  1821. const m___STDC_VERSION__ = 201710
  1822. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  1823. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  1824. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  1825. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  1826. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  1827. const m___STDC_WANT_LIB_EXT2__ = 1
  1828. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  1829. const m___STDC__ = 1
  1830. const m___UAPI_DEF_IN6_ADDR = 0
  1831. const m___UAPI_DEF_IN6_ADDR_ALT = 0
  1832. const m___UAPI_DEF_IN6_PKTINFO = 0
  1833. const m___UAPI_DEF_IN_ADDR = 0
  1834. const m___UAPI_DEF_IN_CLASS = 0
  1835. const m___UAPI_DEF_IN_IPPROTO = 0
  1836. const m___UAPI_DEF_IN_PKTINFO = 0
  1837. const m___UAPI_DEF_IP6_MTUINFO = 0
  1838. const m___UAPI_DEF_IPPROTO_V6 = 0
  1839. const m___UAPI_DEF_IPV6_MREQ = 0
  1840. const m___UAPI_DEF_IPV6_OPTIONS = 0
  1841. const m___UAPI_DEF_IP_MREQ = 0
  1842. const m___UAPI_DEF_SOCKADDR_IN = 0
  1843. const m___UAPI_DEF_SOCKADDR_IN6 = 0
  1844. const m___UINT16_MAX__ = 0xffff
  1845. const m___UINT32_MAX__ = 0xffffffff
  1846. const m___UINT64_MAX__ = 0xffffffffffffffff
  1847. const m___UINT8_MAX__ = 0xff
  1848. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  1849. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  1850. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  1851. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  1852. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  1853. const m___UINT_FAST8_MAX__ = 0xff
  1854. const m___UINT_LEAST16_MAX__ = 0xffff
  1855. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1856. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  1857. const m___UINT_LEAST8_MAX__ = 0xff
  1858. const m___USE_TIME_BITS64 = 1
  1859. const m___VERSION__ = "12.2.0"
  1860. const m___WCHAR_MAX__ = 0xffffffff
  1861. const m___WCHAR_MIN__ = 0
  1862. const m___WCHAR_WIDTH__ = 32
  1863. const m___WINT_MAX__ = 0xffffffff
  1864. const m___WINT_MIN__ = 0
  1865. const m___WINT_WIDTH__ = 32
  1866. const m___aarch64__ = 1
  1867. const m___gnu_linux__ = 1
  1868. const m___inline = "inline"
  1869. const m___linux = 1
  1870. const m___linux__ = 1
  1871. const m___pic__ = 2
  1872. const m___pie__ = 2
  1873. const m___restrict = "restrict"
  1874. const m___restrict_arr = "restrict"
  1875. const m___tm_gmtoff = "tm_gmtoff"
  1876. const m___tm_zone = "tm_zone"
  1877. const m___unix = 1
  1878. const m___unix__ = 1
  1879. const m_alloca = "__builtin_alloca"
  1880. const m_linux = 1
  1881. const m_loff_t = "off_t"
  1882. const m_static_assert = "_Static_assert"
  1883. const m_unix = 1
  1884. type t__builtin_va_list = uintptr
  1885. type t__predefined_size_t = uint64
  1886. type t__predefined_wchar_t = uint32
  1887. type t__predefined_ptrdiff_t = int64
  1888. type Tsize_t = uint64
  1889. type Tlocale_t = uintptr
  1890. type Tssize_t = int64
  1891. type Toff_t = int64
  1892. type Tva_list = uintptr
  1893. type t__isoc_va_list = uintptr
  1894. type Tfpos_t = struct {
  1895. F__lldata [0]int64
  1896. F__align [0]float64
  1897. F__opaque [16]uint8
  1898. }
  1899. type T_G_fpos64_t = Tfpos_t
  1900. type Tcookie_io_functions_t = struct {
  1901. Fread uintptr
  1902. Fwrite uintptr
  1903. Fseek uintptr
  1904. Fclose1 uintptr
  1905. }
  1906. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  1907. type Twchar_t = uint32
  1908. type Tdiv_t = struct {
  1909. Fquot int32
  1910. Frem int32
  1911. }
  1912. type Tldiv_t = struct {
  1913. Fquot int64
  1914. Frem int64
  1915. }
  1916. type Tlldiv_t = struct {
  1917. Fquot int64
  1918. Frem int64
  1919. }
  1920. type Tmode_t = uint32
  1921. type Tpid_t = int32
  1922. type Tiovec = struct {
  1923. Fiov_base uintptr
  1924. Fiov_len Tsize_t
  1925. }
  1926. type Tflock = struct {
  1927. Fl_type int16
  1928. Fl_whence int16
  1929. Fl_start Toff_t
  1930. Fl_len Toff_t
  1931. Fl_pid Tpid_t
  1932. }
  1933. type Tfile_handle = struct {
  1934. Fhandle_bytes uint32
  1935. Fhandle_type int32
  1936. }
  1937. type Tf_owner_ex = struct {
  1938. Ftype1 int32
  1939. Fpid Tpid_t
  1940. }
  1941. type Tblksize_t = int32
  1942. type Tnlink_t = uint32
  1943. type Tregister_t = int64
  1944. type Ttime_t = int64
  1945. type Tsuseconds_t = int64
  1946. type Tint8_t = int8
  1947. type Tint16_t = int16
  1948. type Tint32_t = int32
  1949. type Tint64_t = int64
  1950. type Tu_int64_t = uint64
  1951. type Tino_t = uint64
  1952. type Tdev_t = uint64
  1953. type Tblkcnt_t = int64
  1954. type Tfsblkcnt_t = uint64
  1955. type Tfsfilcnt_t = uint64
  1956. type Ttimer_t = uintptr
  1957. type Tclockid_t = int32
  1958. type Tclock_t = int64
  1959. type Tid_t = uint32
  1960. type Tuid_t = uint32
  1961. type Tgid_t = uint32
  1962. type Tkey_t = int32
  1963. type Tuseconds_t = uint32
  1964. type Tpthread_t = uintptr
  1965. type Tpthread_once_t = int32
  1966. type Tpthread_key_t = uint32
  1967. type Tpthread_spinlock_t = int32
  1968. type Tpthread_mutexattr_t = struct {
  1969. F__attr uint32
  1970. }
  1971. type Tpthread_condattr_t = struct {
  1972. F__attr uint32
  1973. }
  1974. type Tpthread_barrierattr_t = struct {
  1975. F__attr uint32
  1976. }
  1977. type Tpthread_rwlockattr_t = struct {
  1978. F__attr [2]uint32
  1979. }
  1980. type Tpthread_attr_t = struct {
  1981. F__u struct {
  1982. F__vi [0][14]int32
  1983. F__s [0][7]uint64
  1984. F__i [14]int32
  1985. }
  1986. }
  1987. type Tpthread_mutex_t = struct {
  1988. F__u struct {
  1989. F__vi [0][10]int32
  1990. F__p [0][5]uintptr
  1991. F__i [10]int32
  1992. }
  1993. }
  1994. type Tpthread_cond_t = struct {
  1995. F__u struct {
  1996. F__vi [0][12]int32
  1997. F__p [0][6]uintptr
  1998. F__i [12]int32
  1999. }
  2000. }
  2001. type Tpthread_rwlock_t = struct {
  2002. F__u struct {
  2003. F__vi [0][14]int32
  2004. F__p [0][7]uintptr
  2005. F__i [14]int32
  2006. }
  2007. }
  2008. type Tpthread_barrier_t = struct {
  2009. F__u struct {
  2010. F__vi [0][8]int32
  2011. F__p [0][4]uintptr
  2012. F__i [8]int32
  2013. }
  2014. }
  2015. type Tu_int8_t = uint8
  2016. type Tu_int16_t = uint16
  2017. type Tu_int32_t = uint32
  2018. type Tcaddr_t = uintptr
  2019. type Tu_char = uint8
  2020. type Tu_short = uint16
  2021. type Tushort = uint16
  2022. type Tu_int = uint32
  2023. type Tuint = uint32
  2024. type Tu_long = uint64
  2025. type Tulong = uint64
  2026. type Tquad_t = int64
  2027. type Tu_quad_t = uint64
  2028. type Tuint16_t = uint16
  2029. type Tuint32_t = uint32
  2030. type Tuint64_t = uint64
  2031. type Ttimeval = struct {
  2032. Ftv_sec Ttime_t
  2033. Ftv_usec Tsuseconds_t
  2034. }
  2035. type Ttimespec = struct {
  2036. Ftv_sec Ttime_t
  2037. Ftv_nsec int64
  2038. }
  2039. type Tsigset_t = struct {
  2040. F__bits [16]uint64
  2041. }
  2042. type t__sigset_t = Tsigset_t
  2043. type Tfd_mask = uint64
  2044. type Tfd_set = struct {
  2045. Ffds_bits [16]uint64
  2046. }
  2047. type Tuintptr_t = uint64
  2048. type Tintptr_t = int64
  2049. type Tintmax_t = int64
  2050. type Tuint8_t = uint8
  2051. type Tuintmax_t = uint64
  2052. type Tint_fast8_t = int8
  2053. type Tint_fast64_t = int64
  2054. type Tint_least8_t = int8
  2055. type Tint_least16_t = int16
  2056. type Tint_least32_t = int32
  2057. type Tint_least64_t = int64
  2058. type Tuint_fast8_t = uint8
  2059. type Tuint_fast64_t = uint64
  2060. type Tuint_least8_t = uint8
  2061. type Tuint_least16_t = uint16
  2062. type Tuint_least32_t = uint32
  2063. type Tuint_least64_t = uint64
  2064. type Tint_fast16_t = int32
  2065. type Tint_fast32_t = int32
  2066. type Tuint_fast16_t = uint32
  2067. type Tuint_fast32_t = uint32
  2068. type Tsched_param = struct {
  2069. Fsched_priority int32
  2070. F__reserved1 int32
  2071. F__reserved2 [2]struct {
  2072. F__reserved1 Ttime_t
  2073. F__reserved2 int64
  2074. }
  2075. F__reserved3 int32
  2076. }
  2077. type Tcpu_set_t = struct {
  2078. F__bits [16]uint64
  2079. }
  2080. type Ttm = struct {
  2081. Ftm_sec int32
  2082. Ftm_min int32
  2083. Ftm_hour int32
  2084. Ftm_mday int32
  2085. Ftm_mon int32
  2086. Ftm_year int32
  2087. Ftm_wday int32
  2088. Ftm_yday int32
  2089. Ftm_isdst int32
  2090. Ftm_gmtoff int64
  2091. Ftm_zone uintptr
  2092. }
  2093. type Titimerspec = struct {
  2094. Fit_interval Ttimespec
  2095. Fit_value Ttimespec
  2096. }
  2097. type t__ptcb = struct {
  2098. F__f uintptr
  2099. F__x uintptr
  2100. F__next uintptr
  2101. }
  2102. type Tcpu_set_t1 = struct {
  2103. F__bits [16]uint64
  2104. }
  2105. type Txcb_connection_t = struct {
  2106. Fhas_error int32
  2107. Fsetup uintptr
  2108. Ffd int32
  2109. Fiolock Tpthread_mutex_t
  2110. Fin T_xcb_in
  2111. Fout T_xcb_out
  2112. Fext T_xcb_ext
  2113. Fxid T_xcb_xid
  2114. }
  2115. type Txcb_generic_iterator_t = struct {
  2116. Fdata uintptr
  2117. Frem int32
  2118. Findex int32
  2119. }
  2120. type Txcb_generic_reply_t = struct {
  2121. Fresponse_type Tuint8_t
  2122. Fpad0 Tuint8_t
  2123. Fsequence Tuint16_t
  2124. Flength Tuint32_t
  2125. }
  2126. type Txcb_generic_event_t = struct {
  2127. Fresponse_type Tuint8_t
  2128. Fpad0 Tuint8_t
  2129. Fsequence Tuint16_t
  2130. Fpad [7]Tuint32_t
  2131. Ffull_sequence Tuint32_t
  2132. }
  2133. type Txcb_raw_generic_event_t = struct {
  2134. Fresponse_type Tuint8_t
  2135. Fpad0 Tuint8_t
  2136. Fsequence Tuint16_t
  2137. Fpad [7]Tuint32_t
  2138. }
  2139. type Txcb_ge_event_t = struct {
  2140. Fresponse_type Tuint8_t
  2141. Fpad0 Tuint8_t
  2142. Fsequence Tuint16_t
  2143. Flength Tuint32_t
  2144. Fevent_type Tuint16_t
  2145. Fpad1 Tuint16_t
  2146. Fpad [5]Tuint32_t
  2147. Ffull_sequence Tuint32_t
  2148. }
  2149. type Txcb_generic_error_t = struct {
  2150. Fresponse_type Tuint8_t
  2151. Ferror_code Tuint8_t
  2152. Fsequence Tuint16_t
  2153. Fresource_id Tuint32_t
  2154. Fminor_code Tuint16_t
  2155. Fmajor_code Tuint8_t
  2156. Fpad0 Tuint8_t
  2157. Fpad [5]Tuint32_t
  2158. Ffull_sequence Tuint32_t
  2159. }
  2160. type Txcb_void_cookie_t = struct {
  2161. Fsequence uint32
  2162. }
  2163. type Txcb_char2b_t = struct {
  2164. Fbyte1 Tuint8_t
  2165. Fbyte2 Tuint8_t
  2166. }
  2167. type Txcb_char2b_iterator_t = struct {
  2168. Fdata uintptr
  2169. Frem int32
  2170. Findex int32
  2171. }
  2172. type Txcb_window_t = uint32
  2173. type Txcb_window_iterator_t = struct {
  2174. Fdata uintptr
  2175. Frem int32
  2176. Findex int32
  2177. }
  2178. type Txcb_pixmap_t = uint32
  2179. type Txcb_pixmap_iterator_t = struct {
  2180. Fdata uintptr
  2181. Frem int32
  2182. Findex int32
  2183. }
  2184. type Txcb_cursor_t = uint32
  2185. type Txcb_cursor_iterator_t = struct {
  2186. Fdata uintptr
  2187. Frem int32
  2188. Findex int32
  2189. }
  2190. type Txcb_font_t = uint32
  2191. type Txcb_font_iterator_t = struct {
  2192. Fdata uintptr
  2193. Frem int32
  2194. Findex int32
  2195. }
  2196. type Txcb_gcontext_t = uint32
  2197. type Txcb_gcontext_iterator_t = struct {
  2198. Fdata uintptr
  2199. Frem int32
  2200. Findex int32
  2201. }
  2202. type Txcb_colormap_t = uint32
  2203. type Txcb_colormap_iterator_t = struct {
  2204. Fdata uintptr
  2205. Frem int32
  2206. Findex int32
  2207. }
  2208. type Txcb_atom_t = uint32
  2209. type Txcb_atom_iterator_t = struct {
  2210. Fdata uintptr
  2211. Frem int32
  2212. Findex int32
  2213. }
  2214. type Txcb_drawable_t = uint32
  2215. type Txcb_drawable_iterator_t = struct {
  2216. Fdata uintptr
  2217. Frem int32
  2218. Findex int32
  2219. }
  2220. type Txcb_fontable_t = uint32
  2221. type Txcb_fontable_iterator_t = struct {
  2222. Fdata uintptr
  2223. Frem int32
  2224. Findex int32
  2225. }
  2226. type Txcb_bool32_t = uint32
  2227. type Txcb_bool32_iterator_t = struct {
  2228. Fdata uintptr
  2229. Frem int32
  2230. Findex int32
  2231. }
  2232. type Txcb_visualid_t = uint32
  2233. type Txcb_visualid_iterator_t = struct {
  2234. Fdata uintptr
  2235. Frem int32
  2236. Findex int32
  2237. }
  2238. type Txcb_timestamp_t = uint32
  2239. type Txcb_timestamp_iterator_t = struct {
  2240. Fdata uintptr
  2241. Frem int32
  2242. Findex int32
  2243. }
  2244. type Txcb_keysym_t = uint32
  2245. type Txcb_keysym_iterator_t = struct {
  2246. Fdata uintptr
  2247. Frem int32
  2248. Findex int32
  2249. }
  2250. type Txcb_keycode_t = uint8
  2251. type Txcb_keycode_iterator_t = struct {
  2252. Fdata uintptr
  2253. Frem int32
  2254. Findex int32
  2255. }
  2256. type Txcb_keycode32_t = uint32
  2257. type Txcb_keycode32_iterator_t = struct {
  2258. Fdata uintptr
  2259. Frem int32
  2260. Findex int32
  2261. }
  2262. type Txcb_button_t = uint8
  2263. type Txcb_button_iterator_t = struct {
  2264. Fdata uintptr
  2265. Frem int32
  2266. Findex int32
  2267. }
  2268. type Txcb_point_t = struct {
  2269. Fx Tint16_t
  2270. Fy Tint16_t
  2271. }
  2272. type Txcb_point_iterator_t = struct {
  2273. Fdata uintptr
  2274. Frem int32
  2275. Findex int32
  2276. }
  2277. type Txcb_rectangle_t = struct {
  2278. Fx Tint16_t
  2279. Fy Tint16_t
  2280. Fwidth Tuint16_t
  2281. Fheight Tuint16_t
  2282. }
  2283. type Txcb_rectangle_iterator_t = struct {
  2284. Fdata uintptr
  2285. Frem int32
  2286. Findex int32
  2287. }
  2288. type Txcb_arc_t = struct {
  2289. Fx Tint16_t
  2290. Fy Tint16_t
  2291. Fwidth Tuint16_t
  2292. Fheight Tuint16_t
  2293. Fangle1 Tint16_t
  2294. Fangle2 Tint16_t
  2295. }
  2296. type Txcb_arc_iterator_t = struct {
  2297. Fdata uintptr
  2298. Frem int32
  2299. Findex int32
  2300. }
  2301. type Txcb_format_t = struct {
  2302. Fdepth Tuint8_t
  2303. Fbits_per_pixel Tuint8_t
  2304. Fscanline_pad Tuint8_t
  2305. Fpad0 [5]Tuint8_t
  2306. }
  2307. type Txcb_format_iterator_t = struct {
  2308. Fdata uintptr
  2309. Frem int32
  2310. Findex int32
  2311. }
  2312. type Txcb_visual_class_t = int32
  2313. type _xcb_visual_class_t = int32
  2314. const _XCB_VISUAL_CLASS_STATIC_GRAY = 0
  2315. const _XCB_VISUAL_CLASS_GRAY_SCALE = 1
  2316. const _XCB_VISUAL_CLASS_STATIC_COLOR = 2
  2317. const _XCB_VISUAL_CLASS_PSEUDO_COLOR = 3
  2318. const _XCB_VISUAL_CLASS_TRUE_COLOR = 4
  2319. const _XCB_VISUAL_CLASS_DIRECT_COLOR = 5
  2320. type Txcb_visualtype_t = struct {
  2321. Fvisual_id Txcb_visualid_t
  2322. F_class Tuint8_t
  2323. Fbits_per_rgb_value Tuint8_t
  2324. Fcolormap_entries Tuint16_t
  2325. Fred_mask Tuint32_t
  2326. Fgreen_mask Tuint32_t
  2327. Fblue_mask Tuint32_t
  2328. Fpad0 [4]Tuint8_t
  2329. }
  2330. type Txcb_visualtype_iterator_t = struct {
  2331. Fdata uintptr
  2332. Frem int32
  2333. Findex int32
  2334. }
  2335. type Txcb_depth_t = struct {
  2336. Fdepth Tuint8_t
  2337. Fpad0 Tuint8_t
  2338. Fvisuals_len Tuint16_t
  2339. Fpad1 [4]Tuint8_t
  2340. }
  2341. type Txcb_depth_iterator_t = struct {
  2342. Fdata uintptr
  2343. Frem int32
  2344. Findex int32
  2345. }
  2346. type Txcb_event_mask_t = int32
  2347. type _xcb_event_mask_t = int32
  2348. const _XCB_EVENT_MASK_NO_EVENT = 0
  2349. const _XCB_EVENT_MASK_KEY_PRESS = 1
  2350. const _XCB_EVENT_MASK_KEY_RELEASE = 2
  2351. const _XCB_EVENT_MASK_BUTTON_PRESS = 4
  2352. const _XCB_EVENT_MASK_BUTTON_RELEASE = 8
  2353. const _XCB_EVENT_MASK_ENTER_WINDOW = 16
  2354. const _XCB_EVENT_MASK_LEAVE_WINDOW = 32
  2355. const _XCB_EVENT_MASK_POINTER_MOTION = 64
  2356. const _XCB_EVENT_MASK_POINTER_MOTION_HINT = 128
  2357. const _XCB_EVENT_MASK_BUTTON_1_MOTION = 256
  2358. const _XCB_EVENT_MASK_BUTTON_2_MOTION = 512
  2359. const _XCB_EVENT_MASK_BUTTON_3_MOTION = 1024
  2360. const _XCB_EVENT_MASK_BUTTON_4_MOTION = 2048
  2361. const _XCB_EVENT_MASK_BUTTON_5_MOTION = 4096
  2362. const _XCB_EVENT_MASK_BUTTON_MOTION = 8192
  2363. const _XCB_EVENT_MASK_KEYMAP_STATE = 16384
  2364. const _XCB_EVENT_MASK_EXPOSURE = 32768
  2365. const _XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536
  2366. const _XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072
  2367. const _XCB_EVENT_MASK_RESIZE_REDIRECT = 262144
  2368. const _XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288
  2369. const _XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576
  2370. const _XCB_EVENT_MASK_FOCUS_CHANGE = 2097152
  2371. const _XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304
  2372. const _XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608
  2373. const _XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
  2374. type Txcb_backing_store_t = int32
  2375. type _xcb_backing_store_t = int32
  2376. const _XCB_BACKING_STORE_NOT_USEFUL = 0
  2377. const _XCB_BACKING_STORE_WHEN_MAPPED = 1
  2378. const _XCB_BACKING_STORE_ALWAYS = 2
  2379. type Txcb_screen_t = struct {
  2380. Froot Txcb_window_t
  2381. Fdefault_colormap Txcb_colormap_t
  2382. Fwhite_pixel Tuint32_t
  2383. Fblack_pixel Tuint32_t
  2384. Fcurrent_input_masks Tuint32_t
  2385. Fwidth_in_pixels Tuint16_t
  2386. Fheight_in_pixels Tuint16_t
  2387. Fwidth_in_millimeters Tuint16_t
  2388. Fheight_in_millimeters Tuint16_t
  2389. Fmin_installed_maps Tuint16_t
  2390. Fmax_installed_maps Tuint16_t
  2391. Froot_visual Txcb_visualid_t
  2392. Fbacking_stores Tuint8_t
  2393. Fsave_unders Tuint8_t
  2394. Froot_depth Tuint8_t
  2395. Fallowed_depths_len Tuint8_t
  2396. }
  2397. type Txcb_screen_iterator_t = struct {
  2398. Fdata uintptr
  2399. Frem int32
  2400. Findex int32
  2401. }
  2402. type Txcb_setup_request_t = struct {
  2403. Fbyte_order Tuint8_t
  2404. Fpad0 Tuint8_t
  2405. Fprotocol_major_version Tuint16_t
  2406. Fprotocol_minor_version Tuint16_t
  2407. Fauthorization_protocol_name_len Tuint16_t
  2408. Fauthorization_protocol_data_len Tuint16_t
  2409. Fpad1 [2]Tuint8_t
  2410. }
  2411. type Txcb_setup_request_iterator_t = struct {
  2412. Fdata uintptr
  2413. Frem int32
  2414. Findex int32
  2415. }
  2416. type Txcb_setup_failed_t = struct {
  2417. Fstatus Tuint8_t
  2418. Freason_len Tuint8_t
  2419. Fprotocol_major_version Tuint16_t
  2420. Fprotocol_minor_version Tuint16_t
  2421. Flength Tuint16_t
  2422. }
  2423. type Txcb_setup_failed_iterator_t = struct {
  2424. Fdata uintptr
  2425. Frem int32
  2426. Findex int32
  2427. }
  2428. type Txcb_setup_authenticate_t = struct {
  2429. Fstatus Tuint8_t
  2430. Fpad0 [5]Tuint8_t
  2431. Flength Tuint16_t
  2432. }
  2433. type Txcb_setup_authenticate_iterator_t = struct {
  2434. Fdata uintptr
  2435. Frem int32
  2436. Findex int32
  2437. }
  2438. type Txcb_image_order_t = int32
  2439. type _xcb_image_order_t = int32
  2440. const _XCB_IMAGE_ORDER_LSB_FIRST = 0
  2441. const _XCB_IMAGE_ORDER_MSB_FIRST = 1
  2442. type Txcb_setup_t = struct {
  2443. Fstatus Tuint8_t
  2444. Fpad0 Tuint8_t
  2445. Fprotocol_major_version Tuint16_t
  2446. Fprotocol_minor_version Tuint16_t
  2447. Flength Tuint16_t
  2448. Frelease_number Tuint32_t
  2449. Fresource_id_base Tuint32_t
  2450. Fresource_id_mask Tuint32_t
  2451. Fmotion_buffer_size Tuint32_t
  2452. Fvendor_len Tuint16_t
  2453. Fmaximum_request_length Tuint16_t
  2454. Froots_len Tuint8_t
  2455. Fpixmap_formats_len Tuint8_t
  2456. Fimage_byte_order Tuint8_t
  2457. Fbitmap_format_bit_order Tuint8_t
  2458. Fbitmap_format_scanline_unit Tuint8_t
  2459. Fbitmap_format_scanline_pad Tuint8_t
  2460. Fmin_keycode Txcb_keycode_t
  2461. Fmax_keycode Txcb_keycode_t
  2462. Fpad1 [4]Tuint8_t
  2463. }
  2464. type Txcb_setup_iterator_t = struct {
  2465. Fdata uintptr
  2466. Frem int32
  2467. Findex int32
  2468. }
  2469. type Txcb_mod_mask_t = int32
  2470. type _xcb_mod_mask_t = int32
  2471. const _XCB_MOD_MASK_SHIFT = 1
  2472. const _XCB_MOD_MASK_LOCK = 2
  2473. const _XCB_MOD_MASK_CONTROL = 4
  2474. const _XCB_MOD_MASK_1 = 8
  2475. const _XCB_MOD_MASK_2 = 16
  2476. const _XCB_MOD_MASK_3 = 32
  2477. const _XCB_MOD_MASK_4 = 64
  2478. const _XCB_MOD_MASK_5 = 128
  2479. const _XCB_MOD_MASK_ANY = 32768
  2480. type Txcb_key_but_mask_t = int32
  2481. type _xcb_key_but_mask_t = int32
  2482. const _XCB_KEY_BUT_MASK_SHIFT = 1
  2483. const _XCB_KEY_BUT_MASK_LOCK = 2
  2484. const _XCB_KEY_BUT_MASK_CONTROL = 4
  2485. const _XCB_KEY_BUT_MASK_MOD_1 = 8
  2486. const _XCB_KEY_BUT_MASK_MOD_2 = 16
  2487. const _XCB_KEY_BUT_MASK_MOD_3 = 32
  2488. const _XCB_KEY_BUT_MASK_MOD_4 = 64
  2489. const _XCB_KEY_BUT_MASK_MOD_5 = 128
  2490. const _XCB_KEY_BUT_MASK_BUTTON_1 = 256
  2491. const _XCB_KEY_BUT_MASK_BUTTON_2 = 512
  2492. const _XCB_KEY_BUT_MASK_BUTTON_3 = 1024
  2493. const _XCB_KEY_BUT_MASK_BUTTON_4 = 2048
  2494. const _XCB_KEY_BUT_MASK_BUTTON_5 = 4096
  2495. type Txcb_window_enum_t = int32
  2496. type _xcb_window_enum_t = int32
  2497. const _XCB_WINDOW_NONE = 0
  2498. type Txcb_key_press_event_t = struct {
  2499. Fresponse_type Tuint8_t
  2500. Fdetail Txcb_keycode_t
  2501. Fsequence Tuint16_t
  2502. Ftime Txcb_timestamp_t
  2503. Froot Txcb_window_t
  2504. Fevent Txcb_window_t
  2505. Fchild Txcb_window_t
  2506. Froot_x Tint16_t
  2507. Froot_y Tint16_t
  2508. Fevent_x Tint16_t
  2509. Fevent_y Tint16_t
  2510. Fstate Tuint16_t
  2511. Fsame_screen Tuint8_t
  2512. Fpad0 Tuint8_t
  2513. }
  2514. type Txcb_key_release_event_t = struct {
  2515. Fresponse_type Tuint8_t
  2516. Fdetail Txcb_keycode_t
  2517. Fsequence Tuint16_t
  2518. Ftime Txcb_timestamp_t
  2519. Froot Txcb_window_t
  2520. Fevent Txcb_window_t
  2521. Fchild Txcb_window_t
  2522. Froot_x Tint16_t
  2523. Froot_y Tint16_t
  2524. Fevent_x Tint16_t
  2525. Fevent_y Tint16_t
  2526. Fstate Tuint16_t
  2527. Fsame_screen Tuint8_t
  2528. Fpad0 Tuint8_t
  2529. }
  2530. type Txcb_key_press_event_t1 = Txcb_key_release_event_t
  2531. type Txcb_button_mask_t = int32
  2532. type _xcb_button_mask_t = int32
  2533. const _XCB_BUTTON_MASK_1 = 256
  2534. const _XCB_BUTTON_MASK_2 = 512
  2535. const _XCB_BUTTON_MASK_3 = 1024
  2536. const _XCB_BUTTON_MASK_4 = 2048
  2537. const _XCB_BUTTON_MASK_5 = 4096
  2538. const _XCB_BUTTON_MASK_ANY = 32768
  2539. type Txcb_button_press_event_t = struct {
  2540. Fresponse_type Tuint8_t
  2541. Fdetail Txcb_button_t
  2542. Fsequence Tuint16_t
  2543. Ftime Txcb_timestamp_t
  2544. Froot Txcb_window_t
  2545. Fevent Txcb_window_t
  2546. Fchild Txcb_window_t
  2547. Froot_x Tint16_t
  2548. Froot_y Tint16_t
  2549. Fevent_x Tint16_t
  2550. Fevent_y Tint16_t
  2551. Fstate Tuint16_t
  2552. Fsame_screen Tuint8_t
  2553. Fpad0 Tuint8_t
  2554. }
  2555. type Txcb_button_release_event_t = struct {
  2556. Fresponse_type Tuint8_t
  2557. Fdetail Txcb_button_t
  2558. Fsequence Tuint16_t
  2559. Ftime Txcb_timestamp_t
  2560. Froot Txcb_window_t
  2561. Fevent Txcb_window_t
  2562. Fchild Txcb_window_t
  2563. Froot_x Tint16_t
  2564. Froot_y Tint16_t
  2565. Fevent_x Tint16_t
  2566. Fevent_y Tint16_t
  2567. Fstate Tuint16_t
  2568. Fsame_screen Tuint8_t
  2569. Fpad0 Tuint8_t
  2570. }
  2571. type Txcb_button_press_event_t1 = Txcb_button_release_event_t
  2572. type Txcb_motion_t = int32
  2573. type _xcb_motion_t = int32
  2574. const _XCB_MOTION_NORMAL = 0
  2575. const _XCB_MOTION_HINT = 1
  2576. type Txcb_motion_notify_event_t = struct {
  2577. Fresponse_type Tuint8_t
  2578. Fdetail Tuint8_t
  2579. Fsequence Tuint16_t
  2580. Ftime Txcb_timestamp_t
  2581. Froot Txcb_window_t
  2582. Fevent Txcb_window_t
  2583. Fchild Txcb_window_t
  2584. Froot_x Tint16_t
  2585. Froot_y Tint16_t
  2586. Fevent_x Tint16_t
  2587. Fevent_y Tint16_t
  2588. Fstate Tuint16_t
  2589. Fsame_screen Tuint8_t
  2590. Fpad0 Tuint8_t
  2591. }
  2592. type Txcb_notify_detail_t = int32
  2593. type _xcb_notify_detail_t = int32
  2594. const _XCB_NOTIFY_DETAIL_ANCESTOR = 0
  2595. const _XCB_NOTIFY_DETAIL_VIRTUAL = 1
  2596. const _XCB_NOTIFY_DETAIL_INFERIOR = 2
  2597. const _XCB_NOTIFY_DETAIL_NONLINEAR = 3
  2598. const _XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4
  2599. const _XCB_NOTIFY_DETAIL_POINTER = 5
  2600. const _XCB_NOTIFY_DETAIL_POINTER_ROOT = 6
  2601. const _XCB_NOTIFY_DETAIL_NONE = 7
  2602. type Txcb_notify_mode_t = int32
  2603. type _xcb_notify_mode_t = int32
  2604. const _XCB_NOTIFY_MODE_NORMAL = 0
  2605. const _XCB_NOTIFY_MODE_GRAB = 1
  2606. const _XCB_NOTIFY_MODE_UNGRAB = 2
  2607. const _XCB_NOTIFY_MODE_WHILE_GRABBED = 3
  2608. type Txcb_enter_notify_event_t = struct {
  2609. Fresponse_type Tuint8_t
  2610. Fdetail Tuint8_t
  2611. Fsequence Tuint16_t
  2612. Ftime Txcb_timestamp_t
  2613. Froot Txcb_window_t
  2614. Fevent Txcb_window_t
  2615. Fchild Txcb_window_t
  2616. Froot_x Tint16_t
  2617. Froot_y Tint16_t
  2618. Fevent_x Tint16_t
  2619. Fevent_y Tint16_t
  2620. Fstate Tuint16_t
  2621. Fmode Tuint8_t
  2622. Fsame_screen_focus Tuint8_t
  2623. }
  2624. type Txcb_leave_notify_event_t = struct {
  2625. Fresponse_type Tuint8_t
  2626. Fdetail Tuint8_t
  2627. Fsequence Tuint16_t
  2628. Ftime Txcb_timestamp_t
  2629. Froot Txcb_window_t
  2630. Fevent Txcb_window_t
  2631. Fchild Txcb_window_t
  2632. Froot_x Tint16_t
  2633. Froot_y Tint16_t
  2634. Fevent_x Tint16_t
  2635. Fevent_y Tint16_t
  2636. Fstate Tuint16_t
  2637. Fmode Tuint8_t
  2638. Fsame_screen_focus Tuint8_t
  2639. }
  2640. type Txcb_enter_notify_event_t1 = Txcb_leave_notify_event_t
  2641. type Txcb_focus_in_event_t = struct {
  2642. Fresponse_type Tuint8_t
  2643. Fdetail Tuint8_t
  2644. Fsequence Tuint16_t
  2645. Fevent Txcb_window_t
  2646. Fmode Tuint8_t
  2647. Fpad0 [3]Tuint8_t
  2648. }
  2649. type Txcb_focus_out_event_t = struct {
  2650. Fresponse_type Tuint8_t
  2651. Fdetail Tuint8_t
  2652. Fsequence Tuint16_t
  2653. Fevent Txcb_window_t
  2654. Fmode Tuint8_t
  2655. Fpad0 [3]Tuint8_t
  2656. }
  2657. type Txcb_focus_in_event_t1 = Txcb_focus_out_event_t
  2658. type Txcb_keymap_notify_event_t = struct {
  2659. Fresponse_type Tuint8_t
  2660. Fkeys [31]Tuint8_t
  2661. }
  2662. type Txcb_expose_event_t = struct {
  2663. Fresponse_type Tuint8_t
  2664. Fpad0 Tuint8_t
  2665. Fsequence Tuint16_t
  2666. Fwindow Txcb_window_t
  2667. Fx Tuint16_t
  2668. Fy Tuint16_t
  2669. Fwidth Tuint16_t
  2670. Fheight Tuint16_t
  2671. Fcount Tuint16_t
  2672. Fpad1 [2]Tuint8_t
  2673. }
  2674. type Txcb_graphics_exposure_event_t = struct {
  2675. Fresponse_type Tuint8_t
  2676. Fpad0 Tuint8_t
  2677. Fsequence Tuint16_t
  2678. Fdrawable Txcb_drawable_t
  2679. Fx Tuint16_t
  2680. Fy Tuint16_t
  2681. Fwidth Tuint16_t
  2682. Fheight Tuint16_t
  2683. Fminor_opcode Tuint16_t
  2684. Fcount Tuint16_t
  2685. Fmajor_opcode Tuint8_t
  2686. Fpad1 [3]Tuint8_t
  2687. }
  2688. type Txcb_no_exposure_event_t = struct {
  2689. Fresponse_type Tuint8_t
  2690. Fpad0 Tuint8_t
  2691. Fsequence Tuint16_t
  2692. Fdrawable Txcb_drawable_t
  2693. Fminor_opcode Tuint16_t
  2694. Fmajor_opcode Tuint8_t
  2695. Fpad1 Tuint8_t
  2696. }
  2697. type Txcb_visibility_t = int32
  2698. type _xcb_visibility_t = int32
  2699. const _XCB_VISIBILITY_UNOBSCURED = 0
  2700. const _XCB_VISIBILITY_PARTIALLY_OBSCURED = 1
  2701. const _XCB_VISIBILITY_FULLY_OBSCURED = 2
  2702. type Txcb_visibility_notify_event_t = struct {
  2703. Fresponse_type Tuint8_t
  2704. Fpad0 Tuint8_t
  2705. Fsequence Tuint16_t
  2706. Fwindow Txcb_window_t
  2707. Fstate Tuint8_t
  2708. Fpad1 [3]Tuint8_t
  2709. }
  2710. type Txcb_create_notify_event_t = struct {
  2711. Fresponse_type Tuint8_t
  2712. Fpad0 Tuint8_t
  2713. Fsequence Tuint16_t
  2714. Fparent Txcb_window_t
  2715. Fwindow Txcb_window_t
  2716. Fx Tint16_t
  2717. Fy Tint16_t
  2718. Fwidth Tuint16_t
  2719. Fheight Tuint16_t
  2720. Fborder_width Tuint16_t
  2721. Foverride_redirect Tuint8_t
  2722. Fpad1 Tuint8_t
  2723. }
  2724. type Txcb_destroy_notify_event_t = struct {
  2725. Fresponse_type Tuint8_t
  2726. Fpad0 Tuint8_t
  2727. Fsequence Tuint16_t
  2728. Fevent Txcb_window_t
  2729. Fwindow Txcb_window_t
  2730. }
  2731. type Txcb_unmap_notify_event_t = struct {
  2732. Fresponse_type Tuint8_t
  2733. Fpad0 Tuint8_t
  2734. Fsequence Tuint16_t
  2735. Fevent Txcb_window_t
  2736. Fwindow Txcb_window_t
  2737. Ffrom_configure Tuint8_t
  2738. Fpad1 [3]Tuint8_t
  2739. }
  2740. type Txcb_map_notify_event_t = struct {
  2741. Fresponse_type Tuint8_t
  2742. Fpad0 Tuint8_t
  2743. Fsequence Tuint16_t
  2744. Fevent Txcb_window_t
  2745. Fwindow Txcb_window_t
  2746. Foverride_redirect Tuint8_t
  2747. Fpad1 [3]Tuint8_t
  2748. }
  2749. type Txcb_map_request_event_t = struct {
  2750. Fresponse_type Tuint8_t
  2751. Fpad0 Tuint8_t
  2752. Fsequence Tuint16_t
  2753. Fparent Txcb_window_t
  2754. Fwindow Txcb_window_t
  2755. }
  2756. type Txcb_reparent_notify_event_t = struct {
  2757. Fresponse_type Tuint8_t
  2758. Fpad0 Tuint8_t
  2759. Fsequence Tuint16_t
  2760. Fevent Txcb_window_t
  2761. Fwindow Txcb_window_t
  2762. Fparent Txcb_window_t
  2763. Fx Tint16_t
  2764. Fy Tint16_t
  2765. Foverride_redirect Tuint8_t
  2766. Fpad1 [3]Tuint8_t
  2767. }
  2768. type Txcb_configure_notify_event_t = struct {
  2769. Fresponse_type Tuint8_t
  2770. Fpad0 Tuint8_t
  2771. Fsequence Tuint16_t
  2772. Fevent Txcb_window_t
  2773. Fwindow Txcb_window_t
  2774. Fabove_sibling Txcb_window_t
  2775. Fx Tint16_t
  2776. Fy Tint16_t
  2777. Fwidth Tuint16_t
  2778. Fheight Tuint16_t
  2779. Fborder_width Tuint16_t
  2780. Foverride_redirect Tuint8_t
  2781. Fpad1 Tuint8_t
  2782. }
  2783. type Txcb_configure_request_event_t = struct {
  2784. Fresponse_type Tuint8_t
  2785. Fstack_mode Tuint8_t
  2786. Fsequence Tuint16_t
  2787. Fparent Txcb_window_t
  2788. Fwindow Txcb_window_t
  2789. Fsibling Txcb_window_t
  2790. Fx Tint16_t
  2791. Fy Tint16_t
  2792. Fwidth Tuint16_t
  2793. Fheight Tuint16_t
  2794. Fborder_width Tuint16_t
  2795. Fvalue_mask Tuint16_t
  2796. }
  2797. type Txcb_gravity_notify_event_t = struct {
  2798. Fresponse_type Tuint8_t
  2799. Fpad0 Tuint8_t
  2800. Fsequence Tuint16_t
  2801. Fevent Txcb_window_t
  2802. Fwindow Txcb_window_t
  2803. Fx Tint16_t
  2804. Fy Tint16_t
  2805. }
  2806. type Txcb_resize_request_event_t = struct {
  2807. Fresponse_type Tuint8_t
  2808. Fpad0 Tuint8_t
  2809. Fsequence Tuint16_t
  2810. Fwindow Txcb_window_t
  2811. Fwidth Tuint16_t
  2812. Fheight Tuint16_t
  2813. }
  2814. type Txcb_place_t = int32
  2815. type _xcb_place_t = int32
  2816. const _XCB_PLACE_ON_TOP = 0
  2817. const _XCB_PLACE_ON_BOTTOM = 1
  2818. type Txcb_circulate_notify_event_t = struct {
  2819. Fresponse_type Tuint8_t
  2820. Fpad0 Tuint8_t
  2821. Fsequence Tuint16_t
  2822. Fevent Txcb_window_t
  2823. Fwindow Txcb_window_t
  2824. Fpad1 [4]Tuint8_t
  2825. Fplace Tuint8_t
  2826. Fpad2 [3]Tuint8_t
  2827. }
  2828. type Txcb_circulate_request_event_t = struct {
  2829. Fresponse_type Tuint8_t
  2830. Fpad0 Tuint8_t
  2831. Fsequence Tuint16_t
  2832. Fevent Txcb_window_t
  2833. Fwindow Txcb_window_t
  2834. Fpad1 [4]Tuint8_t
  2835. Fplace Tuint8_t
  2836. Fpad2 [3]Tuint8_t
  2837. }
  2838. type Txcb_circulate_notify_event_t1 = Txcb_circulate_request_event_t
  2839. type Txcb_property_t = int32
  2840. type _xcb_property_t = int32
  2841. const _XCB_PROPERTY_NEW_VALUE = 0
  2842. const _XCB_PROPERTY_DELETE = 1
  2843. type Txcb_property_notify_event_t = struct {
  2844. Fresponse_type Tuint8_t
  2845. Fpad0 Tuint8_t
  2846. Fsequence Tuint16_t
  2847. Fwindow Txcb_window_t
  2848. Fatom Txcb_atom_t
  2849. Ftime Txcb_timestamp_t
  2850. Fstate Tuint8_t
  2851. Fpad1 [3]Tuint8_t
  2852. }
  2853. type Txcb_selection_clear_event_t = struct {
  2854. Fresponse_type Tuint8_t
  2855. Fpad0 Tuint8_t
  2856. Fsequence Tuint16_t
  2857. Ftime Txcb_timestamp_t
  2858. Fowner Txcb_window_t
  2859. Fselection Txcb_atom_t
  2860. }
  2861. type Txcb_time_t = int32
  2862. type _xcb_time_t = int32
  2863. const _XCB_TIME_CURRENT_TIME = 0
  2864. type Txcb_atom_enum_t = int32
  2865. type _xcb_atom_enum_t = int32
  2866. const _XCB_ATOM_NONE = 0
  2867. const _XCB_ATOM_ANY = 0
  2868. const _XCB_ATOM_PRIMARY = 1
  2869. const _XCB_ATOM_SECONDARY = 2
  2870. const _XCB_ATOM_ARC = 3
  2871. const _XCB_ATOM_ATOM = 4
  2872. const _XCB_ATOM_BITMAP = 5
  2873. const _XCB_ATOM_CARDINAL = 6
  2874. const _XCB_ATOM_COLORMAP = 7
  2875. const _XCB_ATOM_CURSOR = 8
  2876. const _XCB_ATOM_CUT_BUFFER0 = 9
  2877. const _XCB_ATOM_CUT_BUFFER1 = 10
  2878. const _XCB_ATOM_CUT_BUFFER2 = 11
  2879. const _XCB_ATOM_CUT_BUFFER3 = 12
  2880. const _XCB_ATOM_CUT_BUFFER4 = 13
  2881. const _XCB_ATOM_CUT_BUFFER5 = 14
  2882. const _XCB_ATOM_CUT_BUFFER6 = 15
  2883. const _XCB_ATOM_CUT_BUFFER7 = 16
  2884. const _XCB_ATOM_DRAWABLE = 17
  2885. const _XCB_ATOM_FONT = 18
  2886. const _XCB_ATOM_INTEGER = 19
  2887. const _XCB_ATOM_PIXMAP = 20
  2888. const _XCB_ATOM_POINT = 21
  2889. const _XCB_ATOM_RECTANGLE = 22
  2890. const _XCB_ATOM_RESOURCE_MANAGER = 23
  2891. const _XCB_ATOM_RGB_COLOR_MAP = 24
  2892. const _XCB_ATOM_RGB_BEST_MAP = 25
  2893. const _XCB_ATOM_RGB_BLUE_MAP = 26
  2894. const _XCB_ATOM_RGB_DEFAULT_MAP = 27
  2895. const _XCB_ATOM_RGB_GRAY_MAP = 28
  2896. const _XCB_ATOM_RGB_GREEN_MAP = 29
  2897. const _XCB_ATOM_RGB_RED_MAP = 30
  2898. const _XCB_ATOM_STRING = 31
  2899. const _XCB_ATOM_VISUALID = 32
  2900. const _XCB_ATOM_WINDOW = 33
  2901. const _XCB_ATOM_WM_COMMAND = 34
  2902. const _XCB_ATOM_WM_HINTS = 35
  2903. const _XCB_ATOM_WM_CLIENT_MACHINE = 36
  2904. const _XCB_ATOM_WM_ICON_NAME = 37
  2905. const _XCB_ATOM_WM_ICON_SIZE = 38
  2906. const _XCB_ATOM_WM_NAME = 39
  2907. const _XCB_ATOM_WM_NORMAL_HINTS = 40
  2908. const _XCB_ATOM_WM_SIZE_HINTS = 41
  2909. const _XCB_ATOM_WM_ZOOM_HINTS = 42
  2910. const _XCB_ATOM_MIN_SPACE = 43
  2911. const _XCB_ATOM_NORM_SPACE = 44
  2912. const _XCB_ATOM_MAX_SPACE = 45
  2913. const _XCB_ATOM_END_SPACE = 46
  2914. const _XCB_ATOM_SUPERSCRIPT_X = 47
  2915. const _XCB_ATOM_SUPERSCRIPT_Y = 48
  2916. const _XCB_ATOM_SUBSCRIPT_X = 49
  2917. const _XCB_ATOM_SUBSCRIPT_Y = 50
  2918. const _XCB_ATOM_UNDERLINE_POSITION = 51
  2919. const _XCB_ATOM_UNDERLINE_THICKNESS = 52
  2920. const _XCB_ATOM_STRIKEOUT_ASCENT = 53
  2921. const _XCB_ATOM_STRIKEOUT_DESCENT = 54
  2922. const _XCB_ATOM_ITALIC_ANGLE = 55
  2923. const _XCB_ATOM_X_HEIGHT = 56
  2924. const _XCB_ATOM_QUAD_WIDTH = 57
  2925. const _XCB_ATOM_WEIGHT = 58
  2926. const _XCB_ATOM_POINT_SIZE = 59
  2927. const _XCB_ATOM_RESOLUTION = 60
  2928. const _XCB_ATOM_COPYRIGHT = 61
  2929. const _XCB_ATOM_NOTICE = 62
  2930. const _XCB_ATOM_FONT_NAME = 63
  2931. const _XCB_ATOM_FAMILY_NAME = 64
  2932. const _XCB_ATOM_FULL_NAME = 65
  2933. const _XCB_ATOM_CAP_HEIGHT = 66
  2934. const _XCB_ATOM_WM_CLASS = 67
  2935. const _XCB_ATOM_WM_TRANSIENT_FOR = 68
  2936. type Txcb_selection_request_event_t = struct {
  2937. Fresponse_type Tuint8_t
  2938. Fpad0 Tuint8_t
  2939. Fsequence Tuint16_t
  2940. Ftime Txcb_timestamp_t
  2941. Fowner Txcb_window_t
  2942. Frequestor Txcb_window_t
  2943. Fselection Txcb_atom_t
  2944. Ftarget Txcb_atom_t
  2945. Fproperty Txcb_atom_t
  2946. }
  2947. type Txcb_selection_notify_event_t = struct {
  2948. Fresponse_type Tuint8_t
  2949. Fpad0 Tuint8_t
  2950. Fsequence Tuint16_t
  2951. Ftime Txcb_timestamp_t
  2952. Frequestor Txcb_window_t
  2953. Fselection Txcb_atom_t
  2954. Ftarget Txcb_atom_t
  2955. Fproperty Txcb_atom_t
  2956. }
  2957. type Txcb_colormap_state_t = int32
  2958. type _xcb_colormap_state_t = int32
  2959. const _XCB_COLORMAP_STATE_UNINSTALLED = 0
  2960. const _XCB_COLORMAP_STATE_INSTALLED = 1
  2961. type Txcb_colormap_enum_t = int32
  2962. type _xcb_colormap_enum_t = int32
  2963. const _XCB_COLORMAP_NONE = 0
  2964. type Txcb_colormap_notify_event_t = struct {
  2965. Fresponse_type Tuint8_t
  2966. Fpad0 Tuint8_t
  2967. Fsequence Tuint16_t
  2968. Fwindow Txcb_window_t
  2969. Fcolormap Txcb_colormap_t
  2970. F_new Tuint8_t
  2971. Fstate Tuint8_t
  2972. Fpad1 [2]Tuint8_t
  2973. }
  2974. type Txcb_client_message_data_t = struct {
  2975. Fdata16 [0][10]Tuint16_t
  2976. Fdata32 [0][5]Tuint32_t
  2977. Fdata8 [20]Tuint8_t
  2978. }
  2979. type Txcb_client_message_data_iterator_t = struct {
  2980. Fdata uintptr
  2981. Frem int32
  2982. Findex int32
  2983. }
  2984. type Txcb_client_message_event_t = struct {
  2985. Fresponse_type Tuint8_t
  2986. Fformat Tuint8_t
  2987. Fsequence Tuint16_t
  2988. Fwindow Txcb_window_t
  2989. Ftype1 Txcb_atom_t
  2990. Fdata Txcb_client_message_data_t
  2991. }
  2992. type Txcb_mapping_t = int32
  2993. type _xcb_mapping_t = int32
  2994. const _XCB_MAPPING_MODIFIER = 0
  2995. const _XCB_MAPPING_KEYBOARD = 1
  2996. const _XCB_MAPPING_POINTER = 2
  2997. type Txcb_mapping_notify_event_t = struct {
  2998. Fresponse_type Tuint8_t
  2999. Fpad0 Tuint8_t
  3000. Fsequence Tuint16_t
  3001. Frequest Tuint8_t
  3002. Ffirst_keycode Txcb_keycode_t
  3003. Fcount Tuint8_t
  3004. Fpad1 Tuint8_t
  3005. }
  3006. type Txcb_ge_generic_event_t = struct {
  3007. Fresponse_type Tuint8_t
  3008. Fextension Tuint8_t
  3009. Fsequence Tuint16_t
  3010. Flength Tuint32_t
  3011. Fevent_type Tuint16_t
  3012. Fpad0 [22]Tuint8_t
  3013. Ffull_sequence Tuint32_t
  3014. }
  3015. type Txcb_request_error_t = struct {
  3016. Fresponse_type Tuint8_t
  3017. Ferror_code Tuint8_t
  3018. Fsequence Tuint16_t
  3019. Fbad_value Tuint32_t
  3020. Fminor_opcode Tuint16_t
  3021. Fmajor_opcode Tuint8_t
  3022. Fpad0 Tuint8_t
  3023. }
  3024. type Txcb_value_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_window_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_value_error_t1 = Txcb_window_error_t
  3043. type Txcb_pixmap_error_t = struct {
  3044. Fresponse_type Tuint8_t
  3045. Ferror_code Tuint8_t
  3046. Fsequence Tuint16_t
  3047. Fbad_value Tuint32_t
  3048. Fminor_opcode Tuint16_t
  3049. Fmajor_opcode Tuint8_t
  3050. Fpad0 Tuint8_t
  3051. }
  3052. type Txcb_atom_error_t = struct {
  3053. Fresponse_type Tuint8_t
  3054. Ferror_code Tuint8_t
  3055. Fsequence Tuint16_t
  3056. Fbad_value Tuint32_t
  3057. Fminor_opcode Tuint16_t
  3058. Fmajor_opcode Tuint8_t
  3059. Fpad0 Tuint8_t
  3060. }
  3061. type Txcb_cursor_error_t = struct {
  3062. Fresponse_type Tuint8_t
  3063. Ferror_code Tuint8_t
  3064. Fsequence Tuint16_t
  3065. Fbad_value Tuint32_t
  3066. Fminor_opcode Tuint16_t
  3067. Fmajor_opcode Tuint8_t
  3068. Fpad0 Tuint8_t
  3069. }
  3070. type Txcb_font_error_t = struct {
  3071. Fresponse_type Tuint8_t
  3072. Ferror_code Tuint8_t
  3073. Fsequence Tuint16_t
  3074. Fbad_value Tuint32_t
  3075. Fminor_opcode Tuint16_t
  3076. Fmajor_opcode Tuint8_t
  3077. Fpad0 Tuint8_t
  3078. }
  3079. type Txcb_match_error_t = struct {
  3080. Fresponse_type Tuint8_t
  3081. Ferror_code Tuint8_t
  3082. Fsequence Tuint16_t
  3083. Fbad_value Tuint32_t
  3084. Fminor_opcode Tuint16_t
  3085. Fmajor_opcode Tuint8_t
  3086. Fpad0 Tuint8_t
  3087. }
  3088. type Txcb_request_error_t1 = Txcb_match_error_t
  3089. type Txcb_drawable_error_t = struct {
  3090. Fresponse_type Tuint8_t
  3091. Ferror_code Tuint8_t
  3092. Fsequence Tuint16_t
  3093. Fbad_value Tuint32_t
  3094. Fminor_opcode Tuint16_t
  3095. Fmajor_opcode Tuint8_t
  3096. Fpad0 Tuint8_t
  3097. }
  3098. type Txcb_access_error_t = struct {
  3099. Fresponse_type Tuint8_t
  3100. Ferror_code Tuint8_t
  3101. Fsequence Tuint16_t
  3102. Fbad_value Tuint32_t
  3103. Fminor_opcode Tuint16_t
  3104. Fmajor_opcode Tuint8_t
  3105. Fpad0 Tuint8_t
  3106. }
  3107. type Txcb_alloc_error_t = struct {
  3108. Fresponse_type Tuint8_t
  3109. Ferror_code Tuint8_t
  3110. Fsequence Tuint16_t
  3111. Fbad_value Tuint32_t
  3112. Fminor_opcode Tuint16_t
  3113. Fmajor_opcode Tuint8_t
  3114. Fpad0 Tuint8_t
  3115. }
  3116. type Txcb_colormap_error_t = struct {
  3117. Fresponse_type Tuint8_t
  3118. Ferror_code Tuint8_t
  3119. Fsequence Tuint16_t
  3120. Fbad_value Tuint32_t
  3121. Fminor_opcode Tuint16_t
  3122. Fmajor_opcode Tuint8_t
  3123. Fpad0 Tuint8_t
  3124. }
  3125. type Txcb_g_context_error_t = struct {
  3126. Fresponse_type Tuint8_t
  3127. Ferror_code Tuint8_t
  3128. Fsequence Tuint16_t
  3129. Fbad_value Tuint32_t
  3130. Fminor_opcode Tuint16_t
  3131. Fmajor_opcode Tuint8_t
  3132. Fpad0 Tuint8_t
  3133. }
  3134. type Txcb_id_choice_error_t = struct {
  3135. Fresponse_type Tuint8_t
  3136. Ferror_code Tuint8_t
  3137. Fsequence Tuint16_t
  3138. Fbad_value Tuint32_t
  3139. Fminor_opcode Tuint16_t
  3140. Fmajor_opcode Tuint8_t
  3141. Fpad0 Tuint8_t
  3142. }
  3143. type Txcb_name_error_t = struct {
  3144. Fresponse_type Tuint8_t
  3145. Ferror_code Tuint8_t
  3146. Fsequence Tuint16_t
  3147. Fbad_value Tuint32_t
  3148. Fminor_opcode Tuint16_t
  3149. Fmajor_opcode Tuint8_t
  3150. Fpad0 Tuint8_t
  3151. }
  3152. type Txcb_length_error_t = struct {
  3153. Fresponse_type Tuint8_t
  3154. Ferror_code Tuint8_t
  3155. Fsequence Tuint16_t
  3156. Fbad_value Tuint32_t
  3157. Fminor_opcode Tuint16_t
  3158. Fmajor_opcode Tuint8_t
  3159. Fpad0 Tuint8_t
  3160. }
  3161. type Txcb_implementation_error_t = struct {
  3162. Fresponse_type Tuint8_t
  3163. Ferror_code Tuint8_t
  3164. Fsequence Tuint16_t
  3165. Fbad_value Tuint32_t
  3166. Fminor_opcode Tuint16_t
  3167. Fmajor_opcode Tuint8_t
  3168. Fpad0 Tuint8_t
  3169. }
  3170. type Txcb_window_class_t = int32
  3171. type _xcb_window_class_t = int32
  3172. const _XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0
  3173. const _XCB_WINDOW_CLASS_INPUT_OUTPUT = 1
  3174. const _XCB_WINDOW_CLASS_INPUT_ONLY = 2
  3175. type Txcb_cw_t = int32
  3176. type _xcb_cw_t = int32
  3177. const _XCB_CW_BACK_PIXMAP = 1
  3178. const _XCB_CW_BACK_PIXEL = 2
  3179. const _XCB_CW_BORDER_PIXMAP = 4
  3180. const _XCB_CW_BORDER_PIXEL = 8
  3181. const _XCB_CW_BIT_GRAVITY = 16
  3182. const _XCB_CW_WIN_GRAVITY = 32
  3183. const _XCB_CW_BACKING_STORE = 64
  3184. const _XCB_CW_BACKING_PLANES = 128
  3185. const _XCB_CW_BACKING_PIXEL = 256
  3186. const _XCB_CW_OVERRIDE_REDIRECT = 512
  3187. const _XCB_CW_SAVE_UNDER = 1024
  3188. const _XCB_CW_EVENT_MASK = 2048
  3189. const _XCB_CW_DONT_PROPAGATE = 4096
  3190. const _XCB_CW_COLORMAP = 8192
  3191. const _XCB_CW_CURSOR = 16384
  3192. type Txcb_back_pixmap_t = int32
  3193. type _xcb_back_pixmap_t = int32
  3194. const _XCB_BACK_PIXMAP_NONE = 0
  3195. const _XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
  3196. type Txcb_gravity_t = int32
  3197. type _xcb_gravity_t = int32
  3198. const _XCB_GRAVITY_BIT_FORGET = 0
  3199. const _XCB_GRAVITY_WIN_UNMAP = 0
  3200. const _XCB_GRAVITY_NORTH_WEST = 1
  3201. const _XCB_GRAVITY_NORTH = 2
  3202. const _XCB_GRAVITY_NORTH_EAST = 3
  3203. const _XCB_GRAVITY_WEST = 4
  3204. const _XCB_GRAVITY_CENTER = 5
  3205. const _XCB_GRAVITY_EAST = 6
  3206. const _XCB_GRAVITY_SOUTH_WEST = 7
  3207. const _XCB_GRAVITY_SOUTH = 8
  3208. const _XCB_GRAVITY_SOUTH_EAST = 9
  3209. const _XCB_GRAVITY_STATIC = 10
  3210. type Txcb_create_window_value_list_t = struct {
  3211. Fbackground_pixmap Txcb_pixmap_t
  3212. Fbackground_pixel Tuint32_t
  3213. Fborder_pixmap Txcb_pixmap_t
  3214. Fborder_pixel Tuint32_t
  3215. Fbit_gravity Tuint32_t
  3216. Fwin_gravity Tuint32_t
  3217. Fbacking_store Tuint32_t
  3218. Fbacking_planes Tuint32_t
  3219. Fbacking_pixel Tuint32_t
  3220. Foverride_redirect Txcb_bool32_t
  3221. Fsave_under Txcb_bool32_t
  3222. Fevent_mask Tuint32_t
  3223. Fdo_not_propogate_mask Tuint32_t
  3224. Fcolormap Txcb_colormap_t
  3225. Fcursor Txcb_cursor_t
  3226. }
  3227. type Txcb_create_window_request_t = struct {
  3228. Fmajor_opcode Tuint8_t
  3229. Fdepth Tuint8_t
  3230. Flength Tuint16_t
  3231. Fwid Txcb_window_t
  3232. Fparent Txcb_window_t
  3233. Fx Tint16_t
  3234. Fy Tint16_t
  3235. Fwidth Tuint16_t
  3236. Fheight Tuint16_t
  3237. Fborder_width Tuint16_t
  3238. F_class Tuint16_t
  3239. Fvisual Txcb_visualid_t
  3240. Fvalue_mask Tuint32_t
  3241. }
  3242. type Txcb_change_window_attributes_value_list_t = struct {
  3243. Fbackground_pixmap Txcb_pixmap_t
  3244. Fbackground_pixel Tuint32_t
  3245. Fborder_pixmap Txcb_pixmap_t
  3246. Fborder_pixel Tuint32_t
  3247. Fbit_gravity Tuint32_t
  3248. Fwin_gravity Tuint32_t
  3249. Fbacking_store Tuint32_t
  3250. Fbacking_planes Tuint32_t
  3251. Fbacking_pixel Tuint32_t
  3252. Foverride_redirect Txcb_bool32_t
  3253. Fsave_under Txcb_bool32_t
  3254. Fevent_mask Tuint32_t
  3255. Fdo_not_propogate_mask Tuint32_t
  3256. Fcolormap Txcb_colormap_t
  3257. Fcursor Txcb_cursor_t
  3258. }
  3259. type Txcb_change_window_attributes_request_t = struct {
  3260. Fmajor_opcode Tuint8_t
  3261. Fpad0 Tuint8_t
  3262. Flength Tuint16_t
  3263. Fwindow Txcb_window_t
  3264. Fvalue_mask Tuint32_t
  3265. }
  3266. type Txcb_map_state_t = int32
  3267. type _xcb_map_state_t = int32
  3268. const _XCB_MAP_STATE_UNMAPPED = 0
  3269. const _XCB_MAP_STATE_UNVIEWABLE = 1
  3270. const _XCB_MAP_STATE_VIEWABLE = 2
  3271. type Txcb_get_window_attributes_cookie_t = struct {
  3272. Fsequence uint32
  3273. }
  3274. type Txcb_get_window_attributes_request_t = struct {
  3275. Fmajor_opcode Tuint8_t
  3276. Fpad0 Tuint8_t
  3277. Flength Tuint16_t
  3278. Fwindow Txcb_window_t
  3279. }
  3280. type Txcb_get_window_attributes_reply_t = struct {
  3281. Fresponse_type Tuint8_t
  3282. Fbacking_store Tuint8_t
  3283. Fsequence Tuint16_t
  3284. Flength Tuint32_t
  3285. Fvisual Txcb_visualid_t
  3286. F_class Tuint16_t
  3287. Fbit_gravity Tuint8_t
  3288. Fwin_gravity Tuint8_t
  3289. Fbacking_planes Tuint32_t
  3290. Fbacking_pixel Tuint32_t
  3291. Fsave_under Tuint8_t
  3292. Fmap_is_installed Tuint8_t
  3293. Fmap_state Tuint8_t
  3294. Foverride_redirect Tuint8_t
  3295. Fcolormap Txcb_colormap_t
  3296. Fall_event_masks Tuint32_t
  3297. Fyour_event_mask Tuint32_t
  3298. Fdo_not_propagate_mask Tuint16_t
  3299. Fpad0 [2]Tuint8_t
  3300. }
  3301. type Txcb_destroy_window_request_t = struct {
  3302. Fmajor_opcode Tuint8_t
  3303. Fpad0 Tuint8_t
  3304. Flength Tuint16_t
  3305. Fwindow Txcb_window_t
  3306. }
  3307. type Txcb_destroy_subwindows_request_t = struct {
  3308. Fmajor_opcode Tuint8_t
  3309. Fpad0 Tuint8_t
  3310. Flength Tuint16_t
  3311. Fwindow Txcb_window_t
  3312. }
  3313. type Txcb_set_mode_t = int32
  3314. type _xcb_set_mode_t = int32
  3315. const _XCB_SET_MODE_INSERT = 0
  3316. const _XCB_SET_MODE_DELETE = 1
  3317. type Txcb_change_save_set_request_t = struct {
  3318. Fmajor_opcode Tuint8_t
  3319. Fmode Tuint8_t
  3320. Flength Tuint16_t
  3321. Fwindow Txcb_window_t
  3322. }
  3323. type Txcb_reparent_window_request_t = struct {
  3324. Fmajor_opcode Tuint8_t
  3325. Fpad0 Tuint8_t
  3326. Flength Tuint16_t
  3327. Fwindow Txcb_window_t
  3328. Fparent Txcb_window_t
  3329. Fx Tint16_t
  3330. Fy Tint16_t
  3331. }
  3332. type Txcb_map_window_request_t = struct {
  3333. Fmajor_opcode Tuint8_t
  3334. Fpad0 Tuint8_t
  3335. Flength Tuint16_t
  3336. Fwindow Txcb_window_t
  3337. }
  3338. type Txcb_map_subwindows_request_t = struct {
  3339. Fmajor_opcode Tuint8_t
  3340. Fpad0 Tuint8_t
  3341. Flength Tuint16_t
  3342. Fwindow Txcb_window_t
  3343. }
  3344. type Txcb_unmap_window_request_t = struct {
  3345. Fmajor_opcode Tuint8_t
  3346. Fpad0 Tuint8_t
  3347. Flength Tuint16_t
  3348. Fwindow Txcb_window_t
  3349. }
  3350. type Txcb_unmap_subwindows_request_t = struct {
  3351. Fmajor_opcode Tuint8_t
  3352. Fpad0 Tuint8_t
  3353. Flength Tuint16_t
  3354. Fwindow Txcb_window_t
  3355. }
  3356. type Txcb_config_window_t = int32
  3357. type _xcb_config_window_t = int32
  3358. const _XCB_CONFIG_WINDOW_X = 1
  3359. const _XCB_CONFIG_WINDOW_Y = 2
  3360. const _XCB_CONFIG_WINDOW_WIDTH = 4
  3361. const _XCB_CONFIG_WINDOW_HEIGHT = 8
  3362. const _XCB_CONFIG_WINDOW_BORDER_WIDTH = 16
  3363. const _XCB_CONFIG_WINDOW_SIBLING = 32
  3364. const _XCB_CONFIG_WINDOW_STACK_MODE = 64
  3365. type Txcb_stack_mode_t = int32
  3366. type _xcb_stack_mode_t = int32
  3367. const _XCB_STACK_MODE_ABOVE = 0
  3368. const _XCB_STACK_MODE_BELOW = 1
  3369. const _XCB_STACK_MODE_TOP_IF = 2
  3370. const _XCB_STACK_MODE_BOTTOM_IF = 3
  3371. const _XCB_STACK_MODE_OPPOSITE = 4
  3372. type Txcb_configure_window_value_list_t = struct {
  3373. Fx Tint32_t
  3374. Fy Tint32_t
  3375. Fwidth Tuint32_t
  3376. Fheight Tuint32_t
  3377. Fborder_width Tuint32_t
  3378. Fsibling Txcb_window_t
  3379. Fstack_mode Tuint32_t
  3380. }
  3381. type Txcb_configure_window_request_t = struct {
  3382. Fmajor_opcode Tuint8_t
  3383. Fpad0 Tuint8_t
  3384. Flength Tuint16_t
  3385. Fwindow Txcb_window_t
  3386. Fvalue_mask Tuint16_t
  3387. Fpad1 [2]Tuint8_t
  3388. }
  3389. type Txcb_circulate_t = int32
  3390. type _xcb_circulate_t = int32
  3391. const _XCB_CIRCULATE_RAISE_LOWEST = 0
  3392. const _XCB_CIRCULATE_LOWER_HIGHEST = 1
  3393. type Txcb_circulate_window_request_t = struct {
  3394. Fmajor_opcode Tuint8_t
  3395. Fdirection Tuint8_t
  3396. Flength Tuint16_t
  3397. Fwindow Txcb_window_t
  3398. }
  3399. type Txcb_get_geometry_cookie_t = struct {
  3400. Fsequence uint32
  3401. }
  3402. type Txcb_get_geometry_request_t = struct {
  3403. Fmajor_opcode Tuint8_t
  3404. Fpad0 Tuint8_t
  3405. Flength Tuint16_t
  3406. Fdrawable Txcb_drawable_t
  3407. }
  3408. type Txcb_get_geometry_reply_t = struct {
  3409. Fresponse_type Tuint8_t
  3410. Fdepth Tuint8_t
  3411. Fsequence Tuint16_t
  3412. Flength Tuint32_t
  3413. Froot Txcb_window_t
  3414. Fx Tint16_t
  3415. Fy Tint16_t
  3416. Fwidth Tuint16_t
  3417. Fheight Tuint16_t
  3418. Fborder_width Tuint16_t
  3419. Fpad0 [2]Tuint8_t
  3420. }
  3421. type Txcb_query_tree_cookie_t = struct {
  3422. Fsequence uint32
  3423. }
  3424. type Txcb_query_tree_request_t = struct {
  3425. Fmajor_opcode Tuint8_t
  3426. Fpad0 Tuint8_t
  3427. Flength Tuint16_t
  3428. Fwindow Txcb_window_t
  3429. }
  3430. type Txcb_query_tree_reply_t = struct {
  3431. Fresponse_type Tuint8_t
  3432. Fpad0 Tuint8_t
  3433. Fsequence Tuint16_t
  3434. Flength Tuint32_t
  3435. Froot Txcb_window_t
  3436. Fparent Txcb_window_t
  3437. Fchildren_len Tuint16_t
  3438. Fpad1 [14]Tuint8_t
  3439. }
  3440. type Txcb_intern_atom_cookie_t = struct {
  3441. Fsequence uint32
  3442. }
  3443. type Txcb_intern_atom_request_t = struct {
  3444. Fmajor_opcode Tuint8_t
  3445. Fonly_if_exists Tuint8_t
  3446. Flength Tuint16_t
  3447. Fname_len Tuint16_t
  3448. Fpad0 [2]Tuint8_t
  3449. }
  3450. type Txcb_intern_atom_reply_t = struct {
  3451. Fresponse_type Tuint8_t
  3452. Fpad0 Tuint8_t
  3453. Fsequence Tuint16_t
  3454. Flength Tuint32_t
  3455. Fatom Txcb_atom_t
  3456. }
  3457. type Txcb_get_atom_name_cookie_t = struct {
  3458. Fsequence uint32
  3459. }
  3460. type Txcb_get_atom_name_request_t = struct {
  3461. Fmajor_opcode Tuint8_t
  3462. Fpad0 Tuint8_t
  3463. Flength Tuint16_t
  3464. Fatom Txcb_atom_t
  3465. }
  3466. type Txcb_get_atom_name_reply_t = struct {
  3467. Fresponse_type Tuint8_t
  3468. Fpad0 Tuint8_t
  3469. Fsequence Tuint16_t
  3470. Flength Tuint32_t
  3471. Fname_len Tuint16_t
  3472. Fpad1 [22]Tuint8_t
  3473. }
  3474. type Txcb_prop_mode_t = int32
  3475. type _xcb_prop_mode_t = int32
  3476. const _XCB_PROP_MODE_REPLACE = 0
  3477. const _XCB_PROP_MODE_PREPEND = 1
  3478. const _XCB_PROP_MODE_APPEND = 2
  3479. type Txcb_change_property_request_t = struct {
  3480. Fmajor_opcode Tuint8_t
  3481. Fmode Tuint8_t
  3482. Flength Tuint16_t
  3483. Fwindow Txcb_window_t
  3484. Fproperty Txcb_atom_t
  3485. Ftype1 Txcb_atom_t
  3486. Fformat Tuint8_t
  3487. Fpad0 [3]Tuint8_t
  3488. Fdata_len Tuint32_t
  3489. }
  3490. type Txcb_delete_property_request_t = struct {
  3491. Fmajor_opcode Tuint8_t
  3492. Fpad0 Tuint8_t
  3493. Flength Tuint16_t
  3494. Fwindow Txcb_window_t
  3495. Fproperty Txcb_atom_t
  3496. }
  3497. type Txcb_get_property_type_t = int32
  3498. type _xcb_get_property_type_t = int32
  3499. const _XCB_GET_PROPERTY_TYPE_ANY = 0
  3500. type Txcb_get_property_cookie_t = struct {
  3501. Fsequence uint32
  3502. }
  3503. type Txcb_get_property_request_t = struct {
  3504. Fmajor_opcode Tuint8_t
  3505. F_delete Tuint8_t
  3506. Flength Tuint16_t
  3507. Fwindow Txcb_window_t
  3508. Fproperty Txcb_atom_t
  3509. Ftype1 Txcb_atom_t
  3510. Flong_offset Tuint32_t
  3511. Flong_length Tuint32_t
  3512. }
  3513. type Txcb_get_property_reply_t = struct {
  3514. Fresponse_type Tuint8_t
  3515. Fformat Tuint8_t
  3516. Fsequence Tuint16_t
  3517. Flength Tuint32_t
  3518. Ftype1 Txcb_atom_t
  3519. Fbytes_after Tuint32_t
  3520. Fvalue_len Tuint32_t
  3521. Fpad0 [12]Tuint8_t
  3522. }
  3523. type Txcb_list_properties_cookie_t = struct {
  3524. Fsequence uint32
  3525. }
  3526. type Txcb_list_properties_request_t = struct {
  3527. Fmajor_opcode Tuint8_t
  3528. Fpad0 Tuint8_t
  3529. Flength Tuint16_t
  3530. Fwindow Txcb_window_t
  3531. }
  3532. type Txcb_list_properties_reply_t = struct {
  3533. Fresponse_type Tuint8_t
  3534. Fpad0 Tuint8_t
  3535. Fsequence Tuint16_t
  3536. Flength Tuint32_t
  3537. Fatoms_len Tuint16_t
  3538. Fpad1 [22]Tuint8_t
  3539. }
  3540. type Txcb_set_selection_owner_request_t = struct {
  3541. Fmajor_opcode Tuint8_t
  3542. Fpad0 Tuint8_t
  3543. Flength Tuint16_t
  3544. Fowner Txcb_window_t
  3545. Fselection Txcb_atom_t
  3546. Ftime Txcb_timestamp_t
  3547. }
  3548. type Txcb_get_selection_owner_cookie_t = struct {
  3549. Fsequence uint32
  3550. }
  3551. type Txcb_get_selection_owner_request_t = struct {
  3552. Fmajor_opcode Tuint8_t
  3553. Fpad0 Tuint8_t
  3554. Flength Tuint16_t
  3555. Fselection Txcb_atom_t
  3556. }
  3557. type Txcb_get_selection_owner_reply_t = struct {
  3558. Fresponse_type Tuint8_t
  3559. Fpad0 Tuint8_t
  3560. Fsequence Tuint16_t
  3561. Flength Tuint32_t
  3562. Fowner Txcb_window_t
  3563. }
  3564. type Txcb_convert_selection_request_t = struct {
  3565. Fmajor_opcode Tuint8_t
  3566. Fpad0 Tuint8_t
  3567. Flength Tuint16_t
  3568. Frequestor Txcb_window_t
  3569. Fselection Txcb_atom_t
  3570. Ftarget Txcb_atom_t
  3571. Fproperty Txcb_atom_t
  3572. Ftime Txcb_timestamp_t
  3573. }
  3574. type Txcb_send_event_dest_t = int32
  3575. type _xcb_send_event_dest_t = int32
  3576. const _XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0
  3577. const _XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
  3578. type Txcb_send_event_request_t = struct {
  3579. Fmajor_opcode Tuint8_t
  3580. Fpropagate Tuint8_t
  3581. Flength Tuint16_t
  3582. Fdestination Txcb_window_t
  3583. Fevent_mask Tuint32_t
  3584. Fevent [32]uint8
  3585. }
  3586. type Txcb_grab_mode_t = int32
  3587. type _xcb_grab_mode_t = int32
  3588. const _XCB_GRAB_MODE_SYNC = 0
  3589. const _XCB_GRAB_MODE_ASYNC = 1
  3590. type Txcb_grab_status_t = int32
  3591. type _xcb_grab_status_t = int32
  3592. const _XCB_GRAB_STATUS_SUCCESS = 0
  3593. const _XCB_GRAB_STATUS_ALREADY_GRABBED = 1
  3594. const _XCB_GRAB_STATUS_INVALID_TIME = 2
  3595. const _XCB_GRAB_STATUS_NOT_VIEWABLE = 3
  3596. const _XCB_GRAB_STATUS_FROZEN = 4
  3597. type Txcb_cursor_enum_t = int32
  3598. type _xcb_cursor_enum_t = int32
  3599. const _XCB_CURSOR_NONE = 0
  3600. type Txcb_grab_pointer_cookie_t = struct {
  3601. Fsequence uint32
  3602. }
  3603. type Txcb_grab_pointer_request_t = struct {
  3604. Fmajor_opcode Tuint8_t
  3605. Fowner_events Tuint8_t
  3606. Flength Tuint16_t
  3607. Fgrab_window Txcb_window_t
  3608. Fevent_mask Tuint16_t
  3609. Fpointer_mode Tuint8_t
  3610. Fkeyboard_mode Tuint8_t
  3611. Fconfine_to Txcb_window_t
  3612. Fcursor Txcb_cursor_t
  3613. Ftime Txcb_timestamp_t
  3614. }
  3615. type Txcb_grab_pointer_reply_t = struct {
  3616. Fresponse_type Tuint8_t
  3617. Fstatus Tuint8_t
  3618. Fsequence Tuint16_t
  3619. Flength Tuint32_t
  3620. }
  3621. type Txcb_ungrab_pointer_request_t = struct {
  3622. Fmajor_opcode Tuint8_t
  3623. Fpad0 Tuint8_t
  3624. Flength Tuint16_t
  3625. Ftime Txcb_timestamp_t
  3626. }
  3627. type Txcb_button_index_t = int32
  3628. type _xcb_button_index_t = int32
  3629. const _XCB_BUTTON_INDEX_ANY = 0
  3630. const _XCB_BUTTON_INDEX_1 = 1
  3631. const _XCB_BUTTON_INDEX_2 = 2
  3632. const _XCB_BUTTON_INDEX_3 = 3
  3633. const _XCB_BUTTON_INDEX_4 = 4
  3634. const _XCB_BUTTON_INDEX_5 = 5
  3635. type Txcb_grab_button_request_t = struct {
  3636. Fmajor_opcode Tuint8_t
  3637. Fowner_events Tuint8_t
  3638. Flength Tuint16_t
  3639. Fgrab_window Txcb_window_t
  3640. Fevent_mask Tuint16_t
  3641. Fpointer_mode Tuint8_t
  3642. Fkeyboard_mode Tuint8_t
  3643. Fconfine_to Txcb_window_t
  3644. Fcursor Txcb_cursor_t
  3645. Fbutton Tuint8_t
  3646. Fpad0 Tuint8_t
  3647. Fmodifiers Tuint16_t
  3648. }
  3649. type Txcb_ungrab_button_request_t = struct {
  3650. Fmajor_opcode Tuint8_t
  3651. Fbutton Tuint8_t
  3652. Flength Tuint16_t
  3653. Fgrab_window Txcb_window_t
  3654. Fmodifiers Tuint16_t
  3655. Fpad0 [2]Tuint8_t
  3656. }
  3657. type Txcb_change_active_pointer_grab_request_t = struct {
  3658. Fmajor_opcode Tuint8_t
  3659. Fpad0 Tuint8_t
  3660. Flength Tuint16_t
  3661. Fcursor Txcb_cursor_t
  3662. Ftime Txcb_timestamp_t
  3663. Fevent_mask Tuint16_t
  3664. Fpad1 [2]Tuint8_t
  3665. }
  3666. type Txcb_grab_keyboard_cookie_t = struct {
  3667. Fsequence uint32
  3668. }
  3669. type Txcb_grab_keyboard_request_t = struct {
  3670. Fmajor_opcode Tuint8_t
  3671. Fowner_events Tuint8_t
  3672. Flength Tuint16_t
  3673. Fgrab_window Txcb_window_t
  3674. Ftime Txcb_timestamp_t
  3675. Fpointer_mode Tuint8_t
  3676. Fkeyboard_mode Tuint8_t
  3677. Fpad0 [2]Tuint8_t
  3678. }
  3679. type Txcb_grab_keyboard_reply_t = struct {
  3680. Fresponse_type Tuint8_t
  3681. Fstatus Tuint8_t
  3682. Fsequence Tuint16_t
  3683. Flength Tuint32_t
  3684. }
  3685. type Txcb_ungrab_keyboard_request_t = struct {
  3686. Fmajor_opcode Tuint8_t
  3687. Fpad0 Tuint8_t
  3688. Flength Tuint16_t
  3689. Ftime Txcb_timestamp_t
  3690. }
  3691. type Txcb_grab_t = int32
  3692. type _xcb_grab_t = int32
  3693. const _XCB_GRAB_ANY = 0
  3694. type Txcb_grab_key_request_t = struct {
  3695. Fmajor_opcode Tuint8_t
  3696. Fowner_events Tuint8_t
  3697. Flength Tuint16_t
  3698. Fgrab_window Txcb_window_t
  3699. Fmodifiers Tuint16_t
  3700. Fkey Txcb_keycode_t
  3701. Fpointer_mode Tuint8_t
  3702. Fkeyboard_mode Tuint8_t
  3703. Fpad0 [3]Tuint8_t
  3704. }
  3705. type Txcb_ungrab_key_request_t = struct {
  3706. Fmajor_opcode Tuint8_t
  3707. Fkey Txcb_keycode_t
  3708. Flength Tuint16_t
  3709. Fgrab_window Txcb_window_t
  3710. Fmodifiers Tuint16_t
  3711. Fpad0 [2]Tuint8_t
  3712. }
  3713. type Txcb_allow_t = int32
  3714. type _xcb_allow_t = int32
  3715. const _XCB_ALLOW_ASYNC_POINTER = 0
  3716. const _XCB_ALLOW_SYNC_POINTER = 1
  3717. const _XCB_ALLOW_REPLAY_POINTER = 2
  3718. const _XCB_ALLOW_ASYNC_KEYBOARD = 3
  3719. const _XCB_ALLOW_SYNC_KEYBOARD = 4
  3720. const _XCB_ALLOW_REPLAY_KEYBOARD = 5
  3721. const _XCB_ALLOW_ASYNC_BOTH = 6
  3722. const _XCB_ALLOW_SYNC_BOTH = 7
  3723. type Txcb_allow_events_request_t = struct {
  3724. Fmajor_opcode Tuint8_t
  3725. Fmode Tuint8_t
  3726. Flength Tuint16_t
  3727. Ftime Txcb_timestamp_t
  3728. }
  3729. type Txcb_grab_server_request_t = struct {
  3730. Fmajor_opcode Tuint8_t
  3731. Fpad0 Tuint8_t
  3732. Flength Tuint16_t
  3733. }
  3734. type Txcb_ungrab_server_request_t = struct {
  3735. Fmajor_opcode Tuint8_t
  3736. Fpad0 Tuint8_t
  3737. Flength Tuint16_t
  3738. }
  3739. type Txcb_query_pointer_cookie_t = struct {
  3740. Fsequence uint32
  3741. }
  3742. type Txcb_query_pointer_request_t = struct {
  3743. Fmajor_opcode Tuint8_t
  3744. Fpad0 Tuint8_t
  3745. Flength Tuint16_t
  3746. Fwindow Txcb_window_t
  3747. }
  3748. type Txcb_query_pointer_reply_t = struct {
  3749. Fresponse_type Tuint8_t
  3750. Fsame_screen Tuint8_t
  3751. Fsequence Tuint16_t
  3752. Flength Tuint32_t
  3753. Froot Txcb_window_t
  3754. Fchild Txcb_window_t
  3755. Froot_x Tint16_t
  3756. Froot_y Tint16_t
  3757. Fwin_x Tint16_t
  3758. Fwin_y Tint16_t
  3759. Fmask Tuint16_t
  3760. Fpad0 [2]Tuint8_t
  3761. }
  3762. type Txcb_timecoord_t = struct {
  3763. Ftime Txcb_timestamp_t
  3764. Fx Tint16_t
  3765. Fy Tint16_t
  3766. }
  3767. type Txcb_timecoord_iterator_t = struct {
  3768. Fdata uintptr
  3769. Frem int32
  3770. Findex int32
  3771. }
  3772. type Txcb_get_motion_events_cookie_t = struct {
  3773. Fsequence uint32
  3774. }
  3775. type Txcb_get_motion_events_request_t = struct {
  3776. Fmajor_opcode Tuint8_t
  3777. Fpad0 Tuint8_t
  3778. Flength Tuint16_t
  3779. Fwindow Txcb_window_t
  3780. Fstart Txcb_timestamp_t
  3781. Fstop Txcb_timestamp_t
  3782. }
  3783. type Txcb_get_motion_events_reply_t = struct {
  3784. Fresponse_type Tuint8_t
  3785. Fpad0 Tuint8_t
  3786. Fsequence Tuint16_t
  3787. Flength Tuint32_t
  3788. Fevents_len Tuint32_t
  3789. Fpad1 [20]Tuint8_t
  3790. }
  3791. type Txcb_translate_coordinates_cookie_t = struct {
  3792. Fsequence uint32
  3793. }
  3794. type Txcb_translate_coordinates_request_t = struct {
  3795. Fmajor_opcode Tuint8_t
  3796. Fpad0 Tuint8_t
  3797. Flength Tuint16_t
  3798. Fsrc_window Txcb_window_t
  3799. Fdst_window Txcb_window_t
  3800. Fsrc_x Tint16_t
  3801. Fsrc_y Tint16_t
  3802. }
  3803. type Txcb_translate_coordinates_reply_t = struct {
  3804. Fresponse_type Tuint8_t
  3805. Fsame_screen Tuint8_t
  3806. Fsequence Tuint16_t
  3807. Flength Tuint32_t
  3808. Fchild Txcb_window_t
  3809. Fdst_x Tint16_t
  3810. Fdst_y Tint16_t
  3811. }
  3812. type Txcb_warp_pointer_request_t = struct {
  3813. Fmajor_opcode Tuint8_t
  3814. Fpad0 Tuint8_t
  3815. Flength Tuint16_t
  3816. Fsrc_window Txcb_window_t
  3817. Fdst_window Txcb_window_t
  3818. Fsrc_x Tint16_t
  3819. Fsrc_y Tint16_t
  3820. Fsrc_width Tuint16_t
  3821. Fsrc_height Tuint16_t
  3822. Fdst_x Tint16_t
  3823. Fdst_y Tint16_t
  3824. }
  3825. type Txcb_input_focus_t = int32
  3826. type _xcb_input_focus_t = int32
  3827. const _XCB_INPUT_FOCUS_NONE = 0
  3828. const _XCB_INPUT_FOCUS_POINTER_ROOT = 1
  3829. const _XCB_INPUT_FOCUS_PARENT = 2
  3830. const _XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
  3831. type Txcb_set_input_focus_request_t = struct {
  3832. Fmajor_opcode Tuint8_t
  3833. Frevert_to Tuint8_t
  3834. Flength Tuint16_t
  3835. Ffocus Txcb_window_t
  3836. Ftime Txcb_timestamp_t
  3837. }
  3838. type Txcb_get_input_focus_cookie_t = struct {
  3839. Fsequence uint32
  3840. }
  3841. type Txcb_get_input_focus_request_t = struct {
  3842. Fmajor_opcode Tuint8_t
  3843. Fpad0 Tuint8_t
  3844. Flength Tuint16_t
  3845. }
  3846. type Txcb_get_input_focus_reply_t = struct {
  3847. Fresponse_type Tuint8_t
  3848. Frevert_to Tuint8_t
  3849. Fsequence Tuint16_t
  3850. Flength Tuint32_t
  3851. Ffocus Txcb_window_t
  3852. }
  3853. type Txcb_query_keymap_cookie_t = struct {
  3854. Fsequence uint32
  3855. }
  3856. type Txcb_query_keymap_request_t = struct {
  3857. Fmajor_opcode Tuint8_t
  3858. Fpad0 Tuint8_t
  3859. Flength Tuint16_t
  3860. }
  3861. type Txcb_query_keymap_reply_t = struct {
  3862. Fresponse_type Tuint8_t
  3863. Fpad0 Tuint8_t
  3864. Fsequence Tuint16_t
  3865. Flength Tuint32_t
  3866. Fkeys [32]Tuint8_t
  3867. }
  3868. type Txcb_open_font_request_t = struct {
  3869. Fmajor_opcode Tuint8_t
  3870. Fpad0 Tuint8_t
  3871. Flength Tuint16_t
  3872. Ffid Txcb_font_t
  3873. Fname_len Tuint16_t
  3874. Fpad1 [2]Tuint8_t
  3875. }
  3876. type Txcb_close_font_request_t = struct {
  3877. Fmajor_opcode Tuint8_t
  3878. Fpad0 Tuint8_t
  3879. Flength Tuint16_t
  3880. Ffont Txcb_font_t
  3881. }
  3882. type Txcb_font_draw_t = int32
  3883. type _xcb_font_draw_t = int32
  3884. const _XCB_FONT_DRAW_LEFT_TO_RIGHT = 0
  3885. const _XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
  3886. type Txcb_fontprop_t = struct {
  3887. Fname Txcb_atom_t
  3888. Fvalue Tuint32_t
  3889. }
  3890. type Txcb_fontprop_iterator_t = struct {
  3891. Fdata uintptr
  3892. Frem int32
  3893. Findex int32
  3894. }
  3895. type Txcb_charinfo_t = struct {
  3896. Fleft_side_bearing Tint16_t
  3897. Fright_side_bearing Tint16_t
  3898. Fcharacter_width Tint16_t
  3899. Fascent Tint16_t
  3900. Fdescent Tint16_t
  3901. Fattributes Tuint16_t
  3902. }
  3903. type Txcb_charinfo_iterator_t = struct {
  3904. Fdata uintptr
  3905. Frem int32
  3906. Findex int32
  3907. }
  3908. type Txcb_query_font_cookie_t = struct {
  3909. Fsequence uint32
  3910. }
  3911. type Txcb_query_font_request_t = struct {
  3912. Fmajor_opcode Tuint8_t
  3913. Fpad0 Tuint8_t
  3914. Flength Tuint16_t
  3915. Ffont Txcb_fontable_t
  3916. }
  3917. type Txcb_query_font_reply_t = struct {
  3918. Fresponse_type Tuint8_t
  3919. Fpad0 Tuint8_t
  3920. Fsequence Tuint16_t
  3921. Flength Tuint32_t
  3922. Fmin_bounds Txcb_charinfo_t
  3923. Fpad1 [4]Tuint8_t
  3924. Fmax_bounds Txcb_charinfo_t
  3925. Fpad2 [4]Tuint8_t
  3926. Fmin_char_or_byte2 Tuint16_t
  3927. Fmax_char_or_byte2 Tuint16_t
  3928. Fdefault_char Tuint16_t
  3929. Fproperties_len Tuint16_t
  3930. Fdraw_direction Tuint8_t
  3931. Fmin_byte1 Tuint8_t
  3932. Fmax_byte1 Tuint8_t
  3933. Fall_chars_exist Tuint8_t
  3934. Ffont_ascent Tint16_t
  3935. Ffont_descent Tint16_t
  3936. Fchar_infos_len Tuint32_t
  3937. }
  3938. type Txcb_query_text_extents_cookie_t = struct {
  3939. Fsequence uint32
  3940. }
  3941. type Txcb_query_text_extents_request_t = struct {
  3942. Fmajor_opcode Tuint8_t
  3943. Fodd_length Tuint8_t
  3944. Flength Tuint16_t
  3945. Ffont Txcb_fontable_t
  3946. }
  3947. type Txcb_query_text_extents_reply_t = struct {
  3948. Fresponse_type Tuint8_t
  3949. Fdraw_direction Tuint8_t
  3950. Fsequence Tuint16_t
  3951. Flength Tuint32_t
  3952. Ffont_ascent Tint16_t
  3953. Ffont_descent Tint16_t
  3954. Foverall_ascent Tint16_t
  3955. Foverall_descent Tint16_t
  3956. Foverall_width Tint32_t
  3957. Foverall_left Tint32_t
  3958. Foverall_right Tint32_t
  3959. }
  3960. type Txcb_str_t = struct {
  3961. Fname_len Tuint8_t
  3962. }
  3963. type Txcb_str_iterator_t = struct {
  3964. Fdata uintptr
  3965. Frem int32
  3966. Findex int32
  3967. }
  3968. type Txcb_list_fonts_cookie_t = struct {
  3969. Fsequence uint32
  3970. }
  3971. type Txcb_list_fonts_request_t = struct {
  3972. Fmajor_opcode Tuint8_t
  3973. Fpad0 Tuint8_t
  3974. Flength Tuint16_t
  3975. Fmax_names Tuint16_t
  3976. Fpattern_len Tuint16_t
  3977. }
  3978. type Txcb_list_fonts_reply_t = struct {
  3979. Fresponse_type Tuint8_t
  3980. Fpad0 Tuint8_t
  3981. Fsequence Tuint16_t
  3982. Flength Tuint32_t
  3983. Fnames_len Tuint16_t
  3984. Fpad1 [22]Tuint8_t
  3985. }
  3986. type Txcb_list_fonts_with_info_cookie_t = struct {
  3987. Fsequence uint32
  3988. }
  3989. type Txcb_list_fonts_with_info_request_t = struct {
  3990. Fmajor_opcode Tuint8_t
  3991. Fpad0 Tuint8_t
  3992. Flength Tuint16_t
  3993. Fmax_names Tuint16_t
  3994. Fpattern_len Tuint16_t
  3995. }
  3996. type Txcb_list_fonts_with_info_reply_t = struct {
  3997. Fresponse_type Tuint8_t
  3998. Fname_len Tuint8_t
  3999. Fsequence Tuint16_t
  4000. Flength Tuint32_t
  4001. Fmin_bounds Txcb_charinfo_t
  4002. Fpad0 [4]Tuint8_t
  4003. Fmax_bounds Txcb_charinfo_t
  4004. Fpad1 [4]Tuint8_t
  4005. Fmin_char_or_byte2 Tuint16_t
  4006. Fmax_char_or_byte2 Tuint16_t
  4007. Fdefault_char Tuint16_t
  4008. Fproperties_len Tuint16_t
  4009. Fdraw_direction Tuint8_t
  4010. Fmin_byte1 Tuint8_t
  4011. Fmax_byte1 Tuint8_t
  4012. Fall_chars_exist Tuint8_t
  4013. Ffont_ascent Tint16_t
  4014. Ffont_descent Tint16_t
  4015. Freplies_hint Tuint32_t
  4016. }
  4017. type Txcb_set_font_path_request_t = struct {
  4018. Fmajor_opcode Tuint8_t
  4019. Fpad0 Tuint8_t
  4020. Flength Tuint16_t
  4021. Ffont_qty Tuint16_t
  4022. Fpad1 [2]Tuint8_t
  4023. }
  4024. type Txcb_get_font_path_cookie_t = struct {
  4025. Fsequence uint32
  4026. }
  4027. type Txcb_get_font_path_request_t = struct {
  4028. Fmajor_opcode Tuint8_t
  4029. Fpad0 Tuint8_t
  4030. Flength Tuint16_t
  4031. }
  4032. type Txcb_get_font_path_reply_t = struct {
  4033. Fresponse_type Tuint8_t
  4034. Fpad0 Tuint8_t
  4035. Fsequence Tuint16_t
  4036. Flength Tuint32_t
  4037. Fpath_len Tuint16_t
  4038. Fpad1 [22]Tuint8_t
  4039. }
  4040. type Txcb_create_pixmap_request_t = struct {
  4041. Fmajor_opcode Tuint8_t
  4042. Fdepth Tuint8_t
  4043. Flength Tuint16_t
  4044. Fpid Txcb_pixmap_t
  4045. Fdrawable Txcb_drawable_t
  4046. Fwidth Tuint16_t
  4047. Fheight Tuint16_t
  4048. }
  4049. type Txcb_free_pixmap_request_t = struct {
  4050. Fmajor_opcode Tuint8_t
  4051. Fpad0 Tuint8_t
  4052. Flength Tuint16_t
  4053. Fpixmap Txcb_pixmap_t
  4054. }
  4055. type Txcb_gc_t = int32
  4056. type _xcb_gc_t = int32
  4057. const _XCB_GC_FUNCTION = 1
  4058. const _XCB_GC_PLANE_MASK = 2
  4059. const _XCB_GC_FOREGROUND = 4
  4060. const _XCB_GC_BACKGROUND = 8
  4061. const _XCB_GC_LINE_WIDTH = 16
  4062. const _XCB_GC_LINE_STYLE = 32
  4063. const _XCB_GC_CAP_STYLE = 64
  4064. const _XCB_GC_JOIN_STYLE = 128
  4065. const _XCB_GC_FILL_STYLE = 256
  4066. const _XCB_GC_FILL_RULE = 512
  4067. const _XCB_GC_TILE = 1024
  4068. const _XCB_GC_STIPPLE = 2048
  4069. const _XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096
  4070. const _XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192
  4071. const _XCB_GC_FONT = 16384
  4072. const _XCB_GC_SUBWINDOW_MODE = 32768
  4073. const _XCB_GC_GRAPHICS_EXPOSURES = 65536
  4074. const _XCB_GC_CLIP_ORIGIN_X = 131072
  4075. const _XCB_GC_CLIP_ORIGIN_Y = 262144
  4076. const _XCB_GC_CLIP_MASK = 524288
  4077. const _XCB_GC_DASH_OFFSET = 1048576
  4078. const _XCB_GC_DASH_LIST = 2097152
  4079. const _XCB_GC_ARC_MODE = 4194304
  4080. type Txcb_gx_t = int32
  4081. type _xcb_gx_t = int32
  4082. const _XCB_GX_CLEAR = 0
  4083. const _XCB_GX_AND = 1
  4084. const _XCB_GX_AND_REVERSE = 2
  4085. const _XCB_GX_COPY = 3
  4086. const _XCB_GX_AND_INVERTED = 4
  4087. const _XCB_GX_NOOP = 5
  4088. const _XCB_GX_XOR = 6
  4089. const _XCB_GX_OR = 7
  4090. const _XCB_GX_NOR = 8
  4091. const _XCB_GX_EQUIV = 9
  4092. const _XCB_GX_INVERT = 10
  4093. const _XCB_GX_OR_REVERSE = 11
  4094. const _XCB_GX_COPY_INVERTED = 12
  4095. const _XCB_GX_OR_INVERTED = 13
  4096. const _XCB_GX_NAND = 14
  4097. const _XCB_GX_SET = 15
  4098. type Txcb_line_style_t = int32
  4099. type _xcb_line_style_t = int32
  4100. const _XCB_LINE_STYLE_SOLID = 0
  4101. const _XCB_LINE_STYLE_ON_OFF_DASH = 1
  4102. const _XCB_LINE_STYLE_DOUBLE_DASH = 2
  4103. type Txcb_cap_style_t = int32
  4104. type _xcb_cap_style_t = int32
  4105. const _XCB_CAP_STYLE_NOT_LAST = 0
  4106. const _XCB_CAP_STYLE_BUTT = 1
  4107. const _XCB_CAP_STYLE_ROUND = 2
  4108. const _XCB_CAP_STYLE_PROJECTING = 3
  4109. type Txcb_join_style_t = int32
  4110. type _xcb_join_style_t = int32
  4111. const _XCB_JOIN_STYLE_MITER = 0
  4112. const _XCB_JOIN_STYLE_ROUND = 1
  4113. const _XCB_JOIN_STYLE_BEVEL = 2
  4114. type Txcb_fill_style_t = int32
  4115. type _xcb_fill_style_t = int32
  4116. const _XCB_FILL_STYLE_SOLID = 0
  4117. const _XCB_FILL_STYLE_TILED = 1
  4118. const _XCB_FILL_STYLE_STIPPLED = 2
  4119. const _XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
  4120. type Txcb_fill_rule_t = int32
  4121. type _xcb_fill_rule_t = int32
  4122. const _XCB_FILL_RULE_EVEN_ODD = 0
  4123. const _XCB_FILL_RULE_WINDING = 1
  4124. type Txcb_subwindow_mode_t = int32
  4125. type _xcb_subwindow_mode_t = int32
  4126. const _XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0
  4127. const _XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
  4128. type Txcb_arc_mode_t = int32
  4129. type _xcb_arc_mode_t = int32
  4130. const _XCB_ARC_MODE_CHORD = 0
  4131. const _XCB_ARC_MODE_PIE_SLICE = 1
  4132. type Txcb_create_gc_value_list_t = struct {
  4133. Ffunction Tuint32_t
  4134. Fplane_mask Tuint32_t
  4135. Fforeground Tuint32_t
  4136. Fbackground Tuint32_t
  4137. Fline_width Tuint32_t
  4138. Fline_style Tuint32_t
  4139. Fcap_style Tuint32_t
  4140. Fjoin_style Tuint32_t
  4141. Ffill_style Tuint32_t
  4142. Ffill_rule Tuint32_t
  4143. Ftile Txcb_pixmap_t
  4144. Fstipple Txcb_pixmap_t
  4145. Ftile_stipple_x_origin Tint32_t
  4146. Ftile_stipple_y_origin Tint32_t
  4147. Ffont Txcb_font_t
  4148. Fsubwindow_mode Tuint32_t
  4149. Fgraphics_exposures Txcb_bool32_t
  4150. Fclip_x_origin Tint32_t
  4151. Fclip_y_origin Tint32_t
  4152. Fclip_mask Txcb_pixmap_t
  4153. Fdash_offset Tuint32_t
  4154. Fdashes Tuint32_t
  4155. Farc_mode Tuint32_t
  4156. }
  4157. type Txcb_create_gc_request_t = struct {
  4158. Fmajor_opcode Tuint8_t
  4159. Fpad0 Tuint8_t
  4160. Flength Tuint16_t
  4161. Fcid Txcb_gcontext_t
  4162. Fdrawable Txcb_drawable_t
  4163. Fvalue_mask Tuint32_t
  4164. }
  4165. type Txcb_change_gc_value_list_t = struct {
  4166. Ffunction Tuint32_t
  4167. Fplane_mask Tuint32_t
  4168. Fforeground Tuint32_t
  4169. Fbackground Tuint32_t
  4170. Fline_width Tuint32_t
  4171. Fline_style Tuint32_t
  4172. Fcap_style Tuint32_t
  4173. Fjoin_style Tuint32_t
  4174. Ffill_style Tuint32_t
  4175. Ffill_rule Tuint32_t
  4176. Ftile Txcb_pixmap_t
  4177. Fstipple Txcb_pixmap_t
  4178. Ftile_stipple_x_origin Tint32_t
  4179. Ftile_stipple_y_origin Tint32_t
  4180. Ffont Txcb_font_t
  4181. Fsubwindow_mode Tuint32_t
  4182. Fgraphics_exposures Txcb_bool32_t
  4183. Fclip_x_origin Tint32_t
  4184. Fclip_y_origin Tint32_t
  4185. Fclip_mask Txcb_pixmap_t
  4186. Fdash_offset Tuint32_t
  4187. Fdashes Tuint32_t
  4188. Farc_mode Tuint32_t
  4189. }
  4190. type Txcb_change_gc_request_t = struct {
  4191. Fmajor_opcode Tuint8_t
  4192. Fpad0 Tuint8_t
  4193. Flength Tuint16_t
  4194. Fgc Txcb_gcontext_t
  4195. Fvalue_mask Tuint32_t
  4196. }
  4197. type Txcb_copy_gc_request_t = struct {
  4198. Fmajor_opcode Tuint8_t
  4199. Fpad0 Tuint8_t
  4200. Flength Tuint16_t
  4201. Fsrc_gc Txcb_gcontext_t
  4202. Fdst_gc Txcb_gcontext_t
  4203. Fvalue_mask Tuint32_t
  4204. }
  4205. type Txcb_set_dashes_request_t = struct {
  4206. Fmajor_opcode Tuint8_t
  4207. Fpad0 Tuint8_t
  4208. Flength Tuint16_t
  4209. Fgc Txcb_gcontext_t
  4210. Fdash_offset Tuint16_t
  4211. Fdashes_len Tuint16_t
  4212. }
  4213. type Txcb_clip_ordering_t = int32
  4214. type _xcb_clip_ordering_t = int32
  4215. const _XCB_CLIP_ORDERING_UNSORTED = 0
  4216. const _XCB_CLIP_ORDERING_Y_SORTED = 1
  4217. const _XCB_CLIP_ORDERING_YX_SORTED = 2
  4218. const _XCB_CLIP_ORDERING_YX_BANDED = 3
  4219. type Txcb_set_clip_rectangles_request_t = struct {
  4220. Fmajor_opcode Tuint8_t
  4221. Fordering Tuint8_t
  4222. Flength Tuint16_t
  4223. Fgc Txcb_gcontext_t
  4224. Fclip_x_origin Tint16_t
  4225. Fclip_y_origin Tint16_t
  4226. }
  4227. type Txcb_free_gc_request_t = struct {
  4228. Fmajor_opcode Tuint8_t
  4229. Fpad0 Tuint8_t
  4230. Flength Tuint16_t
  4231. Fgc Txcb_gcontext_t
  4232. }
  4233. type Txcb_clear_area_request_t = struct {
  4234. Fmajor_opcode Tuint8_t
  4235. Fexposures Tuint8_t
  4236. Flength Tuint16_t
  4237. Fwindow Txcb_window_t
  4238. Fx Tint16_t
  4239. Fy Tint16_t
  4240. Fwidth Tuint16_t
  4241. Fheight Tuint16_t
  4242. }
  4243. type Txcb_copy_area_request_t = struct {
  4244. Fmajor_opcode Tuint8_t
  4245. Fpad0 Tuint8_t
  4246. Flength Tuint16_t
  4247. Fsrc_drawable Txcb_drawable_t
  4248. Fdst_drawable Txcb_drawable_t
  4249. Fgc Txcb_gcontext_t
  4250. Fsrc_x Tint16_t
  4251. Fsrc_y Tint16_t
  4252. Fdst_x Tint16_t
  4253. Fdst_y Tint16_t
  4254. Fwidth Tuint16_t
  4255. Fheight Tuint16_t
  4256. }
  4257. type Txcb_copy_plane_request_t = struct {
  4258. Fmajor_opcode Tuint8_t
  4259. Fpad0 Tuint8_t
  4260. Flength Tuint16_t
  4261. Fsrc_drawable Txcb_drawable_t
  4262. Fdst_drawable Txcb_drawable_t
  4263. Fgc Txcb_gcontext_t
  4264. Fsrc_x Tint16_t
  4265. Fsrc_y Tint16_t
  4266. Fdst_x Tint16_t
  4267. Fdst_y Tint16_t
  4268. Fwidth Tuint16_t
  4269. Fheight Tuint16_t
  4270. Fbit_plane Tuint32_t
  4271. }
  4272. type Txcb_coord_mode_t = int32
  4273. type _xcb_coord_mode_t = int32
  4274. const _XCB_COORD_MODE_ORIGIN = 0
  4275. const _XCB_COORD_MODE_PREVIOUS = 1
  4276. type Txcb_poly_point_request_t = struct {
  4277. Fmajor_opcode Tuint8_t
  4278. Fcoordinate_mode Tuint8_t
  4279. Flength Tuint16_t
  4280. Fdrawable Txcb_drawable_t
  4281. Fgc Txcb_gcontext_t
  4282. }
  4283. type Txcb_poly_line_request_t = struct {
  4284. Fmajor_opcode Tuint8_t
  4285. Fcoordinate_mode Tuint8_t
  4286. Flength Tuint16_t
  4287. Fdrawable Txcb_drawable_t
  4288. Fgc Txcb_gcontext_t
  4289. }
  4290. type Txcb_segment_t = struct {
  4291. Fx1 Tint16_t
  4292. Fy1 Tint16_t
  4293. Fx2 Tint16_t
  4294. Fy2 Tint16_t
  4295. }
  4296. type Txcb_segment_iterator_t = struct {
  4297. Fdata uintptr
  4298. Frem int32
  4299. Findex int32
  4300. }
  4301. type Txcb_poly_segment_request_t = struct {
  4302. Fmajor_opcode Tuint8_t
  4303. Fpad0 Tuint8_t
  4304. Flength Tuint16_t
  4305. Fdrawable Txcb_drawable_t
  4306. Fgc Txcb_gcontext_t
  4307. }
  4308. type Txcb_poly_rectangle_request_t = struct {
  4309. Fmajor_opcode Tuint8_t
  4310. Fpad0 Tuint8_t
  4311. Flength Tuint16_t
  4312. Fdrawable Txcb_drawable_t
  4313. Fgc Txcb_gcontext_t
  4314. }
  4315. type Txcb_poly_arc_request_t = struct {
  4316. Fmajor_opcode Tuint8_t
  4317. Fpad0 Tuint8_t
  4318. Flength Tuint16_t
  4319. Fdrawable Txcb_drawable_t
  4320. Fgc Txcb_gcontext_t
  4321. }
  4322. type Txcb_poly_shape_t = int32
  4323. type _xcb_poly_shape_t = int32
  4324. const _XCB_POLY_SHAPE_COMPLEX = 0
  4325. const _XCB_POLY_SHAPE_NONCONVEX = 1
  4326. const _XCB_POLY_SHAPE_CONVEX = 2
  4327. type Txcb_fill_poly_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. Fshape Tuint8_t
  4334. Fcoordinate_mode Tuint8_t
  4335. Fpad1 [2]Tuint8_t
  4336. }
  4337. type Txcb_poly_fill_rectangle_request_t = struct {
  4338. Fmajor_opcode Tuint8_t
  4339. Fpad0 Tuint8_t
  4340. Flength Tuint16_t
  4341. Fdrawable Txcb_drawable_t
  4342. Fgc Txcb_gcontext_t
  4343. }
  4344. type Txcb_poly_fill_arc_request_t = struct {
  4345. Fmajor_opcode Tuint8_t
  4346. Fpad0 Tuint8_t
  4347. Flength Tuint16_t
  4348. Fdrawable Txcb_drawable_t
  4349. Fgc Txcb_gcontext_t
  4350. }
  4351. type Txcb_image_format_t = int32
  4352. type _xcb_image_format_t = int32
  4353. const _XCB_IMAGE_FORMAT_XY_BITMAP = 0
  4354. const _XCB_IMAGE_FORMAT_XY_PIXMAP = 1
  4355. const _XCB_IMAGE_FORMAT_Z_PIXMAP = 2
  4356. type Txcb_put_image_request_t = struct {
  4357. Fmajor_opcode Tuint8_t
  4358. Fformat Tuint8_t
  4359. Flength Tuint16_t
  4360. Fdrawable Txcb_drawable_t
  4361. Fgc Txcb_gcontext_t
  4362. Fwidth Tuint16_t
  4363. Fheight Tuint16_t
  4364. Fdst_x Tint16_t
  4365. Fdst_y Tint16_t
  4366. Fleft_pad Tuint8_t
  4367. Fdepth Tuint8_t
  4368. Fpad0 [2]Tuint8_t
  4369. }
  4370. type Txcb_get_image_cookie_t = struct {
  4371. Fsequence uint32
  4372. }
  4373. type Txcb_get_image_request_t = struct {
  4374. Fmajor_opcode Tuint8_t
  4375. Fformat Tuint8_t
  4376. Flength Tuint16_t
  4377. Fdrawable Txcb_drawable_t
  4378. Fx Tint16_t
  4379. Fy Tint16_t
  4380. Fwidth Tuint16_t
  4381. Fheight Tuint16_t
  4382. Fplane_mask Tuint32_t
  4383. }
  4384. type Txcb_get_image_reply_t = struct {
  4385. Fresponse_type Tuint8_t
  4386. Fdepth Tuint8_t
  4387. Fsequence Tuint16_t
  4388. Flength Tuint32_t
  4389. Fvisual Txcb_visualid_t
  4390. Fpad0 [20]Tuint8_t
  4391. }
  4392. type Txcb_poly_text_8_request_t = struct {
  4393. Fmajor_opcode Tuint8_t
  4394. Fpad0 Tuint8_t
  4395. Flength Tuint16_t
  4396. Fdrawable Txcb_drawable_t
  4397. Fgc Txcb_gcontext_t
  4398. Fx Tint16_t
  4399. Fy Tint16_t
  4400. }
  4401. type Txcb_poly_text_16_request_t = struct {
  4402. Fmajor_opcode Tuint8_t
  4403. Fpad0 Tuint8_t
  4404. Flength Tuint16_t
  4405. Fdrawable Txcb_drawable_t
  4406. Fgc Txcb_gcontext_t
  4407. Fx Tint16_t
  4408. Fy Tint16_t
  4409. }
  4410. type Txcb_image_text_8_request_t = struct {
  4411. Fmajor_opcode Tuint8_t
  4412. Fstring_len Tuint8_t
  4413. Flength Tuint16_t
  4414. Fdrawable Txcb_drawable_t
  4415. Fgc Txcb_gcontext_t
  4416. Fx Tint16_t
  4417. Fy Tint16_t
  4418. }
  4419. type Txcb_image_text_16_request_t = struct {
  4420. Fmajor_opcode Tuint8_t
  4421. Fstring_len Tuint8_t
  4422. Flength Tuint16_t
  4423. Fdrawable Txcb_drawable_t
  4424. Fgc Txcb_gcontext_t
  4425. Fx Tint16_t
  4426. Fy Tint16_t
  4427. }
  4428. type Txcb_colormap_alloc_t = int32
  4429. type _xcb_colormap_alloc_t = int32
  4430. const _XCB_COLORMAP_ALLOC_NONE = 0
  4431. const _XCB_COLORMAP_ALLOC_ALL = 1
  4432. type Txcb_create_colormap_request_t = struct {
  4433. Fmajor_opcode Tuint8_t
  4434. Falloc Tuint8_t
  4435. Flength Tuint16_t
  4436. Fmid Txcb_colormap_t
  4437. Fwindow Txcb_window_t
  4438. Fvisual Txcb_visualid_t
  4439. }
  4440. type Txcb_free_colormap_request_t = struct {
  4441. Fmajor_opcode Tuint8_t
  4442. Fpad0 Tuint8_t
  4443. Flength Tuint16_t
  4444. Fcmap Txcb_colormap_t
  4445. }
  4446. type Txcb_copy_colormap_and_free_request_t = struct {
  4447. Fmajor_opcode Tuint8_t
  4448. Fpad0 Tuint8_t
  4449. Flength Tuint16_t
  4450. Fmid Txcb_colormap_t
  4451. Fsrc_cmap Txcb_colormap_t
  4452. }
  4453. type Txcb_install_colormap_request_t = struct {
  4454. Fmajor_opcode Tuint8_t
  4455. Fpad0 Tuint8_t
  4456. Flength Tuint16_t
  4457. Fcmap Txcb_colormap_t
  4458. }
  4459. type Txcb_uninstall_colormap_request_t = struct {
  4460. Fmajor_opcode Tuint8_t
  4461. Fpad0 Tuint8_t
  4462. Flength Tuint16_t
  4463. Fcmap Txcb_colormap_t
  4464. }
  4465. type Txcb_list_installed_colormaps_cookie_t = struct {
  4466. Fsequence uint32
  4467. }
  4468. type Txcb_list_installed_colormaps_request_t = struct {
  4469. Fmajor_opcode Tuint8_t
  4470. Fpad0 Tuint8_t
  4471. Flength Tuint16_t
  4472. Fwindow Txcb_window_t
  4473. }
  4474. type Txcb_list_installed_colormaps_reply_t = struct {
  4475. Fresponse_type Tuint8_t
  4476. Fpad0 Tuint8_t
  4477. Fsequence Tuint16_t
  4478. Flength Tuint32_t
  4479. Fcmaps_len Tuint16_t
  4480. Fpad1 [22]Tuint8_t
  4481. }
  4482. type Txcb_alloc_color_cookie_t = struct {
  4483. Fsequence uint32
  4484. }
  4485. type Txcb_alloc_color_request_t = struct {
  4486. Fmajor_opcode Tuint8_t
  4487. Fpad0 Tuint8_t
  4488. Flength Tuint16_t
  4489. Fcmap Txcb_colormap_t
  4490. Fred Tuint16_t
  4491. Fgreen Tuint16_t
  4492. Fblue Tuint16_t
  4493. Fpad1 [2]Tuint8_t
  4494. }
  4495. type Txcb_alloc_color_reply_t = struct {
  4496. Fresponse_type Tuint8_t
  4497. Fpad0 Tuint8_t
  4498. Fsequence Tuint16_t
  4499. Flength Tuint32_t
  4500. Fred Tuint16_t
  4501. Fgreen Tuint16_t
  4502. Fblue Tuint16_t
  4503. Fpad1 [2]Tuint8_t
  4504. Fpixel Tuint32_t
  4505. }
  4506. type Txcb_alloc_named_color_cookie_t = struct {
  4507. Fsequence uint32
  4508. }
  4509. type Txcb_alloc_named_color_request_t = struct {
  4510. Fmajor_opcode Tuint8_t
  4511. Fpad0 Tuint8_t
  4512. Flength Tuint16_t
  4513. Fcmap Txcb_colormap_t
  4514. Fname_len Tuint16_t
  4515. Fpad1 [2]Tuint8_t
  4516. }
  4517. type Txcb_alloc_named_color_reply_t = struct {
  4518. Fresponse_type Tuint8_t
  4519. Fpad0 Tuint8_t
  4520. Fsequence Tuint16_t
  4521. Flength Tuint32_t
  4522. Fpixel Tuint32_t
  4523. Fexact_red Tuint16_t
  4524. Fexact_green Tuint16_t
  4525. Fexact_blue Tuint16_t
  4526. Fvisual_red Tuint16_t
  4527. Fvisual_green Tuint16_t
  4528. Fvisual_blue Tuint16_t
  4529. }
  4530. type Txcb_alloc_color_cells_cookie_t = struct {
  4531. Fsequence uint32
  4532. }
  4533. type Txcb_alloc_color_cells_request_t = struct {
  4534. Fmajor_opcode Tuint8_t
  4535. Fcontiguous Tuint8_t
  4536. Flength Tuint16_t
  4537. Fcmap Txcb_colormap_t
  4538. Fcolors Tuint16_t
  4539. Fplanes Tuint16_t
  4540. }
  4541. type Txcb_alloc_color_cells_reply_t = struct {
  4542. Fresponse_type Tuint8_t
  4543. Fpad0 Tuint8_t
  4544. Fsequence Tuint16_t
  4545. Flength Tuint32_t
  4546. Fpixels_len Tuint16_t
  4547. Fmasks_len Tuint16_t
  4548. Fpad1 [20]Tuint8_t
  4549. }
  4550. type Txcb_alloc_color_planes_cookie_t = struct {
  4551. Fsequence uint32
  4552. }
  4553. type Txcb_alloc_color_planes_request_t = struct {
  4554. Fmajor_opcode Tuint8_t
  4555. Fcontiguous Tuint8_t
  4556. Flength Tuint16_t
  4557. Fcmap Txcb_colormap_t
  4558. Fcolors Tuint16_t
  4559. Freds Tuint16_t
  4560. Fgreens Tuint16_t
  4561. Fblues Tuint16_t
  4562. }
  4563. type Txcb_alloc_color_planes_reply_t = struct {
  4564. Fresponse_type Tuint8_t
  4565. Fpad0 Tuint8_t
  4566. Fsequence Tuint16_t
  4567. Flength Tuint32_t
  4568. Fpixels_len Tuint16_t
  4569. Fpad1 [2]Tuint8_t
  4570. Fred_mask Tuint32_t
  4571. Fgreen_mask Tuint32_t
  4572. Fblue_mask Tuint32_t
  4573. Fpad2 [8]Tuint8_t
  4574. }
  4575. type Txcb_free_colors_request_t = struct {
  4576. Fmajor_opcode Tuint8_t
  4577. Fpad0 Tuint8_t
  4578. Flength Tuint16_t
  4579. Fcmap Txcb_colormap_t
  4580. Fplane_mask Tuint32_t
  4581. }
  4582. type Txcb_color_flag_t = int32
  4583. type _xcb_color_flag_t = int32
  4584. const _XCB_COLOR_FLAG_RED = 1
  4585. const _XCB_COLOR_FLAG_GREEN = 2
  4586. const _XCB_COLOR_FLAG_BLUE = 4
  4587. type Txcb_coloritem_t = struct {
  4588. Fpixel Tuint32_t
  4589. Fred Tuint16_t
  4590. Fgreen Tuint16_t
  4591. Fblue Tuint16_t
  4592. Fflags Tuint8_t
  4593. Fpad0 Tuint8_t
  4594. }
  4595. type Txcb_coloritem_iterator_t = struct {
  4596. Fdata uintptr
  4597. Frem int32
  4598. Findex int32
  4599. }
  4600. type Txcb_store_colors_request_t = struct {
  4601. Fmajor_opcode Tuint8_t
  4602. Fpad0 Tuint8_t
  4603. Flength Tuint16_t
  4604. Fcmap Txcb_colormap_t
  4605. }
  4606. type Txcb_store_named_color_request_t = struct {
  4607. Fmajor_opcode Tuint8_t
  4608. Fflags Tuint8_t
  4609. Flength Tuint16_t
  4610. Fcmap Txcb_colormap_t
  4611. Fpixel Tuint32_t
  4612. Fname_len Tuint16_t
  4613. Fpad0 [2]Tuint8_t
  4614. }
  4615. type Txcb_rgb_t = struct {
  4616. Fred Tuint16_t
  4617. Fgreen Tuint16_t
  4618. Fblue Tuint16_t
  4619. Fpad0 [2]Tuint8_t
  4620. }
  4621. type Txcb_rgb_iterator_t = struct {
  4622. Fdata uintptr
  4623. Frem int32
  4624. Findex int32
  4625. }
  4626. type Txcb_query_colors_cookie_t = struct {
  4627. Fsequence uint32
  4628. }
  4629. type Txcb_query_colors_request_t = struct {
  4630. Fmajor_opcode Tuint8_t
  4631. Fpad0 Tuint8_t
  4632. Flength Tuint16_t
  4633. Fcmap Txcb_colormap_t
  4634. }
  4635. type Txcb_query_colors_reply_t = struct {
  4636. Fresponse_type Tuint8_t
  4637. Fpad0 Tuint8_t
  4638. Fsequence Tuint16_t
  4639. Flength Tuint32_t
  4640. Fcolors_len Tuint16_t
  4641. Fpad1 [22]Tuint8_t
  4642. }
  4643. type Txcb_lookup_color_cookie_t = struct {
  4644. Fsequence uint32
  4645. }
  4646. type Txcb_lookup_color_request_t = struct {
  4647. Fmajor_opcode Tuint8_t
  4648. Fpad0 Tuint8_t
  4649. Flength Tuint16_t
  4650. Fcmap Txcb_colormap_t
  4651. Fname_len Tuint16_t
  4652. Fpad1 [2]Tuint8_t
  4653. }
  4654. type Txcb_lookup_color_reply_t = struct {
  4655. Fresponse_type Tuint8_t
  4656. Fpad0 Tuint8_t
  4657. Fsequence Tuint16_t
  4658. Flength Tuint32_t
  4659. Fexact_red Tuint16_t
  4660. Fexact_green Tuint16_t
  4661. Fexact_blue Tuint16_t
  4662. Fvisual_red Tuint16_t
  4663. Fvisual_green Tuint16_t
  4664. Fvisual_blue Tuint16_t
  4665. }
  4666. type Txcb_pixmap_enum_t = int32
  4667. type _xcb_pixmap_enum_t = int32
  4668. const _XCB_PIXMAP_NONE = 0
  4669. type Txcb_create_cursor_request_t = struct {
  4670. Fmajor_opcode Tuint8_t
  4671. Fpad0 Tuint8_t
  4672. Flength Tuint16_t
  4673. Fcid Txcb_cursor_t
  4674. Fsource Txcb_pixmap_t
  4675. Fmask Txcb_pixmap_t
  4676. Ffore_red Tuint16_t
  4677. Ffore_green Tuint16_t
  4678. Ffore_blue Tuint16_t
  4679. Fback_red Tuint16_t
  4680. Fback_green Tuint16_t
  4681. Fback_blue Tuint16_t
  4682. Fx Tuint16_t
  4683. Fy Tuint16_t
  4684. }
  4685. type Txcb_font_enum_t = int32
  4686. type _xcb_font_enum_t = int32
  4687. const _XCB_FONT_NONE = 0
  4688. type Txcb_create_glyph_cursor_request_t = struct {
  4689. Fmajor_opcode Tuint8_t
  4690. Fpad0 Tuint8_t
  4691. Flength Tuint16_t
  4692. Fcid Txcb_cursor_t
  4693. Fsource_font Txcb_font_t
  4694. Fmask_font Txcb_font_t
  4695. Fsource_char Tuint16_t
  4696. Fmask_char Tuint16_t
  4697. Ffore_red Tuint16_t
  4698. Ffore_green Tuint16_t
  4699. Ffore_blue Tuint16_t
  4700. Fback_red Tuint16_t
  4701. Fback_green Tuint16_t
  4702. Fback_blue Tuint16_t
  4703. }
  4704. type Txcb_free_cursor_request_t = struct {
  4705. Fmajor_opcode Tuint8_t
  4706. Fpad0 Tuint8_t
  4707. Flength Tuint16_t
  4708. Fcursor Txcb_cursor_t
  4709. }
  4710. type Txcb_recolor_cursor_request_t = struct {
  4711. Fmajor_opcode Tuint8_t
  4712. Fpad0 Tuint8_t
  4713. Flength Tuint16_t
  4714. Fcursor Txcb_cursor_t
  4715. Ffore_red Tuint16_t
  4716. Ffore_green Tuint16_t
  4717. Ffore_blue Tuint16_t
  4718. Fback_red Tuint16_t
  4719. Fback_green Tuint16_t
  4720. Fback_blue Tuint16_t
  4721. }
  4722. type Txcb_query_shape_of_t = int32
  4723. type _xcb_query_shape_of_t = int32
  4724. const _XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0
  4725. const _XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1
  4726. const _XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
  4727. type Txcb_query_best_size_cookie_t = struct {
  4728. Fsequence uint32
  4729. }
  4730. type Txcb_query_best_size_request_t = struct {
  4731. Fmajor_opcode Tuint8_t
  4732. F_class Tuint8_t
  4733. Flength Tuint16_t
  4734. Fdrawable Txcb_drawable_t
  4735. Fwidth Tuint16_t
  4736. Fheight Tuint16_t
  4737. }
  4738. type Txcb_query_best_size_reply_t = struct {
  4739. Fresponse_type Tuint8_t
  4740. Fpad0 Tuint8_t
  4741. Fsequence Tuint16_t
  4742. Flength Tuint32_t
  4743. Fwidth Tuint16_t
  4744. Fheight Tuint16_t
  4745. }
  4746. type Txcb_query_extension_cookie_t = struct {
  4747. Fsequence uint32
  4748. }
  4749. type Txcb_query_extension_request_t = struct {
  4750. Fmajor_opcode Tuint8_t
  4751. Fpad0 Tuint8_t
  4752. Flength Tuint16_t
  4753. Fname_len Tuint16_t
  4754. Fpad1 [2]Tuint8_t
  4755. }
  4756. type Txcb_query_extension_reply_t = struct {
  4757. Fresponse_type Tuint8_t
  4758. Fpad0 Tuint8_t
  4759. Fsequence Tuint16_t
  4760. Flength Tuint32_t
  4761. Fpresent Tuint8_t
  4762. Fmajor_opcode Tuint8_t
  4763. Ffirst_event Tuint8_t
  4764. Ffirst_error Tuint8_t
  4765. }
  4766. type Txcb_list_extensions_cookie_t = struct {
  4767. Fsequence uint32
  4768. }
  4769. type Txcb_list_extensions_request_t = struct {
  4770. Fmajor_opcode Tuint8_t
  4771. Fpad0 Tuint8_t
  4772. Flength Tuint16_t
  4773. }
  4774. type Txcb_list_extensions_reply_t = struct {
  4775. Fresponse_type Tuint8_t
  4776. Fnames_len Tuint8_t
  4777. Fsequence Tuint16_t
  4778. Flength Tuint32_t
  4779. Fpad0 [24]Tuint8_t
  4780. }
  4781. type Txcb_change_keyboard_mapping_request_t = struct {
  4782. Fmajor_opcode Tuint8_t
  4783. Fkeycode_count Tuint8_t
  4784. Flength Tuint16_t
  4785. Ffirst_keycode Txcb_keycode_t
  4786. Fkeysyms_per_keycode Tuint8_t
  4787. Fpad0 [2]Tuint8_t
  4788. }
  4789. type Txcb_get_keyboard_mapping_cookie_t = struct {
  4790. Fsequence uint32
  4791. }
  4792. type Txcb_get_keyboard_mapping_request_t = struct {
  4793. Fmajor_opcode Tuint8_t
  4794. Fpad0 Tuint8_t
  4795. Flength Tuint16_t
  4796. Ffirst_keycode Txcb_keycode_t
  4797. Fcount Tuint8_t
  4798. }
  4799. type Txcb_get_keyboard_mapping_reply_t = struct {
  4800. Fresponse_type Tuint8_t
  4801. Fkeysyms_per_keycode Tuint8_t
  4802. Fsequence Tuint16_t
  4803. Flength Tuint32_t
  4804. Fpad0 [24]Tuint8_t
  4805. }
  4806. type Txcb_kb_t = int32
  4807. type _xcb_kb_t = int32
  4808. const _XCB_KB_KEY_CLICK_PERCENT = 1
  4809. const _XCB_KB_BELL_PERCENT = 2
  4810. const _XCB_KB_BELL_PITCH = 4
  4811. const _XCB_KB_BELL_DURATION = 8
  4812. const _XCB_KB_LED = 16
  4813. const _XCB_KB_LED_MODE = 32
  4814. const _XCB_KB_KEY = 64
  4815. const _XCB_KB_AUTO_REPEAT_MODE = 128
  4816. type Txcb_led_mode_t = int32
  4817. type _xcb_led_mode_t = int32
  4818. const _XCB_LED_MODE_OFF = 0
  4819. const _XCB_LED_MODE_ON = 1
  4820. type Txcb_auto_repeat_mode_t = int32
  4821. type _xcb_auto_repeat_mode_t = int32
  4822. const _XCB_AUTO_REPEAT_MODE_OFF = 0
  4823. const _XCB_AUTO_REPEAT_MODE_ON = 1
  4824. const _XCB_AUTO_REPEAT_MODE_DEFAULT = 2
  4825. type Txcb_change_keyboard_control_value_list_t = struct {
  4826. Fkey_click_percent Tint32_t
  4827. Fbell_percent Tint32_t
  4828. Fbell_pitch Tint32_t
  4829. Fbell_duration Tint32_t
  4830. Fled Tuint32_t
  4831. Fled_mode Tuint32_t
  4832. Fkey Txcb_keycode32_t
  4833. Fauto_repeat_mode Tuint32_t
  4834. }
  4835. type Txcb_change_keyboard_control_request_t = struct {
  4836. Fmajor_opcode Tuint8_t
  4837. Fpad0 Tuint8_t
  4838. Flength Tuint16_t
  4839. Fvalue_mask Tuint32_t
  4840. }
  4841. type Txcb_get_keyboard_control_cookie_t = struct {
  4842. Fsequence uint32
  4843. }
  4844. type Txcb_get_keyboard_control_request_t = struct {
  4845. Fmajor_opcode Tuint8_t
  4846. Fpad0 Tuint8_t
  4847. Flength Tuint16_t
  4848. }
  4849. type Txcb_get_keyboard_control_reply_t = struct {
  4850. Fresponse_type Tuint8_t
  4851. Fglobal_auto_repeat Tuint8_t
  4852. Fsequence Tuint16_t
  4853. Flength Tuint32_t
  4854. Fled_mask Tuint32_t
  4855. Fkey_click_percent Tuint8_t
  4856. Fbell_percent Tuint8_t
  4857. Fbell_pitch Tuint16_t
  4858. Fbell_duration Tuint16_t
  4859. Fpad0 [2]Tuint8_t
  4860. Fauto_repeats [32]Tuint8_t
  4861. }
  4862. type Txcb_bell_request_t = struct {
  4863. Fmajor_opcode Tuint8_t
  4864. Fpercent Tint8_t
  4865. Flength Tuint16_t
  4866. }
  4867. type Txcb_change_pointer_control_request_t = struct {
  4868. Fmajor_opcode Tuint8_t
  4869. Fpad0 Tuint8_t
  4870. Flength Tuint16_t
  4871. Facceleration_numerator Tint16_t
  4872. Facceleration_denominator Tint16_t
  4873. Fthreshold Tint16_t
  4874. Fdo_acceleration Tuint8_t
  4875. Fdo_threshold Tuint8_t
  4876. }
  4877. type Txcb_get_pointer_control_cookie_t = struct {
  4878. Fsequence uint32
  4879. }
  4880. type Txcb_get_pointer_control_request_t = struct {
  4881. Fmajor_opcode Tuint8_t
  4882. Fpad0 Tuint8_t
  4883. Flength Tuint16_t
  4884. }
  4885. type Txcb_get_pointer_control_reply_t = struct {
  4886. Fresponse_type Tuint8_t
  4887. Fpad0 Tuint8_t
  4888. Fsequence Tuint16_t
  4889. Flength Tuint32_t
  4890. Facceleration_numerator Tuint16_t
  4891. Facceleration_denominator Tuint16_t
  4892. Fthreshold Tuint16_t
  4893. Fpad1 [18]Tuint8_t
  4894. }
  4895. type Txcb_blanking_t = int32
  4896. type _xcb_blanking_t = int32
  4897. const _XCB_BLANKING_NOT_PREFERRED = 0
  4898. const _XCB_BLANKING_PREFERRED = 1
  4899. const _XCB_BLANKING_DEFAULT = 2
  4900. type Txcb_exposures_t = int32
  4901. type _xcb_exposures_t = int32
  4902. const _XCB_EXPOSURES_NOT_ALLOWED = 0
  4903. const _XCB_EXPOSURES_ALLOWED = 1
  4904. const _XCB_EXPOSURES_DEFAULT = 2
  4905. type Txcb_set_screen_saver_request_t = struct {
  4906. Fmajor_opcode Tuint8_t
  4907. Fpad0 Tuint8_t
  4908. Flength Tuint16_t
  4909. Ftimeout Tint16_t
  4910. Finterval Tint16_t
  4911. Fprefer_blanking Tuint8_t
  4912. Fallow_exposures Tuint8_t
  4913. }
  4914. type Txcb_get_screen_saver_cookie_t = struct {
  4915. Fsequence uint32
  4916. }
  4917. type Txcb_get_screen_saver_request_t = struct {
  4918. Fmajor_opcode Tuint8_t
  4919. Fpad0 Tuint8_t
  4920. Flength Tuint16_t
  4921. }
  4922. type Txcb_get_screen_saver_reply_t = struct {
  4923. Fresponse_type Tuint8_t
  4924. Fpad0 Tuint8_t
  4925. Fsequence Tuint16_t
  4926. Flength Tuint32_t
  4927. Ftimeout Tuint16_t
  4928. Finterval Tuint16_t
  4929. Fprefer_blanking Tuint8_t
  4930. Fallow_exposures Tuint8_t
  4931. Fpad1 [18]Tuint8_t
  4932. }
  4933. type Txcb_host_mode_t = int32
  4934. type _xcb_host_mode_t = int32
  4935. const _XCB_HOST_MODE_INSERT = 0
  4936. const _XCB_HOST_MODE_DELETE = 1
  4937. type Txcb_family_t = int32
  4938. type _xcb_family_t = int32
  4939. const _XCB_FAMILY_INTERNET = 0
  4940. const _XCB_FAMILY_DECNET = 1
  4941. const _XCB_FAMILY_CHAOS = 2
  4942. const _XCB_FAMILY_SERVER_INTERPRETED = 5
  4943. const _XCB_FAMILY_INTERNET_6 = 6
  4944. type Txcb_change_hosts_request_t = struct {
  4945. Fmajor_opcode Tuint8_t
  4946. Fmode Tuint8_t
  4947. Flength Tuint16_t
  4948. Ffamily Tuint8_t
  4949. Fpad0 Tuint8_t
  4950. Faddress_len Tuint16_t
  4951. }
  4952. type Txcb_host_t = struct {
  4953. Ffamily Tuint8_t
  4954. Fpad0 Tuint8_t
  4955. Faddress_len Tuint16_t
  4956. }
  4957. type Txcb_host_iterator_t = struct {
  4958. Fdata uintptr
  4959. Frem int32
  4960. Findex int32
  4961. }
  4962. type Txcb_list_hosts_cookie_t = struct {
  4963. Fsequence uint32
  4964. }
  4965. type Txcb_list_hosts_request_t = struct {
  4966. Fmajor_opcode Tuint8_t
  4967. Fpad0 Tuint8_t
  4968. Flength Tuint16_t
  4969. }
  4970. type Txcb_list_hosts_reply_t = struct {
  4971. Fresponse_type Tuint8_t
  4972. Fmode Tuint8_t
  4973. Fsequence Tuint16_t
  4974. Flength Tuint32_t
  4975. Fhosts_len Tuint16_t
  4976. Fpad0 [22]Tuint8_t
  4977. }
  4978. type Txcb_access_control_t = int32
  4979. type _xcb_access_control_t = int32
  4980. const _XCB_ACCESS_CONTROL_DISABLE = 0
  4981. const _XCB_ACCESS_CONTROL_ENABLE = 1
  4982. type Txcb_set_access_control_request_t = struct {
  4983. Fmajor_opcode Tuint8_t
  4984. Fmode Tuint8_t
  4985. Flength Tuint16_t
  4986. }
  4987. type Txcb_close_down_t = int32
  4988. type _xcb_close_down_t = int32
  4989. const _XCB_CLOSE_DOWN_DESTROY_ALL = 0
  4990. const _XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1
  4991. const _XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
  4992. type Txcb_set_close_down_mode_request_t = struct {
  4993. Fmajor_opcode Tuint8_t
  4994. Fmode Tuint8_t
  4995. Flength Tuint16_t
  4996. }
  4997. type Txcb_kill_t = int32
  4998. type _xcb_kill_t = int32
  4999. const _XCB_KILL_ALL_TEMPORARY = 0
  5000. type Txcb_kill_client_request_t = struct {
  5001. Fmajor_opcode Tuint8_t
  5002. Fpad0 Tuint8_t
  5003. Flength Tuint16_t
  5004. Fresource Tuint32_t
  5005. }
  5006. type Txcb_rotate_properties_request_t = struct {
  5007. Fmajor_opcode Tuint8_t
  5008. Fpad0 Tuint8_t
  5009. Flength Tuint16_t
  5010. Fwindow Txcb_window_t
  5011. Fatoms_len Tuint16_t
  5012. Fdelta Tint16_t
  5013. }
  5014. type Txcb_screen_saver_t = int32
  5015. type _xcb_screen_saver_t = int32
  5016. const _XCB_SCREEN_SAVER_RESET = 0
  5017. const _XCB_SCREEN_SAVER_ACTIVE = 1
  5018. type Txcb_force_screen_saver_request_t = struct {
  5019. Fmajor_opcode Tuint8_t
  5020. Fmode Tuint8_t
  5021. Flength Tuint16_t
  5022. }
  5023. type Txcb_mapping_status_t = int32
  5024. type _xcb_mapping_status_t = int32
  5025. const _XCB_MAPPING_STATUS_SUCCESS = 0
  5026. const _XCB_MAPPING_STATUS_BUSY = 1
  5027. const _XCB_MAPPING_STATUS_FAILURE = 2
  5028. type Txcb_set_pointer_mapping_cookie_t = struct {
  5029. Fsequence uint32
  5030. }
  5031. type Txcb_set_pointer_mapping_request_t = struct {
  5032. Fmajor_opcode Tuint8_t
  5033. Fmap_len Tuint8_t
  5034. Flength Tuint16_t
  5035. }
  5036. type Txcb_set_pointer_mapping_reply_t = struct {
  5037. Fresponse_type Tuint8_t
  5038. Fstatus Tuint8_t
  5039. Fsequence Tuint16_t
  5040. Flength Tuint32_t
  5041. }
  5042. type Txcb_get_pointer_mapping_cookie_t = struct {
  5043. Fsequence uint32
  5044. }
  5045. type Txcb_get_pointer_mapping_request_t = struct {
  5046. Fmajor_opcode Tuint8_t
  5047. Fpad0 Tuint8_t
  5048. Flength Tuint16_t
  5049. }
  5050. type Txcb_get_pointer_mapping_reply_t = struct {
  5051. Fresponse_type Tuint8_t
  5052. Fmap_len Tuint8_t
  5053. Fsequence Tuint16_t
  5054. Flength Tuint32_t
  5055. Fpad0 [24]Tuint8_t
  5056. }
  5057. type Txcb_map_index_t = int32
  5058. type _xcb_map_index_t = int32
  5059. const _XCB_MAP_INDEX_SHIFT = 0
  5060. const _XCB_MAP_INDEX_LOCK = 1
  5061. const _XCB_MAP_INDEX_CONTROL = 2
  5062. const _XCB_MAP_INDEX_1 = 3
  5063. const _XCB_MAP_INDEX_2 = 4
  5064. const _XCB_MAP_INDEX_3 = 5
  5065. const _XCB_MAP_INDEX_4 = 6
  5066. const _XCB_MAP_INDEX_5 = 7
  5067. type Txcb_set_modifier_mapping_cookie_t = struct {
  5068. Fsequence uint32
  5069. }
  5070. type Txcb_set_modifier_mapping_request_t = struct {
  5071. Fmajor_opcode Tuint8_t
  5072. Fkeycodes_per_modifier Tuint8_t
  5073. Flength Tuint16_t
  5074. }
  5075. type Txcb_set_modifier_mapping_reply_t = struct {
  5076. Fresponse_type Tuint8_t
  5077. Fstatus Tuint8_t
  5078. Fsequence Tuint16_t
  5079. Flength Tuint32_t
  5080. }
  5081. type Txcb_get_modifier_mapping_cookie_t = struct {
  5082. Fsequence uint32
  5083. }
  5084. type Txcb_get_modifier_mapping_request_t = struct {
  5085. Fmajor_opcode Tuint8_t
  5086. Fpad0 Tuint8_t
  5087. Flength Tuint16_t
  5088. }
  5089. type Txcb_get_modifier_mapping_reply_t = struct {
  5090. Fresponse_type Tuint8_t
  5091. Fkeycodes_per_modifier Tuint8_t
  5092. Fsequence Tuint16_t
  5093. Flength Tuint32_t
  5094. Fpad0 [24]Tuint8_t
  5095. }
  5096. type Txcb_no_operation_request_t = struct {
  5097. Fmajor_opcode Tuint8_t
  5098. Fpad0 Tuint8_t
  5099. Flength Tuint16_t
  5100. }
  5101. type Txcb_auth_info_t = struct {
  5102. Fnamelen int32
  5103. Fname uintptr
  5104. Fdatalen int32
  5105. Fdata uintptr
  5106. }
  5107. type Txcb_big_requests_enable_cookie_t = struct {
  5108. Fsequence uint32
  5109. }
  5110. type Txcb_big_requests_enable_request_t = struct {
  5111. Fmajor_opcode Tuint8_t
  5112. Fminor_opcode Tuint8_t
  5113. Flength Tuint16_t
  5114. }
  5115. type Txcb_big_requests_enable_reply_t = struct {
  5116. Fresponse_type Tuint8_t
  5117. Fpad0 Tuint8_t
  5118. Fsequence Tuint16_t
  5119. Flength Tuint32_t
  5120. Fmaximum_request_length Tuint32_t
  5121. }
  5122. type _workarounds = int32
  5123. const _WORKAROUND_NONE = 0
  5124. const _WORKAROUND_GLX_GET_FB_CONFIGS_BUG = 1
  5125. const _WORKAROUND_EXTERNAL_SOCKET_OWNER = 2
  5126. type _lazy_reply_tag = int32
  5127. const _LAZY_NONE = 0
  5128. const _LAZY_COOKIE = 1
  5129. const _LAZY_FORCED = 2
  5130. type Txcb_list_free_func_t = uintptr
  5131. type T_xcb_fd = struct {
  5132. Ffd [16]int32
  5133. Fnfd int32
  5134. Fifd int32
  5135. }
  5136. type T_xcb_out = struct {
  5137. Fcond Tpthread_cond_t
  5138. Fwriting int32
  5139. Fsocket_cond Tpthread_cond_t
  5140. Freturn_socket uintptr
  5141. Fsocket_closure uintptr
  5142. Fsocket_moving int32
  5143. Fqueue [16384]uint8
  5144. Fqueue_len int32
  5145. Frequest Tuint64_t
  5146. Frequest_written Tuint64_t
  5147. Frequest_expected_written Tuint64_t
  5148. Ftotal_written Tuint64_t
  5149. Freqlenlock Tpthread_mutex_t
  5150. Fmaximum_request_length_tag _lazy_reply_tag
  5151. Fmaximum_request_length struct {
  5152. Fvalue [0]Tuint32_t
  5153. Fcookie Txcb_big_requests_enable_cookie_t
  5154. }
  5155. Fout_fd T_xcb_fd
  5156. }
  5157. type T_xcb_in = struct {
  5158. Fevent_cond Tpthread_cond_t
  5159. Freading int32
  5160. Fqueue [4096]uint8
  5161. Fqueue_len int32
  5162. Frequest_expected Tuint64_t
  5163. Frequest_read Tuint64_t
  5164. Frequest_completed Tuint64_t
  5165. Ftotal_read Tuint64_t
  5166. Fcurrent_reply uintptr
  5167. Fcurrent_reply_tail uintptr
  5168. Freplies uintptr
  5169. Fevents uintptr
  5170. Fevents_tail uintptr
  5171. Freaders uintptr
  5172. Fspecial_waiters uintptr
  5173. Fpending_replies uintptr
  5174. Fpending_replies_tail uintptr
  5175. Fin_fd T_xcb_fd
  5176. Fspecial_events uintptr
  5177. }
  5178. type T_xcb_xid = struct {
  5179. Flock Tpthread_mutex_t
  5180. Flast Tuint32_t
  5181. Fbase Tuint32_t
  5182. Fmax Tuint32_t
  5183. Finc Tuint32_t
  5184. }
  5185. type T_xcb_ext = struct {
  5186. Flock Tpthread_mutex_t
  5187. Fextensions uintptr
  5188. Fextensions_size int32
  5189. }
  5190. type Txcb_connection_t1 = struct {
  5191. Fhas_error int32
  5192. Fsetup uintptr
  5193. Ffd int32
  5194. Fiolock Tpthread_mutex_t
  5195. Fin T_xcb_in
  5196. Fout T_xcb_out
  5197. Fext T_xcb_ext
  5198. Fxid T_xcb_xid
  5199. }
  5200. type Tnfds_t = uint64
  5201. type Tpollfd = struct {
  5202. Ffd int32
  5203. Fevents int16
  5204. Frevents int16
  5205. }
  5206. type Tsocklen_t = uint32
  5207. type Tsa_family_t = uint16
  5208. type Tmsghdr = struct {
  5209. Fmsg_name uintptr
  5210. Fmsg_namelen Tsocklen_t
  5211. Fmsg_iov uintptr
  5212. Fmsg_iovlen int32
  5213. F__pad1 int32
  5214. Fmsg_control uintptr
  5215. Fmsg_controllen Tsocklen_t
  5216. F__pad2 int32
  5217. Fmsg_flags int32
  5218. }
  5219. type Tcmsghdr = struct {
  5220. Fcmsg_len Tsocklen_t
  5221. F__pad1 int32
  5222. Fcmsg_level int32
  5223. Fcmsg_type int32
  5224. }
  5225. type Tucred = struct {
  5226. Fpid Tpid_t
  5227. Fuid Tuid_t
  5228. Fgid Tgid_t
  5229. }
  5230. type Tmmsghdr = struct {
  5231. Fmsg_hdr Tmsghdr
  5232. Fmsg_len uint32
  5233. }
  5234. type Tlinger = struct {
  5235. Fl_onoff int32
  5236. Fl_linger int32
  5237. }
  5238. type Tsockaddr = struct {
  5239. Fsa_family Tsa_family_t
  5240. Fsa_data [14]uint8
  5241. }
  5242. type Tsockaddr_storage = struct {
  5243. Fss_family Tsa_family_t
  5244. F__ss_padding [118]uint8
  5245. F__ss_align uint64
  5246. }
  5247. type Timaxdiv_t = struct {
  5248. Fquot Tintmax_t
  5249. Frem Tintmax_t
  5250. }
  5251. type Tin_port_t = uint16
  5252. type Tin_addr_t = uint32
  5253. type Tin_addr = struct {
  5254. Fs_addr Tin_addr_t
  5255. }
  5256. type Tsockaddr_in = struct {
  5257. Fsin_family Tsa_family_t
  5258. Fsin_port Tin_port_t
  5259. Fsin_addr Tin_addr
  5260. Fsin_zero [8]Tuint8_t
  5261. }
  5262. type Tin6_addr = struct {
  5263. F__in6_union struct {
  5264. F__s6_addr16 [0][8]Tuint16_t
  5265. F__s6_addr32 [0][4]Tuint32_t
  5266. F__s6_addr [16]Tuint8_t
  5267. }
  5268. }
  5269. type Tsockaddr_in6 = struct {
  5270. Fsin6_family Tsa_family_t
  5271. Fsin6_port Tin_port_t
  5272. Fsin6_flowinfo Tuint32_t
  5273. Fsin6_addr Tin6_addr
  5274. Fsin6_scope_id Tuint32_t
  5275. }
  5276. type Tipv6_mreq = struct {
  5277. Fipv6mr_multiaddr Tin6_addr
  5278. Fipv6mr_interface uint32
  5279. }
  5280. type Tip_opts = struct {
  5281. Fip_dst Tin_addr
  5282. Fip_opts [40]uint8
  5283. }
  5284. type Tip_mreq = struct {
  5285. Fimr_multiaddr Tin_addr
  5286. Fimr_interface Tin_addr
  5287. }
  5288. type Tip_mreqn = struct {
  5289. Fimr_multiaddr Tin_addr
  5290. Fimr_address Tin_addr
  5291. Fimr_ifindex int32
  5292. }
  5293. type Tip_mreq_source = struct {
  5294. Fimr_multiaddr Tin_addr
  5295. Fimr_interface Tin_addr
  5296. Fimr_sourceaddr Tin_addr
  5297. }
  5298. type Tip_msfilter = struct {
  5299. Fimsf_multiaddr Tin_addr
  5300. Fimsf_interface Tin_addr
  5301. Fimsf_fmode Tuint32_t
  5302. Fimsf_numsrc Tuint32_t
  5303. Fimsf_slist [1]Tin_addr
  5304. }
  5305. type Tgroup_req = struct {
  5306. Fgr_interface Tuint32_t
  5307. Fgr_group Tsockaddr_storage
  5308. }
  5309. type Tgroup_source_req = struct {
  5310. Fgsr_interface Tuint32_t
  5311. Fgsr_group Tsockaddr_storage
  5312. Fgsr_source Tsockaddr_storage
  5313. }
  5314. type Tgroup_filter = struct {
  5315. Fgf_interface Tuint32_t
  5316. Fgf_group Tsockaddr_storage
  5317. Fgf_fmode Tuint32_t
  5318. Fgf_numsrc Tuint32_t
  5319. Fgf_slist [1]Tsockaddr_storage
  5320. }
  5321. type Tin_pktinfo = struct {
  5322. Fipi_ifindex int32
  5323. Fipi_spec_dst Tin_addr
  5324. Fipi_addr Tin_addr
  5325. }
  5326. type Tin6_pktinfo = struct {
  5327. Fipi6_addr Tin6_addr
  5328. Fipi6_ifindex uint32
  5329. }
  5330. type Tip6_mtuinfo = struct {
  5331. Fip6m_addr Tsockaddr_in6
  5332. Fip6m_mtu Tuint32_t
  5333. }
  5334. /* SHUT_RDWR is fairly recent and is not available on all platforms */
  5335. type Txcb_setup_generic_t = struct {
  5336. Fstatus Tuint8_t
  5337. Fpad0 [5]Tuint8_t
  5338. Flength Tuint16_t
  5339. }
  5340. var _xcb_error_setup = Txcb_setup_t{}
  5341. // C documentation
  5342. //
  5343. // /* Keep this list in sync with is_static_error_conn()! */
  5344. var _xcb_con_error = int32(m_XCB_CONN_ERROR)
  5345. var _xcb_con_closed_mem_er = int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT)
  5346. var _xcb_con_closed_parse_er = int32(m_XCB_CONN_CLOSED_PARSE_ERR)
  5347. var _xcb_con_closed_screen_er = int32(m_XCB_CONN_CLOSED_INVALID_SCREEN)
  5348. func _is_static_error_conn(tls *libc.TLS, c uintptr) (r int32) {
  5349. 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)))
  5350. }
  5351. func _set_fd_flags(tls *libc.TLS, fd int32) (r int32) {
  5352. bp := tls.Alloc(16)
  5353. defer tls.Free(16)
  5354. var flags int32
  5355. _ = flags
  5356. /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
  5357. flags = libc.Xfcntl(tls, fd, int32(m_F_GETFL), libc.VaList(bp+8, 0))
  5358. if flags == -int32(1) {
  5359. return 0
  5360. }
  5361. flags |= int32(m_O_NONBLOCK)
  5362. if libc.Xfcntl(tls, fd, int32(m_F_SETFL), libc.VaList(bp+8, flags)) == -int32(1) {
  5363. return 0
  5364. }
  5365. if libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC))) == -int32(1) {
  5366. return 0
  5367. }
  5368. return int32(1)
  5369. }
  5370. func _write_setup(tls *libc.TLS, c uintptr, auth_info uintptr) (r int32) {
  5371. bp := tls.Alloc(112)
  5372. defer tls.Free(112)
  5373. var count, ret, v1, v2, v4, v5, v7, v8 int32
  5374. var v3, v6 Tuint16_t
  5375. var _ /* out at bp+0 */ Txcb_setup_request_t
  5376. var _ /* parts at bp+16 */ [6]Tiovec
  5377. _, _, _, _, _, _, _, _, _, _ = count, ret, v1, v2, v3, v4, v5, v6, v7, v8
  5378. count = 0
  5379. libc.Xmemset(tls, bp, 0, uint64(12))
  5380. /* B = 0x42 = MSB first, l = 0x6c = LSB first */
  5381. if libc.Xhtonl(tls, _endian) == _endian {
  5382. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x42)
  5383. } else {
  5384. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x6c)
  5385. }
  5386. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_major_version = uint16(m_X_PROTOCOL)
  5387. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_minor_version = uint16(m_X_PROTOCOL_REVISION)
  5388. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = uint16(0)
  5389. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = uint16(0)
  5390. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(12)
  5391. v1 = count
  5392. count++
  5393. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v1].Fiov_base = bp
  5394. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = -libc.Uint64FromInt64(12) & libc.Uint64FromInt32(3)
  5395. v2 = count
  5396. count++
  5397. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v2].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5398. if auth_info != 0 {
  5399. v3 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fnamelen)
  5400. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = v3
  5401. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v3)
  5402. v4 = count
  5403. count++
  5404. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v4].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fname
  5405. (*(*[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))
  5406. v5 = count
  5407. count++
  5408. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v5].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5409. v6 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdatalen)
  5410. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = v6
  5411. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v6)
  5412. v7 = count
  5413. count++
  5414. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v7].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdata
  5415. (*(*[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))
  5416. v8 = count
  5417. count++
  5418. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v8].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5419. }
  5420. libc.Xpthread_mutex_lock(tls, c+24)
  5421. ret = X_xcb_out_send(tls, c, bp+16, count)
  5422. libc.Xpthread_mutex_unlock(tls, c+24)
  5423. return ret
  5424. }
  5425. var _pad [3]uint8
  5426. var _endian = uint32(0x01020304)
  5427. func _read_setup(tls *libc.TLS, c uintptr) (r int32) {
  5428. bp := tls.Alloc(16)
  5429. defer tls.Free(16)
  5430. var setup, setup1, tmp uintptr
  5431. var _ /* newline at bp+0 */ uint8
  5432. _, _, _ = setup, setup1, tmp
  5433. *(*uint8)(unsafe.Pointer(bp)) = uint8('\n')
  5434. /* Read the server response */
  5435. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = libc.Xmalloc(tls, uint64(8))
  5436. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup != 0) {
  5437. return 0
  5438. }
  5439. if libc.Uint64FromInt32(X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, int32(8))) != uint64(8) {
  5440. return 0
  5441. }
  5442. 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))
  5443. if !(tmp != 0) {
  5444. return 0
  5445. }
  5446. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = tmp
  5447. 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 {
  5448. return 0
  5449. }
  5450. /* 0 = failed, 2 = authenticate, 1 = success */
  5451. switch libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fstatus) {
  5452. case 0: /* failed */
  5453. setup = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5454. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_failed_reason(tls, setup), libc.Uint64FromInt32(Xxcb_setup_failed_reason_length(tls, setup)))
  5455. libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint64(1))
  5456. return 0
  5457. case int32(2): /* authenticate */
  5458. setup1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5459. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_authenticate_reason(tls, setup1), libc.Uint64FromInt32(Xxcb_setup_authenticate_reason_length(tls, setup1)))
  5460. libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint64(1))
  5461. return 0
  5462. }
  5463. return int32(1)
  5464. }
  5465. // C documentation
  5466. //
  5467. // /* precondition: there must be something for us to write. */
  5468. func _write_vec(tls *libc.TLS, c uintptr, vector uintptr, count uintptr) (r int32) {
  5469. bp := tls.Alloc(144)
  5470. defer tls.Free(144)
  5471. var cur, i, n int32
  5472. var hdr, v1 uintptr
  5473. var _ /* cmsgbuf at bp+0 */ struct {
  5474. Fbuf [0][80]uint8
  5475. Fcmsghdr Tcmsghdr
  5476. F__ccgo_pad2 [64]byte
  5477. }
  5478. var _ /* msg at bp+80 */ Tmsghdr
  5479. _, _, _, _, _ = cur, hdr, i, n, v1
  5480. n = *(*int32)(unsafe.Pointer(count))
  5481. if n > int32(m_IOV_MAX) {
  5482. n = int32(m_IOV_MAX)
  5483. }
  5484. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd != 0 {
  5485. *(*Tmsghdr)(unsafe.Pointer(bp + 80)) = Tmsghdr{
  5486. Fmsg_iov: *(*uintptr)(unsafe.Pointer(vector)),
  5487. Fmsg_iovlen: n,
  5488. Fmsg_control: bp,
  5489. 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)),
  5490. }
  5491. if uint64((*Tmsghdr)(unsafe.Pointer(bp+80)).Fmsg_controllen) >= uint64(16) {
  5492. v1 = (*Tmsghdr)(unsafe.Pointer(bp + 80)).Fmsg_control
  5493. } else {
  5494. v1 = libc.UintptrFromInt32(0)
  5495. }
  5496. hdr = v1
  5497. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len = (*(*Tmsghdr)(unsafe.Pointer(bp + 80))).Fmsg_controllen
  5498. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level = int32(m_SOL_SOCKET)
  5499. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type = int32(m_SCM_RIGHTS)
  5500. libc.Xmemcpy(tls, hdr+libc.UintptrFromInt32(1)*16, c+4400+16592, libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*uint64(4))
  5501. n = int32(libc.Xsendmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+80, 0))
  5502. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5503. return int32(1)
  5504. }
  5505. i = 0
  5506. for {
  5507. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd) {
  5508. break
  5509. }
  5510. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 4400 + 16592 + uintptr(i)*4)))
  5511. goto _2
  5512. _2:
  5513. ;
  5514. i++
  5515. }
  5516. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd = 0
  5517. } else {
  5518. n = int32(libc.Xwritev(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, *(*uintptr)(unsafe.Pointer(vector)), n))
  5519. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5520. return int32(1)
  5521. }
  5522. }
  5523. if n <= 0 {
  5524. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5525. return 0
  5526. }
  5527. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written += libc.Uint64FromInt32(n)
  5528. for {
  5529. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5530. break
  5531. }
  5532. cur = libc.Int32FromUint64((*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len)
  5533. if cur > n {
  5534. cur = n
  5535. }
  5536. *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)) + 8)) -= libc.Uint64FromInt32(cur)
  5537. (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base = (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base + uintptr(cur)
  5538. n -= cur
  5539. if (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len != 0 {
  5540. break
  5541. }
  5542. goto _3
  5543. _3:
  5544. ;
  5545. *(*int32)(unsafe.Pointer(count))--
  5546. *(*uintptr)(unsafe.Pointer(vector)) += 16
  5547. }
  5548. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5549. *(*uintptr)(unsafe.Pointer(vector)) = uintptr(0)
  5550. }
  5551. return int32(1)
  5552. }
  5553. /* Public interface */
  5554. func Xxcb_get_setup(tls *libc.TLS, c uintptr) (r uintptr) {
  5555. if _is_static_error_conn(tls, c) != 0 {
  5556. return uintptr(unsafe.Pointer(&_xcb_error_setup))
  5557. }
  5558. /* doesn't need locking because it's never written to. */
  5559. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5560. }
  5561. func Xxcb_get_file_descriptor(tls *libc.TLS, c uintptr) (r int32) {
  5562. if _is_static_error_conn(tls, c) != 0 {
  5563. return -int32(1)
  5564. }
  5565. /* doesn't need locking because it's never written to. */
  5566. return (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5567. }
  5568. func Xxcb_connection_has_error(tls *libc.TLS, c uintptr) (r int32) {
  5569. /* doesn't need locking because it's read and written atomically. */
  5570. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error
  5571. }
  5572. func Xxcb_connect_to_fd(tls *libc.TLS, fd int32, auth_info uintptr) (r uintptr) {
  5573. var c uintptr
  5574. _ = c
  5575. c = libc.Xcalloc(tls, uint64(1), uint64(21176))
  5576. if !(c != 0) {
  5577. libc.Xclose(tls, fd)
  5578. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  5579. }
  5580. (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd = fd
  5581. 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) {
  5582. Xxcb_disconnect(tls, c)
  5583. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  5584. }
  5585. return c
  5586. }
  5587. func Xxcb_disconnect(tls *libc.TLS, c uintptr) {
  5588. if c == libc.UintptrFromInt32(0) || _is_static_error_conn(tls, c) != 0 {
  5589. return
  5590. }
  5591. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)
  5592. /* disallow further sends and receives */
  5593. libc.Xshutdown(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, int32(m_SHUT_RDWR))
  5594. libc.Xclose(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd)
  5595. libc.Xpthread_mutex_destroy(tls, c+24)
  5596. X_xcb_in_destroy(tls, c+64)
  5597. X_xcb_out_destroy(tls, c+4400)
  5598. X_xcb_ext_destroy(tls, c)
  5599. X_xcb_xid_destroy(tls, c)
  5600. libc.Xfree(tls, c)
  5601. }
  5602. /* Private interface */
  5603. func X_xcb_conn_shutdown(tls *libc.TLS, c uintptr, err int32) {
  5604. (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error = err
  5605. }
  5606. // C documentation
  5607. //
  5608. // /* Return connection error state.
  5609. // * To make thread-safe, I need a seperate static
  5610. // * variable for every possible error.
  5611. // * has_error is the first field in xcb_connection_t, so just
  5612. // * return a casted int here; checking has_error (and only
  5613. // * has_error) will be safe.
  5614. // */
  5615. func X_xcb_conn_ret_error(tls *libc.TLS, err int32) (r uintptr) {
  5616. switch err {
  5617. case int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT):
  5618. return uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er))
  5619. case int32(m_XCB_CONN_CLOSED_PARSE_ERR):
  5620. return uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er))
  5621. case int32(m_XCB_CONN_CLOSED_INVALID_SCREEN):
  5622. return uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er))
  5623. case int32(m_XCB_CONN_ERROR):
  5624. fallthrough
  5625. default:
  5626. return uintptr(unsafe.Pointer(&_xcb_con_error))
  5627. }
  5628. return r
  5629. }
  5630. func X_xcb_conn_wait(tls *libc.TLS, c uintptr, cond uintptr, vector uintptr, count uintptr) (r int32) {
  5631. bp := tls.Alloc(16)
  5632. defer tls.Free(16)
  5633. var may_read, ret, v1 int32
  5634. var p2 uintptr
  5635. var _ /* fd at bp+0 */ Tpollfd
  5636. _, _, _, _ = may_read, ret, v1, p2
  5637. /* If the thing I should be doing is already being done, wait for it. */
  5638. if count != 0 {
  5639. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting
  5640. } else {
  5641. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading
  5642. }
  5643. if v1 != 0 {
  5644. libc.Xpthread_cond_wait(tls, cond, c+24)
  5645. return int32(1)
  5646. }
  5647. libc.Xmemset(tls, bp, 0, uint64(8))
  5648. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5649. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  5650. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading++
  5651. if count != 0 {
  5652. p2 = bp + 4
  5653. *(*int16)(unsafe.Pointer(p2)) = int16(int32(*(*int16)(unsafe.Pointer(p2))) | libc.Int32FromInt32(m_POLLOUT))
  5654. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting++
  5655. }
  5656. libc.Xpthread_mutex_unlock(tls, c+24)
  5657. for cond1 := true; cond1; cond1 = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  5658. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  5659. /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
  5660. * it as if it failed. */
  5661. if ret >= 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents) & ^int32((*(*Tpollfd)(unsafe.Pointer(bp))).Fevents) != 0 {
  5662. ret = -int32(1)
  5663. break
  5664. }
  5665. }
  5666. if ret < 0 {
  5667. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5668. ret = 0
  5669. }
  5670. libc.Xpthread_mutex_lock(tls, c+24)
  5671. if ret != 0 {
  5672. /* The code allows two threads to call select()/poll() at the same time.
  5673. * First thread just wants to read, a second thread wants to write, too.
  5674. * We have to make sure that we don't steal the reading thread's reply
  5675. * and let it get stuck in select()/poll().
  5676. * So a thread may read if either:
  5677. * - There is no other thread that wants to read (the above situation
  5678. * did not occur).
  5679. * - It is the reading thread (above situation occurred).
  5680. */
  5681. may_read = libc.BoolInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == int32(1) || !(count != 0))
  5682. if may_read != 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLIN) != 0 {
  5683. ret = libc.BoolInt32(ret != 0 && X_xcb_in_read(tls, c) != 0)
  5684. }
  5685. if int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLOUT) != 0 {
  5686. ret = libc.BoolInt32(ret != 0 && _write_vec(tls, c, vector, count) != 0)
  5687. }
  5688. }
  5689. if count != 0 {
  5690. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting--
  5691. }
  5692. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading--
  5693. return ret
  5694. }
  5695. func Xxcb_total_read(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5696. var n Tuint64_t
  5697. _ = n
  5698. if Xxcb_connection_has_error(tls, c) != 0 {
  5699. return uint64(0)
  5700. }
  5701. libc.Xpthread_mutex_lock(tls, c+24)
  5702. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read
  5703. libc.Xpthread_mutex_unlock(tls, c+24)
  5704. return n
  5705. }
  5706. func Xxcb_total_written(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5707. var n Tuint64_t
  5708. _ = n
  5709. if Xxcb_connection_has_error(tls, c) != 0 {
  5710. return uint64(0)
  5711. }
  5712. libc.Xpthread_mutex_lock(tls, c+24)
  5713. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written
  5714. libc.Xpthread_mutex_unlock(tls, c+24)
  5715. return n
  5716. }
  5717. const m_SEEK_CUR = 1
  5718. const m_SEEK_END = 2
  5719. const m_SEEK_SET = 0
  5720. type Txcb_extension_t = struct {
  5721. Fname uintptr
  5722. Fglobal_id int32
  5723. }
  5724. type Txcb_extension_t1 = struct {
  5725. Fname uintptr
  5726. Fglobal_id int32
  5727. }
  5728. type Txcb_protocol_request_t = struct {
  5729. Fcount Tsize_t
  5730. Fext uintptr
  5731. Fopcode Tuint8_t
  5732. Fisvoid Tuint8_t
  5733. }
  5734. type _xcb_send_request_flags_t = int32
  5735. const _XCB_REQUEST_CHECKED = 1
  5736. const _XCB_REQUEST_RAW = 2
  5737. const _XCB_REQUEST_DISCARD_REPLY = 4
  5738. const _XCB_REQUEST_REPLY_FDS = 8
  5739. /*
  5740. * This file generated automatically from bigreq.xml by c_client.py.
  5741. * Edit at your peril.
  5742. */
  5743. /**
  5744. * @defgroup XCB_BigRequests_API XCB BigRequests API
  5745. * @brief BigRequests XCB Protocol Implementation.
  5746. * @{
  5747. **/
  5748. /**
  5749. * @}
  5750. */
  5751. func _send_request(tls *libc.TLS, c uintptr, isvoid int32, workaround _workarounds, flags int32, vector uintptr, count int32) {
  5752. var p1 uintptr
  5753. _ = p1
  5754. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5755. return
  5756. }
  5757. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest++
  5758. if !(isvoid != 0) {
  5759. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  5760. }
  5761. if workaround != int32(_WORKAROUND_NONE) || flags != 0 {
  5762. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest, workaround, flags)
  5763. }
  5764. for count != 0 && libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)+(*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len <= uint64(16384) {
  5765. 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)
  5766. p1 = c + 4400 + 16508
  5767. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5768. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5769. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(0)
  5770. vector += 16
  5771. count--
  5772. }
  5773. if !(count != 0) {
  5774. return
  5775. }
  5776. vector -= 16
  5777. count++
  5778. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = c + 4400 + 124
  5779. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  5780. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  5781. X_xcb_out_send(tls, c, vector, count)
  5782. }
  5783. func _send_sync(tls *libc.TLS, c uintptr) {
  5784. bp := tls.Alloc(32)
  5785. defer tls.Free(32)
  5786. var _ /* vector at bp+0 */ [2]Tiovec
  5787. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base = uintptr(unsafe.Pointer(&_sync_req))
  5788. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len = uint64(4)
  5789. _send_request(tls, c, 0, int32(_WORKAROUND_NONE), int32(_XCB_REQUEST_DISCARD_REPLY), bp+uintptr(1)*16, int32(1))
  5790. }
  5791. var _sync_req = *(*struct {
  5792. Fpacket [0]Tuint32_t
  5793. Ffields struct {
  5794. Fmajor Tuint8_t
  5795. Fpad Tuint8_t
  5796. Flen1 Tuint16_t
  5797. }
  5798. })(unsafe.Pointer(&struct {
  5799. Fmajor uint8
  5800. Fpad uint8
  5801. Flen1 uint16
  5802. }{
  5803. Fmajor: uint8(43),
  5804. Flen1: uint16(1),
  5805. }))
  5806. func _get_socket_back(tls *libc.TLS, c uintptr) {
  5807. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving != 0 {
  5808. libc.Xpthread_cond_wait(tls, c+4400+56, c+24)
  5809. }
  5810. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0) {
  5811. return
  5812. }
  5813. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = int32(1)
  5814. libc.Xpthread_mutex_unlock(tls, c+24)
  5815. (*(*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)
  5816. libc.Xpthread_mutex_lock(tls, c+24)
  5817. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = 0
  5818. libc.Xpthread_cond_broadcast(tls, c+4400+56)
  5819. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = uintptr(0)
  5820. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = uintptr(0)
  5821. X_xcb_in_replies_done(tls, c)
  5822. }
  5823. func _prepare_socket_request(tls *libc.TLS, c uintptr) {
  5824. /* We're about to append data to out.queue, so we need to
  5825. * atomically test for an external socket owner *and* some other
  5826. * thread currently writing.
  5827. *
  5828. * If we have an external socket owner, we have to get the socket back
  5829. * before we can use it again.
  5830. *
  5831. * If some other thread is writing to the socket, we assume it's
  5832. * writing from out.queue, and so we can't stick data there.
  5833. *
  5834. * We satisfy this condition by first calling get_socket_back
  5835. * (which may drop the lock, but will return when XCB owns the
  5836. * socket again) and then checking for another writing thread and
  5837. * escaping the loop if we're ready to go.
  5838. */
  5839. for {
  5840. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5841. return
  5842. }
  5843. _get_socket_back(tls, c)
  5844. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0) {
  5845. break
  5846. }
  5847. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  5848. goto _1
  5849. _1:
  5850. }
  5851. }
  5852. /* Public interface */
  5853. func Xxcb_prefetch_maximum_request_length(tls *libc.TLS, c uintptr) {
  5854. var ext uintptr
  5855. _ = ext
  5856. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5857. return
  5858. }
  5859. libc.Xpthread_mutex_lock(tls, c+4400+16544)
  5860. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_NONE) {
  5861. ext = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_big_requests_id)))
  5862. if ext != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext)).Fpresent != 0 {
  5863. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_COOKIE)
  5864. *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16588)) = Xxcb_big_requests_enable(tls, c)
  5865. } else {
  5866. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5867. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5868. }
  5869. }
  5870. libc.Xpthread_mutex_unlock(tls, c+4400+16544)
  5871. }
  5872. func Xxcb_get_maximum_request_length(tls *libc.TLS, c uintptr) (r1 Tuint32_t) {
  5873. var r uintptr
  5874. _ = r
  5875. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5876. return uint32(0)
  5877. }
  5878. Xxcb_prefetch_maximum_request_length(tls, c)
  5879. libc.Xpthread_mutex_lock(tls, c+4400+16544)
  5880. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_COOKIE) {
  5881. r = Xxcb_big_requests_enable_reply(tls, c, *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16588)), uintptr(0))
  5882. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5883. if r != 0 {
  5884. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = (*Txcb_big_requests_enable_reply_t)(unsafe.Pointer(r)).Fmaximum_request_length
  5885. libc.Xfree(tls, r)
  5886. } else {
  5887. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5888. }
  5889. }
  5890. libc.Xpthread_mutex_unlock(tls, c+4400+16544)
  5891. return *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588))
  5892. }
  5893. func _close_fds(tls *libc.TLS, fds uintptr, num_fds uint32) {
  5894. var index uint32
  5895. _ = index
  5896. index = uint32(0)
  5897. for {
  5898. if !(index < num_fds) {
  5899. break
  5900. }
  5901. libc.Xclose(tls, *(*int32)(unsafe.Pointer(fds + uintptr(index)*4)))
  5902. goto _1
  5903. _1:
  5904. ;
  5905. index++
  5906. }
  5907. }
  5908. func _send_fds(tls *libc.TLS, c uintptr, fds uintptr, num_fds uint32) {
  5909. var v1 int32
  5910. var v2 uintptr
  5911. _, _ = v1, v2
  5912. /* Calling _xcb_out_flush_to() can drop the iolock and wait on a condition
  5913. * variable if another thread is currently writing (c->out.writing > 0).
  5914. * This call waits for writers to be done and thus _xcb_out_flush_to() will
  5915. * do the work itself (in which case we are a writer and
  5916. * prepare_socket_request() will wait for us to be done if another threads
  5917. * tries to send fds, too). Thanks to this, we can atomically write out FDs.
  5918. */
  5919. _prepare_socket_request(tls, c)
  5920. for num_fds > uint32(0) {
  5921. 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) {
  5922. /* XXX: if c->out.writing > 0, this releases the iolock and
  5923. * potentially allows other threads to interfere with their own fds.
  5924. */
  5925. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  5926. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) {
  5927. /* We need some request to send FDs with */
  5928. X_xcb_out_send_sync(tls, c)
  5929. }
  5930. }
  5931. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5932. break
  5933. }
  5934. v2 = c + 4400 + 16592 + 64
  5935. v1 = *(*int32)(unsafe.Pointer(v2))
  5936. *(*int32)(unsafe.Pointer(v2))++
  5937. *(*int32)(unsafe.Pointer(c + 4400 + 16592 + uintptr(v1)*4)) = *(*int32)(unsafe.Pointer(fds))
  5938. fds += 4
  5939. num_fds--
  5940. }
  5941. _close_fds(tls, fds, num_fds)
  5942. }
  5943. 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) {
  5944. bp := tls.Alloc(16)
  5945. defer tls.Free(16)
  5946. var extension uintptr
  5947. var i uint32
  5948. var longlen, v2 Tsize_t
  5949. var request Tuint64_t
  5950. var shortlen Tuint16_t
  5951. var veclen int32
  5952. var workaround _workarounds
  5953. var v3 uint64
  5954. var _ /* prefix at bp+0 */ [2]Tuint32_t
  5955. _, _, _, _, _, _, _, _, _ = extension, i, longlen, request, shortlen, veclen, workaround, v2, v3
  5956. veclen = libc.Int32FromUint64((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount)
  5957. workaround = int32(_WORKAROUND_NONE)
  5958. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5959. _close_fds(tls, fds, num_fds)
  5960. return uint64(0)
  5961. }
  5962. if !(flags&int32(_XCB_REQUEST_RAW) != 0) {
  5963. shortlen = uint16(0)
  5964. longlen = uint64(0)
  5965. /* set the major opcode, and the minor opcode for extensions */
  5966. if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 {
  5967. extension = Xxcb_get_extension_data(tls, c, (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)
  5968. if !(extension != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fpresent != 0) {
  5969. _close_fds(tls, fds, num_fds)
  5970. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED))
  5971. return uint64(0)
  5972. }
  5973. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fmajor_opcode
  5974. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5975. } else {
  5976. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5977. }
  5978. /* put together the length field, possibly using BIGREQUESTS */
  5979. i = uint32(0)
  5980. for {
  5981. if !(uint64(i) < (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount) {
  5982. break
  5983. }
  5984. longlen += (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_len
  5985. if !((*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base != 0) {
  5986. (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base = uintptr(unsafe.Pointer(&_pad1))
  5987. }
  5988. goto _1
  5989. _1:
  5990. ;
  5991. i++
  5992. }
  5993. longlen >>= uint64(2)
  5994. if longlen <= uint64((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length) {
  5995. /* we don't need BIGREQUESTS. */
  5996. shortlen = uint16(longlen)
  5997. longlen = uint64(0)
  5998. } else {
  5999. if longlen > uint64(Xxcb_get_maximum_request_length(tls, c)) {
  6000. _close_fds(tls, fds, num_fds)
  6001. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_REQ_LEN_EXCEED))
  6002. return uint64(0) /* server can't take this; maybe need BIGREQUESTS? */
  6003. }
  6004. }
  6005. /* set the length field. */
  6006. *(*Tuint16_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*2)) = shortlen
  6007. if !(shortlen != 0) {
  6008. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[0] = *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base))
  6009. longlen++
  6010. v2 = longlen
  6011. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] = uint32(v2)
  6012. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr(1)*4
  6013. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len -= uint64(4)
  6014. vector -= 16
  6015. veclen++
  6016. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = bp
  6017. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(8)
  6018. }
  6019. }
  6020. flags &= ^int32(_XCB_REQUEST_RAW)
  6021. /* do we need to work around the X server bug described in glx.xml? */
  6022. /* XXX: GetFBConfigs won't use BIG-REQUESTS in any sane
  6023. * configuration, but that should be handled here anyway. */
  6024. 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)) {
  6025. workaround = int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG)
  6026. }
  6027. /* get a sequence number and arrange for delivery. */
  6028. libc.Xpthread_mutex_lock(tls, c+24)
  6029. /* send FDs before establishing a good request number, because this might
  6030. * call send_sync(), too
  6031. */
  6032. _send_fds(tls, c, fds, num_fds)
  6033. _prepare_socket_request(tls, c)
  6034. /* send GetInputFocus (sync_req) when 64k-2 requests have been sent without
  6035. * a reply.
  6036. * Also send sync_req (could use NoOp) at 32-bit wrap to avoid having
  6037. * applications see sequence 0 as that is used to indicate
  6038. * an error in sending the request
  6039. */
  6040. 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) {
  6041. _send_sync(tls, c)
  6042. _prepare_socket_request(tls, c)
  6043. }
  6044. _send_request(tls, c, libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid), workaround, flags, vector, veclen)
  6045. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6046. v3 = uint64(0)
  6047. } else {
  6048. v3 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6049. }
  6050. request = v3
  6051. libc.Xpthread_mutex_unlock(tls, c+24)
  6052. return request
  6053. }
  6054. var _pad1 [3]uint8
  6055. // C documentation
  6056. //
  6057. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6058. func Xxcb_send_request_with_fds(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r uint32) {
  6059. return uint32(Xxcb_send_request_with_fds64(tls, c, flags, vector, req, num_fds, fds))
  6060. }
  6061. func Xxcb_send_request64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r Tuint64_t) {
  6062. return Xxcb_send_request_with_fds64(tls, c, flags, vector, req, uint32(0), libc.UintptrFromInt32(0))
  6063. }
  6064. // C documentation
  6065. //
  6066. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6067. func Xxcb_send_request(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r uint32) {
  6068. return uint32(Xxcb_send_request64(tls, c, flags, vector, req))
  6069. }
  6070. func Xxcb_send_fd(tls *libc.TLS, c uintptr, fd int32) {
  6071. bp := tls.Alloc(16)
  6072. defer tls.Free(16)
  6073. var _ /* fds at bp+0 */ [1]int32
  6074. *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{
  6075. 0: fd,
  6076. }
  6077. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6078. libc.Xclose(tls, fd)
  6079. return
  6080. }
  6081. libc.Xpthread_mutex_lock(tls, c+24)
  6082. _send_fds(tls, c, bp, uint32(1))
  6083. libc.Xpthread_mutex_unlock(tls, c+24)
  6084. }
  6085. func Xxcb_take_socket(tls *libc.TLS, c uintptr, return_socket uintptr, closure uintptr, flags int32, sent uintptr) (r int32) {
  6086. var ret int32
  6087. _ = ret
  6088. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6089. return 0
  6090. }
  6091. libc.Xpthread_mutex_lock(tls, c+24)
  6092. _get_socket_back(tls, c)
  6093. /* _xcb_out_flush may drop the iolock allowing other threads to
  6094. * write requests, so keep flushing until we're done
  6095. */
  6096. for cond := true; cond; cond = ret != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest != (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written {
  6097. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6098. }
  6099. if ret != 0 {
  6100. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = return_socket
  6101. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = closure
  6102. if flags != 0 {
  6103. /* c->out.request + 1 will be the first request sent by the external
  6104. * socket owner. If the socket is returned before this request is sent
  6105. * it will be detected in _xcb_in_replies_done and this pending_reply
  6106. * will be discarded.
  6107. */
  6108. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+uint64(1), int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER), flags)
  6109. }
  6110. *(*Tuint64_t)(unsafe.Pointer(sent)) = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6111. }
  6112. libc.Xpthread_mutex_unlock(tls, c+24)
  6113. return ret
  6114. }
  6115. func Xxcb_writev(tls *libc.TLS, c uintptr, vector uintptr, count int32, requests Tuint64_t) (r int32) {
  6116. var ret int32
  6117. _ = ret
  6118. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6119. return 0
  6120. }
  6121. libc.Xpthread_mutex_lock(tls, c+24)
  6122. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest += requests
  6123. ret = X_xcb_out_send(tls, c, vector, count)
  6124. libc.Xpthread_mutex_unlock(tls, c+24)
  6125. return ret
  6126. }
  6127. func Xxcb_flush(tls *libc.TLS, c uintptr) (r int32) {
  6128. var ret int32
  6129. _ = ret
  6130. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6131. return 0
  6132. }
  6133. libc.Xpthread_mutex_lock(tls, c+24)
  6134. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6135. libc.Xpthread_mutex_unlock(tls, c+24)
  6136. return ret
  6137. }
  6138. /* Private interface */
  6139. func X_xcb_out_init(tls *libc.TLS, out uintptr) (r int32) {
  6140. if libc.Xpthread_cond_init(tls, out+56, uintptr(0)) != 0 {
  6141. return 0
  6142. }
  6143. (*T_xcb_out)(unsafe.Pointer(out)).Freturn_socket = uintptr(0)
  6144. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_closure = uintptr(0)
  6145. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_moving = 0
  6146. if libc.Xpthread_cond_init(tls, out, uintptr(0)) != 0 {
  6147. return 0
  6148. }
  6149. (*T_xcb_out)(unsafe.Pointer(out)).Fwriting = 0
  6150. (*T_xcb_out)(unsafe.Pointer(out)).Fqueue_len = 0
  6151. (*T_xcb_out)(unsafe.Pointer(out)).Frequest = uint64(0)
  6152. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_written = uint64(0)
  6153. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_expected_written = uint64(0)
  6154. if libc.Xpthread_mutex_init(tls, out+16544, uintptr(0)) != 0 {
  6155. return 0
  6156. }
  6157. (*T_xcb_out)(unsafe.Pointer(out)).Fmaximum_request_length_tag = int32(_LAZY_NONE)
  6158. return int32(1)
  6159. }
  6160. func X_xcb_out_destroy(tls *libc.TLS, out uintptr) {
  6161. libc.Xpthread_mutex_destroy(tls, out+16544)
  6162. libc.Xpthread_cond_destroy(tls, out)
  6163. libc.Xpthread_cond_destroy(tls, out+56)
  6164. }
  6165. func X_xcb_out_send(tls *libc.TLS, c uintptr, _vector uintptr, _count int32) (r int32) {
  6166. bp := tls.Alloc(16)
  6167. defer tls.Free(16)
  6168. *(*uintptr)(unsafe.Pointer(bp)) = _vector
  6169. *(*int32)(unsafe.Pointer(bp + 8)) = _count
  6170. var ret int32
  6171. _ = ret
  6172. ret = int32(1)
  6173. for ret != 0 && *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
  6174. ret = X_xcb_conn_wait(tls, c, c+4400, bp, bp+8)
  6175. }
  6176. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6177. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected
  6178. libc.Xpthread_cond_broadcast(tls, c+4400)
  6179. X_xcb_in_wake_up_next_reader(tls, c)
  6180. return ret
  6181. }
  6182. func X_xcb_out_send_sync(tls *libc.TLS, c uintptr) {
  6183. _prepare_socket_request(tls, c)
  6184. _send_sync(tls, c)
  6185. }
  6186. func X_xcb_out_flush_to(tls *libc.TLS, c uintptr, request Tuint64_t) (r int32) {
  6187. bp := tls.Alloc(16)
  6188. defer tls.Free(16)
  6189. var _ /* vec at bp+0 */ Tiovec
  6190. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written-request) >= 0 {
  6191. return int32(1)
  6192. }
  6193. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len != 0 {
  6194. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_base = c + 4400 + 124
  6195. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  6196. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  6197. return X_xcb_out_send(tls, c, bp, int32(1))
  6198. }
  6199. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0 {
  6200. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  6201. }
  6202. return int32(1)
  6203. }
  6204. const m_INT32_MAX1 = 2147483647
  6205. const m_MSG_CTRUNC1 = 8
  6206. const m_MSG_TRUNC1 = 32
  6207. const m_POLLOUT1 = 0x004
  6208. const m_UINT32_MAX1 = 4294967295
  6209. const m_XCB_ERROR = 0
  6210. const m_XCB_REPLY = 1
  6211. const m_XCB_XGE_EVENT = 35
  6212. type Txcb_special_event_t = struct {
  6213. Fnext uintptr
  6214. Fextension Tuint8_t
  6215. Feid Tuint32_t
  6216. Fstamp uintptr
  6217. Fevents uintptr
  6218. Fevents_tail uintptr
  6219. Fspecial_event_cond Tpthread_cond_t
  6220. }
  6221. type Txcb_special_event = Txcb_special_event_t
  6222. type Tevent_list = struct {
  6223. Fevent uintptr
  6224. Fnext uintptr
  6225. }
  6226. type Treply_list = struct {
  6227. Freply uintptr
  6228. Fnext uintptr
  6229. }
  6230. type Tpending_reply = struct {
  6231. Ffirst_request Tuint64_t
  6232. Flast_request Tuint64_t
  6233. Fworkaround _workarounds
  6234. Fflags int32
  6235. Fnext uintptr
  6236. }
  6237. type Treader_list = struct {
  6238. Frequest Tuint64_t
  6239. Fdata uintptr
  6240. Fnext uintptr
  6241. }
  6242. type Tspecial_list = struct {
  6243. Fse uintptr
  6244. Fnext uintptr
  6245. }
  6246. func _remove_finished_readers(tls *libc.TLS, prev_reader uintptr, completed Tuint64_t) {
  6247. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-completed) <= 0 {
  6248. /* If you don't have what you're looking for now, you never
  6249. * will. Wake up and leave me alone. */
  6250. libc.Xpthread_cond_signal(tls, (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fdata)
  6251. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6252. }
  6253. }
  6254. func _read_fds(tls *libc.TLS, c uintptr, fds uintptr, nfd int32) (r int32) {
  6255. var ifds uintptr
  6256. var infd int32
  6257. _, _ = ifds, infd
  6258. ifds = c + 64 + 4256 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4
  6259. infd = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd - (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  6260. if nfd > infd {
  6261. return 0
  6262. }
  6263. libc.Xmemcpy(tls, fds, ifds, libc.Uint64FromInt32(nfd)*uint64(4))
  6264. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd += nfd
  6265. return int32(1)
  6266. }
  6267. type Txcb_ge_special_event_t = struct {
  6268. Fresponse_type Tuint8_t
  6269. Fextension Tuint8_t
  6270. Fsequence Tuint16_t
  6271. Flength Tuint32_t
  6272. Fevtype Tuint16_t
  6273. Fpad0 [2]Tuint8_t
  6274. Feid Tuint32_t
  6275. Fpad1 [16]Tuint8_t
  6276. }
  6277. func _event_special(tls *libc.TLS, c uintptr, event uintptr) (r int32) {
  6278. var ges, special_event uintptr
  6279. _, _ = ges, special_event
  6280. ges = (*Tevent_list)(unsafe.Pointer(event)).Fevent
  6281. /* Special events are always XGE events */
  6282. if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fresponse_type)&int32(0x7f) != int32(m_XCB_XGE_EVENT) {
  6283. return 0
  6284. }
  6285. special_event = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6286. for {
  6287. if !(special_event != 0) {
  6288. break
  6289. }
  6290. 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 {
  6291. *(*uintptr)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail)) = event
  6292. (*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail = event + 8
  6293. if (*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp != 0 {
  6294. *(*Tuint32_t)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp))++
  6295. }
  6296. libc.Xpthread_cond_signal(tls, special_event+40)
  6297. return int32(1)
  6298. }
  6299. goto _1
  6300. _1:
  6301. ;
  6302. special_event = (*Txcb_special_event)(unsafe.Pointer(special_event)).Fnext
  6303. }
  6304. return 0
  6305. }
  6306. func _read_packet(tls *libc.TLS, c uintptr) (r int32) {
  6307. bp := tls.Alloc(16)
  6308. defer tls.Free(16)
  6309. var buf, cur, event, oldpend, p, pend uintptr
  6310. var bufsize, eventlength, lastread, length, new_length Tuint64_t
  6311. var nfd int32
  6312. var v1 uint64
  6313. var _ /* genrep at bp+0 */ Txcb_generic_reply_t
  6314. _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, bufsize, cur, event, eventlength, lastread, length, new_length, nfd, oldpend, p, pend, v1
  6315. length = uint64(32)
  6316. eventlength = uint64(0) /* length after first 32 bytes for GenericEvents */
  6317. nfd = 0
  6318. pend = uintptr(0)
  6319. /* Wait for there to be enough data for us to read a whole packet */
  6320. if libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len) < length {
  6321. return 0
  6322. }
  6323. /* Get the response type, length, and sequence number. */
  6324. libc.Xmemcpy(tls, bp, c+64+52, uint64(8))
  6325. /* Compute 32-bit sequence number of this packet. */
  6326. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) != int32(m_XCB_KEYMAP_NOTIFY) {
  6327. lastread = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6328. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read = lastread&uint64(0xffffffffffff0000) | uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fsequence)
  6329. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-lastread) < 0 {
  6330. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read += uint64(0x10000)
  6331. }
  6332. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) > 0 {
  6333. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6334. }
  6335. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read != lastread {
  6336. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6337. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, lastread, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply)
  6338. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = uintptr(0)
  6339. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6340. }
  6341. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read - uint64(1)
  6342. }
  6343. 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 {
  6344. oldpend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6345. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies = (*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext
  6346. if !((*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext != 0) {
  6347. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = c + 64 + 4240
  6348. }
  6349. libc.Xfree(tls, oldpend)
  6350. }
  6351. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR {
  6352. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6353. }
  6354. _remove_finished_readers(tls, c+64+4224, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed)
  6355. }
  6356. 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) {
  6357. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6358. 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)) {
  6359. pend = uintptr(0)
  6360. }
  6361. }
  6362. /* For reply packets, check that the entire packet is available. */
  6363. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6364. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG) {
  6365. p = c + 64 + 52
  6366. new_length = uint64(*(*Tuint32_t)(unsafe.Pointer(p + 2*4))) * uint64(*(*Tuint32_t)(unsafe.Pointer(p + 3*4)))
  6367. if new_length >= uint64(libc.Uint32FromUint32(0xffffffff)/libc.Uint32FromUint32(16)) {
  6368. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6369. return 0
  6370. }
  6371. (*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength = uint32(new_length * libc.Uint64FromUint64(2))
  6372. }
  6373. length += uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
  6374. /* XXX a bit of a hack -- we "know" that all FD replys place
  6375. * the number of fds in the pad0 byte */
  6376. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_REPLY_FDS) != 0 {
  6377. nfd = libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fpad0)
  6378. }
  6379. }
  6380. /* XGE events may have sizes > 32 */
  6381. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) == int32(m_XCB_XGE_EVENT) {
  6382. eventlength = uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
  6383. }
  6384. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6385. v1 = uint64(0)
  6386. } else {
  6387. v1 = uint64(4)
  6388. }
  6389. bufsize = length + eventlength + libc.Uint64FromInt32(nfd)*uint64(4) + v1
  6390. if bufsize < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT32_MAX1)) {
  6391. buf = libc.Xmalloc(tls, bufsize)
  6392. } else {
  6393. buf = libc.UintptrFromInt32(0)
  6394. }
  6395. if !(buf != 0) {
  6396. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6397. return 0
  6398. }
  6399. if X_xcb_in_read_block(tls, c, buf, libc.Int32FromUint64(length)) <= 0 {
  6400. libc.Xfree(tls, buf)
  6401. return 0
  6402. }
  6403. /* pull in XGE event data if available, append after event struct */
  6404. if eventlength != 0 {
  6405. if X_xcb_in_read_block(tls, c, buf+1*36, libc.Int32FromUint64(eventlength)) <= 0 {
  6406. libc.Xfree(tls, buf)
  6407. return 0
  6408. }
  6409. }
  6410. if nfd != 0 {
  6411. if !(_read_fds(tls, c, buf+uintptr(length), nfd) != 0) {
  6412. libc.Xfree(tls, buf)
  6413. return 0
  6414. }
  6415. }
  6416. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_DISCARD_REPLY) != 0 {
  6417. libc.Xfree(tls, buf)
  6418. return int32(1)
  6419. }
  6420. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) != int32(m_XCB_REPLY) {
  6421. (*Txcb_generic_event_t)(unsafe.Pointer(buf)).Ffull_sequence = uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read)
  6422. }
  6423. /* reply, or checked error */
  6424. 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 {
  6425. cur = libc.Xmalloc(tls, uint64(16))
  6426. if !(cur != 0) {
  6427. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6428. libc.Xfree(tls, buf)
  6429. return 0
  6430. }
  6431. (*Treply_list)(unsafe.Pointer(cur)).Freply = buf
  6432. (*Treply_list)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  6433. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail)) = cur
  6434. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = cur + 8
  6435. 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 {
  6436. libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  6437. }
  6438. return int32(1)
  6439. }
  6440. /* event, or unchecked error */
  6441. event = libc.Xmalloc(tls, uint64(16))
  6442. if !(event != 0) {
  6443. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6444. libc.Xfree(tls, buf)
  6445. return 0
  6446. }
  6447. (*Tevent_list)(unsafe.Pointer(event)).Fevent = buf
  6448. (*Tevent_list)(unsafe.Pointer(event)).Fnext = uintptr(0)
  6449. if !(_event_special(tls, c, event) != 0) {
  6450. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail)) = event
  6451. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = event + 8
  6452. libc.Xpthread_cond_signal(tls, c+64)
  6453. }
  6454. return int32(1) /* I have something for you... */
  6455. }
  6456. func _get_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6457. var cur, ret uintptr
  6458. _, _ = cur, ret
  6459. cur = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents
  6460. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents != 0) {
  6461. return uintptr(0)
  6462. }
  6463. ret = (*Tevent_list)(unsafe.Pointer(cur)).Fevent
  6464. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents = (*Tevent_list)(unsafe.Pointer(cur)).Fnext
  6465. if !((*Tevent_list)(unsafe.Pointer(cur)).Fnext != 0) {
  6466. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = c + 64 + 4208
  6467. }
  6468. libc.Xfree(tls, cur)
  6469. return ret
  6470. }
  6471. func _free_reply_list(tls *libc.TLS, head uintptr) {
  6472. var cur uintptr
  6473. _ = cur
  6474. for head != 0 {
  6475. cur = head
  6476. head = (*Treply_list)(unsafe.Pointer(cur)).Fnext
  6477. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(cur)).Freply)
  6478. libc.Xfree(tls, cur)
  6479. }
  6480. }
  6481. func _read_block(tls *libc.TLS, fd int32, buf uintptr, len1 Tintptr_t) (r int32) {
  6482. bp := tls.Alloc(16)
  6483. defer tls.Free(16)
  6484. var done, ret int32
  6485. var _ /* pfd at bp+0 */ Tpollfd
  6486. _, _ = done, ret
  6487. done = 0
  6488. for int64(done) < len1 {
  6489. ret = int32(libc.Xrecv(tls, fd, buf+uintptr(done), libc.Uint64FromInt64(len1-int64(done)), 0))
  6490. if ret > 0 {
  6491. done += ret
  6492. }
  6493. if ret < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  6494. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = fd
  6495. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  6496. (*(*Tpollfd)(unsafe.Pointer(bp))).Frevents = 0
  6497. for cond := true; cond; cond = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  6498. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  6499. }
  6500. }
  6501. if ret <= 0 {
  6502. return ret
  6503. }
  6504. }
  6505. return int32(len1)
  6506. }
  6507. func _poll_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6508. var head uintptr
  6509. _ = head
  6510. /* If an error occurred when issuing the request, fail immediately. */
  6511. if !(request != 0) {
  6512. head = uintptr(0)
  6513. } else {
  6514. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) < 0 {
  6515. head = X_xcb_map_remove(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request)
  6516. if head != 0 && (*Treply_list)(unsafe.Pointer(head)).Fnext != 0 {
  6517. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request, (*Treply_list)(unsafe.Pointer(head)).Fnext)
  6518. }
  6519. } else {
  6520. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6521. head = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply
  6522. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = (*Treply_list)(unsafe.Pointer(head)).Fnext
  6523. if !((*Treply_list)(unsafe.Pointer(head)).Fnext != 0) {
  6524. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6525. }
  6526. } else {
  6527. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed {
  6528. head = uintptr(0)
  6529. } else {
  6530. return 0
  6531. }
  6532. }
  6533. }
  6534. }
  6535. if error1 != 0 {
  6536. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6537. }
  6538. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6539. if head != 0 {
  6540. if libc.Int32FromUint8((*Txcb_generic_reply_t)(unsafe.Pointer((*Treply_list)(unsafe.Pointer(head)).Freply)).Fresponse_type) == m_XCB_ERROR {
  6541. if error1 != 0 {
  6542. *(*uintptr)(unsafe.Pointer(error1)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6543. } else {
  6544. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(head)).Freply)
  6545. }
  6546. } else {
  6547. *(*uintptr)(unsafe.Pointer(reply)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6548. }
  6549. libc.Xfree(tls, head)
  6550. }
  6551. return int32(1)
  6552. }
  6553. func _insert_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr, request Tuint64_t, cond uintptr) {
  6554. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-request) <= 0 {
  6555. prev_reader = *(*uintptr)(unsafe.Pointer(prev_reader)) + 16
  6556. }
  6557. (*Treader_list)(unsafe.Pointer(reader)).Frequest = request
  6558. (*Treader_list)(unsafe.Pointer(reader)).Fdata = cond
  6559. (*Treader_list)(unsafe.Pointer(reader)).Fnext = *(*uintptr)(unsafe.Pointer(prev_reader))
  6560. *(*uintptr)(unsafe.Pointer(prev_reader)) = reader
  6561. }
  6562. func _remove_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr) {
  6563. 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 {
  6564. if *(*uintptr)(unsafe.Pointer(prev_reader)) == reader {
  6565. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6566. break
  6567. }
  6568. }
  6569. }
  6570. func _insert_special(tls *libc.TLS, prev_special uintptr, special uintptr, se uintptr) {
  6571. (*Tspecial_list)(unsafe.Pointer(special)).Fse = se
  6572. (*Tspecial_list)(unsafe.Pointer(special)).Fnext = *(*uintptr)(unsafe.Pointer(prev_special))
  6573. *(*uintptr)(unsafe.Pointer(prev_special)) = special
  6574. }
  6575. func _remove_special(tls *libc.TLS, prev_special uintptr, special uintptr) {
  6576. for *(*uintptr)(unsafe.Pointer(prev_special)) != 0 {
  6577. if *(*uintptr)(unsafe.Pointer(prev_special)) == special {
  6578. *(*uintptr)(unsafe.Pointer(prev_special)) = (*Tspecial_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_special)))).Fnext
  6579. break
  6580. }
  6581. prev_special = *(*uintptr)(unsafe.Pointer(prev_special)) + 8
  6582. }
  6583. }
  6584. func _wait_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6585. bp := tls.Alloc(80)
  6586. defer tls.Free(80)
  6587. var _ /* cond at bp+8 */ Tpthread_cond_t
  6588. var _ /* reader at bp+56 */ Treader_list
  6589. var _ /* ret at bp+0 */ uintptr
  6590. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6591. /* If this request has not been written yet, write it. */
  6592. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 || X_xcb_out_flush_to(tls, c, request) != 0 {
  6593. *(*Tpthread_cond_t)(unsafe.Pointer(bp + 8)) = Tpthread_cond_t{}
  6594. *(*int32)(unsafe.Pointer(bp + 8)) = 0
  6595. _insert_reader(tls, c+64+4224, bp+56, request, bp+8)
  6596. for !(_poll_for_reply(tls, c, request, bp, e) != 0) {
  6597. if !(X_xcb_conn_wait(tls, c, bp+8, uintptr(0), uintptr(0)) != 0) {
  6598. break
  6599. }
  6600. }
  6601. _remove_reader(tls, c+64+4224, bp+56)
  6602. libc.Xpthread_cond_destroy(tls, bp+8)
  6603. }
  6604. X_xcb_in_wake_up_next_reader(tls, c)
  6605. return *(*uintptr)(unsafe.Pointer(bp))
  6606. }
  6607. func _widen(tls *libc.TLS, c uintptr, request uint32) (r Tuint64_t) {
  6608. var widened_request Tuint64_t
  6609. _ = widened_request
  6610. widened_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest&uint64(0xffffffff00000000) | uint64(request)
  6611. if widened_request > (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest {
  6612. widened_request -= libc.Uint64FromUint64(1) << libc.Int32FromInt32(32)
  6613. }
  6614. return widened_request
  6615. }
  6616. /* Public interface */
  6617. func Xxcb_wait_for_reply(tls *libc.TLS, c uintptr, request uint32, e uintptr) (r uintptr) {
  6618. var ret uintptr
  6619. _ = ret
  6620. if e != 0 {
  6621. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6622. }
  6623. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6624. return uintptr(0)
  6625. }
  6626. libc.Xpthread_mutex_lock(tls, c+24)
  6627. ret = _wait_for_reply(tls, c, _widen(tls, c, request), e)
  6628. libc.Xpthread_mutex_unlock(tls, c+24)
  6629. return ret
  6630. }
  6631. func Xxcb_wait_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6632. var ret uintptr
  6633. _ = ret
  6634. if e != 0 {
  6635. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6636. }
  6637. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6638. return uintptr(0)
  6639. }
  6640. libc.Xpthread_mutex_lock(tls, c+24)
  6641. ret = _wait_for_reply(tls, c, request, e)
  6642. libc.Xpthread_mutex_unlock(tls, c+24)
  6643. return ret
  6644. }
  6645. func Xxcb_get_reply_fds(tls *libc.TLS, c uintptr, reply uintptr, reply_size Tsize_t) (r uintptr) {
  6646. return reply + uintptr(reply_size)
  6647. }
  6648. func _insert_pending_discard(tls *libc.TLS, c uintptr, prev_next uintptr, seq Tuint64_t) {
  6649. var pend uintptr
  6650. _ = pend
  6651. pend = libc.Xmalloc(tls, uint64(32))
  6652. if !(pend != 0) {
  6653. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6654. return
  6655. }
  6656. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = seq
  6657. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = seq
  6658. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = 0
  6659. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = int32(_XCB_REQUEST_DISCARD_REPLY)
  6660. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = *(*uintptr)(unsafe.Pointer(prev_next))
  6661. *(*uintptr)(unsafe.Pointer(prev_next)) = pend
  6662. if !((*Tpending_reply)(unsafe.Pointer(pend)).Fnext != 0) {
  6663. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  6664. }
  6665. }
  6666. func _discard_reply(tls *libc.TLS, c uintptr, request Tuint64_t) {
  6667. bp := tls.Alloc(16)
  6668. defer tls.Free(16)
  6669. var prev_pend uintptr
  6670. var _ /* reply at bp+0 */ uintptr
  6671. _ = prev_pend
  6672. /* Free any replies or errors that we've already read. Stop if
  6673. * xcb_wait_for_reply would block or we've run out of replies. */
  6674. for _poll_for_reply(tls, c, request, bp, uintptr(0)) != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
  6675. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp)))
  6676. }
  6677. /* If we've proven there are no more responses coming, we're done. */
  6678. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
  6679. return
  6680. }
  6681. /* Walk the list of pending requests. Mark the first match for deletion. */
  6682. prev_pend = c + 64 + 4240
  6683. for {
  6684. if !(*(*uintptr)(unsafe.Pointer(prev_pend)) != 0) {
  6685. break
  6686. }
  6687. if libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request-request) > 0 {
  6688. break
  6689. }
  6690. if (*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request == request {
  6691. /* Pending reply found. Mark for discard: */
  6692. *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)) + 20)) |= int32(_XCB_REQUEST_DISCARD_REPLY)
  6693. return
  6694. }
  6695. goto _1
  6696. _1:
  6697. ;
  6698. prev_pend = *(*uintptr)(unsafe.Pointer(prev_pend)) + 24
  6699. }
  6700. /* Pending reply not found (likely due to _unchecked request). Create one: */
  6701. _insert_pending_discard(tls, c, prev_pend, request)
  6702. }
  6703. func Xxcb_discard_reply(tls *libc.TLS, c uintptr, sequence uint32) {
  6704. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6705. return
  6706. }
  6707. /* If an error occurred when issuing the request, fail immediately. */
  6708. if !(sequence != 0) {
  6709. return
  6710. }
  6711. libc.Xpthread_mutex_lock(tls, c+24)
  6712. _discard_reply(tls, c, _widen(tls, c, sequence))
  6713. libc.Xpthread_mutex_unlock(tls, c+24)
  6714. }
  6715. func Xxcb_discard_reply64(tls *libc.TLS, c uintptr, sequence Tuint64_t) {
  6716. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6717. return
  6718. }
  6719. /* If an error occurred when issuing the request, fail immediately. */
  6720. if !(sequence != 0) {
  6721. return
  6722. }
  6723. libc.Xpthread_mutex_lock(tls, c+24)
  6724. _discard_reply(tls, c, sequence)
  6725. libc.Xpthread_mutex_unlock(tls, c+24)
  6726. }
  6727. func Xxcb_poll_for_reply(tls *libc.TLS, c uintptr, request uint32, reply uintptr, error1 uintptr) (r int32) {
  6728. var ret int32
  6729. _ = ret
  6730. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6731. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6732. if error1 != 0 {
  6733. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6734. }
  6735. return int32(1) /* would not block */
  6736. }
  6737. libc.Xpthread_mutex_lock(tls, c+24)
  6738. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6739. 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 */
  6740. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6741. }
  6742. libc.Xpthread_mutex_unlock(tls, c+24)
  6743. return ret
  6744. }
  6745. func Xxcb_poll_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6746. var ret int32
  6747. _ = ret
  6748. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6749. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6750. if error1 != 0 {
  6751. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6752. }
  6753. return int32(1) /* would not block */
  6754. }
  6755. libc.Xpthread_mutex_lock(tls, c+24)
  6756. ret = _poll_for_reply(tls, c, request, reply, error1)
  6757. 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 */
  6758. ret = _poll_for_reply(tls, c, request, reply, error1)
  6759. }
  6760. libc.Xpthread_mutex_unlock(tls, c+24)
  6761. return ret
  6762. }
  6763. func Xxcb_wait_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6764. var ret, v1 uintptr
  6765. _, _ = ret, v1
  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. /* get_event returns 0 on empty list. */
  6771. for {
  6772. v1 = _get_event(tls, c)
  6773. ret = v1
  6774. if !!(v1 != 0) {
  6775. break
  6776. }
  6777. if !(X_xcb_conn_wait(tls, c, c+64, uintptr(0), uintptr(0)) != 0) {
  6778. break
  6779. }
  6780. }
  6781. X_xcb_in_wake_up_next_reader(tls, c)
  6782. libc.Xpthread_mutex_unlock(tls, c+24)
  6783. return ret
  6784. }
  6785. func _poll_for_next_event(tls *libc.TLS, c uintptr, queued int32) (r uintptr) {
  6786. var ret uintptr
  6787. _ = ret
  6788. ret = uintptr(0)
  6789. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
  6790. libc.Xpthread_mutex_lock(tls, c+24)
  6791. /* FIXME: follow X meets Z architecture changes. */
  6792. ret = _get_event(tls, c)
  6793. 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 */
  6794. ret = _get_event(tls, c)
  6795. }
  6796. libc.Xpthread_mutex_unlock(tls, c+24)
  6797. }
  6798. return ret
  6799. }
  6800. func Xxcb_poll_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6801. return _poll_for_next_event(tls, c, 0)
  6802. }
  6803. func Xxcb_poll_for_queued_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6804. return _poll_for_next_event(tls, c, int32(1))
  6805. }
  6806. func Xxcb_request_check(tls *libc.TLS, c uintptr, cookie Txcb_void_cookie_t) (r uintptr) {
  6807. bp := tls.Alloc(16)
  6808. defer tls.Free(16)
  6809. var reply uintptr
  6810. var request Tuint64_t
  6811. var _ /* ret at bp+0 */ uintptr
  6812. _, _ = reply, request
  6813. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6814. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6815. return uintptr(0)
  6816. }
  6817. libc.Xpthread_mutex_lock(tls, c+24)
  6818. request = _widen(tls, c, cookie.Fsequence)
  6819. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) > 0 {
  6820. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) >= 0 {
  6821. X_xcb_out_send_sync(tls, c)
  6822. }
  6823. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written) >= 0 {
  6824. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6825. }
  6826. }
  6827. reply = _wait_for_reply(tls, c, request, bp)
  6828. libc.Xpthread_mutex_unlock(tls, c+24)
  6829. return *(*uintptr)(unsafe.Pointer(bp))
  6830. }
  6831. func _get_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6832. var event, events, v1, v2 uintptr
  6833. _, _, _, _ = event, events, v1, v2
  6834. event = libc.UintptrFromInt32(0)
  6835. v1 = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6836. events = v1
  6837. if v1 != libc.UintptrFromInt32(0) {
  6838. event = (*Tevent_list)(unsafe.Pointer(events)).Fevent
  6839. v2 = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6840. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = v2
  6841. if !(v2 != 0) {
  6842. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6843. }
  6844. libc.Xfree(tls, events)
  6845. }
  6846. return event
  6847. }
  6848. func Xxcb_poll_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6849. var event uintptr
  6850. _ = event
  6851. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6852. return uintptr(0)
  6853. }
  6854. libc.Xpthread_mutex_lock(tls, c+24)
  6855. event = _get_special_event(tls, c, se)
  6856. 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 */
  6857. event = _get_special_event(tls, c, se)
  6858. }
  6859. libc.Xpthread_mutex_unlock(tls, c+24)
  6860. return event
  6861. }
  6862. func Xxcb_wait_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6863. bp := tls.Alloc(16)
  6864. defer tls.Free(16)
  6865. var event, v1 uintptr
  6866. var _ /* special at bp+0 */ Tspecial_list
  6867. _, _ = event, v1
  6868. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6869. return uintptr(0)
  6870. }
  6871. libc.Xpthread_mutex_lock(tls, c+24)
  6872. _insert_special(tls, c+64+4232, bp, se)
  6873. /* get_special_event returns 0 on empty list. */
  6874. for {
  6875. v1 = _get_special_event(tls, c, se)
  6876. event = v1
  6877. if !!(v1 != 0) {
  6878. break
  6879. }
  6880. if !(X_xcb_conn_wait(tls, c, se+40, uintptr(0), uintptr(0)) != 0) {
  6881. break
  6882. }
  6883. }
  6884. _remove_special(tls, c+64+4232, bp)
  6885. X_xcb_in_wake_up_next_reader(tls, c)
  6886. libc.Xpthread_mutex_unlock(tls, c+24)
  6887. return event
  6888. }
  6889. func Xxcb_register_for_special_xge(tls *libc.TLS, c uintptr, ext uintptr, eid Tuint32_t, stamp uintptr) (r uintptr) {
  6890. var ext_reply, se uintptr
  6891. _, _ = ext_reply, se
  6892. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6893. return libc.UintptrFromInt32(0)
  6894. }
  6895. ext_reply = Xxcb_get_extension_data(tls, c, ext)
  6896. if !(ext_reply != 0) {
  6897. return libc.UintptrFromInt32(0)
  6898. }
  6899. libc.Xpthread_mutex_lock(tls, c+24)
  6900. se = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6901. for {
  6902. if !(se != 0) {
  6903. break
  6904. }
  6905. 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 {
  6906. libc.Xpthread_mutex_unlock(tls, c+24)
  6907. return libc.UintptrFromInt32(0)
  6908. }
  6909. goto _1
  6910. _1:
  6911. ;
  6912. se = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6913. }
  6914. se = libc.Xcalloc(tls, uint64(1), uint64(88))
  6915. if !(se != 0) {
  6916. libc.Xpthread_mutex_unlock(tls, c+24)
  6917. return libc.UintptrFromInt32(0)
  6918. }
  6919. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension = (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode
  6920. (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid = eid
  6921. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = libc.UintptrFromInt32(0)
  6922. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6923. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fstamp = stamp
  6924. libc.Xpthread_cond_init(tls, se+40, uintptr(0))
  6925. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6926. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events = se
  6927. libc.Xpthread_mutex_unlock(tls, c+24)
  6928. return se
  6929. }
  6930. func Xxcb_unregister_for_special_event(tls *libc.TLS, c uintptr, se uintptr) {
  6931. var events, next, prev, s, v2 uintptr
  6932. _, _, _, _, _ = events, next, prev, s, v2
  6933. if !(se != 0) {
  6934. return
  6935. }
  6936. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6937. return
  6938. }
  6939. libc.Xpthread_mutex_lock(tls, c+24)
  6940. prev = c + 64 + 4328
  6941. for {
  6942. v2 = *(*uintptr)(unsafe.Pointer(prev))
  6943. s = v2
  6944. if !(v2 != libc.UintptrFromInt32(0)) {
  6945. break
  6946. }
  6947. if s == se {
  6948. *(*uintptr)(unsafe.Pointer(prev)) = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6949. events = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6950. for {
  6951. if !(events != 0) {
  6952. break
  6953. }
  6954. next = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6955. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(events)).Fevent)
  6956. libc.Xfree(tls, events)
  6957. goto _3
  6958. _3:
  6959. ;
  6960. events = next
  6961. }
  6962. libc.Xpthread_cond_destroy(tls, se+40)
  6963. libc.Xfree(tls, se)
  6964. break
  6965. }
  6966. goto _1
  6967. _1:
  6968. ;
  6969. prev = s
  6970. }
  6971. libc.Xpthread_mutex_unlock(tls, c+24)
  6972. }
  6973. /* Private interface */
  6974. func X_xcb_in_init(tls *libc.TLS, in uintptr) (r int32) {
  6975. if libc.Xpthread_cond_init(tls, in, uintptr(0)) != 0 {
  6976. return 0
  6977. }
  6978. (*T_xcb_in)(unsafe.Pointer(in)).Freading = 0
  6979. (*T_xcb_in)(unsafe.Pointer(in)).Fqueue_len = 0
  6980. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_read = uint64(0)
  6981. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_completed = uint64(0)
  6982. (*T_xcb_in)(unsafe.Pointer(in)).Freplies = X_xcb_map_new(tls)
  6983. if !((*T_xcb_in)(unsafe.Pointer(in)).Freplies != 0) {
  6984. return 0
  6985. }
  6986. (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply_tail = in + 4184
  6987. (*T_xcb_in)(unsafe.Pointer(in)).Fevents_tail = in + 4208
  6988. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies_tail = in + 4240
  6989. return int32(1)
  6990. }
  6991. func X_xcb_in_destroy(tls *libc.TLS, in uintptr) {
  6992. var e, pend uintptr
  6993. _, _ = e, pend
  6994. libc.Xpthread_cond_destroy(tls, in)
  6995. _free_reply_list(tls, (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply)
  6996. X_xcb_map_delete(tls, (*T_xcb_in)(unsafe.Pointer(in)).Freplies, __ccgo_fp(_free_reply_list))
  6997. for (*T_xcb_in)(unsafe.Pointer(in)).Fevents != 0 {
  6998. e = (*T_xcb_in)(unsafe.Pointer(in)).Fevents
  6999. (*T_xcb_in)(unsafe.Pointer(in)).Fevents = (*Tevent_list)(unsafe.Pointer(e)).Fnext
  7000. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(e)).Fevent)
  7001. libc.Xfree(tls, e)
  7002. }
  7003. for (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies != 0 {
  7004. pend = (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies
  7005. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies = (*Tpending_reply)(unsafe.Pointer(pend)).Fnext
  7006. libc.Xfree(tls, pend)
  7007. }
  7008. }
  7009. func X_xcb_in_wake_up_next_reader(tls *libc.TLS, c uintptr) {
  7010. var pthreadret int32
  7011. _ = pthreadret
  7012. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 {
  7013. pthreadret = libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  7014. } else {
  7015. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters != 0 {
  7016. pthreadret = libc.Xpthread_cond_signal(tls, (*Tspecial_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters)).Fse+40)
  7017. } else {
  7018. pthreadret = libc.Xpthread_cond_signal(tls, c+64)
  7019. }
  7020. }
  7021. }
  7022. func X_xcb_in_expect_reply(tls *libc.TLS, c uintptr, request Tuint64_t, workaround _workarounds, flags int32) (r int32) {
  7023. var pend uintptr
  7024. var v1 Tuint64_t
  7025. _, _ = pend, v1
  7026. pend = libc.Xmalloc(tls, uint64(32))
  7027. if !(pend != 0) {
  7028. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  7029. return 0
  7030. }
  7031. v1 = request
  7032. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = v1
  7033. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = v1
  7034. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = workaround
  7035. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = flags
  7036. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = uintptr(0)
  7037. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail)) = pend
  7038. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  7039. return int32(1)
  7040. }
  7041. func X_xcb_in_replies_done(tls *libc.TLS, c uintptr) {
  7042. var pend, prev_next uintptr
  7043. _, _ = pend, prev_next
  7044. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail != c+64+4240 {
  7045. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail - uintptr(Tsize_t(libc.UintptrFromInt32(0)+24))
  7046. if (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) {
  7047. if libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest) <= 0 {
  7048. (*Tpending_reply1)(unsafe.Pointer(pend)).Flast_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  7049. (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround = int32(_WORKAROUND_NONE)
  7050. } else {
  7051. /* The socket was taken, but no requests were actually sent
  7052. * so just discard the pending_reply that was created.
  7053. */
  7054. prev_next = c + 64 + 4240
  7055. for *(*uintptr)(unsafe.Pointer(prev_next)) != pend {
  7056. prev_next = *(*uintptr)(unsafe.Pointer(prev_next)) + 24
  7057. }
  7058. *(*uintptr)(unsafe.Pointer(prev_next)) = libc.UintptrFromInt32(0)
  7059. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = prev_next
  7060. libc.Xfree(tls, pend)
  7061. }
  7062. }
  7063. }
  7064. }
  7065. func X_xcb_in_read(tls *libc.TLS, c uintptr) (r int32) {
  7066. bp := tls.Alloc(160)
  7067. defer tls.Free(160)
  7068. var hdr, v2, v3 uintptr
  7069. var i, n, nfd int32
  7070. var _ /* cmsgbuf at bp+16 */ struct {
  7071. Fbuf [0][80]uint8
  7072. Fcmsghdr Tcmsghdr
  7073. F__ccgo_pad2 [64]byte
  7074. }
  7075. var _ /* iov at bp+0 */ Tiovec
  7076. var _ /* msg at bp+96 */ Tmsghdr
  7077. _, _, _, _, _, _ = hdr, i, n, nfd, v2, v3
  7078. *(*Tiovec)(unsafe.Pointer(bp)) = Tiovec{
  7079. Fiov_base: c + 64 + 52 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7080. Fiov_len: uint64(4096) - libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7081. }
  7082. *(*Tmsghdr)(unsafe.Pointer(bp + 96)) = Tmsghdr{
  7083. Fmsg_iov: bp,
  7084. Fmsg_iovlen: int32(1),
  7085. Fmsg_control: bp + 16,
  7086. 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))),
  7087. }
  7088. n = int32(libc.Xrecvmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+96, 0))
  7089. /* Check for truncation errors. Only MSG_CTRUNC is
  7090. * probably possible here, which would indicate that
  7091. * the sender tried to transmit more than XCB_MAX_PASS_FD
  7092. * file descriptors.
  7093. */
  7094. if (*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_flags&(libc.Int32FromInt32(m_MSG_TRUNC1)|libc.Int32FromInt32(m_MSG_CTRUNC1)) != 0 {
  7095. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7096. return 0
  7097. }
  7098. if n > 0 {
  7099. if uint64((*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_controllen) >= uint64(16) {
  7100. if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) {
  7101. v2 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control
  7102. } else {
  7103. v2 = libc.UintptrFromInt32(0)
  7104. }
  7105. hdr = v2
  7106. for {
  7107. if !(hdr != 0) {
  7108. break
  7109. }
  7110. if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level == int32(m_SOL_SOCKET) && (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type == int32(m_SCM_RIGHTS) {
  7111. 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))
  7112. 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))
  7113. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd += nfd
  7114. }
  7115. goto _1
  7116. _1:
  7117. ;
  7118. 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)) {
  7119. v3 = uintptr(0)
  7120. } else {
  7121. 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))))
  7122. }
  7123. hdr = v3
  7124. }
  7125. }
  7126. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read += libc.Uint64FromInt32(n)
  7127. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len += n
  7128. }
  7129. for _read_packet(tls, c) != 0 {
  7130. /* empty */
  7131. }
  7132. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7133. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd -= (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  7134. 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))
  7135. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd = 0
  7136. /* If we have any left-over file descriptors after emptying
  7137. * the input buffer, then the server sent some that we weren't
  7138. * expecting. Close them and mark the connection as broken;
  7139. */
  7140. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len == 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7141. i = 0
  7142. for {
  7143. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd) {
  7144. break
  7145. }
  7146. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 64 + 4256 + uintptr(i)*4)))
  7147. goto _4
  7148. _4:
  7149. ;
  7150. i++
  7151. }
  7152. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7153. return 0
  7154. }
  7155. }
  7156. 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)) {
  7157. return int32(1)
  7158. }
  7159. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7160. return 0
  7161. }
  7162. func X_xcb_in_read_block(tls *libc.TLS, c uintptr, buf uintptr, len1 int32) (r int32) {
  7163. var done, ret int32
  7164. _, _ = done, ret
  7165. done = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len
  7166. if len1 < done {
  7167. done = len1
  7168. }
  7169. libc.Xmemcpy(tls, buf, c+64+52, libc.Uint64FromInt32(done))
  7170. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len -= done
  7171. libc.Xmemmove(tls, c+64+52, c+64+52+uintptr(done), libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len))
  7172. if len1 > done {
  7173. ret = _read_block(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, buf+uintptr(done), int64(len1-done))
  7174. if ret <= 0 {
  7175. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7176. return ret
  7177. }
  7178. }
  7179. return len1
  7180. }
  7181. type Tpending_reply1 = struct {
  7182. Ffirst_request Tuint64_t
  7183. Flast_request Tuint64_t
  7184. Fworkaround _workarounds
  7185. Fflags int32
  7186. Fnext uintptr
  7187. }
  7188. type Treader_list1 = struct {
  7189. Frequest Tuint64_t
  7190. Fdata uintptr
  7191. Fnext uintptr
  7192. }
  7193. type Tspecial_list1 = struct {
  7194. Fse uintptr
  7195. Fnext uintptr
  7196. }
  7197. type Txcb_ge_special_event_t1 = struct {
  7198. Fresponse_type Tuint8_t
  7199. Fextension Tuint8_t
  7200. Fsequence Tuint16_t
  7201. Flength Tuint32_t
  7202. Fevtype Tuint16_t
  7203. Fpad0 [2]Tuint8_t
  7204. Feid Tuint32_t
  7205. Fpad1 [16]Tuint8_t
  7206. }
  7207. const m_INT32_MAX2 = 0x7fffffff
  7208. const m_UINT32_MAX2 = "0xffffffffu"
  7209. type Tlazyreply = struct {
  7210. Ftag _lazy_reply_tag
  7211. Fvalue struct {
  7212. Freply [0]uintptr
  7213. Fcookie Txcb_query_extension_cookie_t
  7214. F__ccgo_pad2 [4]byte
  7215. }
  7216. }
  7217. func _get_index(tls *libc.TLS, c uintptr, idx int32) (r uintptr) {
  7218. var new_extensions uintptr
  7219. var new_size int32
  7220. _, _ = new_extensions, new_size
  7221. if idx > (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size {
  7222. new_size = idx << int32(1)
  7223. new_extensions = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions, uint64(16)*libc.Uint64FromInt32(new_size))
  7224. if !(new_extensions != 0) {
  7225. return uintptr(0)
  7226. }
  7227. 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))
  7228. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions = new_extensions
  7229. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size = new_size
  7230. }
  7231. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr(idx)*16 - uintptr(1)*16
  7232. }
  7233. func _get_lazyreply(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7234. var data uintptr
  7235. var v1 int32
  7236. _, _ = data, v1
  7237. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7238. if !((*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id != 0) {
  7239. _next_global_id++
  7240. v1 = _next_global_id
  7241. (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id = v1
  7242. }
  7243. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7244. data = _get_index(tls, c, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id)
  7245. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_NONE) {
  7246. /* cache miss: query the server */
  7247. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_COOKIE)
  7248. (*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)
  7249. }
  7250. return data
  7251. }
  7252. var _global_lock = Tpthread_mutex_t{}
  7253. var _next_global_id int32
  7254. /* Public interface */
  7255. // C documentation
  7256. //
  7257. // /* Do not free the returned xcb_query_extension_reply_t - on return, it's aliased
  7258. // * from the cache. */
  7259. func Xxcb_get_extension_data(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7260. var data, v1 uintptr
  7261. _, _ = data, v1
  7262. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7263. return uintptr(0)
  7264. }
  7265. libc.Xpthread_mutex_lock(tls, c+21064)
  7266. data = _get_lazyreply(tls, c, ext)
  7267. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_COOKIE) {
  7268. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_FORCED)
  7269. *(*uintptr)(unsafe.Pointer(data + 8)) = Xxcb_query_extension_reply(tls, c, (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie, uintptr(0))
  7270. }
  7271. libc.Xpthread_mutex_unlock(tls, c+21064)
  7272. if data != 0 {
  7273. v1 = *(*uintptr)(unsafe.Pointer(data + 8))
  7274. } else {
  7275. v1 = uintptr(0)
  7276. }
  7277. return v1
  7278. }
  7279. func Xxcb_prefetch_extension_data(tls *libc.TLS, c uintptr, ext uintptr) {
  7280. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7281. return
  7282. }
  7283. libc.Xpthread_mutex_lock(tls, c+21064)
  7284. _get_lazyreply(tls, c, ext)
  7285. libc.Xpthread_mutex_unlock(tls, c+21064)
  7286. }
  7287. /* Private interface */
  7288. func X_xcb_ext_init(tls *libc.TLS, c uintptr) (r int32) {
  7289. if libc.Xpthread_mutex_init(tls, c+21064, uintptr(0)) != 0 {
  7290. return 0
  7291. }
  7292. return int32(1)
  7293. }
  7294. func X_xcb_ext_destroy(tls *libc.TLS, c uintptr) {
  7295. var v1 int32
  7296. var v2 uintptr
  7297. _, _ = v1, v2
  7298. libc.Xpthread_mutex_destroy(tls, c+21064)
  7299. for {
  7300. v2 = c + 21064 + 48
  7301. v1 = *(*int32)(unsafe.Pointer(v2))
  7302. *(*int32)(unsafe.Pointer(v2))--
  7303. if !(v1 > 0) {
  7304. break
  7305. }
  7306. 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) {
  7307. 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)))
  7308. }
  7309. }
  7310. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions)
  7311. }
  7312. type Tlazyreply1 = struct {
  7313. Ftag _lazy_reply_tag
  7314. Fvalue struct {
  7315. Freply [0]uintptr
  7316. Fcookie Txcb_query_extension_cookie_t
  7317. F__ccgo_pad2 [4]byte
  7318. }
  7319. }
  7320. const m_XCB_XCMISC_MAJOR_VERSION = 1
  7321. const m_XCB_XCMISC_MINOR_VERSION = 1
  7322. const m_XCB_XC_MISC_GET_VERSION = 0
  7323. const m_XCB_XC_MISC_GET_XID_LIST = 2
  7324. const m_XCB_XC_MISC_GET_XID_RANGE = 1
  7325. type Txcb_xc_misc_get_version_cookie_t = struct {
  7326. Fsequence uint32
  7327. }
  7328. type Txcb_xc_misc_get_version_request_t = struct {
  7329. Fmajor_opcode Tuint8_t
  7330. Fminor_opcode Tuint8_t
  7331. Flength Tuint16_t
  7332. Fclient_major_version Tuint16_t
  7333. Fclient_minor_version Tuint16_t
  7334. }
  7335. type Txcb_xc_misc_get_version_reply_t = struct {
  7336. Fresponse_type Tuint8_t
  7337. Fpad0 Tuint8_t
  7338. Fsequence Tuint16_t
  7339. Flength Tuint32_t
  7340. Fserver_major_version Tuint16_t
  7341. Fserver_minor_version Tuint16_t
  7342. }
  7343. type Txcb_xc_misc_get_xid_range_cookie_t = struct {
  7344. Fsequence uint32
  7345. }
  7346. type Txcb_xc_misc_get_xid_range_request_t = struct {
  7347. Fmajor_opcode Tuint8_t
  7348. Fminor_opcode Tuint8_t
  7349. Flength Tuint16_t
  7350. }
  7351. type Txcb_xc_misc_get_xid_range_reply_t = struct {
  7352. Fresponse_type Tuint8_t
  7353. Fpad0 Tuint8_t
  7354. Fsequence Tuint16_t
  7355. Flength Tuint32_t
  7356. Fstart_id Tuint32_t
  7357. Fcount Tuint32_t
  7358. }
  7359. type Txcb_xc_misc_get_xid_list_cookie_t = struct {
  7360. Fsequence uint32
  7361. }
  7362. type Txcb_xc_misc_get_xid_list_request_t = struct {
  7363. Fmajor_opcode Tuint8_t
  7364. Fminor_opcode Tuint8_t
  7365. Flength Tuint16_t
  7366. Fcount Tuint32_t
  7367. }
  7368. type Txcb_xc_misc_get_xid_list_reply_t = struct {
  7369. Fresponse_type Tuint8_t
  7370. Fpad0 Tuint8_t
  7371. Fsequence Tuint16_t
  7372. Flength Tuint32_t
  7373. Fids_len Tuint32_t
  7374. Fpad1 [20]Tuint8_t
  7375. }
  7376. /**
  7377. * @}
  7378. */
  7379. /* Public interface */
  7380. func Xxcb_generate_id(tls *libc.TLS, c uintptr) (r Tuint32_t) {
  7381. var range1, xc_misc_reply uintptr
  7382. var ret Tuint32_t
  7383. _, _, _ = range1, ret, xc_misc_reply
  7384. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7385. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7386. }
  7387. libc.Xpthread_mutex_lock(tls, c+21120)
  7388. 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) {
  7389. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast == uint32(0) {
  7390. /* finish setting up initial range */
  7391. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
  7392. } else {
  7393. /* check for extension */
  7394. xc_misc_reply = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)))
  7395. if !(xc_misc_reply != 0) || !((*Txcb_query_extension_reply_t)(unsafe.Pointer(xc_misc_reply)).Fpresent != 0) {
  7396. libc.Xpthread_mutex_unlock(tls, c+21120)
  7397. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7398. }
  7399. /* get new range */
  7400. range1 = Xxcb_xc_misc_get_xid_range_reply(tls, c, Xxcb_xc_misc_get_xid_range(tls, c), uintptr(0))
  7401. /* XXX The latter disjunct is what the server returns
  7402. when it is out of XIDs. Sweet. */
  7403. 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) {
  7404. libc.Xpthread_mutex_unlock(tls, c+21120)
  7405. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7406. }
  7407. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id
  7408. (*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
  7409. libc.Xfree(tls, range1)
  7410. }
  7411. } else {
  7412. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast += (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
  7413. }
  7414. ret = (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast | (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase
  7415. libc.Xpthread_mutex_unlock(tls, c+21120)
  7416. return ret
  7417. }
  7418. /* Private interface */
  7419. func X_xcb_xid_init(tls *libc.TLS, c uintptr) (r int32) {
  7420. if libc.Xpthread_mutex_init(tls, c+21120, uintptr(0)) != 0 {
  7421. return 0
  7422. }
  7423. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = uint32(0)
  7424. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = uint32(0)
  7425. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_base
  7426. (*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
  7427. return int32(1)
  7428. }
  7429. func X_xcb_xid_destroy(tls *libc.TLS, c uintptr) {
  7430. libc.Xpthread_mutex_destroy(tls, c+21120)
  7431. }
  7432. type T_xcb_map = struct {
  7433. Fhead uintptr
  7434. Ftail uintptr
  7435. }
  7436. type Tnode = struct {
  7437. Fnext uintptr
  7438. Fkey Tuint64_t
  7439. Fdata uintptr
  7440. }
  7441. type T_xcb_map1 = struct {
  7442. Fhead uintptr
  7443. Ftail uintptr
  7444. }
  7445. /* Private interface */
  7446. func X_xcb_map_new(tls *libc.TLS) (r uintptr) {
  7447. var list uintptr
  7448. _ = list
  7449. list = libc.Xmalloc(tls, uint64(16))
  7450. if !(list != 0) {
  7451. return uintptr(0)
  7452. }
  7453. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = uintptr(0)
  7454. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = list
  7455. return list
  7456. }
  7457. func X_xcb_map_delete(tls *libc.TLS, list uintptr, do_free Txcb_list_free_func_t) {
  7458. var cur uintptr
  7459. _ = cur
  7460. if !(list != 0) {
  7461. return
  7462. }
  7463. for (*T_xcb_map)(unsafe.Pointer(list)).Fhead != 0 {
  7464. cur = (*T_xcb_map)(unsafe.Pointer(list)).Fhead
  7465. if do_free != 0 {
  7466. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{do_free})))(tls, (*Tnode)(unsafe.Pointer(cur)).Fdata)
  7467. }
  7468. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = (*Tnode)(unsafe.Pointer(cur)).Fnext
  7469. libc.Xfree(tls, cur)
  7470. }
  7471. libc.Xfree(tls, list)
  7472. }
  7473. func X_xcb_map_put(tls *libc.TLS, list uintptr, key Tuint64_t, data uintptr) (r int32) {
  7474. var cur uintptr
  7475. _ = cur
  7476. cur = libc.Xmalloc(tls, uint64(24))
  7477. if !(cur != 0) {
  7478. return 0
  7479. }
  7480. (*Tnode)(unsafe.Pointer(cur)).Fkey = key
  7481. (*Tnode)(unsafe.Pointer(cur)).Fdata = data
  7482. (*Tnode)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  7483. *(*uintptr)(unsafe.Pointer((*T_xcb_map)(unsafe.Pointer(list)).Ftail)) = cur
  7484. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7485. return int32(1)
  7486. }
  7487. func X_xcb_map_remove(tls *libc.TLS, list uintptr, key Tuint64_t) (r uintptr) {
  7488. var cur, ret, tmp uintptr
  7489. _, _, _ = cur, ret, tmp
  7490. cur = list
  7491. for {
  7492. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7493. break
  7494. }
  7495. if (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fkey == key {
  7496. tmp = *(*uintptr)(unsafe.Pointer(cur))
  7497. ret = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fdata
  7498. *(*uintptr)(unsafe.Pointer(cur)) = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fnext
  7499. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7500. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7501. }
  7502. libc.Xfree(tls, tmp)
  7503. return ret
  7504. }
  7505. goto _1
  7506. _1:
  7507. ;
  7508. cur = *(*uintptr)(unsafe.Pointer(cur))
  7509. }
  7510. return uintptr(0)
  7511. }
  7512. const m_AI_ADDRCONFIG = 0x20
  7513. const m_AI_ALL = 0x10
  7514. const m_AI_CANONNAME = 0x02
  7515. const m_AI_NUMERICHOST = 4
  7516. const m_AI_NUMERICSERV = 1024
  7517. const m_AI_PASSIVE = 0x01
  7518. const m_AI_V4MAPPED = 0x08
  7519. const m_HOST_NOT_FOUND = 1
  7520. const m_MSG_CTRUNC2 = 0x0008
  7521. const m_MSG_TRUNC2 = 0x0020
  7522. const m_NI_DGRAM = 0x10
  7523. const m_NI_MAXHOST = 255
  7524. const m_NI_MAXSERV = 32
  7525. const m_NI_NAMEREQD = 0x08
  7526. const m_NI_NOFQDN = 0x04
  7527. const m_NI_NUMERICHOST = 0x01
  7528. const m_NI_NUMERICSCOPE = 0x100
  7529. const m_NI_NUMERICSERV = 0x02
  7530. const m_NO_ADDRESS = "NO_DATA"
  7531. const m_NO_DATA = 4
  7532. const m_NO_RECOVERY = 3
  7533. const m_O_NONBLOCK1 = 04000
  7534. const m_SCM_RIGHTS1 = 0x01
  7535. const m_SOCK_CLOEXEC1 = 524288
  7536. const m_SOL_TCP = 6
  7537. const m_TCPI_OPT_ECN = 8
  7538. const m_TCPI_OPT_SACK = 2
  7539. const m_TCPI_OPT_TIMESTAMPS = 1
  7540. const m_TCPI_OPT_WSCALE = 4
  7541. const m_TCPOLEN_MAXSEG = 4
  7542. const m_TCPOLEN_SACK_PERMITTED = 2
  7543. const m_TCPOLEN_TIMESTAMP = 10
  7544. const m_TCPOLEN_WINDOW = 3
  7545. const m_TCPOPT_EOL = 0
  7546. const m_TCPOPT_MAXSEG = 2
  7547. const m_TCPOPT_NOP = 1
  7548. const m_TCPOPT_SACK = 5
  7549. const m_TCPOPT_SACK_PERMITTED = 4
  7550. const m_TCPOPT_TIMESTAMP = 8
  7551. const m_TCPOPT_WINDOW = 3
  7552. const m_TCP_CA_CWR = 2
  7553. const m_TCP_CA_Disorder = 1
  7554. const m_TCP_CA_Loss = 4
  7555. const m_TCP_CA_Open = 0
  7556. const m_TCP_CA_Recovery = 3
  7557. const m_TCP_CC_INFO = 26
  7558. const m_TCP_CLOSE = 7
  7559. const m_TCP_CLOSE_WAIT = 8
  7560. const m_TCP_CLOSING = 11
  7561. const m_TCP_CM_INQ = "TCP_INQ"
  7562. const m_TCP_CONGESTION = 13
  7563. const m_TCP_CORK = 3
  7564. const m_TCP_DEFER_ACCEPT = 9
  7565. const m_TCP_ESTABLISHED = 1
  7566. const m_TCP_FASTOPEN = 23
  7567. const m_TCP_FASTOPEN_CONNECT = 30
  7568. const m_TCP_FASTOPEN_KEY = 33
  7569. const m_TCP_FASTOPEN_NO_COOKIE = 34
  7570. const m_TCP_FIN_WAIT1 = 4
  7571. const m_TCP_FIN_WAIT2 = 5
  7572. const m_TCP_INFO = 11
  7573. const m_TCP_INQ = 36
  7574. const m_TCP_KEEPCNT = 6
  7575. const m_TCP_KEEPIDLE = 4
  7576. const m_TCP_KEEPINTVL = 5
  7577. const m_TCP_LAST_ACK = 9
  7578. const m_TCP_LINGER2 = 8
  7579. const m_TCP_LISTEN = 10
  7580. const m_TCP_MAXSEG = 2
  7581. const m_TCP_MD5SIG = 14
  7582. const m_TCP_MD5SIG_EXT = 32
  7583. const m_TCP_MD5SIG_FLAG_IFINDEX = 0x2
  7584. const m_TCP_MD5SIG_FLAG_PREFIX = 0x1
  7585. const m_TCP_MD5SIG_MAXKEYLEN = 80
  7586. const m_TCP_NODELAY = 1
  7587. const m_TCP_NOTSENT_LOWAT = 25
  7588. const m_TCP_QUEUE_SEQ = 21
  7589. const m_TCP_QUICKACK = 12
  7590. const m_TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT = 0x1
  7591. const m_TCP_REPAIR = 19
  7592. const m_TCP_REPAIR_OFF = 0
  7593. const m_TCP_REPAIR_ON = 1
  7594. const m_TCP_REPAIR_OPTIONS = 22
  7595. const m_TCP_REPAIR_QUEUE = 20
  7596. const m_TCP_REPAIR_WINDOW = 29
  7597. const m_TCP_SAVED_SYN = 28
  7598. const m_TCP_SAVE_SYN = 27
  7599. const m_TCP_SYNCNT = 7
  7600. const m_TCP_SYN_RECV = 3
  7601. const m_TCP_SYN_SENT = 2
  7602. const m_TCP_THIN_DUPACK = 17
  7603. const m_TCP_THIN_LINEAR_TIMEOUTS = 16
  7604. const m_TCP_TIMESTAMP = 24
  7605. const m_TCP_TIME_WAIT = 6
  7606. const m_TCP_TX_DELAY = 37
  7607. const m_TCP_ULP = 31
  7608. const m_TCP_USER_TIMEOUT = 18
  7609. const m_TCP_WINDOW_CLAMP = 10
  7610. const m_TCP_ZEROCOPY_RECEIVE = 35
  7611. const m_TH_ACK = 0x10
  7612. const m_TH_FIN = 0x01
  7613. const m_TH_PUSH = 0x08
  7614. const m_TH_RST = 0x04
  7615. const m_TH_SYN = 0x02
  7616. const m_TH_URG = 0x20
  7617. const m_TRY_AGAIN = 2
  7618. type Tmax_align_t = struct {
  7619. F__ll int64
  7620. F__ld float64
  7621. }
  7622. type Tptrdiff_t = int64
  7623. type Tsockaddr_un = struct {
  7624. Fsun_family Tsa_family_t
  7625. Fsun_path [108]uint8
  7626. }
  7627. const _TCP_NLA_PAD = 0
  7628. const _TCP_NLA_BUSY = 1
  7629. const _TCP_NLA_RWND_LIMITED = 2
  7630. const _TCP_NLA_SNDBUF_LIMITED = 3
  7631. const _TCP_NLA_DATA_SEGS_OUT = 4
  7632. const _TCP_NLA_TOTAL_RETRANS = 5
  7633. const _TCP_NLA_PACING_RATE = 6
  7634. const _TCP_NLA_DELIVERY_RATE = 7
  7635. const _TCP_NLA_SND_CWND = 8
  7636. const _TCP_NLA_REORDERING = 9
  7637. const _TCP_NLA_MIN_RTT = 10
  7638. const _TCP_NLA_RECUR_RETRANS = 11
  7639. const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12
  7640. const _TCP_NLA_SNDQ_SIZE = 13
  7641. const _TCP_NLA_CA_STATE = 14
  7642. const _TCP_NLA_SND_SSTHRESH = 15
  7643. const _TCP_NLA_DELIVERED = 16
  7644. const _TCP_NLA_DELIVERED_CE = 17
  7645. const _TCP_NLA_BYTES_SENT = 18
  7646. const _TCP_NLA_BYTES_RETRANS = 19
  7647. const _TCP_NLA_DSACK_DUPS = 20
  7648. const _TCP_NLA_REORD_SEEN = 21
  7649. const _TCP_NLA_SRTT = 22
  7650. const _TCP_NLA_TIMEOUT_REHASH = 23
  7651. const _TCP_NLA_BYTES_NOTSENT = 24
  7652. const _TCP_NLA_EDT = 25
  7653. const _TCP_NLA_TTL = 26
  7654. type Ttcp_seq = uint32
  7655. type Ttcphdr = struct {
  7656. F__ccgo0_0 struct {
  7657. F__ccgo1_0 [0]struct {
  7658. Fth_sport Tuint16_t
  7659. Fth_dport Tuint16_t
  7660. Fth_seq Tuint32_t
  7661. Fth_ack Tuint32_t
  7662. F__ccgo12 uint8
  7663. Fth_flags Tuint8_t
  7664. Fth_win Tuint16_t
  7665. Fth_sum Tuint16_t
  7666. Fth_urp Tuint16_t
  7667. }
  7668. F__ccgo0_0 struct {
  7669. Fsource Tuint16_t
  7670. Fdest Tuint16_t
  7671. Fseq Tuint32_t
  7672. Fack_seq Tuint32_t
  7673. F__ccgo12 uint16
  7674. Fwindow Tuint16_t
  7675. Fcheck Tuint16_t
  7676. Furg_ptr Tuint16_t
  7677. }
  7678. }
  7679. }
  7680. type _tcp_fastopen_client_fail = int32
  7681. const _TFO_STATUS_UNSPEC = 0
  7682. const _TFO_COOKIE_UNAVAILABLE = 1
  7683. const _TFO_DATA_NOT_ACKED = 2
  7684. const _TFO_SYN_RETRANSMITTED = 3
  7685. type Ttcp_info = struct {
  7686. Ftcpi_state Tuint8_t
  7687. Ftcpi_ca_state Tuint8_t
  7688. Ftcpi_retransmits Tuint8_t
  7689. Ftcpi_probes Tuint8_t
  7690. Ftcpi_backoff Tuint8_t
  7691. Ftcpi_options Tuint8_t
  7692. F__ccgo6 uint8
  7693. F__ccgo7 uint8
  7694. Ftcpi_rto Tuint32_t
  7695. Ftcpi_ato Tuint32_t
  7696. Ftcpi_snd_mss Tuint32_t
  7697. Ftcpi_rcv_mss Tuint32_t
  7698. Ftcpi_unacked Tuint32_t
  7699. Ftcpi_sacked Tuint32_t
  7700. Ftcpi_lost Tuint32_t
  7701. Ftcpi_retrans Tuint32_t
  7702. Ftcpi_fackets Tuint32_t
  7703. Ftcpi_last_data_sent Tuint32_t
  7704. Ftcpi_last_ack_sent Tuint32_t
  7705. Ftcpi_last_data_recv Tuint32_t
  7706. Ftcpi_last_ack_recv Tuint32_t
  7707. Ftcpi_pmtu Tuint32_t
  7708. Ftcpi_rcv_ssthresh Tuint32_t
  7709. Ftcpi_rtt Tuint32_t
  7710. Ftcpi_rttvar Tuint32_t
  7711. Ftcpi_snd_ssthresh Tuint32_t
  7712. Ftcpi_snd_cwnd Tuint32_t
  7713. Ftcpi_advmss Tuint32_t
  7714. Ftcpi_reordering Tuint32_t
  7715. Ftcpi_rcv_rtt Tuint32_t
  7716. Ftcpi_rcv_space Tuint32_t
  7717. Ftcpi_total_retrans Tuint32_t
  7718. Ftcpi_pacing_rate Tuint64_t
  7719. Ftcpi_max_pacing_rate Tuint64_t
  7720. Ftcpi_bytes_acked Tuint64_t
  7721. Ftcpi_bytes_received Tuint64_t
  7722. Ftcpi_segs_out Tuint32_t
  7723. Ftcpi_segs_in Tuint32_t
  7724. Ftcpi_notsent_bytes Tuint32_t
  7725. Ftcpi_min_rtt Tuint32_t
  7726. Ftcpi_data_segs_in Tuint32_t
  7727. Ftcpi_data_segs_out Tuint32_t
  7728. Ftcpi_delivery_rate Tuint64_t
  7729. Ftcpi_busy_time Tuint64_t
  7730. Ftcpi_rwnd_limited Tuint64_t
  7731. Ftcpi_sndbuf_limited Tuint64_t
  7732. Ftcpi_delivered Tuint32_t
  7733. Ftcpi_delivered_ce Tuint32_t
  7734. Ftcpi_bytes_sent Tuint64_t
  7735. Ftcpi_bytes_retrans Tuint64_t
  7736. Ftcpi_dsack_dups Tuint32_t
  7737. Ftcpi_reord_seen Tuint32_t
  7738. Ftcpi_rcv_ooopack Tuint32_t
  7739. Ftcpi_snd_wnd Tuint32_t
  7740. }
  7741. type Ttcp_md5sig = struct {
  7742. Ftcpm_addr Tsockaddr_storage
  7743. Ftcpm_flags Tuint8_t
  7744. Ftcpm_prefixlen Tuint8_t
  7745. Ftcpm_keylen Tuint16_t
  7746. Ftcpm_ifindex int32
  7747. Ftcpm_key [80]Tuint8_t
  7748. }
  7749. type Ttcp_diag_md5sig = struct {
  7750. Ftcpm_family Tuint8_t
  7751. Ftcpm_prefixlen Tuint8_t
  7752. Ftcpm_keylen Tuint16_t
  7753. Ftcpm_addr [4]Tuint32_t
  7754. Ftcpm_key [80]Tuint8_t
  7755. }
  7756. type Ttcp_repair_window = struct {
  7757. Fsnd_wl1 Tuint32_t
  7758. Fsnd_wnd Tuint32_t
  7759. Fmax_window Tuint32_t
  7760. Frcv_wnd Tuint32_t
  7761. Frcv_wup Tuint32_t
  7762. }
  7763. type Ttcp_zerocopy_receive = struct {
  7764. Faddress Tuint64_t
  7765. Flength Tuint32_t
  7766. Frecv_skip_hint Tuint32_t
  7767. Finq Tuint32_t
  7768. Ferr Tint32_t
  7769. Fcopybuf_address Tuint64_t
  7770. Fcopybuf_len Tint32_t
  7771. Fflags Tuint32_t
  7772. Fmsg_control Tuint64_t
  7773. Fmsg_controllen Tuint64_t
  7774. Fmsg_flags Tuint32_t
  7775. Freserved Tuint32_t
  7776. }
  7777. type Taddrinfo = struct {
  7778. Fai_flags int32
  7779. Fai_family int32
  7780. Fai_socktype int32
  7781. Fai_protocol int32
  7782. Fai_addrlen Tsocklen_t
  7783. Fai_addr uintptr
  7784. Fai_canonname uintptr
  7785. Fai_next uintptr
  7786. }
  7787. type Tnetent = struct {
  7788. Fn_name uintptr
  7789. Fn_aliases uintptr
  7790. Fn_addrtype int32
  7791. Fn_net Tuint32_t
  7792. }
  7793. type Thostent = struct {
  7794. Fh_name uintptr
  7795. Fh_aliases uintptr
  7796. Fh_addrtype int32
  7797. Fh_length int32
  7798. Fh_addr_list uintptr
  7799. }
  7800. type Tservent = struct {
  7801. Fs_name uintptr
  7802. Fs_aliases uintptr
  7803. Fs_port int32
  7804. Fs_proto uintptr
  7805. }
  7806. type Tprotoent = struct {
  7807. Fp_name uintptr
  7808. Fp_aliases uintptr
  7809. Fp_proto int32
  7810. }
  7811. func Xxcb_popcount(tls *libc.TLS, mask Tuint32_t) (r int32) {
  7812. var y Tuint32_t
  7813. _ = y
  7814. y = mask >> libc.Int32FromInt32(1) & uint32(033333333333)
  7815. y = mask - y - y>>libc.Int32FromInt32(1)&uint32(033333333333)
  7816. return libc.Int32FromUint32((y + y>>libc.Int32FromInt32(3)) & uint32(030707070707) % uint32(077))
  7817. }
  7818. func Xxcb_sumof(tls *libc.TLS, list uintptr, len1 int32) (r int32) {
  7819. var i, s int32
  7820. _, _ = i, s
  7821. s = 0
  7822. i = 0
  7823. for {
  7824. if !(i < len1) {
  7825. break
  7826. }
  7827. s += libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(list)))
  7828. list++
  7829. goto _1
  7830. _1:
  7831. ;
  7832. i++
  7833. }
  7834. return s
  7835. }
  7836. func __xcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7837. bp := tls.Alloc(16)
  7838. defer tls.Free(16)
  7839. var colon, slash uintptr
  7840. var display, len1, screen int32
  7841. var _ /* dot at bp+0 */ uintptr
  7842. var _ /* end at bp+8 */ uintptr
  7843. _, _, _, _, _ = colon, display, len1, screen, slash
  7844. if !(name != 0) || !(*(*uint8)(unsafe.Pointer(name)) != 0) {
  7845. name = libc.Xgetenv(tls, __ccgo_ts+4)
  7846. }
  7847. if !(name != 0) {
  7848. return 0
  7849. }
  7850. slash = libc.Xstrrchr(tls, name, int32('/'))
  7851. if slash != 0 {
  7852. len1 = int32(int64(slash) - int64(name))
  7853. if protocol != 0 {
  7854. *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7855. if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
  7856. return 0
  7857. }
  7858. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(protocol)), name, libc.Uint64FromInt32(len1))
  7859. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(protocol)) + uintptr(len1))) = uint8('\000')
  7860. }
  7861. name = slash + uintptr(1)
  7862. } else {
  7863. if protocol != 0 {
  7864. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7865. }
  7866. }
  7867. colon = libc.Xstrrchr(tls, name, int32(':'))
  7868. if !(colon != 0) {
  7869. goto error_out
  7870. }
  7871. len1 = int32(int64(colon) - int64(name))
  7872. colon++
  7873. display = libc.Int32FromUint64(libc.Xstrtoul(tls, colon, bp, int32(10)))
  7874. if *(*uintptr)(unsafe.Pointer(bp)) == colon {
  7875. goto error_out
  7876. }
  7877. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('\000') {
  7878. screen = 0
  7879. } else {
  7880. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('.') {
  7881. goto error_out
  7882. }
  7883. *(*uintptr)(unsafe.Pointer(bp))++
  7884. screen = libc.Int32FromUint64(libc.Xstrtoul(tls, *(*uintptr)(unsafe.Pointer(bp)), bp+8, int32(10)))
  7885. if *(*uintptr)(unsafe.Pointer(bp + 8)) == *(*uintptr)(unsafe.Pointer(bp)) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))) != int32('\000') {
  7886. goto error_out
  7887. }
  7888. }
  7889. /* At this point, the display string is fully parsed and valid, but
  7890. * the caller's memory is untouched. */
  7891. *(*uintptr)(unsafe.Pointer(host)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7892. if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
  7893. goto error_out
  7894. }
  7895. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(host)), name, libc.Uint64FromInt32(len1))
  7896. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(host)) + uintptr(len1))) = uint8('\000')
  7897. *(*int32)(unsafe.Pointer(displayp)) = display
  7898. if screenp != 0 {
  7899. *(*int32)(unsafe.Pointer(screenp)) = screen
  7900. }
  7901. return int32(1)
  7902. goto error_out
  7903. error_out:
  7904. ;
  7905. if protocol != 0 {
  7906. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(protocol)))
  7907. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7908. }
  7909. return 0
  7910. }
  7911. func Xxcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7912. return __xcb_parse_display(tls, name, host, libc.UintptrFromInt32(0), displayp, screenp)
  7913. }
  7914. func __xcb_open(tls *libc.TLS, host uintptr, protocol uintptr, display int32) (r int32) {
  7915. bp := tls.Alloc(32)
  7916. defer tls.Free(32)
  7917. var actual_filelen, fd int32
  7918. var base, file uintptr
  7919. var filelen Tsize_t
  7920. var port, port1 uint16
  7921. var v1 uint64
  7922. _, _, _, _, _, _, _, _ = actual_filelen, base, fd, file, filelen, port, port1, v1
  7923. base = uintptr(unsafe.Pointer(&_unix_base))
  7924. file = libc.UintptrFromInt32(0)
  7925. /* If protocol or host is "unix", fall through to Unix socket code below */
  7926. 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 {
  7927. /* display specifies TCP */
  7928. port = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  7929. return __xcb_open_tcp(tls, host, protocol, port)
  7930. }
  7931. filelen = libc.Xstrlen(tls, base) + uint64(1) + libc.Uint64FromInt64(4)*libc.Uint64FromInt32(3) + uint64(1)
  7932. file = libc.Xmalloc(tls, filelen)
  7933. if file == libc.UintptrFromInt32(0) {
  7934. return -int32(1)
  7935. }
  7936. /* display specifies Unix socket */
  7937. actual_filelen = libc.X__builtin_snprintf(tls, file, filelen, __ccgo_ts+17, libc.VaList(bp+8, base, display))
  7938. if actual_filelen < 0 {
  7939. libc.Xfree(tls, file)
  7940. return -int32(1)
  7941. }
  7942. /* snprintf may truncate the file */
  7943. if libc.Uint64FromInt32(actual_filelen) < filelen-uint64(1) {
  7944. v1 = libc.Uint64FromInt32(actual_filelen)
  7945. } else {
  7946. v1 = filelen - uint64(1)
  7947. }
  7948. filelen = v1
  7949. fd = __xcb_open_abstract(tls, protocol, file, filelen)
  7950. 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) {
  7951. libc.Xfree(tls, file)
  7952. return fd
  7953. }
  7954. fd = __xcb_open_unix(tls, protocol, file)
  7955. libc.Xfree(tls, file)
  7956. if fd < 0 && !(protocol != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  7957. port1 = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  7958. fd = __xcb_open_tcp(tls, host, protocol, port1)
  7959. }
  7960. return fd
  7961. return -int32(1) /* if control reaches here then something has gone wrong */
  7962. }
  7963. var _unix_base = [17]uint8{'/', 't', 'm', 'p', '/', '.', 'X', '1', '1', '-', 'u', 'n', 'i', 'x', '/', 'X'}
  7964. func __xcb_socket(tls *libc.TLS, family int32, type1 int32, proto int32) (r int32) {
  7965. bp := tls.Alloc(16)
  7966. defer tls.Free(16)
  7967. var fd int32
  7968. _ = fd
  7969. fd = libc.Xsocket(tls, family, type1|int32(m_SOCK_CLOEXEC1), proto)
  7970. if fd == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINVAL) {
  7971. fd = libc.Xsocket(tls, family, type1, proto)
  7972. if fd >= 0 {
  7973. libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
  7974. }
  7975. }
  7976. return fd
  7977. }
  7978. func __xcb_do_connect(tls *libc.TLS, fd int32, addr uintptr, addrlen int32) (r int32) {
  7979. bp := tls.Alloc(16)
  7980. defer tls.Free(16)
  7981. var _ /* on at bp+0 */ int32
  7982. *(*int32)(unsafe.Pointer(bp)) = int32(1)
  7983. if fd < 0 {
  7984. return -int32(1)
  7985. }
  7986. libc.Xsetsockopt(tls, fd, int32(m_IPPROTO_TCP), int32(m_TCP_NODELAY), bp, uint32(4))
  7987. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_KEEPALIVE), bp, uint32(4))
  7988. return libc.Xconnect(tls, fd, addr, libc.Uint32FromInt32(addrlen))
  7989. }
  7990. func __xcb_open_tcp(tls *libc.TLS, host uintptr, protocol uintptr, port uint16) (r int32) {
  7991. bp := tls.Alloc(80)
  7992. defer tls.Free(80)
  7993. var addr, bracket, v1 uintptr
  7994. var fd int32
  7995. var v2 bool
  7996. var _ /* hints at bp+0 */ Taddrinfo
  7997. var _ /* results at bp+56 */ uintptr
  7998. var _ /* service at bp+48 */ [6]uint8
  7999. _, _, _, _, _ = addr, bracket, fd, v1, v2
  8000. fd = -int32(1)
  8001. 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 {
  8002. return -int32(1)
  8003. }
  8004. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  8005. host = __ccgo_ts + 37
  8006. }
  8007. libc.Xmemset(tls, bp, 0, uint64(48))
  8008. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICSERV)
  8009. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = m_PF_UNSPEC
  8010. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_socktype = int32(m_SOCK_STREAM)
  8011. /* Allow IPv6 addresses enclosed in brackets. */
  8012. if v2 = libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('['); v2 {
  8013. v1 = libc.Xstrrchr(tls, host, int32(']'))
  8014. bracket = v1
  8015. }
  8016. if v2 && v1 != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bracket + 1))) == int32('\000') {
  8017. *(*uint8)(unsafe.Pointer(bracket)) = uint8('\000')
  8018. host++
  8019. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICHOST)
  8020. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = int32(m_PF_INET6)
  8021. }
  8022. libc.X__builtin_snprintf(tls, bp+48, uint64(6), __ccgo_ts+47, libc.VaList(bp+72, libc.Int32FromUint16(port)))
  8023. if libc.Xgetaddrinfo(tls, host, bp+48, bp, bp+56) != 0 {
  8024. /* FIXME: use gai_strerror, and fill in error connection */
  8025. return -int32(1)
  8026. }
  8027. addr = *(*uintptr)(unsafe.Pointer(bp + 56))
  8028. for {
  8029. if !(addr != 0) {
  8030. break
  8031. }
  8032. fd = __xcb_socket(tls, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_family, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_socktype, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_protocol)
  8033. if __xcb_do_connect(tls, fd, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_addr, libc.Int32FromUint32((*Taddrinfo)(unsafe.Pointer(addr)).Fai_addrlen)) >= 0 {
  8034. break
  8035. }
  8036. libc.Xclose(tls, fd)
  8037. fd = -int32(1)
  8038. goto _3
  8039. _3:
  8040. ;
  8041. addr = (*Taddrinfo)(unsafe.Pointer(addr)).Fai_next
  8042. }
  8043. libc.Xfreeaddrinfo(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
  8044. return fd
  8045. }
  8046. func __xcb_open_unix(tls *libc.TLS, protocol uintptr, file uintptr) (r int32) {
  8047. bp := tls.Alloc(128)
  8048. defer tls.Free(128)
  8049. var fd int32
  8050. var _ /* addr at bp+0 */ Tsockaddr_un
  8051. var _ /* len at bp+112 */ Tsocklen_t
  8052. var _ /* val at bp+116 */ int32
  8053. _ = fd
  8054. *(*Tsocklen_t)(unsafe.Pointer(bp + 112)) = uint32(4)
  8055. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8056. return -int32(1)
  8057. }
  8058. libc.Xstrcpy(tls, bp+2, file)
  8059. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8060. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8061. if fd == -int32(1) {
  8062. return -int32(1)
  8063. }
  8064. 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) {
  8065. *(*int32)(unsafe.Pointer(bp + 116)) = libc.Int32FromInt32(64) * libc.Int32FromInt32(1024)
  8066. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, uint32(4))
  8067. }
  8068. if libc.Xconnect(tls, fd, bp, uint32(110)) == -int32(1) {
  8069. libc.Xclose(tls, fd)
  8070. return -int32(1)
  8071. }
  8072. return fd
  8073. }
  8074. func __xcb_open_abstract(tls *libc.TLS, protocol uintptr, file uintptr, filelen Tsize_t) (r int32) {
  8075. bp := tls.Alloc(112)
  8076. defer tls.Free(112)
  8077. var fd int32
  8078. var namelen Tsocklen_t
  8079. var _ /* addr at bp+0 */ Tsockaddr_un
  8080. _, _ = fd, namelen
  8081. *(*Tsockaddr_un)(unsafe.Pointer(bp)) = Tsockaddr_un{}
  8082. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8083. return -int32(1)
  8084. }
  8085. libc.Xstrcpy(tls, bp+2+uintptr(1), file)
  8086. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8087. namelen = uint32(uint64(libc.UintptrFromInt32(0)+2) + libc.Uint64FromInt32(1) + filelen)
  8088. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8089. if fd == -int32(1) {
  8090. return -int32(1)
  8091. }
  8092. if libc.Xconnect(tls, fd, bp, namelen) == -int32(1) {
  8093. libc.Xclose(tls, fd)
  8094. return -int32(1)
  8095. }
  8096. return fd
  8097. }
  8098. func Xxcb_connect(tls *libc.TLS, displayname uintptr, screenp uintptr) (r uintptr) {
  8099. return Xxcb_connect_to_display_with_auth_info(tls, displayname, libc.UintptrFromInt32(0), screenp)
  8100. }
  8101. func Xxcb_connect_to_display_with_auth_info(tls *libc.TLS, displayname uintptr, auth uintptr, screenp uintptr) (r uintptr) {
  8102. bp := tls.Alloc(64)
  8103. defer tls.Free(64)
  8104. var c uintptr
  8105. var fd, parsed int32
  8106. var _ /* display at bp+0 */ int32
  8107. var _ /* host at bp+8 */ uintptr
  8108. var _ /* ourauth at bp+24 */ Txcb_auth_info_t
  8109. var _ /* protocol at bp+16 */ uintptr
  8110. _, _, _ = c, fd, parsed
  8111. *(*int32)(unsafe.Pointer(bp)) = 0
  8112. *(*uintptr)(unsafe.Pointer(bp + 8)) = libc.UintptrFromInt32(0)
  8113. *(*uintptr)(unsafe.Pointer(bp + 16)) = libc.UintptrFromInt32(0)
  8114. parsed = __xcb_parse_display(tls, displayname, bp+8, bp+16, bp, screenp)
  8115. if !(parsed != 0) {
  8116. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_PARSE_ERR))
  8117. goto out
  8118. }
  8119. fd = __xcb_open(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), *(*uintptr)(unsafe.Pointer(bp + 16)), *(*int32)(unsafe.Pointer(bp)))
  8120. if fd == -int32(1) {
  8121. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  8122. goto out
  8123. }
  8124. if auth != 0 {
  8125. c = Xxcb_connect_to_fd(tls, fd, auth)
  8126. goto out
  8127. }
  8128. if X_xcb_get_auth_info(tls, fd, bp+24, *(*int32)(unsafe.Pointer(bp))) != 0 {
  8129. c = Xxcb_connect_to_fd(tls, fd, bp+24)
  8130. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fname)
  8131. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fdata)
  8132. } else {
  8133. c = Xxcb_connect_to_fd(tls, fd, uintptr(0))
  8134. }
  8135. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  8136. goto out
  8137. }
  8138. /* Make sure requested screen number is in bounds for this server */
  8139. 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) {
  8140. Xxcb_disconnect(tls, c)
  8141. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_INVALID_SCREEN))
  8142. goto out
  8143. }
  8144. goto out
  8145. out:
  8146. ;
  8147. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
  8148. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
  8149. return c
  8150. }
  8151. const m_AUTH_PROTO_MIT_MAGIC_COOKIE = "MIT-MAGIC-COOKIE-1"
  8152. const m_AUTH_PROTO_XDM_AUTHORIZATION = "XDM-AUTHORIZATION-1"
  8153. const m_CANBSIZ = 255
  8154. const m_DEV_BSIZE = 512
  8155. const m_FALSE = 0
  8156. const m_FUNCPROTO = 15
  8157. const m_FamilyKrb5Principal = 253
  8158. const m_FamilyLocal = 256
  8159. const m_FamilyLocalHost = 252
  8160. const m_FamilyNetname = 254
  8161. const m_FamilyWild = 65535
  8162. const m_INITIAL_SOCKNAME_SLACK = 108
  8163. const m_ITIMER_PROF = 2
  8164. const m_ITIMER_REAL = 0
  8165. const m_ITIMER_VIRTUAL = 1
  8166. const m_LOCK_ERROR = 1
  8167. const m_LOCK_SUCCESS = 0
  8168. const m_LOCK_TIMEOUT = 2
  8169. const m_MAXHOSTNAMELEN = 64
  8170. const m_MAXNAMLEN = 255
  8171. const m_MAXPATHLEN = 4096
  8172. const m_MAXSYMLINKS = 20
  8173. const m_NBBY = 8
  8174. const m_NCARGS = 131072
  8175. const m_NGROUPS = 32
  8176. const m_NOFILE = 256
  8177. const m_NeedFunctionPrototypes = 1
  8178. const m_NeedNestedPrototypes = 1
  8179. const m_NeedVarargsPrototypes = 1
  8180. const m_NeedWidePrototypes = 0
  8181. const m_PRIO_MAX = 20
  8182. const m_PRIO_PGRP = 1
  8183. const m_PRIO_PROCESS = 0
  8184. const m_PRIO_USER = 2
  8185. const m_RLIMIT_AS = 9
  8186. const m_RLIMIT_CORE = 4
  8187. const m_RLIMIT_CPU = 0
  8188. const m_RLIMIT_DATA = 2
  8189. const m_RLIMIT_FSIZE = 1
  8190. const m_RLIMIT_LOCKS = 10
  8191. const m_RLIMIT_MEMLOCK = 8
  8192. const m_RLIMIT_MSGQUEUE = 12
  8193. const m_RLIMIT_NICE = 13
  8194. const m_RLIMIT_NLIMITS = 16
  8195. const m_RLIMIT_NOFILE = 7
  8196. const m_RLIMIT_NPROC = 6
  8197. const m_RLIMIT_RSS = 5
  8198. const m_RLIMIT_RTPRIO = 14
  8199. const m_RLIMIT_RTTIME = 15
  8200. const m_RLIMIT_SIGPENDING = 11
  8201. const m_RLIMIT_STACK = 3
  8202. const m_RLIM_NLIMITS = "RLIMIT_NLIMITS"
  8203. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  8204. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  8205. const m_RUSAGE_SELF = 0
  8206. const m_RUSAGE_THREAD = 1
  8207. const m_SOCK_CLOEXEC2 = 02000000
  8208. const m_TRUE = 1
  8209. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  8210. const m_XDM_KA_RTX_LIMIT = 4
  8211. const m_XDM_MAX_MSGLEN = 8192
  8212. const m_XDM_MAX_RTX = 32
  8213. const m_XDM_MIN_RTX = 2
  8214. const m_XDM_PROTOCOL_VERSION = 1
  8215. const m_XDM_RTX_LIMIT = 7
  8216. const m_XDM_UDP_PORT = 177
  8217. const m_XMD_H = 1
  8218. const m__X_INLINE = "inline"
  8219. const m__X_RESTRICT_KYWD = "restrict"
  8220. const m__Xconst = "const"
  8221. const m_prlimit64 = "prlimit"
  8222. type TXauth = struct {
  8223. Ffamily uint16
  8224. Faddress_length uint16
  8225. Faddress uintptr
  8226. Fnumber_length uint16
  8227. Fnumber uintptr
  8228. Fname_length uint16
  8229. Fname uintptr
  8230. Fdata_length uint16
  8231. Fdata uintptr
  8232. }
  8233. type Txauth = TXauth
  8234. type Titimerval = struct {
  8235. Fit_interval Ttimeval
  8236. Fit_value Ttimeval
  8237. }
  8238. type Ttimezone = struct {
  8239. Ftz_minuteswest int32
  8240. Ftz_dsttime int32
  8241. }
  8242. type Trlim_t = uint64
  8243. type Trlimit = struct {
  8244. Frlim_cur Trlim_t
  8245. Frlim_max Trlim_t
  8246. }
  8247. type Trusage = struct {
  8248. Fru_utime Ttimeval
  8249. Fru_stime Ttimeval
  8250. Fru_maxrss int64
  8251. Fru_ixrss int64
  8252. Fru_idrss int64
  8253. Fru_isrss int64
  8254. Fru_minflt int64
  8255. Fru_majflt int64
  8256. Fru_nswap int64
  8257. Fru_inblock int64
  8258. Fru_oublock int64
  8259. Fru_msgsnd int64
  8260. Fru_msgrcv int64
  8261. Fru_nsignals int64
  8262. Fru_nvcsw int64
  8263. Fru_nivcsw int64
  8264. F__reserved [16]int64
  8265. }
  8266. type TINT64 = int64
  8267. type TINT32 = int32
  8268. type TINT16 = int16
  8269. type TINT8 = int8
  8270. type TCARD64 = uint64
  8271. type TCARD32 = uint32
  8272. type TCARD16 = uint16
  8273. type TCARD8 = uint8
  8274. type TBITS32 = uint32
  8275. type TBITS16 = uint16
  8276. type TBYTE = uint8
  8277. type TBOOL = uint8
  8278. type TxdmOpCode = int32
  8279. const _BROADCAST_QUERY = 1
  8280. const _QUERY = 2
  8281. const _INDIRECT_QUERY = 3
  8282. const _FORWARD_QUERY = 4
  8283. const _WILLING = 5
  8284. const _UNWILLING = 6
  8285. const _REQUEST = 7
  8286. const _ACCEPT = 8
  8287. const _DECLINE = 9
  8288. const _MANAGE = 10
  8289. const _REFUSE = 11
  8290. const _FAILED = 12
  8291. const _KEEPALIVE = 13
  8292. const _ALIVE = 14
  8293. type Txdmcp_states = int32
  8294. const _XDM_QUERY = 0
  8295. const _XDM_BROADCAST = 1
  8296. const _XDM_INDIRECT = 2
  8297. const _XDM_COLLECT_QUERY = 3
  8298. const _XDM_COLLECT_BROADCAST_QUERY = 4
  8299. const _XDM_COLLECT_INDIRECT_QUERY = 5
  8300. const _XDM_START_CONNECTION = 6
  8301. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  8302. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  8303. const _XDM_MANAGE = 9
  8304. const _XDM_RUN_SESSION = 10
  8305. const _XDM_OFF = 11
  8306. const _XDM_AWAIT_USER_INPUT = 12
  8307. const _XDM_KEEPALIVE = 13
  8308. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  8309. const _XDM_KEEP_ME_LAST = 15
  8310. type TCARD8Ptr = uintptr
  8311. type TCARD16Ptr = uintptr
  8312. type TCARD32Ptr = uintptr
  8313. type TARRAY8 = struct {
  8314. Flength TCARD16
  8315. Fdata TCARD8Ptr
  8316. }
  8317. type T_ARRAY8 = TARRAY8
  8318. type TARRAY8Ptr = uintptr
  8319. type TARRAY16 = struct {
  8320. Flength TCARD8
  8321. Fdata TCARD16Ptr
  8322. }
  8323. type T_ARRAY16 = TARRAY16
  8324. type TARRAY16Ptr = uintptr
  8325. type TARRAY32 = struct {
  8326. Flength TCARD8
  8327. Fdata TCARD32Ptr
  8328. }
  8329. type T_ARRAY32 = TARRAY32
  8330. type TARRAY32Ptr = uintptr
  8331. type TARRAYofARRAY8 = struct {
  8332. Flength TCARD8
  8333. Fdata TARRAY8Ptr
  8334. }
  8335. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  8336. type TARRAYofARRAY8Ptr = uintptr
  8337. type TXdmcpHeader = struct {
  8338. Fversion TCARD16
  8339. Fopcode TCARD16
  8340. Flength TCARD16
  8341. }
  8342. type T_XdmcpHeader = TXdmcpHeader
  8343. type TXdmcpHeaderPtr = uintptr
  8344. type TXdmcpBuffer = struct {
  8345. Fdata uintptr
  8346. Fsize int32
  8347. Fpointer int32
  8348. Fcount int32
  8349. }
  8350. type T_XdmcpBuffer = TXdmcpBuffer
  8351. type TXdmcpBufferPtr = uintptr
  8352. type TXdmAuthKeyRec = struct {
  8353. Fdata [8]TBYTE
  8354. }
  8355. type T_XdmAuthKey = TXdmAuthKeyRec
  8356. type TXdmAuthKeyPtr = uintptr
  8357. type TXdmcpNetaddr = uintptr
  8358. type _auth_protos = int32
  8359. const _AUTH_XA1 = 0
  8360. const _AUTH_MC1 = 1
  8361. const _N_AUTH_PROTOS = 2
  8362. var _authnames = [2]uintptr{
  8363. 0: __ccgo_ts + 51,
  8364. 1: __ccgo_ts + 71,
  8365. }
  8366. var _authnameslen = [2]int32{
  8367. 0: libc.Int32FromUint64(libc.Uint64FromInt64(20) - libc.Uint64FromInt32(1)),
  8368. 1: libc.Int32FromUint64(libc.Uint64FromInt64(19) - libc.Uint64FromInt32(1)),
  8369. }
  8370. func _memdup(tls *libc.TLS, dst uintptr, src uintptr, len1 Tsize_t) (r Tsize_t) {
  8371. if len1 != 0 {
  8372. *(*uintptr)(unsafe.Pointer(dst)) = libc.Xmalloc(tls, len1)
  8373. } else {
  8374. *(*uintptr)(unsafe.Pointer(dst)) = uintptr(0)
  8375. }
  8376. if !(*(*uintptr)(unsafe.Pointer(dst)) != 0) {
  8377. return uint64(0)
  8378. }
  8379. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(dst)), src, len1)
  8380. return len1
  8381. }
  8382. func _authname_match(tls *libc.TLS, kind _auth_protos, name uintptr, namelen Tsize_t) (r int32) {
  8383. if libc.Uint64FromInt32(_authnameslen[kind]) != namelen {
  8384. return 0
  8385. }
  8386. if libc.Xmemcmp(tls, _authnames[kind], name, namelen) != 0 {
  8387. return 0
  8388. }
  8389. return int32(1)
  8390. }
  8391. func _get_authptr(tls *libc.TLS, sockname uintptr, display int32) (r uintptr) {
  8392. bp := tls.Alloc(320)
  8393. defer tls.Free(320)
  8394. var addr uintptr
  8395. var addrlen, dispbuflen int32
  8396. var family uint16
  8397. var v1 uint64
  8398. var _ /* dispbuf at bp+256 */ [40]uint8
  8399. var _ /* hostnamebuf at bp+0 */ [256]uint8
  8400. _, _, _, _, _ = addr, addrlen, dispbuflen, family, v1
  8401. addr = uintptr(0)
  8402. addrlen = 0
  8403. family = libc.Uint16FromInt32(libc.Int32FromInt32(m_FamilyLocal)) /* 256 */
  8404. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8405. case int32(m_PF_INET6):
  8406. addr = sockname + 8
  8407. addrlen = int32(16)
  8408. 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)) {
  8409. 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)) {
  8410. family = uint16(_XCB_FAMILY_INTERNET_6)
  8411. }
  8412. break
  8413. }
  8414. addr += uintptr(12)
  8415. /* if v4-mapped, fall through. */
  8416. fallthrough
  8417. case int32(m_PF_INET):
  8418. if !(addr != 0) {
  8419. addr = sockname + 4
  8420. }
  8421. addrlen = int32(4)
  8422. if *(*Tin_addr_t)(unsafe.Pointer(addr)) != libc.Xhtonl(tls, libc.Uint32FromInt32(0x7f000001)) {
  8423. family = uint16(_XCB_FAMILY_INTERNET)
  8424. }
  8425. case int32(m_PF_LOCAL):
  8426. default:
  8427. return uintptr(0) /* cannot authenticate this family */
  8428. }
  8429. dispbuflen = libc.X__builtin_snprintf(tls, bp+256, uint64(40), __ccgo_ts+90, libc.VaList(bp+304, display))
  8430. if dispbuflen < 0 {
  8431. return uintptr(0)
  8432. }
  8433. /* snprintf may have truncate our text */
  8434. if libc.Uint64FromInt32(dispbuflen) < libc.Uint64FromInt64(40)-libc.Uint64FromInt32(1) {
  8435. v1 = libc.Uint64FromInt32(dispbuflen)
  8436. } else {
  8437. v1 = libc.Uint64FromInt64(40) - libc.Uint64FromInt32(1)
  8438. }
  8439. dispbuflen = libc.Int32FromUint64(v1)
  8440. if libc.Int32FromUint16(family) == int32(m_FamilyLocal) {
  8441. if libc.Xgethostname(tls, bp, uint64(256)) == -int32(1) {
  8442. return uintptr(0)
  8443. } /* do not know own hostname */
  8444. addr = bp
  8445. addrlen = libc.Int32FromUint64(libc.Xstrlen(tls, addr))
  8446. }
  8447. 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)))
  8448. }
  8449. func _next_nonce(tls *libc.TLS) (r int32) {
  8450. var ret, v1 int32
  8451. _, _ = ret, v1
  8452. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8453. v1 = _nonce
  8454. _nonce++
  8455. ret = v1
  8456. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8457. return ret
  8458. }
  8459. var _nonce int32
  8460. var _nonce_mutex = Tpthread_mutex_t{}
  8461. func _do_append(tls *libc.TLS, buf uintptr, idxp uintptr, val uintptr, valsize Tsize_t) {
  8462. var p1 uintptr
  8463. _ = p1
  8464. libc.Xmemcpy(tls, buf+uintptr(*(*int32)(unsafe.Pointer(idxp))), val, valsize)
  8465. p1 = idxp
  8466. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + valsize)
  8467. }
  8468. func _compute_auth(tls *libc.TLS, info uintptr, authptr uintptr, sockname uintptr) (r int32) {
  8469. bp := tls.Alloc(32)
  8470. defer tls.Free(32)
  8471. var si, si6 uintptr
  8472. var v2 int32
  8473. var _ /* fakeaddr at bp+12 */ Tuint32_t
  8474. var _ /* fakeaddr at bp+4 */ Tuint32_t
  8475. var _ /* fakeport at bp+16 */ Tuint16_t
  8476. var _ /* fakeport at bp+8 */ Tuint16_t
  8477. var _ /* j at bp+0 */ int32
  8478. var _ /* now at bp+20 */ Tuint32_t
  8479. _, _, _ = si, si6, v2
  8480. if _authname_match(tls, int32(_AUTH_MC1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8481. (*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)))
  8482. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen != 0) {
  8483. return 0
  8484. }
  8485. return int32(1)
  8486. }
  8487. if _authname_match(tls, int32(_AUTH_XA1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8488. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(192)/libc.Int32FromInt32(8)))
  8489. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata != 0) {
  8490. return 0
  8491. }
  8492. *(*int32)(unsafe.Pointer(bp)) = 0
  8493. for {
  8494. if !(*(*int32)(unsafe.Pointer(bp)) < int32(8)) {
  8495. break
  8496. }
  8497. *(*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)))))
  8498. goto _1
  8499. _1:
  8500. ;
  8501. *(*int32)(unsafe.Pointer(bp))++
  8502. }
  8503. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8504. case int32(m_PF_INET):
  8505. /*block*/
  8506. si = sockname
  8507. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+4, uint64(4))
  8508. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+2, uint64(2))
  8509. case int32(m_PF_INET6):
  8510. /*block*/
  8511. si6 = sockname
  8512. 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) {
  8513. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+8+12, uint64(4))
  8514. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+2, uint64(2))
  8515. } else {
  8516. /* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
  8517. same thing Xlib does: use all zeroes for the 4-byte address
  8518. and 2-byte port number. */
  8519. *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uint32(0)
  8520. *(*Tuint16_t)(unsafe.Pointer(bp + 8)) = uint16(0)
  8521. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+4, uint64(4))
  8522. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+8, uint64(2))
  8523. }
  8524. case int32(m_PF_LOCAL):
  8525. /*block*/
  8526. *(*Tuint32_t)(unsafe.Pointer(bp + 12)) = libc.Xhtonl(tls, uint32(0xffffffff)-libc.Uint32FromInt32(_next_nonce(tls)))
  8527. *(*Tuint16_t)(unsafe.Pointer(bp + 16)) = libc.Xhtons(tls, libc.Uint16FromInt32(libc.Xgetpid(tls)))
  8528. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+12, uint64(4))
  8529. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+16, uint64(2))
  8530. default:
  8531. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata)
  8532. return 0 /* do not know how to build this */
  8533. }
  8534. *(*Tuint32_t)(unsafe.Pointer(bp + 20)) = libc.Xhtonl(tls, libc.Uint32FromInt64(libc.Xtime(tls, uintptr(0))))
  8535. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+20, uint64(4))
  8536. for *(*int32)(unsafe.Pointer(bp)) < libc.Int32FromInt32(192)/libc.Int32FromInt32(8) {
  8537. v2 = *(*int32)(unsafe.Pointer(bp))
  8538. *(*int32)(unsafe.Pointer(bp))++
  8539. *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(v2))) = uint8(0)
  8540. }
  8541. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = *(*int32)(unsafe.Pointer(bp))
  8542. 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)
  8543. return int32(1)
  8544. }
  8545. return 0 /* Unknown authorization type */
  8546. }
  8547. /* `sockaddr_un.sun_path' typical size usually ranges between 92 and 108 */
  8548. // C documentation
  8549. //
  8550. // /* Return a dynamically allocated socket address structure according
  8551. // to the value returned by either getpeername() or getsockname()
  8552. // (according to POSIX, applications should not assume a particular
  8553. // length for `sockaddr_un.sun_path') */
  8554. func _get_peer_sock_name(tls *libc.TLS, socket_func uintptr, fd int32) (r uintptr) {
  8555. bp := tls.Alloc(16)
  8556. defer tls.Free(16)
  8557. var new_sockname, sockname, v1 uintptr
  8558. var socknamelen Tsocklen_t
  8559. var _ /* actual_socknamelen at bp+0 */ Tsocklen_t
  8560. _, _, _, _ = new_sockname, sockname, socknamelen, v1
  8561. socknamelen = uint32(libc.Uint64FromInt64(16) + libc.Uint64FromInt32(m_INITIAL_SOCKNAME_SLACK))
  8562. *(*Tsocklen_t)(unsafe.Pointer(bp)) = socknamelen
  8563. sockname = libc.Xmalloc(tls, uint64(socknamelen))
  8564. if sockname == libc.UintptrFromInt32(0) {
  8565. return libc.UintptrFromInt32(0)
  8566. }
  8567. /* Both getpeername() and getsockname() truncates sockname if
  8568. there is not enough space and set the required length in
  8569. actual_socknamelen */
  8570. if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) {
  8571. goto sock_or_realloc_error
  8572. }
  8573. if *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
  8574. new_sockname = libc.UintptrFromInt32(0)
  8575. socknamelen = *(*Tsocklen_t)(unsafe.Pointer(bp))
  8576. v1 = libc.Xrealloc(tls, sockname, uint64(*(*Tsocklen_t)(unsafe.Pointer(bp))))
  8577. new_sockname = v1
  8578. if v1 == libc.UintptrFromInt32(0) {
  8579. goto sock_or_realloc_error
  8580. }
  8581. sockname = new_sockname
  8582. 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 {
  8583. goto sock_or_realloc_error
  8584. }
  8585. }
  8586. return sockname
  8587. goto sock_or_realloc_error
  8588. sock_or_realloc_error:
  8589. ;
  8590. libc.Xfree(tls, sockname)
  8591. return libc.UintptrFromInt32(0)
  8592. }
  8593. func X_xcb_get_auth_info(tls *libc.TLS, fd int32, info uintptr, display int32) (r int32) {
  8594. var authptr, sockname, v1, v2, v3 uintptr
  8595. var gotsockname, ret int32
  8596. _, _, _, _, _, _, _ = authptr, gotsockname, ret, sockname, v1, v2, v3
  8597. /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
  8598. xtrans/Xtransutils.c */
  8599. sockname = libc.UintptrFromInt32(0)
  8600. gotsockname = 0
  8601. authptr = uintptr(0)
  8602. ret = int32(1)
  8603. /* Some systems like hpux or Hurd do not expose peer names
  8604. * for UNIX Domain Sockets, but this is irrelevant,
  8605. * since compute_auth() ignores the peer name in this
  8606. * case anyway.*/
  8607. v1 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetpeername), fd)
  8608. sockname = v1
  8609. if v1 == libc.UintptrFromInt32(0) {
  8610. v2 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8611. sockname = v2
  8612. if v2 == libc.UintptrFromInt32(0) {
  8613. return 0
  8614. } /* can only authenticate sockets */
  8615. if libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) != int32(m_PF_LOCAL) {
  8616. libc.Xfree(tls, sockname)
  8617. return 0 /* except for AF_UNIX, sockets should have peernames */
  8618. }
  8619. gotsockname = int32(1)
  8620. }
  8621. authptr = _get_authptr(tls, sockname, display)
  8622. if authptr == uintptr(0) {
  8623. libc.Xfree(tls, sockname)
  8624. return 0 /* cannot find good auth data */
  8625. }
  8626. (*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)))
  8627. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen != 0) {
  8628. goto no_auth
  8629. } /* out of memory */
  8630. if !(gotsockname != 0) {
  8631. libc.Xfree(tls, sockname)
  8632. v3 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8633. sockname = v3
  8634. if v3 == libc.UintptrFromInt32(0) {
  8635. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8636. goto no_auth /* can only authenticate sockets */
  8637. }
  8638. }
  8639. ret = _compute_auth(tls, info, authptr, sockname)
  8640. if !(ret != 0) {
  8641. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8642. goto no_auth /* cannot build auth record */
  8643. }
  8644. libc.Xfree(tls, sockname)
  8645. sockname = libc.UintptrFromInt32(0)
  8646. libxau.XXauDisposeAuth(tls, authptr)
  8647. return ret
  8648. goto no_auth
  8649. no_auth:
  8650. ;
  8651. libc.Xfree(tls, sockname)
  8652. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname = uintptr(0)
  8653. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = 0
  8654. libxau.XXauDisposeAuth(tls, authptr)
  8655. return 0
  8656. }
  8657. /*
  8658. * This file generated automatically from xproto.xml by c_client.py.
  8659. * Edit at your peril.
  8660. */
  8661. /**
  8662. * @defgroup XCB__API XCB API
  8663. * @brief XCB Protocol Implementation.
  8664. * @{
  8665. **/
  8666. /**
  8667. * @}
  8668. */
  8669. func Xxcb_char2b_next(tls *libc.TLS, i uintptr) {
  8670. var p1 uintptr
  8671. _ = p1
  8672. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Frem--
  8673. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Fdata += 2
  8674. p1 = i + 12
  8675. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(2))
  8676. }
  8677. func Xxcb_char2b_end(tls *libc.TLS, i Txcb_char2b_iterator_t) (r Txcb_generic_iterator_t) {
  8678. var ret Txcb_generic_iterator_t
  8679. _ = ret
  8680. ret.Fdata = i.Fdata + uintptr(i.Frem)*2
  8681. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8682. ret.Frem = 0
  8683. return ret
  8684. }
  8685. func Xxcb_window_next(tls *libc.TLS, i uintptr) {
  8686. var p1 uintptr
  8687. _ = p1
  8688. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Frem--
  8689. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8690. p1 = i + 12
  8691. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8692. }
  8693. func Xxcb_window_end(tls *libc.TLS, i Txcb_window_iterator_t) (r Txcb_generic_iterator_t) {
  8694. var ret Txcb_generic_iterator_t
  8695. _ = ret
  8696. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8697. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8698. ret.Frem = 0
  8699. return ret
  8700. }
  8701. func Xxcb_pixmap_next(tls *libc.TLS, i uintptr) {
  8702. var p1 uintptr
  8703. _ = p1
  8704. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Frem--
  8705. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8706. p1 = i + 12
  8707. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8708. }
  8709. func Xxcb_pixmap_end(tls *libc.TLS, i Txcb_pixmap_iterator_t) (r Txcb_generic_iterator_t) {
  8710. var ret Txcb_generic_iterator_t
  8711. _ = ret
  8712. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8713. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8714. ret.Frem = 0
  8715. return ret
  8716. }
  8717. func Xxcb_cursor_next(tls *libc.TLS, i uintptr) {
  8718. var p1 uintptr
  8719. _ = p1
  8720. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Frem--
  8721. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8722. p1 = i + 12
  8723. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8724. }
  8725. func Xxcb_cursor_end(tls *libc.TLS, i Txcb_cursor_iterator_t) (r Txcb_generic_iterator_t) {
  8726. var ret Txcb_generic_iterator_t
  8727. _ = ret
  8728. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8729. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8730. ret.Frem = 0
  8731. return ret
  8732. }
  8733. func Xxcb_font_next(tls *libc.TLS, i uintptr) {
  8734. var p1 uintptr
  8735. _ = p1
  8736. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Frem--
  8737. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8738. p1 = i + 12
  8739. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8740. }
  8741. func Xxcb_font_end(tls *libc.TLS, i Txcb_font_iterator_t) (r Txcb_generic_iterator_t) {
  8742. var ret Txcb_generic_iterator_t
  8743. _ = ret
  8744. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8745. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8746. ret.Frem = 0
  8747. return ret
  8748. }
  8749. func Xxcb_gcontext_next(tls *libc.TLS, i uintptr) {
  8750. var p1 uintptr
  8751. _ = p1
  8752. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Frem--
  8753. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8754. p1 = i + 12
  8755. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8756. }
  8757. func Xxcb_gcontext_end(tls *libc.TLS, i Txcb_gcontext_iterator_t) (r Txcb_generic_iterator_t) {
  8758. var ret Txcb_generic_iterator_t
  8759. _ = ret
  8760. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8761. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8762. ret.Frem = 0
  8763. return ret
  8764. }
  8765. func Xxcb_colormap_next(tls *libc.TLS, i uintptr) {
  8766. var p1 uintptr
  8767. _ = p1
  8768. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Frem--
  8769. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8770. p1 = i + 12
  8771. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8772. }
  8773. func Xxcb_colormap_end(tls *libc.TLS, i Txcb_colormap_iterator_t) (r Txcb_generic_iterator_t) {
  8774. var ret Txcb_generic_iterator_t
  8775. _ = ret
  8776. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8777. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8778. ret.Frem = 0
  8779. return ret
  8780. }
  8781. func Xxcb_atom_next(tls *libc.TLS, i uintptr) {
  8782. var p1 uintptr
  8783. _ = p1
  8784. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Frem--
  8785. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8786. p1 = i + 12
  8787. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8788. }
  8789. func Xxcb_atom_end(tls *libc.TLS, i Txcb_atom_iterator_t) (r Txcb_generic_iterator_t) {
  8790. var ret Txcb_generic_iterator_t
  8791. _ = ret
  8792. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8793. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8794. ret.Frem = 0
  8795. return ret
  8796. }
  8797. func Xxcb_drawable_next(tls *libc.TLS, i uintptr) {
  8798. var p1 uintptr
  8799. _ = p1
  8800. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Frem--
  8801. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8802. p1 = i + 12
  8803. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8804. }
  8805. func Xxcb_drawable_end(tls *libc.TLS, i Txcb_drawable_iterator_t) (r Txcb_generic_iterator_t) {
  8806. var ret Txcb_generic_iterator_t
  8807. _ = ret
  8808. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8809. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8810. ret.Frem = 0
  8811. return ret
  8812. }
  8813. func Xxcb_fontable_next(tls *libc.TLS, i uintptr) {
  8814. var p1 uintptr
  8815. _ = p1
  8816. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Frem--
  8817. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8818. p1 = i + 12
  8819. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8820. }
  8821. func Xxcb_fontable_end(tls *libc.TLS, i Txcb_fontable_iterator_t) (r Txcb_generic_iterator_t) {
  8822. var ret Txcb_generic_iterator_t
  8823. _ = ret
  8824. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8825. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8826. ret.Frem = 0
  8827. return ret
  8828. }
  8829. func Xxcb_bool32_next(tls *libc.TLS, i uintptr) {
  8830. var p1 uintptr
  8831. _ = p1
  8832. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Frem--
  8833. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8834. p1 = i + 12
  8835. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8836. }
  8837. func Xxcb_bool32_end(tls *libc.TLS, i Txcb_bool32_iterator_t) (r Txcb_generic_iterator_t) {
  8838. var ret Txcb_generic_iterator_t
  8839. _ = ret
  8840. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8841. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8842. ret.Frem = 0
  8843. return ret
  8844. }
  8845. func Xxcb_visualid_next(tls *libc.TLS, i uintptr) {
  8846. var p1 uintptr
  8847. _ = p1
  8848. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Frem--
  8849. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8850. p1 = i + 12
  8851. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8852. }
  8853. func Xxcb_visualid_end(tls *libc.TLS, i Txcb_visualid_iterator_t) (r Txcb_generic_iterator_t) {
  8854. var ret Txcb_generic_iterator_t
  8855. _ = ret
  8856. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8857. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8858. ret.Frem = 0
  8859. return ret
  8860. }
  8861. func Xxcb_timestamp_next(tls *libc.TLS, i uintptr) {
  8862. var p1 uintptr
  8863. _ = p1
  8864. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Frem--
  8865. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8866. p1 = i + 12
  8867. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8868. }
  8869. func Xxcb_timestamp_end(tls *libc.TLS, i Txcb_timestamp_iterator_t) (r Txcb_generic_iterator_t) {
  8870. var ret Txcb_generic_iterator_t
  8871. _ = ret
  8872. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8873. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8874. ret.Frem = 0
  8875. return ret
  8876. }
  8877. func Xxcb_keysym_next(tls *libc.TLS, i uintptr) {
  8878. var p1 uintptr
  8879. _ = p1
  8880. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Frem--
  8881. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8882. p1 = i + 12
  8883. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8884. }
  8885. func Xxcb_keysym_end(tls *libc.TLS, i Txcb_keysym_iterator_t) (r Txcb_generic_iterator_t) {
  8886. var ret Txcb_generic_iterator_t
  8887. _ = ret
  8888. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8889. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8890. ret.Frem = 0
  8891. return ret
  8892. }
  8893. func Xxcb_keycode_next(tls *libc.TLS, i uintptr) {
  8894. var p1 uintptr
  8895. _ = p1
  8896. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Frem--
  8897. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Fdata++
  8898. p1 = i + 12
  8899. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8900. }
  8901. func Xxcb_keycode_end(tls *libc.TLS, i Txcb_keycode_iterator_t) (r Txcb_generic_iterator_t) {
  8902. var ret Txcb_generic_iterator_t
  8903. _ = ret
  8904. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8905. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8906. ret.Frem = 0
  8907. return ret
  8908. }
  8909. func Xxcb_keycode32_next(tls *libc.TLS, i uintptr) {
  8910. var p1 uintptr
  8911. _ = p1
  8912. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Frem--
  8913. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8914. p1 = i + 12
  8915. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8916. }
  8917. func Xxcb_keycode32_end(tls *libc.TLS, i Txcb_keycode32_iterator_t) (r Txcb_generic_iterator_t) {
  8918. var ret Txcb_generic_iterator_t
  8919. _ = ret
  8920. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8921. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8922. ret.Frem = 0
  8923. return ret
  8924. }
  8925. func Xxcb_button_next(tls *libc.TLS, i uintptr) {
  8926. var p1 uintptr
  8927. _ = p1
  8928. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Frem--
  8929. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Fdata++
  8930. p1 = i + 12
  8931. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8932. }
  8933. func Xxcb_button_end(tls *libc.TLS, i Txcb_button_iterator_t) (r Txcb_generic_iterator_t) {
  8934. var ret Txcb_generic_iterator_t
  8935. _ = ret
  8936. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8937. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8938. ret.Frem = 0
  8939. return ret
  8940. }
  8941. func Xxcb_point_next(tls *libc.TLS, i uintptr) {
  8942. var p1 uintptr
  8943. _ = p1
  8944. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Frem--
  8945. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8946. p1 = i + 12
  8947. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8948. }
  8949. func Xxcb_point_end(tls *libc.TLS, i Txcb_point_iterator_t) (r Txcb_generic_iterator_t) {
  8950. var ret Txcb_generic_iterator_t
  8951. _ = ret
  8952. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8953. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8954. ret.Frem = 0
  8955. return ret
  8956. }
  8957. func Xxcb_rectangle_next(tls *libc.TLS, i uintptr) {
  8958. var p1 uintptr
  8959. _ = p1
  8960. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Frem--
  8961. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  8962. p1 = i + 12
  8963. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  8964. }
  8965. func Xxcb_rectangle_end(tls *libc.TLS, i Txcb_rectangle_iterator_t) (r Txcb_generic_iterator_t) {
  8966. var ret Txcb_generic_iterator_t
  8967. _ = ret
  8968. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  8969. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8970. ret.Frem = 0
  8971. return ret
  8972. }
  8973. func Xxcb_arc_next(tls *libc.TLS, i uintptr) {
  8974. var p1 uintptr
  8975. _ = p1
  8976. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Frem--
  8977. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  8978. p1 = i + 12
  8979. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  8980. }
  8981. func Xxcb_arc_end(tls *libc.TLS, i Txcb_arc_iterator_t) (r Txcb_generic_iterator_t) {
  8982. var ret Txcb_generic_iterator_t
  8983. _ = ret
  8984. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  8985. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8986. ret.Frem = 0
  8987. return ret
  8988. }
  8989. func Xxcb_format_next(tls *libc.TLS, i uintptr) {
  8990. var p1 uintptr
  8991. _ = p1
  8992. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Frem--
  8993. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  8994. p1 = i + 12
  8995. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  8996. }
  8997. func Xxcb_format_end(tls *libc.TLS, i Txcb_format_iterator_t) (r Txcb_generic_iterator_t) {
  8998. var ret Txcb_generic_iterator_t
  8999. _ = ret
  9000. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9001. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9002. ret.Frem = 0
  9003. return ret
  9004. }
  9005. func Xxcb_visualtype_next(tls *libc.TLS, i uintptr) {
  9006. var p1 uintptr
  9007. _ = p1
  9008. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Frem--
  9009. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Fdata += 24
  9010. p1 = i + 12
  9011. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(24))
  9012. }
  9013. func Xxcb_visualtype_end(tls *libc.TLS, i Txcb_visualtype_iterator_t) (r Txcb_generic_iterator_t) {
  9014. var ret Txcb_generic_iterator_t
  9015. _ = ret
  9016. ret.Fdata = i.Fdata + uintptr(i.Frem)*24
  9017. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9018. ret.Frem = 0
  9019. return ret
  9020. }
  9021. func Xxcb_depth_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9022. var _aux, xcb_tmp uintptr
  9023. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9024. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9025. xcb_tmp = _buffer
  9026. _aux = _buffer
  9027. xcb_buffer_len = uint32(0)
  9028. xcb_block_len = uint32(0)
  9029. xcb_pad = uint32(0)
  9030. xcb_align_to = uint32(0)
  9031. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9032. xcb_tmp += uintptr(xcb_block_len)
  9033. xcb_buffer_len += xcb_block_len
  9034. xcb_block_len = uint32(0)
  9035. /* visuals */
  9036. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_depth_t)(unsafe.Pointer(_aux)).Fvisuals_len)*libc.Uint64FromInt64(24))
  9037. xcb_tmp += uintptr(xcb_block_len)
  9038. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9039. /* insert padding */
  9040. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9041. xcb_buffer_len += xcb_block_len + xcb_pad
  9042. if uint32(0) != xcb_pad {
  9043. xcb_tmp += uintptr(xcb_pad)
  9044. xcb_pad = uint32(0)
  9045. }
  9046. xcb_block_len = uint32(0)
  9047. return libc.Int32FromUint32(xcb_buffer_len)
  9048. }
  9049. func Xxcb_depth_visuals(tls *libc.TLS, R uintptr) (r uintptr) {
  9050. return R + libc.UintptrFromInt32(1)*8
  9051. }
  9052. func Xxcb_depth_visuals_length(tls *libc.TLS, R uintptr) (r int32) {
  9053. return libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9054. }
  9055. func Xxcb_depth_visuals_iterator(tls *libc.TLS, R uintptr) (r Txcb_visualtype_iterator_t) {
  9056. var i Txcb_visualtype_iterator_t
  9057. _ = i
  9058. i.Fdata = R + libc.UintptrFromInt32(1)*8
  9059. i.Frem = libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9060. i.Findex = int32(int64(i.Fdata) - int64(R))
  9061. return i
  9062. }
  9063. func Xxcb_depth_next(tls *libc.TLS, i uintptr) {
  9064. var R uintptr
  9065. var child Txcb_generic_iterator_t
  9066. _, _ = R, child
  9067. R = (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata
  9068. child.Fdata = R + uintptr(Xxcb_depth_sizeof(tls, R))
  9069. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata))
  9070. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Frem--
  9071. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9072. }
  9073. func Xxcb_depth_end(tls *libc.TLS, _i Txcb_depth_iterator_t) (r Txcb_generic_iterator_t) {
  9074. bp := tls.Alloc(16)
  9075. defer tls.Free(16)
  9076. *(*Txcb_depth_iterator_t)(unsafe.Pointer(bp)) = _i
  9077. var ret Txcb_generic_iterator_t
  9078. _ = ret
  9079. for (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9080. Xxcb_depth_next(tls, bp)
  9081. }
  9082. ret.Fdata = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Fdata
  9083. ret.Frem = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem
  9084. ret.Findex = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Findex
  9085. return ret
  9086. }
  9087. func Xxcb_screen_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9088. var _aux, xcb_tmp uintptr
  9089. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9090. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9091. xcb_tmp = _buffer
  9092. _aux = _buffer
  9093. xcb_buffer_len = uint32(0)
  9094. xcb_block_len = uint32(0)
  9095. xcb_pad = uint32(0)
  9096. xcb_align_to = uint32(0)
  9097. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9098. xcb_tmp += uintptr(xcb_block_len)
  9099. xcb_buffer_len += xcb_block_len
  9100. xcb_block_len = uint32(0)
  9101. /* allowed_depths */
  9102. i = uint32(0)
  9103. for {
  9104. if !(i < uint32((*Txcb_screen_t)(unsafe.Pointer(_aux)).Fallowed_depths_len)) {
  9105. break
  9106. }
  9107. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_depth_sizeof(tls, xcb_tmp))
  9108. xcb_block_len += xcb_tmp_len
  9109. xcb_tmp += uintptr(xcb_tmp_len)
  9110. goto _1
  9111. _1:
  9112. ;
  9113. i++
  9114. }
  9115. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  9116. /* insert padding */
  9117. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9118. xcb_buffer_len += xcb_block_len + xcb_pad
  9119. if uint32(0) != xcb_pad {
  9120. xcb_tmp += uintptr(xcb_pad)
  9121. xcb_pad = uint32(0)
  9122. }
  9123. xcb_block_len = uint32(0)
  9124. return libc.Int32FromUint32(xcb_buffer_len)
  9125. }
  9126. func Xxcb_screen_allowed_depths_length(tls *libc.TLS, R uintptr) (r int32) {
  9127. return libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9128. }
  9129. func Xxcb_screen_allowed_depths_iterator(tls *libc.TLS, R uintptr) (r Txcb_depth_iterator_t) {
  9130. var i Txcb_depth_iterator_t
  9131. _ = i
  9132. i.Fdata = R + libc.UintptrFromInt32(1)*40
  9133. i.Frem = libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9134. i.Findex = int32(int64(i.Fdata) - int64(R))
  9135. return i
  9136. }
  9137. func Xxcb_screen_next(tls *libc.TLS, i uintptr) {
  9138. var R uintptr
  9139. var child Txcb_generic_iterator_t
  9140. _, _ = R, child
  9141. R = (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata
  9142. child.Fdata = R + uintptr(Xxcb_screen_sizeof(tls, R))
  9143. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata))
  9144. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Frem--
  9145. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9146. }
  9147. func Xxcb_screen_end(tls *libc.TLS, _i Txcb_screen_iterator_t) (r Txcb_generic_iterator_t) {
  9148. bp := tls.Alloc(16)
  9149. defer tls.Free(16)
  9150. *(*Txcb_screen_iterator_t)(unsafe.Pointer(bp)) = _i
  9151. var ret Txcb_generic_iterator_t
  9152. _ = ret
  9153. for (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9154. Xxcb_screen_next(tls, bp)
  9155. }
  9156. ret.Fdata = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Fdata
  9157. ret.Frem = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem
  9158. ret.Findex = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Findex
  9159. return ret
  9160. }
  9161. func Xxcb_setup_request_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9162. var _aux, xcb_tmp uintptr
  9163. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9164. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9165. xcb_tmp = _buffer
  9166. _aux = _buffer
  9167. xcb_buffer_len = uint32(0)
  9168. xcb_block_len = uint32(0)
  9169. xcb_pad = uint32(0)
  9170. xcb_align_to = uint32(0)
  9171. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  9172. xcb_tmp += uintptr(xcb_block_len)
  9173. xcb_buffer_len += xcb_block_len
  9174. xcb_block_len = uint32(0)
  9175. /* authorization_protocol_name */
  9176. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_name_len)*libc.Uint64FromInt64(1))
  9177. xcb_tmp += uintptr(xcb_block_len)
  9178. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9179. xcb_align_to = uint32(4)
  9180. /* insert padding */
  9181. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9182. xcb_buffer_len += xcb_block_len + xcb_pad
  9183. if uint32(0) != xcb_pad {
  9184. xcb_tmp += uintptr(xcb_pad)
  9185. xcb_pad = uint32(0)
  9186. }
  9187. xcb_block_len = uint32(0)
  9188. /* insert padding */
  9189. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9190. xcb_buffer_len += xcb_block_len + xcb_pad
  9191. if uint32(0) != xcb_pad {
  9192. xcb_tmp += uintptr(xcb_pad)
  9193. xcb_pad = uint32(0)
  9194. }
  9195. xcb_block_len = uint32(0)
  9196. /* authorization_protocol_data */
  9197. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_data_len)*libc.Uint64FromInt64(1))
  9198. xcb_tmp += uintptr(xcb_block_len)
  9199. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9200. xcb_align_to = uint32(4)
  9201. /* insert padding */
  9202. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9203. xcb_buffer_len += xcb_block_len + xcb_pad
  9204. if uint32(0) != xcb_pad {
  9205. xcb_tmp += uintptr(xcb_pad)
  9206. xcb_pad = uint32(0)
  9207. }
  9208. xcb_block_len = uint32(0)
  9209. /* insert padding */
  9210. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9211. xcb_buffer_len += xcb_block_len + xcb_pad
  9212. if uint32(0) != xcb_pad {
  9213. xcb_tmp += uintptr(xcb_pad)
  9214. xcb_pad = uint32(0)
  9215. }
  9216. xcb_block_len = uint32(0)
  9217. return libc.Int32FromUint32(xcb_buffer_len)
  9218. }
  9219. func Xxcb_setup_request_authorization_protocol_name(tls *libc.TLS, R uintptr) (r uintptr) {
  9220. return R + libc.UintptrFromInt32(1)*12
  9221. }
  9222. func Xxcb_setup_request_authorization_protocol_name_length(tls *libc.TLS, R uintptr) (r int32) {
  9223. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9224. }
  9225. func Xxcb_setup_request_authorization_protocol_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9226. var i Txcb_generic_iterator_t
  9227. _ = i
  9228. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9229. i.Frem = 0
  9230. i.Findex = int32(int64(i.Fdata) - int64(R))
  9231. return i
  9232. }
  9233. func Xxcb_setup_request_authorization_protocol_data(tls *libc.TLS, R uintptr) (r uintptr) {
  9234. var prev Txcb_generic_iterator_t
  9235. _ = prev
  9236. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9237. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9238. }
  9239. func Xxcb_setup_request_authorization_protocol_data_length(tls *libc.TLS, R uintptr) (r int32) {
  9240. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
  9241. }
  9242. func Xxcb_setup_request_authorization_protocol_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9243. var i, prev Txcb_generic_iterator_t
  9244. _, _ = i, prev
  9245. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9246. 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)
  9247. i.Frem = 0
  9248. i.Findex = int32(int64(i.Fdata) - int64(R))
  9249. return i
  9250. }
  9251. func Xxcb_setup_request_next(tls *libc.TLS, i uintptr) {
  9252. var R uintptr
  9253. var child Txcb_generic_iterator_t
  9254. _, _ = R, child
  9255. R = (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata
  9256. child.Fdata = R + uintptr(Xxcb_setup_request_sizeof(tls, R))
  9257. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata))
  9258. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Frem--
  9259. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9260. }
  9261. func Xxcb_setup_request_end(tls *libc.TLS, _i Txcb_setup_request_iterator_t) (r Txcb_generic_iterator_t) {
  9262. bp := tls.Alloc(16)
  9263. defer tls.Free(16)
  9264. *(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp)) = _i
  9265. var ret Txcb_generic_iterator_t
  9266. _ = ret
  9267. for (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9268. Xxcb_setup_request_next(tls, bp)
  9269. }
  9270. ret.Fdata = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Fdata
  9271. ret.Frem = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem
  9272. ret.Findex = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Findex
  9273. return ret
  9274. }
  9275. func Xxcb_setup_failed_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9276. var _aux, xcb_tmp uintptr
  9277. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9278. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9279. xcb_tmp = _buffer
  9280. _aux = _buffer
  9281. xcb_buffer_len = uint32(0)
  9282. xcb_block_len = uint32(0)
  9283. xcb_pad = uint32(0)
  9284. xcb_align_to = uint32(0)
  9285. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9286. xcb_tmp += uintptr(xcb_block_len)
  9287. xcb_buffer_len += xcb_block_len
  9288. xcb_block_len = uint32(0)
  9289. /* reason */
  9290. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_failed_t)(unsafe.Pointer(_aux)).Freason_len)*libc.Uint64FromInt64(1))
  9291. xcb_tmp += uintptr(xcb_block_len)
  9292. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9293. /* insert padding */
  9294. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9295. xcb_buffer_len += xcb_block_len + xcb_pad
  9296. if uint32(0) != xcb_pad {
  9297. xcb_tmp += uintptr(xcb_pad)
  9298. xcb_pad = uint32(0)
  9299. }
  9300. xcb_block_len = uint32(0)
  9301. return libc.Int32FromUint32(xcb_buffer_len)
  9302. }
  9303. func Xxcb_setup_failed_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9304. return R + libc.UintptrFromInt32(1)*8
  9305. }
  9306. func Xxcb_setup_failed_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9307. return libc.Int32FromUint8((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9308. }
  9309. func Xxcb_setup_failed_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9310. var i Txcb_generic_iterator_t
  9311. _ = i
  9312. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9313. i.Frem = 0
  9314. i.Findex = int32(int64(i.Fdata) - int64(R))
  9315. return i
  9316. }
  9317. func Xxcb_setup_failed_next(tls *libc.TLS, i uintptr) {
  9318. var R uintptr
  9319. var child Txcb_generic_iterator_t
  9320. _, _ = R, child
  9321. R = (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata
  9322. child.Fdata = R + uintptr(Xxcb_setup_failed_sizeof(tls, R))
  9323. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata))
  9324. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Frem--
  9325. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9326. }
  9327. func Xxcb_setup_failed_end(tls *libc.TLS, _i Txcb_setup_failed_iterator_t) (r Txcb_generic_iterator_t) {
  9328. bp := tls.Alloc(16)
  9329. defer tls.Free(16)
  9330. *(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp)) = _i
  9331. var ret Txcb_generic_iterator_t
  9332. _ = ret
  9333. for (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9334. Xxcb_setup_failed_next(tls, bp)
  9335. }
  9336. ret.Fdata = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Fdata
  9337. ret.Frem = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem
  9338. ret.Findex = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Findex
  9339. return ret
  9340. }
  9341. func Xxcb_setup_authenticate_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9342. var _aux, xcb_tmp uintptr
  9343. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9344. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9345. xcb_tmp = _buffer
  9346. _aux = _buffer
  9347. xcb_buffer_len = uint32(0)
  9348. xcb_block_len = uint32(0)
  9349. xcb_pad = uint32(0)
  9350. xcb_align_to = uint32(0)
  9351. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9352. xcb_tmp += uintptr(xcb_block_len)
  9353. xcb_buffer_len += xcb_block_len
  9354. xcb_block_len = uint32(0)
  9355. /* reason */
  9356. 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))
  9357. xcb_tmp += uintptr(xcb_block_len)
  9358. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9359. /* insert padding */
  9360. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9361. xcb_buffer_len += xcb_block_len + xcb_pad
  9362. if uint32(0) != xcb_pad {
  9363. xcb_tmp += uintptr(xcb_pad)
  9364. xcb_pad = uint32(0)
  9365. }
  9366. xcb_block_len = uint32(0)
  9367. return libc.Int32FromUint32(xcb_buffer_len)
  9368. }
  9369. func Xxcb_setup_authenticate_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9370. return R + libc.UintptrFromInt32(1)*8
  9371. }
  9372. func Xxcb_setup_authenticate_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9373. return libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength) * int32(4)
  9374. }
  9375. func Xxcb_setup_authenticate_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9376. var i Txcb_generic_iterator_t
  9377. _ = i
  9378. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))
  9379. i.Frem = 0
  9380. i.Findex = int32(int64(i.Fdata) - int64(R))
  9381. return i
  9382. }
  9383. func Xxcb_setup_authenticate_next(tls *libc.TLS, i uintptr) {
  9384. var R uintptr
  9385. var child Txcb_generic_iterator_t
  9386. _, _ = R, child
  9387. R = (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata
  9388. child.Fdata = R + uintptr(Xxcb_setup_authenticate_sizeof(tls, R))
  9389. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata))
  9390. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Frem--
  9391. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9392. }
  9393. func Xxcb_setup_authenticate_end(tls *libc.TLS, _i Txcb_setup_authenticate_iterator_t) (r Txcb_generic_iterator_t) {
  9394. bp := tls.Alloc(16)
  9395. defer tls.Free(16)
  9396. *(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp)) = _i
  9397. var ret Txcb_generic_iterator_t
  9398. _ = ret
  9399. for (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9400. Xxcb_setup_authenticate_next(tls, bp)
  9401. }
  9402. ret.Fdata = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Fdata
  9403. ret.Frem = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem
  9404. ret.Findex = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Findex
  9405. return ret
  9406. }
  9407. func Xxcb_setup_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9408. var _aux, xcb_tmp uintptr
  9409. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9410. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9411. xcb_tmp = _buffer
  9412. _aux = _buffer
  9413. xcb_buffer_len = uint32(0)
  9414. xcb_block_len = uint32(0)
  9415. xcb_pad = uint32(0)
  9416. xcb_align_to = uint32(0)
  9417. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9418. xcb_tmp += uintptr(xcb_block_len)
  9419. xcb_buffer_len += xcb_block_len
  9420. xcb_block_len = uint32(0)
  9421. /* vendor */
  9422. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fvendor_len)*libc.Uint64FromInt64(1))
  9423. xcb_tmp += uintptr(xcb_block_len)
  9424. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9425. xcb_align_to = uint32(4)
  9426. /* insert padding */
  9427. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9428. xcb_buffer_len += xcb_block_len + xcb_pad
  9429. if uint32(0) != xcb_pad {
  9430. xcb_tmp += uintptr(xcb_pad)
  9431. xcb_pad = uint32(0)
  9432. }
  9433. xcb_block_len = uint32(0)
  9434. /* insert padding */
  9435. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9436. xcb_buffer_len += xcb_block_len + xcb_pad
  9437. if uint32(0) != xcb_pad {
  9438. xcb_tmp += uintptr(xcb_pad)
  9439. xcb_pad = uint32(0)
  9440. }
  9441. xcb_block_len = uint32(0)
  9442. /* pixmap_formats */
  9443. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fpixmap_formats_len)*libc.Uint64FromInt64(8))
  9444. xcb_tmp += uintptr(xcb_block_len)
  9445. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9446. /* insert padding */
  9447. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9448. xcb_buffer_len += xcb_block_len + xcb_pad
  9449. if uint32(0) != xcb_pad {
  9450. xcb_tmp += uintptr(xcb_pad)
  9451. xcb_pad = uint32(0)
  9452. }
  9453. xcb_block_len = uint32(0)
  9454. /* roots */
  9455. i = uint32(0)
  9456. for {
  9457. if !(i < uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Froots_len)) {
  9458. break
  9459. }
  9460. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_screen_sizeof(tls, xcb_tmp))
  9461. xcb_block_len += xcb_tmp_len
  9462. xcb_tmp += uintptr(xcb_tmp_len)
  9463. goto _1
  9464. _1:
  9465. ;
  9466. i++
  9467. }
  9468. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9469. /* insert padding */
  9470. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9471. xcb_buffer_len += xcb_block_len + xcb_pad
  9472. if uint32(0) != xcb_pad {
  9473. xcb_tmp += uintptr(xcb_pad)
  9474. xcb_pad = uint32(0)
  9475. }
  9476. xcb_block_len = uint32(0)
  9477. return libc.Int32FromUint32(xcb_buffer_len)
  9478. }
  9479. func Xxcb_setup_vendor(tls *libc.TLS, R uintptr) (r uintptr) {
  9480. return R + libc.UintptrFromInt32(1)*40
  9481. }
  9482. func Xxcb_setup_vendor_length(tls *libc.TLS, R uintptr) (r int32) {
  9483. return libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9484. }
  9485. func Xxcb_setup_vendor_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9486. var i Txcb_generic_iterator_t
  9487. _ = i
  9488. i.Fdata = R + libc.UintptrFromInt32(1)*40 + uintptr((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9489. i.Frem = 0
  9490. i.Findex = int32(int64(i.Fdata) - int64(R))
  9491. return i
  9492. }
  9493. func Xxcb_setup_pixmap_formats(tls *libc.TLS, R uintptr) (r uintptr) {
  9494. var prev Txcb_generic_iterator_t
  9495. _ = prev
  9496. prev = Xxcb_setup_vendor_end(tls, R)
  9497. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9498. }
  9499. func Xxcb_setup_pixmap_formats_length(tls *libc.TLS, R uintptr) (r int32) {
  9500. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9501. }
  9502. func Xxcb_setup_pixmap_formats_iterator(tls *libc.TLS, R uintptr) (r Txcb_format_iterator_t) {
  9503. var i Txcb_format_iterator_t
  9504. var prev Txcb_generic_iterator_t
  9505. _, _ = i, prev
  9506. prev = Xxcb_setup_vendor_end(tls, R)
  9507. i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)))
  9508. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9509. i.Findex = int32(int64(i.Fdata) - int64(R))
  9510. return i
  9511. }
  9512. func Xxcb_setup_roots_length(tls *libc.TLS, R uintptr) (r int32) {
  9513. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9514. }
  9515. func Xxcb_setup_roots_iterator(tls *libc.TLS, R uintptr) (r Txcb_screen_iterator_t) {
  9516. var i Txcb_screen_iterator_t
  9517. var prev Txcb_generic_iterator_t
  9518. _, _ = i, prev
  9519. prev = Xxcb_format_end(tls, Xxcb_setup_pixmap_formats_iterator(tls, R))
  9520. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  9521. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9522. i.Findex = int32(int64(i.Fdata) - int64(R))
  9523. return i
  9524. }
  9525. func Xxcb_setup_next(tls *libc.TLS, i uintptr) {
  9526. var R uintptr
  9527. var child Txcb_generic_iterator_t
  9528. _, _ = R, child
  9529. R = (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata
  9530. child.Fdata = R + uintptr(Xxcb_setup_sizeof(tls, R))
  9531. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata))
  9532. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Frem--
  9533. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9534. }
  9535. func Xxcb_setup_end(tls *libc.TLS, _i Txcb_setup_iterator_t) (r Txcb_generic_iterator_t) {
  9536. bp := tls.Alloc(16)
  9537. defer tls.Free(16)
  9538. *(*Txcb_setup_iterator_t)(unsafe.Pointer(bp)) = _i
  9539. var ret Txcb_generic_iterator_t
  9540. _ = ret
  9541. for (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9542. Xxcb_setup_next(tls, bp)
  9543. }
  9544. ret.Fdata = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Fdata
  9545. ret.Frem = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem
  9546. ret.Findex = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Findex
  9547. return ret
  9548. }
  9549. func Xxcb_client_message_data_next(tls *libc.TLS, i uintptr) {
  9550. var p1 uintptr
  9551. _ = p1
  9552. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Frem--
  9553. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Fdata += 20
  9554. p1 = i + 12
  9555. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(20))
  9556. }
  9557. func Xxcb_client_message_data_end(tls *libc.TLS, i Txcb_client_message_data_iterator_t) (r Txcb_generic_iterator_t) {
  9558. var ret Txcb_generic_iterator_t
  9559. _ = ret
  9560. ret.Fdata = i.Fdata + uintptr(i.Frem)*20
  9561. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9562. ret.Frem = 0
  9563. return ret
  9564. }
  9565. func Xxcb_create_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9566. bp := tls.Alloc(16)
  9567. defer tls.Free(16)
  9568. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  9569. var xcb_out, xcb_tmp uintptr
  9570. var xcb_parts [16]Tiovec
  9571. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  9572. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  9573. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  9574. xcb_buffer_len = uint32(0)
  9575. xcb_align_to = uint32(0)
  9576. xcb_padding_offset = uint32(0)
  9577. xcb_pad = uint32(0)
  9578. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  9579. xcb_parts_idx = uint32(0)
  9580. xcb_block_len = uint32(0)
  9581. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9582. /* xcb_create_window_value_list_t.background_pixmap */
  9583. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  9584. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9585. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9586. xcb_parts_idx++
  9587. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9588. }
  9589. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9590. /* xcb_create_window_value_list_t.background_pixel */
  9591. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  9592. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9593. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9594. xcb_parts_idx++
  9595. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9596. }
  9597. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9598. /* xcb_create_window_value_list_t.border_pixmap */
  9599. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  9600. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9601. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9602. xcb_parts_idx++
  9603. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9604. }
  9605. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9606. /* xcb_create_window_value_list_t.border_pixel */
  9607. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  9608. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9609. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9610. xcb_parts_idx++
  9611. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9612. }
  9613. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9614. /* xcb_create_window_value_list_t.bit_gravity */
  9615. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  9616. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9617. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9618. xcb_parts_idx++
  9619. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9620. }
  9621. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9622. /* xcb_create_window_value_list_t.win_gravity */
  9623. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  9624. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9625. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9626. xcb_parts_idx++
  9627. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9628. }
  9629. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9630. /* xcb_create_window_value_list_t.backing_store */
  9631. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  9632. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9633. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9634. xcb_parts_idx++
  9635. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9636. }
  9637. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9638. /* xcb_create_window_value_list_t.backing_planes */
  9639. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  9640. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9641. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9642. xcb_parts_idx++
  9643. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9644. }
  9645. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9646. /* xcb_create_window_value_list_t.backing_pixel */
  9647. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  9648. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9649. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9650. xcb_parts_idx++
  9651. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9652. }
  9653. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9654. /* xcb_create_window_value_list_t.override_redirect */
  9655. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  9656. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9657. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9658. xcb_parts_idx++
  9659. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9660. }
  9661. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9662. /* xcb_create_window_value_list_t.save_under */
  9663. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  9664. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9665. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9666. xcb_parts_idx++
  9667. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9668. }
  9669. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9670. /* xcb_create_window_value_list_t.event_mask */
  9671. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  9672. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9673. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9674. xcb_parts_idx++
  9675. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9676. }
  9677. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9678. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9679. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  9680. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9681. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9682. xcb_parts_idx++
  9683. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9684. }
  9685. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9686. /* xcb_create_window_value_list_t.colormap */
  9687. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  9688. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9689. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9690. xcb_parts_idx++
  9691. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9692. }
  9693. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9694. /* xcb_create_window_value_list_t.cursor */
  9695. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  9696. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9697. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9698. xcb_parts_idx++
  9699. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9700. }
  9701. /* insert padding */
  9702. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9703. xcb_buffer_len += xcb_block_len + xcb_pad
  9704. if uint32(0) != xcb_pad {
  9705. xcb_parts[xcb_parts_idx].Fiov_base = bp
  9706. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  9707. xcb_parts_idx++
  9708. xcb_pad = uint32(0)
  9709. }
  9710. xcb_block_len = uint32(0)
  9711. xcb_padding_offset = uint32(0)
  9712. if libc.UintptrFromInt32(0) == xcb_out {
  9713. /* allocate memory */
  9714. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  9715. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  9716. }
  9717. xcb_tmp = xcb_out
  9718. i = uint32(0)
  9719. for {
  9720. if !(i < xcb_parts_idx) {
  9721. break
  9722. }
  9723. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  9724. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  9725. }
  9726. if uint64(0) != xcb_parts[i].Fiov_len {
  9727. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  9728. }
  9729. goto _1
  9730. _1:
  9731. ;
  9732. i++
  9733. }
  9734. return libc.Int32FromUint32(xcb_buffer_len)
  9735. }
  9736. func Xxcb_create_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9737. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  9738. var xcb_tmp uintptr
  9739. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  9740. xcb_tmp = _buffer
  9741. xcb_buffer_len = uint32(0)
  9742. xcb_block_len = uint32(0)
  9743. xcb_pad = uint32(0)
  9744. xcb_align_to = uint32(0)
  9745. xcb_padding_offset = uint32(0)
  9746. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9747. /* xcb_create_window_value_list_t.background_pixmap */
  9748. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9749. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9750. xcb_tmp += uintptr(4)
  9751. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9752. }
  9753. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9754. /* xcb_create_window_value_list_t.background_pixel */
  9755. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9756. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9757. xcb_tmp += uintptr(4)
  9758. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9759. }
  9760. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9761. /* xcb_create_window_value_list_t.border_pixmap */
  9762. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9763. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9764. xcb_tmp += uintptr(4)
  9765. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9766. }
  9767. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9768. /* xcb_create_window_value_list_t.border_pixel */
  9769. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9770. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9771. xcb_tmp += uintptr(4)
  9772. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9773. }
  9774. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9775. /* xcb_create_window_value_list_t.bit_gravity */
  9776. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9777. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9778. xcb_tmp += uintptr(4)
  9779. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9780. }
  9781. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9782. /* xcb_create_window_value_list_t.win_gravity */
  9783. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9784. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9785. xcb_tmp += uintptr(4)
  9786. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9787. }
  9788. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9789. /* xcb_create_window_value_list_t.backing_store */
  9790. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9791. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9792. xcb_tmp += uintptr(4)
  9793. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9794. }
  9795. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9796. /* xcb_create_window_value_list_t.backing_planes */
  9797. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9798. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9799. xcb_tmp += uintptr(4)
  9800. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9801. }
  9802. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9803. /* xcb_create_window_value_list_t.backing_pixel */
  9804. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9805. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9806. xcb_tmp += uintptr(4)
  9807. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9808. }
  9809. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9810. /* xcb_create_window_value_list_t.override_redirect */
  9811. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9812. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9813. xcb_tmp += uintptr(4)
  9814. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9815. }
  9816. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9817. /* xcb_create_window_value_list_t.save_under */
  9818. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9819. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9820. xcb_tmp += uintptr(4)
  9821. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9822. }
  9823. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9824. /* xcb_create_window_value_list_t.event_mask */
  9825. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9826. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9827. xcb_tmp += uintptr(4)
  9828. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9829. }
  9830. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9831. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9832. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9833. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9834. xcb_tmp += uintptr(4)
  9835. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9836. }
  9837. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9838. /* xcb_create_window_value_list_t.colormap */
  9839. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  9840. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9841. xcb_tmp += uintptr(4)
  9842. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9843. }
  9844. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9845. /* xcb_create_window_value_list_t.cursor */
  9846. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  9847. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9848. xcb_tmp += uintptr(4)
  9849. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9850. }
  9851. /* insert padding */
  9852. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9853. xcb_buffer_len += xcb_block_len + xcb_pad
  9854. if uint32(0) != xcb_pad {
  9855. xcb_tmp += uintptr(xcb_pad)
  9856. xcb_pad = uint32(0)
  9857. }
  9858. xcb_block_len = uint32(0)
  9859. xcb_padding_offset = uint32(0)
  9860. return libc.Int32FromUint32(xcb_buffer_len)
  9861. }
  9862. func Xxcb_create_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  9863. bp := tls.Alloc(64)
  9864. defer tls.Free(64)
  9865. var _ /* _aux at bp+0 */ Txcb_create_window_value_list_t
  9866. return Xxcb_create_window_value_list_unpack(tls, _buffer, value_mask, bp)
  9867. }
  9868. func Xxcb_create_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9869. var _aux, xcb_tmp uintptr
  9870. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9871. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9872. xcb_tmp = _buffer
  9873. _aux = _buffer
  9874. xcb_buffer_len = uint32(0)
  9875. xcb_block_len = uint32(0)
  9876. xcb_pad = uint32(0)
  9877. xcb_align_to = uint32(0)
  9878. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  9879. xcb_tmp += uintptr(xcb_block_len)
  9880. xcb_buffer_len += xcb_block_len
  9881. xcb_block_len = uint32(0)
  9882. /* value_list */
  9883. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  9884. xcb_tmp += uintptr(xcb_block_len)
  9885. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9886. /* insert padding */
  9887. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9888. xcb_buffer_len += xcb_block_len + xcb_pad
  9889. if uint32(0) != xcb_pad {
  9890. xcb_tmp += uintptr(xcb_pad)
  9891. xcb_pad = uint32(0)
  9892. }
  9893. xcb_block_len = uint32(0)
  9894. return libc.Int32FromUint32(xcb_buffer_len)
  9895. }
  9896. 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) {
  9897. bp := tls.Alloc(112)
  9898. defer tls.Free(112)
  9899. var xcb_ret Txcb_void_cookie_t
  9900. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9901. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9902. _ = xcb_ret
  9903. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9904. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9905. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9906. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9907. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9908. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9909. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9910. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9911. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9912. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9913. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9914. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9915. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9916. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9917. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9918. /* xcb_create_window_value_list_t value_list */
  9919. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9920. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  9921. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req)))
  9922. return xcb_ret
  9923. }
  9924. var _xcb_req = Txcb_protocol_request_t{
  9925. Fcount: uint64(3),
  9926. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9927. Fisvoid: uint8(1),
  9928. }
  9929. 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) {
  9930. bp := tls.Alloc(112)
  9931. defer tls.Free(112)
  9932. var xcb_ret Txcb_void_cookie_t
  9933. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9934. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9935. _ = xcb_ret
  9936. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9937. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9938. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9939. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9940. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9941. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9942. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9943. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9944. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9945. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9946. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9947. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9948. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9949. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9950. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9951. /* xcb_create_window_value_list_t value_list */
  9952. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9953. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  9954. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req1)))
  9955. return xcb_ret
  9956. }
  9957. var _xcb_req1 = Txcb_protocol_request_t{
  9958. Fcount: uint64(3),
  9959. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9960. Fisvoid: uint8(1),
  9961. }
  9962. 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) {
  9963. bp := tls.Alloc(128)
  9964. defer tls.Free(128)
  9965. var xcb_ret Txcb_void_cookie_t
  9966. var _ /* xcb_aux0 at bp+112 */ uintptr
  9967. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9968. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9969. _ = xcb_ret
  9970. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  9971. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9972. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9973. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9974. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9975. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9976. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9977. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9978. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9979. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9980. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9981. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9982. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9983. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9984. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9985. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9986. /* xcb_create_window_value_list_t value_list */
  9987. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  9988. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  9989. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req2)))
  9990. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  9991. return xcb_ret
  9992. }
  9993. var _xcb_req2 = Txcb_protocol_request_t{
  9994. Fcount: uint64(3),
  9995. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9996. Fisvoid: uint8(1),
  9997. }
  9998. 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) {
  9999. bp := tls.Alloc(128)
  10000. defer tls.Free(128)
  10001. var xcb_ret Txcb_void_cookie_t
  10002. var _ /* xcb_aux0 at bp+112 */ uintptr
  10003. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10004. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10005. _ = xcb_ret
  10006. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  10007. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10008. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10009. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10010. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10011. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10012. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10013. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10014. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10015. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10016. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10017. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10018. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10019. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10020. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10021. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10022. /* xcb_create_window_value_list_t value_list */
  10023. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  10024. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  10025. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req3)))
  10026. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  10027. return xcb_ret
  10028. }
  10029. var _xcb_req3 = Txcb_protocol_request_t{
  10030. Fcount: uint64(3),
  10031. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10032. Fisvoid: uint8(1),
  10033. }
  10034. func Xxcb_create_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10035. return R + libc.UintptrFromInt32(1)*32
  10036. }
  10037. func Xxcb_change_window_attributes_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10038. bp := tls.Alloc(16)
  10039. defer tls.Free(16)
  10040. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10041. var xcb_out, xcb_tmp uintptr
  10042. var xcb_parts [16]Tiovec
  10043. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10044. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10045. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10046. xcb_buffer_len = uint32(0)
  10047. xcb_align_to = uint32(0)
  10048. xcb_padding_offset = uint32(0)
  10049. xcb_pad = uint32(0)
  10050. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10051. xcb_parts_idx = uint32(0)
  10052. xcb_block_len = uint32(0)
  10053. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10054. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10055. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10056. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10057. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10058. xcb_parts_idx++
  10059. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10060. }
  10061. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10062. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10063. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10064. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10065. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10066. xcb_parts_idx++
  10067. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10068. }
  10069. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10070. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10071. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10072. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10073. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10074. xcb_parts_idx++
  10075. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10076. }
  10077. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10078. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10079. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10080. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10081. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10082. xcb_parts_idx++
  10083. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10084. }
  10085. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10086. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10087. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10088. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10089. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10090. xcb_parts_idx++
  10091. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10092. }
  10093. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10094. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10095. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10096. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10097. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10098. xcb_parts_idx++
  10099. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10100. }
  10101. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10102. /* xcb_change_window_attributes_value_list_t.backing_store */
  10103. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10104. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10105. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10106. xcb_parts_idx++
  10107. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10108. }
  10109. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10110. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10111. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  10112. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10113. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10114. xcb_parts_idx++
  10115. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10116. }
  10117. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10118. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10119. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  10120. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10121. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10122. xcb_parts_idx++
  10123. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10124. }
  10125. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10126. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10127. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  10128. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10129. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10130. xcb_parts_idx++
  10131. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10132. }
  10133. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10134. /* xcb_change_window_attributes_value_list_t.save_under */
  10135. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  10136. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10137. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10138. xcb_parts_idx++
  10139. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10140. }
  10141. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10142. /* xcb_change_window_attributes_value_list_t.event_mask */
  10143. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  10144. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10145. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10146. xcb_parts_idx++
  10147. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10148. }
  10149. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10150. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10151. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  10152. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10153. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10154. xcb_parts_idx++
  10155. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10156. }
  10157. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10158. /* xcb_change_window_attributes_value_list_t.colormap */
  10159. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  10160. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10161. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10162. xcb_parts_idx++
  10163. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10164. }
  10165. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10166. /* xcb_change_window_attributes_value_list_t.cursor */
  10167. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  10168. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10169. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10170. xcb_parts_idx++
  10171. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10172. }
  10173. /* insert padding */
  10174. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10175. xcb_buffer_len += xcb_block_len + xcb_pad
  10176. if uint32(0) != xcb_pad {
  10177. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10178. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10179. xcb_parts_idx++
  10180. xcb_pad = uint32(0)
  10181. }
  10182. xcb_block_len = uint32(0)
  10183. xcb_padding_offset = uint32(0)
  10184. if libc.UintptrFromInt32(0) == xcb_out {
  10185. /* allocate memory */
  10186. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10187. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10188. }
  10189. xcb_tmp = xcb_out
  10190. i = uint32(0)
  10191. for {
  10192. if !(i < xcb_parts_idx) {
  10193. break
  10194. }
  10195. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10196. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10197. }
  10198. if uint64(0) != xcb_parts[i].Fiov_len {
  10199. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10200. }
  10201. goto _1
  10202. _1:
  10203. ;
  10204. i++
  10205. }
  10206. return libc.Int32FromUint32(xcb_buffer_len)
  10207. }
  10208. func Xxcb_change_window_attributes_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10209. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10210. var xcb_tmp uintptr
  10211. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10212. xcb_tmp = _buffer
  10213. xcb_buffer_len = uint32(0)
  10214. xcb_block_len = uint32(0)
  10215. xcb_pad = uint32(0)
  10216. xcb_align_to = uint32(0)
  10217. xcb_padding_offset = uint32(0)
  10218. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10219. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10220. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10221. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10222. xcb_tmp += uintptr(4)
  10223. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10224. }
  10225. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10226. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10227. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10228. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10229. xcb_tmp += uintptr(4)
  10230. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10231. }
  10232. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10233. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10234. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10235. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10236. xcb_tmp += uintptr(4)
  10237. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10238. }
  10239. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10240. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10241. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10242. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10243. xcb_tmp += uintptr(4)
  10244. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10245. }
  10246. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10247. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10248. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10249. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10250. xcb_tmp += uintptr(4)
  10251. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10252. }
  10253. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10254. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10255. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10256. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10257. xcb_tmp += uintptr(4)
  10258. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10259. }
  10260. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10261. /* xcb_change_window_attributes_value_list_t.backing_store */
  10262. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10263. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10264. xcb_tmp += uintptr(4)
  10265. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10266. }
  10267. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10268. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10269. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10270. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10271. xcb_tmp += uintptr(4)
  10272. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10273. }
  10274. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10275. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10276. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10277. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10278. xcb_tmp += uintptr(4)
  10279. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10280. }
  10281. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10282. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10283. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10284. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10285. xcb_tmp += uintptr(4)
  10286. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10287. }
  10288. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10289. /* xcb_change_window_attributes_value_list_t.save_under */
  10290. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10291. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10292. xcb_tmp += uintptr(4)
  10293. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10294. }
  10295. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10296. /* xcb_change_window_attributes_value_list_t.event_mask */
  10297. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10298. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10299. xcb_tmp += uintptr(4)
  10300. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10301. }
  10302. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10303. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10304. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10305. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10306. xcb_tmp += uintptr(4)
  10307. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10308. }
  10309. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10310. /* xcb_change_window_attributes_value_list_t.colormap */
  10311. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  10312. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10313. xcb_tmp += uintptr(4)
  10314. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10315. }
  10316. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10317. /* xcb_change_window_attributes_value_list_t.cursor */
  10318. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  10319. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10320. xcb_tmp += uintptr(4)
  10321. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10322. }
  10323. /* insert padding */
  10324. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10325. xcb_buffer_len += xcb_block_len + xcb_pad
  10326. if uint32(0) != xcb_pad {
  10327. xcb_tmp += uintptr(xcb_pad)
  10328. xcb_pad = uint32(0)
  10329. }
  10330. xcb_block_len = uint32(0)
  10331. xcb_padding_offset = uint32(0)
  10332. return libc.Int32FromUint32(xcb_buffer_len)
  10333. }
  10334. func Xxcb_change_window_attributes_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  10335. bp := tls.Alloc(64)
  10336. defer tls.Free(64)
  10337. var _ /* _aux at bp+0 */ Txcb_change_window_attributes_value_list_t
  10338. return Xxcb_change_window_attributes_value_list_unpack(tls, _buffer, value_mask, bp)
  10339. }
  10340. func Xxcb_change_window_attributes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10341. var _aux, xcb_tmp uintptr
  10342. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10343. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10344. xcb_tmp = _buffer
  10345. _aux = _buffer
  10346. xcb_buffer_len = uint32(0)
  10347. xcb_block_len = uint32(0)
  10348. xcb_pad = uint32(0)
  10349. xcb_align_to = uint32(0)
  10350. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  10351. xcb_tmp += uintptr(xcb_block_len)
  10352. xcb_buffer_len += xcb_block_len
  10353. xcb_block_len = uint32(0)
  10354. /* value_list */
  10355. 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))
  10356. xcb_tmp += uintptr(xcb_block_len)
  10357. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  10358. /* insert padding */
  10359. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10360. xcb_buffer_len += xcb_block_len + xcb_pad
  10361. if uint32(0) != xcb_pad {
  10362. xcb_tmp += uintptr(xcb_pad)
  10363. xcb_pad = uint32(0)
  10364. }
  10365. xcb_block_len = uint32(0)
  10366. return libc.Int32FromUint32(xcb_buffer_len)
  10367. }
  10368. 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) {
  10369. bp := tls.Alloc(96)
  10370. defer tls.Free(96)
  10371. var xcb_ret Txcb_void_cookie_t
  10372. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10373. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10374. _ = xcb_ret
  10375. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10376. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10377. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10378. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10379. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10380. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10381. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10382. /* xcb_change_window_attributes_value_list_t value_list */
  10383. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10384. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10385. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req4)))
  10386. return xcb_ret
  10387. }
  10388. var _xcb_req4 = Txcb_protocol_request_t{
  10389. Fcount: uint64(3),
  10390. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10391. Fisvoid: uint8(1),
  10392. }
  10393. 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) {
  10394. bp := tls.Alloc(96)
  10395. defer tls.Free(96)
  10396. var xcb_ret Txcb_void_cookie_t
  10397. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10398. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10399. _ = xcb_ret
  10400. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10401. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10402. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10403. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10404. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10405. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10406. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10407. /* xcb_change_window_attributes_value_list_t value_list */
  10408. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10409. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10410. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req5)))
  10411. return xcb_ret
  10412. }
  10413. var _xcb_req5 = Txcb_protocol_request_t{
  10414. Fcount: uint64(3),
  10415. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10416. Fisvoid: uint8(1),
  10417. }
  10418. 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) {
  10419. bp := tls.Alloc(112)
  10420. defer tls.Free(112)
  10421. var xcb_ret Txcb_void_cookie_t
  10422. var _ /* xcb_aux0 at bp+96 */ uintptr
  10423. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10424. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10425. _ = xcb_ret
  10426. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10427. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10428. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10429. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10430. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10431. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10432. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10433. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10434. /* xcb_change_window_attributes_value_list_t value_list */
  10435. (*(*[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))
  10436. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10437. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req6)))
  10438. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10439. return xcb_ret
  10440. }
  10441. var _xcb_req6 = Txcb_protocol_request_t{
  10442. Fcount: uint64(3),
  10443. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10444. Fisvoid: uint8(1),
  10445. }
  10446. 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) {
  10447. bp := tls.Alloc(112)
  10448. defer tls.Free(112)
  10449. var xcb_ret Txcb_void_cookie_t
  10450. var _ /* xcb_aux0 at bp+96 */ uintptr
  10451. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10452. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10453. _ = xcb_ret
  10454. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10455. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10456. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10457. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10458. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10459. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10460. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10461. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10462. /* xcb_change_window_attributes_value_list_t value_list */
  10463. (*(*[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))
  10464. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10465. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req7)))
  10466. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10467. return xcb_ret
  10468. }
  10469. var _xcb_req7 = Txcb_protocol_request_t{
  10470. Fcount: uint64(3),
  10471. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10472. Fisvoid: uint8(1),
  10473. }
  10474. func Xxcb_change_window_attributes_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10475. return R + libc.UintptrFromInt32(1)*12
  10476. }
  10477. func Xxcb_get_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10478. bp := tls.Alloc(80)
  10479. defer tls.Free(80)
  10480. var xcb_ret Txcb_get_window_attributes_cookie_t
  10481. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10482. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10483. _ = xcb_ret
  10484. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10485. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10486. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10487. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10488. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10489. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10490. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req8)))
  10491. return xcb_ret
  10492. }
  10493. var _xcb_req8 = Txcb_protocol_request_t{
  10494. Fcount: uint64(2),
  10495. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10496. }
  10497. func Xxcb_get_window_attributes_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10498. bp := tls.Alloc(80)
  10499. defer tls.Free(80)
  10500. var xcb_ret Txcb_get_window_attributes_cookie_t
  10501. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10502. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10503. _ = xcb_ret
  10504. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10505. (*(*Txcb_get_window_attributes_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_req9)))
  10511. return xcb_ret
  10512. }
  10513. var _xcb_req9 = Txcb_protocol_request_t{
  10514. Fcount: uint64(2),
  10515. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10516. }
  10517. func Xxcb_get_window_attributes_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_window_attributes_cookie_t, e uintptr) (r uintptr) {
  10518. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  10519. }
  10520. func Xxcb_destroy_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10521. bp := tls.Alloc(80)
  10522. defer tls.Free(80)
  10523. var xcb_ret Txcb_void_cookie_t
  10524. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10525. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10526. _ = xcb_ret
  10527. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10528. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10529. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10530. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10531. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10532. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10533. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req10)))
  10534. return xcb_ret
  10535. }
  10536. var _xcb_req10 = Txcb_protocol_request_t{
  10537. Fcount: uint64(2),
  10538. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10539. Fisvoid: uint8(1),
  10540. }
  10541. func Xxcb_destroy_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10542. bp := tls.Alloc(80)
  10543. defer tls.Free(80)
  10544. var xcb_ret Txcb_void_cookie_t
  10545. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10546. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10547. _ = xcb_ret
  10548. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10549. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10550. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10551. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10552. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10553. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10554. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req11)))
  10555. return xcb_ret
  10556. }
  10557. var _xcb_req11 = Txcb_protocol_request_t{
  10558. Fcount: uint64(2),
  10559. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10560. Fisvoid: uint8(1),
  10561. }
  10562. func Xxcb_destroy_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10563. bp := tls.Alloc(80)
  10564. defer tls.Free(80)
  10565. var xcb_ret Txcb_void_cookie_t
  10566. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10567. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10568. _ = xcb_ret
  10569. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10570. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10571. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10572. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10573. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10574. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10575. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req12)))
  10576. return xcb_ret
  10577. }
  10578. var _xcb_req12 = Txcb_protocol_request_t{
  10579. Fcount: uint64(2),
  10580. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10581. Fisvoid: uint8(1),
  10582. }
  10583. func Xxcb_destroy_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10584. bp := tls.Alloc(80)
  10585. defer tls.Free(80)
  10586. var xcb_ret Txcb_void_cookie_t
  10587. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10588. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10589. _ = xcb_ret
  10590. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10591. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10592. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10593. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10594. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10595. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10596. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req13)))
  10597. return xcb_ret
  10598. }
  10599. var _xcb_req13 = Txcb_protocol_request_t{
  10600. Fcount: uint64(2),
  10601. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10602. Fisvoid: uint8(1),
  10603. }
  10604. func Xxcb_change_save_set_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10605. bp := tls.Alloc(80)
  10606. defer tls.Free(80)
  10607. var xcb_ret Txcb_void_cookie_t
  10608. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10609. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10610. _ = xcb_ret
  10611. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10612. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10613. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10614. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10615. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10616. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10617. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req14)))
  10618. return xcb_ret
  10619. }
  10620. var _xcb_req14 = Txcb_protocol_request_t{
  10621. Fcount: uint64(2),
  10622. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10623. Fisvoid: uint8(1),
  10624. }
  10625. func Xxcb_change_save_set(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10626. bp := tls.Alloc(80)
  10627. defer tls.Free(80)
  10628. var xcb_ret Txcb_void_cookie_t
  10629. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10630. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10631. _ = xcb_ret
  10632. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10633. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10634. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10635. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10636. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10637. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10638. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req15)))
  10639. return xcb_ret
  10640. }
  10641. var _xcb_req15 = Txcb_protocol_request_t{
  10642. Fcount: uint64(2),
  10643. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10644. Fisvoid: uint8(1),
  10645. }
  10646. 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) {
  10647. bp := tls.Alloc(80)
  10648. defer tls.Free(80)
  10649. var xcb_ret Txcb_void_cookie_t
  10650. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10651. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10652. _ = xcb_ret
  10653. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10654. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10655. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10656. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10657. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10658. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10659. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10660. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10661. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10662. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req16)))
  10663. return xcb_ret
  10664. }
  10665. var _xcb_req16 = Txcb_protocol_request_t{
  10666. Fcount: uint64(2),
  10667. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10668. Fisvoid: uint8(1),
  10669. }
  10670. 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) {
  10671. bp := tls.Alloc(80)
  10672. defer tls.Free(80)
  10673. var xcb_ret Txcb_void_cookie_t
  10674. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10675. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10676. _ = xcb_ret
  10677. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10678. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10679. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10680. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10681. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10682. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10683. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10684. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10685. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10686. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req17)))
  10687. return xcb_ret
  10688. }
  10689. var _xcb_req17 = Txcb_protocol_request_t{
  10690. Fcount: uint64(2),
  10691. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10692. Fisvoid: uint8(1),
  10693. }
  10694. func Xxcb_map_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10695. bp := tls.Alloc(80)
  10696. defer tls.Free(80)
  10697. var xcb_ret Txcb_void_cookie_t
  10698. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10699. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10700. _ = xcb_ret
  10701. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10702. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10703. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10704. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10705. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10706. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10707. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req18)))
  10708. return xcb_ret
  10709. }
  10710. var _xcb_req18 = Txcb_protocol_request_t{
  10711. Fcount: uint64(2),
  10712. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10713. Fisvoid: uint8(1),
  10714. }
  10715. func Xxcb_map_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10716. bp := tls.Alloc(80)
  10717. defer tls.Free(80)
  10718. var xcb_ret Txcb_void_cookie_t
  10719. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10720. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10721. _ = xcb_ret
  10722. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10723. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10724. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10725. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10726. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10727. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10728. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req19)))
  10729. return xcb_ret
  10730. }
  10731. var _xcb_req19 = Txcb_protocol_request_t{
  10732. Fcount: uint64(2),
  10733. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10734. Fisvoid: uint8(1),
  10735. }
  10736. func Xxcb_map_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10737. bp := tls.Alloc(80)
  10738. defer tls.Free(80)
  10739. var xcb_ret Txcb_void_cookie_t
  10740. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10741. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10742. _ = xcb_ret
  10743. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10744. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10745. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10746. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10747. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10748. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10749. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req20)))
  10750. return xcb_ret
  10751. }
  10752. var _xcb_req20 = Txcb_protocol_request_t{
  10753. Fcount: uint64(2),
  10754. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10755. Fisvoid: uint8(1),
  10756. }
  10757. func Xxcb_map_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10758. bp := tls.Alloc(80)
  10759. defer tls.Free(80)
  10760. var xcb_ret Txcb_void_cookie_t
  10761. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10762. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10763. _ = xcb_ret
  10764. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10765. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10766. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10767. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10768. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10769. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10770. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req21)))
  10771. return xcb_ret
  10772. }
  10773. var _xcb_req21 = Txcb_protocol_request_t{
  10774. Fcount: uint64(2),
  10775. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10776. Fisvoid: uint8(1),
  10777. }
  10778. func Xxcb_unmap_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10779. bp := tls.Alloc(80)
  10780. defer tls.Free(80)
  10781. var xcb_ret Txcb_void_cookie_t
  10782. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10783. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10784. _ = xcb_ret
  10785. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10786. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10787. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10788. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10789. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10790. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10791. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req22)))
  10792. return xcb_ret
  10793. }
  10794. var _xcb_req22 = Txcb_protocol_request_t{
  10795. Fcount: uint64(2),
  10796. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10797. Fisvoid: uint8(1),
  10798. }
  10799. func Xxcb_unmap_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10800. bp := tls.Alloc(80)
  10801. defer tls.Free(80)
  10802. var xcb_ret Txcb_void_cookie_t
  10803. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10804. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10805. _ = xcb_ret
  10806. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10807. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10808. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10809. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10810. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10811. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10812. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req23)))
  10813. return xcb_ret
  10814. }
  10815. var _xcb_req23 = Txcb_protocol_request_t{
  10816. Fcount: uint64(2),
  10817. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10818. Fisvoid: uint8(1),
  10819. }
  10820. func Xxcb_unmap_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10821. bp := tls.Alloc(80)
  10822. defer tls.Free(80)
  10823. var xcb_ret Txcb_void_cookie_t
  10824. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10825. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10826. _ = xcb_ret
  10827. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10828. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10829. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10830. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10831. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10832. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10833. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req24)))
  10834. return xcb_ret
  10835. }
  10836. var _xcb_req24 = Txcb_protocol_request_t{
  10837. Fcount: uint64(2),
  10838. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10839. Fisvoid: uint8(1),
  10840. }
  10841. func Xxcb_unmap_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10842. bp := tls.Alloc(80)
  10843. defer tls.Free(80)
  10844. var xcb_ret Txcb_void_cookie_t
  10845. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10846. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10847. _ = xcb_ret
  10848. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10849. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10850. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10851. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10852. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10853. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10854. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req25)))
  10855. return xcb_ret
  10856. }
  10857. var _xcb_req25 = Txcb_protocol_request_t{
  10858. Fcount: uint64(2),
  10859. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10860. Fisvoid: uint8(1),
  10861. }
  10862. func Xxcb_configure_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10863. bp := tls.Alloc(16)
  10864. defer tls.Free(16)
  10865. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10866. var xcb_out, xcb_tmp uintptr
  10867. var xcb_parts [8]Tiovec
  10868. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10869. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10870. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10871. xcb_buffer_len = uint32(0)
  10872. xcb_align_to = uint32(0)
  10873. xcb_padding_offset = uint32(0)
  10874. xcb_pad = uint32(0)
  10875. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10876. xcb_parts_idx = uint32(0)
  10877. xcb_block_len = uint32(0)
  10878. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10879. /* xcb_configure_window_value_list_t.x */
  10880. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10881. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10882. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10883. xcb_parts_idx++
  10884. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10885. }
  10886. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10887. /* xcb_configure_window_value_list_t.y */
  10888. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10889. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10890. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10891. xcb_parts_idx++
  10892. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10893. }
  10894. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10895. /* xcb_configure_window_value_list_t.width */
  10896. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10897. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10898. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10899. xcb_parts_idx++
  10900. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10901. }
  10902. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  10903. /* xcb_configure_window_value_list_t.height */
  10904. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10905. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10906. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10907. xcb_parts_idx++
  10908. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10909. }
  10910. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  10911. /* xcb_configure_window_value_list_t.border_width */
  10912. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10913. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10914. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10915. xcb_parts_idx++
  10916. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10917. }
  10918. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  10919. /* xcb_configure_window_value_list_t.sibling */
  10920. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10921. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10922. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10923. xcb_parts_idx++
  10924. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10925. }
  10926. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  10927. /* xcb_configure_window_value_list_t.stack_mode */
  10928. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10929. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10930. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10931. xcb_parts_idx++
  10932. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10933. }
  10934. /* insert padding */
  10935. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10936. xcb_buffer_len += xcb_block_len + xcb_pad
  10937. if uint32(0) != xcb_pad {
  10938. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10939. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10940. xcb_parts_idx++
  10941. xcb_pad = uint32(0)
  10942. }
  10943. xcb_block_len = uint32(0)
  10944. xcb_padding_offset = uint32(0)
  10945. if libc.UintptrFromInt32(0) == xcb_out {
  10946. /* allocate memory */
  10947. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10948. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10949. }
  10950. xcb_tmp = xcb_out
  10951. i = uint32(0)
  10952. for {
  10953. if !(i < xcb_parts_idx) {
  10954. break
  10955. }
  10956. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10957. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10958. }
  10959. if uint64(0) != xcb_parts[i].Fiov_len {
  10960. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10961. }
  10962. goto _1
  10963. _1:
  10964. ;
  10965. i++
  10966. }
  10967. return libc.Int32FromUint32(xcb_buffer_len)
  10968. }
  10969. func Xxcb_configure_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10970. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10971. var xcb_tmp uintptr
  10972. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10973. xcb_tmp = _buffer
  10974. xcb_buffer_len = uint32(0)
  10975. xcb_block_len = uint32(0)
  10976. xcb_pad = uint32(0)
  10977. xcb_align_to = uint32(0)
  10978. xcb_padding_offset = uint32(0)
  10979. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10980. /* xcb_configure_window_value_list_t.x */
  10981. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fx = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  10982. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10983. xcb_tmp += uintptr(4)
  10984. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10985. }
  10986. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10987. /* xcb_configure_window_value_list_t.y */
  10988. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fy = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  10989. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10990. xcb_tmp += uintptr(4)
  10991. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10992. }
  10993. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10994. /* xcb_configure_window_value_list_t.width */
  10995. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fwidth = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10996. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10997. xcb_tmp += uintptr(4)
  10998. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10999. }
  11000. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  11001. /* xcb_configure_window_value_list_t.height */
  11002. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fheight = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11003. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11004. xcb_tmp += uintptr(4)
  11005. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11006. }
  11007. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  11008. /* xcb_configure_window_value_list_t.border_width */
  11009. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11010. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11011. xcb_tmp += uintptr(4)
  11012. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11013. }
  11014. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  11015. /* xcb_configure_window_value_list_t.sibling */
  11016. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fsibling = *(*Txcb_window_t)(unsafe.Pointer(xcb_tmp))
  11017. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11018. xcb_tmp += uintptr(4)
  11019. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11020. }
  11021. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  11022. /* xcb_configure_window_value_list_t.stack_mode */
  11023. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fstack_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11024. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11025. xcb_tmp += uintptr(4)
  11026. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11027. }
  11028. /* insert padding */
  11029. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  11030. xcb_buffer_len += xcb_block_len + xcb_pad
  11031. if uint32(0) != xcb_pad {
  11032. xcb_tmp += uintptr(xcb_pad)
  11033. xcb_pad = uint32(0)
  11034. }
  11035. xcb_block_len = uint32(0)
  11036. xcb_padding_offset = uint32(0)
  11037. return libc.Int32FromUint32(xcb_buffer_len)
  11038. }
  11039. func Xxcb_configure_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t) (r int32) {
  11040. bp := tls.Alloc(32)
  11041. defer tls.Free(32)
  11042. var _ /* _aux at bp+0 */ Txcb_configure_window_value_list_t
  11043. return Xxcb_configure_window_value_list_unpack(tls, _buffer, value_mask, bp)
  11044. }
  11045. func Xxcb_configure_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11046. var _aux, xcb_tmp uintptr
  11047. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11048. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11049. xcb_tmp = _buffer
  11050. _aux = _buffer
  11051. xcb_buffer_len = uint32(0)
  11052. xcb_block_len = uint32(0)
  11053. xcb_pad = uint32(0)
  11054. xcb_align_to = uint32(0)
  11055. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  11056. xcb_tmp += uintptr(xcb_block_len)
  11057. xcb_buffer_len += xcb_block_len
  11058. xcb_block_len = uint32(0)
  11059. /* value_list */
  11060. xcb_block_len += libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_configure_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  11061. xcb_tmp += uintptr(xcb_block_len)
  11062. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11063. /* insert padding */
  11064. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11065. xcb_buffer_len += xcb_block_len + xcb_pad
  11066. if uint32(0) != xcb_pad {
  11067. xcb_tmp += uintptr(xcb_pad)
  11068. xcb_pad = uint32(0)
  11069. }
  11070. xcb_block_len = uint32(0)
  11071. return libc.Int32FromUint32(xcb_buffer_len)
  11072. }
  11073. 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) {
  11074. bp := tls.Alloc(96)
  11075. defer tls.Free(96)
  11076. var xcb_ret Txcb_void_cookie_t
  11077. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11078. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11079. _ = xcb_ret
  11080. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11081. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11082. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11083. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11084. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11085. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11086. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11087. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11088. /* xcb_configure_window_value_list_t value_list */
  11089. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11090. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11091. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req26)))
  11092. return xcb_ret
  11093. }
  11094. var _xcb_req26 = Txcb_protocol_request_t{
  11095. Fcount: uint64(3),
  11096. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11097. Fisvoid: uint8(1),
  11098. }
  11099. 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) {
  11100. bp := tls.Alloc(96)
  11101. defer tls.Free(96)
  11102. var xcb_ret Txcb_void_cookie_t
  11103. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11104. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11105. _ = xcb_ret
  11106. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11107. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11108. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11109. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11110. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11111. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11112. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11113. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11114. /* xcb_configure_window_value_list_t value_list */
  11115. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11116. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11117. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req27)))
  11118. return xcb_ret
  11119. }
  11120. var _xcb_req27 = Txcb_protocol_request_t{
  11121. Fcount: uint64(3),
  11122. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11123. Fisvoid: uint8(1),
  11124. }
  11125. 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) {
  11126. bp := tls.Alloc(112)
  11127. defer tls.Free(112)
  11128. var xcb_ret Txcb_void_cookie_t
  11129. var _ /* xcb_aux0 at bp+96 */ uintptr
  11130. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11131. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11132. _ = xcb_ret
  11133. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11134. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11135. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11136. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11137. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11138. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11139. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11140. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11141. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11142. /* xcb_configure_window_value_list_t value_list */
  11143. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11144. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11145. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req28)))
  11146. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11147. return xcb_ret
  11148. }
  11149. var _xcb_req28 = Txcb_protocol_request_t{
  11150. Fcount: uint64(3),
  11151. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11152. Fisvoid: uint8(1),
  11153. }
  11154. 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) {
  11155. bp := tls.Alloc(112)
  11156. defer tls.Free(112)
  11157. var xcb_ret Txcb_void_cookie_t
  11158. var _ /* xcb_aux0 at bp+96 */ uintptr
  11159. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11160. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11161. _ = xcb_ret
  11162. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11163. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11164. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11165. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11166. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11167. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11168. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11169. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11170. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11171. /* xcb_configure_window_value_list_t value_list */
  11172. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11173. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11174. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req29)))
  11175. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11176. return xcb_ret
  11177. }
  11178. var _xcb_req29 = Txcb_protocol_request_t{
  11179. Fcount: uint64(3),
  11180. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11181. Fisvoid: uint8(1),
  11182. }
  11183. func Xxcb_configure_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  11184. return R + libc.UintptrFromInt32(1)*12
  11185. }
  11186. func Xxcb_circulate_window_checked(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11187. bp := tls.Alloc(80)
  11188. defer tls.Free(80)
  11189. var xcb_ret Txcb_void_cookie_t
  11190. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11191. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11192. _ = xcb_ret
  11193. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11194. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11195. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11196. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11197. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11199. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req30)))
  11200. return xcb_ret
  11201. }
  11202. var _xcb_req30 = Txcb_protocol_request_t{
  11203. Fcount: uint64(2),
  11204. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11205. Fisvoid: uint8(1),
  11206. }
  11207. func Xxcb_circulate_window(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11208. bp := tls.Alloc(80)
  11209. defer tls.Free(80)
  11210. var xcb_ret Txcb_void_cookie_t
  11211. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11212. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11213. _ = xcb_ret
  11214. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11215. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11216. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11217. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11220. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req31)))
  11221. return xcb_ret
  11222. }
  11223. var _xcb_req31 = Txcb_protocol_request_t{
  11224. Fcount: uint64(2),
  11225. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11226. Fisvoid: uint8(1),
  11227. }
  11228. func Xxcb_get_geometry(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11229. bp := tls.Alloc(80)
  11230. defer tls.Free(80)
  11231. var xcb_ret Txcb_get_geometry_cookie_t
  11232. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11233. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11234. _ = xcb_ret
  11235. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11236. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11241. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req32)))
  11242. return xcb_ret
  11243. }
  11244. var _xcb_req32 = Txcb_protocol_request_t{
  11245. Fcount: uint64(2),
  11246. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11247. }
  11248. func Xxcb_get_geometry_unchecked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11249. bp := tls.Alloc(80)
  11250. defer tls.Free(80)
  11251. var xcb_ret Txcb_get_geometry_cookie_t
  11252. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11253. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11254. _ = xcb_ret
  11255. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11256. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11261. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req33)))
  11262. return xcb_ret
  11263. }
  11264. var _xcb_req33 = Txcb_protocol_request_t{
  11265. Fcount: uint64(2),
  11266. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11267. }
  11268. func Xxcb_get_geometry_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_geometry_cookie_t, e uintptr) (r uintptr) {
  11269. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11270. }
  11271. func Xxcb_query_tree_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11272. var _aux, xcb_tmp uintptr
  11273. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11274. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11275. xcb_tmp = _buffer
  11276. _aux = _buffer
  11277. xcb_buffer_len = uint32(0)
  11278. xcb_block_len = uint32(0)
  11279. xcb_pad = uint32(0)
  11280. xcb_align_to = uint32(0)
  11281. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11282. xcb_tmp += uintptr(xcb_block_len)
  11283. xcb_buffer_len += xcb_block_len
  11284. xcb_block_len = uint32(0)
  11285. /* children */
  11286. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_tree_reply_t)(unsafe.Pointer(_aux)).Fchildren_len)*libc.Uint64FromInt64(4))
  11287. xcb_tmp += uintptr(xcb_block_len)
  11288. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11289. /* insert padding */
  11290. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11291. xcb_buffer_len += xcb_block_len + xcb_pad
  11292. if uint32(0) != xcb_pad {
  11293. xcb_tmp += uintptr(xcb_pad)
  11294. xcb_pad = uint32(0)
  11295. }
  11296. xcb_block_len = uint32(0)
  11297. return libc.Int32FromUint32(xcb_buffer_len)
  11298. }
  11299. func Xxcb_query_tree(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11300. bp := tls.Alloc(80)
  11301. defer tls.Free(80)
  11302. var xcb_ret Txcb_query_tree_cookie_t
  11303. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11304. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11305. _ = xcb_ret
  11306. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11307. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11308. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11309. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11312. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req34)))
  11313. return xcb_ret
  11314. }
  11315. var _xcb_req34 = Txcb_protocol_request_t{
  11316. Fcount: uint64(2),
  11317. Fopcode: uint8(m_XCB_QUERY_TREE),
  11318. }
  11319. func Xxcb_query_tree_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11320. bp := tls.Alloc(80)
  11321. defer tls.Free(80)
  11322. var xcb_ret Txcb_query_tree_cookie_t
  11323. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11324. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11325. _ = xcb_ret
  11326. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11327. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11328. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11329. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11330. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11332. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req35)))
  11333. return xcb_ret
  11334. }
  11335. var _xcb_req35 = Txcb_protocol_request_t{
  11336. Fcount: uint64(2),
  11337. Fopcode: uint8(m_XCB_QUERY_TREE),
  11338. }
  11339. func Xxcb_query_tree_children(tls *libc.TLS, R uintptr) (r uintptr) {
  11340. return R + libc.UintptrFromInt32(1)*32
  11341. }
  11342. func Xxcb_query_tree_children_length(tls *libc.TLS, R uintptr) (r int32) {
  11343. return libc.Int32FromUint16((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)
  11344. }
  11345. func Xxcb_query_tree_children_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11346. var i Txcb_generic_iterator_t
  11347. _ = i
  11348. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)*4
  11349. i.Frem = 0
  11350. i.Findex = int32(int64(i.Fdata) - int64(R))
  11351. return i
  11352. }
  11353. func Xxcb_query_tree_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_tree_cookie_t, e uintptr) (r uintptr) {
  11354. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11355. }
  11356. func Xxcb_intern_atom_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11357. var _aux, xcb_tmp uintptr
  11358. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11359. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11360. xcb_tmp = _buffer
  11361. _aux = _buffer
  11362. xcb_buffer_len = uint32(0)
  11363. xcb_block_len = uint32(0)
  11364. xcb_pad = uint32(0)
  11365. xcb_align_to = uint32(0)
  11366. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  11367. xcb_tmp += uintptr(xcb_block_len)
  11368. xcb_buffer_len += xcb_block_len
  11369. xcb_block_len = uint32(0)
  11370. /* name */
  11371. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_intern_atom_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11372. xcb_tmp += uintptr(xcb_block_len)
  11373. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11374. /* insert padding */
  11375. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11376. xcb_buffer_len += xcb_block_len + xcb_pad
  11377. if uint32(0) != xcb_pad {
  11378. xcb_tmp += uintptr(xcb_pad)
  11379. xcb_pad = uint32(0)
  11380. }
  11381. xcb_block_len = uint32(0)
  11382. return libc.Int32FromUint32(xcb_buffer_len)
  11383. }
  11384. 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) {
  11385. bp := tls.Alloc(112)
  11386. defer tls.Free(112)
  11387. var xcb_ret Txcb_intern_atom_cookie_t
  11388. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11389. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11390. _ = xcb_ret
  11391. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11392. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11393. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11394. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11395. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11396. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11397. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11398. /* char name */
  11399. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11400. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11401. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11402. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11403. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req36)))
  11404. return xcb_ret
  11405. }
  11406. var _xcb_req36 = Txcb_protocol_request_t{
  11407. Fcount: uint64(4),
  11408. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11409. }
  11410. 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) {
  11411. bp := tls.Alloc(112)
  11412. defer tls.Free(112)
  11413. var xcb_ret Txcb_intern_atom_cookie_t
  11414. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11415. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11416. _ = xcb_ret
  11417. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11418. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11419. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11420. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11421. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11422. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11423. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11424. /* char name */
  11425. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11426. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11427. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11428. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11429. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req37)))
  11430. return xcb_ret
  11431. }
  11432. var _xcb_req37 = Txcb_protocol_request_t{
  11433. Fcount: uint64(4),
  11434. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11435. }
  11436. func Xxcb_intern_atom_reply(tls *libc.TLS, c uintptr, cookie Txcb_intern_atom_cookie_t, e uintptr) (r uintptr) {
  11437. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11438. }
  11439. func Xxcb_get_atom_name_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11440. var _aux, xcb_tmp uintptr
  11441. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11442. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11443. xcb_tmp = _buffer
  11444. _aux = _buffer
  11445. xcb_buffer_len = uint32(0)
  11446. xcb_block_len = uint32(0)
  11447. xcb_pad = uint32(0)
  11448. xcb_align_to = uint32(0)
  11449. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11450. xcb_tmp += uintptr(xcb_block_len)
  11451. xcb_buffer_len += xcb_block_len
  11452. xcb_block_len = uint32(0)
  11453. /* name */
  11454. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11455. xcb_tmp += uintptr(xcb_block_len)
  11456. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11457. /* insert padding */
  11458. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11459. xcb_buffer_len += xcb_block_len + xcb_pad
  11460. if uint32(0) != xcb_pad {
  11461. xcb_tmp += uintptr(xcb_pad)
  11462. xcb_pad = uint32(0)
  11463. }
  11464. xcb_block_len = uint32(0)
  11465. return libc.Int32FromUint32(xcb_buffer_len)
  11466. }
  11467. func Xxcb_get_atom_name(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11468. bp := tls.Alloc(80)
  11469. defer tls.Free(80)
  11470. var xcb_ret Txcb_get_atom_name_cookie_t
  11471. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11472. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11473. _ = xcb_ret
  11474. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11475. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11476. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11477. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11478. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11479. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11480. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req38)))
  11481. return xcb_ret
  11482. }
  11483. var _xcb_req38 = Txcb_protocol_request_t{
  11484. Fcount: uint64(2),
  11485. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11486. }
  11487. func Xxcb_get_atom_name_unchecked(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11488. bp := tls.Alloc(80)
  11489. defer tls.Free(80)
  11490. var xcb_ret Txcb_get_atom_name_cookie_t
  11491. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11492. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11493. _ = xcb_ret
  11494. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11495. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11496. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11497. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11498. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11499. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11500. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req39)))
  11501. return xcb_ret
  11502. }
  11503. var _xcb_req39 = Txcb_protocol_request_t{
  11504. Fcount: uint64(2),
  11505. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11506. }
  11507. func Xxcb_get_atom_name_name(tls *libc.TLS, R uintptr) (r uintptr) {
  11508. return R + libc.UintptrFromInt32(1)*32
  11509. }
  11510. func Xxcb_get_atom_name_name_length(tls *libc.TLS, R uintptr) (r int32) {
  11511. return libc.Int32FromUint16((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11512. }
  11513. func Xxcb_get_atom_name_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11514. var i Txcb_generic_iterator_t
  11515. _ = i
  11516. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11517. i.Frem = 0
  11518. i.Findex = int32(int64(i.Fdata) - int64(R))
  11519. return i
  11520. }
  11521. func Xxcb_get_atom_name_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_atom_name_cookie_t, e uintptr) (r uintptr) {
  11522. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11523. }
  11524. func Xxcb_change_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11525. var _aux, xcb_tmp uintptr
  11526. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11527. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11528. xcb_tmp = _buffer
  11529. _aux = _buffer
  11530. xcb_buffer_len = uint32(0)
  11531. xcb_block_len = uint32(0)
  11532. xcb_pad = uint32(0)
  11533. xcb_align_to = uint32(0)
  11534. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  11535. xcb_tmp += uintptr(xcb_block_len)
  11536. xcb_buffer_len += xcb_block_len
  11537. xcb_block_len = uint32(0)
  11538. /* data */
  11539. 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))
  11540. xcb_tmp += uintptr(xcb_block_len)
  11541. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11542. /* insert padding */
  11543. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11544. xcb_buffer_len += xcb_block_len + xcb_pad
  11545. if uint32(0) != xcb_pad {
  11546. xcb_tmp += uintptr(xcb_pad)
  11547. xcb_pad = uint32(0)
  11548. }
  11549. xcb_block_len = uint32(0)
  11550. return libc.Int32FromUint32(xcb_buffer_len)
  11551. }
  11552. 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) {
  11553. bp := tls.Alloc(128)
  11554. defer tls.Free(128)
  11555. var xcb_ret Txcb_void_cookie_t
  11556. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11557. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11558. _ = xcb_ret
  11559. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11560. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11561. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11562. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11563. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11564. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11565. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11566. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11567. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11568. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11569. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11570. /* void data */
  11571. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11572. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11573. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11574. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11575. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req40)))
  11576. return xcb_ret
  11577. }
  11578. var _xcb_req40 = Txcb_protocol_request_t{
  11579. Fcount: uint64(4),
  11580. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11581. Fisvoid: uint8(1),
  11582. }
  11583. 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) {
  11584. bp := tls.Alloc(128)
  11585. defer tls.Free(128)
  11586. var xcb_ret Txcb_void_cookie_t
  11587. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11588. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11589. _ = xcb_ret
  11590. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11591. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11592. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11593. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11594. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11595. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11596. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11597. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11598. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11599. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11600. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11601. /* void data */
  11602. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11603. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11604. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11606. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req41)))
  11607. return xcb_ret
  11608. }
  11609. var _xcb_req41 = Txcb_protocol_request_t{
  11610. Fcount: uint64(4),
  11611. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11612. Fisvoid: uint8(1),
  11613. }
  11614. func Xxcb_change_property_data(tls *libc.TLS, R uintptr) (r uintptr) {
  11615. return R + libc.UintptrFromInt32(1)*24
  11616. }
  11617. func Xxcb_change_property_data_length(tls *libc.TLS, R uintptr) (r int32) {
  11618. 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))
  11619. }
  11620. func Xxcb_change_property_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11621. var i Txcb_generic_iterator_t
  11622. _ = i
  11623. 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))
  11624. i.Frem = 0
  11625. i.Findex = int32(int64(i.Fdata) - int64(R))
  11626. return i
  11627. }
  11628. func Xxcb_delete_property_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11629. bp := tls.Alloc(80)
  11630. defer tls.Free(80)
  11631. var xcb_ret Txcb_void_cookie_t
  11632. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11633. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11634. _ = xcb_ret
  11635. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11636. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11637. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11638. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11639. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11640. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11641. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11642. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req42)))
  11643. return xcb_ret
  11644. }
  11645. var _xcb_req42 = Txcb_protocol_request_t{
  11646. Fcount: uint64(2),
  11647. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11648. Fisvoid: uint8(1),
  11649. }
  11650. func Xxcb_delete_property(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11651. bp := tls.Alloc(80)
  11652. defer tls.Free(80)
  11653. var xcb_ret Txcb_void_cookie_t
  11654. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11655. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11656. _ = xcb_ret
  11657. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11658. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11659. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11660. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11661. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11662. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11663. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11664. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req43)))
  11665. return xcb_ret
  11666. }
  11667. var _xcb_req43 = Txcb_protocol_request_t{
  11668. Fcount: uint64(2),
  11669. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11670. Fisvoid: uint8(1),
  11671. }
  11672. func Xxcb_get_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11673. var _aux, xcb_tmp uintptr
  11674. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11675. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11676. xcb_tmp = _buffer
  11677. _aux = _buffer
  11678. xcb_buffer_len = uint32(0)
  11679. xcb_block_len = uint32(0)
  11680. xcb_pad = uint32(0)
  11681. xcb_align_to = uint32(0)
  11682. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11683. xcb_tmp += uintptr(xcb_block_len)
  11684. xcb_buffer_len += xcb_block_len
  11685. xcb_block_len = uint32(0)
  11686. /* value */
  11687. 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))
  11688. xcb_tmp += uintptr(xcb_block_len)
  11689. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11690. /* insert padding */
  11691. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11692. xcb_buffer_len += xcb_block_len + xcb_pad
  11693. if uint32(0) != xcb_pad {
  11694. xcb_tmp += uintptr(xcb_pad)
  11695. xcb_pad = uint32(0)
  11696. }
  11697. xcb_block_len = uint32(0)
  11698. return libc.Int32FromUint32(xcb_buffer_len)
  11699. }
  11700. 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) {
  11701. bp := tls.Alloc(96)
  11702. defer tls.Free(96)
  11703. var xcb_ret Txcb_get_property_cookie_t
  11704. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11705. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11706. _ = xcb_ret
  11707. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11708. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11709. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11710. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11711. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11712. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11713. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11714. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11715. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11716. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11717. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req44)))
  11718. return xcb_ret
  11719. }
  11720. var _xcb_req44 = Txcb_protocol_request_t{
  11721. Fcount: uint64(2),
  11722. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11723. }
  11724. 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) {
  11725. bp := tls.Alloc(96)
  11726. defer tls.Free(96)
  11727. var xcb_ret Txcb_get_property_cookie_t
  11728. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11729. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11730. _ = xcb_ret
  11731. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11732. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11733. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11734. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11735. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11736. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11737. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11738. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11739. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11740. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11741. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req45)))
  11742. return xcb_ret
  11743. }
  11744. var _xcb_req45 = Txcb_protocol_request_t{
  11745. Fcount: uint64(2),
  11746. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11747. }
  11748. func Xxcb_get_property_value(tls *libc.TLS, R uintptr) (r uintptr) {
  11749. return R + libc.UintptrFromInt32(1)*32
  11750. }
  11751. func Xxcb_get_property_value_length(tls *libc.TLS, R uintptr) (r int32) {
  11752. 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)))
  11753. }
  11754. func Xxcb_get_property_value_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11755. var i Txcb_generic_iterator_t
  11756. _ = i
  11757. 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)))
  11758. i.Frem = 0
  11759. i.Findex = int32(int64(i.Fdata) - int64(R))
  11760. return i
  11761. }
  11762. func Xxcb_get_property_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_property_cookie_t, e uintptr) (r uintptr) {
  11763. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11764. }
  11765. func Xxcb_list_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11766. var _aux, xcb_tmp uintptr
  11767. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11768. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11769. xcb_tmp = _buffer
  11770. _aux = _buffer
  11771. xcb_buffer_len = uint32(0)
  11772. xcb_block_len = uint32(0)
  11773. xcb_pad = uint32(0)
  11774. xcb_align_to = uint32(0)
  11775. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11776. xcb_tmp += uintptr(xcb_block_len)
  11777. xcb_buffer_len += xcb_block_len
  11778. xcb_block_len = uint32(0)
  11779. /* atoms */
  11780. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_properties_reply_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  11781. xcb_tmp += uintptr(xcb_block_len)
  11782. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11783. /* insert padding */
  11784. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11785. xcb_buffer_len += xcb_block_len + xcb_pad
  11786. if uint32(0) != xcb_pad {
  11787. xcb_tmp += uintptr(xcb_pad)
  11788. xcb_pad = uint32(0)
  11789. }
  11790. xcb_block_len = uint32(0)
  11791. return libc.Int32FromUint32(xcb_buffer_len)
  11792. }
  11793. func Xxcb_list_properties(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11794. bp := tls.Alloc(80)
  11795. defer tls.Free(80)
  11796. var xcb_ret Txcb_list_properties_cookie_t
  11797. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11798. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11799. _ = xcb_ret
  11800. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11801. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11802. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11803. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11804. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11805. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11806. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req46)))
  11807. return xcb_ret
  11808. }
  11809. var _xcb_req46 = Txcb_protocol_request_t{
  11810. Fcount: uint64(2),
  11811. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11812. }
  11813. func Xxcb_list_properties_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11814. bp := tls.Alloc(80)
  11815. defer tls.Free(80)
  11816. var xcb_ret Txcb_list_properties_cookie_t
  11817. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11818. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11819. _ = xcb_ret
  11820. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11821. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11822. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11823. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11824. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11825. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11826. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req47)))
  11827. return xcb_ret
  11828. }
  11829. var _xcb_req47 = Txcb_protocol_request_t{
  11830. Fcount: uint64(2),
  11831. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11832. }
  11833. func Xxcb_list_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  11834. return R + libc.UintptrFromInt32(1)*32
  11835. }
  11836. func Xxcb_list_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  11837. return libc.Int32FromUint16((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)
  11838. }
  11839. func Xxcb_list_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11840. var i Txcb_generic_iterator_t
  11841. _ = i
  11842. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)*4
  11843. i.Frem = 0
  11844. i.Findex = int32(int64(i.Fdata) - int64(R))
  11845. return i
  11846. }
  11847. func Xxcb_list_properties_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_properties_cookie_t, e uintptr) (r uintptr) {
  11848. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11849. }
  11850. 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) {
  11851. bp := tls.Alloc(80)
  11852. defer tls.Free(80)
  11853. var xcb_ret Txcb_void_cookie_t
  11854. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11855. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11856. _ = xcb_ret
  11857. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11858. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11859. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11860. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11861. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11862. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11863. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11865. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req48)))
  11866. return xcb_ret
  11867. }
  11868. var _xcb_req48 = Txcb_protocol_request_t{
  11869. Fcount: uint64(2),
  11870. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11871. Fisvoid: uint8(1),
  11872. }
  11873. 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) {
  11874. bp := tls.Alloc(80)
  11875. defer tls.Free(80)
  11876. var xcb_ret Txcb_void_cookie_t
  11877. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11878. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11879. _ = xcb_ret
  11880. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11881. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11882. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11883. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11884. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11886. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11887. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11888. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req49)))
  11889. return xcb_ret
  11890. }
  11891. var _xcb_req49 = Txcb_protocol_request_t{
  11892. Fcount: uint64(2),
  11893. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11894. Fisvoid: uint8(1),
  11895. }
  11896. func Xxcb_get_selection_owner(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11897. bp := tls.Alloc(80)
  11898. defer tls.Free(80)
  11899. var xcb_ret Txcb_get_selection_owner_cookie_t
  11900. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11901. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11902. _ = xcb_ret
  11903. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11904. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11905. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11906. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11907. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11909. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req50)))
  11910. return xcb_ret
  11911. }
  11912. var _xcb_req50 = Txcb_protocol_request_t{
  11913. Fcount: uint64(2),
  11914. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11915. }
  11916. func Xxcb_get_selection_owner_unchecked(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11917. bp := tls.Alloc(80)
  11918. defer tls.Free(80)
  11919. var xcb_ret Txcb_get_selection_owner_cookie_t
  11920. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11921. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11922. _ = xcb_ret
  11923. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11924. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11925. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11926. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11927. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11928. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11929. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req51)))
  11930. return xcb_ret
  11931. }
  11932. var _xcb_req51 = Txcb_protocol_request_t{
  11933. Fcount: uint64(2),
  11934. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11935. }
  11936. func Xxcb_get_selection_owner_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_selection_owner_cookie_t, e uintptr) (r uintptr) {
  11937. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11938. }
  11939. 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) {
  11940. bp := tls.Alloc(96)
  11941. defer tls.Free(96)
  11942. var xcb_ret Txcb_void_cookie_t
  11943. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  11944. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11945. _ = xcb_ret
  11946. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11947. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  11948. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11949. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  11950. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11951. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11952. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11953. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11954. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11955. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11956. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req52)))
  11957. return xcb_ret
  11958. }
  11959. var _xcb_req52 = Txcb_protocol_request_t{
  11960. Fcount: uint64(2),
  11961. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  11962. Fisvoid: uint8(1),
  11963. }
  11964. 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) {
  11965. bp := tls.Alloc(96)
  11966. defer tls.Free(96)
  11967. var xcb_ret Txcb_void_cookie_t
  11968. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  11969. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11970. _ = xcb_ret
  11971. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11972. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  11973. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11974. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  11975. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11976. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11977. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11978. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11979. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11980. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11981. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req53)))
  11982. return xcb_ret
  11983. }
  11984. var _xcb_req53 = Txcb_protocol_request_t{
  11985. Fcount: uint64(2),
  11986. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  11987. Fisvoid: uint8(1),
  11988. }
  11989. 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) {
  11990. bp := tls.Alloc(112)
  11991. defer tls.Free(112)
  11992. var xcb_ret Txcb_void_cookie_t
  11993. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  11994. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11995. _ = xcb_ret
  11996. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  11997. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  11998. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  11999. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12000. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12001. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12002. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12003. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12004. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req54)))
  12005. return xcb_ret
  12006. }
  12007. var _xcb_req54 = Txcb_protocol_request_t{
  12008. Fcount: uint64(2),
  12009. Fopcode: uint8(m_XCB_SEND_EVENT),
  12010. Fisvoid: uint8(1),
  12011. }
  12012. 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) {
  12013. bp := tls.Alloc(112)
  12014. defer tls.Free(112)
  12015. var xcb_ret Txcb_void_cookie_t
  12016. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  12017. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12018. _ = xcb_ret
  12019. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  12020. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  12021. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12022. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12023. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12024. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12025. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12026. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12027. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req55)))
  12028. return xcb_ret
  12029. }
  12030. var _xcb_req55 = Txcb_protocol_request_t{
  12031. Fcount: uint64(2),
  12032. Fopcode: uint8(m_XCB_SEND_EVENT),
  12033. Fisvoid: uint8(1),
  12034. }
  12035. 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) {
  12036. bp := tls.Alloc(96)
  12037. defer tls.Free(96)
  12038. var xcb_ret Txcb_grab_pointer_cookie_t
  12039. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12040. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12041. _ = xcb_ret
  12042. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12043. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12044. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12045. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12046. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12047. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12048. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12049. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12050. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12051. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12052. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12053. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12054. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req56)))
  12055. return xcb_ret
  12056. }
  12057. var _xcb_req56 = Txcb_protocol_request_t{
  12058. Fcount: uint64(2),
  12059. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12060. }
  12061. 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) {
  12062. bp := tls.Alloc(96)
  12063. defer tls.Free(96)
  12064. var xcb_ret Txcb_grab_pointer_cookie_t
  12065. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12066. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12067. _ = xcb_ret
  12068. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12069. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12070. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12071. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12072. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12073. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12074. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12075. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12076. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12077. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12078. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12079. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12080. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req57)))
  12081. return xcb_ret
  12082. }
  12083. var _xcb_req57 = Txcb_protocol_request_t{
  12084. Fcount: uint64(2),
  12085. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12086. }
  12087. func Xxcb_grab_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_pointer_cookie_t, e uintptr) (r uintptr) {
  12088. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12089. }
  12090. func Xxcb_ungrab_pointer_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12091. bp := tls.Alloc(80)
  12092. defer tls.Free(80)
  12093. var xcb_ret Txcb_void_cookie_t
  12094. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12095. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12096. _ = xcb_ret
  12097. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12098. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12099. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12100. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12101. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12102. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12103. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req58)))
  12104. return xcb_ret
  12105. }
  12106. var _xcb_req58 = Txcb_protocol_request_t{
  12107. Fcount: uint64(2),
  12108. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12109. Fisvoid: uint8(1),
  12110. }
  12111. func Xxcb_ungrab_pointer(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12112. bp := tls.Alloc(80)
  12113. defer tls.Free(80)
  12114. var xcb_ret Txcb_void_cookie_t
  12115. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12116. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12117. _ = xcb_ret
  12118. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12119. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12120. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12121. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12122. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12124. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req59)))
  12125. return xcb_ret
  12126. }
  12127. var _xcb_req59 = Txcb_protocol_request_t{
  12128. Fcount: uint64(2),
  12129. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12130. Fisvoid: uint8(1),
  12131. }
  12132. 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) {
  12133. bp := tls.Alloc(96)
  12134. defer tls.Free(96)
  12135. var xcb_ret Txcb_void_cookie_t
  12136. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12137. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12138. _ = xcb_ret
  12139. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12140. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12141. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12142. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12143. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12144. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12145. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12146. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12147. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12148. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12149. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12150. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12151. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12152. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12153. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req60)))
  12154. return xcb_ret
  12155. }
  12156. var _xcb_req60 = Txcb_protocol_request_t{
  12157. Fcount: uint64(2),
  12158. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12159. Fisvoid: uint8(1),
  12160. }
  12161. 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) {
  12162. bp := tls.Alloc(96)
  12163. defer tls.Free(96)
  12164. var xcb_ret Txcb_void_cookie_t
  12165. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12166. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12167. _ = xcb_ret
  12168. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12169. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12170. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12171. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12172. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12173. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12174. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12175. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12176. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12177. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12178. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12180. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12181. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12182. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req61)))
  12183. return xcb_ret
  12184. }
  12185. var _xcb_req61 = Txcb_protocol_request_t{
  12186. Fcount: uint64(2),
  12187. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12188. Fisvoid: uint8(1),
  12189. }
  12190. 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) {
  12191. bp := tls.Alloc(80)
  12192. defer tls.Free(80)
  12193. var xcb_ret Txcb_void_cookie_t
  12194. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12195. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12196. _ = xcb_ret
  12197. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12198. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12199. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12200. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12202. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12203. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12204. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12205. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req62)))
  12206. return xcb_ret
  12207. }
  12208. var _xcb_req62 = Txcb_protocol_request_t{
  12209. Fcount: uint64(2),
  12210. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12211. Fisvoid: uint8(1),
  12212. }
  12213. 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) {
  12214. bp := tls.Alloc(80)
  12215. defer tls.Free(80)
  12216. var xcb_ret Txcb_void_cookie_t
  12217. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12218. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12219. _ = xcb_ret
  12220. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12221. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12222. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12223. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12224. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12225. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12226. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12227. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12228. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req63)))
  12229. return xcb_ret
  12230. }
  12231. var _xcb_req63 = Txcb_protocol_request_t{
  12232. Fcount: uint64(2),
  12233. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12234. Fisvoid: uint8(1),
  12235. }
  12236. 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) {
  12237. bp := tls.Alloc(80)
  12238. defer tls.Free(80)
  12239. var xcb_ret Txcb_void_cookie_t
  12240. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12241. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12242. _ = xcb_ret
  12243. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12244. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12245. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12246. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12247. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12248. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12249. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12250. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12251. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12252. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req64)))
  12253. return xcb_ret
  12254. }
  12255. var _xcb_req64 = Txcb_protocol_request_t{
  12256. Fcount: uint64(2),
  12257. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12258. Fisvoid: uint8(1),
  12259. }
  12260. 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) {
  12261. bp := tls.Alloc(80)
  12262. defer tls.Free(80)
  12263. var xcb_ret Txcb_void_cookie_t
  12264. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12265. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12266. _ = xcb_ret
  12267. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12268. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12269. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12270. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12271. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12272. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12273. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12274. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12275. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12276. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req65)))
  12277. return xcb_ret
  12278. }
  12279. var _xcb_req65 = Txcb_protocol_request_t{
  12280. Fcount: uint64(2),
  12281. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12282. Fisvoid: uint8(1),
  12283. }
  12284. 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) {
  12285. bp := tls.Alloc(80)
  12286. defer tls.Free(80)
  12287. var xcb_ret Txcb_grab_keyboard_cookie_t
  12288. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12289. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12290. _ = xcb_ret
  12291. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12292. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12293. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12294. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12295. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12296. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12301. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req66)))
  12302. return xcb_ret
  12303. }
  12304. var _xcb_req66 = Txcb_protocol_request_t{
  12305. Fcount: uint64(2),
  12306. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12307. }
  12308. 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) {
  12309. bp := tls.Alloc(80)
  12310. defer tls.Free(80)
  12311. var xcb_ret Txcb_grab_keyboard_cookie_t
  12312. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12313. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12314. _ = xcb_ret
  12315. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12316. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12317. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12318. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12319. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12320. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12321. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12322. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12323. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12324. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12325. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req67)))
  12326. return xcb_ret
  12327. }
  12328. var _xcb_req67 = Txcb_protocol_request_t{
  12329. Fcount: uint64(2),
  12330. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12331. }
  12332. func Xxcb_grab_keyboard_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_keyboard_cookie_t, e uintptr) (r uintptr) {
  12333. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12334. }
  12335. func Xxcb_ungrab_keyboard_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12336. bp := tls.Alloc(80)
  12337. defer tls.Free(80)
  12338. var xcb_ret Txcb_void_cookie_t
  12339. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12340. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12341. _ = xcb_ret
  12342. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12343. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12344. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12345. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12346. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12347. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12348. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req68)))
  12349. return xcb_ret
  12350. }
  12351. var _xcb_req68 = Txcb_protocol_request_t{
  12352. Fcount: uint64(2),
  12353. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12354. Fisvoid: uint8(1),
  12355. }
  12356. func Xxcb_ungrab_keyboard(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12357. bp := tls.Alloc(80)
  12358. defer tls.Free(80)
  12359. var xcb_ret Txcb_void_cookie_t
  12360. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12361. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12362. _ = xcb_ret
  12363. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12364. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12365. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12366. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12367. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12368. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12369. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req69)))
  12370. return xcb_ret
  12371. }
  12372. var _xcb_req69 = Txcb_protocol_request_t{
  12373. Fcount: uint64(2),
  12374. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12375. Fisvoid: uint8(1),
  12376. }
  12377. 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) {
  12378. bp := tls.Alloc(80)
  12379. defer tls.Free(80)
  12380. var xcb_ret Txcb_void_cookie_t
  12381. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12382. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12383. _ = xcb_ret
  12384. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12385. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12386. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12387. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12388. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12389. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12390. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12391. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12392. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12393. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12394. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12395. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req70)))
  12396. return xcb_ret
  12397. }
  12398. var _xcb_req70 = Txcb_protocol_request_t{
  12399. Fcount: uint64(2),
  12400. Fopcode: uint8(m_XCB_GRAB_KEY),
  12401. Fisvoid: uint8(1),
  12402. }
  12403. 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) {
  12404. bp := tls.Alloc(80)
  12405. defer tls.Free(80)
  12406. var xcb_ret Txcb_void_cookie_t
  12407. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12408. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12409. _ = xcb_ret
  12410. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12411. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12412. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12413. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12414. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12415. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12416. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12417. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12418. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12419. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12420. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12421. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req71)))
  12422. return xcb_ret
  12423. }
  12424. var _xcb_req71 = Txcb_protocol_request_t{
  12425. Fcount: uint64(2),
  12426. Fopcode: uint8(m_XCB_GRAB_KEY),
  12427. Fisvoid: uint8(1),
  12428. }
  12429. 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) {
  12430. bp := tls.Alloc(80)
  12431. defer tls.Free(80)
  12432. var xcb_ret Txcb_void_cookie_t
  12433. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12434. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12435. _ = xcb_ret
  12436. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12437. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12438. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12439. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12440. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12441. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12442. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12443. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12444. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req72)))
  12445. return xcb_ret
  12446. }
  12447. var _xcb_req72 = Txcb_protocol_request_t{
  12448. Fcount: uint64(2),
  12449. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12450. Fisvoid: uint8(1),
  12451. }
  12452. 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) {
  12453. bp := tls.Alloc(80)
  12454. defer tls.Free(80)
  12455. var xcb_ret Txcb_void_cookie_t
  12456. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12457. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12458. _ = xcb_ret
  12459. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12460. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12461. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12462. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12463. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12464. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12465. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12466. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12467. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req73)))
  12468. return xcb_ret
  12469. }
  12470. var _xcb_req73 = Txcb_protocol_request_t{
  12471. Fcount: uint64(2),
  12472. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12473. Fisvoid: uint8(1),
  12474. }
  12475. func Xxcb_allow_events_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12476. bp := tls.Alloc(80)
  12477. defer tls.Free(80)
  12478. var xcb_ret Txcb_void_cookie_t
  12479. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12480. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12481. _ = xcb_ret
  12482. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12483. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12484. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12485. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12486. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12487. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12488. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req74)))
  12489. return xcb_ret
  12490. }
  12491. var _xcb_req74 = Txcb_protocol_request_t{
  12492. Fcount: uint64(2),
  12493. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12494. Fisvoid: uint8(1),
  12495. }
  12496. func Xxcb_allow_events(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12497. bp := tls.Alloc(80)
  12498. defer tls.Free(80)
  12499. var xcb_ret Txcb_void_cookie_t
  12500. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12501. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12502. _ = xcb_ret
  12503. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12504. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12505. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12506. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12507. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12508. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12509. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req75)))
  12510. return xcb_ret
  12511. }
  12512. var _xcb_req75 = Txcb_protocol_request_t{
  12513. Fcount: uint64(2),
  12514. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12515. Fisvoid: uint8(1),
  12516. }
  12517. func Xxcb_grab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12518. bp := tls.Alloc(80)
  12519. defer tls.Free(80)
  12520. var xcb_ret Txcb_void_cookie_t
  12521. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12522. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12523. _ = xcb_ret
  12524. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12525. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12526. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12527. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12528. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12529. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req76)))
  12530. return xcb_ret
  12531. }
  12532. var _xcb_req76 = Txcb_protocol_request_t{
  12533. Fcount: uint64(2),
  12534. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12535. Fisvoid: uint8(1),
  12536. }
  12537. func Xxcb_grab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12538. bp := tls.Alloc(80)
  12539. defer tls.Free(80)
  12540. var xcb_ret Txcb_void_cookie_t
  12541. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12542. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12543. _ = xcb_ret
  12544. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12545. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12546. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12547. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12548. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12549. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req77)))
  12550. return xcb_ret
  12551. }
  12552. var _xcb_req77 = Txcb_protocol_request_t{
  12553. Fcount: uint64(2),
  12554. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12555. Fisvoid: uint8(1),
  12556. }
  12557. func Xxcb_ungrab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12558. bp := tls.Alloc(80)
  12559. defer tls.Free(80)
  12560. var xcb_ret Txcb_void_cookie_t
  12561. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12562. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12563. _ = xcb_ret
  12564. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12565. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12566. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12567. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12568. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12569. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req78)))
  12570. return xcb_ret
  12571. }
  12572. var _xcb_req78 = Txcb_protocol_request_t{
  12573. Fcount: uint64(2),
  12574. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12575. Fisvoid: uint8(1),
  12576. }
  12577. func Xxcb_ungrab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12578. bp := tls.Alloc(80)
  12579. defer tls.Free(80)
  12580. var xcb_ret Txcb_void_cookie_t
  12581. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12582. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12583. _ = xcb_ret
  12584. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12585. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12586. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12587. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12588. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12589. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req79)))
  12590. return xcb_ret
  12591. }
  12592. var _xcb_req79 = Txcb_protocol_request_t{
  12593. Fcount: uint64(2),
  12594. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12595. Fisvoid: uint8(1),
  12596. }
  12597. func Xxcb_query_pointer(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12598. bp := tls.Alloc(80)
  12599. defer tls.Free(80)
  12600. var xcb_ret Txcb_query_pointer_cookie_t
  12601. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12602. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12603. _ = xcb_ret
  12604. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12605. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12606. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12607. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12608. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12609. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12610. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req80)))
  12611. return xcb_ret
  12612. }
  12613. var _xcb_req80 = Txcb_protocol_request_t{
  12614. Fcount: uint64(2),
  12615. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12616. }
  12617. func Xxcb_query_pointer_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12618. bp := tls.Alloc(80)
  12619. defer tls.Free(80)
  12620. var xcb_ret Txcb_query_pointer_cookie_t
  12621. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12622. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12623. _ = xcb_ret
  12624. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12625. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12626. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12627. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12628. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12629. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12630. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req81)))
  12631. return xcb_ret
  12632. }
  12633. var _xcb_req81 = Txcb_protocol_request_t{
  12634. Fcount: uint64(2),
  12635. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12636. }
  12637. func Xxcb_query_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_pointer_cookie_t, e uintptr) (r uintptr) {
  12638. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12639. }
  12640. func Xxcb_timecoord_next(tls *libc.TLS, i uintptr) {
  12641. var p1 uintptr
  12642. _ = p1
  12643. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Frem--
  12644. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  12645. p1 = i + 12
  12646. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  12647. }
  12648. func Xxcb_timecoord_end(tls *libc.TLS, i Txcb_timecoord_iterator_t) (r Txcb_generic_iterator_t) {
  12649. var ret Txcb_generic_iterator_t
  12650. _ = ret
  12651. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  12652. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  12653. ret.Frem = 0
  12654. return ret
  12655. }
  12656. func Xxcb_get_motion_events_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12657. var _aux, xcb_tmp uintptr
  12658. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12659. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12660. xcb_tmp = _buffer
  12661. _aux = _buffer
  12662. xcb_buffer_len = uint32(0)
  12663. xcb_block_len = uint32(0)
  12664. xcb_pad = uint32(0)
  12665. xcb_align_to = uint32(0)
  12666. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  12667. xcb_tmp += uintptr(xcb_block_len)
  12668. xcb_buffer_len += xcb_block_len
  12669. xcb_block_len = uint32(0)
  12670. /* events */
  12671. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(_aux)).Fevents_len)*libc.Uint64FromInt64(8))
  12672. xcb_tmp += uintptr(xcb_block_len)
  12673. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  12674. /* insert padding */
  12675. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12676. xcb_buffer_len += xcb_block_len + xcb_pad
  12677. if uint32(0) != xcb_pad {
  12678. xcb_tmp += uintptr(xcb_pad)
  12679. xcb_pad = uint32(0)
  12680. }
  12681. xcb_block_len = uint32(0)
  12682. return libc.Int32FromUint32(xcb_buffer_len)
  12683. }
  12684. 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) {
  12685. bp := tls.Alloc(80)
  12686. defer tls.Free(80)
  12687. var xcb_ret Txcb_get_motion_events_cookie_t
  12688. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12689. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12690. _ = xcb_ret
  12691. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12692. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12693. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12694. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12695. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12696. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12697. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12698. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12699. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req82)))
  12700. return xcb_ret
  12701. }
  12702. var _xcb_req82 = Txcb_protocol_request_t{
  12703. Fcount: uint64(2),
  12704. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12705. }
  12706. 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) {
  12707. bp := tls.Alloc(80)
  12708. defer tls.Free(80)
  12709. var xcb_ret Txcb_get_motion_events_cookie_t
  12710. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12711. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12712. _ = xcb_ret
  12713. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12714. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12715. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12716. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12717. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12718. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12719. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12720. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12721. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req83)))
  12722. return xcb_ret
  12723. }
  12724. var _xcb_req83 = Txcb_protocol_request_t{
  12725. Fcount: uint64(2),
  12726. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12727. }
  12728. func Xxcb_get_motion_events_events(tls *libc.TLS, R uintptr) (r uintptr) {
  12729. return R + libc.UintptrFromInt32(1)*32
  12730. }
  12731. func Xxcb_get_motion_events_events_length(tls *libc.TLS, R uintptr) (r int32) {
  12732. return libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12733. }
  12734. func Xxcb_get_motion_events_events_iterator(tls *libc.TLS, R uintptr) (r Txcb_timecoord_iterator_t) {
  12735. var i Txcb_timecoord_iterator_t
  12736. _ = i
  12737. i.Fdata = R + libc.UintptrFromInt32(1)*32
  12738. i.Frem = libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12739. i.Findex = int32(int64(i.Fdata) - int64(R))
  12740. return i
  12741. }
  12742. func Xxcb_get_motion_events_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_motion_events_cookie_t, e uintptr) (r uintptr) {
  12743. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12744. }
  12745. 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) {
  12746. bp := tls.Alloc(80)
  12747. defer tls.Free(80)
  12748. var xcb_ret Txcb_translate_coordinates_cookie_t
  12749. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12750. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12751. _ = xcb_ret
  12752. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12753. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12754. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12755. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12756. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12757. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12758. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12759. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12760. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12761. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req84)))
  12762. return xcb_ret
  12763. }
  12764. var _xcb_req84 = Txcb_protocol_request_t{
  12765. Fcount: uint64(2),
  12766. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12767. }
  12768. 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) {
  12769. bp := tls.Alloc(80)
  12770. defer tls.Free(80)
  12771. var xcb_ret Txcb_translate_coordinates_cookie_t
  12772. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12773. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12774. _ = xcb_ret
  12775. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12776. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12777. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12778. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12779. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12780. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12781. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12782. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12783. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12784. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req85)))
  12785. return xcb_ret
  12786. }
  12787. var _xcb_req85 = Txcb_protocol_request_t{
  12788. Fcount: uint64(2),
  12789. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12790. }
  12791. func Xxcb_translate_coordinates_reply(tls *libc.TLS, c uintptr, cookie Txcb_translate_coordinates_cookie_t, e uintptr) (r uintptr) {
  12792. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12793. }
  12794. 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) {
  12795. bp := tls.Alloc(96)
  12796. defer tls.Free(96)
  12797. var xcb_ret Txcb_void_cookie_t
  12798. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12799. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12800. _ = xcb_ret
  12801. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12802. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12803. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12804. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12805. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12806. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12807. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12808. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12809. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12810. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12811. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12812. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12813. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12814. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req86)))
  12815. return xcb_ret
  12816. }
  12817. var _xcb_req86 = Txcb_protocol_request_t{
  12818. Fcount: uint64(2),
  12819. Fopcode: uint8(m_XCB_WARP_POINTER),
  12820. Fisvoid: uint8(1),
  12821. }
  12822. 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) {
  12823. bp := tls.Alloc(96)
  12824. defer tls.Free(96)
  12825. var xcb_ret Txcb_void_cookie_t
  12826. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12827. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12828. _ = xcb_ret
  12829. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12830. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12831. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12832. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12833. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12834. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12835. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12836. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12837. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12838. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12839. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12840. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12841. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12842. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req87)))
  12843. return xcb_ret
  12844. }
  12845. var _xcb_req87 = Txcb_protocol_request_t{
  12846. Fcount: uint64(2),
  12847. Fopcode: uint8(m_XCB_WARP_POINTER),
  12848. Fisvoid: uint8(1),
  12849. }
  12850. 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) {
  12851. bp := tls.Alloc(80)
  12852. defer tls.Free(80)
  12853. var xcb_ret Txcb_void_cookie_t
  12854. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12855. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12856. _ = xcb_ret
  12857. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12858. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12859. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12860. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12861. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12862. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12863. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12864. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req88)))
  12865. return xcb_ret
  12866. }
  12867. var _xcb_req88 = Txcb_protocol_request_t{
  12868. Fcount: uint64(2),
  12869. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12870. Fisvoid: uint8(1),
  12871. }
  12872. 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) {
  12873. bp := tls.Alloc(80)
  12874. defer tls.Free(80)
  12875. var xcb_ret Txcb_void_cookie_t
  12876. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12877. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12878. _ = xcb_ret
  12879. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12880. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12881. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12882. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12883. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12884. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12886. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req89)))
  12887. return xcb_ret
  12888. }
  12889. var _xcb_req89 = Txcb_protocol_request_t{
  12890. Fcount: uint64(2),
  12891. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12892. Fisvoid: uint8(1),
  12893. }
  12894. func Xxcb_get_input_focus(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12895. bp := tls.Alloc(80)
  12896. defer tls.Free(80)
  12897. var xcb_ret Txcb_get_input_focus_cookie_t
  12898. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12899. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12900. _ = xcb_ret
  12901. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12902. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12903. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12904. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12905. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12906. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req90)))
  12907. return xcb_ret
  12908. }
  12909. var _xcb_req90 = Txcb_protocol_request_t{
  12910. Fcount: uint64(2),
  12911. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12912. }
  12913. func Xxcb_get_input_focus_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12914. bp := tls.Alloc(80)
  12915. defer tls.Free(80)
  12916. var xcb_ret Txcb_get_input_focus_cookie_t
  12917. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12918. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12919. _ = xcb_ret
  12920. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12921. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12922. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12923. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12924. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12925. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req91)))
  12926. return xcb_ret
  12927. }
  12928. var _xcb_req91 = Txcb_protocol_request_t{
  12929. Fcount: uint64(2),
  12930. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12931. }
  12932. func Xxcb_get_input_focus_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_input_focus_cookie_t, e uintptr) (r uintptr) {
  12933. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12934. }
  12935. func Xxcb_query_keymap(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  12936. bp := tls.Alloc(80)
  12937. defer tls.Free(80)
  12938. var xcb_ret Txcb_query_keymap_cookie_t
  12939. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  12940. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12941. _ = xcb_ret
  12942. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12943. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12944. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12945. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12946. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12947. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req92)))
  12948. return xcb_ret
  12949. }
  12950. var _xcb_req92 = Txcb_protocol_request_t{
  12951. Fcount: uint64(2),
  12952. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  12953. }
  12954. func Xxcb_query_keymap_unchecked(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  12955. bp := tls.Alloc(80)
  12956. defer tls.Free(80)
  12957. var xcb_ret Txcb_query_keymap_cookie_t
  12958. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  12959. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12960. _ = xcb_ret
  12961. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12962. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12966. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req93)))
  12967. return xcb_ret
  12968. }
  12969. var _xcb_req93 = Txcb_protocol_request_t{
  12970. Fcount: uint64(2),
  12971. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  12972. }
  12973. func Xxcb_query_keymap_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_keymap_cookie_t, e uintptr) (r uintptr) {
  12974. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12975. }
  12976. func Xxcb_open_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12977. var _aux, xcb_tmp uintptr
  12978. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12979. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12980. xcb_tmp = _buffer
  12981. _aux = _buffer
  12982. xcb_buffer_len = uint32(0)
  12983. xcb_block_len = uint32(0)
  12984. xcb_pad = uint32(0)
  12985. xcb_align_to = uint32(0)
  12986. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  12987. xcb_tmp += uintptr(xcb_block_len)
  12988. xcb_buffer_len += xcb_block_len
  12989. xcb_block_len = uint32(0)
  12990. /* name */
  12991. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_open_font_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  12992. xcb_tmp += uintptr(xcb_block_len)
  12993. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  12994. /* insert padding */
  12995. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12996. xcb_buffer_len += xcb_block_len + xcb_pad
  12997. if uint32(0) != xcb_pad {
  12998. xcb_tmp += uintptr(xcb_pad)
  12999. xcb_pad = uint32(0)
  13000. }
  13001. xcb_block_len = uint32(0)
  13002. return libc.Int32FromUint32(xcb_buffer_len)
  13003. }
  13004. 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) {
  13005. bp := tls.Alloc(112)
  13006. defer tls.Free(112)
  13007. var xcb_ret Txcb_void_cookie_t
  13008. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13009. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13010. _ = xcb_ret
  13011. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13012. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13013. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13014. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13015. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13016. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13017. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13018. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13019. /* char name */
  13020. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13021. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13022. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13023. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13024. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req94)))
  13025. return xcb_ret
  13026. }
  13027. var _xcb_req94 = Txcb_protocol_request_t{
  13028. Fcount: uint64(4),
  13029. Fopcode: uint8(m_XCB_OPEN_FONT),
  13030. Fisvoid: uint8(1),
  13031. }
  13032. func Xxcb_open_font(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
  13033. bp := tls.Alloc(112)
  13034. defer tls.Free(112)
  13035. var xcb_ret Txcb_void_cookie_t
  13036. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13037. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13038. _ = xcb_ret
  13039. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13040. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13041. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13042. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13043. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13044. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13045. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13046. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13047. /* char name */
  13048. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13049. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13050. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13051. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13052. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req95)))
  13053. return xcb_ret
  13054. }
  13055. var _xcb_req95 = Txcb_protocol_request_t{
  13056. Fcount: uint64(4),
  13057. Fopcode: uint8(m_XCB_OPEN_FONT),
  13058. Fisvoid: uint8(1),
  13059. }
  13060. func Xxcb_open_font_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13061. return R + libc.UintptrFromInt32(1)*12
  13062. }
  13063. func Xxcb_open_font_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13064. return libc.Int32FromUint16((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13065. }
  13066. func Xxcb_open_font_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13067. var i Txcb_generic_iterator_t
  13068. _ = i
  13069. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13070. i.Frem = 0
  13071. i.Findex = int32(int64(i.Fdata) - int64(R))
  13072. return i
  13073. }
  13074. func Xxcb_close_font_checked(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13075. bp := tls.Alloc(80)
  13076. defer tls.Free(80)
  13077. var xcb_ret Txcb_void_cookie_t
  13078. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13079. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13080. _ = xcb_ret
  13081. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13082. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13083. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13084. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13085. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13086. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13087. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req96)))
  13088. return xcb_ret
  13089. }
  13090. var _xcb_req96 = Txcb_protocol_request_t{
  13091. Fcount: uint64(2),
  13092. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13093. Fisvoid: uint8(1),
  13094. }
  13095. func Xxcb_close_font(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13096. bp := tls.Alloc(80)
  13097. defer tls.Free(80)
  13098. var xcb_ret Txcb_void_cookie_t
  13099. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13100. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13101. _ = xcb_ret
  13102. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13103. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13104. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13105. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13106. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13107. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13108. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req97)))
  13109. return xcb_ret
  13110. }
  13111. var _xcb_req97 = Txcb_protocol_request_t{
  13112. Fcount: uint64(2),
  13113. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13114. Fisvoid: uint8(1),
  13115. }
  13116. func Xxcb_fontprop_next(tls *libc.TLS, i uintptr) {
  13117. var p1 uintptr
  13118. _ = p1
  13119. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Frem--
  13120. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  13121. p1 = i + 12
  13122. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  13123. }
  13124. func Xxcb_fontprop_end(tls *libc.TLS, i Txcb_fontprop_iterator_t) (r Txcb_generic_iterator_t) {
  13125. var ret Txcb_generic_iterator_t
  13126. _ = ret
  13127. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  13128. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13129. ret.Frem = 0
  13130. return ret
  13131. }
  13132. func Xxcb_charinfo_next(tls *libc.TLS, i uintptr) {
  13133. var p1 uintptr
  13134. _ = p1
  13135. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Frem--
  13136. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  13137. p1 = i + 12
  13138. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  13139. }
  13140. func Xxcb_charinfo_end(tls *libc.TLS, i Txcb_charinfo_iterator_t) (r Txcb_generic_iterator_t) {
  13141. var ret Txcb_generic_iterator_t
  13142. _ = ret
  13143. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  13144. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13145. ret.Frem = 0
  13146. return ret
  13147. }
  13148. func Xxcb_query_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13149. var _aux, xcb_tmp uintptr
  13150. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13151. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13152. xcb_tmp = _buffer
  13153. _aux = _buffer
  13154. xcb_buffer_len = uint32(0)
  13155. xcb_block_len = uint32(0)
  13156. xcb_pad = uint32(0)
  13157. xcb_align_to = uint32(0)
  13158. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(60))
  13159. xcb_tmp += uintptr(xcb_block_len)
  13160. xcb_buffer_len += xcb_block_len
  13161. xcb_block_len = uint32(0)
  13162. /* properties */
  13163. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fproperties_len)*libc.Uint64FromInt64(8))
  13164. xcb_tmp += uintptr(xcb_block_len)
  13165. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13166. /* insert padding */
  13167. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13168. xcb_buffer_len += xcb_block_len + xcb_pad
  13169. if uint32(0) != xcb_pad {
  13170. xcb_tmp += uintptr(xcb_pad)
  13171. xcb_pad = uint32(0)
  13172. }
  13173. xcb_block_len = uint32(0)
  13174. /* char_infos */
  13175. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fchar_infos_len)*libc.Uint64FromInt64(12))
  13176. xcb_tmp += uintptr(xcb_block_len)
  13177. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  13178. /* insert padding */
  13179. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13180. xcb_buffer_len += xcb_block_len + xcb_pad
  13181. if uint32(0) != xcb_pad {
  13182. xcb_tmp += uintptr(xcb_pad)
  13183. xcb_pad = uint32(0)
  13184. }
  13185. xcb_block_len = uint32(0)
  13186. return libc.Int32FromUint32(xcb_buffer_len)
  13187. }
  13188. func Xxcb_query_font(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13189. bp := tls.Alloc(80)
  13190. defer tls.Free(80)
  13191. var xcb_ret Txcb_query_font_cookie_t
  13192. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13193. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13194. _ = xcb_ret
  13195. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13196. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13197. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13201. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req98)))
  13202. return xcb_ret
  13203. }
  13204. var _xcb_req98 = Txcb_protocol_request_t{
  13205. Fcount: uint64(2),
  13206. Fopcode: uint8(m_XCB_QUERY_FONT),
  13207. }
  13208. func Xxcb_query_font_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13209. bp := tls.Alloc(80)
  13210. defer tls.Free(80)
  13211. var xcb_ret Txcb_query_font_cookie_t
  13212. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13213. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13214. _ = xcb_ret
  13215. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13216. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13217. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13221. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req99)))
  13222. return xcb_ret
  13223. }
  13224. var _xcb_req99 = Txcb_protocol_request_t{
  13225. Fcount: uint64(2),
  13226. Fopcode: uint8(m_XCB_QUERY_FONT),
  13227. }
  13228. func Xxcb_query_font_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13229. return R + libc.UintptrFromInt32(1)*60
  13230. }
  13231. func Xxcb_query_font_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13232. return libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13233. }
  13234. func Xxcb_query_font_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13235. var i Txcb_fontprop_iterator_t
  13236. _ = i
  13237. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13238. i.Frem = libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13239. i.Findex = int32(int64(i.Fdata) - int64(R))
  13240. return i
  13241. }
  13242. func Xxcb_query_font_char_infos(tls *libc.TLS, R uintptr) (r uintptr) {
  13243. var prev Txcb_generic_iterator_t
  13244. _ = prev
  13245. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13246. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3)) + libc.UintptrFromInt32(0)
  13247. }
  13248. func Xxcb_query_font_char_infos_length(tls *libc.TLS, R uintptr) (r int32) {
  13249. return libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13250. }
  13251. func Xxcb_query_font_char_infos_iterator(tls *libc.TLS, R uintptr) (r Txcb_charinfo_iterator_t) {
  13252. var i Txcb_charinfo_iterator_t
  13253. var prev Txcb_generic_iterator_t
  13254. _, _ = i, prev
  13255. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13256. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  13257. i.Frem = libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13258. i.Findex = int32(int64(i.Fdata) - int64(R))
  13259. return i
  13260. }
  13261. func Xxcb_query_font_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_font_cookie_t, e uintptr) (r uintptr) {
  13262. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13263. }
  13264. func Xxcb_query_text_extents_sizeof(tls *libc.TLS, _buffer uintptr, string_len Tuint32_t) (r int32) {
  13265. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13266. var xcb_tmp uintptr
  13267. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13268. xcb_tmp = _buffer
  13269. xcb_buffer_len = uint32(0)
  13270. xcb_block_len = uint32(0)
  13271. xcb_pad = uint32(0)
  13272. xcb_align_to = uint32(0)
  13273. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13274. xcb_tmp += uintptr(xcb_block_len)
  13275. xcb_buffer_len += xcb_block_len
  13276. xcb_block_len = uint32(0)
  13277. /* string */
  13278. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(string_len)*libc.Uint64FromInt64(2))
  13279. xcb_tmp += uintptr(xcb_block_len)
  13280. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13281. /* insert padding */
  13282. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13283. xcb_buffer_len += xcb_block_len + xcb_pad
  13284. if uint32(0) != xcb_pad {
  13285. xcb_tmp += uintptr(xcb_pad)
  13286. xcb_pad = uint32(0)
  13287. }
  13288. xcb_block_len = uint32(0)
  13289. return libc.Int32FromUint32(xcb_buffer_len)
  13290. }
  13291. 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) {
  13292. bp := tls.Alloc(112)
  13293. defer tls.Free(112)
  13294. var xcb_ret Txcb_query_text_extents_cookie_t
  13295. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13296. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13297. _ = xcb_ret
  13298. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13299. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13300. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13301. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13302. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13303. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13304. /* xcb_char2b_t string */
  13305. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13306. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13307. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13309. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req100)))
  13310. return xcb_ret
  13311. }
  13312. var _xcb_req100 = Txcb_protocol_request_t{
  13313. Fcount: uint64(4),
  13314. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13315. }
  13316. 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) {
  13317. bp := tls.Alloc(112)
  13318. defer tls.Free(112)
  13319. var xcb_ret Txcb_query_text_extents_cookie_t
  13320. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13321. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13322. _ = xcb_ret
  13323. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13324. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13325. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13326. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13327. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13328. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13329. /* xcb_char2b_t string */
  13330. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13331. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13332. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13333. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13334. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req101)))
  13335. return xcb_ret
  13336. }
  13337. var _xcb_req101 = Txcb_protocol_request_t{
  13338. Fcount: uint64(4),
  13339. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13340. }
  13341. func Xxcb_query_text_extents_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_text_extents_cookie_t, e uintptr) (r uintptr) {
  13342. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13343. }
  13344. func Xxcb_str_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13345. var _aux, xcb_tmp uintptr
  13346. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13347. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13348. xcb_tmp = _buffer
  13349. _aux = _buffer
  13350. xcb_buffer_len = uint32(0)
  13351. xcb_block_len = uint32(0)
  13352. xcb_pad = uint32(0)
  13353. xcb_align_to = uint32(0)
  13354. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(1))
  13355. xcb_tmp += uintptr(xcb_block_len)
  13356. xcb_buffer_len += xcb_block_len
  13357. xcb_block_len = uint32(0)
  13358. /* name */
  13359. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_str_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  13360. xcb_tmp += uintptr(xcb_block_len)
  13361. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13362. /* insert padding */
  13363. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13364. xcb_buffer_len += xcb_block_len + xcb_pad
  13365. if uint32(0) != xcb_pad {
  13366. xcb_tmp += uintptr(xcb_pad)
  13367. xcb_pad = uint32(0)
  13368. }
  13369. xcb_block_len = uint32(0)
  13370. return libc.Int32FromUint32(xcb_buffer_len)
  13371. }
  13372. func Xxcb_str_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13373. return R + libc.UintptrFromInt32(1)
  13374. }
  13375. func Xxcb_str_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13376. return libc.Int32FromUint8((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13377. }
  13378. func Xxcb_str_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13379. var i Txcb_generic_iterator_t
  13380. _ = i
  13381. i.Fdata = R + libc.UintptrFromInt32(1) + uintptr((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13382. i.Frem = 0
  13383. i.Findex = int32(int64(i.Fdata) - int64(R))
  13384. return i
  13385. }
  13386. func Xxcb_str_next(tls *libc.TLS, i uintptr) {
  13387. var R uintptr
  13388. var child Txcb_generic_iterator_t
  13389. _, _ = R, child
  13390. R = (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata
  13391. child.Fdata = R + uintptr(Xxcb_str_sizeof(tls, R))
  13392. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata))
  13393. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Frem--
  13394. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  13395. }
  13396. func Xxcb_str_end(tls *libc.TLS, _i Txcb_str_iterator_t) (r Txcb_generic_iterator_t) {
  13397. bp := tls.Alloc(16)
  13398. defer tls.Free(16)
  13399. *(*Txcb_str_iterator_t)(unsafe.Pointer(bp)) = _i
  13400. var ret Txcb_generic_iterator_t
  13401. _ = ret
  13402. for (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  13403. Xxcb_str_next(tls, bp)
  13404. }
  13405. ret.Fdata = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Fdata
  13406. ret.Frem = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem
  13407. ret.Findex = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Findex
  13408. return ret
  13409. }
  13410. func Xxcb_list_fonts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13411. var _aux, xcb_tmp uintptr
  13412. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13413. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13414. xcb_tmp = _buffer
  13415. _aux = _buffer
  13416. xcb_buffer_len = uint32(0)
  13417. xcb_block_len = uint32(0)
  13418. xcb_pad = uint32(0)
  13419. xcb_align_to = uint32(0)
  13420. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13421. xcb_tmp += uintptr(xcb_block_len)
  13422. xcb_buffer_len += xcb_block_len
  13423. xcb_block_len = uint32(0)
  13424. /* pattern */
  13425. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13426. xcb_tmp += uintptr(xcb_block_len)
  13427. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13428. /* insert padding */
  13429. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13430. xcb_buffer_len += xcb_block_len + xcb_pad
  13431. if uint32(0) != xcb_pad {
  13432. xcb_tmp += uintptr(xcb_pad)
  13433. xcb_pad = uint32(0)
  13434. }
  13435. xcb_block_len = uint32(0)
  13436. return libc.Int32FromUint32(xcb_buffer_len)
  13437. }
  13438. 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) {
  13439. bp := tls.Alloc(112)
  13440. defer tls.Free(112)
  13441. var xcb_ret Txcb_list_fonts_cookie_t
  13442. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13443. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13444. _ = xcb_ret
  13445. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13446. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13447. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13448. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13449. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13450. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13451. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13452. /* char pattern */
  13453. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13454. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13455. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13456. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13457. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req102)))
  13458. return xcb_ret
  13459. }
  13460. var _xcb_req102 = Txcb_protocol_request_t{
  13461. Fcount: uint64(4),
  13462. Fopcode: uint8(m_XCB_LIST_FONTS),
  13463. }
  13464. 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) {
  13465. bp := tls.Alloc(112)
  13466. defer tls.Free(112)
  13467. var xcb_ret Txcb_list_fonts_cookie_t
  13468. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13469. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13470. _ = xcb_ret
  13471. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13472. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13473. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13474. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13475. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13476. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13477. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13478. /* char pattern */
  13479. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13480. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13481. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13482. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13483. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req103)))
  13484. return xcb_ret
  13485. }
  13486. var _xcb_req103 = Txcb_protocol_request_t{
  13487. Fcount: uint64(4),
  13488. Fopcode: uint8(m_XCB_LIST_FONTS),
  13489. }
  13490. func Xxcb_list_fonts_names_length(tls *libc.TLS, R uintptr) (r int32) {
  13491. return libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13492. }
  13493. func Xxcb_list_fonts_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13494. var i Txcb_str_iterator_t
  13495. _ = i
  13496. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13497. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13498. i.Findex = int32(int64(i.Fdata) - int64(R))
  13499. return i
  13500. }
  13501. func Xxcb_list_fonts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_cookie_t, e uintptr) (r uintptr) {
  13502. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13503. }
  13504. func Xxcb_list_fonts_with_info_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13505. var _aux, xcb_tmp uintptr
  13506. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13507. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13508. xcb_tmp = _buffer
  13509. _aux = _buffer
  13510. xcb_buffer_len = uint32(0)
  13511. xcb_block_len = uint32(0)
  13512. xcb_pad = uint32(0)
  13513. xcb_align_to = uint32(0)
  13514. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13515. xcb_tmp += uintptr(xcb_block_len)
  13516. xcb_buffer_len += xcb_block_len
  13517. xcb_block_len = uint32(0)
  13518. /* pattern */
  13519. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13520. xcb_tmp += uintptr(xcb_block_len)
  13521. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13522. /* insert padding */
  13523. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13524. xcb_buffer_len += xcb_block_len + xcb_pad
  13525. if uint32(0) != xcb_pad {
  13526. xcb_tmp += uintptr(xcb_pad)
  13527. xcb_pad = uint32(0)
  13528. }
  13529. xcb_block_len = uint32(0)
  13530. return libc.Int32FromUint32(xcb_buffer_len)
  13531. }
  13532. 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) {
  13533. bp := tls.Alloc(112)
  13534. defer tls.Free(112)
  13535. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13536. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13537. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13538. _ = xcb_ret
  13539. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13540. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13541. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13542. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13543. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13544. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13545. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13546. /* char pattern */
  13547. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13548. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13549. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13550. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13551. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req104)))
  13552. return xcb_ret
  13553. }
  13554. var _xcb_req104 = Txcb_protocol_request_t{
  13555. Fcount: uint64(4),
  13556. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13557. }
  13558. 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) {
  13559. bp := tls.Alloc(112)
  13560. defer tls.Free(112)
  13561. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13562. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13563. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13564. _ = xcb_ret
  13565. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13566. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13567. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13568. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13569. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13570. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13571. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13572. /* char pattern */
  13573. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13574. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13575. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13576. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13577. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req105)))
  13578. return xcb_ret
  13579. }
  13580. var _xcb_req105 = Txcb_protocol_request_t{
  13581. Fcount: uint64(4),
  13582. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13583. }
  13584. func Xxcb_list_fonts_with_info_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13585. return R + libc.UintptrFromInt32(1)*60
  13586. }
  13587. func Xxcb_list_fonts_with_info_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13588. return libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13589. }
  13590. func Xxcb_list_fonts_with_info_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13591. var i Txcb_fontprop_iterator_t
  13592. _ = i
  13593. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13594. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13595. i.Findex = int32(int64(i.Fdata) - int64(R))
  13596. return i
  13597. }
  13598. func Xxcb_list_fonts_with_info_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13599. var prev Txcb_generic_iterator_t
  13600. _ = prev
  13601. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13602. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  13603. }
  13604. func Xxcb_list_fonts_with_info_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13605. return libc.Int32FromUint8((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13606. }
  13607. func Xxcb_list_fonts_with_info_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13608. var i, prev Txcb_generic_iterator_t
  13609. _, _ = i, prev
  13610. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13611. 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)
  13612. i.Frem = 0
  13613. i.Findex = int32(int64(i.Fdata) - int64(R))
  13614. return i
  13615. }
  13616. func Xxcb_list_fonts_with_info_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_with_info_cookie_t, e uintptr) (r uintptr) {
  13617. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13618. }
  13619. func Xxcb_set_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13620. var _aux, xcb_tmp uintptr
  13621. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13622. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13623. xcb_tmp = _buffer
  13624. _aux = _buffer
  13625. xcb_buffer_len = uint32(0)
  13626. xcb_block_len = uint32(0)
  13627. xcb_pad = uint32(0)
  13628. xcb_align_to = uint32(0)
  13629. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13630. xcb_tmp += uintptr(xcb_block_len)
  13631. xcb_buffer_len += xcb_block_len
  13632. xcb_block_len = uint32(0)
  13633. /* font */
  13634. i = uint32(0)
  13635. for {
  13636. if !(i < uint32((*Txcb_set_font_path_request_t)(unsafe.Pointer(_aux)).Ffont_qty)) {
  13637. break
  13638. }
  13639. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13640. xcb_block_len += xcb_tmp_len
  13641. xcb_tmp += uintptr(xcb_tmp_len)
  13642. goto _1
  13643. _1:
  13644. ;
  13645. i++
  13646. }
  13647. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13648. /* insert padding */
  13649. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13650. xcb_buffer_len += xcb_block_len + xcb_pad
  13651. if uint32(0) != xcb_pad {
  13652. xcb_tmp += uintptr(xcb_pad)
  13653. xcb_pad = uint32(0)
  13654. }
  13655. xcb_block_len = uint32(0)
  13656. return libc.Int32FromUint32(xcb_buffer_len)
  13657. }
  13658. func Xxcb_set_font_path_checked(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13659. bp := tls.Alloc(112)
  13660. defer tls.Free(112)
  13661. var i, xcb_tmp_len uint32
  13662. var xcb_ret Txcb_void_cookie_t
  13663. var xcb_tmp uintptr
  13664. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13665. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13666. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13667. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13668. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13669. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13670. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13671. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13672. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13673. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13674. /* xcb_str_t font */
  13675. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13676. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13677. xcb_tmp = font
  13678. i = uint32(0)
  13679. for {
  13680. if !(i < uint32(font_qty)) {
  13681. break
  13682. }
  13683. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13684. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13685. xcb_tmp += uintptr(xcb_tmp_len)
  13686. goto _1
  13687. _1:
  13688. ;
  13689. i++
  13690. }
  13691. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13692. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13693. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req106)))
  13694. return xcb_ret
  13695. }
  13696. var _xcb_req106 = Txcb_protocol_request_t{
  13697. Fcount: uint64(4),
  13698. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13699. Fisvoid: uint8(1),
  13700. }
  13701. func Xxcb_set_font_path(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13702. bp := tls.Alloc(112)
  13703. defer tls.Free(112)
  13704. var i, xcb_tmp_len uint32
  13705. var xcb_ret Txcb_void_cookie_t
  13706. var xcb_tmp uintptr
  13707. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13708. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13709. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13710. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13711. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13712. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13713. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13714. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13715. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13716. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13717. /* xcb_str_t font */
  13718. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13719. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13720. xcb_tmp = font
  13721. i = uint32(0)
  13722. for {
  13723. if !(i < uint32(font_qty)) {
  13724. break
  13725. }
  13726. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13727. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13728. xcb_tmp += uintptr(xcb_tmp_len)
  13729. goto _1
  13730. _1:
  13731. ;
  13732. i++
  13733. }
  13734. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13735. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13736. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req107)))
  13737. return xcb_ret
  13738. }
  13739. var _xcb_req107 = Txcb_protocol_request_t{
  13740. Fcount: uint64(4),
  13741. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13742. Fisvoid: uint8(1),
  13743. }
  13744. func Xxcb_set_font_path_font_length(tls *libc.TLS, R uintptr) (r int32) {
  13745. return libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13746. }
  13747. func Xxcb_set_font_path_font_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13748. var i Txcb_str_iterator_t
  13749. _ = i
  13750. i.Fdata = R + libc.UintptrFromInt32(1)*8
  13751. i.Frem = libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13752. i.Findex = int32(int64(i.Fdata) - int64(R))
  13753. return i
  13754. }
  13755. func Xxcb_get_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13756. var _aux, xcb_tmp uintptr
  13757. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13758. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13759. xcb_tmp = _buffer
  13760. _aux = _buffer
  13761. xcb_buffer_len = uint32(0)
  13762. xcb_block_len = uint32(0)
  13763. xcb_pad = uint32(0)
  13764. xcb_align_to = uint32(0)
  13765. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  13766. xcb_tmp += uintptr(xcb_block_len)
  13767. xcb_buffer_len += xcb_block_len
  13768. xcb_block_len = uint32(0)
  13769. /* path */
  13770. i = uint32(0)
  13771. for {
  13772. if !(i < uint32((*Txcb_get_font_path_reply_t)(unsafe.Pointer(_aux)).Fpath_len)) {
  13773. break
  13774. }
  13775. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13776. xcb_block_len += xcb_tmp_len
  13777. xcb_tmp += uintptr(xcb_tmp_len)
  13778. goto _1
  13779. _1:
  13780. ;
  13781. i++
  13782. }
  13783. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13784. /* insert padding */
  13785. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13786. xcb_buffer_len += xcb_block_len + xcb_pad
  13787. if uint32(0) != xcb_pad {
  13788. xcb_tmp += uintptr(xcb_pad)
  13789. xcb_pad = uint32(0)
  13790. }
  13791. xcb_block_len = uint32(0)
  13792. return libc.Int32FromUint32(xcb_buffer_len)
  13793. }
  13794. func Xxcb_get_font_path(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13795. bp := tls.Alloc(80)
  13796. defer tls.Free(80)
  13797. var xcb_ret Txcb_get_font_path_cookie_t
  13798. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13799. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13800. _ = xcb_ret
  13801. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13802. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13803. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13804. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13805. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13806. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req108)))
  13807. return xcb_ret
  13808. }
  13809. var _xcb_req108 = Txcb_protocol_request_t{
  13810. Fcount: uint64(2),
  13811. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13812. }
  13813. func Xxcb_get_font_path_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13814. bp := tls.Alloc(80)
  13815. defer tls.Free(80)
  13816. var xcb_ret Txcb_get_font_path_cookie_t
  13817. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13818. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13819. _ = xcb_ret
  13820. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13821. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13822. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13823. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13824. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13825. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req109)))
  13826. return xcb_ret
  13827. }
  13828. var _xcb_req109 = Txcb_protocol_request_t{
  13829. Fcount: uint64(2),
  13830. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13831. }
  13832. func Xxcb_get_font_path_path_length(tls *libc.TLS, R uintptr) (r int32) {
  13833. return libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13834. }
  13835. func Xxcb_get_font_path_path_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13836. var i Txcb_str_iterator_t
  13837. _ = i
  13838. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13839. i.Frem = libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13840. i.Findex = int32(int64(i.Fdata) - int64(R))
  13841. return i
  13842. }
  13843. func Xxcb_get_font_path_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_font_path_cookie_t, e uintptr) (r uintptr) {
  13844. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13845. }
  13846. 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) {
  13847. bp := tls.Alloc(80)
  13848. defer tls.Free(80)
  13849. var xcb_ret Txcb_void_cookie_t
  13850. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13851. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13852. _ = xcb_ret
  13853. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13854. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13855. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13856. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13857. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13858. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13859. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13860. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13861. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13862. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req110)))
  13863. return xcb_ret
  13864. }
  13865. var _xcb_req110 = Txcb_protocol_request_t{
  13866. Fcount: uint64(2),
  13867. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13868. Fisvoid: uint8(1),
  13869. }
  13870. 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) {
  13871. bp := tls.Alloc(80)
  13872. defer tls.Free(80)
  13873. var xcb_ret Txcb_void_cookie_t
  13874. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13875. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13876. _ = xcb_ret
  13877. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13878. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13879. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13880. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13881. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13882. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13883. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13884. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13886. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req111)))
  13887. return xcb_ret
  13888. }
  13889. var _xcb_req111 = Txcb_protocol_request_t{
  13890. Fcount: uint64(2),
  13891. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13892. Fisvoid: uint8(1),
  13893. }
  13894. func Xxcb_free_pixmap_checked(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13895. bp := tls.Alloc(80)
  13896. defer tls.Free(80)
  13897. var xcb_ret Txcb_void_cookie_t
  13898. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13899. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13900. _ = xcb_ret
  13901. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13902. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13903. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13904. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13905. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13906. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13907. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req112)))
  13908. return xcb_ret
  13909. }
  13910. var _xcb_req112 = Txcb_protocol_request_t{
  13911. Fcount: uint64(2),
  13912. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13913. Fisvoid: uint8(1),
  13914. }
  13915. func Xxcb_free_pixmap(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13916. bp := tls.Alloc(80)
  13917. defer tls.Free(80)
  13918. var xcb_ret Txcb_void_cookie_t
  13919. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13920. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13921. _ = xcb_ret
  13922. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13923. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13924. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13925. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13926. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13927. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13928. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req113)))
  13929. return xcb_ret
  13930. }
  13931. var _xcb_req113 = Txcb_protocol_request_t{
  13932. Fcount: uint64(2),
  13933. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13934. Fisvoid: uint8(1),
  13935. }
  13936. func Xxcb_create_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  13937. bp := tls.Alloc(16)
  13938. defer tls.Free(16)
  13939. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  13940. var xcb_out, xcb_tmp uintptr
  13941. var xcb_parts [24]Tiovec
  13942. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  13943. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  13944. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  13945. xcb_buffer_len = uint32(0)
  13946. xcb_align_to = uint32(0)
  13947. xcb_padding_offset = uint32(0)
  13948. xcb_pad = uint32(0)
  13949. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  13950. xcb_parts_idx = uint32(0)
  13951. xcb_block_len = uint32(0)
  13952. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  13953. /* xcb_create_gc_value_list_t.function */
  13954. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  13955. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13956. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13957. xcb_parts_idx++
  13958. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13959. }
  13960. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  13961. /* xcb_create_gc_value_list_t.plane_mask */
  13962. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  13963. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13964. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13965. xcb_parts_idx++
  13966. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13967. }
  13968. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  13969. /* xcb_create_gc_value_list_t.foreground */
  13970. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  13971. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13972. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13973. xcb_parts_idx++
  13974. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13975. }
  13976. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  13977. /* xcb_create_gc_value_list_t.background */
  13978. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  13979. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13980. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13981. xcb_parts_idx++
  13982. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13983. }
  13984. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  13985. /* xcb_create_gc_value_list_t.line_width */
  13986. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  13987. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13988. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13989. xcb_parts_idx++
  13990. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13991. }
  13992. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  13993. /* xcb_create_gc_value_list_t.line_style */
  13994. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  13995. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13996. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13997. xcb_parts_idx++
  13998. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13999. }
  14000. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14001. /* xcb_create_gc_value_list_t.cap_style */
  14002. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14003. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14004. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14005. xcb_parts_idx++
  14006. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14007. }
  14008. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14009. /* xcb_create_gc_value_list_t.join_style */
  14010. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14011. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14012. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14013. xcb_parts_idx++
  14014. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14015. }
  14016. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14017. /* xcb_create_gc_value_list_t.fill_style */
  14018. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14019. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14020. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14021. xcb_parts_idx++
  14022. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14023. }
  14024. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14025. /* xcb_create_gc_value_list_t.fill_rule */
  14026. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14027. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14028. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14029. xcb_parts_idx++
  14030. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14031. }
  14032. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14033. /* xcb_create_gc_value_list_t.tile */
  14034. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14035. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14036. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14037. xcb_parts_idx++
  14038. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14039. }
  14040. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14041. /* xcb_create_gc_value_list_t.stipple */
  14042. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14043. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14044. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14045. xcb_parts_idx++
  14046. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14047. }
  14048. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14049. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14050. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14051. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14052. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14053. xcb_parts_idx++
  14054. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14055. }
  14056. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14057. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14058. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14059. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14060. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14061. xcb_parts_idx++
  14062. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14063. }
  14064. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14065. /* xcb_create_gc_value_list_t.font */
  14066. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14067. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14068. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14069. xcb_parts_idx++
  14070. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14071. }
  14072. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14073. /* xcb_create_gc_value_list_t.subwindow_mode */
  14074. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14075. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14076. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14077. xcb_parts_idx++
  14078. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14079. }
  14080. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14081. /* xcb_create_gc_value_list_t.graphics_exposures */
  14082. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14083. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14084. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14085. xcb_parts_idx++
  14086. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14087. }
  14088. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14089. /* xcb_create_gc_value_list_t.clip_x_origin */
  14090. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14091. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14092. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14093. xcb_parts_idx++
  14094. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14095. }
  14096. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14097. /* xcb_create_gc_value_list_t.clip_y_origin */
  14098. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14099. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14100. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14101. xcb_parts_idx++
  14102. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14103. }
  14104. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14105. /* xcb_create_gc_value_list_t.clip_mask */
  14106. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14107. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14108. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14109. xcb_parts_idx++
  14110. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14111. }
  14112. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14113. /* xcb_create_gc_value_list_t.dash_offset */
  14114. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14115. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14116. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14117. xcb_parts_idx++
  14118. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14119. }
  14120. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14121. /* xcb_create_gc_value_list_t.dashes */
  14122. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14123. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14124. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14125. xcb_parts_idx++
  14126. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14127. }
  14128. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14129. /* xcb_create_gc_value_list_t.arc_mode */
  14130. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14131. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14132. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14133. xcb_parts_idx++
  14134. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14135. }
  14136. /* insert padding */
  14137. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14138. xcb_buffer_len += xcb_block_len + xcb_pad
  14139. if uint32(0) != xcb_pad {
  14140. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14141. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14142. xcb_parts_idx++
  14143. xcb_pad = uint32(0)
  14144. }
  14145. xcb_block_len = uint32(0)
  14146. xcb_padding_offset = uint32(0)
  14147. if libc.UintptrFromInt32(0) == xcb_out {
  14148. /* allocate memory */
  14149. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14150. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14151. }
  14152. xcb_tmp = xcb_out
  14153. i = uint32(0)
  14154. for {
  14155. if !(i < xcb_parts_idx) {
  14156. break
  14157. }
  14158. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14159. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14160. }
  14161. if uint64(0) != xcb_parts[i].Fiov_len {
  14162. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14163. }
  14164. goto _1
  14165. _1:
  14166. ;
  14167. i++
  14168. }
  14169. return libc.Int32FromUint32(xcb_buffer_len)
  14170. }
  14171. func Xxcb_create_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14172. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14173. var xcb_tmp uintptr
  14174. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14175. xcb_tmp = _buffer
  14176. xcb_buffer_len = uint32(0)
  14177. xcb_block_len = uint32(0)
  14178. xcb_pad = uint32(0)
  14179. xcb_align_to = uint32(0)
  14180. xcb_padding_offset = uint32(0)
  14181. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14182. /* xcb_create_gc_value_list_t.function */
  14183. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14184. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14185. xcb_tmp += uintptr(4)
  14186. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14187. }
  14188. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14189. /* xcb_create_gc_value_list_t.plane_mask */
  14190. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14191. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14192. xcb_tmp += uintptr(4)
  14193. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14194. }
  14195. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14196. /* xcb_create_gc_value_list_t.foreground */
  14197. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14198. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14199. xcb_tmp += uintptr(4)
  14200. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14201. }
  14202. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14203. /* xcb_create_gc_value_list_t.background */
  14204. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14205. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14206. xcb_tmp += uintptr(4)
  14207. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14208. }
  14209. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14210. /* xcb_create_gc_value_list_t.line_width */
  14211. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14212. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14213. xcb_tmp += uintptr(4)
  14214. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14215. }
  14216. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14217. /* xcb_create_gc_value_list_t.line_style */
  14218. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14219. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14220. xcb_tmp += uintptr(4)
  14221. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14222. }
  14223. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14224. /* xcb_create_gc_value_list_t.cap_style */
  14225. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14226. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14227. xcb_tmp += uintptr(4)
  14228. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14229. }
  14230. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14231. /* xcb_create_gc_value_list_t.join_style */
  14232. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14233. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14234. xcb_tmp += uintptr(4)
  14235. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14236. }
  14237. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14238. /* xcb_create_gc_value_list_t.fill_style */
  14239. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14240. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14241. xcb_tmp += uintptr(4)
  14242. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14243. }
  14244. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14245. /* xcb_create_gc_value_list_t.fill_rule */
  14246. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14247. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14248. xcb_tmp += uintptr(4)
  14249. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14250. }
  14251. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14252. /* xcb_create_gc_value_list_t.tile */
  14253. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14254. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14255. xcb_tmp += uintptr(4)
  14256. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14257. }
  14258. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14259. /* xcb_create_gc_value_list_t.stipple */
  14260. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14261. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14262. xcb_tmp += uintptr(4)
  14263. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14264. }
  14265. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14266. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14267. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14268. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14269. xcb_tmp += uintptr(4)
  14270. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14271. }
  14272. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14273. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14274. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14275. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14276. xcb_tmp += uintptr(4)
  14277. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14278. }
  14279. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14280. /* xcb_create_gc_value_list_t.font */
  14281. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14282. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14283. xcb_tmp += uintptr(4)
  14284. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14285. }
  14286. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14287. /* xcb_create_gc_value_list_t.subwindow_mode */
  14288. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14289. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14290. xcb_tmp += uintptr(4)
  14291. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14292. }
  14293. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14294. /* xcb_create_gc_value_list_t.graphics_exposures */
  14295. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14296. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14297. xcb_tmp += uintptr(4)
  14298. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14299. }
  14300. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14301. /* xcb_create_gc_value_list_t.clip_x_origin */
  14302. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14303. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14304. xcb_tmp += uintptr(4)
  14305. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14306. }
  14307. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14308. /* xcb_create_gc_value_list_t.clip_y_origin */
  14309. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14310. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14311. xcb_tmp += uintptr(4)
  14312. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14313. }
  14314. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14315. /* xcb_create_gc_value_list_t.clip_mask */
  14316. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14317. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14318. xcb_tmp += uintptr(4)
  14319. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14320. }
  14321. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14322. /* xcb_create_gc_value_list_t.dash_offset */
  14323. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14324. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14325. xcb_tmp += uintptr(4)
  14326. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14327. }
  14328. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14329. /* xcb_create_gc_value_list_t.dashes */
  14330. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14331. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14332. xcb_tmp += uintptr(4)
  14333. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14334. }
  14335. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14336. /* xcb_create_gc_value_list_t.arc_mode */
  14337. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14338. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14339. xcb_tmp += uintptr(4)
  14340. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14341. }
  14342. /* insert padding */
  14343. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14344. xcb_buffer_len += xcb_block_len + xcb_pad
  14345. if uint32(0) != xcb_pad {
  14346. xcb_tmp += uintptr(xcb_pad)
  14347. xcb_pad = uint32(0)
  14348. }
  14349. xcb_block_len = uint32(0)
  14350. xcb_padding_offset = uint32(0)
  14351. return libc.Int32FromUint32(xcb_buffer_len)
  14352. }
  14353. func Xxcb_create_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14354. bp := tls.Alloc(96)
  14355. defer tls.Free(96)
  14356. var _ /* _aux at bp+0 */ Txcb_create_gc_value_list_t
  14357. return Xxcb_create_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14358. }
  14359. func Xxcb_create_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14360. var _aux, xcb_tmp uintptr
  14361. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14362. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14363. xcb_tmp = _buffer
  14364. _aux = _buffer
  14365. xcb_buffer_len = uint32(0)
  14366. xcb_block_len = uint32(0)
  14367. xcb_pad = uint32(0)
  14368. xcb_align_to = uint32(0)
  14369. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  14370. xcb_tmp += uintptr(xcb_block_len)
  14371. xcb_buffer_len += xcb_block_len
  14372. xcb_block_len = uint32(0)
  14373. /* value_list */
  14374. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14375. xcb_tmp += uintptr(xcb_block_len)
  14376. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14377. /* insert padding */
  14378. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14379. xcb_buffer_len += xcb_block_len + xcb_pad
  14380. if uint32(0) != xcb_pad {
  14381. xcb_tmp += uintptr(xcb_pad)
  14382. xcb_pad = uint32(0)
  14383. }
  14384. xcb_block_len = uint32(0)
  14385. return libc.Int32FromUint32(xcb_buffer_len)
  14386. }
  14387. 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) {
  14388. bp := tls.Alloc(96)
  14389. defer tls.Free(96)
  14390. var xcb_ret Txcb_void_cookie_t
  14391. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14392. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14393. _ = xcb_ret
  14394. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14395. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14396. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14397. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14398. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14399. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14400. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14401. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14402. /* xcb_create_gc_value_list_t value_list */
  14403. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14404. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14405. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req114)))
  14406. return xcb_ret
  14407. }
  14408. var _xcb_req114 = Txcb_protocol_request_t{
  14409. Fcount: uint64(3),
  14410. Fopcode: uint8(m_XCB_CREATE_GC),
  14411. Fisvoid: uint8(1),
  14412. }
  14413. 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) {
  14414. bp := tls.Alloc(96)
  14415. defer tls.Free(96)
  14416. var xcb_ret Txcb_void_cookie_t
  14417. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14418. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14419. _ = xcb_ret
  14420. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14421. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14422. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14423. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14424. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14425. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14426. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14427. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14428. /* xcb_create_gc_value_list_t value_list */
  14429. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14430. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14431. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req115)))
  14432. return xcb_ret
  14433. }
  14434. var _xcb_req115 = Txcb_protocol_request_t{
  14435. Fcount: uint64(3),
  14436. Fopcode: uint8(m_XCB_CREATE_GC),
  14437. Fisvoid: uint8(1),
  14438. }
  14439. 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) {
  14440. bp := tls.Alloc(112)
  14441. defer tls.Free(112)
  14442. var xcb_ret Txcb_void_cookie_t
  14443. var _ /* xcb_aux0 at bp+96 */ uintptr
  14444. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14445. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14446. _ = xcb_ret
  14447. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14448. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14449. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14450. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14451. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14452. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14453. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14454. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14455. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14456. /* xcb_create_gc_value_list_t value_list */
  14457. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14458. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14459. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req116)))
  14460. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14461. return xcb_ret
  14462. }
  14463. var _xcb_req116 = Txcb_protocol_request_t{
  14464. Fcount: uint64(3),
  14465. Fopcode: uint8(m_XCB_CREATE_GC),
  14466. Fisvoid: uint8(1),
  14467. }
  14468. 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) {
  14469. bp := tls.Alloc(112)
  14470. defer tls.Free(112)
  14471. var xcb_ret Txcb_void_cookie_t
  14472. var _ /* xcb_aux0 at bp+96 */ uintptr
  14473. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14474. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14475. _ = xcb_ret
  14476. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14477. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14478. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14479. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14480. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14481. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14482. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14483. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14484. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14485. /* xcb_create_gc_value_list_t value_list */
  14486. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14487. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14488. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req117)))
  14489. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14490. return xcb_ret
  14491. }
  14492. var _xcb_req117 = Txcb_protocol_request_t{
  14493. Fcount: uint64(3),
  14494. Fopcode: uint8(m_XCB_CREATE_GC),
  14495. Fisvoid: uint8(1),
  14496. }
  14497. func Xxcb_create_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  14498. return R + libc.UintptrFromInt32(1)*16
  14499. }
  14500. func Xxcb_change_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14501. bp := tls.Alloc(16)
  14502. defer tls.Free(16)
  14503. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14504. var xcb_out, xcb_tmp uintptr
  14505. var xcb_parts [24]Tiovec
  14506. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  14507. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14508. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14509. xcb_buffer_len = uint32(0)
  14510. xcb_align_to = uint32(0)
  14511. xcb_padding_offset = uint32(0)
  14512. xcb_pad = uint32(0)
  14513. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  14514. xcb_parts_idx = uint32(0)
  14515. xcb_block_len = uint32(0)
  14516. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14517. /* xcb_change_gc_value_list_t.function */
  14518. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14519. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14520. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14521. xcb_parts_idx++
  14522. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14523. }
  14524. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14525. /* xcb_change_gc_value_list_t.plane_mask */
  14526. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14527. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14528. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14529. xcb_parts_idx++
  14530. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14531. }
  14532. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14533. /* xcb_change_gc_value_list_t.foreground */
  14534. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14535. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14536. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14537. xcb_parts_idx++
  14538. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14539. }
  14540. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14541. /* xcb_change_gc_value_list_t.background */
  14542. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14543. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14544. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14545. xcb_parts_idx++
  14546. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14547. }
  14548. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14549. /* xcb_change_gc_value_list_t.line_width */
  14550. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14551. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14552. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14553. xcb_parts_idx++
  14554. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14555. }
  14556. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14557. /* xcb_change_gc_value_list_t.line_style */
  14558. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14559. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14560. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14561. xcb_parts_idx++
  14562. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14563. }
  14564. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14565. /* xcb_change_gc_value_list_t.cap_style */
  14566. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14567. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14568. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14569. xcb_parts_idx++
  14570. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14571. }
  14572. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14573. /* xcb_change_gc_value_list_t.join_style */
  14574. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14575. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14576. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14577. xcb_parts_idx++
  14578. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14579. }
  14580. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14581. /* xcb_change_gc_value_list_t.fill_style */
  14582. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14583. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14584. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14585. xcb_parts_idx++
  14586. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14587. }
  14588. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14589. /* xcb_change_gc_value_list_t.fill_rule */
  14590. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14591. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14592. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14593. xcb_parts_idx++
  14594. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14595. }
  14596. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14597. /* xcb_change_gc_value_list_t.tile */
  14598. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14599. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14600. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14601. xcb_parts_idx++
  14602. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14603. }
  14604. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14605. /* xcb_change_gc_value_list_t.stipple */
  14606. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14607. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14608. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14609. xcb_parts_idx++
  14610. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14611. }
  14612. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14613. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14614. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14615. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14616. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14617. xcb_parts_idx++
  14618. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14619. }
  14620. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14621. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14622. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14623. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14624. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14625. xcb_parts_idx++
  14626. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14627. }
  14628. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14629. /* xcb_change_gc_value_list_t.font */
  14630. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14631. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14632. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14633. xcb_parts_idx++
  14634. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14635. }
  14636. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14637. /* xcb_change_gc_value_list_t.subwindow_mode */
  14638. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14639. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14640. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14641. xcb_parts_idx++
  14642. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14643. }
  14644. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14645. /* xcb_change_gc_value_list_t.graphics_exposures */
  14646. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14647. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14648. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14649. xcb_parts_idx++
  14650. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14651. }
  14652. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14653. /* xcb_change_gc_value_list_t.clip_x_origin */
  14654. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14655. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14656. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14657. xcb_parts_idx++
  14658. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14659. }
  14660. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14661. /* xcb_change_gc_value_list_t.clip_y_origin */
  14662. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14663. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14664. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14665. xcb_parts_idx++
  14666. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14667. }
  14668. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14669. /* xcb_change_gc_value_list_t.clip_mask */
  14670. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14671. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14672. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14673. xcb_parts_idx++
  14674. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14675. }
  14676. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14677. /* xcb_change_gc_value_list_t.dash_offset */
  14678. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14679. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14680. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14681. xcb_parts_idx++
  14682. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14683. }
  14684. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14685. /* xcb_change_gc_value_list_t.dashes */
  14686. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14687. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14688. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14689. xcb_parts_idx++
  14690. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14691. }
  14692. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14693. /* xcb_change_gc_value_list_t.arc_mode */
  14694. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14695. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14696. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14697. xcb_parts_idx++
  14698. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14699. }
  14700. /* insert padding */
  14701. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14702. xcb_buffer_len += xcb_block_len + xcb_pad
  14703. if uint32(0) != xcb_pad {
  14704. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14705. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14706. xcb_parts_idx++
  14707. xcb_pad = uint32(0)
  14708. }
  14709. xcb_block_len = uint32(0)
  14710. xcb_padding_offset = uint32(0)
  14711. if libc.UintptrFromInt32(0) == xcb_out {
  14712. /* allocate memory */
  14713. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14714. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14715. }
  14716. xcb_tmp = xcb_out
  14717. i = uint32(0)
  14718. for {
  14719. if !(i < xcb_parts_idx) {
  14720. break
  14721. }
  14722. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14723. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14724. }
  14725. if uint64(0) != xcb_parts[i].Fiov_len {
  14726. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14727. }
  14728. goto _1
  14729. _1:
  14730. ;
  14731. i++
  14732. }
  14733. return libc.Int32FromUint32(xcb_buffer_len)
  14734. }
  14735. func Xxcb_change_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14736. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14737. var xcb_tmp uintptr
  14738. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14739. xcb_tmp = _buffer
  14740. xcb_buffer_len = uint32(0)
  14741. xcb_block_len = uint32(0)
  14742. xcb_pad = uint32(0)
  14743. xcb_align_to = uint32(0)
  14744. xcb_padding_offset = uint32(0)
  14745. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14746. /* xcb_change_gc_value_list_t.function */
  14747. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14748. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14749. xcb_tmp += uintptr(4)
  14750. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14751. }
  14752. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14753. /* xcb_change_gc_value_list_t.plane_mask */
  14754. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14755. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14756. xcb_tmp += uintptr(4)
  14757. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14758. }
  14759. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14760. /* xcb_change_gc_value_list_t.foreground */
  14761. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14762. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14763. xcb_tmp += uintptr(4)
  14764. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14765. }
  14766. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14767. /* xcb_change_gc_value_list_t.background */
  14768. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14769. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14770. xcb_tmp += uintptr(4)
  14771. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14772. }
  14773. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14774. /* xcb_change_gc_value_list_t.line_width */
  14775. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14776. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14777. xcb_tmp += uintptr(4)
  14778. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14779. }
  14780. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14781. /* xcb_change_gc_value_list_t.line_style */
  14782. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14783. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14784. xcb_tmp += uintptr(4)
  14785. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14786. }
  14787. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14788. /* xcb_change_gc_value_list_t.cap_style */
  14789. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14790. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14791. xcb_tmp += uintptr(4)
  14792. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14793. }
  14794. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14795. /* xcb_change_gc_value_list_t.join_style */
  14796. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14797. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14798. xcb_tmp += uintptr(4)
  14799. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14800. }
  14801. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14802. /* xcb_change_gc_value_list_t.fill_style */
  14803. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14804. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14805. xcb_tmp += uintptr(4)
  14806. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14807. }
  14808. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14809. /* xcb_change_gc_value_list_t.fill_rule */
  14810. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14811. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14812. xcb_tmp += uintptr(4)
  14813. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14814. }
  14815. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14816. /* xcb_change_gc_value_list_t.tile */
  14817. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14818. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14819. xcb_tmp += uintptr(4)
  14820. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14821. }
  14822. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14823. /* xcb_change_gc_value_list_t.stipple */
  14824. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14825. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14826. xcb_tmp += uintptr(4)
  14827. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14828. }
  14829. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14830. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14831. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14832. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14833. xcb_tmp += uintptr(4)
  14834. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14835. }
  14836. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14837. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14838. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14839. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14840. xcb_tmp += uintptr(4)
  14841. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14842. }
  14843. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14844. /* xcb_change_gc_value_list_t.font */
  14845. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14846. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14847. xcb_tmp += uintptr(4)
  14848. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14849. }
  14850. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14851. /* xcb_change_gc_value_list_t.subwindow_mode */
  14852. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14853. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14854. xcb_tmp += uintptr(4)
  14855. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14856. }
  14857. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14858. /* xcb_change_gc_value_list_t.graphics_exposures */
  14859. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14860. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14861. xcb_tmp += uintptr(4)
  14862. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14863. }
  14864. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14865. /* xcb_change_gc_value_list_t.clip_x_origin */
  14866. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14867. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14868. xcb_tmp += uintptr(4)
  14869. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14870. }
  14871. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14872. /* xcb_change_gc_value_list_t.clip_y_origin */
  14873. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14874. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14875. xcb_tmp += uintptr(4)
  14876. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14877. }
  14878. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14879. /* xcb_change_gc_value_list_t.clip_mask */
  14880. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14881. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14882. xcb_tmp += uintptr(4)
  14883. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14884. }
  14885. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14886. /* xcb_change_gc_value_list_t.dash_offset */
  14887. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14888. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14889. xcb_tmp += uintptr(4)
  14890. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14891. }
  14892. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14893. /* xcb_change_gc_value_list_t.dashes */
  14894. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14895. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14896. xcb_tmp += uintptr(4)
  14897. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14898. }
  14899. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14900. /* xcb_change_gc_value_list_t.arc_mode */
  14901. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14902. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14903. xcb_tmp += uintptr(4)
  14904. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14905. }
  14906. /* insert padding */
  14907. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14908. xcb_buffer_len += xcb_block_len + xcb_pad
  14909. if uint32(0) != xcb_pad {
  14910. xcb_tmp += uintptr(xcb_pad)
  14911. xcb_pad = uint32(0)
  14912. }
  14913. xcb_block_len = uint32(0)
  14914. xcb_padding_offset = uint32(0)
  14915. return libc.Int32FromUint32(xcb_buffer_len)
  14916. }
  14917. func Xxcb_change_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14918. bp := tls.Alloc(96)
  14919. defer tls.Free(96)
  14920. var _ /* _aux at bp+0 */ Txcb_change_gc_value_list_t
  14921. return Xxcb_change_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14922. }
  14923. func Xxcb_change_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14924. var _aux, xcb_tmp uintptr
  14925. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14926. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14927. xcb_tmp = _buffer
  14928. _aux = _buffer
  14929. xcb_buffer_len = uint32(0)
  14930. xcb_block_len = uint32(0)
  14931. xcb_pad = uint32(0)
  14932. xcb_align_to = uint32(0)
  14933. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  14934. xcb_tmp += uintptr(xcb_block_len)
  14935. xcb_buffer_len += xcb_block_len
  14936. xcb_block_len = uint32(0)
  14937. /* value_list */
  14938. xcb_block_len += libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14939. xcb_tmp += uintptr(xcb_block_len)
  14940. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14941. /* insert padding */
  14942. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14943. xcb_buffer_len += xcb_block_len + xcb_pad
  14944. if uint32(0) != xcb_pad {
  14945. xcb_tmp += uintptr(xcb_pad)
  14946. xcb_pad = uint32(0)
  14947. }
  14948. xcb_block_len = uint32(0)
  14949. return libc.Int32FromUint32(xcb_buffer_len)
  14950. }
  14951. 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) {
  14952. bp := tls.Alloc(96)
  14953. defer tls.Free(96)
  14954. var xcb_ret Txcb_void_cookie_t
  14955. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14956. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14957. _ = xcb_ret
  14958. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14959. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14960. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14961. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14962. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14963. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14964. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14965. /* xcb_change_gc_value_list_t value_list */
  14966. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14967. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  14968. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req118)))
  14969. return xcb_ret
  14970. }
  14971. var _xcb_req118 = Txcb_protocol_request_t{
  14972. Fcount: uint64(3),
  14973. Fopcode: uint8(m_XCB_CHANGE_GC),
  14974. Fisvoid: uint8(1),
  14975. }
  14976. 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) {
  14977. bp := tls.Alloc(96)
  14978. defer tls.Free(96)
  14979. var xcb_ret Txcb_void_cookie_t
  14980. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14981. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14982. _ = xcb_ret
  14983. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14984. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14985. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14986. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14987. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14988. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14989. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14990. /* xcb_change_gc_value_list_t value_list */
  14991. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14992. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  14993. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req119)))
  14994. return xcb_ret
  14995. }
  14996. var _xcb_req119 = Txcb_protocol_request_t{
  14997. Fcount: uint64(3),
  14998. Fopcode: uint8(m_XCB_CHANGE_GC),
  14999. Fisvoid: uint8(1),
  15000. }
  15001. 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) {
  15002. bp := tls.Alloc(112)
  15003. defer tls.Free(112)
  15004. var xcb_ret Txcb_void_cookie_t
  15005. var _ /* xcb_aux0 at bp+96 */ uintptr
  15006. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15007. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15008. _ = xcb_ret
  15009. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15010. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15011. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15012. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15013. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15014. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15015. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15016. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15017. /* xcb_change_gc_value_list_t value_list */
  15018. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15019. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15020. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req120)))
  15021. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15022. return xcb_ret
  15023. }
  15024. var _xcb_req120 = Txcb_protocol_request_t{
  15025. Fcount: uint64(3),
  15026. Fopcode: uint8(m_XCB_CHANGE_GC),
  15027. Fisvoid: uint8(1),
  15028. }
  15029. 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) {
  15030. bp := tls.Alloc(112)
  15031. defer tls.Free(112)
  15032. var xcb_ret Txcb_void_cookie_t
  15033. var _ /* xcb_aux0 at bp+96 */ uintptr
  15034. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15035. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15036. _ = xcb_ret
  15037. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15038. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15039. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15040. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15041. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15042. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15043. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15044. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15045. /* xcb_change_gc_value_list_t value_list */
  15046. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15047. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15048. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req121)))
  15049. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15050. return xcb_ret
  15051. }
  15052. var _xcb_req121 = Txcb_protocol_request_t{
  15053. Fcount: uint64(3),
  15054. Fopcode: uint8(m_XCB_CHANGE_GC),
  15055. Fisvoid: uint8(1),
  15056. }
  15057. func Xxcb_change_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  15058. return R + libc.UintptrFromInt32(1)*12
  15059. }
  15060. 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) {
  15061. bp := tls.Alloc(80)
  15062. defer tls.Free(80)
  15063. var xcb_ret Txcb_void_cookie_t
  15064. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15065. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15066. _ = xcb_ret
  15067. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15068. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15069. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15070. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15071. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15073. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15074. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15075. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req122)))
  15076. return xcb_ret
  15077. }
  15078. var _xcb_req122 = Txcb_protocol_request_t{
  15079. Fcount: uint64(2),
  15080. Fopcode: uint8(m_XCB_COPY_GC),
  15081. Fisvoid: uint8(1),
  15082. }
  15083. 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) {
  15084. bp := tls.Alloc(80)
  15085. defer tls.Free(80)
  15086. var xcb_ret Txcb_void_cookie_t
  15087. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15088. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15089. _ = xcb_ret
  15090. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15091. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15092. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15093. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15094. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15095. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15096. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15097. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15098. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req123)))
  15099. return xcb_ret
  15100. }
  15101. var _xcb_req123 = Txcb_protocol_request_t{
  15102. Fcount: uint64(2),
  15103. Fopcode: uint8(m_XCB_COPY_GC),
  15104. Fisvoid: uint8(1),
  15105. }
  15106. func Xxcb_set_dashes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15107. var _aux, xcb_tmp uintptr
  15108. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15109. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15110. xcb_tmp = _buffer
  15111. _aux = _buffer
  15112. xcb_buffer_len = uint32(0)
  15113. xcb_block_len = uint32(0)
  15114. xcb_pad = uint32(0)
  15115. xcb_align_to = uint32(0)
  15116. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15117. xcb_tmp += uintptr(xcb_block_len)
  15118. xcb_buffer_len += xcb_block_len
  15119. xcb_block_len = uint32(0)
  15120. /* dashes */
  15121. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_dashes_request_t)(unsafe.Pointer(_aux)).Fdashes_len)*libc.Uint64FromInt64(1))
  15122. xcb_tmp += uintptr(xcb_block_len)
  15123. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  15124. /* insert padding */
  15125. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15126. xcb_buffer_len += xcb_block_len + xcb_pad
  15127. if uint32(0) != xcb_pad {
  15128. xcb_tmp += uintptr(xcb_pad)
  15129. xcb_pad = uint32(0)
  15130. }
  15131. xcb_block_len = uint32(0)
  15132. return libc.Int32FromUint32(xcb_buffer_len)
  15133. }
  15134. 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) {
  15135. bp := tls.Alloc(112)
  15136. defer tls.Free(112)
  15137. var xcb_ret Txcb_void_cookie_t
  15138. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15139. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15140. _ = xcb_ret
  15141. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15142. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15143. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15144. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15145. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15146. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15147. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15148. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15149. /* uint8_t dashes */
  15150. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15151. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15152. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15153. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15154. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req124)))
  15155. return xcb_ret
  15156. }
  15157. var _xcb_req124 = Txcb_protocol_request_t{
  15158. Fcount: uint64(4),
  15159. Fopcode: uint8(m_XCB_SET_DASHES),
  15160. Fisvoid: uint8(1),
  15161. }
  15162. 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) {
  15163. bp := tls.Alloc(112)
  15164. defer tls.Free(112)
  15165. var xcb_ret Txcb_void_cookie_t
  15166. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15167. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15168. _ = xcb_ret
  15169. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15170. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15171. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15172. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15173. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15174. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15175. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15176. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15177. /* uint8_t dashes */
  15178. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15179. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15180. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15181. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15182. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req125)))
  15183. return xcb_ret
  15184. }
  15185. var _xcb_req125 = Txcb_protocol_request_t{
  15186. Fcount: uint64(4),
  15187. Fopcode: uint8(m_XCB_SET_DASHES),
  15188. Fisvoid: uint8(1),
  15189. }
  15190. func Xxcb_set_dashes_dashes(tls *libc.TLS, R uintptr) (r uintptr) {
  15191. return R + libc.UintptrFromInt32(1)*12
  15192. }
  15193. func Xxcb_set_dashes_dashes_length(tls *libc.TLS, R uintptr) (r int32) {
  15194. return libc.Int32FromUint16((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15195. }
  15196. func Xxcb_set_dashes_dashes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  15197. var i Txcb_generic_iterator_t
  15198. _ = i
  15199. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15200. i.Frem = 0
  15201. i.Findex = int32(int64(i.Fdata) - int64(R))
  15202. return i
  15203. }
  15204. func Xxcb_set_clip_rectangles_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15205. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15206. var xcb_tmp uintptr
  15207. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15208. xcb_tmp = _buffer
  15209. xcb_buffer_len = uint32(0)
  15210. xcb_block_len = uint32(0)
  15211. xcb_pad = uint32(0)
  15212. xcb_align_to = uint32(0)
  15213. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15214. xcb_tmp += uintptr(xcb_block_len)
  15215. xcb_buffer_len += xcb_block_len
  15216. xcb_block_len = uint32(0)
  15217. /* rectangles */
  15218. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15219. xcb_tmp += uintptr(xcb_block_len)
  15220. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15221. /* insert padding */
  15222. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15223. xcb_buffer_len += xcb_block_len + xcb_pad
  15224. if uint32(0) != xcb_pad {
  15225. xcb_tmp += uintptr(xcb_pad)
  15226. xcb_pad = uint32(0)
  15227. }
  15228. xcb_block_len = uint32(0)
  15229. return libc.Int32FromUint32(xcb_buffer_len)
  15230. }
  15231. 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) {
  15232. bp := tls.Alloc(112)
  15233. defer tls.Free(112)
  15234. var xcb_ret Txcb_void_cookie_t
  15235. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15236. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15237. _ = xcb_ret
  15238. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15239. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15240. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15241. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15242. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15243. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15244. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15245. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15246. /* xcb_rectangle_t rectangles */
  15247. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15248. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15249. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15250. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15251. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req126)))
  15252. return xcb_ret
  15253. }
  15254. var _xcb_req126 = Txcb_protocol_request_t{
  15255. Fcount: uint64(4),
  15256. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15257. Fisvoid: uint8(1),
  15258. }
  15259. 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) {
  15260. bp := tls.Alloc(112)
  15261. defer tls.Free(112)
  15262. var xcb_ret Txcb_void_cookie_t
  15263. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15264. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15265. _ = xcb_ret
  15266. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15267. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15268. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15269. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15270. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15271. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15272. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15273. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15274. /* xcb_rectangle_t rectangles */
  15275. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15276. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15277. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15278. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15279. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req127)))
  15280. return xcb_ret
  15281. }
  15282. var _xcb_req127 = Txcb_protocol_request_t{
  15283. Fcount: uint64(4),
  15284. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15285. Fisvoid: uint8(1),
  15286. }
  15287. func Xxcb_set_clip_rectangles_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15288. return R + libc.UintptrFromInt32(1)*12
  15289. }
  15290. func Xxcb_set_clip_rectangles_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15291. 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))
  15292. }
  15293. func Xxcb_set_clip_rectangles_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15294. var i Txcb_rectangle_iterator_t
  15295. _ = i
  15296. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15297. 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))
  15298. i.Findex = int32(int64(i.Fdata) - int64(R))
  15299. return i
  15300. }
  15301. func Xxcb_free_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15302. bp := tls.Alloc(80)
  15303. defer tls.Free(80)
  15304. var xcb_ret Txcb_void_cookie_t
  15305. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15306. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15307. _ = xcb_ret
  15308. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15309. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15313. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15314. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req128)))
  15315. return xcb_ret
  15316. }
  15317. var _xcb_req128 = Txcb_protocol_request_t{
  15318. Fcount: uint64(2),
  15319. Fopcode: uint8(m_XCB_FREE_GC),
  15320. Fisvoid: uint8(1),
  15321. }
  15322. func Xxcb_free_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15323. bp := tls.Alloc(80)
  15324. defer tls.Free(80)
  15325. var xcb_ret Txcb_void_cookie_t
  15326. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15327. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15328. _ = xcb_ret
  15329. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15330. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15332. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15333. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15334. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15335. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req129)))
  15336. return xcb_ret
  15337. }
  15338. var _xcb_req129 = Txcb_protocol_request_t{
  15339. Fcount: uint64(2),
  15340. Fopcode: uint8(m_XCB_FREE_GC),
  15341. Fisvoid: uint8(1),
  15342. }
  15343. 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) {
  15344. bp := tls.Alloc(80)
  15345. defer tls.Free(80)
  15346. var xcb_ret Txcb_void_cookie_t
  15347. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15348. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15349. _ = xcb_ret
  15350. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15351. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15352. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15353. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15354. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15355. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15356. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15357. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15360. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req130)))
  15361. return xcb_ret
  15362. }
  15363. var _xcb_req130 = Txcb_protocol_request_t{
  15364. Fcount: uint64(2),
  15365. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15366. Fisvoid: uint8(1),
  15367. }
  15368. 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) {
  15369. bp := tls.Alloc(80)
  15370. defer tls.Free(80)
  15371. var xcb_ret Txcb_void_cookie_t
  15372. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15373. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15374. _ = xcb_ret
  15375. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15376. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15377. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15378. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15379. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15380. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15381. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15382. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15383. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15384. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15385. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req131)))
  15386. return xcb_ret
  15387. }
  15388. var _xcb_req131 = Txcb_protocol_request_t{
  15389. Fcount: uint64(2),
  15390. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15391. Fisvoid: uint8(1),
  15392. }
  15393. 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) {
  15394. bp := tls.Alloc(96)
  15395. defer tls.Free(96)
  15396. var xcb_ret Txcb_void_cookie_t
  15397. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15398. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15399. _ = xcb_ret
  15400. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15401. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15402. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15403. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15404. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15405. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15406. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15407. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15408. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15409. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15411. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15412. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15413. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15414. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req132)))
  15415. return xcb_ret
  15416. }
  15417. var _xcb_req132 = Txcb_protocol_request_t{
  15418. Fcount: uint64(2),
  15419. Fopcode: uint8(m_XCB_COPY_AREA),
  15420. Fisvoid: uint8(1),
  15421. }
  15422. 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) {
  15423. bp := tls.Alloc(96)
  15424. defer tls.Free(96)
  15425. var xcb_ret Txcb_void_cookie_t
  15426. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15427. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15428. _ = xcb_ret
  15429. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15430. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15431. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15432. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15433. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15434. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15435. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15436. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15437. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15438. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15439. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15440. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15441. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15442. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15443. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req133)))
  15444. return xcb_ret
  15445. }
  15446. var _xcb_req133 = Txcb_protocol_request_t{
  15447. Fcount: uint64(2),
  15448. Fopcode: uint8(m_XCB_COPY_AREA),
  15449. Fisvoid: uint8(1),
  15450. }
  15451. 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) {
  15452. bp := tls.Alloc(96)
  15453. defer tls.Free(96)
  15454. var xcb_ret Txcb_void_cookie_t
  15455. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15456. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15457. _ = xcb_ret
  15458. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15459. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15460. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15461. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15462. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15463. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15464. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15465. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15466. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15467. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15468. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15469. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15470. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15471. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15473. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req134)))
  15474. return xcb_ret
  15475. }
  15476. var _xcb_req134 = Txcb_protocol_request_t{
  15477. Fcount: uint64(2),
  15478. Fopcode: uint8(m_XCB_COPY_PLANE),
  15479. Fisvoid: uint8(1),
  15480. }
  15481. 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) {
  15482. bp := tls.Alloc(96)
  15483. defer tls.Free(96)
  15484. var xcb_ret Txcb_void_cookie_t
  15485. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15486. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15487. _ = xcb_ret
  15488. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15489. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15490. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15491. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15492. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15493. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15494. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15495. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15496. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15497. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15498. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15499. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15500. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15501. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15503. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req135)))
  15504. return xcb_ret
  15505. }
  15506. var _xcb_req135 = Txcb_protocol_request_t{
  15507. Fcount: uint64(2),
  15508. Fopcode: uint8(m_XCB_COPY_PLANE),
  15509. Fisvoid: uint8(1),
  15510. }
  15511. func Xxcb_poly_point_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15512. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15513. var xcb_tmp uintptr
  15514. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15515. xcb_tmp = _buffer
  15516. xcb_buffer_len = uint32(0)
  15517. xcb_block_len = uint32(0)
  15518. xcb_pad = uint32(0)
  15519. xcb_align_to = uint32(0)
  15520. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15521. xcb_tmp += uintptr(xcb_block_len)
  15522. xcb_buffer_len += xcb_block_len
  15523. xcb_block_len = uint32(0)
  15524. /* points */
  15525. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15526. xcb_tmp += uintptr(xcb_block_len)
  15527. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15528. /* insert padding */
  15529. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15530. xcb_buffer_len += xcb_block_len + xcb_pad
  15531. if uint32(0) != xcb_pad {
  15532. xcb_tmp += uintptr(xcb_pad)
  15533. xcb_pad = uint32(0)
  15534. }
  15535. xcb_block_len = uint32(0)
  15536. return libc.Int32FromUint32(xcb_buffer_len)
  15537. }
  15538. 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) {
  15539. bp := tls.Alloc(112)
  15540. defer tls.Free(112)
  15541. var xcb_ret Txcb_void_cookie_t
  15542. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15543. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15544. _ = xcb_ret
  15545. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15546. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15547. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15548. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15549. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15550. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15551. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15552. /* xcb_point_t points */
  15553. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15554. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15555. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15556. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15557. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req136)))
  15558. return xcb_ret
  15559. }
  15560. var _xcb_req136 = Txcb_protocol_request_t{
  15561. Fcount: uint64(4),
  15562. Fopcode: uint8(m_XCB_POLY_POINT),
  15563. Fisvoid: uint8(1),
  15564. }
  15565. 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) {
  15566. bp := tls.Alloc(112)
  15567. defer tls.Free(112)
  15568. var xcb_ret Txcb_void_cookie_t
  15569. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15570. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15571. _ = xcb_ret
  15572. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15573. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15574. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15575. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15576. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15577. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15578. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15579. /* xcb_point_t points */
  15580. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15581. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15582. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15583. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15584. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req137)))
  15585. return xcb_ret
  15586. }
  15587. var _xcb_req137 = Txcb_protocol_request_t{
  15588. Fcount: uint64(4),
  15589. Fopcode: uint8(m_XCB_POLY_POINT),
  15590. Fisvoid: uint8(1),
  15591. }
  15592. func Xxcb_poly_point_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15593. return R + libc.UintptrFromInt32(1)*12
  15594. }
  15595. func Xxcb_poly_point_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15596. 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))
  15597. }
  15598. func Xxcb_poly_point_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15599. var i Txcb_point_iterator_t
  15600. _ = i
  15601. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15602. 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))
  15603. i.Findex = int32(int64(i.Fdata) - int64(R))
  15604. return i
  15605. }
  15606. func Xxcb_poly_line_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15607. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15608. var xcb_tmp uintptr
  15609. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15610. xcb_tmp = _buffer
  15611. xcb_buffer_len = uint32(0)
  15612. xcb_block_len = uint32(0)
  15613. xcb_pad = uint32(0)
  15614. xcb_align_to = uint32(0)
  15615. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15616. xcb_tmp += uintptr(xcb_block_len)
  15617. xcb_buffer_len += xcb_block_len
  15618. xcb_block_len = uint32(0)
  15619. /* points */
  15620. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15621. xcb_tmp += uintptr(xcb_block_len)
  15622. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15623. /* insert padding */
  15624. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15625. xcb_buffer_len += xcb_block_len + xcb_pad
  15626. if uint32(0) != xcb_pad {
  15627. xcb_tmp += uintptr(xcb_pad)
  15628. xcb_pad = uint32(0)
  15629. }
  15630. xcb_block_len = uint32(0)
  15631. return libc.Int32FromUint32(xcb_buffer_len)
  15632. }
  15633. 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) {
  15634. bp := tls.Alloc(112)
  15635. defer tls.Free(112)
  15636. var xcb_ret Txcb_void_cookie_t
  15637. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15638. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15639. _ = xcb_ret
  15640. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15641. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15642. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15643. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15644. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15645. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15646. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15647. /* xcb_point_t points */
  15648. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15649. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15650. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15651. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15652. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req138)))
  15653. return xcb_ret
  15654. }
  15655. var _xcb_req138 = Txcb_protocol_request_t{
  15656. Fcount: uint64(4),
  15657. Fopcode: uint8(m_XCB_POLY_LINE),
  15658. Fisvoid: uint8(1),
  15659. }
  15660. 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) {
  15661. bp := tls.Alloc(112)
  15662. defer tls.Free(112)
  15663. var xcb_ret Txcb_void_cookie_t
  15664. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15665. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15666. _ = xcb_ret
  15667. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15668. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15669. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15670. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15671. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15672. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15673. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15674. /* xcb_point_t points */
  15675. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15676. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15677. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15678. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15679. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req139)))
  15680. return xcb_ret
  15681. }
  15682. var _xcb_req139 = Txcb_protocol_request_t{
  15683. Fcount: uint64(4),
  15684. Fopcode: uint8(m_XCB_POLY_LINE),
  15685. Fisvoid: uint8(1),
  15686. }
  15687. func Xxcb_poly_line_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15688. return R + libc.UintptrFromInt32(1)*12
  15689. }
  15690. func Xxcb_poly_line_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15691. 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))
  15692. }
  15693. func Xxcb_poly_line_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15694. var i Txcb_point_iterator_t
  15695. _ = i
  15696. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15697. 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))
  15698. i.Findex = int32(int64(i.Fdata) - int64(R))
  15699. return i
  15700. }
  15701. func Xxcb_segment_next(tls *libc.TLS, i uintptr) {
  15702. var p1 uintptr
  15703. _ = p1
  15704. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Frem--
  15705. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  15706. p1 = i + 12
  15707. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  15708. }
  15709. func Xxcb_segment_end(tls *libc.TLS, i Txcb_segment_iterator_t) (r Txcb_generic_iterator_t) {
  15710. var ret Txcb_generic_iterator_t
  15711. _ = ret
  15712. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  15713. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  15714. ret.Frem = 0
  15715. return ret
  15716. }
  15717. func Xxcb_poly_segment_sizeof(tls *libc.TLS, _buffer uintptr, segments_len Tuint32_t) (r int32) {
  15718. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15719. var xcb_tmp uintptr
  15720. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15721. xcb_tmp = _buffer
  15722. xcb_buffer_len = uint32(0)
  15723. xcb_block_len = uint32(0)
  15724. xcb_pad = uint32(0)
  15725. xcb_align_to = uint32(0)
  15726. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15727. xcb_tmp += uintptr(xcb_block_len)
  15728. xcb_buffer_len += xcb_block_len
  15729. xcb_block_len = uint32(0)
  15730. /* segments */
  15731. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(segments_len)*libc.Uint64FromInt64(8))
  15732. xcb_tmp += uintptr(xcb_block_len)
  15733. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15734. /* insert padding */
  15735. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15736. xcb_buffer_len += xcb_block_len + xcb_pad
  15737. if uint32(0) != xcb_pad {
  15738. xcb_tmp += uintptr(xcb_pad)
  15739. xcb_pad = uint32(0)
  15740. }
  15741. xcb_block_len = uint32(0)
  15742. return libc.Int32FromUint32(xcb_buffer_len)
  15743. }
  15744. 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) {
  15745. bp := tls.Alloc(112)
  15746. defer tls.Free(112)
  15747. var xcb_ret Txcb_void_cookie_t
  15748. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15749. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15750. _ = xcb_ret
  15751. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15752. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15753. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15754. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15755. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15756. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15757. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15758. /* xcb_segment_t segments */
  15759. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15760. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15761. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15762. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15763. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req140)))
  15764. return xcb_ret
  15765. }
  15766. var _xcb_req140 = Txcb_protocol_request_t{
  15767. Fcount: uint64(4),
  15768. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15769. Fisvoid: uint8(1),
  15770. }
  15771. 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) {
  15772. bp := tls.Alloc(112)
  15773. defer tls.Free(112)
  15774. var xcb_ret Txcb_void_cookie_t
  15775. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15776. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15777. _ = xcb_ret
  15778. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15779. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15780. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15781. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15782. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15783. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15784. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15785. /* xcb_segment_t segments */
  15786. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15787. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15788. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15789. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15790. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req141)))
  15791. return xcb_ret
  15792. }
  15793. var _xcb_req141 = Txcb_protocol_request_t{
  15794. Fcount: uint64(4),
  15795. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15796. Fisvoid: uint8(1),
  15797. }
  15798. func Xxcb_poly_segment_segments(tls *libc.TLS, R uintptr) (r uintptr) {
  15799. return R + libc.UintptrFromInt32(1)*12
  15800. }
  15801. func Xxcb_poly_segment_segments_length(tls *libc.TLS, R uintptr) (r int32) {
  15802. 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))
  15803. }
  15804. func Xxcb_poly_segment_segments_iterator(tls *libc.TLS, R uintptr) (r Txcb_segment_iterator_t) {
  15805. var i Txcb_segment_iterator_t
  15806. _ = i
  15807. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15808. 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))
  15809. i.Findex = int32(int64(i.Fdata) - int64(R))
  15810. return i
  15811. }
  15812. func Xxcb_poly_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15813. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15814. var xcb_tmp uintptr
  15815. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15816. xcb_tmp = _buffer
  15817. xcb_buffer_len = uint32(0)
  15818. xcb_block_len = uint32(0)
  15819. xcb_pad = uint32(0)
  15820. xcb_align_to = uint32(0)
  15821. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15822. xcb_tmp += uintptr(xcb_block_len)
  15823. xcb_buffer_len += xcb_block_len
  15824. xcb_block_len = uint32(0)
  15825. /* rectangles */
  15826. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15827. xcb_tmp += uintptr(xcb_block_len)
  15828. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15829. /* insert padding */
  15830. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15831. xcb_buffer_len += xcb_block_len + xcb_pad
  15832. if uint32(0) != xcb_pad {
  15833. xcb_tmp += uintptr(xcb_pad)
  15834. xcb_pad = uint32(0)
  15835. }
  15836. xcb_block_len = uint32(0)
  15837. return libc.Int32FromUint32(xcb_buffer_len)
  15838. }
  15839. 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) {
  15840. bp := tls.Alloc(112)
  15841. defer tls.Free(112)
  15842. var xcb_ret Txcb_void_cookie_t
  15843. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15844. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15845. _ = xcb_ret
  15846. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15847. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15848. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15849. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15850. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15851. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15852. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15853. /* xcb_rectangle_t rectangles */
  15854. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15855. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15856. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15857. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15858. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req142)))
  15859. return xcb_ret
  15860. }
  15861. var _xcb_req142 = Txcb_protocol_request_t{
  15862. Fcount: uint64(4),
  15863. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15864. Fisvoid: uint8(1),
  15865. }
  15866. 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) {
  15867. bp := tls.Alloc(112)
  15868. defer tls.Free(112)
  15869. var xcb_ret Txcb_void_cookie_t
  15870. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15871. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15872. _ = xcb_ret
  15873. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15874. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15875. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15876. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15877. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15878. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15879. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15880. /* xcb_rectangle_t rectangles */
  15881. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15882. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15883. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15884. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15885. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req143)))
  15886. return xcb_ret
  15887. }
  15888. var _xcb_req143 = Txcb_protocol_request_t{
  15889. Fcount: uint64(4),
  15890. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15891. Fisvoid: uint8(1),
  15892. }
  15893. func Xxcb_poly_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15894. return R + libc.UintptrFromInt32(1)*12
  15895. }
  15896. func Xxcb_poly_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15897. 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))
  15898. }
  15899. func Xxcb_poly_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15900. var i Txcb_rectangle_iterator_t
  15901. _ = i
  15902. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15903. 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))
  15904. i.Findex = int32(int64(i.Fdata) - int64(R))
  15905. return i
  15906. }
  15907. func Xxcb_poly_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  15908. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15909. var xcb_tmp uintptr
  15910. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15911. xcb_tmp = _buffer
  15912. xcb_buffer_len = uint32(0)
  15913. xcb_block_len = uint32(0)
  15914. xcb_pad = uint32(0)
  15915. xcb_align_to = uint32(0)
  15916. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15917. xcb_tmp += uintptr(xcb_block_len)
  15918. xcb_buffer_len += xcb_block_len
  15919. xcb_block_len = uint32(0)
  15920. /* arcs */
  15921. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  15922. xcb_tmp += uintptr(xcb_block_len)
  15923. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15924. /* insert padding */
  15925. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15926. xcb_buffer_len += xcb_block_len + xcb_pad
  15927. if uint32(0) != xcb_pad {
  15928. xcb_tmp += uintptr(xcb_pad)
  15929. xcb_pad = uint32(0)
  15930. }
  15931. xcb_block_len = uint32(0)
  15932. return libc.Int32FromUint32(xcb_buffer_len)
  15933. }
  15934. 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) {
  15935. bp := tls.Alloc(112)
  15936. defer tls.Free(112)
  15937. var xcb_ret Txcb_void_cookie_t
  15938. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  15939. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15940. _ = xcb_ret
  15941. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15942. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15943. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15944. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15945. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15946. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15947. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15948. /* xcb_arc_t arcs */
  15949. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  15950. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  15951. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15952. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15953. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req144)))
  15954. return xcb_ret
  15955. }
  15956. var _xcb_req144 = Txcb_protocol_request_t{
  15957. Fcount: uint64(4),
  15958. Fopcode: uint8(m_XCB_POLY_ARC),
  15959. Fisvoid: uint8(1),
  15960. }
  15961. 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) {
  15962. bp := tls.Alloc(112)
  15963. defer tls.Free(112)
  15964. var xcb_ret Txcb_void_cookie_t
  15965. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  15966. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15967. _ = xcb_ret
  15968. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15969. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15970. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15971. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15972. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15973. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15974. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15975. /* xcb_arc_t arcs */
  15976. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  15977. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  15978. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15979. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15980. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req145)))
  15981. return xcb_ret
  15982. }
  15983. var _xcb_req145 = Txcb_protocol_request_t{
  15984. Fcount: uint64(4),
  15985. Fopcode: uint8(m_XCB_POLY_ARC),
  15986. Fisvoid: uint8(1),
  15987. }
  15988. func Xxcb_poly_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  15989. return R + libc.UintptrFromInt32(1)*12
  15990. }
  15991. func Xxcb_poly_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  15992. 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))
  15993. }
  15994. func Xxcb_poly_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  15995. var i Txcb_arc_iterator_t
  15996. _ = i
  15997. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15998. 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))
  15999. i.Findex = int32(int64(i.Fdata) - int64(R))
  16000. return i
  16001. }
  16002. func Xxcb_fill_poly_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  16003. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16004. var xcb_tmp uintptr
  16005. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16006. xcb_tmp = _buffer
  16007. xcb_buffer_len = uint32(0)
  16008. xcb_block_len = uint32(0)
  16009. xcb_pad = uint32(0)
  16010. xcb_align_to = uint32(0)
  16011. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16012. xcb_tmp += uintptr(xcb_block_len)
  16013. xcb_buffer_len += xcb_block_len
  16014. xcb_block_len = uint32(0)
  16015. /* points */
  16016. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  16017. xcb_tmp += uintptr(xcb_block_len)
  16018. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16019. /* insert padding */
  16020. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16021. xcb_buffer_len += xcb_block_len + xcb_pad
  16022. if uint32(0) != xcb_pad {
  16023. xcb_tmp += uintptr(xcb_pad)
  16024. xcb_pad = uint32(0)
  16025. }
  16026. xcb_block_len = uint32(0)
  16027. return libc.Int32FromUint32(xcb_buffer_len)
  16028. }
  16029. 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) {
  16030. bp := tls.Alloc(112)
  16031. defer tls.Free(112)
  16032. var xcb_ret Txcb_void_cookie_t
  16033. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16034. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16035. _ = xcb_ret
  16036. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16037. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16038. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16039. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16040. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16041. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16042. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16043. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16044. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16045. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16046. /* xcb_point_t points */
  16047. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16048. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16049. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16050. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16051. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req146)))
  16052. return xcb_ret
  16053. }
  16054. var _xcb_req146 = Txcb_protocol_request_t{
  16055. Fcount: uint64(4),
  16056. Fopcode: uint8(m_XCB_FILL_POLY),
  16057. Fisvoid: uint8(1),
  16058. }
  16059. 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) {
  16060. bp := tls.Alloc(112)
  16061. defer tls.Free(112)
  16062. var xcb_ret Txcb_void_cookie_t
  16063. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16064. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16065. _ = xcb_ret
  16066. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16067. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16068. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16069. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16070. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16071. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16072. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16073. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16074. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16075. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16076. /* xcb_point_t points */
  16077. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16078. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16079. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16080. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16081. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req147)))
  16082. return xcb_ret
  16083. }
  16084. var _xcb_req147 = Txcb_protocol_request_t{
  16085. Fcount: uint64(4),
  16086. Fopcode: uint8(m_XCB_FILL_POLY),
  16087. Fisvoid: uint8(1),
  16088. }
  16089. func Xxcb_fill_poly_points(tls *libc.TLS, R uintptr) (r uintptr) {
  16090. return R + libc.UintptrFromInt32(1)*16
  16091. }
  16092. func Xxcb_fill_poly_points_length(tls *libc.TLS, R uintptr) (r int32) {
  16093. 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))
  16094. }
  16095. func Xxcb_fill_poly_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  16096. var i Txcb_point_iterator_t
  16097. _ = i
  16098. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16099. 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))
  16100. i.Findex = int32(int64(i.Fdata) - int64(R))
  16101. return i
  16102. }
  16103. func Xxcb_poly_fill_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  16104. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16105. var xcb_tmp uintptr
  16106. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16107. xcb_tmp = _buffer
  16108. xcb_buffer_len = uint32(0)
  16109. xcb_block_len = uint32(0)
  16110. xcb_pad = uint32(0)
  16111. xcb_align_to = uint32(0)
  16112. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16113. xcb_tmp += uintptr(xcb_block_len)
  16114. xcb_buffer_len += xcb_block_len
  16115. xcb_block_len = uint32(0)
  16116. /* rectangles */
  16117. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  16118. xcb_tmp += uintptr(xcb_block_len)
  16119. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16120. /* insert padding */
  16121. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16122. xcb_buffer_len += xcb_block_len + xcb_pad
  16123. if uint32(0) != xcb_pad {
  16124. xcb_tmp += uintptr(xcb_pad)
  16125. xcb_pad = uint32(0)
  16126. }
  16127. xcb_block_len = uint32(0)
  16128. return libc.Int32FromUint32(xcb_buffer_len)
  16129. }
  16130. 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) {
  16131. bp := tls.Alloc(112)
  16132. defer tls.Free(112)
  16133. var xcb_ret Txcb_void_cookie_t
  16134. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16135. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16136. _ = xcb_ret
  16137. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16138. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16139. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16140. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16141. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16142. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16143. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16144. /* xcb_rectangle_t rectangles */
  16145. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16146. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16147. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16148. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16149. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req148)))
  16150. return xcb_ret
  16151. }
  16152. var _xcb_req148 = Txcb_protocol_request_t{
  16153. Fcount: uint64(4),
  16154. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16155. Fisvoid: uint8(1),
  16156. }
  16157. 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) {
  16158. bp := tls.Alloc(112)
  16159. defer tls.Free(112)
  16160. var xcb_ret Txcb_void_cookie_t
  16161. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16162. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16163. _ = xcb_ret
  16164. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16165. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16166. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16167. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16168. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16169. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16170. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16171. /* xcb_rectangle_t rectangles */
  16172. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16173. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16174. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16175. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16176. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req149)))
  16177. return xcb_ret
  16178. }
  16179. var _xcb_req149 = Txcb_protocol_request_t{
  16180. Fcount: uint64(4),
  16181. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16182. Fisvoid: uint8(1),
  16183. }
  16184. func Xxcb_poly_fill_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  16185. return R + libc.UintptrFromInt32(1)*12
  16186. }
  16187. func Xxcb_poly_fill_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  16188. 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))
  16189. }
  16190. func Xxcb_poly_fill_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  16191. var i Txcb_rectangle_iterator_t
  16192. _ = i
  16193. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16194. 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))
  16195. i.Findex = int32(int64(i.Fdata) - int64(R))
  16196. return i
  16197. }
  16198. func Xxcb_poly_fill_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  16199. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16200. var xcb_tmp uintptr
  16201. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16202. xcb_tmp = _buffer
  16203. xcb_buffer_len = uint32(0)
  16204. xcb_block_len = uint32(0)
  16205. xcb_pad = uint32(0)
  16206. xcb_align_to = uint32(0)
  16207. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16208. xcb_tmp += uintptr(xcb_block_len)
  16209. xcb_buffer_len += xcb_block_len
  16210. xcb_block_len = uint32(0)
  16211. /* arcs */
  16212. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  16213. xcb_tmp += uintptr(xcb_block_len)
  16214. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16215. /* insert padding */
  16216. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16217. xcb_buffer_len += xcb_block_len + xcb_pad
  16218. if uint32(0) != xcb_pad {
  16219. xcb_tmp += uintptr(xcb_pad)
  16220. xcb_pad = uint32(0)
  16221. }
  16222. xcb_block_len = uint32(0)
  16223. return libc.Int32FromUint32(xcb_buffer_len)
  16224. }
  16225. 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) {
  16226. bp := tls.Alloc(112)
  16227. defer tls.Free(112)
  16228. var xcb_ret Txcb_void_cookie_t
  16229. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16230. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16231. _ = xcb_ret
  16232. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16233. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16234. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16235. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16236. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16237. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16238. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16239. /* xcb_arc_t arcs */
  16240. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16241. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16242. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16243. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16244. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req150)))
  16245. return xcb_ret
  16246. }
  16247. var _xcb_req150 = Txcb_protocol_request_t{
  16248. Fcount: uint64(4),
  16249. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16250. Fisvoid: uint8(1),
  16251. }
  16252. 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) {
  16253. bp := tls.Alloc(112)
  16254. defer tls.Free(112)
  16255. var xcb_ret Txcb_void_cookie_t
  16256. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16257. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16258. _ = xcb_ret
  16259. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16260. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16261. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16262. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16263. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16264. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16265. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16266. /* xcb_arc_t arcs */
  16267. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16268. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16269. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16270. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16271. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req151)))
  16272. return xcb_ret
  16273. }
  16274. var _xcb_req151 = Txcb_protocol_request_t{
  16275. Fcount: uint64(4),
  16276. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16277. Fisvoid: uint8(1),
  16278. }
  16279. func Xxcb_poly_fill_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16280. return R + libc.UintptrFromInt32(1)*12
  16281. }
  16282. func Xxcb_poly_fill_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16283. 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))
  16284. }
  16285. func Xxcb_poly_fill_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16286. var i Txcb_arc_iterator_t
  16287. _ = i
  16288. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16289. 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))
  16290. i.Findex = int32(int64(i.Fdata) - int64(R))
  16291. return i
  16292. }
  16293. func Xxcb_put_image_sizeof(tls *libc.TLS, _buffer uintptr, data_len Tuint32_t) (r int32) {
  16294. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16295. var xcb_tmp uintptr
  16296. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16297. xcb_tmp = _buffer
  16298. xcb_buffer_len = uint32(0)
  16299. xcb_block_len = uint32(0)
  16300. xcb_pad = uint32(0)
  16301. xcb_align_to = uint32(0)
  16302. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  16303. xcb_tmp += uintptr(xcb_block_len)
  16304. xcb_buffer_len += xcb_block_len
  16305. xcb_block_len = uint32(0)
  16306. /* data */
  16307. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(data_len)*libc.Uint64FromInt64(1))
  16308. xcb_tmp += uintptr(xcb_block_len)
  16309. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16310. /* insert padding */
  16311. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16312. xcb_buffer_len += xcb_block_len + xcb_pad
  16313. if uint32(0) != xcb_pad {
  16314. xcb_tmp += uintptr(xcb_pad)
  16315. xcb_pad = uint32(0)
  16316. }
  16317. xcb_block_len = uint32(0)
  16318. return libc.Int32FromUint32(xcb_buffer_len)
  16319. }
  16320. 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) {
  16321. bp := tls.Alloc(128)
  16322. defer tls.Free(128)
  16323. var xcb_ret Txcb_void_cookie_t
  16324. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16325. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16326. _ = xcb_ret
  16327. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16328. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16329. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16330. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16331. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16332. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16333. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16334. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16335. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16336. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16337. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16338. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16339. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16340. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16341. /* uint8_t data */
  16342. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16343. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16344. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16345. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16346. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req152)))
  16347. return xcb_ret
  16348. }
  16349. var _xcb_req152 = Txcb_protocol_request_t{
  16350. Fcount: uint64(4),
  16351. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16352. Fisvoid: uint8(1),
  16353. }
  16354. 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) {
  16355. bp := tls.Alloc(128)
  16356. defer tls.Free(128)
  16357. var xcb_ret Txcb_void_cookie_t
  16358. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16359. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16360. _ = xcb_ret
  16361. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16362. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16363. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16364. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16365. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16366. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16367. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16368. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16369. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16370. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16371. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16372. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16373. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16374. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16375. /* uint8_t data */
  16376. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16377. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16378. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16379. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16380. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req153)))
  16381. return xcb_ret
  16382. }
  16383. var _xcb_req153 = Txcb_protocol_request_t{
  16384. Fcount: uint64(4),
  16385. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16386. Fisvoid: uint8(1),
  16387. }
  16388. func Xxcb_put_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16389. return R + libc.UintptrFromInt32(1)*24
  16390. }
  16391. func Xxcb_put_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16392. 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))
  16393. }
  16394. func Xxcb_put_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16395. var i Txcb_generic_iterator_t
  16396. _ = i
  16397. 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))
  16398. i.Frem = 0
  16399. i.Findex = int32(int64(i.Fdata) - int64(R))
  16400. return i
  16401. }
  16402. func Xxcb_get_image_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16403. var _aux, xcb_tmp uintptr
  16404. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16405. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16406. xcb_tmp = _buffer
  16407. _aux = _buffer
  16408. xcb_buffer_len = uint32(0)
  16409. xcb_block_len = uint32(0)
  16410. xcb_pad = uint32(0)
  16411. xcb_align_to = uint32(0)
  16412. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  16413. xcb_tmp += uintptr(xcb_block_len)
  16414. xcb_buffer_len += xcb_block_len
  16415. xcb_block_len = uint32(0)
  16416. /* data */
  16417. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_image_reply_t)(unsafe.Pointer(_aux)).Flength*libc.Uint32FromInt32(4))*libc.Uint64FromInt64(1))
  16418. xcb_tmp += uintptr(xcb_block_len)
  16419. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16420. /* insert padding */
  16421. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16422. xcb_buffer_len += xcb_block_len + xcb_pad
  16423. if uint32(0) != xcb_pad {
  16424. xcb_tmp += uintptr(xcb_pad)
  16425. xcb_pad = uint32(0)
  16426. }
  16427. xcb_block_len = uint32(0)
  16428. return libc.Int32FromUint32(xcb_buffer_len)
  16429. }
  16430. 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) {
  16431. bp := tls.Alloc(96)
  16432. defer tls.Free(96)
  16433. var xcb_ret Txcb_get_image_cookie_t
  16434. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16435. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16436. _ = xcb_ret
  16437. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16438. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16439. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16440. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16441. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16442. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16443. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16444. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16445. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16446. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16447. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16448. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req154)))
  16449. return xcb_ret
  16450. }
  16451. var _xcb_req154 = Txcb_protocol_request_t{
  16452. Fcount: uint64(2),
  16453. Fopcode: uint8(m_XCB_GET_IMAGE),
  16454. }
  16455. 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) {
  16456. bp := tls.Alloc(96)
  16457. defer tls.Free(96)
  16458. var xcb_ret Txcb_get_image_cookie_t
  16459. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16460. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16461. _ = xcb_ret
  16462. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16463. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16464. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16465. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16466. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16467. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16468. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16469. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16470. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16471. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16473. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req155)))
  16474. return xcb_ret
  16475. }
  16476. var _xcb_req155 = Txcb_protocol_request_t{
  16477. Fcount: uint64(2),
  16478. Fopcode: uint8(m_XCB_GET_IMAGE),
  16479. }
  16480. func Xxcb_get_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16481. return R + libc.UintptrFromInt32(1)*32
  16482. }
  16483. func Xxcb_get_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16484. return libc.Int32FromUint32((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength * libc.Uint32FromInt32(4))
  16485. }
  16486. func Xxcb_get_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16487. var i Txcb_generic_iterator_t
  16488. _ = i
  16489. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength*libc.Uint32FromInt32(4))
  16490. i.Frem = 0
  16491. i.Findex = int32(int64(i.Fdata) - int64(R))
  16492. return i
  16493. }
  16494. func Xxcb_get_image_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_image_cookie_t, e uintptr) (r uintptr) {
  16495. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  16496. }
  16497. func Xxcb_poly_text_8_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16498. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16499. var xcb_tmp uintptr
  16500. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16501. xcb_tmp = _buffer
  16502. xcb_buffer_len = uint32(0)
  16503. xcb_block_len = uint32(0)
  16504. xcb_pad = uint32(0)
  16505. xcb_align_to = uint32(0)
  16506. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16507. xcb_tmp += uintptr(xcb_block_len)
  16508. xcb_buffer_len += xcb_block_len
  16509. xcb_block_len = uint32(0)
  16510. /* items */
  16511. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16512. xcb_tmp += uintptr(xcb_block_len)
  16513. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16514. /* insert padding */
  16515. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16516. xcb_buffer_len += xcb_block_len + xcb_pad
  16517. if uint32(0) != xcb_pad {
  16518. xcb_tmp += uintptr(xcb_pad)
  16519. xcb_pad = uint32(0)
  16520. }
  16521. xcb_block_len = uint32(0)
  16522. return libc.Int32FromUint32(xcb_buffer_len)
  16523. }
  16524. 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) {
  16525. bp := tls.Alloc(112)
  16526. defer tls.Free(112)
  16527. var xcb_ret Txcb_void_cookie_t
  16528. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16529. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16530. _ = xcb_ret
  16531. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16532. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16533. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16534. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16535. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16536. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16537. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16538. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16539. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16540. /* uint8_t items */
  16541. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16542. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16543. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16544. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16545. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req156)))
  16546. return xcb_ret
  16547. }
  16548. var _xcb_req156 = Txcb_protocol_request_t{
  16549. Fcount: uint64(4),
  16550. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16551. Fisvoid: uint8(1),
  16552. }
  16553. 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) {
  16554. bp := tls.Alloc(112)
  16555. defer tls.Free(112)
  16556. var xcb_ret Txcb_void_cookie_t
  16557. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16558. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16559. _ = xcb_ret
  16560. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16561. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16562. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16563. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16564. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16565. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16566. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16567. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16568. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16569. /* uint8_t items */
  16570. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16571. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16572. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16573. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16574. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req157)))
  16575. return xcb_ret
  16576. }
  16577. var _xcb_req157 = Txcb_protocol_request_t{
  16578. Fcount: uint64(4),
  16579. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16580. Fisvoid: uint8(1),
  16581. }
  16582. func Xxcb_poly_text_8_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16583. return R + libc.UintptrFromInt32(1)*16
  16584. }
  16585. func Xxcb_poly_text_8_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16586. 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))
  16587. }
  16588. func Xxcb_poly_text_8_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16589. var i Txcb_generic_iterator_t
  16590. _ = i
  16591. 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))
  16592. i.Frem = 0
  16593. i.Findex = int32(int64(i.Fdata) - int64(R))
  16594. return i
  16595. }
  16596. func Xxcb_poly_text_16_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16597. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16598. var xcb_tmp uintptr
  16599. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16600. xcb_tmp = _buffer
  16601. xcb_buffer_len = uint32(0)
  16602. xcb_block_len = uint32(0)
  16603. xcb_pad = uint32(0)
  16604. xcb_align_to = uint32(0)
  16605. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16606. xcb_tmp += uintptr(xcb_block_len)
  16607. xcb_buffer_len += xcb_block_len
  16608. xcb_block_len = uint32(0)
  16609. /* items */
  16610. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16611. xcb_tmp += uintptr(xcb_block_len)
  16612. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16613. /* insert padding */
  16614. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16615. xcb_buffer_len += xcb_block_len + xcb_pad
  16616. if uint32(0) != xcb_pad {
  16617. xcb_tmp += uintptr(xcb_pad)
  16618. xcb_pad = uint32(0)
  16619. }
  16620. xcb_block_len = uint32(0)
  16621. return libc.Int32FromUint32(xcb_buffer_len)
  16622. }
  16623. 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) {
  16624. bp := tls.Alloc(112)
  16625. defer tls.Free(112)
  16626. var xcb_ret Txcb_void_cookie_t
  16627. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16628. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16629. _ = xcb_ret
  16630. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16631. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16632. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16633. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16634. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16635. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16636. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16637. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16638. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16639. /* uint8_t items */
  16640. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16641. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16642. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16643. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16644. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req158)))
  16645. return xcb_ret
  16646. }
  16647. var _xcb_req158 = Txcb_protocol_request_t{
  16648. Fcount: uint64(4),
  16649. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16650. Fisvoid: uint8(1),
  16651. }
  16652. 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) {
  16653. bp := tls.Alloc(112)
  16654. defer tls.Free(112)
  16655. var xcb_ret Txcb_void_cookie_t
  16656. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16657. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16658. _ = xcb_ret
  16659. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16660. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16661. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16662. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16663. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16664. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16665. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16666. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16667. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16668. /* uint8_t items */
  16669. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16670. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16671. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16672. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16673. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req159)))
  16674. return xcb_ret
  16675. }
  16676. var _xcb_req159 = Txcb_protocol_request_t{
  16677. Fcount: uint64(4),
  16678. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16679. Fisvoid: uint8(1),
  16680. }
  16681. func Xxcb_poly_text_16_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16682. return R + libc.UintptrFromInt32(1)*16
  16683. }
  16684. func Xxcb_poly_text_16_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16685. 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))
  16686. }
  16687. func Xxcb_poly_text_16_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16688. var i Txcb_generic_iterator_t
  16689. _ = i
  16690. 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))
  16691. i.Frem = 0
  16692. i.Findex = int32(int64(i.Fdata) - int64(R))
  16693. return i
  16694. }
  16695. func Xxcb_image_text_8_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16696. var _aux, xcb_tmp uintptr
  16697. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16698. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16699. xcb_tmp = _buffer
  16700. _aux = _buffer
  16701. xcb_buffer_len = uint32(0)
  16702. xcb_block_len = uint32(0)
  16703. xcb_pad = uint32(0)
  16704. xcb_align_to = uint32(0)
  16705. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16706. xcb_tmp += uintptr(xcb_block_len)
  16707. xcb_buffer_len += xcb_block_len
  16708. xcb_block_len = uint32(0)
  16709. /* string */
  16710. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_8_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(1))
  16711. xcb_tmp += uintptr(xcb_block_len)
  16712. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16713. /* insert padding */
  16714. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16715. xcb_buffer_len += xcb_block_len + xcb_pad
  16716. if uint32(0) != xcb_pad {
  16717. xcb_tmp += uintptr(xcb_pad)
  16718. xcb_pad = uint32(0)
  16719. }
  16720. xcb_block_len = uint32(0)
  16721. return libc.Int32FromUint32(xcb_buffer_len)
  16722. }
  16723. 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) {
  16724. bp := tls.Alloc(112)
  16725. defer tls.Free(112)
  16726. var xcb_ret Txcb_void_cookie_t
  16727. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16728. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16729. _ = xcb_ret
  16730. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16731. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16732. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16733. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16734. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16735. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16736. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16738. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16739. /* char string */
  16740. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16741. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16742. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16743. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16744. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req160)))
  16745. return xcb_ret
  16746. }
  16747. var _xcb_req160 = Txcb_protocol_request_t{
  16748. Fcount: uint64(4),
  16749. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16750. Fisvoid: uint8(1),
  16751. }
  16752. 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) {
  16753. bp := tls.Alloc(112)
  16754. defer tls.Free(112)
  16755. var xcb_ret Txcb_void_cookie_t
  16756. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16757. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16758. _ = xcb_ret
  16759. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16760. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16761. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16762. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16763. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16764. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16765. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16766. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16767. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16768. /* char string */
  16769. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16770. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16771. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16772. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16773. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req161)))
  16774. return xcb_ret
  16775. }
  16776. var _xcb_req161 = Txcb_protocol_request_t{
  16777. Fcount: uint64(4),
  16778. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16779. Fisvoid: uint8(1),
  16780. }
  16781. func Xxcb_image_text_8_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16782. return R + libc.UintptrFromInt32(1)*16
  16783. }
  16784. func Xxcb_image_text_8_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16785. return libc.Int32FromUint8((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16786. }
  16787. func Xxcb_image_text_8_string_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16788. var i Txcb_generic_iterator_t
  16789. _ = i
  16790. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16791. i.Frem = 0
  16792. i.Findex = int32(int64(i.Fdata) - int64(R))
  16793. return i
  16794. }
  16795. func Xxcb_image_text_16_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16796. var _aux, xcb_tmp uintptr
  16797. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16798. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16799. xcb_tmp = _buffer
  16800. _aux = _buffer
  16801. xcb_buffer_len = uint32(0)
  16802. xcb_block_len = uint32(0)
  16803. xcb_pad = uint32(0)
  16804. xcb_align_to = uint32(0)
  16805. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16806. xcb_tmp += uintptr(xcb_block_len)
  16807. xcb_buffer_len += xcb_block_len
  16808. xcb_block_len = uint32(0)
  16809. /* string */
  16810. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_16_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(2))
  16811. xcb_tmp += uintptr(xcb_block_len)
  16812. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16813. /* insert padding */
  16814. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16815. xcb_buffer_len += xcb_block_len + xcb_pad
  16816. if uint32(0) != xcb_pad {
  16817. xcb_tmp += uintptr(xcb_pad)
  16818. xcb_pad = uint32(0)
  16819. }
  16820. xcb_block_len = uint32(0)
  16821. return libc.Int32FromUint32(xcb_buffer_len)
  16822. }
  16823. 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) {
  16824. bp := tls.Alloc(112)
  16825. defer tls.Free(112)
  16826. var xcb_ret Txcb_void_cookie_t
  16827. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16828. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16829. _ = xcb_ret
  16830. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16831. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16832. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16833. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16834. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16835. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16836. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16837. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16838. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16839. /* xcb_char2b_t string */
  16840. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16841. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16842. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16843. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16844. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req162)))
  16845. return xcb_ret
  16846. }
  16847. var _xcb_req162 = Txcb_protocol_request_t{
  16848. Fcount: uint64(4),
  16849. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16850. Fisvoid: uint8(1),
  16851. }
  16852. 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) {
  16853. bp := tls.Alloc(112)
  16854. defer tls.Free(112)
  16855. var xcb_ret Txcb_void_cookie_t
  16856. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16857. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16858. _ = xcb_ret
  16859. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16860. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16861. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16862. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16863. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16864. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16865. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16866. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16867. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16868. /* xcb_char2b_t string */
  16869. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16870. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16871. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16872. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16873. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req163)))
  16874. return xcb_ret
  16875. }
  16876. var _xcb_req163 = Txcb_protocol_request_t{
  16877. Fcount: uint64(4),
  16878. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16879. Fisvoid: uint8(1),
  16880. }
  16881. func Xxcb_image_text_16_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16882. return R + libc.UintptrFromInt32(1)*16
  16883. }
  16884. func Xxcb_image_text_16_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16885. return libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16886. }
  16887. func Xxcb_image_text_16_string_iterator(tls *libc.TLS, R uintptr) (r Txcb_char2b_iterator_t) {
  16888. var i Txcb_char2b_iterator_t
  16889. _ = i
  16890. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16891. i.Frem = libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16892. i.Findex = int32(int64(i.Fdata) - int64(R))
  16893. return i
  16894. }
  16895. 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) {
  16896. bp := tls.Alloc(80)
  16897. defer tls.Free(80)
  16898. var xcb_ret Txcb_void_cookie_t
  16899. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16900. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16901. _ = xcb_ret
  16902. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16903. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16904. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16905. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16906. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16907. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16909. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16910. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req164)))
  16911. return xcb_ret
  16912. }
  16913. var _xcb_req164 = Txcb_protocol_request_t{
  16914. Fcount: uint64(2),
  16915. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16916. Fisvoid: uint8(1),
  16917. }
  16918. 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) {
  16919. bp := tls.Alloc(80)
  16920. defer tls.Free(80)
  16921. var xcb_ret Txcb_void_cookie_t
  16922. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16923. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16924. _ = xcb_ret
  16925. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16926. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16927. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16928. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16929. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16930. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  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_req165)))
  16934. return xcb_ret
  16935. }
  16936. var _xcb_req165 = Txcb_protocol_request_t{
  16937. Fcount: uint64(2),
  16938. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16939. Fisvoid: uint8(1),
  16940. }
  16941. func Xxcb_free_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_free_colormap_request_t
  16946. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16947. _ = xcb_ret
  16948. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16949. (*(*Txcb_free_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_req166)))
  16955. return xcb_ret
  16956. }
  16957. var _xcb_req166 = Txcb_protocol_request_t{
  16958. Fcount: uint64(2),
  16959. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  16960. Fisvoid: uint8(1),
  16961. }
  16962. func Xxcb_free_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_free_colormap_request_t
  16967. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16968. _ = xcb_ret
  16969. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16970. (*(*Txcb_free_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_req167)))
  16976. return xcb_ret
  16977. }
  16978. var _xcb_req167 = Txcb_protocol_request_t{
  16979. Fcount: uint64(2),
  16980. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  16981. Fisvoid: uint8(1),
  16982. }
  16983. 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) {
  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_copy_colormap_and_free_request_t
  16988. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16989. _ = xcb_ret
  16990. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16991. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16992. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  16993. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16994. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16995. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16996. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16997. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req168)))
  16998. return xcb_ret
  16999. }
  17000. var _xcb_req168 = Txcb_protocol_request_t{
  17001. Fcount: uint64(2),
  17002. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17003. Fisvoid: uint8(1),
  17004. }
  17005. 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) {
  17006. bp := tls.Alloc(80)
  17007. defer tls.Free(80)
  17008. var xcb_ret Txcb_void_cookie_t
  17009. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  17010. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17011. _ = xcb_ret
  17012. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17013. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17014. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  17015. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17016. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17017. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17018. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17019. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req169)))
  17020. return xcb_ret
  17021. }
  17022. var _xcb_req169 = Txcb_protocol_request_t{
  17023. Fcount: uint64(2),
  17024. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17025. Fisvoid: uint8(1),
  17026. }
  17027. func Xxcb_install_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17028. bp := tls.Alloc(80)
  17029. defer tls.Free(80)
  17030. var xcb_ret Txcb_void_cookie_t
  17031. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17032. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17033. _ = xcb_ret
  17034. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17035. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17036. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17037. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17038. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17039. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17040. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req170)))
  17041. return xcb_ret
  17042. }
  17043. var _xcb_req170 = Txcb_protocol_request_t{
  17044. Fcount: uint64(2),
  17045. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17046. Fisvoid: uint8(1),
  17047. }
  17048. func Xxcb_install_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17049. bp := tls.Alloc(80)
  17050. defer tls.Free(80)
  17051. var xcb_ret Txcb_void_cookie_t
  17052. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17053. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17054. _ = xcb_ret
  17055. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17056. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17057. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17058. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17059. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17060. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17061. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req171)))
  17062. return xcb_ret
  17063. }
  17064. var _xcb_req171 = Txcb_protocol_request_t{
  17065. Fcount: uint64(2),
  17066. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17067. Fisvoid: uint8(1),
  17068. }
  17069. func Xxcb_uninstall_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17070. bp := tls.Alloc(80)
  17071. defer tls.Free(80)
  17072. var xcb_ret Txcb_void_cookie_t
  17073. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17074. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17075. _ = xcb_ret
  17076. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17077. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17078. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17079. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17080. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17081. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17082. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req172)))
  17083. return xcb_ret
  17084. }
  17085. var _xcb_req172 = Txcb_protocol_request_t{
  17086. Fcount: uint64(2),
  17087. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17088. Fisvoid: uint8(1),
  17089. }
  17090. func Xxcb_uninstall_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17091. bp := tls.Alloc(80)
  17092. defer tls.Free(80)
  17093. var xcb_ret Txcb_void_cookie_t
  17094. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17095. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17096. _ = xcb_ret
  17097. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17098. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17099. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17100. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17101. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17102. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17103. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req173)))
  17104. return xcb_ret
  17105. }
  17106. var _xcb_req173 = Txcb_protocol_request_t{
  17107. Fcount: uint64(2),
  17108. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17109. Fisvoid: uint8(1),
  17110. }
  17111. func Xxcb_list_installed_colormaps_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17112. var _aux, xcb_tmp uintptr
  17113. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17114. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17115. xcb_tmp = _buffer
  17116. _aux = _buffer
  17117. xcb_buffer_len = uint32(0)
  17118. xcb_block_len = uint32(0)
  17119. xcb_pad = uint32(0)
  17120. xcb_align_to = uint32(0)
  17121. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17122. xcb_tmp += uintptr(xcb_block_len)
  17123. xcb_buffer_len += xcb_block_len
  17124. xcb_block_len = uint32(0)
  17125. /* cmaps */
  17126. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(_aux)).Fcmaps_len)*libc.Uint64FromInt64(4))
  17127. xcb_tmp += uintptr(xcb_block_len)
  17128. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17129. /* insert padding */
  17130. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17131. xcb_buffer_len += xcb_block_len + xcb_pad
  17132. if uint32(0) != xcb_pad {
  17133. xcb_tmp += uintptr(xcb_pad)
  17134. xcb_pad = uint32(0)
  17135. }
  17136. xcb_block_len = uint32(0)
  17137. return libc.Int32FromUint32(xcb_buffer_len)
  17138. }
  17139. func Xxcb_list_installed_colormaps(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17140. bp := tls.Alloc(80)
  17141. defer tls.Free(80)
  17142. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17143. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17144. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17145. _ = xcb_ret
  17146. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17147. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17148. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17149. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17150. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17151. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17152. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req174)))
  17153. return xcb_ret
  17154. }
  17155. var _xcb_req174 = Txcb_protocol_request_t{
  17156. Fcount: uint64(2),
  17157. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17158. }
  17159. func Xxcb_list_installed_colormaps_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17160. bp := tls.Alloc(80)
  17161. defer tls.Free(80)
  17162. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17163. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17164. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17165. _ = xcb_ret
  17166. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17167. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17168. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17169. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17170. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17171. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17172. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req175)))
  17173. return xcb_ret
  17174. }
  17175. var _xcb_req175 = Txcb_protocol_request_t{
  17176. Fcount: uint64(2),
  17177. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17178. }
  17179. func Xxcb_list_installed_colormaps_cmaps(tls *libc.TLS, R uintptr) (r uintptr) {
  17180. return R + libc.UintptrFromInt32(1)*32
  17181. }
  17182. func Xxcb_list_installed_colormaps_cmaps_length(tls *libc.TLS, R uintptr) (r int32) {
  17183. return libc.Int32FromUint16((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)
  17184. }
  17185. func Xxcb_list_installed_colormaps_cmaps_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17186. var i Txcb_generic_iterator_t
  17187. _ = i
  17188. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)*4
  17189. i.Frem = 0
  17190. i.Findex = int32(int64(i.Fdata) - int64(R))
  17191. return i
  17192. }
  17193. func Xxcb_list_installed_colormaps_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_installed_colormaps_cookie_t, e uintptr) (r uintptr) {
  17194. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17195. }
  17196. 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) {
  17197. bp := tls.Alloc(80)
  17198. defer tls.Free(80)
  17199. var xcb_ret Txcb_alloc_color_cookie_t
  17200. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17201. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17202. _ = xcb_ret
  17203. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17204. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17205. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17206. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17207. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17208. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17209. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17210. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17213. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req176)))
  17214. return xcb_ret
  17215. }
  17216. var _xcb_req176 = Txcb_protocol_request_t{
  17217. Fcount: uint64(2),
  17218. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17219. }
  17220. 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) {
  17221. bp := tls.Alloc(80)
  17222. defer tls.Free(80)
  17223. var xcb_ret Txcb_alloc_color_cookie_t
  17224. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17225. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17226. _ = xcb_ret
  17227. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17228. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17229. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17230. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17231. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17232. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17233. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17234. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17235. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17236. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17237. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req177)))
  17238. return xcb_ret
  17239. }
  17240. var _xcb_req177 = Txcb_protocol_request_t{
  17241. Fcount: uint64(2),
  17242. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17243. }
  17244. func Xxcb_alloc_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cookie_t, e uintptr) (r uintptr) {
  17245. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17246. }
  17247. func Xxcb_alloc_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17248. var _aux, xcb_tmp uintptr
  17249. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17250. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17251. xcb_tmp = _buffer
  17252. _aux = _buffer
  17253. xcb_buffer_len = uint32(0)
  17254. xcb_block_len = uint32(0)
  17255. xcb_pad = uint32(0)
  17256. xcb_align_to = uint32(0)
  17257. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17258. xcb_tmp += uintptr(xcb_block_len)
  17259. xcb_buffer_len += xcb_block_len
  17260. xcb_block_len = uint32(0)
  17261. /* name */
  17262. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17263. xcb_tmp += uintptr(xcb_block_len)
  17264. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17265. /* insert padding */
  17266. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17267. xcb_buffer_len += xcb_block_len + xcb_pad
  17268. if uint32(0) != xcb_pad {
  17269. xcb_tmp += uintptr(xcb_pad)
  17270. xcb_pad = uint32(0)
  17271. }
  17272. xcb_block_len = uint32(0)
  17273. return libc.Int32FromUint32(xcb_buffer_len)
  17274. }
  17275. 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) {
  17276. bp := tls.Alloc(112)
  17277. defer tls.Free(112)
  17278. var xcb_ret Txcb_alloc_named_color_cookie_t
  17279. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17280. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17281. _ = xcb_ret
  17282. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17283. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17284. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17285. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17286. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17287. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17288. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17289. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17290. /* char name */
  17291. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17292. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17293. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17294. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17295. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req178)))
  17296. return xcb_ret
  17297. }
  17298. var _xcb_req178 = Txcb_protocol_request_t{
  17299. Fcount: uint64(4),
  17300. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17301. }
  17302. 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) {
  17303. bp := tls.Alloc(112)
  17304. defer tls.Free(112)
  17305. var xcb_ret Txcb_alloc_named_color_cookie_t
  17306. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17307. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17308. _ = xcb_ret
  17309. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17310. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17311. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17312. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17313. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17314. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17315. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17316. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17317. /* char name */
  17318. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17319. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17320. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17321. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17322. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req179)))
  17323. return xcb_ret
  17324. }
  17325. var _xcb_req179 = Txcb_protocol_request_t{
  17326. Fcount: uint64(4),
  17327. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17328. }
  17329. func Xxcb_alloc_named_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_named_color_cookie_t, e uintptr) (r uintptr) {
  17330. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17331. }
  17332. func Xxcb_alloc_color_cells_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17333. var _aux, xcb_tmp uintptr
  17334. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17335. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17336. xcb_tmp = _buffer
  17337. _aux = _buffer
  17338. xcb_buffer_len = uint32(0)
  17339. xcb_block_len = uint32(0)
  17340. xcb_pad = uint32(0)
  17341. xcb_align_to = uint32(0)
  17342. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17343. xcb_tmp += uintptr(xcb_block_len)
  17344. xcb_buffer_len += xcb_block_len
  17345. xcb_block_len = uint32(0)
  17346. /* pixels */
  17347. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17348. xcb_tmp += uintptr(xcb_block_len)
  17349. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17350. /* insert padding */
  17351. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17352. xcb_buffer_len += xcb_block_len + xcb_pad
  17353. if uint32(0) != xcb_pad {
  17354. xcb_tmp += uintptr(xcb_pad)
  17355. xcb_pad = uint32(0)
  17356. }
  17357. xcb_block_len = uint32(0)
  17358. /* masks */
  17359. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fmasks_len)*libc.Uint64FromInt64(4))
  17360. xcb_tmp += uintptr(xcb_block_len)
  17361. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17362. /* insert padding */
  17363. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17364. xcb_buffer_len += xcb_block_len + xcb_pad
  17365. if uint32(0) != xcb_pad {
  17366. xcb_tmp += uintptr(xcb_pad)
  17367. xcb_pad = uint32(0)
  17368. }
  17369. xcb_block_len = uint32(0)
  17370. return libc.Int32FromUint32(xcb_buffer_len)
  17371. }
  17372. 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) {
  17373. bp := tls.Alloc(80)
  17374. defer tls.Free(80)
  17375. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17376. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17377. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17378. _ = xcb_ret
  17379. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17380. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17381. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17382. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17383. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17384. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17385. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17386. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17387. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req180)))
  17388. return xcb_ret
  17389. }
  17390. var _xcb_req180 = Txcb_protocol_request_t{
  17391. Fcount: uint64(2),
  17392. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17393. }
  17394. 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) {
  17395. bp := tls.Alloc(80)
  17396. defer tls.Free(80)
  17397. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17398. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17399. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17400. _ = xcb_ret
  17401. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17402. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17403. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17404. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17405. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17406. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17407. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17408. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17409. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req181)))
  17410. return xcb_ret
  17411. }
  17412. var _xcb_req181 = Txcb_protocol_request_t{
  17413. Fcount: uint64(2),
  17414. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17415. }
  17416. func Xxcb_alloc_color_cells_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17417. return R + libc.UintptrFromInt32(1)*32
  17418. }
  17419. func Xxcb_alloc_color_cells_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17420. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17421. }
  17422. func Xxcb_alloc_color_cells_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17423. var i Txcb_generic_iterator_t
  17424. _ = i
  17425. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17426. i.Frem = 0
  17427. i.Findex = int32(int64(i.Fdata) - int64(R))
  17428. return i
  17429. }
  17430. func Xxcb_alloc_color_cells_masks(tls *libc.TLS, R uintptr) (r uintptr) {
  17431. var prev Txcb_generic_iterator_t
  17432. _ = prev
  17433. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17434. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  17435. }
  17436. func Xxcb_alloc_color_cells_masks_length(tls *libc.TLS, R uintptr) (r int32) {
  17437. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)
  17438. }
  17439. func Xxcb_alloc_color_cells_masks_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17440. var i, prev Txcb_generic_iterator_t
  17441. _, _ = i, prev
  17442. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17443. 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
  17444. i.Frem = 0
  17445. i.Findex = int32(int64(i.Fdata) - int64(R))
  17446. return i
  17447. }
  17448. func Xxcb_alloc_color_cells_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cells_cookie_t, e uintptr) (r uintptr) {
  17449. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17450. }
  17451. func Xxcb_alloc_color_planes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17452. var _aux, xcb_tmp uintptr
  17453. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17454. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17455. xcb_tmp = _buffer
  17456. _aux = _buffer
  17457. xcb_buffer_len = uint32(0)
  17458. xcb_block_len = uint32(0)
  17459. xcb_pad = uint32(0)
  17460. xcb_align_to = uint32(0)
  17461. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17462. xcb_tmp += uintptr(xcb_block_len)
  17463. xcb_buffer_len += xcb_block_len
  17464. xcb_block_len = uint32(0)
  17465. /* pixels */
  17466. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17467. xcb_tmp += uintptr(xcb_block_len)
  17468. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17469. /* insert padding */
  17470. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17471. xcb_buffer_len += xcb_block_len + xcb_pad
  17472. if uint32(0) != xcb_pad {
  17473. xcb_tmp += uintptr(xcb_pad)
  17474. xcb_pad = uint32(0)
  17475. }
  17476. xcb_block_len = uint32(0)
  17477. return libc.Int32FromUint32(xcb_buffer_len)
  17478. }
  17479. 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) {
  17480. bp := tls.Alloc(80)
  17481. defer tls.Free(80)
  17482. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17483. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17484. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17485. _ = xcb_ret
  17486. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17487. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17488. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17489. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17490. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17491. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17492. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17493. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17494. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17495. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17496. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req182)))
  17497. return xcb_ret
  17498. }
  17499. var _xcb_req182 = Txcb_protocol_request_t{
  17500. Fcount: uint64(2),
  17501. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17502. }
  17503. 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) {
  17504. bp := tls.Alloc(80)
  17505. defer tls.Free(80)
  17506. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17507. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17508. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17509. _ = xcb_ret
  17510. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17511. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17512. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17513. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17514. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17515. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17516. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17517. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17518. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17519. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17520. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req183)))
  17521. return xcb_ret
  17522. }
  17523. var _xcb_req183 = Txcb_protocol_request_t{
  17524. Fcount: uint64(2),
  17525. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17526. }
  17527. func Xxcb_alloc_color_planes_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17528. return R + libc.UintptrFromInt32(1)*32
  17529. }
  17530. func Xxcb_alloc_color_planes_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17531. return libc.Int32FromUint16((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17532. }
  17533. func Xxcb_alloc_color_planes_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17534. var i Txcb_generic_iterator_t
  17535. _ = i
  17536. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17537. i.Frem = 0
  17538. i.Findex = int32(int64(i.Fdata) - int64(R))
  17539. return i
  17540. }
  17541. func Xxcb_alloc_color_planes_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_planes_cookie_t, e uintptr) (r uintptr) {
  17542. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17543. }
  17544. func Xxcb_free_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17545. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17546. var xcb_tmp uintptr
  17547. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17548. xcb_tmp = _buffer
  17549. xcb_buffer_len = uint32(0)
  17550. xcb_block_len = uint32(0)
  17551. xcb_pad = uint32(0)
  17552. xcb_align_to = uint32(0)
  17553. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17554. xcb_tmp += uintptr(xcb_block_len)
  17555. xcb_buffer_len += xcb_block_len
  17556. xcb_block_len = uint32(0)
  17557. /* pixels */
  17558. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17559. xcb_tmp += uintptr(xcb_block_len)
  17560. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17561. /* insert padding */
  17562. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17563. xcb_buffer_len += xcb_block_len + xcb_pad
  17564. if uint32(0) != xcb_pad {
  17565. xcb_tmp += uintptr(xcb_pad)
  17566. xcb_pad = uint32(0)
  17567. }
  17568. xcb_block_len = uint32(0)
  17569. return libc.Int32FromUint32(xcb_buffer_len)
  17570. }
  17571. 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) {
  17572. bp := tls.Alloc(112)
  17573. defer tls.Free(112)
  17574. var xcb_ret Txcb_void_cookie_t
  17575. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17576. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17577. _ = xcb_ret
  17578. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17579. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17580. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17581. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17582. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17583. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17585. /* uint32_t pixels */
  17586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17587. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17588. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17589. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17590. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req184)))
  17591. return xcb_ret
  17592. }
  17593. var _xcb_req184 = Txcb_protocol_request_t{
  17594. Fcount: uint64(4),
  17595. Fopcode: uint8(m_XCB_FREE_COLORS),
  17596. Fisvoid: uint8(1),
  17597. }
  17598. 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) {
  17599. bp := tls.Alloc(112)
  17600. defer tls.Free(112)
  17601. var xcb_ret Txcb_void_cookie_t
  17602. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17603. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17604. _ = xcb_ret
  17605. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17606. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17607. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17608. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17609. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17610. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17611. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17612. /* uint32_t pixels */
  17613. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17614. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17615. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17616. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17617. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req185)))
  17618. return xcb_ret
  17619. }
  17620. var _xcb_req185 = Txcb_protocol_request_t{
  17621. Fcount: uint64(4),
  17622. Fopcode: uint8(m_XCB_FREE_COLORS),
  17623. Fisvoid: uint8(1),
  17624. }
  17625. func Xxcb_free_colors_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17626. return R + libc.UintptrFromInt32(1)*12
  17627. }
  17628. func Xxcb_free_colors_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17629. 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))
  17630. }
  17631. func Xxcb_free_colors_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17632. var i Txcb_generic_iterator_t
  17633. _ = i
  17634. 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
  17635. i.Frem = 0
  17636. i.Findex = int32(int64(i.Fdata) - int64(R))
  17637. return i
  17638. }
  17639. func Xxcb_coloritem_next(tls *libc.TLS, i uintptr) {
  17640. var p1 uintptr
  17641. _ = p1
  17642. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Frem--
  17643. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  17644. p1 = i + 12
  17645. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  17646. }
  17647. func Xxcb_coloritem_end(tls *libc.TLS, i Txcb_coloritem_iterator_t) (r Txcb_generic_iterator_t) {
  17648. var ret Txcb_generic_iterator_t
  17649. _ = ret
  17650. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  17651. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17652. ret.Frem = 0
  17653. return ret
  17654. }
  17655. func Xxcb_store_colors_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  17656. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17657. var xcb_tmp uintptr
  17658. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17659. xcb_tmp = _buffer
  17660. xcb_buffer_len = uint32(0)
  17661. xcb_block_len = uint32(0)
  17662. xcb_pad = uint32(0)
  17663. xcb_align_to = uint32(0)
  17664. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17665. xcb_tmp += uintptr(xcb_block_len)
  17666. xcb_buffer_len += xcb_block_len
  17667. xcb_block_len = uint32(0)
  17668. /* items */
  17669. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(12))
  17670. xcb_tmp += uintptr(xcb_block_len)
  17671. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17672. /* insert padding */
  17673. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17674. xcb_buffer_len += xcb_block_len + xcb_pad
  17675. if uint32(0) != xcb_pad {
  17676. xcb_tmp += uintptr(xcb_pad)
  17677. xcb_pad = uint32(0)
  17678. }
  17679. xcb_block_len = uint32(0)
  17680. return libc.Int32FromUint32(xcb_buffer_len)
  17681. }
  17682. 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) {
  17683. bp := tls.Alloc(112)
  17684. defer tls.Free(112)
  17685. var xcb_ret Txcb_void_cookie_t
  17686. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17687. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17688. _ = xcb_ret
  17689. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17690. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17691. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17692. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17693. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17694. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17695. /* xcb_coloritem_t items */
  17696. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17697. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17698. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17699. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17700. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req186)))
  17701. return xcb_ret
  17702. }
  17703. var _xcb_req186 = Txcb_protocol_request_t{
  17704. Fcount: uint64(4),
  17705. Fopcode: uint8(m_XCB_STORE_COLORS),
  17706. Fisvoid: uint8(1),
  17707. }
  17708. func Xxcb_store_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
  17709. bp := tls.Alloc(112)
  17710. defer tls.Free(112)
  17711. var xcb_ret Txcb_void_cookie_t
  17712. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17713. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17714. _ = xcb_ret
  17715. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17716. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17717. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17718. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17719. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17720. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17721. /* xcb_coloritem_t items */
  17722. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17723. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17724. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17725. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17726. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req187)))
  17727. return xcb_ret
  17728. }
  17729. var _xcb_req187 = Txcb_protocol_request_t{
  17730. Fcount: uint64(4),
  17731. Fopcode: uint8(m_XCB_STORE_COLORS),
  17732. Fisvoid: uint8(1),
  17733. }
  17734. func Xxcb_store_colors_items(tls *libc.TLS, R uintptr) (r uintptr) {
  17735. return R + libc.UintptrFromInt32(1)*8
  17736. }
  17737. func Xxcb_store_colors_items_length(tls *libc.TLS, R uintptr) (r int32) {
  17738. 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))
  17739. }
  17740. func Xxcb_store_colors_items_iterator(tls *libc.TLS, R uintptr) (r Txcb_coloritem_iterator_t) {
  17741. var i Txcb_coloritem_iterator_t
  17742. _ = i
  17743. i.Fdata = R + libc.UintptrFromInt32(1)*8
  17744. 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))
  17745. i.Findex = int32(int64(i.Fdata) - int64(R))
  17746. return i
  17747. }
  17748. func Xxcb_store_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17749. var _aux, xcb_tmp uintptr
  17750. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17751. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17752. xcb_tmp = _buffer
  17753. _aux = _buffer
  17754. xcb_buffer_len = uint32(0)
  17755. xcb_block_len = uint32(0)
  17756. xcb_pad = uint32(0)
  17757. xcb_align_to = uint32(0)
  17758. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  17759. xcb_tmp += uintptr(xcb_block_len)
  17760. xcb_buffer_len += xcb_block_len
  17761. xcb_block_len = uint32(0)
  17762. /* name */
  17763. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_store_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17764. xcb_tmp += uintptr(xcb_block_len)
  17765. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17766. /* insert padding */
  17767. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17768. xcb_buffer_len += xcb_block_len + xcb_pad
  17769. if uint32(0) != xcb_pad {
  17770. xcb_tmp += uintptr(xcb_pad)
  17771. xcb_pad = uint32(0)
  17772. }
  17773. xcb_block_len = uint32(0)
  17774. return libc.Int32FromUint32(xcb_buffer_len)
  17775. }
  17776. 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) {
  17777. bp := tls.Alloc(112)
  17778. defer tls.Free(112)
  17779. var xcb_ret Txcb_void_cookie_t
  17780. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17781. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17782. _ = xcb_ret
  17783. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17784. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17785. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17786. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17787. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17788. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17789. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17790. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17791. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17792. /* char name */
  17793. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17794. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17795. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17797. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req188)))
  17798. return xcb_ret
  17799. }
  17800. var _xcb_req188 = Txcb_protocol_request_t{
  17801. Fcount: uint64(4),
  17802. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17803. Fisvoid: uint8(1),
  17804. }
  17805. 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) {
  17806. bp := tls.Alloc(112)
  17807. defer tls.Free(112)
  17808. var xcb_ret Txcb_void_cookie_t
  17809. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17810. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17811. _ = xcb_ret
  17812. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17813. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17814. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17815. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17816. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17817. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17818. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17819. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17820. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17821. /* char name */
  17822. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17823. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17824. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17825. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17826. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req189)))
  17827. return xcb_ret
  17828. }
  17829. var _xcb_req189 = Txcb_protocol_request_t{
  17830. Fcount: uint64(4),
  17831. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17832. Fisvoid: uint8(1),
  17833. }
  17834. func Xxcb_store_named_color_name(tls *libc.TLS, R uintptr) (r uintptr) {
  17835. return R + libc.UintptrFromInt32(1)*16
  17836. }
  17837. func Xxcb_store_named_color_name_length(tls *libc.TLS, R uintptr) (r int32) {
  17838. return libc.Int32FromUint16((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17839. }
  17840. func Xxcb_store_named_color_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17841. var i Txcb_generic_iterator_t
  17842. _ = i
  17843. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17844. i.Frem = 0
  17845. i.Findex = int32(int64(i.Fdata) - int64(R))
  17846. return i
  17847. }
  17848. func Xxcb_rgb_next(tls *libc.TLS, i uintptr) {
  17849. var p1 uintptr
  17850. _ = p1
  17851. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Frem--
  17852. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  17853. p1 = i + 12
  17854. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  17855. }
  17856. func Xxcb_rgb_end(tls *libc.TLS, i Txcb_rgb_iterator_t) (r Txcb_generic_iterator_t) {
  17857. var ret Txcb_generic_iterator_t
  17858. _ = ret
  17859. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  17860. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17861. ret.Frem = 0
  17862. return ret
  17863. }
  17864. func Xxcb_query_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17865. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17866. var xcb_tmp uintptr
  17867. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17868. xcb_tmp = _buffer
  17869. xcb_buffer_len = uint32(0)
  17870. xcb_block_len = uint32(0)
  17871. xcb_pad = uint32(0)
  17872. xcb_align_to = uint32(0)
  17873. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17874. xcb_tmp += uintptr(xcb_block_len)
  17875. xcb_buffer_len += xcb_block_len
  17876. xcb_block_len = uint32(0)
  17877. /* pixels */
  17878. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17879. xcb_tmp += uintptr(xcb_block_len)
  17880. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17881. /* insert padding */
  17882. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17883. xcb_buffer_len += xcb_block_len + xcb_pad
  17884. if uint32(0) != xcb_pad {
  17885. xcb_tmp += uintptr(xcb_pad)
  17886. xcb_pad = uint32(0)
  17887. }
  17888. xcb_block_len = uint32(0)
  17889. return libc.Int32FromUint32(xcb_buffer_len)
  17890. }
  17891. 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) {
  17892. bp := tls.Alloc(112)
  17893. defer tls.Free(112)
  17894. var xcb_ret Txcb_query_colors_cookie_t
  17895. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17896. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17897. _ = xcb_ret
  17898. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17899. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17900. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17901. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17902. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17903. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17904. /* uint32_t pixels */
  17905. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17906. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17907. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17908. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17909. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req190)))
  17910. return xcb_ret
  17911. }
  17912. var _xcb_req190 = Txcb_protocol_request_t{
  17913. Fcount: uint64(4),
  17914. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17915. }
  17916. 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) {
  17917. bp := tls.Alloc(112)
  17918. defer tls.Free(112)
  17919. var xcb_ret Txcb_query_colors_cookie_t
  17920. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17921. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17922. _ = xcb_ret
  17923. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17924. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17925. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17926. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17927. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17928. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17929. /* uint32_t pixels */
  17930. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17931. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17932. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17933. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17934. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req191)))
  17935. return xcb_ret
  17936. }
  17937. var _xcb_req191 = Txcb_protocol_request_t{
  17938. Fcount: uint64(4),
  17939. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17940. }
  17941. func Xxcb_query_colors_colors(tls *libc.TLS, R uintptr) (r uintptr) {
  17942. return R + libc.UintptrFromInt32(1)*32
  17943. }
  17944. func Xxcb_query_colors_colors_length(tls *libc.TLS, R uintptr) (r int32) {
  17945. return libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  17946. }
  17947. func Xxcb_query_colors_colors_iterator(tls *libc.TLS, R uintptr) (r Txcb_rgb_iterator_t) {
  17948. var i Txcb_rgb_iterator_t
  17949. _ = i
  17950. i.Fdata = R + libc.UintptrFromInt32(1)*32
  17951. i.Frem = libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  17952. i.Findex = int32(int64(i.Fdata) - int64(R))
  17953. return i
  17954. }
  17955. func Xxcb_query_colors_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_colors_cookie_t, e uintptr) (r uintptr) {
  17956. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17957. }
  17958. func Xxcb_lookup_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17959. var _aux, xcb_tmp uintptr
  17960. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17961. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17962. xcb_tmp = _buffer
  17963. _aux = _buffer
  17964. xcb_buffer_len = uint32(0)
  17965. xcb_block_len = uint32(0)
  17966. xcb_pad = uint32(0)
  17967. xcb_align_to = uint32(0)
  17968. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17969. xcb_tmp += uintptr(xcb_block_len)
  17970. xcb_buffer_len += xcb_block_len
  17971. xcb_block_len = uint32(0)
  17972. /* name */
  17973. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_lookup_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17974. xcb_tmp += uintptr(xcb_block_len)
  17975. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17976. /* insert padding */
  17977. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17978. xcb_buffer_len += xcb_block_len + xcb_pad
  17979. if uint32(0) != xcb_pad {
  17980. xcb_tmp += uintptr(xcb_pad)
  17981. xcb_pad = uint32(0)
  17982. }
  17983. xcb_block_len = uint32(0)
  17984. return libc.Int32FromUint32(xcb_buffer_len)
  17985. }
  17986. 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) {
  17987. bp := tls.Alloc(112)
  17988. defer tls.Free(112)
  17989. var xcb_ret Txcb_lookup_color_cookie_t
  17990. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  17991. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17992. _ = xcb_ret
  17993. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17994. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17995. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17996. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17997. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17998. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17999. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18000. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18001. /* char name */
  18002. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18003. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18004. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18005. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18006. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req192)))
  18007. return xcb_ret
  18008. }
  18009. var _xcb_req192 = Txcb_protocol_request_t{
  18010. Fcount: uint64(4),
  18011. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18012. }
  18013. 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) {
  18014. bp := tls.Alloc(112)
  18015. defer tls.Free(112)
  18016. var xcb_ret Txcb_lookup_color_cookie_t
  18017. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  18018. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18019. _ = xcb_ret
  18020. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18021. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18022. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18023. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  18024. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18025. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18026. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18027. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18028. /* char name */
  18029. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18030. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18031. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18032. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18033. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req193)))
  18034. return xcb_ret
  18035. }
  18036. var _xcb_req193 = Txcb_protocol_request_t{
  18037. Fcount: uint64(4),
  18038. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18039. }
  18040. func Xxcb_lookup_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_lookup_color_cookie_t, e uintptr) (r uintptr) {
  18041. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18042. }
  18043. 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) {
  18044. bp := tls.Alloc(96)
  18045. defer tls.Free(96)
  18046. var xcb_ret Txcb_void_cookie_t
  18047. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18048. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18049. _ = xcb_ret
  18050. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18051. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18052. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18053. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18054. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18055. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18056. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18057. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18058. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18059. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18060. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18061. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18062. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18066. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req194)))
  18067. return xcb_ret
  18068. }
  18069. var _xcb_req194 = Txcb_protocol_request_t{
  18070. Fcount: uint64(2),
  18071. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18072. Fisvoid: uint8(1),
  18073. }
  18074. 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) {
  18075. bp := tls.Alloc(96)
  18076. defer tls.Free(96)
  18077. var xcb_ret Txcb_void_cookie_t
  18078. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18079. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18080. _ = xcb_ret
  18081. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18082. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18083. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18084. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18085. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18086. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18087. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18088. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18089. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18090. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18091. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18092. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18093. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18094. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18095. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18096. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18097. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req195)))
  18098. return xcb_ret
  18099. }
  18100. var _xcb_req195 = Txcb_protocol_request_t{
  18101. Fcount: uint64(2),
  18102. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18103. Fisvoid: uint8(1),
  18104. }
  18105. 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) {
  18106. bp := tls.Alloc(96)
  18107. defer tls.Free(96)
  18108. var xcb_ret Txcb_void_cookie_t
  18109. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18110. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18111. _ = xcb_ret
  18112. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18113. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18114. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18115. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18116. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18117. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18118. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18119. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18120. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18121. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18122. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18123. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18126. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18127. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18128. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req196)))
  18129. return xcb_ret
  18130. }
  18131. var _xcb_req196 = Txcb_protocol_request_t{
  18132. Fcount: uint64(2),
  18133. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18134. Fisvoid: uint8(1),
  18135. }
  18136. 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) {
  18137. bp := tls.Alloc(96)
  18138. defer tls.Free(96)
  18139. var xcb_ret Txcb_void_cookie_t
  18140. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18141. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18142. _ = xcb_ret
  18143. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18144. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18145. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18146. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18147. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18148. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18149. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18150. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18151. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18152. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18153. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18154. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18156. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18159. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req197)))
  18160. return xcb_ret
  18161. }
  18162. var _xcb_req197 = Txcb_protocol_request_t{
  18163. Fcount: uint64(2),
  18164. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18165. Fisvoid: uint8(1),
  18166. }
  18167. func Xxcb_free_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18168. bp := tls.Alloc(80)
  18169. defer tls.Free(80)
  18170. var xcb_ret Txcb_void_cookie_t
  18171. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18172. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18173. _ = xcb_ret
  18174. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18175. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18176. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18177. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18178. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18180. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req198)))
  18181. return xcb_ret
  18182. }
  18183. var _xcb_req198 = Txcb_protocol_request_t{
  18184. Fcount: uint64(2),
  18185. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18186. Fisvoid: uint8(1),
  18187. }
  18188. func Xxcb_free_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18189. bp := tls.Alloc(80)
  18190. defer tls.Free(80)
  18191. var xcb_ret Txcb_void_cookie_t
  18192. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18193. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18194. _ = xcb_ret
  18195. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18196. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18197. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18201. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req199)))
  18202. return xcb_ret
  18203. }
  18204. var _xcb_req199 = Txcb_protocol_request_t{
  18205. Fcount: uint64(2),
  18206. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18207. Fisvoid: uint8(1),
  18208. }
  18209. 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) {
  18210. bp := tls.Alloc(96)
  18211. defer tls.Free(96)
  18212. var xcb_ret Txcb_void_cookie_t
  18213. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18214. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18215. _ = xcb_ret
  18216. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18217. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18218. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18219. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18220. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18221. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18222. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18223. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18224. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18225. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18226. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18227. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18228. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req200)))
  18229. return xcb_ret
  18230. }
  18231. var _xcb_req200 = Txcb_protocol_request_t{
  18232. Fcount: uint64(2),
  18233. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18234. Fisvoid: uint8(1),
  18235. }
  18236. 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) {
  18237. bp := tls.Alloc(96)
  18238. defer tls.Free(96)
  18239. var xcb_ret Txcb_void_cookie_t
  18240. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18241. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18242. _ = xcb_ret
  18243. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18244. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18245. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18246. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18247. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18248. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18249. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18250. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18251. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18252. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18253. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18254. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18255. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req201)))
  18256. return xcb_ret
  18257. }
  18258. var _xcb_req201 = Txcb_protocol_request_t{
  18259. Fcount: uint64(2),
  18260. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18261. Fisvoid: uint8(1),
  18262. }
  18263. 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) {
  18264. bp := tls.Alloc(80)
  18265. defer tls.Free(80)
  18266. var xcb_ret Txcb_query_best_size_cookie_t
  18267. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18268. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18269. _ = xcb_ret
  18270. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18271. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18272. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18273. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18274. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18275. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18276. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18278. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req202)))
  18279. return xcb_ret
  18280. }
  18281. var _xcb_req202 = Txcb_protocol_request_t{
  18282. Fcount: uint64(2),
  18283. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18284. }
  18285. 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) {
  18286. bp := tls.Alloc(80)
  18287. defer tls.Free(80)
  18288. var xcb_ret Txcb_query_best_size_cookie_t
  18289. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18290. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18291. _ = xcb_ret
  18292. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18293. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18294. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18295. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18296. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18300. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req203)))
  18301. return xcb_ret
  18302. }
  18303. var _xcb_req203 = Txcb_protocol_request_t{
  18304. Fcount: uint64(2),
  18305. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18306. }
  18307. func Xxcb_query_best_size_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_best_size_cookie_t, e uintptr) (r uintptr) {
  18308. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18309. }
  18310. func Xxcb_query_extension_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18311. var _aux, xcb_tmp uintptr
  18312. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18313. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18314. xcb_tmp = _buffer
  18315. _aux = _buffer
  18316. xcb_buffer_len = uint32(0)
  18317. xcb_block_len = uint32(0)
  18318. xcb_pad = uint32(0)
  18319. xcb_align_to = uint32(0)
  18320. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18321. xcb_tmp += uintptr(xcb_block_len)
  18322. xcb_buffer_len += xcb_block_len
  18323. xcb_block_len = uint32(0)
  18324. /* name */
  18325. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_extension_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  18326. xcb_tmp += uintptr(xcb_block_len)
  18327. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18328. /* insert padding */
  18329. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18330. xcb_buffer_len += xcb_block_len + xcb_pad
  18331. if uint32(0) != xcb_pad {
  18332. xcb_tmp += uintptr(xcb_pad)
  18333. xcb_pad = uint32(0)
  18334. }
  18335. xcb_block_len = uint32(0)
  18336. return libc.Int32FromUint32(xcb_buffer_len)
  18337. }
  18338. func Xxcb_query_extension(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18339. bp := tls.Alloc(112)
  18340. defer tls.Free(112)
  18341. var xcb_ret Txcb_query_extension_cookie_t
  18342. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18343. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18344. _ = xcb_ret
  18345. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18346. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18347. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18348. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18349. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18350. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18351. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18352. /* char name */
  18353. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18354. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18355. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18356. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18357. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req204)))
  18358. return xcb_ret
  18359. }
  18360. var _xcb_req204 = Txcb_protocol_request_t{
  18361. Fcount: uint64(4),
  18362. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18363. }
  18364. func Xxcb_query_extension_unchecked(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18365. bp := tls.Alloc(112)
  18366. defer tls.Free(112)
  18367. var xcb_ret Txcb_query_extension_cookie_t
  18368. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18369. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18370. _ = xcb_ret
  18371. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18372. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18373. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18374. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18375. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18376. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18377. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18378. /* char name */
  18379. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18380. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18381. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18382. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18383. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req205)))
  18384. return xcb_ret
  18385. }
  18386. var _xcb_req205 = Txcb_protocol_request_t{
  18387. Fcount: uint64(4),
  18388. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18389. }
  18390. func Xxcb_query_extension_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_extension_cookie_t, e uintptr) (r uintptr) {
  18391. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18392. }
  18393. func Xxcb_list_extensions_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18394. var _aux, xcb_tmp uintptr
  18395. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  18396. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  18397. xcb_tmp = _buffer
  18398. _aux = _buffer
  18399. xcb_buffer_len = uint32(0)
  18400. xcb_block_len = uint32(0)
  18401. xcb_pad = uint32(0)
  18402. xcb_align_to = uint32(0)
  18403. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18404. xcb_tmp += uintptr(xcb_block_len)
  18405. xcb_buffer_len += xcb_block_len
  18406. xcb_block_len = uint32(0)
  18407. /* names */
  18408. i = uint32(0)
  18409. for {
  18410. if !(i < uint32((*Txcb_list_extensions_reply_t)(unsafe.Pointer(_aux)).Fnames_len)) {
  18411. break
  18412. }
  18413. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  18414. xcb_block_len += xcb_tmp_len
  18415. xcb_tmp += uintptr(xcb_tmp_len)
  18416. goto _1
  18417. _1:
  18418. ;
  18419. i++
  18420. }
  18421. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18422. /* insert padding */
  18423. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18424. xcb_buffer_len += xcb_block_len + xcb_pad
  18425. if uint32(0) != xcb_pad {
  18426. xcb_tmp += uintptr(xcb_pad)
  18427. xcb_pad = uint32(0)
  18428. }
  18429. xcb_block_len = uint32(0)
  18430. return libc.Int32FromUint32(xcb_buffer_len)
  18431. }
  18432. func Xxcb_list_extensions(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18433. bp := tls.Alloc(80)
  18434. defer tls.Free(80)
  18435. var xcb_ret Txcb_list_extensions_cookie_t
  18436. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18437. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18438. _ = xcb_ret
  18439. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18440. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18441. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18442. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18443. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18444. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req206)))
  18445. return xcb_ret
  18446. }
  18447. var _xcb_req206 = Txcb_protocol_request_t{
  18448. Fcount: uint64(2),
  18449. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18450. }
  18451. func Xxcb_list_extensions_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18452. bp := tls.Alloc(80)
  18453. defer tls.Free(80)
  18454. var xcb_ret Txcb_list_extensions_cookie_t
  18455. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18456. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18457. _ = xcb_ret
  18458. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18459. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18460. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18461. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18462. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18463. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req207)))
  18464. return xcb_ret
  18465. }
  18466. var _xcb_req207 = Txcb_protocol_request_t{
  18467. Fcount: uint64(2),
  18468. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18469. }
  18470. func Xxcb_list_extensions_names_length(tls *libc.TLS, R uintptr) (r int32) {
  18471. return libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18472. }
  18473. func Xxcb_list_extensions_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  18474. var i Txcb_str_iterator_t
  18475. _ = i
  18476. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18477. i.Frem = libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18478. i.Findex = int32(int64(i.Fdata) - int64(R))
  18479. return i
  18480. }
  18481. func Xxcb_list_extensions_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_extensions_cookie_t, e uintptr) (r uintptr) {
  18482. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18483. }
  18484. func Xxcb_change_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18485. var _aux, xcb_tmp uintptr
  18486. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18487. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18488. xcb_tmp = _buffer
  18489. _aux = _buffer
  18490. xcb_buffer_len = uint32(0)
  18491. xcb_block_len = uint32(0)
  18492. xcb_pad = uint32(0)
  18493. xcb_align_to = uint32(0)
  18494. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18495. xcb_tmp += uintptr(xcb_block_len)
  18496. xcb_buffer_len += xcb_block_len
  18497. xcb_block_len = uint32(0)
  18498. /* keysyms */
  18499. 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))
  18500. xcb_tmp += uintptr(xcb_block_len)
  18501. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18502. /* insert padding */
  18503. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18504. xcb_buffer_len += xcb_block_len + xcb_pad
  18505. if uint32(0) != xcb_pad {
  18506. xcb_tmp += uintptr(xcb_pad)
  18507. xcb_pad = uint32(0)
  18508. }
  18509. xcb_block_len = uint32(0)
  18510. return libc.Int32FromUint32(xcb_buffer_len)
  18511. }
  18512. 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) {
  18513. bp := tls.Alloc(112)
  18514. defer tls.Free(112)
  18515. var xcb_ret Txcb_void_cookie_t
  18516. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18517. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18518. _ = xcb_ret
  18519. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18520. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18521. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18522. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18523. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18524. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18525. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18526. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18527. /* xcb_keysym_t keysyms */
  18528. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18529. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18530. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18531. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18532. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req208)))
  18533. return xcb_ret
  18534. }
  18535. var _xcb_req208 = Txcb_protocol_request_t{
  18536. Fcount: uint64(4),
  18537. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18538. Fisvoid: uint8(1),
  18539. }
  18540. 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) {
  18541. bp := tls.Alloc(112)
  18542. defer tls.Free(112)
  18543. var xcb_ret Txcb_void_cookie_t
  18544. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18545. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18546. _ = xcb_ret
  18547. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18548. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18549. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18550. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18551. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18552. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18553. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18554. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18555. /* xcb_keysym_t keysyms */
  18556. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18557. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18558. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18559. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18560. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req209)))
  18561. return xcb_ret
  18562. }
  18563. var _xcb_req209 = Txcb_protocol_request_t{
  18564. Fcount: uint64(4),
  18565. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18566. Fisvoid: uint8(1),
  18567. }
  18568. func Xxcb_change_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18569. return R + libc.UintptrFromInt32(1)*8
  18570. }
  18571. func Xxcb_change_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18572. 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)
  18573. }
  18574. func Xxcb_change_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18575. var i Txcb_generic_iterator_t
  18576. _ = i
  18577. 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
  18578. i.Frem = 0
  18579. i.Findex = int32(int64(i.Fdata) - int64(R))
  18580. return i
  18581. }
  18582. func Xxcb_get_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18583. var _aux, xcb_tmp uintptr
  18584. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18585. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18586. xcb_tmp = _buffer
  18587. _aux = _buffer
  18588. xcb_buffer_len = uint32(0)
  18589. xcb_block_len = uint32(0)
  18590. xcb_pad = uint32(0)
  18591. xcb_align_to = uint32(0)
  18592. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18593. xcb_tmp += uintptr(xcb_block_len)
  18594. xcb_buffer_len += xcb_block_len
  18595. xcb_block_len = uint32(0)
  18596. /* keysyms */
  18597. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(_aux)).Flength)*libc.Uint64FromInt64(4))
  18598. xcb_tmp += uintptr(xcb_block_len)
  18599. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18600. /* insert padding */
  18601. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18602. xcb_buffer_len += xcb_block_len + xcb_pad
  18603. if uint32(0) != xcb_pad {
  18604. xcb_tmp += uintptr(xcb_pad)
  18605. xcb_pad = uint32(0)
  18606. }
  18607. xcb_block_len = uint32(0)
  18608. return libc.Int32FromUint32(xcb_buffer_len)
  18609. }
  18610. 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) {
  18611. bp := tls.Alloc(80)
  18612. defer tls.Free(80)
  18613. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18614. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18615. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18616. _ = xcb_ret
  18617. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18618. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18619. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18620. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18621. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18622. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18623. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18624. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req210)))
  18625. return xcb_ret
  18626. }
  18627. var _xcb_req210 = Txcb_protocol_request_t{
  18628. Fcount: uint64(2),
  18629. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18630. }
  18631. 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) {
  18632. bp := tls.Alloc(80)
  18633. defer tls.Free(80)
  18634. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18635. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18636. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18637. _ = xcb_ret
  18638. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18639. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18640. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18641. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18642. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18643. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18644. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18645. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req211)))
  18646. return xcb_ret
  18647. }
  18648. var _xcb_req211 = Txcb_protocol_request_t{
  18649. Fcount: uint64(2),
  18650. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18651. }
  18652. func Xxcb_get_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18653. return R + libc.UintptrFromInt32(1)*32
  18654. }
  18655. func Xxcb_get_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18656. return libc.Int32FromUint32((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)
  18657. }
  18658. func Xxcb_get_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18659. var i Txcb_generic_iterator_t
  18660. _ = i
  18661. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)*4
  18662. i.Frem = 0
  18663. i.Findex = int32(int64(i.Fdata) - int64(R))
  18664. return i
  18665. }
  18666. func Xxcb_get_keyboard_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_mapping_cookie_t, e uintptr) (r uintptr) {
  18667. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18668. }
  18669. func Xxcb_change_keyboard_control_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18670. bp := tls.Alloc(16)
  18671. defer tls.Free(16)
  18672. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  18673. var xcb_out, xcb_tmp uintptr
  18674. var xcb_parts [9]Tiovec
  18675. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  18676. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  18677. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  18678. xcb_buffer_len = uint32(0)
  18679. xcb_align_to = uint32(0)
  18680. xcb_padding_offset = uint32(0)
  18681. xcb_pad = uint32(0)
  18682. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  18683. xcb_parts_idx = uint32(0)
  18684. xcb_block_len = uint32(0)
  18685. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18686. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18687. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  18688. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18689. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18690. xcb_parts_idx++
  18691. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18692. }
  18693. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18694. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18695. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  18696. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18697. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18698. xcb_parts_idx++
  18699. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18700. }
  18701. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18702. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18703. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  18704. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18705. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18706. xcb_parts_idx++
  18707. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18708. }
  18709. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18710. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18711. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  18712. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18713. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18714. xcb_parts_idx++
  18715. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18716. }
  18717. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18718. /* xcb_change_keyboard_control_value_list_t.led */
  18719. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  18720. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18721. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18722. xcb_parts_idx++
  18723. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18724. }
  18725. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18726. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18727. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  18728. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18729. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18730. xcb_parts_idx++
  18731. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18732. }
  18733. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18734. /* xcb_change_keyboard_control_value_list_t.key */
  18735. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  18736. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18737. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18738. xcb_parts_idx++
  18739. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18740. }
  18741. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18742. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18743. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  18744. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18745. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18746. xcb_parts_idx++
  18747. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18748. }
  18749. /* insert padding */
  18750. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18751. xcb_buffer_len += xcb_block_len + xcb_pad
  18752. if uint32(0) != xcb_pad {
  18753. xcb_parts[xcb_parts_idx].Fiov_base = bp
  18754. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  18755. xcb_parts_idx++
  18756. xcb_pad = uint32(0)
  18757. }
  18758. xcb_block_len = uint32(0)
  18759. xcb_padding_offset = uint32(0)
  18760. if libc.UintptrFromInt32(0) == xcb_out {
  18761. /* allocate memory */
  18762. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  18763. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  18764. }
  18765. xcb_tmp = xcb_out
  18766. i = uint32(0)
  18767. for {
  18768. if !(i < xcb_parts_idx) {
  18769. break
  18770. }
  18771. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  18772. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  18773. }
  18774. if uint64(0) != xcb_parts[i].Fiov_len {
  18775. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  18776. }
  18777. goto _1
  18778. _1:
  18779. ;
  18780. i++
  18781. }
  18782. return libc.Int32FromUint32(xcb_buffer_len)
  18783. }
  18784. func Xxcb_change_keyboard_control_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18785. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  18786. var xcb_tmp uintptr
  18787. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  18788. xcb_tmp = _buffer
  18789. xcb_buffer_len = uint32(0)
  18790. xcb_block_len = uint32(0)
  18791. xcb_pad = uint32(0)
  18792. xcb_align_to = uint32(0)
  18793. xcb_padding_offset = uint32(0)
  18794. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18795. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18796. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey_click_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18797. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18798. xcb_tmp += uintptr(4)
  18799. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18800. }
  18801. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18802. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18803. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18804. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18805. xcb_tmp += uintptr(4)
  18806. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18807. }
  18808. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18809. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18810. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_pitch = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18811. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18812. xcb_tmp += uintptr(4)
  18813. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18814. }
  18815. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18816. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18817. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_duration = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18818. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18819. xcb_tmp += uintptr(4)
  18820. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18821. }
  18822. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18823. /* xcb_change_keyboard_control_value_list_t.led */
  18824. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18825. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18826. xcb_tmp += uintptr(4)
  18827. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18828. }
  18829. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18830. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18831. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18832. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18833. xcb_tmp += uintptr(4)
  18834. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18835. }
  18836. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18837. /* xcb_change_keyboard_control_value_list_t.key */
  18838. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey = *(*Txcb_keycode32_t)(unsafe.Pointer(xcb_tmp))
  18839. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18840. xcb_tmp += uintptr(4)
  18841. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18842. }
  18843. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18844. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18845. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fauto_repeat_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18846. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18847. xcb_tmp += uintptr(4)
  18848. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18849. }
  18850. /* insert padding */
  18851. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18852. xcb_buffer_len += xcb_block_len + xcb_pad
  18853. if uint32(0) != xcb_pad {
  18854. xcb_tmp += uintptr(xcb_pad)
  18855. xcb_pad = uint32(0)
  18856. }
  18857. xcb_block_len = uint32(0)
  18858. xcb_padding_offset = uint32(0)
  18859. return libc.Int32FromUint32(xcb_buffer_len)
  18860. }
  18861. func Xxcb_change_keyboard_control_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  18862. bp := tls.Alloc(32)
  18863. defer tls.Free(32)
  18864. var _ /* _aux at bp+0 */ Txcb_change_keyboard_control_value_list_t
  18865. return Xxcb_change_keyboard_control_value_list_unpack(tls, _buffer, value_mask, bp)
  18866. }
  18867. func Xxcb_change_keyboard_control_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18868. var _aux, xcb_tmp uintptr
  18869. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18870. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18871. xcb_tmp = _buffer
  18872. _aux = _buffer
  18873. xcb_buffer_len = uint32(0)
  18874. xcb_block_len = uint32(0)
  18875. xcb_pad = uint32(0)
  18876. xcb_align_to = uint32(0)
  18877. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18878. xcb_tmp += uintptr(xcb_block_len)
  18879. xcb_buffer_len += xcb_block_len
  18880. xcb_block_len = uint32(0)
  18881. /* value_list */
  18882. 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))
  18883. xcb_tmp += uintptr(xcb_block_len)
  18884. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18885. /* insert padding */
  18886. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18887. xcb_buffer_len += xcb_block_len + xcb_pad
  18888. if uint32(0) != xcb_pad {
  18889. xcb_tmp += uintptr(xcb_pad)
  18890. xcb_pad = uint32(0)
  18891. }
  18892. xcb_block_len = uint32(0)
  18893. return libc.Int32FromUint32(xcb_buffer_len)
  18894. }
  18895. func Xxcb_change_keyboard_control_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18896. bp := tls.Alloc(96)
  18897. defer tls.Free(96)
  18898. var xcb_ret Txcb_void_cookie_t
  18899. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18900. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18901. _ = xcb_ret
  18902. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18903. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18904. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18905. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18906. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18907. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18908. /* xcb_change_keyboard_control_value_list_t value_list */
  18909. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18910. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18911. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req212)))
  18912. return xcb_ret
  18913. }
  18914. var _xcb_req212 = Txcb_protocol_request_t{
  18915. Fcount: uint64(3),
  18916. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18917. Fisvoid: uint8(1),
  18918. }
  18919. func Xxcb_change_keyboard_control(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18920. bp := tls.Alloc(96)
  18921. defer tls.Free(96)
  18922. var xcb_ret Txcb_void_cookie_t
  18923. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18924. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18925. _ = xcb_ret
  18926. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18927. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18928. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18929. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18930. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18931. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18932. /* xcb_change_keyboard_control_value_list_t value_list */
  18933. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18934. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18935. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req213)))
  18936. return xcb_ret
  18937. }
  18938. var _xcb_req213 = Txcb_protocol_request_t{
  18939. Fcount: uint64(3),
  18940. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18941. Fisvoid: uint8(1),
  18942. }
  18943. func Xxcb_change_keyboard_control_aux_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18944. bp := tls.Alloc(96)
  18945. defer tls.Free(96)
  18946. var xcb_ret Txcb_void_cookie_t
  18947. var _ /* xcb_aux0 at bp+88 */ uintptr
  18948. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18949. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18950. _ = xcb_ret
  18951. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  18952. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18953. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18954. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18955. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18956. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18957. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18958. /* xcb_change_keyboard_control_value_list_t value_list */
  18959. (*(*[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))
  18960. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  18961. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req214)))
  18962. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  18963. return xcb_ret
  18964. }
  18965. var _xcb_req214 = Txcb_protocol_request_t{
  18966. Fcount: uint64(3),
  18967. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18968. Fisvoid: uint8(1),
  18969. }
  18970. func Xxcb_change_keyboard_control_aux(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18971. bp := tls.Alloc(96)
  18972. defer tls.Free(96)
  18973. var xcb_ret Txcb_void_cookie_t
  18974. var _ /* xcb_aux0 at bp+88 */ uintptr
  18975. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18976. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18977. _ = xcb_ret
  18978. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  18979. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18980. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18981. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18982. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18983. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18984. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18985. /* xcb_change_keyboard_control_value_list_t value_list */
  18986. (*(*[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))
  18987. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  18988. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req215)))
  18989. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  18990. return xcb_ret
  18991. }
  18992. var _xcb_req215 = Txcb_protocol_request_t{
  18993. Fcount: uint64(3),
  18994. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18995. Fisvoid: uint8(1),
  18996. }
  18997. func Xxcb_change_keyboard_control_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  18998. return R + libc.UintptrFromInt32(1)*8
  18999. }
  19000. func Xxcb_get_keyboard_control(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19001. bp := tls.Alloc(80)
  19002. defer tls.Free(80)
  19003. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19004. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19005. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19006. _ = xcb_ret
  19007. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19008. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19009. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  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_req216)))
  19013. return xcb_ret
  19014. }
  19015. var _xcb_req216 = Txcb_protocol_request_t{
  19016. Fcount: uint64(2),
  19017. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19018. }
  19019. func Xxcb_get_keyboard_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19020. bp := tls.Alloc(80)
  19021. defer tls.Free(80)
  19022. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19023. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19024. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19025. _ = xcb_ret
  19026. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19027. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19028. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19029. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19030. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19031. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req217)))
  19032. return xcb_ret
  19033. }
  19034. var _xcb_req217 = Txcb_protocol_request_t{
  19035. Fcount: uint64(2),
  19036. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19037. }
  19038. func Xxcb_get_keyboard_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_control_cookie_t, e uintptr) (r uintptr) {
  19039. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19040. }
  19041. func Xxcb_bell_checked(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19042. bp := tls.Alloc(80)
  19043. defer tls.Free(80)
  19044. var xcb_ret Txcb_void_cookie_t
  19045. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19046. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19047. _ = xcb_ret
  19048. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19049. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19050. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19051. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19052. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19053. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req218)))
  19054. return xcb_ret
  19055. }
  19056. var _xcb_req218 = Txcb_protocol_request_t{
  19057. Fcount: uint64(2),
  19058. Fopcode: uint8(m_XCB_BELL),
  19059. Fisvoid: uint8(1),
  19060. }
  19061. func Xxcb_bell(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19062. bp := tls.Alloc(80)
  19063. defer tls.Free(80)
  19064. var xcb_ret Txcb_void_cookie_t
  19065. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19066. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19067. _ = xcb_ret
  19068. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19069. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19070. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19071. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19073. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req219)))
  19074. return xcb_ret
  19075. }
  19076. var _xcb_req219 = Txcb_protocol_request_t{
  19077. Fcount: uint64(2),
  19078. Fopcode: uint8(m_XCB_BELL),
  19079. Fisvoid: uint8(1),
  19080. }
  19081. 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) {
  19082. bp := tls.Alloc(80)
  19083. defer tls.Free(80)
  19084. var xcb_ret Txcb_void_cookie_t
  19085. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19086. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19087. _ = xcb_ret
  19088. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19089. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19090. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19091. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19092. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19093. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19094. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19095. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19096. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19097. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19098. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req220)))
  19099. return xcb_ret
  19100. }
  19101. var _xcb_req220 = Txcb_protocol_request_t{
  19102. Fcount: uint64(2),
  19103. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19104. Fisvoid: uint8(1),
  19105. }
  19106. 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) {
  19107. bp := tls.Alloc(80)
  19108. defer tls.Free(80)
  19109. var xcb_ret Txcb_void_cookie_t
  19110. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19111. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19112. _ = xcb_ret
  19113. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19114. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19115. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19116. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19117. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19118. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19119. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19120. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19121. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19122. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19123. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req221)))
  19124. return xcb_ret
  19125. }
  19126. var _xcb_req221 = Txcb_protocol_request_t{
  19127. Fcount: uint64(2),
  19128. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19129. Fisvoid: uint8(1),
  19130. }
  19131. func Xxcb_get_pointer_control(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19132. bp := tls.Alloc(80)
  19133. defer tls.Free(80)
  19134. var xcb_ret Txcb_get_pointer_control_cookie_t
  19135. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19136. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19137. _ = xcb_ret
  19138. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19143. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req222)))
  19144. return xcb_ret
  19145. }
  19146. var _xcb_req222 = Txcb_protocol_request_t{
  19147. Fcount: uint64(2),
  19148. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19149. }
  19150. func Xxcb_get_pointer_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19151. bp := tls.Alloc(80)
  19152. defer tls.Free(80)
  19153. var xcb_ret Txcb_get_pointer_control_cookie_t
  19154. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19155. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19156. _ = xcb_ret
  19157. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19159. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19160. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19162. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req223)))
  19163. return xcb_ret
  19164. }
  19165. var _xcb_req223 = Txcb_protocol_request_t{
  19166. Fcount: uint64(2),
  19167. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19168. }
  19169. func Xxcb_get_pointer_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_control_cookie_t, e uintptr) (r uintptr) {
  19170. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19171. }
  19172. 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) {
  19173. bp := tls.Alloc(80)
  19174. defer tls.Free(80)
  19175. var xcb_ret Txcb_void_cookie_t
  19176. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19177. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19178. _ = xcb_ret
  19179. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19180. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19181. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19182. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19183. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19184. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19185. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19186. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19187. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19188. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req224)))
  19189. return xcb_ret
  19190. }
  19191. var _xcb_req224 = Txcb_protocol_request_t{
  19192. Fcount: uint64(2),
  19193. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19194. Fisvoid: uint8(1),
  19195. }
  19196. 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) {
  19197. bp := tls.Alloc(80)
  19198. defer tls.Free(80)
  19199. var xcb_ret Txcb_void_cookie_t
  19200. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19201. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19202. _ = xcb_ret
  19203. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19204. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19205. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19206. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19207. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19208. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19209. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19210. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19212. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req225)))
  19213. return xcb_ret
  19214. }
  19215. var _xcb_req225 = Txcb_protocol_request_t{
  19216. Fcount: uint64(2),
  19217. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19218. Fisvoid: uint8(1),
  19219. }
  19220. func Xxcb_get_screen_saver(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19221. bp := tls.Alloc(80)
  19222. defer tls.Free(80)
  19223. var xcb_ret Txcb_get_screen_saver_cookie_t
  19224. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19225. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19226. _ = xcb_ret
  19227. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19228. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19229. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19230. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19231. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19232. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req226)))
  19233. return xcb_ret
  19234. }
  19235. var _xcb_req226 = Txcb_protocol_request_t{
  19236. Fcount: uint64(2),
  19237. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19238. }
  19239. func Xxcb_get_screen_saver_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19240. bp := tls.Alloc(80)
  19241. defer tls.Free(80)
  19242. var xcb_ret Txcb_get_screen_saver_cookie_t
  19243. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19244. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19245. _ = xcb_ret
  19246. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19247. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19248. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19249. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19250. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19251. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req227)))
  19252. return xcb_ret
  19253. }
  19254. var _xcb_req227 = Txcb_protocol_request_t{
  19255. Fcount: uint64(2),
  19256. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19257. }
  19258. func Xxcb_get_screen_saver_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_screen_saver_cookie_t, e uintptr) (r uintptr) {
  19259. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19260. }
  19261. func Xxcb_change_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19262. var _aux, xcb_tmp uintptr
  19263. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19264. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19265. xcb_tmp = _buffer
  19266. _aux = _buffer
  19267. xcb_buffer_len = uint32(0)
  19268. xcb_block_len = uint32(0)
  19269. xcb_pad = uint32(0)
  19270. xcb_align_to = uint32(0)
  19271. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  19272. xcb_tmp += uintptr(xcb_block_len)
  19273. xcb_buffer_len += xcb_block_len
  19274. xcb_block_len = uint32(0)
  19275. /* address */
  19276. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_hosts_request_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19277. xcb_tmp += uintptr(xcb_block_len)
  19278. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19279. /* insert padding */
  19280. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19281. xcb_buffer_len += xcb_block_len + xcb_pad
  19282. if uint32(0) != xcb_pad {
  19283. xcb_tmp += uintptr(xcb_pad)
  19284. xcb_pad = uint32(0)
  19285. }
  19286. xcb_block_len = uint32(0)
  19287. return libc.Int32FromUint32(xcb_buffer_len)
  19288. }
  19289. 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) {
  19290. bp := tls.Alloc(112)
  19291. defer tls.Free(112)
  19292. var xcb_ret Txcb_void_cookie_t
  19293. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19294. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19295. _ = xcb_ret
  19296. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19297. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19298. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19299. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19300. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19301. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19302. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19303. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19304. /* uint8_t address */
  19305. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19306. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19307. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19309. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req228)))
  19310. return xcb_ret
  19311. }
  19312. var _xcb_req228 = Txcb_protocol_request_t{
  19313. Fcount: uint64(4),
  19314. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19315. Fisvoid: uint8(1),
  19316. }
  19317. 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) {
  19318. bp := tls.Alloc(112)
  19319. defer tls.Free(112)
  19320. var xcb_ret Txcb_void_cookie_t
  19321. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19322. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19323. _ = xcb_ret
  19324. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19325. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19326. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19327. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19328. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19329. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19330. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19331. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19332. /* uint8_t address */
  19333. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19334. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19335. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19336. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19337. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req229)))
  19338. return xcb_ret
  19339. }
  19340. var _xcb_req229 = Txcb_protocol_request_t{
  19341. Fcount: uint64(4),
  19342. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19343. Fisvoid: uint8(1),
  19344. }
  19345. func Xxcb_change_hosts_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19346. return R + libc.UintptrFromInt32(1)*8
  19347. }
  19348. func Xxcb_change_hosts_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19349. return libc.Int32FromUint16((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19350. }
  19351. func Xxcb_change_hosts_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19352. var i Txcb_generic_iterator_t
  19353. _ = i
  19354. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19355. i.Frem = 0
  19356. i.Findex = int32(int64(i.Fdata) - int64(R))
  19357. return i
  19358. }
  19359. func Xxcb_host_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19360. var _aux, xcb_tmp uintptr
  19361. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19362. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19363. xcb_tmp = _buffer
  19364. _aux = _buffer
  19365. xcb_buffer_len = uint32(0)
  19366. xcb_block_len = uint32(0)
  19367. xcb_pad = uint32(0)
  19368. xcb_align_to = uint32(0)
  19369. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19370. xcb_tmp += uintptr(xcb_block_len)
  19371. xcb_buffer_len += xcb_block_len
  19372. xcb_block_len = uint32(0)
  19373. /* address */
  19374. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_host_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19375. xcb_tmp += uintptr(xcb_block_len)
  19376. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19377. xcb_align_to = uint32(4)
  19378. /* insert padding */
  19379. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19380. xcb_buffer_len += xcb_block_len + xcb_pad
  19381. if uint32(0) != xcb_pad {
  19382. xcb_tmp += uintptr(xcb_pad)
  19383. xcb_pad = uint32(0)
  19384. }
  19385. xcb_block_len = uint32(0)
  19386. /* insert padding */
  19387. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19388. xcb_buffer_len += xcb_block_len + xcb_pad
  19389. if uint32(0) != xcb_pad {
  19390. xcb_tmp += uintptr(xcb_pad)
  19391. xcb_pad = uint32(0)
  19392. }
  19393. xcb_block_len = uint32(0)
  19394. return libc.Int32FromUint32(xcb_buffer_len)
  19395. }
  19396. func Xxcb_host_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19397. return R + libc.UintptrFromInt32(1)*4
  19398. }
  19399. func Xxcb_host_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19400. return libc.Int32FromUint16((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19401. }
  19402. func Xxcb_host_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19403. var i Txcb_generic_iterator_t
  19404. _ = i
  19405. i.Fdata = R + libc.UintptrFromInt32(1)*4 + uintptr((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19406. i.Frem = 0
  19407. i.Findex = int32(int64(i.Fdata) - int64(R))
  19408. return i
  19409. }
  19410. func Xxcb_host_next(tls *libc.TLS, i uintptr) {
  19411. var R uintptr
  19412. var child Txcb_generic_iterator_t
  19413. _, _ = R, child
  19414. R = (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata
  19415. child.Fdata = R + uintptr(Xxcb_host_sizeof(tls, R))
  19416. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata))
  19417. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Frem--
  19418. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  19419. }
  19420. func Xxcb_host_end(tls *libc.TLS, _i Txcb_host_iterator_t) (r Txcb_generic_iterator_t) {
  19421. bp := tls.Alloc(16)
  19422. defer tls.Free(16)
  19423. *(*Txcb_host_iterator_t)(unsafe.Pointer(bp)) = _i
  19424. var ret Txcb_generic_iterator_t
  19425. _ = ret
  19426. for (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  19427. Xxcb_host_next(tls, bp)
  19428. }
  19429. ret.Fdata = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Fdata
  19430. ret.Frem = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem
  19431. ret.Findex = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Findex
  19432. return ret
  19433. }
  19434. func Xxcb_list_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19435. var _aux, xcb_tmp uintptr
  19436. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  19437. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  19438. xcb_tmp = _buffer
  19439. _aux = _buffer
  19440. xcb_buffer_len = uint32(0)
  19441. xcb_block_len = uint32(0)
  19442. xcb_pad = uint32(0)
  19443. xcb_align_to = uint32(0)
  19444. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19445. xcb_tmp += uintptr(xcb_block_len)
  19446. xcb_buffer_len += xcb_block_len
  19447. xcb_block_len = uint32(0)
  19448. /* hosts */
  19449. i = uint32(0)
  19450. for {
  19451. if !(i < uint32((*Txcb_list_hosts_reply_t)(unsafe.Pointer(_aux)).Fhosts_len)) {
  19452. break
  19453. }
  19454. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_host_sizeof(tls, xcb_tmp))
  19455. xcb_block_len += xcb_tmp_len
  19456. xcb_tmp += uintptr(xcb_tmp_len)
  19457. goto _1
  19458. _1:
  19459. ;
  19460. i++
  19461. }
  19462. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  19463. /* insert padding */
  19464. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19465. xcb_buffer_len += xcb_block_len + xcb_pad
  19466. if uint32(0) != xcb_pad {
  19467. xcb_tmp += uintptr(xcb_pad)
  19468. xcb_pad = uint32(0)
  19469. }
  19470. xcb_block_len = uint32(0)
  19471. return libc.Int32FromUint32(xcb_buffer_len)
  19472. }
  19473. func Xxcb_list_hosts(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19474. bp := tls.Alloc(80)
  19475. defer tls.Free(80)
  19476. var xcb_ret Txcb_list_hosts_cookie_t
  19477. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19478. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19479. _ = xcb_ret
  19480. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19481. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19482. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19483. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19484. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19485. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req230)))
  19486. return xcb_ret
  19487. }
  19488. var _xcb_req230 = Txcb_protocol_request_t{
  19489. Fcount: uint64(2),
  19490. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19491. }
  19492. func Xxcb_list_hosts_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19493. bp := tls.Alloc(80)
  19494. defer tls.Free(80)
  19495. var xcb_ret Txcb_list_hosts_cookie_t
  19496. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19497. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19498. _ = xcb_ret
  19499. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19500. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19501. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19503. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19504. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req231)))
  19505. return xcb_ret
  19506. }
  19507. var _xcb_req231 = Txcb_protocol_request_t{
  19508. Fcount: uint64(2),
  19509. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19510. }
  19511. func Xxcb_list_hosts_hosts_length(tls *libc.TLS, R uintptr) (r int32) {
  19512. return libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19513. }
  19514. func Xxcb_list_hosts_hosts_iterator(tls *libc.TLS, R uintptr) (r Txcb_host_iterator_t) {
  19515. var i Txcb_host_iterator_t
  19516. _ = i
  19517. i.Fdata = R + libc.UintptrFromInt32(1)*32
  19518. i.Frem = libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19519. i.Findex = int32(int64(i.Fdata) - int64(R))
  19520. return i
  19521. }
  19522. func Xxcb_list_hosts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_hosts_cookie_t, e uintptr) (r uintptr) {
  19523. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19524. }
  19525. func Xxcb_set_access_control_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19526. bp := tls.Alloc(80)
  19527. defer tls.Free(80)
  19528. var xcb_ret Txcb_void_cookie_t
  19529. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19530. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19531. _ = xcb_ret
  19532. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19533. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19534. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19535. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19536. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19537. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req232)))
  19538. return xcb_ret
  19539. }
  19540. var _xcb_req232 = Txcb_protocol_request_t{
  19541. Fcount: uint64(2),
  19542. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19543. Fisvoid: uint8(1),
  19544. }
  19545. func Xxcb_set_access_control(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19546. bp := tls.Alloc(80)
  19547. defer tls.Free(80)
  19548. var xcb_ret Txcb_void_cookie_t
  19549. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19550. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19551. _ = xcb_ret
  19552. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19553. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19554. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19555. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19556. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19557. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req233)))
  19558. return xcb_ret
  19559. }
  19560. var _xcb_req233 = Txcb_protocol_request_t{
  19561. Fcount: uint64(2),
  19562. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19563. Fisvoid: uint8(1),
  19564. }
  19565. func Xxcb_set_close_down_mode_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19566. bp := tls.Alloc(80)
  19567. defer tls.Free(80)
  19568. var xcb_ret Txcb_void_cookie_t
  19569. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19570. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19571. _ = xcb_ret
  19572. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19573. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19574. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19575. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19576. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19577. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req234)))
  19578. return xcb_ret
  19579. }
  19580. var _xcb_req234 = Txcb_protocol_request_t{
  19581. Fcount: uint64(2),
  19582. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19583. Fisvoid: uint8(1),
  19584. }
  19585. func Xxcb_set_close_down_mode(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19586. bp := tls.Alloc(80)
  19587. defer tls.Free(80)
  19588. var xcb_ret Txcb_void_cookie_t
  19589. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19590. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19591. _ = xcb_ret
  19592. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19593. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19594. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19595. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19596. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19597. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req235)))
  19598. return xcb_ret
  19599. }
  19600. var _xcb_req235 = Txcb_protocol_request_t{
  19601. Fcount: uint64(2),
  19602. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19603. Fisvoid: uint8(1),
  19604. }
  19605. func Xxcb_kill_client_checked(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19606. bp := tls.Alloc(80)
  19607. defer tls.Free(80)
  19608. var xcb_ret Txcb_void_cookie_t
  19609. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19610. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19611. _ = xcb_ret
  19612. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19613. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19614. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19615. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19616. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19617. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19618. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req236)))
  19619. return xcb_ret
  19620. }
  19621. var _xcb_req236 = Txcb_protocol_request_t{
  19622. Fcount: uint64(2),
  19623. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19624. Fisvoid: uint8(1),
  19625. }
  19626. func Xxcb_kill_client(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19627. bp := tls.Alloc(80)
  19628. defer tls.Free(80)
  19629. var xcb_ret Txcb_void_cookie_t
  19630. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19631. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19632. _ = xcb_ret
  19633. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19634. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19635. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19636. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19637. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19638. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19639. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req237)))
  19640. return xcb_ret
  19641. }
  19642. var _xcb_req237 = Txcb_protocol_request_t{
  19643. Fcount: uint64(2),
  19644. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19645. Fisvoid: uint8(1),
  19646. }
  19647. func Xxcb_rotate_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19648. var _aux, xcb_tmp uintptr
  19649. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19650. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19651. xcb_tmp = _buffer
  19652. _aux = _buffer
  19653. xcb_buffer_len = uint32(0)
  19654. xcb_block_len = uint32(0)
  19655. xcb_pad = uint32(0)
  19656. xcb_align_to = uint32(0)
  19657. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  19658. xcb_tmp += uintptr(xcb_block_len)
  19659. xcb_buffer_len += xcb_block_len
  19660. xcb_block_len = uint32(0)
  19661. /* atoms */
  19662. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_rotate_properties_request_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  19663. xcb_tmp += uintptr(xcb_block_len)
  19664. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  19665. /* insert padding */
  19666. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19667. xcb_buffer_len += xcb_block_len + xcb_pad
  19668. if uint32(0) != xcb_pad {
  19669. xcb_tmp += uintptr(xcb_pad)
  19670. xcb_pad = uint32(0)
  19671. }
  19672. xcb_block_len = uint32(0)
  19673. return libc.Int32FromUint32(xcb_buffer_len)
  19674. }
  19675. 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) {
  19676. bp := tls.Alloc(112)
  19677. defer tls.Free(112)
  19678. var xcb_ret Txcb_void_cookie_t
  19679. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19680. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19681. _ = xcb_ret
  19682. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19683. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19684. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19685. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19686. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19687. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19688. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19689. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19690. /* xcb_atom_t atoms */
  19691. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19692. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19693. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19694. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19695. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req238)))
  19696. return xcb_ret
  19697. }
  19698. var _xcb_req238 = Txcb_protocol_request_t{
  19699. Fcount: uint64(4),
  19700. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19701. Fisvoid: uint8(1),
  19702. }
  19703. 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) {
  19704. bp := tls.Alloc(112)
  19705. defer tls.Free(112)
  19706. var xcb_ret Txcb_void_cookie_t
  19707. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19708. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19709. _ = xcb_ret
  19710. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19711. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19712. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19713. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19714. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19715. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19716. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19717. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19718. /* xcb_atom_t atoms */
  19719. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19720. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19721. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19722. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19723. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req239)))
  19724. return xcb_ret
  19725. }
  19726. var _xcb_req239 = Txcb_protocol_request_t{
  19727. Fcount: uint64(4),
  19728. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19729. Fisvoid: uint8(1),
  19730. }
  19731. func Xxcb_rotate_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  19732. return R + libc.UintptrFromInt32(1)*12
  19733. }
  19734. func Xxcb_rotate_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  19735. return libc.Int32FromUint16((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)
  19736. }
  19737. func Xxcb_rotate_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19738. var i Txcb_generic_iterator_t
  19739. _ = i
  19740. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)*4
  19741. i.Frem = 0
  19742. i.Findex = int32(int64(i.Fdata) - int64(R))
  19743. return i
  19744. }
  19745. func Xxcb_force_screen_saver_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19746. bp := tls.Alloc(80)
  19747. defer tls.Free(80)
  19748. var xcb_ret Txcb_void_cookie_t
  19749. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19750. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19751. _ = xcb_ret
  19752. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19753. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19754. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19755. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19756. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19757. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req240)))
  19758. return xcb_ret
  19759. }
  19760. var _xcb_req240 = Txcb_protocol_request_t{
  19761. Fcount: uint64(2),
  19762. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19763. Fisvoid: uint8(1),
  19764. }
  19765. func Xxcb_force_screen_saver(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19766. bp := tls.Alloc(80)
  19767. defer tls.Free(80)
  19768. var xcb_ret Txcb_void_cookie_t
  19769. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19770. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19771. _ = xcb_ret
  19772. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19773. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19774. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19777. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req241)))
  19778. return xcb_ret
  19779. }
  19780. var _xcb_req241 = Txcb_protocol_request_t{
  19781. Fcount: uint64(2),
  19782. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19783. Fisvoid: uint8(1),
  19784. }
  19785. func Xxcb_set_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19786. var _aux, xcb_tmp uintptr
  19787. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19788. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19789. xcb_tmp = _buffer
  19790. _aux = _buffer
  19791. xcb_buffer_len = uint32(0)
  19792. xcb_block_len = uint32(0)
  19793. xcb_pad = uint32(0)
  19794. xcb_align_to = uint32(0)
  19795. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19796. xcb_tmp += uintptr(xcb_block_len)
  19797. xcb_buffer_len += xcb_block_len
  19798. xcb_block_len = uint32(0)
  19799. /* map */
  19800. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19801. xcb_tmp += uintptr(xcb_block_len)
  19802. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19803. /* insert padding */
  19804. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19805. xcb_buffer_len += xcb_block_len + xcb_pad
  19806. if uint32(0) != xcb_pad {
  19807. xcb_tmp += uintptr(xcb_pad)
  19808. xcb_pad = uint32(0)
  19809. }
  19810. xcb_block_len = uint32(0)
  19811. return libc.Int32FromUint32(xcb_buffer_len)
  19812. }
  19813. func Xxcb_set_pointer_mapping(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19814. bp := tls.Alloc(112)
  19815. defer tls.Free(112)
  19816. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19817. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19818. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19819. _ = xcb_ret
  19820. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19821. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19822. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19823. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19824. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19825. /* uint8_t map */
  19826. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19827. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19828. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19829. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19830. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req242)))
  19831. return xcb_ret
  19832. }
  19833. var _xcb_req242 = Txcb_protocol_request_t{
  19834. Fcount: uint64(4),
  19835. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19836. }
  19837. func Xxcb_set_pointer_mapping_unchecked(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19838. bp := tls.Alloc(112)
  19839. defer tls.Free(112)
  19840. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19841. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19842. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19843. _ = xcb_ret
  19844. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19845. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19846. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19847. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19848. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19849. /* uint8_t map */
  19850. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19851. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19852. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19853. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19854. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req243)))
  19855. return xcb_ret
  19856. }
  19857. var _xcb_req243 = Txcb_protocol_request_t{
  19858. Fcount: uint64(4),
  19859. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19860. }
  19861. func Xxcb_set_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19862. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19863. }
  19864. func Xxcb_get_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19865. var _aux, xcb_tmp uintptr
  19866. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19867. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19868. xcb_tmp = _buffer
  19869. _aux = _buffer
  19870. xcb_buffer_len = uint32(0)
  19871. xcb_block_len = uint32(0)
  19872. xcb_pad = uint32(0)
  19873. xcb_align_to = uint32(0)
  19874. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19875. xcb_tmp += uintptr(xcb_block_len)
  19876. xcb_buffer_len += xcb_block_len
  19877. xcb_block_len = uint32(0)
  19878. /* map */
  19879. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19880. xcb_tmp += uintptr(xcb_block_len)
  19881. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19882. /* insert padding */
  19883. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19884. xcb_buffer_len += xcb_block_len + xcb_pad
  19885. if uint32(0) != xcb_pad {
  19886. xcb_tmp += uintptr(xcb_pad)
  19887. xcb_pad = uint32(0)
  19888. }
  19889. xcb_block_len = uint32(0)
  19890. return libc.Int32FromUint32(xcb_buffer_len)
  19891. }
  19892. func Xxcb_get_pointer_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19893. bp := tls.Alloc(80)
  19894. defer tls.Free(80)
  19895. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19896. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19897. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19898. _ = xcb_ret
  19899. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19900. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19901. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19902. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19903. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19904. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req244)))
  19905. return xcb_ret
  19906. }
  19907. var _xcb_req244 = Txcb_protocol_request_t{
  19908. Fcount: uint64(2),
  19909. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19910. }
  19911. func Xxcb_get_pointer_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19912. bp := tls.Alloc(80)
  19913. defer tls.Free(80)
  19914. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19915. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19916. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19917. _ = xcb_ret
  19918. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19919. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19920. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19921. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19922. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19923. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req245)))
  19924. return xcb_ret
  19925. }
  19926. var _xcb_req245 = Txcb_protocol_request_t{
  19927. Fcount: uint64(2),
  19928. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19929. }
  19930. func Xxcb_get_pointer_mapping_map(tls *libc.TLS, R uintptr) (r uintptr) {
  19931. return R + libc.UintptrFromInt32(1)*32
  19932. }
  19933. func Xxcb_get_pointer_mapping_map_length(tls *libc.TLS, R uintptr) (r int32) {
  19934. return libc.Int32FromUint8((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  19935. }
  19936. func Xxcb_get_pointer_mapping_map_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19937. var i Txcb_generic_iterator_t
  19938. _ = i
  19939. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  19940. i.Frem = 0
  19941. i.Findex = int32(int64(i.Fdata) - int64(R))
  19942. return i
  19943. }
  19944. func Xxcb_get_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19945. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19946. }
  19947. func Xxcb_set_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19948. var _aux, xcb_tmp uintptr
  19949. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19950. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19951. xcb_tmp = _buffer
  19952. _aux = _buffer
  19953. xcb_buffer_len = uint32(0)
  19954. xcb_block_len = uint32(0)
  19955. xcb_pad = uint32(0)
  19956. xcb_align_to = uint32(0)
  19957. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19958. xcb_tmp += uintptr(xcb_block_len)
  19959. xcb_buffer_len += xcb_block_len
  19960. xcb_block_len = uint32(0)
  19961. /* keycodes */
  19962. 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))
  19963. xcb_tmp += uintptr(xcb_block_len)
  19964. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19965. /* insert padding */
  19966. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19967. xcb_buffer_len += xcb_block_len + xcb_pad
  19968. if uint32(0) != xcb_pad {
  19969. xcb_tmp += uintptr(xcb_pad)
  19970. xcb_pad = uint32(0)
  19971. }
  19972. xcb_block_len = uint32(0)
  19973. return libc.Int32FromUint32(xcb_buffer_len)
  19974. }
  19975. func Xxcb_set_modifier_mapping(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
  19976. bp := tls.Alloc(112)
  19977. defer tls.Free(112)
  19978. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  19979. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  19980. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19981. _ = xcb_ret
  19982. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  19983. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19984. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19985. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19986. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19987. /* xcb_keycode_t keycodes */
  19988. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  19989. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  19990. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19991. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19992. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req246)))
  19993. return xcb_ret
  19994. }
  19995. var _xcb_req246 = Txcb_protocol_request_t{
  19996. Fcount: uint64(4),
  19997. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  19998. }
  19999. 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) {
  20000. bp := tls.Alloc(112)
  20001. defer tls.Free(112)
  20002. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20003. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  20004. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20005. _ = xcb_ret
  20006. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  20007. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  20008. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20009. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20010. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20011. /* xcb_keycode_t keycodes */
  20012. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20013. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  20014. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20015. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  20016. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req247)))
  20017. return xcb_ret
  20018. }
  20019. var _xcb_req247 = Txcb_protocol_request_t{
  20020. Fcount: uint64(4),
  20021. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20022. }
  20023. func Xxcb_set_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20024. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20025. }
  20026. func Xxcb_get_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20027. var _aux, xcb_tmp uintptr
  20028. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20029. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20030. xcb_tmp = _buffer
  20031. _aux = _buffer
  20032. xcb_buffer_len = uint32(0)
  20033. xcb_block_len = uint32(0)
  20034. xcb_pad = uint32(0)
  20035. xcb_align_to = uint32(0)
  20036. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20037. xcb_tmp += uintptr(xcb_block_len)
  20038. xcb_buffer_len += xcb_block_len
  20039. xcb_block_len = uint32(0)
  20040. /* keycodes */
  20041. 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))
  20042. xcb_tmp += uintptr(xcb_block_len)
  20043. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  20044. /* insert padding */
  20045. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20046. xcb_buffer_len += xcb_block_len + xcb_pad
  20047. if uint32(0) != xcb_pad {
  20048. xcb_tmp += uintptr(xcb_pad)
  20049. xcb_pad = uint32(0)
  20050. }
  20051. xcb_block_len = uint32(0)
  20052. return libc.Int32FromUint32(xcb_buffer_len)
  20053. }
  20054. func Xxcb_get_modifier_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20055. bp := tls.Alloc(80)
  20056. defer tls.Free(80)
  20057. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20058. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20059. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20060. _ = xcb_ret
  20061. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20062. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20066. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req248)))
  20067. return xcb_ret
  20068. }
  20069. var _xcb_req248 = Txcb_protocol_request_t{
  20070. Fcount: uint64(2),
  20071. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20072. }
  20073. func Xxcb_get_modifier_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20074. bp := tls.Alloc(80)
  20075. defer tls.Free(80)
  20076. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20077. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20078. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20079. _ = xcb_ret
  20080. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20081. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20082. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20083. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20084. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20085. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req249)))
  20086. return xcb_ret
  20087. }
  20088. var _xcb_req249 = Txcb_protocol_request_t{
  20089. Fcount: uint64(2),
  20090. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20091. }
  20092. func Xxcb_get_modifier_mapping_keycodes(tls *libc.TLS, R uintptr) (r uintptr) {
  20093. return R + libc.UintptrFromInt32(1)*32
  20094. }
  20095. func Xxcb_get_modifier_mapping_keycodes_length(tls *libc.TLS, R uintptr) (r int32) {
  20096. return libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier) * int32(8)
  20097. }
  20098. func Xxcb_get_modifier_mapping_keycodes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20099. var i Txcb_generic_iterator_t
  20100. _ = i
  20101. 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))
  20102. i.Frem = 0
  20103. i.Findex = int32(int64(i.Fdata) - int64(R))
  20104. return i
  20105. }
  20106. func Xxcb_get_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20107. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20108. }
  20109. func Xxcb_no_operation_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20110. bp := tls.Alloc(80)
  20111. defer tls.Free(80)
  20112. var xcb_ret Txcb_void_cookie_t
  20113. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20114. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20115. _ = xcb_ret
  20116. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20117. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20118. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20119. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20120. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20121. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req250)))
  20122. return xcb_ret
  20123. }
  20124. var _xcb_req250 = Txcb_protocol_request_t{
  20125. Fcount: uint64(2),
  20126. Fopcode: uint8(m_XCB_NO_OPERATION),
  20127. Fisvoid: uint8(1),
  20128. }
  20129. func Xxcb_no_operation(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20130. bp := tls.Alloc(80)
  20131. defer tls.Free(80)
  20132. var xcb_ret Txcb_void_cookie_t
  20133. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20134. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20135. _ = xcb_ret
  20136. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20137. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20138. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20141. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req251)))
  20142. return xcb_ret
  20143. }
  20144. var _xcb_req251 = Txcb_protocol_request_t{
  20145. Fcount: uint64(2),
  20146. Fopcode: uint8(m_XCB_NO_OPERATION),
  20147. Fisvoid: uint8(1),
  20148. }
  20149. func Xxcb_big_requests_enable(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20150. bp := tls.Alloc(80)
  20151. defer tls.Free(80)
  20152. var xcb_ret Txcb_big_requests_enable_cookie_t
  20153. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20154. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20155. _ = xcb_ret
  20156. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20159. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20160. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req252)))
  20161. return xcb_ret
  20162. }
  20163. var _xcb_req252 = Txcb_protocol_request_t{
  20164. Fcount: uint64(2),
  20165. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20166. }
  20167. func Xxcb_big_requests_enable_unchecked(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20168. bp := tls.Alloc(80)
  20169. defer tls.Free(80)
  20170. var xcb_ret Txcb_big_requests_enable_cookie_t
  20171. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20172. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20173. _ = xcb_ret
  20174. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20175. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20176. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20177. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20178. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req253)))
  20179. return xcb_ret
  20180. }
  20181. var _xcb_req253 = Txcb_protocol_request_t{
  20182. Fcount: uint64(2),
  20183. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20184. }
  20185. func Xxcb_big_requests_enable_reply(tls *libc.TLS, c uintptr, cookie Txcb_big_requests_enable_cookie_t, e uintptr) (r uintptr) {
  20186. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20187. }
  20188. 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) {
  20189. bp := tls.Alloc(80)
  20190. defer tls.Free(80)
  20191. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20192. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20193. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20194. _ = xcb_ret
  20195. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20196. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20197. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20201. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req254)))
  20202. return xcb_ret
  20203. }
  20204. var _xcb_req254 = Txcb_protocol_request_t{
  20205. Fcount: uint64(2),
  20206. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20207. }
  20208. 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) {
  20209. bp := tls.Alloc(80)
  20210. defer tls.Free(80)
  20211. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20212. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20213. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20214. _ = xcb_ret
  20215. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20216. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20217. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20221. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req255)))
  20222. return xcb_ret
  20223. }
  20224. var _xcb_req255 = Txcb_protocol_request_t{
  20225. Fcount: uint64(2),
  20226. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20227. }
  20228. func Xxcb_xc_misc_get_version_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_version_cookie_t, e uintptr) (r uintptr) {
  20229. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20230. }
  20231. func Xxcb_xc_misc_get_xid_range(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20232. bp := tls.Alloc(80)
  20233. defer tls.Free(80)
  20234. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20235. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20236. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20237. _ = xcb_ret
  20238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20241. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20242. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req256)))
  20243. return xcb_ret
  20244. }
  20245. var _xcb_req256 = Txcb_protocol_request_t{
  20246. Fcount: uint64(2),
  20247. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20248. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20249. }
  20250. func Xxcb_xc_misc_get_xid_range_unchecked(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20251. bp := tls.Alloc(80)
  20252. defer tls.Free(80)
  20253. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20254. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20255. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20256. _ = xcb_ret
  20257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20261. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req257)))
  20262. return xcb_ret
  20263. }
  20264. var _xcb_req257 = Txcb_protocol_request_t{
  20265. Fcount: uint64(2),
  20266. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20267. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20268. }
  20269. 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) {
  20270. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20271. }
  20272. func Xxcb_xc_misc_get_xid_list_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20273. var _aux, xcb_tmp uintptr
  20274. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20275. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20276. xcb_tmp = _buffer
  20277. _aux = _buffer
  20278. xcb_buffer_len = uint32(0)
  20279. xcb_block_len = uint32(0)
  20280. xcb_pad = uint32(0)
  20281. xcb_align_to = uint32(0)
  20282. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20283. xcb_tmp += uintptr(xcb_block_len)
  20284. xcb_buffer_len += xcb_block_len
  20285. xcb_block_len = uint32(0)
  20286. /* ids */
  20287. 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))
  20288. xcb_tmp += uintptr(xcb_block_len)
  20289. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  20290. /* insert padding */
  20291. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20292. xcb_buffer_len += xcb_block_len + xcb_pad
  20293. if uint32(0) != xcb_pad {
  20294. xcb_tmp += uintptr(xcb_pad)
  20295. xcb_pad = uint32(0)
  20296. }
  20297. xcb_block_len = uint32(0)
  20298. return libc.Int32FromUint32(xcb_buffer_len)
  20299. }
  20300. func Xxcb_xc_misc_get_xid_list(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
  20301. bp := tls.Alloc(80)
  20302. defer tls.Free(80)
  20303. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20304. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20305. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20306. _ = xcb_ret
  20307. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20308. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20309. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20312. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req258)))
  20313. return xcb_ret
  20314. }
  20315. var _xcb_req258 = Txcb_protocol_request_t{
  20316. Fcount: uint64(2),
  20317. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20318. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20319. }
  20320. 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) {
  20321. bp := tls.Alloc(80)
  20322. defer tls.Free(80)
  20323. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20324. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20325. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20326. _ = xcb_ret
  20327. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20328. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20329. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20330. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20332. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req259)))
  20333. return xcb_ret
  20334. }
  20335. var _xcb_req259 = Txcb_protocol_request_t{
  20336. Fcount: uint64(2),
  20337. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20338. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20339. }
  20340. func Xxcb_xc_misc_get_xid_list_ids(tls *libc.TLS, R uintptr) (r uintptr) {
  20341. return R + libc.UintptrFromInt32(1)*32
  20342. }
  20343. func Xxcb_xc_misc_get_xid_list_ids_length(tls *libc.TLS, R uintptr) (r int32) {
  20344. return libc.Int32FromUint32((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)
  20345. }
  20346. func Xxcb_xc_misc_get_xid_list_ids_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20347. var i Txcb_generic_iterator_t
  20348. _ = i
  20349. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)*4
  20350. i.Frem = 0
  20351. i.Findex = int32(int64(i.Fdata) - int64(R))
  20352. return i
  20353. }
  20354. 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) {
  20355. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20356. }
  20357. func __ccgo_fp(f interface{}) uintptr {
  20358. type iface [2]uintptr
  20359. return (*iface)(unsafe.Pointer(&f))[1]
  20360. }
  20361. /**
  20362. * @}
  20363. */
  20364. var Xxcb_big_requests_id = Txcb_extension_t{
  20365. Fname: __ccgo_ts + 93,
  20366. }
  20367. /**
  20368. * @}
  20369. */
  20370. var Xxcb_xc_misc_id = Txcb_extension_t{
  20371. Fname: __ccgo_ts + 106,
  20372. }
  20373. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  20374. 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"