ccgo_linux_arm.go 829 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317
  1. // Code generated for linux/arm 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/arm -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libXdmcp/include/linux/arm -lXau -lXdmcp -o libxcb.go --package-name libxcb src/.libs/libxcb.a', DO NOT EDIT.
  2. //go:build linux && arm
  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 = 12
  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 = 13
  319. const m_F_SETLKW = 14
  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 = "INT32_MAX"
  357. const m_INTPTR_MIN = "INT32_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 = 32
  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 = "INT32_MAX"
  787. const m_PTRDIFF_MIN = "INT32_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 = "UINT32_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 = 66
  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 = 67
  972. const m_SO_TIMESTAMP = 63
  973. const m_SO_TIMESTAMPING = 65
  974. const m_SO_TIMESTAMPNS = 64
  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 = "UINT32_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__FILE_OFFSET_BITS = 64
  1274. const m__GNU_SOURCE = 1
  1275. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  1276. const m__IOFBF = 0
  1277. const m__IOLBF = 1
  1278. const m__IONBF = 2
  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_ILP32_OFFBIG = 1
  1388. const m__POSIX_V7_ILP32_OFFBIG = 1
  1389. const m__POSIX_VDISABLE = 0
  1390. const m__POSIX_VERSION = 200809
  1391. const m__REDIR_TIME64 = 1
  1392. const m__SC_2_CHAR_TERM = 95
  1393. const m__SC_2_C_BIND = 47
  1394. const m__SC_2_C_DEV = 48
  1395. const m__SC_2_FORT_DEV = 49
  1396. const m__SC_2_FORT_RUN = 50
  1397. const m__SC_2_LOCALEDEF = 52
  1398. const m__SC_2_PBS = 168
  1399. const m__SC_2_PBS_ACCOUNTING = 169
  1400. const m__SC_2_PBS_CHECKPOINT = 175
  1401. const m__SC_2_PBS_LOCATE = 170
  1402. const m__SC_2_PBS_MESSAGE = 171
  1403. const m__SC_2_PBS_TRACK = 172
  1404. const m__SC_2_SW_DEV = 51
  1405. const m__SC_2_UPE = 97
  1406. const m__SC_2_VERSION = 46
  1407. const m__SC_ADVISORY_INFO = 132
  1408. const m__SC_AIO_LISTIO_MAX = 23
  1409. const m__SC_AIO_MAX = 24
  1410. const m__SC_AIO_PRIO_DELTA_MAX = 25
  1411. const m__SC_ARG_MAX = 0
  1412. const m__SC_ASYNCHRONOUS_IO = 12
  1413. const m__SC_ATEXIT_MAX = 87
  1414. const m__SC_AVPHYS_PAGES = 86
  1415. const m__SC_BARRIERS = 133
  1416. const m__SC_BC_BASE_MAX = 36
  1417. const m__SC_BC_DIM_MAX = 37
  1418. const m__SC_BC_SCALE_MAX = 38
  1419. const m__SC_BC_STRING_MAX = 39
  1420. const m__SC_CHILD_MAX = 1
  1421. const m__SC_CLK_TCK = 2
  1422. const m__SC_CLOCK_SELECTION = 137
  1423. const m__SC_COLL_WEIGHTS_MAX = 40
  1424. const m__SC_CPUTIME = 138
  1425. const m__SC_DELAYTIMER_MAX = 26
  1426. const m__SC_EXPR_NEST_MAX = 42
  1427. const m__SC_FSYNC = 15
  1428. const m__SC_GETGR_R_SIZE_MAX = 69
  1429. const m__SC_GETPW_R_SIZE_MAX = 70
  1430. const m__SC_HOST_NAME_MAX = 180
  1431. const m__SC_IOV_MAX = 60
  1432. const m__SC_IPV6 = 235
  1433. const m__SC_JOB_CONTROL = 7
  1434. const m__SC_LINE_MAX = 43
  1435. const m__SC_LOGIN_NAME_MAX = 71
  1436. const m__SC_MAPPED_FILES = 16
  1437. const m__SC_MEMLOCK = 17
  1438. const m__SC_MEMLOCK_RANGE = 18
  1439. const m__SC_MEMORY_PROTECTION = 19
  1440. const m__SC_MESSAGE_PASSING = 20
  1441. const m__SC_MINSIGSTKSZ = 249
  1442. const m__SC_MONOTONIC_CLOCK = 149
  1443. const m__SC_MQ_OPEN_MAX = 27
  1444. const m__SC_MQ_PRIO_MAX = 28
  1445. const m__SC_NGROUPS_MAX = 3
  1446. const m__SC_NPROCESSORS_CONF = 83
  1447. const m__SC_NPROCESSORS_ONLN = 84
  1448. const m__SC_NZERO = 109
  1449. const m__SC_OPEN_MAX = 4
  1450. const m__SC_PAGESIZE = 30
  1451. const m__SC_PAGE_SIZE = 30
  1452. const m__SC_PASS_MAX = 88
  1453. const m__SC_PHYS_PAGES = 85
  1454. const m__SC_PRIORITIZED_IO = 13
  1455. const m__SC_PRIORITY_SCHEDULING = 10
  1456. const m__SC_RAW_SOCKETS = 236
  1457. const m__SC_READER_WRITER_LOCKS = 153
  1458. const m__SC_REALTIME_SIGNALS = 9
  1459. const m__SC_REGEXP = 155
  1460. const m__SC_RE_DUP_MAX = 44
  1461. const m__SC_RTSIG_MAX = 31
  1462. const m__SC_SAVED_IDS = 8
  1463. const m__SC_SEMAPHORES = 21
  1464. const m__SC_SEM_NSEMS_MAX = 32
  1465. const m__SC_SEM_VALUE_MAX = 33
  1466. const m__SC_SHARED_MEMORY_OBJECTS = 22
  1467. const m__SC_SHELL = 157
  1468. const m__SC_SIGQUEUE_MAX = 34
  1469. const m__SC_SIGSTKSZ = 250
  1470. const m__SC_SPAWN = 159
  1471. const m__SC_SPIN_LOCKS = 154
  1472. const m__SC_SPORADIC_SERVER = 160
  1473. const m__SC_SS_REPL_MAX = 241
  1474. const m__SC_STREAMS = 174
  1475. const m__SC_STREAM_MAX = 5
  1476. const m__SC_SYMLOOP_MAX = 173
  1477. const m__SC_SYNCHRONIZED_IO = 14
  1478. const m__SC_THREADS = 67
  1479. const m__SC_THREAD_ATTR_STACKADDR = 77
  1480. const m__SC_THREAD_ATTR_STACKSIZE = 78
  1481. const m__SC_THREAD_CPUTIME = 139
  1482. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  1483. const m__SC_THREAD_KEYS_MAX = 74
  1484. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  1485. const m__SC_THREAD_PRIO_INHERIT = 80
  1486. const m__SC_THREAD_PRIO_PROTECT = 81
  1487. const m__SC_THREAD_PROCESS_SHARED = 82
  1488. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  1489. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  1490. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  1491. const m__SC_THREAD_SPORADIC_SERVER = 161
  1492. const m__SC_THREAD_STACK_MIN = 75
  1493. const m__SC_THREAD_THREADS_MAX = 76
  1494. const m__SC_TIMEOUTS = 164
  1495. const m__SC_TIMERS = 11
  1496. const m__SC_TIMER_MAX = 35
  1497. const m__SC_TRACE = 181
  1498. const m__SC_TRACE_EVENT_FILTER = 182
  1499. const m__SC_TRACE_EVENT_NAME_MAX = 242
  1500. const m__SC_TRACE_INHERIT = 183
  1501. const m__SC_TRACE_LOG = 184
  1502. const m__SC_TRACE_NAME_MAX = 243
  1503. const m__SC_TRACE_SYS_MAX = 244
  1504. const m__SC_TRACE_USER_EVENT_MAX = 245
  1505. const m__SC_TTY_NAME_MAX = 72
  1506. const m__SC_TYPED_MEMORY_OBJECTS = 165
  1507. const m__SC_TZNAME_MAX = 6
  1508. const m__SC_UIO_MAXIOV = 60
  1509. const m__SC_V6_ILP32_OFF32 = 176
  1510. const m__SC_V6_ILP32_OFFBIG = 177
  1511. const m__SC_V6_LP64_OFF64 = 178
  1512. const m__SC_V6_LPBIG_OFFBIG = 179
  1513. const m__SC_V7_ILP32_OFF32 = 237
  1514. const m__SC_V7_ILP32_OFFBIG = 238
  1515. const m__SC_V7_LP64_OFF64 = 239
  1516. const m__SC_V7_LPBIG_OFFBIG = 240
  1517. const m__SC_VERSION = 29
  1518. const m__SC_XBS5_ILP32_OFF32 = 125
  1519. const m__SC_XBS5_ILP32_OFFBIG = 126
  1520. const m__SC_XBS5_LP64_OFF64 = 127
  1521. const m__SC_XBS5_LPBIG_OFFBIG = 128
  1522. const m__SC_XOPEN_CRYPT = 92
  1523. const m__SC_XOPEN_ENH_I18N = 93
  1524. const m__SC_XOPEN_LEGACY = 129
  1525. const m__SC_XOPEN_REALTIME = 130
  1526. const m__SC_XOPEN_REALTIME_THREADS = 131
  1527. const m__SC_XOPEN_SHM = 94
  1528. const m__SC_XOPEN_STREAMS = 246
  1529. const m__SC_XOPEN_UNIX = 91
  1530. const m__SC_XOPEN_VERSION = 89
  1531. const m__SC_XOPEN_XCU_VERSION = 90
  1532. const m__SC_XOPEN_XPG2 = 98
  1533. const m__SC_XOPEN_XPG3 = 99
  1534. const m__SC_XOPEN_XPG4 = 100
  1535. const m__STDC_PREDEF_H = 1
  1536. const m__TANDEM_SOURCE = 1
  1537. const m__XOPEN_ENH_I18N = 1
  1538. const m__XOPEN_IOV_MAX = 16
  1539. const m__XOPEN_NAME_MAX = 255
  1540. const m__XOPEN_PATH_MAX = 1024
  1541. const m__XOPEN_UNIX = 1
  1542. const m__XOPEN_VERSION = 700
  1543. const m___ACCUM_EPSILON__ = "0x1P-15K"
  1544. const m___ACCUM_FBIT__ = 15
  1545. const m___ACCUM_IBIT__ = 16
  1546. const m___ACCUM_MAX__ = "0X7FFFFFFFP-15K"
  1547. const m___APCS_32__ = 1
  1548. const m___ARMEL__ = 1
  1549. const m___ARM_32BIT_STATE = 1
  1550. const m___ARM_ARCH = 6
  1551. const m___ARM_ARCH_6__ = 1
  1552. const m___ARM_ARCH_ISA_ARM = 1
  1553. const m___ARM_ARCH_ISA_THUMB = 1
  1554. const m___ARM_EABI__ = 1
  1555. const m___ARM_FEATURE_CLZ = 1
  1556. const m___ARM_FEATURE_COPROC = 15
  1557. const m___ARM_FEATURE_DSP = 1
  1558. const m___ARM_FEATURE_LDREX = 4
  1559. const m___ARM_FEATURE_QBIT = 1
  1560. const m___ARM_FEATURE_SAT = 1
  1561. const m___ARM_FEATURE_SIMD32 = 1
  1562. const m___ARM_FEATURE_UNALIGNED = 1
  1563. const m___ARM_FP = 12
  1564. const m___ARM_PCS_VFP = 1
  1565. const m___ARM_SIZEOF_MINIMAL_ENUM = 4
  1566. const m___ARM_SIZEOF_WCHAR_T = 4
  1567. const m___ATOMIC_ACQUIRE = 2
  1568. const m___ATOMIC_ACQ_REL = 4
  1569. const m___ATOMIC_CONSUME = 1
  1570. const m___ATOMIC_RELAXED = 0
  1571. const m___ATOMIC_RELEASE = 3
  1572. const m___ATOMIC_SEQ_CST = 5
  1573. const m___BIGGEST_ALIGNMENT__ = 8
  1574. const m___BIG_ENDIAN = 4321
  1575. const m___BYTE_ORDER = 1234
  1576. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1577. const m___CCGO__ = 1
  1578. const m___CHAR_BIT__ = 8
  1579. const m___CHAR_UNSIGNED__ = 1
  1580. const m___DA_FBIT__ = 31
  1581. const m___DA_IBIT__ = 32
  1582. const m___DBL_DECIMAL_DIG__ = 17
  1583. const m___DBL_DIG__ = 15
  1584. const m___DBL_HAS_DENORM__ = 1
  1585. const m___DBL_HAS_INFINITY__ = 1
  1586. const m___DBL_HAS_QUIET_NAN__ = 1
  1587. const m___DBL_IS_IEC_60559__ = 2
  1588. const m___DBL_MANT_DIG__ = 53
  1589. const m___DBL_MAX_10_EXP__ = 308
  1590. const m___DBL_MAX_EXP__ = 1024
  1591. const m___DECIMAL_DIG__ = 17
  1592. const m___DEC_EVAL_METHOD__ = 2
  1593. const m___DQ_FBIT__ = 63
  1594. const m___DQ_IBIT__ = 0
  1595. const m___ELF__ = 1
  1596. const m___EXTENSIONS__ = 1
  1597. const m___FINITE_MATH_ONLY__ = 0
  1598. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1599. const m___FLT32X_DECIMAL_DIG__ = 17
  1600. const m___FLT32X_DENORM_MIN__ = 4.9406564584124654e-324
  1601. const m___FLT32X_DIG__ = 15
  1602. const m___FLT32X_EPSILON__ = 2.2204460492503131e-16
  1603. const m___FLT32X_HAS_DENORM__ = 1
  1604. const m___FLT32X_HAS_INFINITY__ = 1
  1605. const m___FLT32X_HAS_QUIET_NAN__ = 1
  1606. const m___FLT32X_IS_IEC_60559__ = 2
  1607. const m___FLT32X_MANT_DIG__ = 53
  1608. const m___FLT32X_MAX_10_EXP__ = 308
  1609. const m___FLT32X_MAX_EXP__ = 1024
  1610. const m___FLT32X_MAX__ = 1.7976931348623157e+308
  1611. const m___FLT32X_MIN__ = 2.2250738585072014e-308
  1612. const m___FLT32X_NORM_MAX__ = 1.7976931348623157e+308
  1613. const m___FLT32_DECIMAL_DIG__ = 9
  1614. const m___FLT32_DENORM_MIN__ = 1.4012984643248171e-45
  1615. const m___FLT32_DIG__ = 6
  1616. const m___FLT32_EPSILON__ = 1.1920928955078125e-7
  1617. const m___FLT32_HAS_DENORM__ = 1
  1618. const m___FLT32_HAS_INFINITY__ = 1
  1619. const m___FLT32_HAS_QUIET_NAN__ = 1
  1620. const m___FLT32_IS_IEC_60559__ = 2
  1621. const m___FLT32_MANT_DIG__ = 24
  1622. const m___FLT32_MAX_10_EXP__ = 38
  1623. const m___FLT32_MAX_EXP__ = 128
  1624. const m___FLT32_MAX__ = 3.4028234663852886e+38
  1625. const m___FLT32_MIN__ = 1.1754943508222875e-38
  1626. const m___FLT32_NORM_MAX__ = 3.4028234663852886e+38
  1627. const m___FLT64_DECIMAL_DIG__ = 17
  1628. const m___FLT64_DENORM_MIN__ = 4.9406564584124654e-324
  1629. const m___FLT64_DIG__ = 15
  1630. const m___FLT64_EPSILON__ = 2.2204460492503131e-16
  1631. const m___FLT64_HAS_DENORM__ = 1
  1632. const m___FLT64_HAS_INFINITY__ = 1
  1633. const m___FLT64_HAS_QUIET_NAN__ = 1
  1634. const m___FLT64_IS_IEC_60559__ = 2
  1635. const m___FLT64_MANT_DIG__ = 53
  1636. const m___FLT64_MAX_10_EXP__ = 308
  1637. const m___FLT64_MAX_EXP__ = 1024
  1638. const m___FLT64_MAX__ = 1.7976931348623157e+308
  1639. const m___FLT64_MIN__ = 2.2250738585072014e-308
  1640. const m___FLT64_NORM_MAX__ = 1.7976931348623157e+308
  1641. const m___FLT_DECIMAL_DIG__ = 9
  1642. const m___FLT_DENORM_MIN__ = 1.4012984643248171e-45
  1643. const m___FLT_DIG__ = 6
  1644. const m___FLT_EPSILON__ = 1.1920928955078125e-7
  1645. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  1646. const m___FLT_EVAL_METHOD__ = 0
  1647. const m___FLT_HAS_DENORM__ = 1
  1648. const m___FLT_HAS_INFINITY__ = 1
  1649. const m___FLT_HAS_QUIET_NAN__ = 1
  1650. const m___FLT_IS_IEC_60559__ = 2
  1651. const m___FLT_MANT_DIG__ = 24
  1652. const m___FLT_MAX_10_EXP__ = 38
  1653. const m___FLT_MAX_EXP__ = 128
  1654. const m___FLT_MAX__ = 3.4028234663852886e+38
  1655. const m___FLT_MIN__ = 1.1754943508222875e-38
  1656. const m___FLT_NORM_MAX__ = 3.4028234663852886e+38
  1657. const m___FLT_RADIX__ = 2
  1658. const m___FRACT_EPSILON__ = "0x1P-15R"
  1659. const m___FRACT_FBIT__ = 15
  1660. const m___FRACT_IBIT__ = 0
  1661. const m___FRACT_MAX__ = "0X7FFFP-15R"
  1662. const m___FUNCTION__ = "__func__"
  1663. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  1664. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 1
  1665. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 1
  1666. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1667. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 1
  1668. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1669. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 1
  1670. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1671. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1672. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 1
  1673. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1674. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1675. const m___GCC_CONSTRUCTIVE_SIZE = 64
  1676. const m___GCC_DESTRUCTIVE_SIZE = 64
  1677. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1678. const m___GCC_IEC_559 = 2
  1679. const m___GCC_IEC_559_COMPLEX = 2
  1680. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  1681. const m___GNUC_MINOR__ = 2
  1682. const m___GNUC_PATCHLEVEL__ = 0
  1683. const m___GNUC_STDC_INLINE__ = 1
  1684. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  1685. const m___GNUC__ = 12
  1686. const m___GXX_ABI_VERSION = 1017
  1687. const m___GXX_TYPEINFO_EQUALITY_INLINE = 0
  1688. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  1689. const m___HA_FBIT__ = 7
  1690. const m___HA_IBIT__ = 8
  1691. const m___HQ_FBIT__ = 15
  1692. const m___HQ_IBIT__ = 0
  1693. const m___INT16_MAX__ = 0x7fff
  1694. const m___INT32_MAX__ = 0x7fffffff
  1695. const m___INT32_TYPE__ = "int"
  1696. const m___INT64_MAX__ = 0x7fffffffffffffff
  1697. const m___INT8_MAX__ = 0x7f
  1698. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  1699. const m___INTMAX_WIDTH__ = 64
  1700. const m___INTPTR_MAX__ = 0x7fffffff
  1701. const m___INTPTR_TYPE__ = "int"
  1702. const m___INTPTR_WIDTH__ = 32
  1703. const m___INT_FAST16_MAX__ = 0x7fffffff
  1704. const m___INT_FAST16_TYPE__ = "int"
  1705. const m___INT_FAST16_WIDTH__ = 32
  1706. const m___INT_FAST32_MAX__ = 0x7fffffff
  1707. const m___INT_FAST32_TYPE__ = "int"
  1708. const m___INT_FAST32_WIDTH__ = 32
  1709. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  1710. const m___INT_FAST64_WIDTH__ = 64
  1711. const m___INT_FAST8_MAX__ = 0x7f
  1712. const m___INT_FAST8_WIDTH__ = 8
  1713. const m___INT_LEAST16_MAX__ = 0x7fff
  1714. const m___INT_LEAST16_WIDTH__ = 16
  1715. const m___INT_LEAST32_MAX__ = 0x7fffffff
  1716. const m___INT_LEAST32_TYPE__ = "int"
  1717. const m___INT_LEAST32_WIDTH__ = 32
  1718. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  1719. const m___INT_LEAST64_WIDTH__ = 64
  1720. const m___INT_LEAST8_MAX__ = 0x7f
  1721. const m___INT_LEAST8_WIDTH__ = 8
  1722. const m___INT_MAX__ = 0x7fffffff
  1723. const m___INT_WIDTH__ = 32
  1724. const m___LACCUM_EPSILON__ = "0x1P-31LK"
  1725. const m___LACCUM_FBIT__ = 31
  1726. const m___LACCUM_IBIT__ = 32
  1727. const m___LACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFP-31LK"
  1728. const m___LDBL_DECIMAL_DIG__ = 17
  1729. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  1730. const m___LDBL_DIG__ = 15
  1731. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  1732. const m___LDBL_HAS_DENORM__ = 1
  1733. const m___LDBL_HAS_INFINITY__ = 1
  1734. const m___LDBL_HAS_QUIET_NAN__ = 1
  1735. const m___LDBL_IS_IEC_60559__ = 2
  1736. const m___LDBL_MANT_DIG__ = 53
  1737. const m___LDBL_MAX_10_EXP__ = 308
  1738. const m___LDBL_MAX_EXP__ = 1024
  1739. const m___LDBL_MAX__ = 1.7976931348623157e+308
  1740. const m___LDBL_MIN__ = 2.2250738585072014e-308
  1741. const m___LDBL_NORM_MAX__ = 1.7976931348623157e+308
  1742. const m___LFRACT_EPSILON__ = "0x1P-31LR"
  1743. const m___LFRACT_FBIT__ = 31
  1744. const m___LFRACT_IBIT__ = 0
  1745. const m___LFRACT_MAX__ = "0X7FFFFFFFP-31LR"
  1746. const m___LITTLE_ENDIAN = 1234
  1747. const m___LLACCUM_EPSILON__ = "0x1P-31LLK"
  1748. const m___LLACCUM_FBIT__ = 31
  1749. const m___LLACCUM_IBIT__ = 32
  1750. const m___LLACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFP-31LLK"
  1751. const m___LLFRACT_EPSILON__ = "0x1P-63LLR"
  1752. const m___LLFRACT_FBIT__ = 63
  1753. const m___LLFRACT_IBIT__ = 0
  1754. const m___LLFRACT_MAX__ = "0X7FFFFFFFFFFFFFFFP-63LLR"
  1755. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1756. const m___LONG_LONG_WIDTH__ = 64
  1757. const m___LONG_MAX = 0x7fffffff
  1758. const m___LONG_MAX__ = 0x7fffffff
  1759. const m___LONG_WIDTH__ = 32
  1760. const m___NO_INLINE__ = 1
  1761. const m___ORDER_BIG_ENDIAN__ = 4321
  1762. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1763. const m___ORDER_PDP_ENDIAN__ = 3412
  1764. const m___PDP_ENDIAN = 3412
  1765. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1766. const m___PRETTY_FUNCTION__ = "__func__"
  1767. const m___PRI64 = "ll"
  1768. const m___PRIPTR = ""
  1769. const m___PTRDIFF_MAX__ = 0x7fffffff
  1770. const m___PTRDIFF_TYPE__ = "int"
  1771. const m___PTRDIFF_WIDTH__ = 32
  1772. const m___QQ_FBIT__ = 7
  1773. const m___QQ_IBIT__ = 0
  1774. const m___SACCUM_EPSILON__ = "0x1P-7HK"
  1775. const m___SACCUM_FBIT__ = 7
  1776. const m___SACCUM_IBIT__ = 8
  1777. const m___SACCUM_MAX__ = "0X7FFFP-7HK"
  1778. const m___SA_FBIT__ = 15
  1779. const m___SA_IBIT__ = 16
  1780. const m___SCHAR_MAX__ = 0x7f
  1781. const m___SCHAR_WIDTH__ = 8
  1782. const m___SFRACT_EPSILON__ = "0x1P-7HR"
  1783. const m___SFRACT_FBIT__ = 7
  1784. const m___SFRACT_IBIT__ = 0
  1785. const m___SFRACT_MAX__ = "0X7FP-7HR"
  1786. const m___SHRT_MAX__ = 0x7fff
  1787. const m___SHRT_WIDTH__ = 16
  1788. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1789. const m___SIG_ATOMIC_TYPE__ = "int"
  1790. const m___SIG_ATOMIC_WIDTH__ = 32
  1791. const m___SIZEOF_DOUBLE__ = 8
  1792. const m___SIZEOF_FLOAT__ = 4
  1793. const m___SIZEOF_INT__ = 4
  1794. const m___SIZEOF_LONG_DOUBLE__ = 8
  1795. const m___SIZEOF_LONG_LONG__ = 8
  1796. const m___SIZEOF_LONG__ = 4
  1797. const m___SIZEOF_POINTER__ = 4
  1798. const m___SIZEOF_PTRDIFF_T__ = 4
  1799. const m___SIZEOF_SHORT__ = 2
  1800. const m___SIZEOF_SIZE_T__ = 4
  1801. const m___SIZEOF_WCHAR_T__ = 4
  1802. const m___SIZEOF_WINT_T__ = 4
  1803. const m___SIZE_MAX__ = 0xffffffff
  1804. const m___SIZE_WIDTH__ = 32
  1805. const m___SQ_FBIT__ = 31
  1806. const m___SQ_IBIT__ = 0
  1807. const m___STDC_HOSTED__ = 1
  1808. const m___STDC_IEC_559_COMPLEX__ = 1
  1809. const m___STDC_IEC_559__ = 1
  1810. const m___STDC_IEC_60559_BFP__ = 201404
  1811. const m___STDC_IEC_60559_COMPLEX__ = 201404
  1812. const m___STDC_ISO_10646__ = 201706
  1813. const m___STDC_UTF_16__ = 1
  1814. const m___STDC_UTF_32__ = 1
  1815. const m___STDC_VERSION__ = 201710
  1816. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  1817. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  1818. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  1819. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  1820. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  1821. const m___STDC_WANT_LIB_EXT2__ = 1
  1822. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  1823. const m___STDC__ = 1
  1824. const m___TA_FBIT__ = 63
  1825. const m___TA_IBIT__ = 64
  1826. const m___THUMB_INTERWORK__ = 1
  1827. const m___TQ_FBIT__ = 127
  1828. const m___TQ_IBIT__ = 0
  1829. const m___UACCUM_EPSILON__ = "0x1P-16UK"
  1830. const m___UACCUM_FBIT__ = 16
  1831. const m___UACCUM_IBIT__ = 16
  1832. const m___UACCUM_MAX__ = "0XFFFFFFFFP-16UK"
  1833. const m___UACCUM_MIN__ = "0.0UK"
  1834. const m___UAPI_DEF_IN6_ADDR = 0
  1835. const m___UAPI_DEF_IN6_ADDR_ALT = 0
  1836. const m___UAPI_DEF_IN6_PKTINFO = 0
  1837. const m___UAPI_DEF_IN_ADDR = 0
  1838. const m___UAPI_DEF_IN_CLASS = 0
  1839. const m___UAPI_DEF_IN_IPPROTO = 0
  1840. const m___UAPI_DEF_IN_PKTINFO = 0
  1841. const m___UAPI_DEF_IP6_MTUINFO = 0
  1842. const m___UAPI_DEF_IPPROTO_V6 = 0
  1843. const m___UAPI_DEF_IPV6_MREQ = 0
  1844. const m___UAPI_DEF_IPV6_OPTIONS = 0
  1845. const m___UAPI_DEF_IP_MREQ = 0
  1846. const m___UAPI_DEF_SOCKADDR_IN = 0
  1847. const m___UAPI_DEF_SOCKADDR_IN6 = 0
  1848. const m___UDA_FBIT__ = 32
  1849. const m___UDA_IBIT__ = 32
  1850. const m___UDQ_FBIT__ = 64
  1851. const m___UDQ_IBIT__ = 0
  1852. const m___UFRACT_EPSILON__ = "0x1P-16UR"
  1853. const m___UFRACT_FBIT__ = 16
  1854. const m___UFRACT_IBIT__ = 0
  1855. const m___UFRACT_MAX__ = "0XFFFFP-16UR"
  1856. const m___UFRACT_MIN__ = "0.0UR"
  1857. const m___UHA_FBIT__ = 8
  1858. const m___UHA_IBIT__ = 8
  1859. const m___UHQ_FBIT__ = 16
  1860. const m___UHQ_IBIT__ = 0
  1861. const m___UINT16_MAX__ = 0xffff
  1862. const m___UINT32_MAX__ = 0xffffffff
  1863. const m___UINT64_MAX__ = "0xffffffffffffffffU"
  1864. const m___UINT8_MAX__ = 0xff
  1865. const m___UINTMAX_MAX__ = "0xffffffffffffffffU"
  1866. const m___UINTPTR_MAX__ = 0xffffffff
  1867. const m___UINT_FAST16_MAX__ = 0xffffffff
  1868. const m___UINT_FAST32_MAX__ = 0xffffffff
  1869. const m___UINT_FAST64_MAX__ = "0xffffffffffffffffU"
  1870. const m___UINT_FAST8_MAX__ = 0xff
  1871. const m___UINT_LEAST16_MAX__ = 0xffff
  1872. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1873. const m___UINT_LEAST64_MAX__ = "0xffffffffffffffffU"
  1874. const m___UINT_LEAST8_MAX__ = 0xff
  1875. const m___ULACCUM_EPSILON__ = "0x1P-32ULK"
  1876. const m___ULACCUM_FBIT__ = 32
  1877. const m___ULACCUM_IBIT__ = 32
  1878. const m___ULACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFP-32ULK"
  1879. const m___ULACCUM_MIN__ = "0.0ULK"
  1880. const m___ULFRACT_EPSILON__ = "0x1P-32ULR"
  1881. const m___ULFRACT_FBIT__ = 32
  1882. const m___ULFRACT_IBIT__ = 0
  1883. const m___ULFRACT_MAX__ = "0XFFFFFFFFP-32ULR"
  1884. const m___ULFRACT_MIN__ = "0.0ULR"
  1885. const m___ULLACCUM_EPSILON__ = "0x1P-32ULLK"
  1886. const m___ULLACCUM_FBIT__ = 32
  1887. const m___ULLACCUM_IBIT__ = 32
  1888. const m___ULLACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFP-32ULLK"
  1889. const m___ULLACCUM_MIN__ = "0.0ULLK"
  1890. const m___ULLFRACT_EPSILON__ = "0x1P-64ULLR"
  1891. const m___ULLFRACT_FBIT__ = 64
  1892. const m___ULLFRACT_IBIT__ = 0
  1893. const m___ULLFRACT_MAX__ = "0XFFFFFFFFFFFFFFFFP-64ULLR"
  1894. const m___ULLFRACT_MIN__ = "0.0ULLR"
  1895. const m___UQQ_FBIT__ = 8
  1896. const m___UQQ_IBIT__ = 0
  1897. const m___USACCUM_EPSILON__ = "0x1P-8UHK"
  1898. const m___USACCUM_FBIT__ = 8
  1899. const m___USACCUM_IBIT__ = 8
  1900. const m___USACCUM_MAX__ = "0XFFFFP-8UHK"
  1901. const m___USACCUM_MIN__ = "0.0UHK"
  1902. const m___USA_FBIT__ = 16
  1903. const m___USA_IBIT__ = 16
  1904. const m___USE_TIME_BITS64 = 1
  1905. const m___USFRACT_EPSILON__ = "0x1P-8UHR"
  1906. const m___USFRACT_FBIT__ = 8
  1907. const m___USFRACT_IBIT__ = 0
  1908. const m___USFRACT_MAX__ = "0XFFP-8UHR"
  1909. const m___USFRACT_MIN__ = "0.0UHR"
  1910. const m___USQ_FBIT__ = 32
  1911. const m___USQ_IBIT__ = 0
  1912. const m___UTA_FBIT__ = 64
  1913. const m___UTA_IBIT__ = 64
  1914. const m___UTQ_FBIT__ = 128
  1915. const m___UTQ_IBIT__ = 0
  1916. const m___VERSION__ = "12.2.0"
  1917. const m___VFP_FP__ = 1
  1918. const m___WCHAR_MAX__ = 0xffffffff
  1919. const m___WCHAR_MIN__ = 0
  1920. const m___WCHAR_WIDTH__ = 32
  1921. const m___WINT_MAX__ = 0xffffffff
  1922. const m___WINT_MIN__ = 0
  1923. const m___WINT_WIDTH__ = 32
  1924. const m___arm__ = 1
  1925. const m___gnu_linux__ = 1
  1926. const m___inline = "inline"
  1927. const m___linux = 1
  1928. const m___linux__ = 1
  1929. const m___restrict = "restrict"
  1930. const m___restrict_arr = "restrict"
  1931. const m___tm_gmtoff = "tm_gmtoff"
  1932. const m___tm_zone = "tm_zone"
  1933. const m___unix = 1
  1934. const m___unix__ = 1
  1935. const m_alloca = "__builtin_alloca"
  1936. const m_linux = 1
  1937. const m_loff_t = "off_t"
  1938. const m_static_assert = "_Static_assert"
  1939. const m_unix = 1
  1940. type t__builtin_va_list = uintptr
  1941. type t__predefined_size_t = uint32
  1942. type t__predefined_wchar_t = uint32
  1943. type t__predefined_ptrdiff_t = int32
  1944. type Tsize_t = uint32
  1945. type Tlocale_t = uintptr
  1946. type Tssize_t = int32
  1947. type Toff_t = int64
  1948. type Tva_list = uintptr
  1949. type t__isoc_va_list = uintptr
  1950. type Tfpos_t = struct {
  1951. F__ccgo_align [0]uint32
  1952. F__lldata [0]int64
  1953. F__align [0]float64
  1954. F__opaque [16]uint8
  1955. }
  1956. type T_G_fpos64_t = Tfpos_t
  1957. type Tcookie_io_functions_t = struct {
  1958. Fread uintptr
  1959. Fwrite uintptr
  1960. Fseek uintptr
  1961. Fclose1 uintptr
  1962. }
  1963. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  1964. type Twchar_t = uint32
  1965. type Tdiv_t = struct {
  1966. Fquot int32
  1967. Frem int32
  1968. }
  1969. type Tldiv_t = struct {
  1970. Fquot int32
  1971. Frem int32
  1972. }
  1973. type Tlldiv_t = struct {
  1974. F__ccgo_align [0]uint32
  1975. Fquot int64
  1976. Frem int64
  1977. }
  1978. type Tmode_t = uint32
  1979. type Tpid_t = int32
  1980. type Tiovec = struct {
  1981. Fiov_base uintptr
  1982. Fiov_len Tsize_t
  1983. }
  1984. type Tflock = struct {
  1985. F__ccgo_align [0]uint32
  1986. Fl_type int16
  1987. Fl_whence int16
  1988. F__ccgo_align2 [4]byte
  1989. Fl_start Toff_t
  1990. Fl_len Toff_t
  1991. Fl_pid Tpid_t
  1992. F__ccgo_pad5 [4]byte
  1993. }
  1994. type Tfile_handle = struct {
  1995. Fhandle_bytes uint32
  1996. Fhandle_type int32
  1997. }
  1998. type Tf_owner_ex = struct {
  1999. Ftype1 int32
  2000. Fpid Tpid_t
  2001. }
  2002. type Tregister_t = int32
  2003. type Ttime_t = int64
  2004. type Tsuseconds_t = int64
  2005. type Tint8_t = int8
  2006. type Tint16_t = int16
  2007. type Tint32_t = int32
  2008. type Tint64_t = int64
  2009. type Tu_int64_t = uint64
  2010. type Tnlink_t = uint32
  2011. type Tino_t = uint64
  2012. type Tdev_t = uint64
  2013. type Tblksize_t = int32
  2014. type Tblkcnt_t = int64
  2015. type Tfsblkcnt_t = uint64
  2016. type Tfsfilcnt_t = uint64
  2017. type Ttimer_t = uintptr
  2018. type Tclockid_t = int32
  2019. type Tclock_t = int32
  2020. type Tid_t = uint32
  2021. type Tuid_t = uint32
  2022. type Tgid_t = uint32
  2023. type Tkey_t = int32
  2024. type Tuseconds_t = uint32
  2025. type Tpthread_t = uintptr
  2026. type Tpthread_once_t = int32
  2027. type Tpthread_key_t = uint32
  2028. type Tpthread_spinlock_t = int32
  2029. type Tpthread_mutexattr_t = struct {
  2030. F__attr uint32
  2031. }
  2032. type Tpthread_condattr_t = struct {
  2033. F__attr uint32
  2034. }
  2035. type Tpthread_barrierattr_t = struct {
  2036. F__attr uint32
  2037. }
  2038. type Tpthread_rwlockattr_t = struct {
  2039. F__attr [2]uint32
  2040. }
  2041. type Tpthread_attr_t = struct {
  2042. F__u struct {
  2043. F__vi [0][9]int32
  2044. F__s [0][9]uint32
  2045. F__i [9]int32
  2046. }
  2047. }
  2048. type Tpthread_mutex_t = struct {
  2049. F__u struct {
  2050. F__vi [0][6]int32
  2051. F__p [0][6]uintptr
  2052. F__i [6]int32
  2053. }
  2054. F__ccgo_room int32
  2055. }
  2056. type Tpthread_cond_t = struct {
  2057. F__u struct {
  2058. F__vi [0][12]int32
  2059. F__p [0][12]uintptr
  2060. F__i [12]int32
  2061. }
  2062. }
  2063. type Tpthread_rwlock_t = struct {
  2064. F__u struct {
  2065. F__vi [0][8]int32
  2066. F__p [0][8]uintptr
  2067. F__i [8]int32
  2068. }
  2069. }
  2070. type Tpthread_barrier_t = struct {
  2071. F__u struct {
  2072. F__vi [0][5]int32
  2073. F__p [0][5]uintptr
  2074. F__i [5]int32
  2075. }
  2076. }
  2077. type Tu_int8_t = uint8
  2078. type Tu_int16_t = uint16
  2079. type Tu_int32_t = uint32
  2080. type Tcaddr_t = uintptr
  2081. type Tu_char = uint8
  2082. type Tu_short = uint16
  2083. type Tushort = uint16
  2084. type Tu_int = uint32
  2085. type Tuint = uint32
  2086. type Tu_long = uint32
  2087. type Tulong = uint32
  2088. type Tquad_t = int64
  2089. type Tu_quad_t = uint64
  2090. type Tuint16_t = uint16
  2091. type Tuint32_t = uint32
  2092. type Tuint64_t = uint64
  2093. type Ttimeval = struct {
  2094. F__ccgo_align [0]uint32
  2095. Ftv_sec Ttime_t
  2096. Ftv_usec Tsuseconds_t
  2097. }
  2098. type Ttimespec = struct {
  2099. F__ccgo_align [0]uint32
  2100. Ftv_sec Ttime_t
  2101. Ftv_nsec int32
  2102. F__ccgo12 uint32
  2103. }
  2104. type Tsigset_t = struct {
  2105. F__bits [32]uint32
  2106. }
  2107. type t__sigset_t = Tsigset_t
  2108. type Tfd_mask = uint32
  2109. type Tfd_set = struct {
  2110. Ffds_bits [32]uint32
  2111. }
  2112. type Tuintptr_t = uint32
  2113. type Tintptr_t = int32
  2114. type Tintmax_t = int64
  2115. type Tuint8_t = uint8
  2116. type Tuintmax_t = uint64
  2117. type Tint_fast8_t = int8
  2118. type Tint_fast64_t = int64
  2119. type Tint_least8_t = int8
  2120. type Tint_least16_t = int16
  2121. type Tint_least32_t = int32
  2122. type Tint_least64_t = int64
  2123. type Tuint_fast8_t = uint8
  2124. type Tuint_fast64_t = uint64
  2125. type Tuint_least8_t = uint8
  2126. type Tuint_least16_t = uint16
  2127. type Tuint_least32_t = uint32
  2128. type Tuint_least64_t = uint64
  2129. type Tint_fast16_t = int32
  2130. type Tint_fast32_t = int32
  2131. type Tuint_fast16_t = uint32
  2132. type Tuint_fast32_t = uint32
  2133. type Tsched_param = struct {
  2134. Fsched_priority int32
  2135. F__reserved1 int32
  2136. F__reserved2 [4]int32
  2137. F__reserved3 int32
  2138. }
  2139. type Tcpu_set_t = struct {
  2140. F__bits [32]uint32
  2141. }
  2142. type Ttm = struct {
  2143. Ftm_sec int32
  2144. Ftm_min int32
  2145. Ftm_hour int32
  2146. Ftm_mday int32
  2147. Ftm_mon int32
  2148. Ftm_year int32
  2149. Ftm_wday int32
  2150. Ftm_yday int32
  2151. Ftm_isdst int32
  2152. Ftm_gmtoff int32
  2153. Ftm_zone uintptr
  2154. }
  2155. type Titimerspec = struct {
  2156. F__ccgo_align [0]uint32
  2157. Fit_interval Ttimespec
  2158. Fit_value Ttimespec
  2159. }
  2160. type t__ptcb = struct {
  2161. F__f uintptr
  2162. F__x uintptr
  2163. F__next uintptr
  2164. }
  2165. type Tcpu_set_t1 = struct {
  2166. F__bits [32]uint32
  2167. }
  2168. type Txcb_connection_t = struct {
  2169. F__ccgo_align [0]uint32
  2170. Fhas_error int32
  2171. Fsetup uintptr
  2172. Ffd int32
  2173. Fiolock Tpthread_mutex_t
  2174. Fin T_xcb_in
  2175. Fout T_xcb_out
  2176. Fext T_xcb_ext
  2177. Fxid T_xcb_xid
  2178. }
  2179. type Txcb_generic_iterator_t = struct {
  2180. Fdata uintptr
  2181. Frem int32
  2182. Findex int32
  2183. }
  2184. type Txcb_generic_reply_t = struct {
  2185. Fresponse_type Tuint8_t
  2186. Fpad0 Tuint8_t
  2187. Fsequence Tuint16_t
  2188. Flength Tuint32_t
  2189. }
  2190. type Txcb_generic_event_t = struct {
  2191. Fresponse_type Tuint8_t
  2192. Fpad0 Tuint8_t
  2193. Fsequence Tuint16_t
  2194. Fpad [7]Tuint32_t
  2195. Ffull_sequence Tuint32_t
  2196. }
  2197. type Txcb_raw_generic_event_t = struct {
  2198. Fresponse_type Tuint8_t
  2199. Fpad0 Tuint8_t
  2200. Fsequence Tuint16_t
  2201. Fpad [7]Tuint32_t
  2202. }
  2203. type Txcb_ge_event_t = struct {
  2204. Fresponse_type Tuint8_t
  2205. Fpad0 Tuint8_t
  2206. Fsequence Tuint16_t
  2207. Flength Tuint32_t
  2208. Fevent_type Tuint16_t
  2209. Fpad1 Tuint16_t
  2210. Fpad [5]Tuint32_t
  2211. Ffull_sequence Tuint32_t
  2212. }
  2213. type Txcb_generic_error_t = struct {
  2214. Fresponse_type Tuint8_t
  2215. Ferror_code Tuint8_t
  2216. Fsequence Tuint16_t
  2217. Fresource_id Tuint32_t
  2218. Fminor_code Tuint16_t
  2219. Fmajor_code Tuint8_t
  2220. Fpad0 Tuint8_t
  2221. Fpad [5]Tuint32_t
  2222. Ffull_sequence Tuint32_t
  2223. }
  2224. type Txcb_void_cookie_t = struct {
  2225. Fsequence uint32
  2226. }
  2227. type Txcb_char2b_t = struct {
  2228. Fbyte1 Tuint8_t
  2229. Fbyte2 Tuint8_t
  2230. }
  2231. type Txcb_char2b_iterator_t = struct {
  2232. Fdata uintptr
  2233. Frem int32
  2234. Findex int32
  2235. }
  2236. type Txcb_window_t = uint32
  2237. type Txcb_window_iterator_t = struct {
  2238. Fdata uintptr
  2239. Frem int32
  2240. Findex int32
  2241. }
  2242. type Txcb_pixmap_t = uint32
  2243. type Txcb_pixmap_iterator_t = struct {
  2244. Fdata uintptr
  2245. Frem int32
  2246. Findex int32
  2247. }
  2248. type Txcb_cursor_t = uint32
  2249. type Txcb_cursor_iterator_t = struct {
  2250. Fdata uintptr
  2251. Frem int32
  2252. Findex int32
  2253. }
  2254. type Txcb_font_t = uint32
  2255. type Txcb_font_iterator_t = struct {
  2256. Fdata uintptr
  2257. Frem int32
  2258. Findex int32
  2259. }
  2260. type Txcb_gcontext_t = uint32
  2261. type Txcb_gcontext_iterator_t = struct {
  2262. Fdata uintptr
  2263. Frem int32
  2264. Findex int32
  2265. }
  2266. type Txcb_colormap_t = uint32
  2267. type Txcb_colormap_iterator_t = struct {
  2268. Fdata uintptr
  2269. Frem int32
  2270. Findex int32
  2271. }
  2272. type Txcb_atom_t = uint32
  2273. type Txcb_atom_iterator_t = struct {
  2274. Fdata uintptr
  2275. Frem int32
  2276. Findex int32
  2277. }
  2278. type Txcb_drawable_t = uint32
  2279. type Txcb_drawable_iterator_t = struct {
  2280. Fdata uintptr
  2281. Frem int32
  2282. Findex int32
  2283. }
  2284. type Txcb_fontable_t = uint32
  2285. type Txcb_fontable_iterator_t = struct {
  2286. Fdata uintptr
  2287. Frem int32
  2288. Findex int32
  2289. }
  2290. type Txcb_bool32_t = uint32
  2291. type Txcb_bool32_iterator_t = struct {
  2292. Fdata uintptr
  2293. Frem int32
  2294. Findex int32
  2295. }
  2296. type Txcb_visualid_t = uint32
  2297. type Txcb_visualid_iterator_t = struct {
  2298. Fdata uintptr
  2299. Frem int32
  2300. Findex int32
  2301. }
  2302. type Txcb_timestamp_t = uint32
  2303. type Txcb_timestamp_iterator_t = struct {
  2304. Fdata uintptr
  2305. Frem int32
  2306. Findex int32
  2307. }
  2308. type Txcb_keysym_t = uint32
  2309. type Txcb_keysym_iterator_t = struct {
  2310. Fdata uintptr
  2311. Frem int32
  2312. Findex int32
  2313. }
  2314. type Txcb_keycode_t = uint8
  2315. type Txcb_keycode_iterator_t = struct {
  2316. Fdata uintptr
  2317. Frem int32
  2318. Findex int32
  2319. }
  2320. type Txcb_keycode32_t = uint32
  2321. type Txcb_keycode32_iterator_t = struct {
  2322. Fdata uintptr
  2323. Frem int32
  2324. Findex int32
  2325. }
  2326. type Txcb_button_t = uint8
  2327. type Txcb_button_iterator_t = struct {
  2328. Fdata uintptr
  2329. Frem int32
  2330. Findex int32
  2331. }
  2332. type Txcb_point_t = struct {
  2333. Fx Tint16_t
  2334. Fy Tint16_t
  2335. }
  2336. type Txcb_point_iterator_t = struct {
  2337. Fdata uintptr
  2338. Frem int32
  2339. Findex int32
  2340. }
  2341. type Txcb_rectangle_t = struct {
  2342. Fx Tint16_t
  2343. Fy Tint16_t
  2344. Fwidth Tuint16_t
  2345. Fheight Tuint16_t
  2346. }
  2347. type Txcb_rectangle_iterator_t = struct {
  2348. Fdata uintptr
  2349. Frem int32
  2350. Findex int32
  2351. }
  2352. type Txcb_arc_t = struct {
  2353. Fx Tint16_t
  2354. Fy Tint16_t
  2355. Fwidth Tuint16_t
  2356. Fheight Tuint16_t
  2357. Fangle1 Tint16_t
  2358. Fangle2 Tint16_t
  2359. }
  2360. type Txcb_arc_iterator_t = struct {
  2361. Fdata uintptr
  2362. Frem int32
  2363. Findex int32
  2364. }
  2365. type Txcb_format_t = struct {
  2366. Fdepth Tuint8_t
  2367. Fbits_per_pixel Tuint8_t
  2368. Fscanline_pad Tuint8_t
  2369. Fpad0 [5]Tuint8_t
  2370. }
  2371. type Txcb_format_iterator_t = struct {
  2372. Fdata uintptr
  2373. Frem int32
  2374. Findex int32
  2375. }
  2376. type Txcb_visual_class_t = int32
  2377. type _xcb_visual_class_t = int32
  2378. const _XCB_VISUAL_CLASS_STATIC_GRAY = 0
  2379. const _XCB_VISUAL_CLASS_GRAY_SCALE = 1
  2380. const _XCB_VISUAL_CLASS_STATIC_COLOR = 2
  2381. const _XCB_VISUAL_CLASS_PSEUDO_COLOR = 3
  2382. const _XCB_VISUAL_CLASS_TRUE_COLOR = 4
  2383. const _XCB_VISUAL_CLASS_DIRECT_COLOR = 5
  2384. type Txcb_visualtype_t = struct {
  2385. Fvisual_id Txcb_visualid_t
  2386. F_class Tuint8_t
  2387. Fbits_per_rgb_value Tuint8_t
  2388. Fcolormap_entries Tuint16_t
  2389. Fred_mask Tuint32_t
  2390. Fgreen_mask Tuint32_t
  2391. Fblue_mask Tuint32_t
  2392. Fpad0 [4]Tuint8_t
  2393. }
  2394. type Txcb_visualtype_iterator_t = struct {
  2395. Fdata uintptr
  2396. Frem int32
  2397. Findex int32
  2398. }
  2399. type Txcb_depth_t = struct {
  2400. Fdepth Tuint8_t
  2401. Fpad0 Tuint8_t
  2402. Fvisuals_len Tuint16_t
  2403. Fpad1 [4]Tuint8_t
  2404. }
  2405. type Txcb_depth_iterator_t = struct {
  2406. Fdata uintptr
  2407. Frem int32
  2408. Findex int32
  2409. }
  2410. type Txcb_event_mask_t = int32
  2411. type _xcb_event_mask_t = int32
  2412. const _XCB_EVENT_MASK_NO_EVENT = 0
  2413. const _XCB_EVENT_MASK_KEY_PRESS = 1
  2414. const _XCB_EVENT_MASK_KEY_RELEASE = 2
  2415. const _XCB_EVENT_MASK_BUTTON_PRESS = 4
  2416. const _XCB_EVENT_MASK_BUTTON_RELEASE = 8
  2417. const _XCB_EVENT_MASK_ENTER_WINDOW = 16
  2418. const _XCB_EVENT_MASK_LEAVE_WINDOW = 32
  2419. const _XCB_EVENT_MASK_POINTER_MOTION = 64
  2420. const _XCB_EVENT_MASK_POINTER_MOTION_HINT = 128
  2421. const _XCB_EVENT_MASK_BUTTON_1_MOTION = 256
  2422. const _XCB_EVENT_MASK_BUTTON_2_MOTION = 512
  2423. const _XCB_EVENT_MASK_BUTTON_3_MOTION = 1024
  2424. const _XCB_EVENT_MASK_BUTTON_4_MOTION = 2048
  2425. const _XCB_EVENT_MASK_BUTTON_5_MOTION = 4096
  2426. const _XCB_EVENT_MASK_BUTTON_MOTION = 8192
  2427. const _XCB_EVENT_MASK_KEYMAP_STATE = 16384
  2428. const _XCB_EVENT_MASK_EXPOSURE = 32768
  2429. const _XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536
  2430. const _XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072
  2431. const _XCB_EVENT_MASK_RESIZE_REDIRECT = 262144
  2432. const _XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288
  2433. const _XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576
  2434. const _XCB_EVENT_MASK_FOCUS_CHANGE = 2097152
  2435. const _XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304
  2436. const _XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608
  2437. const _XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
  2438. type Txcb_backing_store_t = int32
  2439. type _xcb_backing_store_t = int32
  2440. const _XCB_BACKING_STORE_NOT_USEFUL = 0
  2441. const _XCB_BACKING_STORE_WHEN_MAPPED = 1
  2442. const _XCB_BACKING_STORE_ALWAYS = 2
  2443. type Txcb_screen_t = struct {
  2444. Froot Txcb_window_t
  2445. Fdefault_colormap Txcb_colormap_t
  2446. Fwhite_pixel Tuint32_t
  2447. Fblack_pixel Tuint32_t
  2448. Fcurrent_input_masks Tuint32_t
  2449. Fwidth_in_pixels Tuint16_t
  2450. Fheight_in_pixels Tuint16_t
  2451. Fwidth_in_millimeters Tuint16_t
  2452. Fheight_in_millimeters Tuint16_t
  2453. Fmin_installed_maps Tuint16_t
  2454. Fmax_installed_maps Tuint16_t
  2455. Froot_visual Txcb_visualid_t
  2456. Fbacking_stores Tuint8_t
  2457. Fsave_unders Tuint8_t
  2458. Froot_depth Tuint8_t
  2459. Fallowed_depths_len Tuint8_t
  2460. }
  2461. type Txcb_screen_iterator_t = struct {
  2462. Fdata uintptr
  2463. Frem int32
  2464. Findex int32
  2465. }
  2466. type Txcb_setup_request_t = struct {
  2467. Fbyte_order Tuint8_t
  2468. Fpad0 Tuint8_t
  2469. Fprotocol_major_version Tuint16_t
  2470. Fprotocol_minor_version Tuint16_t
  2471. Fauthorization_protocol_name_len Tuint16_t
  2472. Fauthorization_protocol_data_len Tuint16_t
  2473. Fpad1 [2]Tuint8_t
  2474. }
  2475. type Txcb_setup_request_iterator_t = struct {
  2476. Fdata uintptr
  2477. Frem int32
  2478. Findex int32
  2479. }
  2480. type Txcb_setup_failed_t = struct {
  2481. Fstatus Tuint8_t
  2482. Freason_len Tuint8_t
  2483. Fprotocol_major_version Tuint16_t
  2484. Fprotocol_minor_version Tuint16_t
  2485. Flength Tuint16_t
  2486. }
  2487. type Txcb_setup_failed_iterator_t = struct {
  2488. Fdata uintptr
  2489. Frem int32
  2490. Findex int32
  2491. }
  2492. type Txcb_setup_authenticate_t = struct {
  2493. Fstatus Tuint8_t
  2494. Fpad0 [5]Tuint8_t
  2495. Flength Tuint16_t
  2496. }
  2497. type Txcb_setup_authenticate_iterator_t = struct {
  2498. Fdata uintptr
  2499. Frem int32
  2500. Findex int32
  2501. }
  2502. type Txcb_image_order_t = int32
  2503. type _xcb_image_order_t = int32
  2504. const _XCB_IMAGE_ORDER_LSB_FIRST = 0
  2505. const _XCB_IMAGE_ORDER_MSB_FIRST = 1
  2506. type Txcb_setup_t = struct {
  2507. Fstatus Tuint8_t
  2508. Fpad0 Tuint8_t
  2509. Fprotocol_major_version Tuint16_t
  2510. Fprotocol_minor_version Tuint16_t
  2511. Flength Tuint16_t
  2512. Frelease_number Tuint32_t
  2513. Fresource_id_base Tuint32_t
  2514. Fresource_id_mask Tuint32_t
  2515. Fmotion_buffer_size Tuint32_t
  2516. Fvendor_len Tuint16_t
  2517. Fmaximum_request_length Tuint16_t
  2518. Froots_len Tuint8_t
  2519. Fpixmap_formats_len Tuint8_t
  2520. Fimage_byte_order Tuint8_t
  2521. Fbitmap_format_bit_order Tuint8_t
  2522. Fbitmap_format_scanline_unit Tuint8_t
  2523. Fbitmap_format_scanline_pad Tuint8_t
  2524. Fmin_keycode Txcb_keycode_t
  2525. Fmax_keycode Txcb_keycode_t
  2526. Fpad1 [4]Tuint8_t
  2527. }
  2528. type Txcb_setup_iterator_t = struct {
  2529. Fdata uintptr
  2530. Frem int32
  2531. Findex int32
  2532. }
  2533. type Txcb_mod_mask_t = int32
  2534. type _xcb_mod_mask_t = int32
  2535. const _XCB_MOD_MASK_SHIFT = 1
  2536. const _XCB_MOD_MASK_LOCK = 2
  2537. const _XCB_MOD_MASK_CONTROL = 4
  2538. const _XCB_MOD_MASK_1 = 8
  2539. const _XCB_MOD_MASK_2 = 16
  2540. const _XCB_MOD_MASK_3 = 32
  2541. const _XCB_MOD_MASK_4 = 64
  2542. const _XCB_MOD_MASK_5 = 128
  2543. const _XCB_MOD_MASK_ANY = 32768
  2544. type Txcb_key_but_mask_t = int32
  2545. type _xcb_key_but_mask_t = int32
  2546. const _XCB_KEY_BUT_MASK_SHIFT = 1
  2547. const _XCB_KEY_BUT_MASK_LOCK = 2
  2548. const _XCB_KEY_BUT_MASK_CONTROL = 4
  2549. const _XCB_KEY_BUT_MASK_MOD_1 = 8
  2550. const _XCB_KEY_BUT_MASK_MOD_2 = 16
  2551. const _XCB_KEY_BUT_MASK_MOD_3 = 32
  2552. const _XCB_KEY_BUT_MASK_MOD_4 = 64
  2553. const _XCB_KEY_BUT_MASK_MOD_5 = 128
  2554. const _XCB_KEY_BUT_MASK_BUTTON_1 = 256
  2555. const _XCB_KEY_BUT_MASK_BUTTON_2 = 512
  2556. const _XCB_KEY_BUT_MASK_BUTTON_3 = 1024
  2557. const _XCB_KEY_BUT_MASK_BUTTON_4 = 2048
  2558. const _XCB_KEY_BUT_MASK_BUTTON_5 = 4096
  2559. type Txcb_window_enum_t = int32
  2560. type _xcb_window_enum_t = int32
  2561. const _XCB_WINDOW_NONE = 0
  2562. type Txcb_key_press_event_t = struct {
  2563. Fresponse_type Tuint8_t
  2564. Fdetail Txcb_keycode_t
  2565. Fsequence Tuint16_t
  2566. Ftime Txcb_timestamp_t
  2567. Froot Txcb_window_t
  2568. Fevent Txcb_window_t
  2569. Fchild Txcb_window_t
  2570. Froot_x Tint16_t
  2571. Froot_y Tint16_t
  2572. Fevent_x Tint16_t
  2573. Fevent_y Tint16_t
  2574. Fstate Tuint16_t
  2575. Fsame_screen Tuint8_t
  2576. Fpad0 Tuint8_t
  2577. }
  2578. type Txcb_key_release_event_t = struct {
  2579. Fresponse_type Tuint8_t
  2580. Fdetail Txcb_keycode_t
  2581. Fsequence Tuint16_t
  2582. Ftime Txcb_timestamp_t
  2583. Froot Txcb_window_t
  2584. Fevent Txcb_window_t
  2585. Fchild Txcb_window_t
  2586. Froot_x Tint16_t
  2587. Froot_y Tint16_t
  2588. Fevent_x Tint16_t
  2589. Fevent_y Tint16_t
  2590. Fstate Tuint16_t
  2591. Fsame_screen Tuint8_t
  2592. Fpad0 Tuint8_t
  2593. }
  2594. type Txcb_key_press_event_t1 = Txcb_key_release_event_t
  2595. type Txcb_button_mask_t = int32
  2596. type _xcb_button_mask_t = int32
  2597. const _XCB_BUTTON_MASK_1 = 256
  2598. const _XCB_BUTTON_MASK_2 = 512
  2599. const _XCB_BUTTON_MASK_3 = 1024
  2600. const _XCB_BUTTON_MASK_4 = 2048
  2601. const _XCB_BUTTON_MASK_5 = 4096
  2602. const _XCB_BUTTON_MASK_ANY = 32768
  2603. type Txcb_button_press_event_t = struct {
  2604. Fresponse_type Tuint8_t
  2605. Fdetail Txcb_button_t
  2606. Fsequence Tuint16_t
  2607. Ftime Txcb_timestamp_t
  2608. Froot Txcb_window_t
  2609. Fevent Txcb_window_t
  2610. Fchild Txcb_window_t
  2611. Froot_x Tint16_t
  2612. Froot_y Tint16_t
  2613. Fevent_x Tint16_t
  2614. Fevent_y Tint16_t
  2615. Fstate Tuint16_t
  2616. Fsame_screen Tuint8_t
  2617. Fpad0 Tuint8_t
  2618. }
  2619. type Txcb_button_release_event_t = struct {
  2620. Fresponse_type Tuint8_t
  2621. Fdetail Txcb_button_t
  2622. Fsequence Tuint16_t
  2623. Ftime Txcb_timestamp_t
  2624. Froot Txcb_window_t
  2625. Fevent Txcb_window_t
  2626. Fchild Txcb_window_t
  2627. Froot_x Tint16_t
  2628. Froot_y Tint16_t
  2629. Fevent_x Tint16_t
  2630. Fevent_y Tint16_t
  2631. Fstate Tuint16_t
  2632. Fsame_screen Tuint8_t
  2633. Fpad0 Tuint8_t
  2634. }
  2635. type Txcb_button_press_event_t1 = Txcb_button_release_event_t
  2636. type Txcb_motion_t = int32
  2637. type _xcb_motion_t = int32
  2638. const _XCB_MOTION_NORMAL = 0
  2639. const _XCB_MOTION_HINT = 1
  2640. type Txcb_motion_notify_event_t = struct {
  2641. Fresponse_type Tuint8_t
  2642. Fdetail Tuint8_t
  2643. Fsequence Tuint16_t
  2644. Ftime Txcb_timestamp_t
  2645. Froot Txcb_window_t
  2646. Fevent Txcb_window_t
  2647. Fchild Txcb_window_t
  2648. Froot_x Tint16_t
  2649. Froot_y Tint16_t
  2650. Fevent_x Tint16_t
  2651. Fevent_y Tint16_t
  2652. Fstate Tuint16_t
  2653. Fsame_screen Tuint8_t
  2654. Fpad0 Tuint8_t
  2655. }
  2656. type Txcb_notify_detail_t = int32
  2657. type _xcb_notify_detail_t = int32
  2658. const _XCB_NOTIFY_DETAIL_ANCESTOR = 0
  2659. const _XCB_NOTIFY_DETAIL_VIRTUAL = 1
  2660. const _XCB_NOTIFY_DETAIL_INFERIOR = 2
  2661. const _XCB_NOTIFY_DETAIL_NONLINEAR = 3
  2662. const _XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4
  2663. const _XCB_NOTIFY_DETAIL_POINTER = 5
  2664. const _XCB_NOTIFY_DETAIL_POINTER_ROOT = 6
  2665. const _XCB_NOTIFY_DETAIL_NONE = 7
  2666. type Txcb_notify_mode_t = int32
  2667. type _xcb_notify_mode_t = int32
  2668. const _XCB_NOTIFY_MODE_NORMAL = 0
  2669. const _XCB_NOTIFY_MODE_GRAB = 1
  2670. const _XCB_NOTIFY_MODE_UNGRAB = 2
  2671. const _XCB_NOTIFY_MODE_WHILE_GRABBED = 3
  2672. type Txcb_enter_notify_event_t = struct {
  2673. Fresponse_type Tuint8_t
  2674. Fdetail Tuint8_t
  2675. Fsequence Tuint16_t
  2676. Ftime Txcb_timestamp_t
  2677. Froot Txcb_window_t
  2678. Fevent Txcb_window_t
  2679. Fchild Txcb_window_t
  2680. Froot_x Tint16_t
  2681. Froot_y Tint16_t
  2682. Fevent_x Tint16_t
  2683. Fevent_y Tint16_t
  2684. Fstate Tuint16_t
  2685. Fmode Tuint8_t
  2686. Fsame_screen_focus Tuint8_t
  2687. }
  2688. type Txcb_leave_notify_event_t = struct {
  2689. Fresponse_type Tuint8_t
  2690. Fdetail Tuint8_t
  2691. Fsequence Tuint16_t
  2692. Ftime Txcb_timestamp_t
  2693. Froot Txcb_window_t
  2694. Fevent Txcb_window_t
  2695. Fchild Txcb_window_t
  2696. Froot_x Tint16_t
  2697. Froot_y Tint16_t
  2698. Fevent_x Tint16_t
  2699. Fevent_y Tint16_t
  2700. Fstate Tuint16_t
  2701. Fmode Tuint8_t
  2702. Fsame_screen_focus Tuint8_t
  2703. }
  2704. type Txcb_enter_notify_event_t1 = Txcb_leave_notify_event_t
  2705. type Txcb_focus_in_event_t = struct {
  2706. Fresponse_type Tuint8_t
  2707. Fdetail Tuint8_t
  2708. Fsequence Tuint16_t
  2709. Fevent Txcb_window_t
  2710. Fmode Tuint8_t
  2711. Fpad0 [3]Tuint8_t
  2712. }
  2713. type Txcb_focus_out_event_t = struct {
  2714. Fresponse_type Tuint8_t
  2715. Fdetail Tuint8_t
  2716. Fsequence Tuint16_t
  2717. Fevent Txcb_window_t
  2718. Fmode Tuint8_t
  2719. Fpad0 [3]Tuint8_t
  2720. }
  2721. type Txcb_focus_in_event_t1 = Txcb_focus_out_event_t
  2722. type Txcb_keymap_notify_event_t = struct {
  2723. Fresponse_type Tuint8_t
  2724. Fkeys [31]Tuint8_t
  2725. }
  2726. type Txcb_expose_event_t = struct {
  2727. Fresponse_type Tuint8_t
  2728. Fpad0 Tuint8_t
  2729. Fsequence Tuint16_t
  2730. Fwindow Txcb_window_t
  2731. Fx Tuint16_t
  2732. Fy Tuint16_t
  2733. Fwidth Tuint16_t
  2734. Fheight Tuint16_t
  2735. Fcount Tuint16_t
  2736. Fpad1 [2]Tuint8_t
  2737. }
  2738. type Txcb_graphics_exposure_event_t = struct {
  2739. Fresponse_type Tuint8_t
  2740. Fpad0 Tuint8_t
  2741. Fsequence Tuint16_t
  2742. Fdrawable Txcb_drawable_t
  2743. Fx Tuint16_t
  2744. Fy Tuint16_t
  2745. Fwidth Tuint16_t
  2746. Fheight Tuint16_t
  2747. Fminor_opcode Tuint16_t
  2748. Fcount Tuint16_t
  2749. Fmajor_opcode Tuint8_t
  2750. Fpad1 [3]Tuint8_t
  2751. }
  2752. type Txcb_no_exposure_event_t = struct {
  2753. Fresponse_type Tuint8_t
  2754. Fpad0 Tuint8_t
  2755. Fsequence Tuint16_t
  2756. Fdrawable Txcb_drawable_t
  2757. Fminor_opcode Tuint16_t
  2758. Fmajor_opcode Tuint8_t
  2759. Fpad1 Tuint8_t
  2760. }
  2761. type Txcb_visibility_t = int32
  2762. type _xcb_visibility_t = int32
  2763. const _XCB_VISIBILITY_UNOBSCURED = 0
  2764. const _XCB_VISIBILITY_PARTIALLY_OBSCURED = 1
  2765. const _XCB_VISIBILITY_FULLY_OBSCURED = 2
  2766. type Txcb_visibility_notify_event_t = struct {
  2767. Fresponse_type Tuint8_t
  2768. Fpad0 Tuint8_t
  2769. Fsequence Tuint16_t
  2770. Fwindow Txcb_window_t
  2771. Fstate Tuint8_t
  2772. Fpad1 [3]Tuint8_t
  2773. }
  2774. type Txcb_create_notify_event_t = struct {
  2775. Fresponse_type Tuint8_t
  2776. Fpad0 Tuint8_t
  2777. Fsequence Tuint16_t
  2778. Fparent Txcb_window_t
  2779. Fwindow Txcb_window_t
  2780. Fx Tint16_t
  2781. Fy Tint16_t
  2782. Fwidth Tuint16_t
  2783. Fheight Tuint16_t
  2784. Fborder_width Tuint16_t
  2785. Foverride_redirect Tuint8_t
  2786. Fpad1 Tuint8_t
  2787. }
  2788. type Txcb_destroy_notify_event_t = struct {
  2789. Fresponse_type Tuint8_t
  2790. Fpad0 Tuint8_t
  2791. Fsequence Tuint16_t
  2792. Fevent Txcb_window_t
  2793. Fwindow Txcb_window_t
  2794. }
  2795. type Txcb_unmap_notify_event_t = struct {
  2796. Fresponse_type Tuint8_t
  2797. Fpad0 Tuint8_t
  2798. Fsequence Tuint16_t
  2799. Fevent Txcb_window_t
  2800. Fwindow Txcb_window_t
  2801. Ffrom_configure Tuint8_t
  2802. Fpad1 [3]Tuint8_t
  2803. }
  2804. type Txcb_map_notify_event_t = struct {
  2805. Fresponse_type Tuint8_t
  2806. Fpad0 Tuint8_t
  2807. Fsequence Tuint16_t
  2808. Fevent Txcb_window_t
  2809. Fwindow Txcb_window_t
  2810. Foverride_redirect Tuint8_t
  2811. Fpad1 [3]Tuint8_t
  2812. }
  2813. type Txcb_map_request_event_t = struct {
  2814. Fresponse_type Tuint8_t
  2815. Fpad0 Tuint8_t
  2816. Fsequence Tuint16_t
  2817. Fparent Txcb_window_t
  2818. Fwindow Txcb_window_t
  2819. }
  2820. type Txcb_reparent_notify_event_t = struct {
  2821. Fresponse_type Tuint8_t
  2822. Fpad0 Tuint8_t
  2823. Fsequence Tuint16_t
  2824. Fevent Txcb_window_t
  2825. Fwindow Txcb_window_t
  2826. Fparent Txcb_window_t
  2827. Fx Tint16_t
  2828. Fy Tint16_t
  2829. Foverride_redirect Tuint8_t
  2830. Fpad1 [3]Tuint8_t
  2831. }
  2832. type Txcb_configure_notify_event_t = struct {
  2833. Fresponse_type Tuint8_t
  2834. Fpad0 Tuint8_t
  2835. Fsequence Tuint16_t
  2836. Fevent Txcb_window_t
  2837. Fwindow Txcb_window_t
  2838. Fabove_sibling Txcb_window_t
  2839. Fx Tint16_t
  2840. Fy Tint16_t
  2841. Fwidth Tuint16_t
  2842. Fheight Tuint16_t
  2843. Fborder_width Tuint16_t
  2844. Foverride_redirect Tuint8_t
  2845. Fpad1 Tuint8_t
  2846. }
  2847. type Txcb_configure_request_event_t = struct {
  2848. Fresponse_type Tuint8_t
  2849. Fstack_mode Tuint8_t
  2850. Fsequence Tuint16_t
  2851. Fparent Txcb_window_t
  2852. Fwindow Txcb_window_t
  2853. Fsibling Txcb_window_t
  2854. Fx Tint16_t
  2855. Fy Tint16_t
  2856. Fwidth Tuint16_t
  2857. Fheight Tuint16_t
  2858. Fborder_width Tuint16_t
  2859. Fvalue_mask Tuint16_t
  2860. }
  2861. type Txcb_gravity_notify_event_t = struct {
  2862. Fresponse_type Tuint8_t
  2863. Fpad0 Tuint8_t
  2864. Fsequence Tuint16_t
  2865. Fevent Txcb_window_t
  2866. Fwindow Txcb_window_t
  2867. Fx Tint16_t
  2868. Fy Tint16_t
  2869. }
  2870. type Txcb_resize_request_event_t = struct {
  2871. Fresponse_type Tuint8_t
  2872. Fpad0 Tuint8_t
  2873. Fsequence Tuint16_t
  2874. Fwindow Txcb_window_t
  2875. Fwidth Tuint16_t
  2876. Fheight Tuint16_t
  2877. }
  2878. type Txcb_place_t = int32
  2879. type _xcb_place_t = int32
  2880. const _XCB_PLACE_ON_TOP = 0
  2881. const _XCB_PLACE_ON_BOTTOM = 1
  2882. type Txcb_circulate_notify_event_t = struct {
  2883. Fresponse_type Tuint8_t
  2884. Fpad0 Tuint8_t
  2885. Fsequence Tuint16_t
  2886. Fevent Txcb_window_t
  2887. Fwindow Txcb_window_t
  2888. Fpad1 [4]Tuint8_t
  2889. Fplace Tuint8_t
  2890. Fpad2 [3]Tuint8_t
  2891. }
  2892. type Txcb_circulate_request_event_t = struct {
  2893. Fresponse_type Tuint8_t
  2894. Fpad0 Tuint8_t
  2895. Fsequence Tuint16_t
  2896. Fevent Txcb_window_t
  2897. Fwindow Txcb_window_t
  2898. Fpad1 [4]Tuint8_t
  2899. Fplace Tuint8_t
  2900. Fpad2 [3]Tuint8_t
  2901. }
  2902. type Txcb_circulate_notify_event_t1 = Txcb_circulate_request_event_t
  2903. type Txcb_property_t = int32
  2904. type _xcb_property_t = int32
  2905. const _XCB_PROPERTY_NEW_VALUE = 0
  2906. const _XCB_PROPERTY_DELETE = 1
  2907. type Txcb_property_notify_event_t = struct {
  2908. Fresponse_type Tuint8_t
  2909. Fpad0 Tuint8_t
  2910. Fsequence Tuint16_t
  2911. Fwindow Txcb_window_t
  2912. Fatom Txcb_atom_t
  2913. Ftime Txcb_timestamp_t
  2914. Fstate Tuint8_t
  2915. Fpad1 [3]Tuint8_t
  2916. }
  2917. type Txcb_selection_clear_event_t = struct {
  2918. Fresponse_type Tuint8_t
  2919. Fpad0 Tuint8_t
  2920. Fsequence Tuint16_t
  2921. Ftime Txcb_timestamp_t
  2922. Fowner Txcb_window_t
  2923. Fselection Txcb_atom_t
  2924. }
  2925. type Txcb_time_t = int32
  2926. type _xcb_time_t = int32
  2927. const _XCB_TIME_CURRENT_TIME = 0
  2928. type Txcb_atom_enum_t = int32
  2929. type _xcb_atom_enum_t = int32
  2930. const _XCB_ATOM_NONE = 0
  2931. const _XCB_ATOM_ANY = 0
  2932. const _XCB_ATOM_PRIMARY = 1
  2933. const _XCB_ATOM_SECONDARY = 2
  2934. const _XCB_ATOM_ARC = 3
  2935. const _XCB_ATOM_ATOM = 4
  2936. const _XCB_ATOM_BITMAP = 5
  2937. const _XCB_ATOM_CARDINAL = 6
  2938. const _XCB_ATOM_COLORMAP = 7
  2939. const _XCB_ATOM_CURSOR = 8
  2940. const _XCB_ATOM_CUT_BUFFER0 = 9
  2941. const _XCB_ATOM_CUT_BUFFER1 = 10
  2942. const _XCB_ATOM_CUT_BUFFER2 = 11
  2943. const _XCB_ATOM_CUT_BUFFER3 = 12
  2944. const _XCB_ATOM_CUT_BUFFER4 = 13
  2945. const _XCB_ATOM_CUT_BUFFER5 = 14
  2946. const _XCB_ATOM_CUT_BUFFER6 = 15
  2947. const _XCB_ATOM_CUT_BUFFER7 = 16
  2948. const _XCB_ATOM_DRAWABLE = 17
  2949. const _XCB_ATOM_FONT = 18
  2950. const _XCB_ATOM_INTEGER = 19
  2951. const _XCB_ATOM_PIXMAP = 20
  2952. const _XCB_ATOM_POINT = 21
  2953. const _XCB_ATOM_RECTANGLE = 22
  2954. const _XCB_ATOM_RESOURCE_MANAGER = 23
  2955. const _XCB_ATOM_RGB_COLOR_MAP = 24
  2956. const _XCB_ATOM_RGB_BEST_MAP = 25
  2957. const _XCB_ATOM_RGB_BLUE_MAP = 26
  2958. const _XCB_ATOM_RGB_DEFAULT_MAP = 27
  2959. const _XCB_ATOM_RGB_GRAY_MAP = 28
  2960. const _XCB_ATOM_RGB_GREEN_MAP = 29
  2961. const _XCB_ATOM_RGB_RED_MAP = 30
  2962. const _XCB_ATOM_STRING = 31
  2963. const _XCB_ATOM_VISUALID = 32
  2964. const _XCB_ATOM_WINDOW = 33
  2965. const _XCB_ATOM_WM_COMMAND = 34
  2966. const _XCB_ATOM_WM_HINTS = 35
  2967. const _XCB_ATOM_WM_CLIENT_MACHINE = 36
  2968. const _XCB_ATOM_WM_ICON_NAME = 37
  2969. const _XCB_ATOM_WM_ICON_SIZE = 38
  2970. const _XCB_ATOM_WM_NAME = 39
  2971. const _XCB_ATOM_WM_NORMAL_HINTS = 40
  2972. const _XCB_ATOM_WM_SIZE_HINTS = 41
  2973. const _XCB_ATOM_WM_ZOOM_HINTS = 42
  2974. const _XCB_ATOM_MIN_SPACE = 43
  2975. const _XCB_ATOM_NORM_SPACE = 44
  2976. const _XCB_ATOM_MAX_SPACE = 45
  2977. const _XCB_ATOM_END_SPACE = 46
  2978. const _XCB_ATOM_SUPERSCRIPT_X = 47
  2979. const _XCB_ATOM_SUPERSCRIPT_Y = 48
  2980. const _XCB_ATOM_SUBSCRIPT_X = 49
  2981. const _XCB_ATOM_SUBSCRIPT_Y = 50
  2982. const _XCB_ATOM_UNDERLINE_POSITION = 51
  2983. const _XCB_ATOM_UNDERLINE_THICKNESS = 52
  2984. const _XCB_ATOM_STRIKEOUT_ASCENT = 53
  2985. const _XCB_ATOM_STRIKEOUT_DESCENT = 54
  2986. const _XCB_ATOM_ITALIC_ANGLE = 55
  2987. const _XCB_ATOM_X_HEIGHT = 56
  2988. const _XCB_ATOM_QUAD_WIDTH = 57
  2989. const _XCB_ATOM_WEIGHT = 58
  2990. const _XCB_ATOM_POINT_SIZE = 59
  2991. const _XCB_ATOM_RESOLUTION = 60
  2992. const _XCB_ATOM_COPYRIGHT = 61
  2993. const _XCB_ATOM_NOTICE = 62
  2994. const _XCB_ATOM_FONT_NAME = 63
  2995. const _XCB_ATOM_FAMILY_NAME = 64
  2996. const _XCB_ATOM_FULL_NAME = 65
  2997. const _XCB_ATOM_CAP_HEIGHT = 66
  2998. const _XCB_ATOM_WM_CLASS = 67
  2999. const _XCB_ATOM_WM_TRANSIENT_FOR = 68
  3000. type Txcb_selection_request_event_t = struct {
  3001. Fresponse_type Tuint8_t
  3002. Fpad0 Tuint8_t
  3003. Fsequence Tuint16_t
  3004. Ftime Txcb_timestamp_t
  3005. Fowner Txcb_window_t
  3006. Frequestor Txcb_window_t
  3007. Fselection Txcb_atom_t
  3008. Ftarget Txcb_atom_t
  3009. Fproperty Txcb_atom_t
  3010. }
  3011. type Txcb_selection_notify_event_t = struct {
  3012. Fresponse_type Tuint8_t
  3013. Fpad0 Tuint8_t
  3014. Fsequence Tuint16_t
  3015. Ftime Txcb_timestamp_t
  3016. Frequestor Txcb_window_t
  3017. Fselection Txcb_atom_t
  3018. Ftarget Txcb_atom_t
  3019. Fproperty Txcb_atom_t
  3020. }
  3021. type Txcb_colormap_state_t = int32
  3022. type _xcb_colormap_state_t = int32
  3023. const _XCB_COLORMAP_STATE_UNINSTALLED = 0
  3024. const _XCB_COLORMAP_STATE_INSTALLED = 1
  3025. type Txcb_colormap_enum_t = int32
  3026. type _xcb_colormap_enum_t = int32
  3027. const _XCB_COLORMAP_NONE = 0
  3028. type Txcb_colormap_notify_event_t = struct {
  3029. Fresponse_type Tuint8_t
  3030. Fpad0 Tuint8_t
  3031. Fsequence Tuint16_t
  3032. Fwindow Txcb_window_t
  3033. Fcolormap Txcb_colormap_t
  3034. F_new Tuint8_t
  3035. Fstate Tuint8_t
  3036. Fpad1 [2]Tuint8_t
  3037. }
  3038. type Txcb_client_message_data_t = struct {
  3039. Fdata16 [0][10]Tuint16_t
  3040. Fdata32 [0][5]Tuint32_t
  3041. Fdata8 [20]Tuint8_t
  3042. }
  3043. type Txcb_client_message_data_iterator_t = struct {
  3044. Fdata uintptr
  3045. Frem int32
  3046. Findex int32
  3047. }
  3048. type Txcb_client_message_event_t = struct {
  3049. Fresponse_type Tuint8_t
  3050. Fformat Tuint8_t
  3051. Fsequence Tuint16_t
  3052. Fwindow Txcb_window_t
  3053. Ftype1 Txcb_atom_t
  3054. Fdata Txcb_client_message_data_t
  3055. }
  3056. type Txcb_mapping_t = int32
  3057. type _xcb_mapping_t = int32
  3058. const _XCB_MAPPING_MODIFIER = 0
  3059. const _XCB_MAPPING_KEYBOARD = 1
  3060. const _XCB_MAPPING_POINTER = 2
  3061. type Txcb_mapping_notify_event_t = struct {
  3062. Fresponse_type Tuint8_t
  3063. Fpad0 Tuint8_t
  3064. Fsequence Tuint16_t
  3065. Frequest Tuint8_t
  3066. Ffirst_keycode Txcb_keycode_t
  3067. Fcount Tuint8_t
  3068. Fpad1 Tuint8_t
  3069. }
  3070. type Txcb_ge_generic_event_t = struct {
  3071. Fresponse_type Tuint8_t
  3072. Fextension Tuint8_t
  3073. Fsequence Tuint16_t
  3074. Flength Tuint32_t
  3075. Fevent_type Tuint16_t
  3076. Fpad0 [22]Tuint8_t
  3077. Ffull_sequence Tuint32_t
  3078. }
  3079. type Txcb_request_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_value_error_t = struct {
  3089. Fresponse_type Tuint8_t
  3090. Ferror_code Tuint8_t
  3091. Fsequence Tuint16_t
  3092. Fbad_value Tuint32_t
  3093. Fminor_opcode Tuint16_t
  3094. Fmajor_opcode Tuint8_t
  3095. Fpad0 Tuint8_t
  3096. }
  3097. type Txcb_window_error_t = struct {
  3098. Fresponse_type Tuint8_t
  3099. Ferror_code Tuint8_t
  3100. Fsequence Tuint16_t
  3101. Fbad_value Tuint32_t
  3102. Fminor_opcode Tuint16_t
  3103. Fmajor_opcode Tuint8_t
  3104. Fpad0 Tuint8_t
  3105. }
  3106. type Txcb_value_error_t1 = Txcb_window_error_t
  3107. type Txcb_pixmap_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_atom_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_cursor_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_font_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_match_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_request_error_t1 = Txcb_match_error_t
  3153. type Txcb_drawable_error_t = struct {
  3154. Fresponse_type Tuint8_t
  3155. Ferror_code Tuint8_t
  3156. Fsequence Tuint16_t
  3157. Fbad_value Tuint32_t
  3158. Fminor_opcode Tuint16_t
  3159. Fmajor_opcode Tuint8_t
  3160. Fpad0 Tuint8_t
  3161. }
  3162. type Txcb_access_error_t = struct {
  3163. Fresponse_type Tuint8_t
  3164. Ferror_code Tuint8_t
  3165. Fsequence Tuint16_t
  3166. Fbad_value Tuint32_t
  3167. Fminor_opcode Tuint16_t
  3168. Fmajor_opcode Tuint8_t
  3169. Fpad0 Tuint8_t
  3170. }
  3171. type Txcb_alloc_error_t = struct {
  3172. Fresponse_type Tuint8_t
  3173. Ferror_code Tuint8_t
  3174. Fsequence Tuint16_t
  3175. Fbad_value Tuint32_t
  3176. Fminor_opcode Tuint16_t
  3177. Fmajor_opcode Tuint8_t
  3178. Fpad0 Tuint8_t
  3179. }
  3180. type Txcb_colormap_error_t = struct {
  3181. Fresponse_type Tuint8_t
  3182. Ferror_code Tuint8_t
  3183. Fsequence Tuint16_t
  3184. Fbad_value Tuint32_t
  3185. Fminor_opcode Tuint16_t
  3186. Fmajor_opcode Tuint8_t
  3187. Fpad0 Tuint8_t
  3188. }
  3189. type Txcb_g_context_error_t = struct {
  3190. Fresponse_type Tuint8_t
  3191. Ferror_code Tuint8_t
  3192. Fsequence Tuint16_t
  3193. Fbad_value Tuint32_t
  3194. Fminor_opcode Tuint16_t
  3195. Fmajor_opcode Tuint8_t
  3196. Fpad0 Tuint8_t
  3197. }
  3198. type Txcb_id_choice_error_t = struct {
  3199. Fresponse_type Tuint8_t
  3200. Ferror_code Tuint8_t
  3201. Fsequence Tuint16_t
  3202. Fbad_value Tuint32_t
  3203. Fminor_opcode Tuint16_t
  3204. Fmajor_opcode Tuint8_t
  3205. Fpad0 Tuint8_t
  3206. }
  3207. type Txcb_name_error_t = struct {
  3208. Fresponse_type Tuint8_t
  3209. Ferror_code Tuint8_t
  3210. Fsequence Tuint16_t
  3211. Fbad_value Tuint32_t
  3212. Fminor_opcode Tuint16_t
  3213. Fmajor_opcode Tuint8_t
  3214. Fpad0 Tuint8_t
  3215. }
  3216. type Txcb_length_error_t = struct {
  3217. Fresponse_type Tuint8_t
  3218. Ferror_code Tuint8_t
  3219. Fsequence Tuint16_t
  3220. Fbad_value Tuint32_t
  3221. Fminor_opcode Tuint16_t
  3222. Fmajor_opcode Tuint8_t
  3223. Fpad0 Tuint8_t
  3224. }
  3225. type Txcb_implementation_error_t = struct {
  3226. Fresponse_type Tuint8_t
  3227. Ferror_code Tuint8_t
  3228. Fsequence Tuint16_t
  3229. Fbad_value Tuint32_t
  3230. Fminor_opcode Tuint16_t
  3231. Fmajor_opcode Tuint8_t
  3232. Fpad0 Tuint8_t
  3233. }
  3234. type Txcb_window_class_t = int32
  3235. type _xcb_window_class_t = int32
  3236. const _XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0
  3237. const _XCB_WINDOW_CLASS_INPUT_OUTPUT = 1
  3238. const _XCB_WINDOW_CLASS_INPUT_ONLY = 2
  3239. type Txcb_cw_t = int32
  3240. type _xcb_cw_t = int32
  3241. const _XCB_CW_BACK_PIXMAP = 1
  3242. const _XCB_CW_BACK_PIXEL = 2
  3243. const _XCB_CW_BORDER_PIXMAP = 4
  3244. const _XCB_CW_BORDER_PIXEL = 8
  3245. const _XCB_CW_BIT_GRAVITY = 16
  3246. const _XCB_CW_WIN_GRAVITY = 32
  3247. const _XCB_CW_BACKING_STORE = 64
  3248. const _XCB_CW_BACKING_PLANES = 128
  3249. const _XCB_CW_BACKING_PIXEL = 256
  3250. const _XCB_CW_OVERRIDE_REDIRECT = 512
  3251. const _XCB_CW_SAVE_UNDER = 1024
  3252. const _XCB_CW_EVENT_MASK = 2048
  3253. const _XCB_CW_DONT_PROPAGATE = 4096
  3254. const _XCB_CW_COLORMAP = 8192
  3255. const _XCB_CW_CURSOR = 16384
  3256. type Txcb_back_pixmap_t = int32
  3257. type _xcb_back_pixmap_t = int32
  3258. const _XCB_BACK_PIXMAP_NONE = 0
  3259. const _XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
  3260. type Txcb_gravity_t = int32
  3261. type _xcb_gravity_t = int32
  3262. const _XCB_GRAVITY_BIT_FORGET = 0
  3263. const _XCB_GRAVITY_WIN_UNMAP = 0
  3264. const _XCB_GRAVITY_NORTH_WEST = 1
  3265. const _XCB_GRAVITY_NORTH = 2
  3266. const _XCB_GRAVITY_NORTH_EAST = 3
  3267. const _XCB_GRAVITY_WEST = 4
  3268. const _XCB_GRAVITY_CENTER = 5
  3269. const _XCB_GRAVITY_EAST = 6
  3270. const _XCB_GRAVITY_SOUTH_WEST = 7
  3271. const _XCB_GRAVITY_SOUTH = 8
  3272. const _XCB_GRAVITY_SOUTH_EAST = 9
  3273. const _XCB_GRAVITY_STATIC = 10
  3274. type Txcb_create_window_value_list_t = struct {
  3275. Fbackground_pixmap Txcb_pixmap_t
  3276. Fbackground_pixel Tuint32_t
  3277. Fborder_pixmap Txcb_pixmap_t
  3278. Fborder_pixel Tuint32_t
  3279. Fbit_gravity Tuint32_t
  3280. Fwin_gravity Tuint32_t
  3281. Fbacking_store Tuint32_t
  3282. Fbacking_planes Tuint32_t
  3283. Fbacking_pixel Tuint32_t
  3284. Foverride_redirect Txcb_bool32_t
  3285. Fsave_under Txcb_bool32_t
  3286. Fevent_mask Tuint32_t
  3287. Fdo_not_propogate_mask Tuint32_t
  3288. Fcolormap Txcb_colormap_t
  3289. Fcursor Txcb_cursor_t
  3290. }
  3291. type Txcb_create_window_request_t = struct {
  3292. Fmajor_opcode Tuint8_t
  3293. Fdepth Tuint8_t
  3294. Flength Tuint16_t
  3295. Fwid Txcb_window_t
  3296. Fparent Txcb_window_t
  3297. Fx Tint16_t
  3298. Fy Tint16_t
  3299. Fwidth Tuint16_t
  3300. Fheight Tuint16_t
  3301. Fborder_width Tuint16_t
  3302. F_class Tuint16_t
  3303. Fvisual Txcb_visualid_t
  3304. Fvalue_mask Tuint32_t
  3305. }
  3306. type Txcb_change_window_attributes_value_list_t = struct {
  3307. Fbackground_pixmap Txcb_pixmap_t
  3308. Fbackground_pixel Tuint32_t
  3309. Fborder_pixmap Txcb_pixmap_t
  3310. Fborder_pixel Tuint32_t
  3311. Fbit_gravity Tuint32_t
  3312. Fwin_gravity Tuint32_t
  3313. Fbacking_store Tuint32_t
  3314. Fbacking_planes Tuint32_t
  3315. Fbacking_pixel Tuint32_t
  3316. Foverride_redirect Txcb_bool32_t
  3317. Fsave_under Txcb_bool32_t
  3318. Fevent_mask Tuint32_t
  3319. Fdo_not_propogate_mask Tuint32_t
  3320. Fcolormap Txcb_colormap_t
  3321. Fcursor Txcb_cursor_t
  3322. }
  3323. type Txcb_change_window_attributes_request_t = struct {
  3324. Fmajor_opcode Tuint8_t
  3325. Fpad0 Tuint8_t
  3326. Flength Tuint16_t
  3327. Fwindow Txcb_window_t
  3328. Fvalue_mask Tuint32_t
  3329. }
  3330. type Txcb_map_state_t = int32
  3331. type _xcb_map_state_t = int32
  3332. const _XCB_MAP_STATE_UNMAPPED = 0
  3333. const _XCB_MAP_STATE_UNVIEWABLE = 1
  3334. const _XCB_MAP_STATE_VIEWABLE = 2
  3335. type Txcb_get_window_attributes_cookie_t = struct {
  3336. Fsequence uint32
  3337. }
  3338. type Txcb_get_window_attributes_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_get_window_attributes_reply_t = struct {
  3345. Fresponse_type Tuint8_t
  3346. Fbacking_store Tuint8_t
  3347. Fsequence Tuint16_t
  3348. Flength Tuint32_t
  3349. Fvisual Txcb_visualid_t
  3350. F_class Tuint16_t
  3351. Fbit_gravity Tuint8_t
  3352. Fwin_gravity Tuint8_t
  3353. Fbacking_planes Tuint32_t
  3354. Fbacking_pixel Tuint32_t
  3355. Fsave_under Tuint8_t
  3356. Fmap_is_installed Tuint8_t
  3357. Fmap_state Tuint8_t
  3358. Foverride_redirect Tuint8_t
  3359. Fcolormap Txcb_colormap_t
  3360. Fall_event_masks Tuint32_t
  3361. Fyour_event_mask Tuint32_t
  3362. Fdo_not_propagate_mask Tuint16_t
  3363. Fpad0 [2]Tuint8_t
  3364. }
  3365. type Txcb_destroy_window_request_t = struct {
  3366. Fmajor_opcode Tuint8_t
  3367. Fpad0 Tuint8_t
  3368. Flength Tuint16_t
  3369. Fwindow Txcb_window_t
  3370. }
  3371. type Txcb_destroy_subwindows_request_t = struct {
  3372. Fmajor_opcode Tuint8_t
  3373. Fpad0 Tuint8_t
  3374. Flength Tuint16_t
  3375. Fwindow Txcb_window_t
  3376. }
  3377. type Txcb_set_mode_t = int32
  3378. type _xcb_set_mode_t = int32
  3379. const _XCB_SET_MODE_INSERT = 0
  3380. const _XCB_SET_MODE_DELETE = 1
  3381. type Txcb_change_save_set_request_t = struct {
  3382. Fmajor_opcode Tuint8_t
  3383. Fmode Tuint8_t
  3384. Flength Tuint16_t
  3385. Fwindow Txcb_window_t
  3386. }
  3387. type Txcb_reparent_window_request_t = struct {
  3388. Fmajor_opcode Tuint8_t
  3389. Fpad0 Tuint8_t
  3390. Flength Tuint16_t
  3391. Fwindow Txcb_window_t
  3392. Fparent Txcb_window_t
  3393. Fx Tint16_t
  3394. Fy Tint16_t
  3395. }
  3396. type Txcb_map_window_request_t = struct {
  3397. Fmajor_opcode Tuint8_t
  3398. Fpad0 Tuint8_t
  3399. Flength Tuint16_t
  3400. Fwindow Txcb_window_t
  3401. }
  3402. type Txcb_map_subwindows_request_t = struct {
  3403. Fmajor_opcode Tuint8_t
  3404. Fpad0 Tuint8_t
  3405. Flength Tuint16_t
  3406. Fwindow Txcb_window_t
  3407. }
  3408. type Txcb_unmap_window_request_t = struct {
  3409. Fmajor_opcode Tuint8_t
  3410. Fpad0 Tuint8_t
  3411. Flength Tuint16_t
  3412. Fwindow Txcb_window_t
  3413. }
  3414. type Txcb_unmap_subwindows_request_t = struct {
  3415. Fmajor_opcode Tuint8_t
  3416. Fpad0 Tuint8_t
  3417. Flength Tuint16_t
  3418. Fwindow Txcb_window_t
  3419. }
  3420. type Txcb_config_window_t = int32
  3421. type _xcb_config_window_t = int32
  3422. const _XCB_CONFIG_WINDOW_X = 1
  3423. const _XCB_CONFIG_WINDOW_Y = 2
  3424. const _XCB_CONFIG_WINDOW_WIDTH = 4
  3425. const _XCB_CONFIG_WINDOW_HEIGHT = 8
  3426. const _XCB_CONFIG_WINDOW_BORDER_WIDTH = 16
  3427. const _XCB_CONFIG_WINDOW_SIBLING = 32
  3428. const _XCB_CONFIG_WINDOW_STACK_MODE = 64
  3429. type Txcb_stack_mode_t = int32
  3430. type _xcb_stack_mode_t = int32
  3431. const _XCB_STACK_MODE_ABOVE = 0
  3432. const _XCB_STACK_MODE_BELOW = 1
  3433. const _XCB_STACK_MODE_TOP_IF = 2
  3434. const _XCB_STACK_MODE_BOTTOM_IF = 3
  3435. const _XCB_STACK_MODE_OPPOSITE = 4
  3436. type Txcb_configure_window_value_list_t = struct {
  3437. Fx Tint32_t
  3438. Fy Tint32_t
  3439. Fwidth Tuint32_t
  3440. Fheight Tuint32_t
  3441. Fborder_width Tuint32_t
  3442. Fsibling Txcb_window_t
  3443. Fstack_mode Tuint32_t
  3444. }
  3445. type Txcb_configure_window_request_t = struct {
  3446. Fmajor_opcode Tuint8_t
  3447. Fpad0 Tuint8_t
  3448. Flength Tuint16_t
  3449. Fwindow Txcb_window_t
  3450. Fvalue_mask Tuint16_t
  3451. Fpad1 [2]Tuint8_t
  3452. }
  3453. type Txcb_circulate_t = int32
  3454. type _xcb_circulate_t = int32
  3455. const _XCB_CIRCULATE_RAISE_LOWEST = 0
  3456. const _XCB_CIRCULATE_LOWER_HIGHEST = 1
  3457. type Txcb_circulate_window_request_t = struct {
  3458. Fmajor_opcode Tuint8_t
  3459. Fdirection Tuint8_t
  3460. Flength Tuint16_t
  3461. Fwindow Txcb_window_t
  3462. }
  3463. type Txcb_get_geometry_cookie_t = struct {
  3464. Fsequence uint32
  3465. }
  3466. type Txcb_get_geometry_request_t = struct {
  3467. Fmajor_opcode Tuint8_t
  3468. Fpad0 Tuint8_t
  3469. Flength Tuint16_t
  3470. Fdrawable Txcb_drawable_t
  3471. }
  3472. type Txcb_get_geometry_reply_t = struct {
  3473. Fresponse_type Tuint8_t
  3474. Fdepth Tuint8_t
  3475. Fsequence Tuint16_t
  3476. Flength Tuint32_t
  3477. Froot Txcb_window_t
  3478. Fx Tint16_t
  3479. Fy Tint16_t
  3480. Fwidth Tuint16_t
  3481. Fheight Tuint16_t
  3482. Fborder_width Tuint16_t
  3483. Fpad0 [2]Tuint8_t
  3484. }
  3485. type Txcb_query_tree_cookie_t = struct {
  3486. Fsequence uint32
  3487. }
  3488. type Txcb_query_tree_request_t = struct {
  3489. Fmajor_opcode Tuint8_t
  3490. Fpad0 Tuint8_t
  3491. Flength Tuint16_t
  3492. Fwindow Txcb_window_t
  3493. }
  3494. type Txcb_query_tree_reply_t = struct {
  3495. Fresponse_type Tuint8_t
  3496. Fpad0 Tuint8_t
  3497. Fsequence Tuint16_t
  3498. Flength Tuint32_t
  3499. Froot Txcb_window_t
  3500. Fparent Txcb_window_t
  3501. Fchildren_len Tuint16_t
  3502. Fpad1 [14]Tuint8_t
  3503. }
  3504. type Txcb_intern_atom_cookie_t = struct {
  3505. Fsequence uint32
  3506. }
  3507. type Txcb_intern_atom_request_t = struct {
  3508. Fmajor_opcode Tuint8_t
  3509. Fonly_if_exists Tuint8_t
  3510. Flength Tuint16_t
  3511. Fname_len Tuint16_t
  3512. Fpad0 [2]Tuint8_t
  3513. }
  3514. type Txcb_intern_atom_reply_t = struct {
  3515. Fresponse_type Tuint8_t
  3516. Fpad0 Tuint8_t
  3517. Fsequence Tuint16_t
  3518. Flength Tuint32_t
  3519. Fatom Txcb_atom_t
  3520. }
  3521. type Txcb_get_atom_name_cookie_t = struct {
  3522. Fsequence uint32
  3523. }
  3524. type Txcb_get_atom_name_request_t = struct {
  3525. Fmajor_opcode Tuint8_t
  3526. Fpad0 Tuint8_t
  3527. Flength Tuint16_t
  3528. Fatom Txcb_atom_t
  3529. }
  3530. type Txcb_get_atom_name_reply_t = struct {
  3531. Fresponse_type Tuint8_t
  3532. Fpad0 Tuint8_t
  3533. Fsequence Tuint16_t
  3534. Flength Tuint32_t
  3535. Fname_len Tuint16_t
  3536. Fpad1 [22]Tuint8_t
  3537. }
  3538. type Txcb_prop_mode_t = int32
  3539. type _xcb_prop_mode_t = int32
  3540. const _XCB_PROP_MODE_REPLACE = 0
  3541. const _XCB_PROP_MODE_PREPEND = 1
  3542. const _XCB_PROP_MODE_APPEND = 2
  3543. type Txcb_change_property_request_t = struct {
  3544. Fmajor_opcode Tuint8_t
  3545. Fmode Tuint8_t
  3546. Flength Tuint16_t
  3547. Fwindow Txcb_window_t
  3548. Fproperty Txcb_atom_t
  3549. Ftype1 Txcb_atom_t
  3550. Fformat Tuint8_t
  3551. Fpad0 [3]Tuint8_t
  3552. Fdata_len Tuint32_t
  3553. }
  3554. type Txcb_delete_property_request_t = struct {
  3555. Fmajor_opcode Tuint8_t
  3556. Fpad0 Tuint8_t
  3557. Flength Tuint16_t
  3558. Fwindow Txcb_window_t
  3559. Fproperty Txcb_atom_t
  3560. }
  3561. type Txcb_get_property_type_t = int32
  3562. type _xcb_get_property_type_t = int32
  3563. const _XCB_GET_PROPERTY_TYPE_ANY = 0
  3564. type Txcb_get_property_cookie_t = struct {
  3565. Fsequence uint32
  3566. }
  3567. type Txcb_get_property_request_t = struct {
  3568. Fmajor_opcode Tuint8_t
  3569. F_delete Tuint8_t
  3570. Flength Tuint16_t
  3571. Fwindow Txcb_window_t
  3572. Fproperty Txcb_atom_t
  3573. Ftype1 Txcb_atom_t
  3574. Flong_offset Tuint32_t
  3575. Flong_length Tuint32_t
  3576. }
  3577. type Txcb_get_property_reply_t = struct {
  3578. Fresponse_type Tuint8_t
  3579. Fformat Tuint8_t
  3580. Fsequence Tuint16_t
  3581. Flength Tuint32_t
  3582. Ftype1 Txcb_atom_t
  3583. Fbytes_after Tuint32_t
  3584. Fvalue_len Tuint32_t
  3585. Fpad0 [12]Tuint8_t
  3586. }
  3587. type Txcb_list_properties_cookie_t = struct {
  3588. Fsequence uint32
  3589. }
  3590. type Txcb_list_properties_request_t = struct {
  3591. Fmajor_opcode Tuint8_t
  3592. Fpad0 Tuint8_t
  3593. Flength Tuint16_t
  3594. Fwindow Txcb_window_t
  3595. }
  3596. type Txcb_list_properties_reply_t = struct {
  3597. Fresponse_type Tuint8_t
  3598. Fpad0 Tuint8_t
  3599. Fsequence Tuint16_t
  3600. Flength Tuint32_t
  3601. Fatoms_len Tuint16_t
  3602. Fpad1 [22]Tuint8_t
  3603. }
  3604. type Txcb_set_selection_owner_request_t = struct {
  3605. Fmajor_opcode Tuint8_t
  3606. Fpad0 Tuint8_t
  3607. Flength Tuint16_t
  3608. Fowner Txcb_window_t
  3609. Fselection Txcb_atom_t
  3610. Ftime Txcb_timestamp_t
  3611. }
  3612. type Txcb_get_selection_owner_cookie_t = struct {
  3613. Fsequence uint32
  3614. }
  3615. type Txcb_get_selection_owner_request_t = struct {
  3616. Fmajor_opcode Tuint8_t
  3617. Fpad0 Tuint8_t
  3618. Flength Tuint16_t
  3619. Fselection Txcb_atom_t
  3620. }
  3621. type Txcb_get_selection_owner_reply_t = struct {
  3622. Fresponse_type Tuint8_t
  3623. Fpad0 Tuint8_t
  3624. Fsequence Tuint16_t
  3625. Flength Tuint32_t
  3626. Fowner Txcb_window_t
  3627. }
  3628. type Txcb_convert_selection_request_t = struct {
  3629. Fmajor_opcode Tuint8_t
  3630. Fpad0 Tuint8_t
  3631. Flength Tuint16_t
  3632. Frequestor Txcb_window_t
  3633. Fselection Txcb_atom_t
  3634. Ftarget Txcb_atom_t
  3635. Fproperty Txcb_atom_t
  3636. Ftime Txcb_timestamp_t
  3637. }
  3638. type Txcb_send_event_dest_t = int32
  3639. type _xcb_send_event_dest_t = int32
  3640. const _XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0
  3641. const _XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
  3642. type Txcb_send_event_request_t = struct {
  3643. Fmajor_opcode Tuint8_t
  3644. Fpropagate Tuint8_t
  3645. Flength Tuint16_t
  3646. Fdestination Txcb_window_t
  3647. Fevent_mask Tuint32_t
  3648. Fevent [32]uint8
  3649. }
  3650. type Txcb_grab_mode_t = int32
  3651. type _xcb_grab_mode_t = int32
  3652. const _XCB_GRAB_MODE_SYNC = 0
  3653. const _XCB_GRAB_MODE_ASYNC = 1
  3654. type Txcb_grab_status_t = int32
  3655. type _xcb_grab_status_t = int32
  3656. const _XCB_GRAB_STATUS_SUCCESS = 0
  3657. const _XCB_GRAB_STATUS_ALREADY_GRABBED = 1
  3658. const _XCB_GRAB_STATUS_INVALID_TIME = 2
  3659. const _XCB_GRAB_STATUS_NOT_VIEWABLE = 3
  3660. const _XCB_GRAB_STATUS_FROZEN = 4
  3661. type Txcb_cursor_enum_t = int32
  3662. type _xcb_cursor_enum_t = int32
  3663. const _XCB_CURSOR_NONE = 0
  3664. type Txcb_grab_pointer_cookie_t = struct {
  3665. Fsequence uint32
  3666. }
  3667. type Txcb_grab_pointer_request_t = struct {
  3668. Fmajor_opcode Tuint8_t
  3669. Fowner_events Tuint8_t
  3670. Flength Tuint16_t
  3671. Fgrab_window Txcb_window_t
  3672. Fevent_mask Tuint16_t
  3673. Fpointer_mode Tuint8_t
  3674. Fkeyboard_mode Tuint8_t
  3675. Fconfine_to Txcb_window_t
  3676. Fcursor Txcb_cursor_t
  3677. Ftime Txcb_timestamp_t
  3678. }
  3679. type Txcb_grab_pointer_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_pointer_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_button_index_t = int32
  3692. type _xcb_button_index_t = int32
  3693. const _XCB_BUTTON_INDEX_ANY = 0
  3694. const _XCB_BUTTON_INDEX_1 = 1
  3695. const _XCB_BUTTON_INDEX_2 = 2
  3696. const _XCB_BUTTON_INDEX_3 = 3
  3697. const _XCB_BUTTON_INDEX_4 = 4
  3698. const _XCB_BUTTON_INDEX_5 = 5
  3699. type Txcb_grab_button_request_t = struct {
  3700. Fmajor_opcode Tuint8_t
  3701. Fowner_events Tuint8_t
  3702. Flength Tuint16_t
  3703. Fgrab_window Txcb_window_t
  3704. Fevent_mask Tuint16_t
  3705. Fpointer_mode Tuint8_t
  3706. Fkeyboard_mode Tuint8_t
  3707. Fconfine_to Txcb_window_t
  3708. Fcursor Txcb_cursor_t
  3709. Fbutton Tuint8_t
  3710. Fpad0 Tuint8_t
  3711. Fmodifiers Tuint16_t
  3712. }
  3713. type Txcb_ungrab_button_request_t = struct {
  3714. Fmajor_opcode Tuint8_t
  3715. Fbutton Tuint8_t
  3716. Flength Tuint16_t
  3717. Fgrab_window Txcb_window_t
  3718. Fmodifiers Tuint16_t
  3719. Fpad0 [2]Tuint8_t
  3720. }
  3721. type Txcb_change_active_pointer_grab_request_t = struct {
  3722. Fmajor_opcode Tuint8_t
  3723. Fpad0 Tuint8_t
  3724. Flength Tuint16_t
  3725. Fcursor Txcb_cursor_t
  3726. Ftime Txcb_timestamp_t
  3727. Fevent_mask Tuint16_t
  3728. Fpad1 [2]Tuint8_t
  3729. }
  3730. type Txcb_grab_keyboard_cookie_t = struct {
  3731. Fsequence uint32
  3732. }
  3733. type Txcb_grab_keyboard_request_t = struct {
  3734. Fmajor_opcode Tuint8_t
  3735. Fowner_events Tuint8_t
  3736. Flength Tuint16_t
  3737. Fgrab_window Txcb_window_t
  3738. Ftime Txcb_timestamp_t
  3739. Fpointer_mode Tuint8_t
  3740. Fkeyboard_mode Tuint8_t
  3741. Fpad0 [2]Tuint8_t
  3742. }
  3743. type Txcb_grab_keyboard_reply_t = struct {
  3744. Fresponse_type Tuint8_t
  3745. Fstatus Tuint8_t
  3746. Fsequence Tuint16_t
  3747. Flength Tuint32_t
  3748. }
  3749. type Txcb_ungrab_keyboard_request_t = struct {
  3750. Fmajor_opcode Tuint8_t
  3751. Fpad0 Tuint8_t
  3752. Flength Tuint16_t
  3753. Ftime Txcb_timestamp_t
  3754. }
  3755. type Txcb_grab_t = int32
  3756. type _xcb_grab_t = int32
  3757. const _XCB_GRAB_ANY = 0
  3758. type Txcb_grab_key_request_t = struct {
  3759. Fmajor_opcode Tuint8_t
  3760. Fowner_events Tuint8_t
  3761. Flength Tuint16_t
  3762. Fgrab_window Txcb_window_t
  3763. Fmodifiers Tuint16_t
  3764. Fkey Txcb_keycode_t
  3765. Fpointer_mode Tuint8_t
  3766. Fkeyboard_mode Tuint8_t
  3767. Fpad0 [3]Tuint8_t
  3768. }
  3769. type Txcb_ungrab_key_request_t = struct {
  3770. Fmajor_opcode Tuint8_t
  3771. Fkey Txcb_keycode_t
  3772. Flength Tuint16_t
  3773. Fgrab_window Txcb_window_t
  3774. Fmodifiers Tuint16_t
  3775. Fpad0 [2]Tuint8_t
  3776. }
  3777. type Txcb_allow_t = int32
  3778. type _xcb_allow_t = int32
  3779. const _XCB_ALLOW_ASYNC_POINTER = 0
  3780. const _XCB_ALLOW_SYNC_POINTER = 1
  3781. const _XCB_ALLOW_REPLAY_POINTER = 2
  3782. const _XCB_ALLOW_ASYNC_KEYBOARD = 3
  3783. const _XCB_ALLOW_SYNC_KEYBOARD = 4
  3784. const _XCB_ALLOW_REPLAY_KEYBOARD = 5
  3785. const _XCB_ALLOW_ASYNC_BOTH = 6
  3786. const _XCB_ALLOW_SYNC_BOTH = 7
  3787. type Txcb_allow_events_request_t = struct {
  3788. Fmajor_opcode Tuint8_t
  3789. Fmode Tuint8_t
  3790. Flength Tuint16_t
  3791. Ftime Txcb_timestamp_t
  3792. }
  3793. type Txcb_grab_server_request_t = struct {
  3794. Fmajor_opcode Tuint8_t
  3795. Fpad0 Tuint8_t
  3796. Flength Tuint16_t
  3797. }
  3798. type Txcb_ungrab_server_request_t = struct {
  3799. Fmajor_opcode Tuint8_t
  3800. Fpad0 Tuint8_t
  3801. Flength Tuint16_t
  3802. }
  3803. type Txcb_query_pointer_cookie_t = struct {
  3804. Fsequence uint32
  3805. }
  3806. type Txcb_query_pointer_request_t = struct {
  3807. Fmajor_opcode Tuint8_t
  3808. Fpad0 Tuint8_t
  3809. Flength Tuint16_t
  3810. Fwindow Txcb_window_t
  3811. }
  3812. type Txcb_query_pointer_reply_t = struct {
  3813. Fresponse_type Tuint8_t
  3814. Fsame_screen Tuint8_t
  3815. Fsequence Tuint16_t
  3816. Flength Tuint32_t
  3817. Froot Txcb_window_t
  3818. Fchild Txcb_window_t
  3819. Froot_x Tint16_t
  3820. Froot_y Tint16_t
  3821. Fwin_x Tint16_t
  3822. Fwin_y Tint16_t
  3823. Fmask Tuint16_t
  3824. Fpad0 [2]Tuint8_t
  3825. }
  3826. type Txcb_timecoord_t = struct {
  3827. Ftime Txcb_timestamp_t
  3828. Fx Tint16_t
  3829. Fy Tint16_t
  3830. }
  3831. type Txcb_timecoord_iterator_t = struct {
  3832. Fdata uintptr
  3833. Frem int32
  3834. Findex int32
  3835. }
  3836. type Txcb_get_motion_events_cookie_t = struct {
  3837. Fsequence uint32
  3838. }
  3839. type Txcb_get_motion_events_request_t = struct {
  3840. Fmajor_opcode Tuint8_t
  3841. Fpad0 Tuint8_t
  3842. Flength Tuint16_t
  3843. Fwindow Txcb_window_t
  3844. Fstart Txcb_timestamp_t
  3845. Fstop Txcb_timestamp_t
  3846. }
  3847. type Txcb_get_motion_events_reply_t = struct {
  3848. Fresponse_type Tuint8_t
  3849. Fpad0 Tuint8_t
  3850. Fsequence Tuint16_t
  3851. Flength Tuint32_t
  3852. Fevents_len Tuint32_t
  3853. Fpad1 [20]Tuint8_t
  3854. }
  3855. type Txcb_translate_coordinates_cookie_t = struct {
  3856. Fsequence uint32
  3857. }
  3858. type Txcb_translate_coordinates_request_t = struct {
  3859. Fmajor_opcode Tuint8_t
  3860. Fpad0 Tuint8_t
  3861. Flength Tuint16_t
  3862. Fsrc_window Txcb_window_t
  3863. Fdst_window Txcb_window_t
  3864. Fsrc_x Tint16_t
  3865. Fsrc_y Tint16_t
  3866. }
  3867. type Txcb_translate_coordinates_reply_t = struct {
  3868. Fresponse_type Tuint8_t
  3869. Fsame_screen Tuint8_t
  3870. Fsequence Tuint16_t
  3871. Flength Tuint32_t
  3872. Fchild Txcb_window_t
  3873. Fdst_x Tint16_t
  3874. Fdst_y Tint16_t
  3875. }
  3876. type Txcb_warp_pointer_request_t = struct {
  3877. Fmajor_opcode Tuint8_t
  3878. Fpad0 Tuint8_t
  3879. Flength Tuint16_t
  3880. Fsrc_window Txcb_window_t
  3881. Fdst_window Txcb_window_t
  3882. Fsrc_x Tint16_t
  3883. Fsrc_y Tint16_t
  3884. Fsrc_width Tuint16_t
  3885. Fsrc_height Tuint16_t
  3886. Fdst_x Tint16_t
  3887. Fdst_y Tint16_t
  3888. }
  3889. type Txcb_input_focus_t = int32
  3890. type _xcb_input_focus_t = int32
  3891. const _XCB_INPUT_FOCUS_NONE = 0
  3892. const _XCB_INPUT_FOCUS_POINTER_ROOT = 1
  3893. const _XCB_INPUT_FOCUS_PARENT = 2
  3894. const _XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
  3895. type Txcb_set_input_focus_request_t = struct {
  3896. Fmajor_opcode Tuint8_t
  3897. Frevert_to Tuint8_t
  3898. Flength Tuint16_t
  3899. Ffocus Txcb_window_t
  3900. Ftime Txcb_timestamp_t
  3901. }
  3902. type Txcb_get_input_focus_cookie_t = struct {
  3903. Fsequence uint32
  3904. }
  3905. type Txcb_get_input_focus_request_t = struct {
  3906. Fmajor_opcode Tuint8_t
  3907. Fpad0 Tuint8_t
  3908. Flength Tuint16_t
  3909. }
  3910. type Txcb_get_input_focus_reply_t = struct {
  3911. Fresponse_type Tuint8_t
  3912. Frevert_to Tuint8_t
  3913. Fsequence Tuint16_t
  3914. Flength Tuint32_t
  3915. Ffocus Txcb_window_t
  3916. }
  3917. type Txcb_query_keymap_cookie_t = struct {
  3918. Fsequence uint32
  3919. }
  3920. type Txcb_query_keymap_request_t = struct {
  3921. Fmajor_opcode Tuint8_t
  3922. Fpad0 Tuint8_t
  3923. Flength Tuint16_t
  3924. }
  3925. type Txcb_query_keymap_reply_t = struct {
  3926. Fresponse_type Tuint8_t
  3927. Fpad0 Tuint8_t
  3928. Fsequence Tuint16_t
  3929. Flength Tuint32_t
  3930. Fkeys [32]Tuint8_t
  3931. }
  3932. type Txcb_open_font_request_t = struct {
  3933. Fmajor_opcode Tuint8_t
  3934. Fpad0 Tuint8_t
  3935. Flength Tuint16_t
  3936. Ffid Txcb_font_t
  3937. Fname_len Tuint16_t
  3938. Fpad1 [2]Tuint8_t
  3939. }
  3940. type Txcb_close_font_request_t = struct {
  3941. Fmajor_opcode Tuint8_t
  3942. Fpad0 Tuint8_t
  3943. Flength Tuint16_t
  3944. Ffont Txcb_font_t
  3945. }
  3946. type Txcb_font_draw_t = int32
  3947. type _xcb_font_draw_t = int32
  3948. const _XCB_FONT_DRAW_LEFT_TO_RIGHT = 0
  3949. const _XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
  3950. type Txcb_fontprop_t = struct {
  3951. Fname Txcb_atom_t
  3952. Fvalue Tuint32_t
  3953. }
  3954. type Txcb_fontprop_iterator_t = struct {
  3955. Fdata uintptr
  3956. Frem int32
  3957. Findex int32
  3958. }
  3959. type Txcb_charinfo_t = struct {
  3960. Fleft_side_bearing Tint16_t
  3961. Fright_side_bearing Tint16_t
  3962. Fcharacter_width Tint16_t
  3963. Fascent Tint16_t
  3964. Fdescent Tint16_t
  3965. Fattributes Tuint16_t
  3966. }
  3967. type Txcb_charinfo_iterator_t = struct {
  3968. Fdata uintptr
  3969. Frem int32
  3970. Findex int32
  3971. }
  3972. type Txcb_query_font_cookie_t = struct {
  3973. Fsequence uint32
  3974. }
  3975. type Txcb_query_font_request_t = struct {
  3976. Fmajor_opcode Tuint8_t
  3977. Fpad0 Tuint8_t
  3978. Flength Tuint16_t
  3979. Ffont Txcb_fontable_t
  3980. }
  3981. type Txcb_query_font_reply_t = struct {
  3982. Fresponse_type Tuint8_t
  3983. Fpad0 Tuint8_t
  3984. Fsequence Tuint16_t
  3985. Flength Tuint32_t
  3986. Fmin_bounds Txcb_charinfo_t
  3987. Fpad1 [4]Tuint8_t
  3988. Fmax_bounds Txcb_charinfo_t
  3989. Fpad2 [4]Tuint8_t
  3990. Fmin_char_or_byte2 Tuint16_t
  3991. Fmax_char_or_byte2 Tuint16_t
  3992. Fdefault_char Tuint16_t
  3993. Fproperties_len Tuint16_t
  3994. Fdraw_direction Tuint8_t
  3995. Fmin_byte1 Tuint8_t
  3996. Fmax_byte1 Tuint8_t
  3997. Fall_chars_exist Tuint8_t
  3998. Ffont_ascent Tint16_t
  3999. Ffont_descent Tint16_t
  4000. Fchar_infos_len Tuint32_t
  4001. }
  4002. type Txcb_query_text_extents_cookie_t = struct {
  4003. Fsequence uint32
  4004. }
  4005. type Txcb_query_text_extents_request_t = struct {
  4006. Fmajor_opcode Tuint8_t
  4007. Fodd_length Tuint8_t
  4008. Flength Tuint16_t
  4009. Ffont Txcb_fontable_t
  4010. }
  4011. type Txcb_query_text_extents_reply_t = struct {
  4012. Fresponse_type Tuint8_t
  4013. Fdraw_direction Tuint8_t
  4014. Fsequence Tuint16_t
  4015. Flength Tuint32_t
  4016. Ffont_ascent Tint16_t
  4017. Ffont_descent Tint16_t
  4018. Foverall_ascent Tint16_t
  4019. Foverall_descent Tint16_t
  4020. Foverall_width Tint32_t
  4021. Foverall_left Tint32_t
  4022. Foverall_right Tint32_t
  4023. }
  4024. type Txcb_str_t = struct {
  4025. Fname_len Tuint8_t
  4026. }
  4027. type Txcb_str_iterator_t = struct {
  4028. Fdata uintptr
  4029. Frem int32
  4030. Findex int32
  4031. }
  4032. type Txcb_list_fonts_cookie_t = struct {
  4033. Fsequence uint32
  4034. }
  4035. type Txcb_list_fonts_request_t = struct {
  4036. Fmajor_opcode Tuint8_t
  4037. Fpad0 Tuint8_t
  4038. Flength Tuint16_t
  4039. Fmax_names Tuint16_t
  4040. Fpattern_len Tuint16_t
  4041. }
  4042. type Txcb_list_fonts_reply_t = struct {
  4043. Fresponse_type Tuint8_t
  4044. Fpad0 Tuint8_t
  4045. Fsequence Tuint16_t
  4046. Flength Tuint32_t
  4047. Fnames_len Tuint16_t
  4048. Fpad1 [22]Tuint8_t
  4049. }
  4050. type Txcb_list_fonts_with_info_cookie_t = struct {
  4051. Fsequence uint32
  4052. }
  4053. type Txcb_list_fonts_with_info_request_t = struct {
  4054. Fmajor_opcode Tuint8_t
  4055. Fpad0 Tuint8_t
  4056. Flength Tuint16_t
  4057. Fmax_names Tuint16_t
  4058. Fpattern_len Tuint16_t
  4059. }
  4060. type Txcb_list_fonts_with_info_reply_t = struct {
  4061. Fresponse_type Tuint8_t
  4062. Fname_len Tuint8_t
  4063. Fsequence Tuint16_t
  4064. Flength Tuint32_t
  4065. Fmin_bounds Txcb_charinfo_t
  4066. Fpad0 [4]Tuint8_t
  4067. Fmax_bounds Txcb_charinfo_t
  4068. Fpad1 [4]Tuint8_t
  4069. Fmin_char_or_byte2 Tuint16_t
  4070. Fmax_char_or_byte2 Tuint16_t
  4071. Fdefault_char Tuint16_t
  4072. Fproperties_len Tuint16_t
  4073. Fdraw_direction Tuint8_t
  4074. Fmin_byte1 Tuint8_t
  4075. Fmax_byte1 Tuint8_t
  4076. Fall_chars_exist Tuint8_t
  4077. Ffont_ascent Tint16_t
  4078. Ffont_descent Tint16_t
  4079. Freplies_hint Tuint32_t
  4080. }
  4081. type Txcb_set_font_path_request_t = struct {
  4082. Fmajor_opcode Tuint8_t
  4083. Fpad0 Tuint8_t
  4084. Flength Tuint16_t
  4085. Ffont_qty Tuint16_t
  4086. Fpad1 [2]Tuint8_t
  4087. }
  4088. type Txcb_get_font_path_cookie_t = struct {
  4089. Fsequence uint32
  4090. }
  4091. type Txcb_get_font_path_request_t = struct {
  4092. Fmajor_opcode Tuint8_t
  4093. Fpad0 Tuint8_t
  4094. Flength Tuint16_t
  4095. }
  4096. type Txcb_get_font_path_reply_t = struct {
  4097. Fresponse_type Tuint8_t
  4098. Fpad0 Tuint8_t
  4099. Fsequence Tuint16_t
  4100. Flength Tuint32_t
  4101. Fpath_len Tuint16_t
  4102. Fpad1 [22]Tuint8_t
  4103. }
  4104. type Txcb_create_pixmap_request_t = struct {
  4105. Fmajor_opcode Tuint8_t
  4106. Fdepth Tuint8_t
  4107. Flength Tuint16_t
  4108. Fpid Txcb_pixmap_t
  4109. Fdrawable Txcb_drawable_t
  4110. Fwidth Tuint16_t
  4111. Fheight Tuint16_t
  4112. }
  4113. type Txcb_free_pixmap_request_t = struct {
  4114. Fmajor_opcode Tuint8_t
  4115. Fpad0 Tuint8_t
  4116. Flength Tuint16_t
  4117. Fpixmap Txcb_pixmap_t
  4118. }
  4119. type Txcb_gc_t = int32
  4120. type _xcb_gc_t = int32
  4121. const _XCB_GC_FUNCTION = 1
  4122. const _XCB_GC_PLANE_MASK = 2
  4123. const _XCB_GC_FOREGROUND = 4
  4124. const _XCB_GC_BACKGROUND = 8
  4125. const _XCB_GC_LINE_WIDTH = 16
  4126. const _XCB_GC_LINE_STYLE = 32
  4127. const _XCB_GC_CAP_STYLE = 64
  4128. const _XCB_GC_JOIN_STYLE = 128
  4129. const _XCB_GC_FILL_STYLE = 256
  4130. const _XCB_GC_FILL_RULE = 512
  4131. const _XCB_GC_TILE = 1024
  4132. const _XCB_GC_STIPPLE = 2048
  4133. const _XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096
  4134. const _XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192
  4135. const _XCB_GC_FONT = 16384
  4136. const _XCB_GC_SUBWINDOW_MODE = 32768
  4137. const _XCB_GC_GRAPHICS_EXPOSURES = 65536
  4138. const _XCB_GC_CLIP_ORIGIN_X = 131072
  4139. const _XCB_GC_CLIP_ORIGIN_Y = 262144
  4140. const _XCB_GC_CLIP_MASK = 524288
  4141. const _XCB_GC_DASH_OFFSET = 1048576
  4142. const _XCB_GC_DASH_LIST = 2097152
  4143. const _XCB_GC_ARC_MODE = 4194304
  4144. type Txcb_gx_t = int32
  4145. type _xcb_gx_t = int32
  4146. const _XCB_GX_CLEAR = 0
  4147. const _XCB_GX_AND = 1
  4148. const _XCB_GX_AND_REVERSE = 2
  4149. const _XCB_GX_COPY = 3
  4150. const _XCB_GX_AND_INVERTED = 4
  4151. const _XCB_GX_NOOP = 5
  4152. const _XCB_GX_XOR = 6
  4153. const _XCB_GX_OR = 7
  4154. const _XCB_GX_NOR = 8
  4155. const _XCB_GX_EQUIV = 9
  4156. const _XCB_GX_INVERT = 10
  4157. const _XCB_GX_OR_REVERSE = 11
  4158. const _XCB_GX_COPY_INVERTED = 12
  4159. const _XCB_GX_OR_INVERTED = 13
  4160. const _XCB_GX_NAND = 14
  4161. const _XCB_GX_SET = 15
  4162. type Txcb_line_style_t = int32
  4163. type _xcb_line_style_t = int32
  4164. const _XCB_LINE_STYLE_SOLID = 0
  4165. const _XCB_LINE_STYLE_ON_OFF_DASH = 1
  4166. const _XCB_LINE_STYLE_DOUBLE_DASH = 2
  4167. type Txcb_cap_style_t = int32
  4168. type _xcb_cap_style_t = int32
  4169. const _XCB_CAP_STYLE_NOT_LAST = 0
  4170. const _XCB_CAP_STYLE_BUTT = 1
  4171. const _XCB_CAP_STYLE_ROUND = 2
  4172. const _XCB_CAP_STYLE_PROJECTING = 3
  4173. type Txcb_join_style_t = int32
  4174. type _xcb_join_style_t = int32
  4175. const _XCB_JOIN_STYLE_MITER = 0
  4176. const _XCB_JOIN_STYLE_ROUND = 1
  4177. const _XCB_JOIN_STYLE_BEVEL = 2
  4178. type Txcb_fill_style_t = int32
  4179. type _xcb_fill_style_t = int32
  4180. const _XCB_FILL_STYLE_SOLID = 0
  4181. const _XCB_FILL_STYLE_TILED = 1
  4182. const _XCB_FILL_STYLE_STIPPLED = 2
  4183. const _XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
  4184. type Txcb_fill_rule_t = int32
  4185. type _xcb_fill_rule_t = int32
  4186. const _XCB_FILL_RULE_EVEN_ODD = 0
  4187. const _XCB_FILL_RULE_WINDING = 1
  4188. type Txcb_subwindow_mode_t = int32
  4189. type _xcb_subwindow_mode_t = int32
  4190. const _XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0
  4191. const _XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
  4192. type Txcb_arc_mode_t = int32
  4193. type _xcb_arc_mode_t = int32
  4194. const _XCB_ARC_MODE_CHORD = 0
  4195. const _XCB_ARC_MODE_PIE_SLICE = 1
  4196. type Txcb_create_gc_value_list_t = struct {
  4197. Ffunction Tuint32_t
  4198. Fplane_mask Tuint32_t
  4199. Fforeground Tuint32_t
  4200. Fbackground Tuint32_t
  4201. Fline_width Tuint32_t
  4202. Fline_style Tuint32_t
  4203. Fcap_style Tuint32_t
  4204. Fjoin_style Tuint32_t
  4205. Ffill_style Tuint32_t
  4206. Ffill_rule Tuint32_t
  4207. Ftile Txcb_pixmap_t
  4208. Fstipple Txcb_pixmap_t
  4209. Ftile_stipple_x_origin Tint32_t
  4210. Ftile_stipple_y_origin Tint32_t
  4211. Ffont Txcb_font_t
  4212. Fsubwindow_mode Tuint32_t
  4213. Fgraphics_exposures Txcb_bool32_t
  4214. Fclip_x_origin Tint32_t
  4215. Fclip_y_origin Tint32_t
  4216. Fclip_mask Txcb_pixmap_t
  4217. Fdash_offset Tuint32_t
  4218. Fdashes Tuint32_t
  4219. Farc_mode Tuint32_t
  4220. }
  4221. type Txcb_create_gc_request_t = struct {
  4222. Fmajor_opcode Tuint8_t
  4223. Fpad0 Tuint8_t
  4224. Flength Tuint16_t
  4225. Fcid Txcb_gcontext_t
  4226. Fdrawable Txcb_drawable_t
  4227. Fvalue_mask Tuint32_t
  4228. }
  4229. type Txcb_change_gc_value_list_t = struct {
  4230. Ffunction Tuint32_t
  4231. Fplane_mask Tuint32_t
  4232. Fforeground Tuint32_t
  4233. Fbackground Tuint32_t
  4234. Fline_width Tuint32_t
  4235. Fline_style Tuint32_t
  4236. Fcap_style Tuint32_t
  4237. Fjoin_style Tuint32_t
  4238. Ffill_style Tuint32_t
  4239. Ffill_rule Tuint32_t
  4240. Ftile Txcb_pixmap_t
  4241. Fstipple Txcb_pixmap_t
  4242. Ftile_stipple_x_origin Tint32_t
  4243. Ftile_stipple_y_origin Tint32_t
  4244. Ffont Txcb_font_t
  4245. Fsubwindow_mode Tuint32_t
  4246. Fgraphics_exposures Txcb_bool32_t
  4247. Fclip_x_origin Tint32_t
  4248. Fclip_y_origin Tint32_t
  4249. Fclip_mask Txcb_pixmap_t
  4250. Fdash_offset Tuint32_t
  4251. Fdashes Tuint32_t
  4252. Farc_mode Tuint32_t
  4253. }
  4254. type Txcb_change_gc_request_t = struct {
  4255. Fmajor_opcode Tuint8_t
  4256. Fpad0 Tuint8_t
  4257. Flength Tuint16_t
  4258. Fgc Txcb_gcontext_t
  4259. Fvalue_mask Tuint32_t
  4260. }
  4261. type Txcb_copy_gc_request_t = struct {
  4262. Fmajor_opcode Tuint8_t
  4263. Fpad0 Tuint8_t
  4264. Flength Tuint16_t
  4265. Fsrc_gc Txcb_gcontext_t
  4266. Fdst_gc Txcb_gcontext_t
  4267. Fvalue_mask Tuint32_t
  4268. }
  4269. type Txcb_set_dashes_request_t = struct {
  4270. Fmajor_opcode Tuint8_t
  4271. Fpad0 Tuint8_t
  4272. Flength Tuint16_t
  4273. Fgc Txcb_gcontext_t
  4274. Fdash_offset Tuint16_t
  4275. Fdashes_len Tuint16_t
  4276. }
  4277. type Txcb_clip_ordering_t = int32
  4278. type _xcb_clip_ordering_t = int32
  4279. const _XCB_CLIP_ORDERING_UNSORTED = 0
  4280. const _XCB_CLIP_ORDERING_Y_SORTED = 1
  4281. const _XCB_CLIP_ORDERING_YX_SORTED = 2
  4282. const _XCB_CLIP_ORDERING_YX_BANDED = 3
  4283. type Txcb_set_clip_rectangles_request_t = struct {
  4284. Fmajor_opcode Tuint8_t
  4285. Fordering Tuint8_t
  4286. Flength Tuint16_t
  4287. Fgc Txcb_gcontext_t
  4288. Fclip_x_origin Tint16_t
  4289. Fclip_y_origin Tint16_t
  4290. }
  4291. type Txcb_free_gc_request_t = struct {
  4292. Fmajor_opcode Tuint8_t
  4293. Fpad0 Tuint8_t
  4294. Flength Tuint16_t
  4295. Fgc Txcb_gcontext_t
  4296. }
  4297. type Txcb_clear_area_request_t = struct {
  4298. Fmajor_opcode Tuint8_t
  4299. Fexposures Tuint8_t
  4300. Flength Tuint16_t
  4301. Fwindow Txcb_window_t
  4302. Fx Tint16_t
  4303. Fy Tint16_t
  4304. Fwidth Tuint16_t
  4305. Fheight Tuint16_t
  4306. }
  4307. type Txcb_copy_area_request_t = struct {
  4308. Fmajor_opcode Tuint8_t
  4309. Fpad0 Tuint8_t
  4310. Flength Tuint16_t
  4311. Fsrc_drawable Txcb_drawable_t
  4312. Fdst_drawable Txcb_drawable_t
  4313. Fgc Txcb_gcontext_t
  4314. Fsrc_x Tint16_t
  4315. Fsrc_y Tint16_t
  4316. Fdst_x Tint16_t
  4317. Fdst_y Tint16_t
  4318. Fwidth Tuint16_t
  4319. Fheight Tuint16_t
  4320. }
  4321. type Txcb_copy_plane_request_t = struct {
  4322. Fmajor_opcode Tuint8_t
  4323. Fpad0 Tuint8_t
  4324. Flength Tuint16_t
  4325. Fsrc_drawable Txcb_drawable_t
  4326. Fdst_drawable Txcb_drawable_t
  4327. Fgc Txcb_gcontext_t
  4328. Fsrc_x Tint16_t
  4329. Fsrc_y Tint16_t
  4330. Fdst_x Tint16_t
  4331. Fdst_y Tint16_t
  4332. Fwidth Tuint16_t
  4333. Fheight Tuint16_t
  4334. Fbit_plane Tuint32_t
  4335. }
  4336. type Txcb_coord_mode_t = int32
  4337. type _xcb_coord_mode_t = int32
  4338. const _XCB_COORD_MODE_ORIGIN = 0
  4339. const _XCB_COORD_MODE_PREVIOUS = 1
  4340. type Txcb_poly_point_request_t = struct {
  4341. Fmajor_opcode Tuint8_t
  4342. Fcoordinate_mode Tuint8_t
  4343. Flength Tuint16_t
  4344. Fdrawable Txcb_drawable_t
  4345. Fgc Txcb_gcontext_t
  4346. }
  4347. type Txcb_poly_line_request_t = struct {
  4348. Fmajor_opcode Tuint8_t
  4349. Fcoordinate_mode Tuint8_t
  4350. Flength Tuint16_t
  4351. Fdrawable Txcb_drawable_t
  4352. Fgc Txcb_gcontext_t
  4353. }
  4354. type Txcb_segment_t = struct {
  4355. Fx1 Tint16_t
  4356. Fy1 Tint16_t
  4357. Fx2 Tint16_t
  4358. Fy2 Tint16_t
  4359. }
  4360. type Txcb_segment_iterator_t = struct {
  4361. Fdata uintptr
  4362. Frem int32
  4363. Findex int32
  4364. }
  4365. type Txcb_poly_segment_request_t = struct {
  4366. Fmajor_opcode Tuint8_t
  4367. Fpad0 Tuint8_t
  4368. Flength Tuint16_t
  4369. Fdrawable Txcb_drawable_t
  4370. Fgc Txcb_gcontext_t
  4371. }
  4372. type Txcb_poly_rectangle_request_t = struct {
  4373. Fmajor_opcode Tuint8_t
  4374. Fpad0 Tuint8_t
  4375. Flength Tuint16_t
  4376. Fdrawable Txcb_drawable_t
  4377. Fgc Txcb_gcontext_t
  4378. }
  4379. type Txcb_poly_arc_request_t = struct {
  4380. Fmajor_opcode Tuint8_t
  4381. Fpad0 Tuint8_t
  4382. Flength Tuint16_t
  4383. Fdrawable Txcb_drawable_t
  4384. Fgc Txcb_gcontext_t
  4385. }
  4386. type Txcb_poly_shape_t = int32
  4387. type _xcb_poly_shape_t = int32
  4388. const _XCB_POLY_SHAPE_COMPLEX = 0
  4389. const _XCB_POLY_SHAPE_NONCONVEX = 1
  4390. const _XCB_POLY_SHAPE_CONVEX = 2
  4391. type Txcb_fill_poly_request_t = struct {
  4392. Fmajor_opcode Tuint8_t
  4393. Fpad0 Tuint8_t
  4394. Flength Tuint16_t
  4395. Fdrawable Txcb_drawable_t
  4396. Fgc Txcb_gcontext_t
  4397. Fshape Tuint8_t
  4398. Fcoordinate_mode Tuint8_t
  4399. Fpad1 [2]Tuint8_t
  4400. }
  4401. type Txcb_poly_fill_rectangle_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. }
  4408. type Txcb_poly_fill_arc_request_t = struct {
  4409. Fmajor_opcode Tuint8_t
  4410. Fpad0 Tuint8_t
  4411. Flength Tuint16_t
  4412. Fdrawable Txcb_drawable_t
  4413. Fgc Txcb_gcontext_t
  4414. }
  4415. type Txcb_image_format_t = int32
  4416. type _xcb_image_format_t = int32
  4417. const _XCB_IMAGE_FORMAT_XY_BITMAP = 0
  4418. const _XCB_IMAGE_FORMAT_XY_PIXMAP = 1
  4419. const _XCB_IMAGE_FORMAT_Z_PIXMAP = 2
  4420. type Txcb_put_image_request_t = struct {
  4421. Fmajor_opcode Tuint8_t
  4422. Fformat Tuint8_t
  4423. Flength Tuint16_t
  4424. Fdrawable Txcb_drawable_t
  4425. Fgc Txcb_gcontext_t
  4426. Fwidth Tuint16_t
  4427. Fheight Tuint16_t
  4428. Fdst_x Tint16_t
  4429. Fdst_y Tint16_t
  4430. Fleft_pad Tuint8_t
  4431. Fdepth Tuint8_t
  4432. Fpad0 [2]Tuint8_t
  4433. }
  4434. type Txcb_get_image_cookie_t = struct {
  4435. Fsequence uint32
  4436. }
  4437. type Txcb_get_image_request_t = struct {
  4438. Fmajor_opcode Tuint8_t
  4439. Fformat Tuint8_t
  4440. Flength Tuint16_t
  4441. Fdrawable Txcb_drawable_t
  4442. Fx Tint16_t
  4443. Fy Tint16_t
  4444. Fwidth Tuint16_t
  4445. Fheight Tuint16_t
  4446. Fplane_mask Tuint32_t
  4447. }
  4448. type Txcb_get_image_reply_t = struct {
  4449. Fresponse_type Tuint8_t
  4450. Fdepth Tuint8_t
  4451. Fsequence Tuint16_t
  4452. Flength Tuint32_t
  4453. Fvisual Txcb_visualid_t
  4454. Fpad0 [20]Tuint8_t
  4455. }
  4456. type Txcb_poly_text_8_request_t = struct {
  4457. Fmajor_opcode Tuint8_t
  4458. Fpad0 Tuint8_t
  4459. Flength Tuint16_t
  4460. Fdrawable Txcb_drawable_t
  4461. Fgc Txcb_gcontext_t
  4462. Fx Tint16_t
  4463. Fy Tint16_t
  4464. }
  4465. type Txcb_poly_text_16_request_t = struct {
  4466. Fmajor_opcode Tuint8_t
  4467. Fpad0 Tuint8_t
  4468. Flength Tuint16_t
  4469. Fdrawable Txcb_drawable_t
  4470. Fgc Txcb_gcontext_t
  4471. Fx Tint16_t
  4472. Fy Tint16_t
  4473. }
  4474. type Txcb_image_text_8_request_t = struct {
  4475. Fmajor_opcode Tuint8_t
  4476. Fstring_len Tuint8_t
  4477. Flength Tuint16_t
  4478. Fdrawable Txcb_drawable_t
  4479. Fgc Txcb_gcontext_t
  4480. Fx Tint16_t
  4481. Fy Tint16_t
  4482. }
  4483. type Txcb_image_text_16_request_t = struct {
  4484. Fmajor_opcode Tuint8_t
  4485. Fstring_len Tuint8_t
  4486. Flength Tuint16_t
  4487. Fdrawable Txcb_drawable_t
  4488. Fgc Txcb_gcontext_t
  4489. Fx Tint16_t
  4490. Fy Tint16_t
  4491. }
  4492. type Txcb_colormap_alloc_t = int32
  4493. type _xcb_colormap_alloc_t = int32
  4494. const _XCB_COLORMAP_ALLOC_NONE = 0
  4495. const _XCB_COLORMAP_ALLOC_ALL = 1
  4496. type Txcb_create_colormap_request_t = struct {
  4497. Fmajor_opcode Tuint8_t
  4498. Falloc Tuint8_t
  4499. Flength Tuint16_t
  4500. Fmid Txcb_colormap_t
  4501. Fwindow Txcb_window_t
  4502. Fvisual Txcb_visualid_t
  4503. }
  4504. type Txcb_free_colormap_request_t = struct {
  4505. Fmajor_opcode Tuint8_t
  4506. Fpad0 Tuint8_t
  4507. Flength Tuint16_t
  4508. Fcmap Txcb_colormap_t
  4509. }
  4510. type Txcb_copy_colormap_and_free_request_t = struct {
  4511. Fmajor_opcode Tuint8_t
  4512. Fpad0 Tuint8_t
  4513. Flength Tuint16_t
  4514. Fmid Txcb_colormap_t
  4515. Fsrc_cmap Txcb_colormap_t
  4516. }
  4517. type Txcb_install_colormap_request_t = struct {
  4518. Fmajor_opcode Tuint8_t
  4519. Fpad0 Tuint8_t
  4520. Flength Tuint16_t
  4521. Fcmap Txcb_colormap_t
  4522. }
  4523. type Txcb_uninstall_colormap_request_t = struct {
  4524. Fmajor_opcode Tuint8_t
  4525. Fpad0 Tuint8_t
  4526. Flength Tuint16_t
  4527. Fcmap Txcb_colormap_t
  4528. }
  4529. type Txcb_list_installed_colormaps_cookie_t = struct {
  4530. Fsequence uint32
  4531. }
  4532. type Txcb_list_installed_colormaps_request_t = struct {
  4533. Fmajor_opcode Tuint8_t
  4534. Fpad0 Tuint8_t
  4535. Flength Tuint16_t
  4536. Fwindow Txcb_window_t
  4537. }
  4538. type Txcb_list_installed_colormaps_reply_t = struct {
  4539. Fresponse_type Tuint8_t
  4540. Fpad0 Tuint8_t
  4541. Fsequence Tuint16_t
  4542. Flength Tuint32_t
  4543. Fcmaps_len Tuint16_t
  4544. Fpad1 [22]Tuint8_t
  4545. }
  4546. type Txcb_alloc_color_cookie_t = struct {
  4547. Fsequence uint32
  4548. }
  4549. type Txcb_alloc_color_request_t = struct {
  4550. Fmajor_opcode Tuint8_t
  4551. Fpad0 Tuint8_t
  4552. Flength Tuint16_t
  4553. Fcmap Txcb_colormap_t
  4554. Fred Tuint16_t
  4555. Fgreen Tuint16_t
  4556. Fblue Tuint16_t
  4557. Fpad1 [2]Tuint8_t
  4558. }
  4559. type Txcb_alloc_color_reply_t = struct {
  4560. Fresponse_type Tuint8_t
  4561. Fpad0 Tuint8_t
  4562. Fsequence Tuint16_t
  4563. Flength Tuint32_t
  4564. Fred Tuint16_t
  4565. Fgreen Tuint16_t
  4566. Fblue Tuint16_t
  4567. Fpad1 [2]Tuint8_t
  4568. Fpixel Tuint32_t
  4569. }
  4570. type Txcb_alloc_named_color_cookie_t = struct {
  4571. Fsequence uint32
  4572. }
  4573. type Txcb_alloc_named_color_request_t = struct {
  4574. Fmajor_opcode Tuint8_t
  4575. Fpad0 Tuint8_t
  4576. Flength Tuint16_t
  4577. Fcmap Txcb_colormap_t
  4578. Fname_len Tuint16_t
  4579. Fpad1 [2]Tuint8_t
  4580. }
  4581. type Txcb_alloc_named_color_reply_t = struct {
  4582. Fresponse_type Tuint8_t
  4583. Fpad0 Tuint8_t
  4584. Fsequence Tuint16_t
  4585. Flength Tuint32_t
  4586. Fpixel Tuint32_t
  4587. Fexact_red Tuint16_t
  4588. Fexact_green Tuint16_t
  4589. Fexact_blue Tuint16_t
  4590. Fvisual_red Tuint16_t
  4591. Fvisual_green Tuint16_t
  4592. Fvisual_blue Tuint16_t
  4593. }
  4594. type Txcb_alloc_color_cells_cookie_t = struct {
  4595. Fsequence uint32
  4596. }
  4597. type Txcb_alloc_color_cells_request_t = struct {
  4598. Fmajor_opcode Tuint8_t
  4599. Fcontiguous Tuint8_t
  4600. Flength Tuint16_t
  4601. Fcmap Txcb_colormap_t
  4602. Fcolors Tuint16_t
  4603. Fplanes Tuint16_t
  4604. }
  4605. type Txcb_alloc_color_cells_reply_t = struct {
  4606. Fresponse_type Tuint8_t
  4607. Fpad0 Tuint8_t
  4608. Fsequence Tuint16_t
  4609. Flength Tuint32_t
  4610. Fpixels_len Tuint16_t
  4611. Fmasks_len Tuint16_t
  4612. Fpad1 [20]Tuint8_t
  4613. }
  4614. type Txcb_alloc_color_planes_cookie_t = struct {
  4615. Fsequence uint32
  4616. }
  4617. type Txcb_alloc_color_planes_request_t = struct {
  4618. Fmajor_opcode Tuint8_t
  4619. Fcontiguous Tuint8_t
  4620. Flength Tuint16_t
  4621. Fcmap Txcb_colormap_t
  4622. Fcolors Tuint16_t
  4623. Freds Tuint16_t
  4624. Fgreens Tuint16_t
  4625. Fblues Tuint16_t
  4626. }
  4627. type Txcb_alloc_color_planes_reply_t = struct {
  4628. Fresponse_type Tuint8_t
  4629. Fpad0 Tuint8_t
  4630. Fsequence Tuint16_t
  4631. Flength Tuint32_t
  4632. Fpixels_len Tuint16_t
  4633. Fpad1 [2]Tuint8_t
  4634. Fred_mask Tuint32_t
  4635. Fgreen_mask Tuint32_t
  4636. Fblue_mask Tuint32_t
  4637. Fpad2 [8]Tuint8_t
  4638. }
  4639. type Txcb_free_colors_request_t = struct {
  4640. Fmajor_opcode Tuint8_t
  4641. Fpad0 Tuint8_t
  4642. Flength Tuint16_t
  4643. Fcmap Txcb_colormap_t
  4644. Fplane_mask Tuint32_t
  4645. }
  4646. type Txcb_color_flag_t = int32
  4647. type _xcb_color_flag_t = int32
  4648. const _XCB_COLOR_FLAG_RED = 1
  4649. const _XCB_COLOR_FLAG_GREEN = 2
  4650. const _XCB_COLOR_FLAG_BLUE = 4
  4651. type Txcb_coloritem_t = struct {
  4652. Fpixel Tuint32_t
  4653. Fred Tuint16_t
  4654. Fgreen Tuint16_t
  4655. Fblue Tuint16_t
  4656. Fflags Tuint8_t
  4657. Fpad0 Tuint8_t
  4658. }
  4659. type Txcb_coloritem_iterator_t = struct {
  4660. Fdata uintptr
  4661. Frem int32
  4662. Findex int32
  4663. }
  4664. type Txcb_store_colors_request_t = struct {
  4665. Fmajor_opcode Tuint8_t
  4666. Fpad0 Tuint8_t
  4667. Flength Tuint16_t
  4668. Fcmap Txcb_colormap_t
  4669. }
  4670. type Txcb_store_named_color_request_t = struct {
  4671. Fmajor_opcode Tuint8_t
  4672. Fflags Tuint8_t
  4673. Flength Tuint16_t
  4674. Fcmap Txcb_colormap_t
  4675. Fpixel Tuint32_t
  4676. Fname_len Tuint16_t
  4677. Fpad0 [2]Tuint8_t
  4678. }
  4679. type Txcb_rgb_t = struct {
  4680. Fred Tuint16_t
  4681. Fgreen Tuint16_t
  4682. Fblue Tuint16_t
  4683. Fpad0 [2]Tuint8_t
  4684. }
  4685. type Txcb_rgb_iterator_t = struct {
  4686. Fdata uintptr
  4687. Frem int32
  4688. Findex int32
  4689. }
  4690. type Txcb_query_colors_cookie_t = struct {
  4691. Fsequence uint32
  4692. }
  4693. type Txcb_query_colors_request_t = struct {
  4694. Fmajor_opcode Tuint8_t
  4695. Fpad0 Tuint8_t
  4696. Flength Tuint16_t
  4697. Fcmap Txcb_colormap_t
  4698. }
  4699. type Txcb_query_colors_reply_t = struct {
  4700. Fresponse_type Tuint8_t
  4701. Fpad0 Tuint8_t
  4702. Fsequence Tuint16_t
  4703. Flength Tuint32_t
  4704. Fcolors_len Tuint16_t
  4705. Fpad1 [22]Tuint8_t
  4706. }
  4707. type Txcb_lookup_color_cookie_t = struct {
  4708. Fsequence uint32
  4709. }
  4710. type Txcb_lookup_color_request_t = struct {
  4711. Fmajor_opcode Tuint8_t
  4712. Fpad0 Tuint8_t
  4713. Flength Tuint16_t
  4714. Fcmap Txcb_colormap_t
  4715. Fname_len Tuint16_t
  4716. Fpad1 [2]Tuint8_t
  4717. }
  4718. type Txcb_lookup_color_reply_t = struct {
  4719. Fresponse_type Tuint8_t
  4720. Fpad0 Tuint8_t
  4721. Fsequence Tuint16_t
  4722. Flength Tuint32_t
  4723. Fexact_red Tuint16_t
  4724. Fexact_green Tuint16_t
  4725. Fexact_blue Tuint16_t
  4726. Fvisual_red Tuint16_t
  4727. Fvisual_green Tuint16_t
  4728. Fvisual_blue Tuint16_t
  4729. }
  4730. type Txcb_pixmap_enum_t = int32
  4731. type _xcb_pixmap_enum_t = int32
  4732. const _XCB_PIXMAP_NONE = 0
  4733. type Txcb_create_cursor_request_t = struct {
  4734. Fmajor_opcode Tuint8_t
  4735. Fpad0 Tuint8_t
  4736. Flength Tuint16_t
  4737. Fcid Txcb_cursor_t
  4738. Fsource Txcb_pixmap_t
  4739. Fmask Txcb_pixmap_t
  4740. Ffore_red Tuint16_t
  4741. Ffore_green Tuint16_t
  4742. Ffore_blue Tuint16_t
  4743. Fback_red Tuint16_t
  4744. Fback_green Tuint16_t
  4745. Fback_blue Tuint16_t
  4746. Fx Tuint16_t
  4747. Fy Tuint16_t
  4748. }
  4749. type Txcb_font_enum_t = int32
  4750. type _xcb_font_enum_t = int32
  4751. const _XCB_FONT_NONE = 0
  4752. type Txcb_create_glyph_cursor_request_t = struct {
  4753. Fmajor_opcode Tuint8_t
  4754. Fpad0 Tuint8_t
  4755. Flength Tuint16_t
  4756. Fcid Txcb_cursor_t
  4757. Fsource_font Txcb_font_t
  4758. Fmask_font Txcb_font_t
  4759. Fsource_char Tuint16_t
  4760. Fmask_char Tuint16_t
  4761. Ffore_red Tuint16_t
  4762. Ffore_green Tuint16_t
  4763. Ffore_blue Tuint16_t
  4764. Fback_red Tuint16_t
  4765. Fback_green Tuint16_t
  4766. Fback_blue Tuint16_t
  4767. }
  4768. type Txcb_free_cursor_request_t = struct {
  4769. Fmajor_opcode Tuint8_t
  4770. Fpad0 Tuint8_t
  4771. Flength Tuint16_t
  4772. Fcursor Txcb_cursor_t
  4773. }
  4774. type Txcb_recolor_cursor_request_t = struct {
  4775. Fmajor_opcode Tuint8_t
  4776. Fpad0 Tuint8_t
  4777. Flength Tuint16_t
  4778. Fcursor Txcb_cursor_t
  4779. Ffore_red Tuint16_t
  4780. Ffore_green Tuint16_t
  4781. Ffore_blue Tuint16_t
  4782. Fback_red Tuint16_t
  4783. Fback_green Tuint16_t
  4784. Fback_blue Tuint16_t
  4785. }
  4786. type Txcb_query_shape_of_t = int32
  4787. type _xcb_query_shape_of_t = int32
  4788. const _XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0
  4789. const _XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1
  4790. const _XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
  4791. type Txcb_query_best_size_cookie_t = struct {
  4792. Fsequence uint32
  4793. }
  4794. type Txcb_query_best_size_request_t = struct {
  4795. Fmajor_opcode Tuint8_t
  4796. F_class Tuint8_t
  4797. Flength Tuint16_t
  4798. Fdrawable Txcb_drawable_t
  4799. Fwidth Tuint16_t
  4800. Fheight Tuint16_t
  4801. }
  4802. type Txcb_query_best_size_reply_t = struct {
  4803. Fresponse_type Tuint8_t
  4804. Fpad0 Tuint8_t
  4805. Fsequence Tuint16_t
  4806. Flength Tuint32_t
  4807. Fwidth Tuint16_t
  4808. Fheight Tuint16_t
  4809. }
  4810. type Txcb_query_extension_cookie_t = struct {
  4811. Fsequence uint32
  4812. }
  4813. type Txcb_query_extension_request_t = struct {
  4814. Fmajor_opcode Tuint8_t
  4815. Fpad0 Tuint8_t
  4816. Flength Tuint16_t
  4817. Fname_len Tuint16_t
  4818. Fpad1 [2]Tuint8_t
  4819. }
  4820. type Txcb_query_extension_reply_t = struct {
  4821. Fresponse_type Tuint8_t
  4822. Fpad0 Tuint8_t
  4823. Fsequence Tuint16_t
  4824. Flength Tuint32_t
  4825. Fpresent Tuint8_t
  4826. Fmajor_opcode Tuint8_t
  4827. Ffirst_event Tuint8_t
  4828. Ffirst_error Tuint8_t
  4829. }
  4830. type Txcb_list_extensions_cookie_t = struct {
  4831. Fsequence uint32
  4832. }
  4833. type Txcb_list_extensions_request_t = struct {
  4834. Fmajor_opcode Tuint8_t
  4835. Fpad0 Tuint8_t
  4836. Flength Tuint16_t
  4837. }
  4838. type Txcb_list_extensions_reply_t = struct {
  4839. Fresponse_type Tuint8_t
  4840. Fnames_len Tuint8_t
  4841. Fsequence Tuint16_t
  4842. Flength Tuint32_t
  4843. Fpad0 [24]Tuint8_t
  4844. }
  4845. type Txcb_change_keyboard_mapping_request_t = struct {
  4846. Fmajor_opcode Tuint8_t
  4847. Fkeycode_count Tuint8_t
  4848. Flength Tuint16_t
  4849. Ffirst_keycode Txcb_keycode_t
  4850. Fkeysyms_per_keycode Tuint8_t
  4851. Fpad0 [2]Tuint8_t
  4852. }
  4853. type Txcb_get_keyboard_mapping_cookie_t = struct {
  4854. Fsequence uint32
  4855. }
  4856. type Txcb_get_keyboard_mapping_request_t = struct {
  4857. Fmajor_opcode Tuint8_t
  4858. Fpad0 Tuint8_t
  4859. Flength Tuint16_t
  4860. Ffirst_keycode Txcb_keycode_t
  4861. Fcount Tuint8_t
  4862. }
  4863. type Txcb_get_keyboard_mapping_reply_t = struct {
  4864. Fresponse_type Tuint8_t
  4865. Fkeysyms_per_keycode Tuint8_t
  4866. Fsequence Tuint16_t
  4867. Flength Tuint32_t
  4868. Fpad0 [24]Tuint8_t
  4869. }
  4870. type Txcb_kb_t = int32
  4871. type _xcb_kb_t = int32
  4872. const _XCB_KB_KEY_CLICK_PERCENT = 1
  4873. const _XCB_KB_BELL_PERCENT = 2
  4874. const _XCB_KB_BELL_PITCH = 4
  4875. const _XCB_KB_BELL_DURATION = 8
  4876. const _XCB_KB_LED = 16
  4877. const _XCB_KB_LED_MODE = 32
  4878. const _XCB_KB_KEY = 64
  4879. const _XCB_KB_AUTO_REPEAT_MODE = 128
  4880. type Txcb_led_mode_t = int32
  4881. type _xcb_led_mode_t = int32
  4882. const _XCB_LED_MODE_OFF = 0
  4883. const _XCB_LED_MODE_ON = 1
  4884. type Txcb_auto_repeat_mode_t = int32
  4885. type _xcb_auto_repeat_mode_t = int32
  4886. const _XCB_AUTO_REPEAT_MODE_OFF = 0
  4887. const _XCB_AUTO_REPEAT_MODE_ON = 1
  4888. const _XCB_AUTO_REPEAT_MODE_DEFAULT = 2
  4889. type Txcb_change_keyboard_control_value_list_t = struct {
  4890. Fkey_click_percent Tint32_t
  4891. Fbell_percent Tint32_t
  4892. Fbell_pitch Tint32_t
  4893. Fbell_duration Tint32_t
  4894. Fled Tuint32_t
  4895. Fled_mode Tuint32_t
  4896. Fkey Txcb_keycode32_t
  4897. Fauto_repeat_mode Tuint32_t
  4898. }
  4899. type Txcb_change_keyboard_control_request_t = struct {
  4900. Fmajor_opcode Tuint8_t
  4901. Fpad0 Tuint8_t
  4902. Flength Tuint16_t
  4903. Fvalue_mask Tuint32_t
  4904. }
  4905. type Txcb_get_keyboard_control_cookie_t = struct {
  4906. Fsequence uint32
  4907. }
  4908. type Txcb_get_keyboard_control_request_t = struct {
  4909. Fmajor_opcode Tuint8_t
  4910. Fpad0 Tuint8_t
  4911. Flength Tuint16_t
  4912. }
  4913. type Txcb_get_keyboard_control_reply_t = struct {
  4914. Fresponse_type Tuint8_t
  4915. Fglobal_auto_repeat Tuint8_t
  4916. Fsequence Tuint16_t
  4917. Flength Tuint32_t
  4918. Fled_mask Tuint32_t
  4919. Fkey_click_percent Tuint8_t
  4920. Fbell_percent Tuint8_t
  4921. Fbell_pitch Tuint16_t
  4922. Fbell_duration Tuint16_t
  4923. Fpad0 [2]Tuint8_t
  4924. Fauto_repeats [32]Tuint8_t
  4925. }
  4926. type Txcb_bell_request_t = struct {
  4927. Fmajor_opcode Tuint8_t
  4928. Fpercent Tint8_t
  4929. Flength Tuint16_t
  4930. }
  4931. type Txcb_change_pointer_control_request_t = struct {
  4932. Fmajor_opcode Tuint8_t
  4933. Fpad0 Tuint8_t
  4934. Flength Tuint16_t
  4935. Facceleration_numerator Tint16_t
  4936. Facceleration_denominator Tint16_t
  4937. Fthreshold Tint16_t
  4938. Fdo_acceleration Tuint8_t
  4939. Fdo_threshold Tuint8_t
  4940. }
  4941. type Txcb_get_pointer_control_cookie_t = struct {
  4942. Fsequence uint32
  4943. }
  4944. type Txcb_get_pointer_control_request_t = struct {
  4945. Fmajor_opcode Tuint8_t
  4946. Fpad0 Tuint8_t
  4947. Flength Tuint16_t
  4948. }
  4949. type Txcb_get_pointer_control_reply_t = struct {
  4950. Fresponse_type Tuint8_t
  4951. Fpad0 Tuint8_t
  4952. Fsequence Tuint16_t
  4953. Flength Tuint32_t
  4954. Facceleration_numerator Tuint16_t
  4955. Facceleration_denominator Tuint16_t
  4956. Fthreshold Tuint16_t
  4957. Fpad1 [18]Tuint8_t
  4958. }
  4959. type Txcb_blanking_t = int32
  4960. type _xcb_blanking_t = int32
  4961. const _XCB_BLANKING_NOT_PREFERRED = 0
  4962. const _XCB_BLANKING_PREFERRED = 1
  4963. const _XCB_BLANKING_DEFAULT = 2
  4964. type Txcb_exposures_t = int32
  4965. type _xcb_exposures_t = int32
  4966. const _XCB_EXPOSURES_NOT_ALLOWED = 0
  4967. const _XCB_EXPOSURES_ALLOWED = 1
  4968. const _XCB_EXPOSURES_DEFAULT = 2
  4969. type Txcb_set_screen_saver_request_t = struct {
  4970. Fmajor_opcode Tuint8_t
  4971. Fpad0 Tuint8_t
  4972. Flength Tuint16_t
  4973. Ftimeout Tint16_t
  4974. Finterval Tint16_t
  4975. Fprefer_blanking Tuint8_t
  4976. Fallow_exposures Tuint8_t
  4977. }
  4978. type Txcb_get_screen_saver_cookie_t = struct {
  4979. Fsequence uint32
  4980. }
  4981. type Txcb_get_screen_saver_request_t = struct {
  4982. Fmajor_opcode Tuint8_t
  4983. Fpad0 Tuint8_t
  4984. Flength Tuint16_t
  4985. }
  4986. type Txcb_get_screen_saver_reply_t = struct {
  4987. Fresponse_type Tuint8_t
  4988. Fpad0 Tuint8_t
  4989. Fsequence Tuint16_t
  4990. Flength Tuint32_t
  4991. Ftimeout Tuint16_t
  4992. Finterval Tuint16_t
  4993. Fprefer_blanking Tuint8_t
  4994. Fallow_exposures Tuint8_t
  4995. Fpad1 [18]Tuint8_t
  4996. }
  4997. type Txcb_host_mode_t = int32
  4998. type _xcb_host_mode_t = int32
  4999. const _XCB_HOST_MODE_INSERT = 0
  5000. const _XCB_HOST_MODE_DELETE = 1
  5001. type Txcb_family_t = int32
  5002. type _xcb_family_t = int32
  5003. const _XCB_FAMILY_INTERNET = 0
  5004. const _XCB_FAMILY_DECNET = 1
  5005. const _XCB_FAMILY_CHAOS = 2
  5006. const _XCB_FAMILY_SERVER_INTERPRETED = 5
  5007. const _XCB_FAMILY_INTERNET_6 = 6
  5008. type Txcb_change_hosts_request_t = struct {
  5009. Fmajor_opcode Tuint8_t
  5010. Fmode Tuint8_t
  5011. Flength Tuint16_t
  5012. Ffamily Tuint8_t
  5013. Fpad0 Tuint8_t
  5014. Faddress_len Tuint16_t
  5015. }
  5016. type Txcb_host_t = struct {
  5017. Ffamily Tuint8_t
  5018. Fpad0 Tuint8_t
  5019. Faddress_len Tuint16_t
  5020. }
  5021. type Txcb_host_iterator_t = struct {
  5022. Fdata uintptr
  5023. Frem int32
  5024. Findex int32
  5025. }
  5026. type Txcb_list_hosts_cookie_t = struct {
  5027. Fsequence uint32
  5028. }
  5029. type Txcb_list_hosts_request_t = struct {
  5030. Fmajor_opcode Tuint8_t
  5031. Fpad0 Tuint8_t
  5032. Flength Tuint16_t
  5033. }
  5034. type Txcb_list_hosts_reply_t = struct {
  5035. Fresponse_type Tuint8_t
  5036. Fmode Tuint8_t
  5037. Fsequence Tuint16_t
  5038. Flength Tuint32_t
  5039. Fhosts_len Tuint16_t
  5040. Fpad0 [22]Tuint8_t
  5041. }
  5042. type Txcb_access_control_t = int32
  5043. type _xcb_access_control_t = int32
  5044. const _XCB_ACCESS_CONTROL_DISABLE = 0
  5045. const _XCB_ACCESS_CONTROL_ENABLE = 1
  5046. type Txcb_set_access_control_request_t = struct {
  5047. Fmajor_opcode Tuint8_t
  5048. Fmode Tuint8_t
  5049. Flength Tuint16_t
  5050. }
  5051. type Txcb_close_down_t = int32
  5052. type _xcb_close_down_t = int32
  5053. const _XCB_CLOSE_DOWN_DESTROY_ALL = 0
  5054. const _XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1
  5055. const _XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
  5056. type Txcb_set_close_down_mode_request_t = struct {
  5057. Fmajor_opcode Tuint8_t
  5058. Fmode Tuint8_t
  5059. Flength Tuint16_t
  5060. }
  5061. type Txcb_kill_t = int32
  5062. type _xcb_kill_t = int32
  5063. const _XCB_KILL_ALL_TEMPORARY = 0
  5064. type Txcb_kill_client_request_t = struct {
  5065. Fmajor_opcode Tuint8_t
  5066. Fpad0 Tuint8_t
  5067. Flength Tuint16_t
  5068. Fresource Tuint32_t
  5069. }
  5070. type Txcb_rotate_properties_request_t = struct {
  5071. Fmajor_opcode Tuint8_t
  5072. Fpad0 Tuint8_t
  5073. Flength Tuint16_t
  5074. Fwindow Txcb_window_t
  5075. Fatoms_len Tuint16_t
  5076. Fdelta Tint16_t
  5077. }
  5078. type Txcb_screen_saver_t = int32
  5079. type _xcb_screen_saver_t = int32
  5080. const _XCB_SCREEN_SAVER_RESET = 0
  5081. const _XCB_SCREEN_SAVER_ACTIVE = 1
  5082. type Txcb_force_screen_saver_request_t = struct {
  5083. Fmajor_opcode Tuint8_t
  5084. Fmode Tuint8_t
  5085. Flength Tuint16_t
  5086. }
  5087. type Txcb_mapping_status_t = int32
  5088. type _xcb_mapping_status_t = int32
  5089. const _XCB_MAPPING_STATUS_SUCCESS = 0
  5090. const _XCB_MAPPING_STATUS_BUSY = 1
  5091. const _XCB_MAPPING_STATUS_FAILURE = 2
  5092. type Txcb_set_pointer_mapping_cookie_t = struct {
  5093. Fsequence uint32
  5094. }
  5095. type Txcb_set_pointer_mapping_request_t = struct {
  5096. Fmajor_opcode Tuint8_t
  5097. Fmap_len Tuint8_t
  5098. Flength Tuint16_t
  5099. }
  5100. type Txcb_set_pointer_mapping_reply_t = struct {
  5101. Fresponse_type Tuint8_t
  5102. Fstatus Tuint8_t
  5103. Fsequence Tuint16_t
  5104. Flength Tuint32_t
  5105. }
  5106. type Txcb_get_pointer_mapping_cookie_t = struct {
  5107. Fsequence uint32
  5108. }
  5109. type Txcb_get_pointer_mapping_request_t = struct {
  5110. Fmajor_opcode Tuint8_t
  5111. Fpad0 Tuint8_t
  5112. Flength Tuint16_t
  5113. }
  5114. type Txcb_get_pointer_mapping_reply_t = struct {
  5115. Fresponse_type Tuint8_t
  5116. Fmap_len Tuint8_t
  5117. Fsequence Tuint16_t
  5118. Flength Tuint32_t
  5119. Fpad0 [24]Tuint8_t
  5120. }
  5121. type Txcb_map_index_t = int32
  5122. type _xcb_map_index_t = int32
  5123. const _XCB_MAP_INDEX_SHIFT = 0
  5124. const _XCB_MAP_INDEX_LOCK = 1
  5125. const _XCB_MAP_INDEX_CONTROL = 2
  5126. const _XCB_MAP_INDEX_1 = 3
  5127. const _XCB_MAP_INDEX_2 = 4
  5128. const _XCB_MAP_INDEX_3 = 5
  5129. const _XCB_MAP_INDEX_4 = 6
  5130. const _XCB_MAP_INDEX_5 = 7
  5131. type Txcb_set_modifier_mapping_cookie_t = struct {
  5132. Fsequence uint32
  5133. }
  5134. type Txcb_set_modifier_mapping_request_t = struct {
  5135. Fmajor_opcode Tuint8_t
  5136. Fkeycodes_per_modifier Tuint8_t
  5137. Flength Tuint16_t
  5138. }
  5139. type Txcb_set_modifier_mapping_reply_t = struct {
  5140. Fresponse_type Tuint8_t
  5141. Fstatus Tuint8_t
  5142. Fsequence Tuint16_t
  5143. Flength Tuint32_t
  5144. }
  5145. type Txcb_get_modifier_mapping_cookie_t = struct {
  5146. Fsequence uint32
  5147. }
  5148. type Txcb_get_modifier_mapping_request_t = struct {
  5149. Fmajor_opcode Tuint8_t
  5150. Fpad0 Tuint8_t
  5151. Flength Tuint16_t
  5152. }
  5153. type Txcb_get_modifier_mapping_reply_t = struct {
  5154. Fresponse_type Tuint8_t
  5155. Fkeycodes_per_modifier Tuint8_t
  5156. Fsequence Tuint16_t
  5157. Flength Tuint32_t
  5158. Fpad0 [24]Tuint8_t
  5159. }
  5160. type Txcb_no_operation_request_t = struct {
  5161. Fmajor_opcode Tuint8_t
  5162. Fpad0 Tuint8_t
  5163. Flength Tuint16_t
  5164. }
  5165. type Txcb_auth_info_t = struct {
  5166. Fnamelen int32
  5167. Fname uintptr
  5168. Fdatalen int32
  5169. Fdata uintptr
  5170. }
  5171. type Txcb_big_requests_enable_cookie_t = struct {
  5172. Fsequence uint32
  5173. }
  5174. type Txcb_big_requests_enable_request_t = struct {
  5175. Fmajor_opcode Tuint8_t
  5176. Fminor_opcode Tuint8_t
  5177. Flength Tuint16_t
  5178. }
  5179. type Txcb_big_requests_enable_reply_t = struct {
  5180. Fresponse_type Tuint8_t
  5181. Fpad0 Tuint8_t
  5182. Fsequence Tuint16_t
  5183. Flength Tuint32_t
  5184. Fmaximum_request_length Tuint32_t
  5185. }
  5186. type _workarounds = int32
  5187. const _WORKAROUND_NONE = 0
  5188. const _WORKAROUND_GLX_GET_FB_CONFIGS_BUG = 1
  5189. const _WORKAROUND_EXTERNAL_SOCKET_OWNER = 2
  5190. type _lazy_reply_tag = int32
  5191. const _LAZY_NONE = 0
  5192. const _LAZY_COOKIE = 1
  5193. const _LAZY_FORCED = 2
  5194. type Txcb_list_free_func_t = uintptr
  5195. type T_xcb_fd = struct {
  5196. Ffd [16]int32
  5197. Fnfd int32
  5198. Fifd int32
  5199. }
  5200. type T_xcb_out = struct {
  5201. F__ccgo_align [0]uint32
  5202. Fcond Tpthread_cond_t
  5203. Fwriting int32
  5204. Fsocket_cond Tpthread_cond_t
  5205. Freturn_socket uintptr
  5206. Fsocket_closure uintptr
  5207. Fsocket_moving int32
  5208. Fqueue [16384]uint8
  5209. Fqueue_len int32
  5210. F__ccgo_align8 [4]byte
  5211. Frequest Tuint64_t
  5212. Frequest_written Tuint64_t
  5213. Frequest_expected_written Tuint64_t
  5214. Ftotal_written Tuint64_t
  5215. Freqlenlock Tpthread_mutex_t
  5216. Fmaximum_request_length_tag _lazy_reply_tag
  5217. Fmaximum_request_length struct {
  5218. Fvalue [0]Tuint32_t
  5219. Fcookie Txcb_big_requests_enable_cookie_t
  5220. }
  5221. Fout_fd T_xcb_fd
  5222. F__ccgo_pad16 [4]byte
  5223. }
  5224. type T_xcb_in = struct {
  5225. F__ccgo_align [0]uint32
  5226. Fevent_cond Tpthread_cond_t
  5227. Freading int32
  5228. Fqueue [4096]uint8
  5229. Fqueue_len int32
  5230. Frequest_expected Tuint64_t
  5231. Frequest_read Tuint64_t
  5232. Frequest_completed Tuint64_t
  5233. Ftotal_read Tuint64_t
  5234. Fcurrent_reply uintptr
  5235. Fcurrent_reply_tail uintptr
  5236. Freplies uintptr
  5237. Fevents uintptr
  5238. Fevents_tail uintptr
  5239. Freaders uintptr
  5240. Fspecial_waiters uintptr
  5241. Fpending_replies uintptr
  5242. Fpending_replies_tail uintptr
  5243. Fin_fd T_xcb_fd
  5244. Fspecial_events uintptr
  5245. }
  5246. type T_xcb_xid = struct {
  5247. Flock Tpthread_mutex_t
  5248. Flast Tuint32_t
  5249. Fbase Tuint32_t
  5250. Fmax Tuint32_t
  5251. Finc Tuint32_t
  5252. }
  5253. type T_xcb_ext = struct {
  5254. Flock Tpthread_mutex_t
  5255. Fextensions uintptr
  5256. Fextensions_size int32
  5257. }
  5258. type Txcb_connection_t1 = struct {
  5259. F__ccgo_align [0]uint32
  5260. Fhas_error int32
  5261. Fsetup uintptr
  5262. Ffd int32
  5263. Fiolock Tpthread_mutex_t
  5264. Fin T_xcb_in
  5265. Fout T_xcb_out
  5266. Fext T_xcb_ext
  5267. Fxid T_xcb_xid
  5268. }
  5269. type Tnfds_t = uint32
  5270. type Tpollfd = struct {
  5271. Ffd int32
  5272. Fevents int16
  5273. Frevents int16
  5274. }
  5275. type Tsocklen_t = uint32
  5276. type Tsa_family_t = uint16
  5277. type Tmsghdr = struct {
  5278. Fmsg_name uintptr
  5279. Fmsg_namelen Tsocklen_t
  5280. Fmsg_iov uintptr
  5281. Fmsg_iovlen int32
  5282. Fmsg_control uintptr
  5283. Fmsg_controllen Tsocklen_t
  5284. Fmsg_flags int32
  5285. }
  5286. type Tcmsghdr = struct {
  5287. Fcmsg_len Tsocklen_t
  5288. Fcmsg_level int32
  5289. Fcmsg_type int32
  5290. }
  5291. type Tucred = struct {
  5292. Fpid Tpid_t
  5293. Fuid Tuid_t
  5294. Fgid Tgid_t
  5295. }
  5296. type Tmmsghdr = struct {
  5297. Fmsg_hdr Tmsghdr
  5298. Fmsg_len uint32
  5299. }
  5300. type Tlinger = struct {
  5301. Fl_onoff int32
  5302. Fl_linger int32
  5303. }
  5304. type Tsockaddr = struct {
  5305. Fsa_family Tsa_family_t
  5306. Fsa_data [14]uint8
  5307. }
  5308. type Tsockaddr_storage = struct {
  5309. Fss_family Tsa_family_t
  5310. F__ss_padding [122]uint8
  5311. F__ss_align uint32
  5312. }
  5313. type Timaxdiv_t = struct {
  5314. F__ccgo_align [0]uint32
  5315. Fquot Tintmax_t
  5316. Frem Tintmax_t
  5317. }
  5318. type Tin_port_t = uint16
  5319. type Tin_addr_t = uint32
  5320. type Tin_addr = struct {
  5321. Fs_addr Tin_addr_t
  5322. }
  5323. type Tsockaddr_in = struct {
  5324. Fsin_family Tsa_family_t
  5325. Fsin_port Tin_port_t
  5326. Fsin_addr Tin_addr
  5327. Fsin_zero [8]Tuint8_t
  5328. }
  5329. type Tin6_addr = struct {
  5330. F__in6_union struct {
  5331. F__s6_addr16 [0][8]Tuint16_t
  5332. F__s6_addr32 [0][4]Tuint32_t
  5333. F__s6_addr [16]Tuint8_t
  5334. }
  5335. }
  5336. type Tsockaddr_in6 = struct {
  5337. Fsin6_family Tsa_family_t
  5338. Fsin6_port Tin_port_t
  5339. Fsin6_flowinfo Tuint32_t
  5340. Fsin6_addr Tin6_addr
  5341. Fsin6_scope_id Tuint32_t
  5342. }
  5343. type Tipv6_mreq = struct {
  5344. Fipv6mr_multiaddr Tin6_addr
  5345. Fipv6mr_interface uint32
  5346. }
  5347. type Tip_opts = struct {
  5348. Fip_dst Tin_addr
  5349. Fip_opts [40]uint8
  5350. }
  5351. type Tip_mreq = struct {
  5352. Fimr_multiaddr Tin_addr
  5353. Fimr_interface Tin_addr
  5354. }
  5355. type Tip_mreqn = struct {
  5356. Fimr_multiaddr Tin_addr
  5357. Fimr_address Tin_addr
  5358. Fimr_ifindex int32
  5359. }
  5360. type Tip_mreq_source = struct {
  5361. Fimr_multiaddr Tin_addr
  5362. Fimr_interface Tin_addr
  5363. Fimr_sourceaddr Tin_addr
  5364. }
  5365. type Tip_msfilter = struct {
  5366. Fimsf_multiaddr Tin_addr
  5367. Fimsf_interface Tin_addr
  5368. Fimsf_fmode Tuint32_t
  5369. Fimsf_numsrc Tuint32_t
  5370. Fimsf_slist [1]Tin_addr
  5371. }
  5372. type Tgroup_req = struct {
  5373. Fgr_interface Tuint32_t
  5374. Fgr_group Tsockaddr_storage
  5375. }
  5376. type Tgroup_source_req = struct {
  5377. Fgsr_interface Tuint32_t
  5378. Fgsr_group Tsockaddr_storage
  5379. Fgsr_source Tsockaddr_storage
  5380. }
  5381. type Tgroup_filter = struct {
  5382. Fgf_interface Tuint32_t
  5383. Fgf_group Tsockaddr_storage
  5384. Fgf_fmode Tuint32_t
  5385. Fgf_numsrc Tuint32_t
  5386. Fgf_slist [1]Tsockaddr_storage
  5387. }
  5388. type Tin_pktinfo = struct {
  5389. Fipi_ifindex int32
  5390. Fipi_spec_dst Tin_addr
  5391. Fipi_addr Tin_addr
  5392. }
  5393. type Tin6_pktinfo = struct {
  5394. Fipi6_addr Tin6_addr
  5395. Fipi6_ifindex uint32
  5396. }
  5397. type Tip6_mtuinfo = struct {
  5398. Fip6m_addr Tsockaddr_in6
  5399. Fip6m_mtu Tuint32_t
  5400. }
  5401. /* SHUT_RDWR is fairly recent and is not available on all platforms */
  5402. type Txcb_setup_generic_t = struct {
  5403. Fstatus Tuint8_t
  5404. Fpad0 [5]Tuint8_t
  5405. Flength Tuint16_t
  5406. }
  5407. var _xcb_error_setup = Txcb_setup_t{}
  5408. // C documentation
  5409. //
  5410. // /* Keep this list in sync with is_static_error_conn()! */
  5411. var _xcb_con_error = int32(m_XCB_CONN_ERROR)
  5412. var _xcb_con_closed_mem_er = int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT)
  5413. var _xcb_con_closed_parse_er = int32(m_XCB_CONN_CLOSED_PARSE_ERR)
  5414. var _xcb_con_closed_screen_er = int32(m_XCB_CONN_CLOSED_INVALID_SCREEN)
  5415. func _is_static_error_conn(tls *libc.TLS, c uintptr) (r int32) {
  5416. 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)))
  5417. }
  5418. func _set_fd_flags(tls *libc.TLS, fd int32) (r int32) {
  5419. bp := tls.Alloc(16)
  5420. defer tls.Free(16)
  5421. var flags int32
  5422. _ = flags
  5423. /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
  5424. flags = libc.Xfcntl(tls, fd, int32(m_F_GETFL), libc.VaList(bp+8, 0))
  5425. if flags == -int32(1) {
  5426. return 0
  5427. }
  5428. flags |= int32(m_O_NONBLOCK)
  5429. if libc.Xfcntl(tls, fd, int32(m_F_SETFL), libc.VaList(bp+8, flags)) == -int32(1) {
  5430. return 0
  5431. }
  5432. if libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC))) == -int32(1) {
  5433. return 0
  5434. }
  5435. return int32(1)
  5436. }
  5437. func _write_setup(tls *libc.TLS, c uintptr, auth_info uintptr) (r int32) {
  5438. bp := tls.Alloc(64)
  5439. defer tls.Free(64)
  5440. var count, ret, v1, v2, v4, v5, v7, v8 int32
  5441. var v3, v6 Tuint16_t
  5442. var _ /* out at bp+0 */ Txcb_setup_request_t
  5443. var _ /* parts at bp+12 */ [6]Tiovec
  5444. _, _, _, _, _, _, _, _, _, _ = count, ret, v1, v2, v3, v4, v5, v6, v7, v8
  5445. count = 0
  5446. libc.Xmemset(tls, bp, 0, uint32(12))
  5447. /* B = 0x42 = MSB first, l = 0x6c = LSB first */
  5448. if libc.Xhtonl(tls, _endian) == _endian {
  5449. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x42)
  5450. } else {
  5451. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x6c)
  5452. }
  5453. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_major_version = uint16(m_X_PROTOCOL)
  5454. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_minor_version = uint16(m_X_PROTOCOL_REVISION)
  5455. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = uint16(0)
  5456. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = uint16(0)
  5457. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[count].Fiov_len = uint32(12)
  5458. v1 = count
  5459. count++
  5460. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[v1].Fiov_base = bp
  5461. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[count].Fiov_len = -libc.Uint32FromInt64(12) & libc.Uint32FromInt32(3)
  5462. v2 = count
  5463. count++
  5464. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[v2].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5465. if auth_info != 0 {
  5466. v3 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fnamelen)
  5467. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = v3
  5468. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[count].Fiov_len = uint32(v3)
  5469. v4 = count
  5470. count++
  5471. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[v4].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fname
  5472. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[count].Fiov_len = libc.Uint32FromInt32(-libc.Int32FromUint16((*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len) & libc.Int32FromInt32(3))
  5473. v5 = count
  5474. count++
  5475. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[v5].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5476. v6 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdatalen)
  5477. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = v6
  5478. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[count].Fiov_len = uint32(v6)
  5479. v7 = count
  5480. count++
  5481. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[v7].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdata
  5482. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[count].Fiov_len = libc.Uint32FromInt32(-libc.Int32FromUint16((*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len) & libc.Int32FromInt32(3))
  5483. v8 = count
  5484. count++
  5485. (*(*[6]Tiovec)(unsafe.Pointer(bp + 12)))[v8].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5486. }
  5487. libc.Xpthread_mutex_lock(tls, c+12)
  5488. ret = X_xcb_out_send(tls, c, bp+12, count)
  5489. libc.Xpthread_mutex_unlock(tls, c+12)
  5490. return ret
  5491. }
  5492. var _pad [3]uint8
  5493. var _endian = uint32(0x01020304)
  5494. func _read_setup(tls *libc.TLS, c uintptr) (r int32) {
  5495. bp := tls.Alloc(16)
  5496. defer tls.Free(16)
  5497. var setup, setup1, tmp uintptr
  5498. var _ /* newline at bp+0 */ uint8
  5499. _, _, _ = setup, setup1, tmp
  5500. *(*uint8)(unsafe.Pointer(bp)) = uint8('\n')
  5501. /* Read the server response */
  5502. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = libc.Xmalloc(tls, uint32(8))
  5503. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup != 0) {
  5504. return 0
  5505. }
  5506. if libc.Uint32FromInt32(X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, int32(8))) != uint32(8) {
  5507. return 0
  5508. }
  5509. tmp = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Flength)*int32(4))+uint32(8))
  5510. if !(tmp != 0) {
  5511. return 0
  5512. }
  5513. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = tmp
  5514. 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 {
  5515. return 0
  5516. }
  5517. /* 0 = failed, 2 = authenticate, 1 = success */
  5518. switch libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fstatus) {
  5519. case 0: /* failed */
  5520. setup = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5521. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_failed_reason(tls, setup), libc.Uint32FromInt32(Xxcb_setup_failed_reason_length(tls, setup)))
  5522. libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint32(1))
  5523. return 0
  5524. case int32(2): /* authenticate */
  5525. setup1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5526. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_authenticate_reason(tls, setup1), libc.Uint32FromInt32(Xxcb_setup_authenticate_reason_length(tls, setup1)))
  5527. libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint32(1))
  5528. return 0
  5529. }
  5530. return int32(1)
  5531. }
  5532. // C documentation
  5533. //
  5534. // /* precondition: there must be something for us to write. */
  5535. func _write_vec(tls *libc.TLS, c uintptr, vector uintptr, count uintptr) (r int32) {
  5536. bp := tls.Alloc(112)
  5537. defer tls.Free(112)
  5538. var cur, i, n int32
  5539. var hdr, v1 uintptr
  5540. var _ /* cmsgbuf at bp+0 */ struct {
  5541. Fbuf [0][76]uint8
  5542. Fcmsghdr Tcmsghdr
  5543. F__ccgo_pad2 [64]byte
  5544. }
  5545. var _ /* msg at bp+76 */ Tmsghdr
  5546. _, _, _, _, _ = cur, hdr, i, n, v1
  5547. n = *(*int32)(unsafe.Pointer(count))
  5548. if n > int32(m_IOV_MAX) {
  5549. n = int32(m_IOV_MAX)
  5550. }
  5551. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd != 0 {
  5552. *(*Tmsghdr)(unsafe.Pointer(bp + 76)) = Tmsghdr{
  5553. Fmsg_iov: *(*uintptr)(unsafe.Pointer(vector)),
  5554. Fmsg_iovlen: n,
  5555. Fmsg_control: bp,
  5556. Fmsg_controllen: (libc.Uint32FromInt64(12)+libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)) & ^(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)) + libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*libc.Uint32FromInt64(4),
  5557. }
  5558. if (*Tmsghdr)(unsafe.Pointer(bp+76)).Fmsg_controllen >= uint32(12) {
  5559. v1 = (*Tmsghdr)(unsafe.Pointer(bp + 76)).Fmsg_control
  5560. } else {
  5561. v1 = libc.UintptrFromInt32(0)
  5562. }
  5563. hdr = v1
  5564. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len = (*(*Tmsghdr)(unsafe.Pointer(bp + 76))).Fmsg_controllen
  5565. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level = int32(m_SOL_SOCKET)
  5566. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type = int32(m_SCM_RIGHTS)
  5567. libc.Xmemcpy(tls, hdr+libc.UintptrFromInt32(1)*12, c+4336+16572, libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*uint32(4))
  5568. n = libc.Xsendmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+76, 0)
  5569. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5570. return int32(1)
  5571. }
  5572. i = 0
  5573. for {
  5574. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd) {
  5575. break
  5576. }
  5577. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 4336 + 16572 + uintptr(i)*4)))
  5578. goto _2
  5579. _2:
  5580. ;
  5581. i++
  5582. }
  5583. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd = 0
  5584. } else {
  5585. n = libc.Xwritev(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, *(*uintptr)(unsafe.Pointer(vector)), n)
  5586. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5587. return int32(1)
  5588. }
  5589. }
  5590. if n <= 0 {
  5591. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5592. return 0
  5593. }
  5594. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written += libc.Uint64FromInt32(n)
  5595. for {
  5596. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5597. break
  5598. }
  5599. cur = libc.Int32FromUint32((*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len)
  5600. if cur > n {
  5601. cur = n
  5602. }
  5603. *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)) + 4)) -= libc.Uint32FromInt32(cur)
  5604. (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base = (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base + uintptr(cur)
  5605. n -= cur
  5606. if (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len != 0 {
  5607. break
  5608. }
  5609. goto _3
  5610. _3:
  5611. ;
  5612. *(*int32)(unsafe.Pointer(count))--
  5613. *(*uintptr)(unsafe.Pointer(vector)) += 8
  5614. }
  5615. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5616. *(*uintptr)(unsafe.Pointer(vector)) = uintptr(0)
  5617. }
  5618. return int32(1)
  5619. }
  5620. /* Public interface */
  5621. func Xxcb_get_setup(tls *libc.TLS, c uintptr) (r uintptr) {
  5622. if _is_static_error_conn(tls, c) != 0 {
  5623. return uintptr(unsafe.Pointer(&_xcb_error_setup))
  5624. }
  5625. /* doesn't need locking because it's never written to. */
  5626. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5627. }
  5628. func Xxcb_get_file_descriptor(tls *libc.TLS, c uintptr) (r int32) {
  5629. if _is_static_error_conn(tls, c) != 0 {
  5630. return -int32(1)
  5631. }
  5632. /* doesn't need locking because it's never written to. */
  5633. return (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5634. }
  5635. func Xxcb_connection_has_error(tls *libc.TLS, c uintptr) (r int32) {
  5636. /* doesn't need locking because it's read and written atomically. */
  5637. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error
  5638. }
  5639. func Xxcb_connect_to_fd(tls *libc.TLS, fd int32, auth_info uintptr) (r uintptr) {
  5640. var c uintptr
  5641. _ = c
  5642. c = libc.Xcalloc(tls, uint32(1), uint32(21064))
  5643. if !(c != 0) {
  5644. libc.Xclose(tls, fd)
  5645. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  5646. }
  5647. (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd = fd
  5648. if !(_set_fd_flags(tls, fd) != 0 && libc.Xpthread_mutex_init(tls, c+12, uintptr(0)) == 0 && X_xcb_in_init(tls, c+40) != 0 && X_xcb_out_init(tls, c+4336) != 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) {
  5649. Xxcb_disconnect(tls, c)
  5650. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  5651. }
  5652. return c
  5653. }
  5654. func Xxcb_disconnect(tls *libc.TLS, c uintptr) {
  5655. if c == libc.UintptrFromInt32(0) || _is_static_error_conn(tls, c) != 0 {
  5656. return
  5657. }
  5658. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)
  5659. /* disallow further sends and receives */
  5660. libc.Xshutdown(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, int32(m_SHUT_RDWR))
  5661. libc.Xclose(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd)
  5662. libc.Xpthread_mutex_destroy(tls, c+12)
  5663. X_xcb_in_destroy(tls, c+40)
  5664. X_xcb_out_destroy(tls, c+4336)
  5665. X_xcb_ext_destroy(tls, c)
  5666. X_xcb_xid_destroy(tls, c)
  5667. libc.Xfree(tls, c)
  5668. }
  5669. /* Private interface */
  5670. func X_xcb_conn_shutdown(tls *libc.TLS, c uintptr, err int32) {
  5671. (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error = err
  5672. }
  5673. // C documentation
  5674. //
  5675. // /* Return connection error state.
  5676. // * To make thread-safe, I need a seperate static
  5677. // * variable for every possible error.
  5678. // * has_error is the first field in xcb_connection_t, so just
  5679. // * return a casted int here; checking has_error (and only
  5680. // * has_error) will be safe.
  5681. // */
  5682. func X_xcb_conn_ret_error(tls *libc.TLS, err int32) (r uintptr) {
  5683. switch err {
  5684. case int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT):
  5685. return uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er))
  5686. case int32(m_XCB_CONN_CLOSED_PARSE_ERR):
  5687. return uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er))
  5688. case int32(m_XCB_CONN_CLOSED_INVALID_SCREEN):
  5689. return uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er))
  5690. case int32(m_XCB_CONN_ERROR):
  5691. fallthrough
  5692. default:
  5693. return uintptr(unsafe.Pointer(&_xcb_con_error))
  5694. }
  5695. return r
  5696. }
  5697. func X_xcb_conn_wait(tls *libc.TLS, c uintptr, cond uintptr, vector uintptr, count uintptr) (r int32) {
  5698. bp := tls.Alloc(16)
  5699. defer tls.Free(16)
  5700. var may_read, ret, v1 int32
  5701. var p2 uintptr
  5702. var _ /* fd at bp+0 */ Tpollfd
  5703. _, _, _, _ = may_read, ret, v1, p2
  5704. /* If the thing I should be doing is already being done, wait for it. */
  5705. if count != 0 {
  5706. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting
  5707. } else {
  5708. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading
  5709. }
  5710. if v1 != 0 {
  5711. libc.Xpthread_cond_wait(tls, cond, c+12)
  5712. return int32(1)
  5713. }
  5714. libc.Xmemset(tls, bp, 0, uint32(8))
  5715. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5716. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  5717. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading++
  5718. if count != 0 {
  5719. p2 = bp + 4
  5720. *(*int16)(unsafe.Pointer(p2)) = int16(int32(*(*int16)(unsafe.Pointer(p2))) | libc.Int32FromInt32(m_POLLOUT))
  5721. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting++
  5722. }
  5723. libc.Xpthread_mutex_unlock(tls, c+12)
  5724. for cond1 := true; cond1; cond1 = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  5725. ret = libc.Xpoll(tls, bp, uint32(1), -int32(1))
  5726. /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
  5727. * it as if it failed. */
  5728. if ret >= 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents) & ^int32((*(*Tpollfd)(unsafe.Pointer(bp))).Fevents) != 0 {
  5729. ret = -int32(1)
  5730. break
  5731. }
  5732. }
  5733. if ret < 0 {
  5734. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5735. ret = 0
  5736. }
  5737. libc.Xpthread_mutex_lock(tls, c+12)
  5738. if ret != 0 {
  5739. /* The code allows two threads to call select()/poll() at the same time.
  5740. * First thread just wants to read, a second thread wants to write, too.
  5741. * We have to make sure that we don't steal the reading thread's reply
  5742. * and let it get stuck in select()/poll().
  5743. * So a thread may read if either:
  5744. * - There is no other thread that wants to read (the above situation
  5745. * did not occur).
  5746. * - It is the reading thread (above situation occurred).
  5747. */
  5748. may_read = libc.BoolInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == int32(1) || !(count != 0))
  5749. if may_read != 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLIN) != 0 {
  5750. ret = libc.BoolInt32(ret != 0 && X_xcb_in_read(tls, c) != 0)
  5751. }
  5752. if int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLOUT) != 0 {
  5753. ret = libc.BoolInt32(ret != 0 && _write_vec(tls, c, vector, count) != 0)
  5754. }
  5755. }
  5756. if count != 0 {
  5757. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting--
  5758. }
  5759. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading--
  5760. return ret
  5761. }
  5762. func Xxcb_total_read(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5763. var n Tuint64_t
  5764. _ = n
  5765. if Xxcb_connection_has_error(tls, c) != 0 {
  5766. return uint64(0)
  5767. }
  5768. libc.Xpthread_mutex_lock(tls, c+12)
  5769. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read
  5770. libc.Xpthread_mutex_unlock(tls, c+12)
  5771. return n
  5772. }
  5773. func Xxcb_total_written(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5774. var n Tuint64_t
  5775. _ = n
  5776. if Xxcb_connection_has_error(tls, c) != 0 {
  5777. return uint64(0)
  5778. }
  5779. libc.Xpthread_mutex_lock(tls, c+12)
  5780. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written
  5781. libc.Xpthread_mutex_unlock(tls, c+12)
  5782. return n
  5783. }
  5784. const m_SEEK_CUR = 1
  5785. const m_SEEK_END = 2
  5786. const m_SEEK_SET = 0
  5787. type Txcb_extension_t = struct {
  5788. Fname uintptr
  5789. Fglobal_id int32
  5790. }
  5791. type Txcb_extension_t1 = struct {
  5792. Fname uintptr
  5793. Fglobal_id int32
  5794. }
  5795. type Txcb_protocol_request_t = struct {
  5796. Fcount Tsize_t
  5797. Fext uintptr
  5798. Fopcode Tuint8_t
  5799. Fisvoid Tuint8_t
  5800. }
  5801. type _xcb_send_request_flags_t = int32
  5802. const _XCB_REQUEST_CHECKED = 1
  5803. const _XCB_REQUEST_RAW = 2
  5804. const _XCB_REQUEST_DISCARD_REPLY = 4
  5805. const _XCB_REQUEST_REPLY_FDS = 8
  5806. /*
  5807. * This file generated automatically from bigreq.xml by c_client.py.
  5808. * Edit at your peril.
  5809. */
  5810. /**
  5811. * @defgroup XCB_BigRequests_API XCB BigRequests API
  5812. * @brief BigRequests XCB Protocol Implementation.
  5813. * @{
  5814. **/
  5815. /**
  5816. * @}
  5817. */
  5818. func _send_request(tls *libc.TLS, c uintptr, isvoid int32, workaround _workarounds, flags int32, vector uintptr, count int32) {
  5819. var p1 uintptr
  5820. _ = p1
  5821. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5822. return
  5823. }
  5824. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest++
  5825. if !(isvoid != 0) {
  5826. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  5827. }
  5828. if workaround != int32(_WORKAROUND_NONE) || flags != 0 {
  5829. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest, workaround, flags)
  5830. }
  5831. for count != 0 && libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)+(*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len <= uint32(16384) {
  5832. libc.Xmemcpy(tls, c+4336+112+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len), (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base, (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5833. p1 = c + 4336 + 16496
  5834. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5835. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5836. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint32(0)
  5837. vector += 8
  5838. count--
  5839. }
  5840. if !(count != 0) {
  5841. return
  5842. }
  5843. vector -= 8
  5844. count++
  5845. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = c + 4336 + 112
  5846. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  5847. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  5848. X_xcb_out_send(tls, c, vector, count)
  5849. }
  5850. func _send_sync(tls *libc.TLS, c uintptr) {
  5851. bp := tls.Alloc(16)
  5852. defer tls.Free(16)
  5853. var _ /* vector at bp+0 */ [2]Tiovec
  5854. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base = uintptr(unsafe.Pointer(&_sync_req))
  5855. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len = uint32(4)
  5856. _send_request(tls, c, 0, int32(_WORKAROUND_NONE), int32(_XCB_REQUEST_DISCARD_REPLY), bp+uintptr(1)*8, int32(1))
  5857. }
  5858. var _sync_req = *(*struct {
  5859. Fpacket [0]Tuint32_t
  5860. Ffields struct {
  5861. Fmajor Tuint8_t
  5862. Fpad Tuint8_t
  5863. Flen1 Tuint16_t
  5864. }
  5865. })(unsafe.Pointer(&struct {
  5866. Fmajor uint8
  5867. Fpad uint8
  5868. Flen1 uint16
  5869. }{
  5870. Fmajor: uint8(43),
  5871. Flen1: uint16(1),
  5872. }))
  5873. func _get_socket_back(tls *libc.TLS, c uintptr) {
  5874. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving != 0 {
  5875. libc.Xpthread_cond_wait(tls, c+4336+52, c+12)
  5876. }
  5877. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0) {
  5878. return
  5879. }
  5880. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = int32(1)
  5881. libc.Xpthread_mutex_unlock(tls, c+12)
  5882. (*(*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)
  5883. libc.Xpthread_mutex_lock(tls, c+12)
  5884. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = 0
  5885. libc.Xpthread_cond_broadcast(tls, c+4336+52)
  5886. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = uintptr(0)
  5887. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = uintptr(0)
  5888. X_xcb_in_replies_done(tls, c)
  5889. }
  5890. func _prepare_socket_request(tls *libc.TLS, c uintptr) {
  5891. /* We're about to append data to out.queue, so we need to
  5892. * atomically test for an external socket owner *and* some other
  5893. * thread currently writing.
  5894. *
  5895. * If we have an external socket owner, we have to get the socket back
  5896. * before we can use it again.
  5897. *
  5898. * If some other thread is writing to the socket, we assume it's
  5899. * writing from out.queue, and so we can't stick data there.
  5900. *
  5901. * We satisfy this condition by first calling get_socket_back
  5902. * (which may drop the lock, but will return when XCB owns the
  5903. * socket again) and then checking for another writing thread and
  5904. * escaping the loop if we're ready to go.
  5905. */
  5906. for {
  5907. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5908. return
  5909. }
  5910. _get_socket_back(tls, c)
  5911. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0) {
  5912. break
  5913. }
  5914. libc.Xpthread_cond_wait(tls, c+4336, c+12)
  5915. goto _1
  5916. _1:
  5917. }
  5918. }
  5919. /* Public interface */
  5920. func Xxcb_prefetch_maximum_request_length(tls *libc.TLS, c uintptr) {
  5921. var ext uintptr
  5922. _ = ext
  5923. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5924. return
  5925. }
  5926. libc.Xpthread_mutex_lock(tls, c+4336+16536)
  5927. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_NONE) {
  5928. ext = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_big_requests_id)))
  5929. if ext != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext)).Fpresent != 0 {
  5930. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_COOKIE)
  5931. *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4336 + 16568)) = Xxcb_big_requests_enable(tls, c)
  5932. } else {
  5933. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5934. *(*Tuint32_t)(unsafe.Pointer(c + 4336 + 16568)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5935. }
  5936. }
  5937. libc.Xpthread_mutex_unlock(tls, c+4336+16536)
  5938. }
  5939. func Xxcb_get_maximum_request_length(tls *libc.TLS, c uintptr) (r1 Tuint32_t) {
  5940. var r uintptr
  5941. _ = r
  5942. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5943. return uint32(0)
  5944. }
  5945. Xxcb_prefetch_maximum_request_length(tls, c)
  5946. libc.Xpthread_mutex_lock(tls, c+4336+16536)
  5947. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_COOKIE) {
  5948. r = Xxcb_big_requests_enable_reply(tls, c, *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4336 + 16568)), uintptr(0))
  5949. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5950. if r != 0 {
  5951. *(*Tuint32_t)(unsafe.Pointer(c + 4336 + 16568)) = (*Txcb_big_requests_enable_reply_t)(unsafe.Pointer(r)).Fmaximum_request_length
  5952. libc.Xfree(tls, r)
  5953. } else {
  5954. *(*Tuint32_t)(unsafe.Pointer(c + 4336 + 16568)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5955. }
  5956. }
  5957. libc.Xpthread_mutex_unlock(tls, c+4336+16536)
  5958. return *(*Tuint32_t)(unsafe.Pointer(c + 4336 + 16568))
  5959. }
  5960. func _close_fds(tls *libc.TLS, fds uintptr, num_fds uint32) {
  5961. var index uint32
  5962. _ = index
  5963. index = uint32(0)
  5964. for {
  5965. if !(index < num_fds) {
  5966. break
  5967. }
  5968. libc.Xclose(tls, *(*int32)(unsafe.Pointer(fds + uintptr(index)*4)))
  5969. goto _1
  5970. _1:
  5971. ;
  5972. index++
  5973. }
  5974. }
  5975. func _send_fds(tls *libc.TLS, c uintptr, fds uintptr, num_fds uint32) {
  5976. var v1 int32
  5977. var v2 uintptr
  5978. _, _ = v1, v2
  5979. /* Calling _xcb_out_flush_to() can drop the iolock and wait on a condition
  5980. * variable if another thread is currently writing (c->out.writing > 0).
  5981. * This call waits for writers to be done and thus _xcb_out_flush_to() will
  5982. * do the work itself (in which case we are a writer and
  5983. * prepare_socket_request() will wait for us to be done if another threads
  5984. * tries to send fds, too). Thanks to this, we can atomically write out FDs.
  5985. */
  5986. _prepare_socket_request(tls, c)
  5987. for num_fds > uint32(0) {
  5988. 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) {
  5989. /* XXX: if c->out.writing > 0, this releases the iolock and
  5990. * potentially allows other threads to interfere with their own fds.
  5991. */
  5992. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  5993. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) {
  5994. /* We need some request to send FDs with */
  5995. X_xcb_out_send_sync(tls, c)
  5996. }
  5997. }
  5998. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5999. break
  6000. }
  6001. v2 = c + 4336 + 16572 + 64
  6002. v1 = *(*int32)(unsafe.Pointer(v2))
  6003. *(*int32)(unsafe.Pointer(v2))++
  6004. *(*int32)(unsafe.Pointer(c + 4336 + 16572 + uintptr(v1)*4)) = *(*int32)(unsafe.Pointer(fds))
  6005. fds += 4
  6006. num_fds--
  6007. }
  6008. _close_fds(tls, fds, num_fds)
  6009. }
  6010. 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) {
  6011. bp := tls.Alloc(16)
  6012. defer tls.Free(16)
  6013. var extension uintptr
  6014. var i uint32
  6015. var longlen, v2 Tsize_t
  6016. var request Tuint64_t
  6017. var shortlen Tuint16_t
  6018. var veclen int32
  6019. var workaround _workarounds
  6020. var v3 uint64
  6021. var _ /* prefix at bp+0 */ [2]Tuint32_t
  6022. _, _, _, _, _, _, _, _, _ = extension, i, longlen, request, shortlen, veclen, workaround, v2, v3
  6023. veclen = libc.Int32FromUint32((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount)
  6024. workaround = int32(_WORKAROUND_NONE)
  6025. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6026. _close_fds(tls, fds, num_fds)
  6027. return uint64(0)
  6028. }
  6029. if !(flags&int32(_XCB_REQUEST_RAW) != 0) {
  6030. shortlen = uint16(0)
  6031. longlen = uint32(0)
  6032. /* set the major opcode, and the minor opcode for extensions */
  6033. if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 {
  6034. extension = Xxcb_get_extension_data(tls, c, (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)
  6035. if !(extension != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fpresent != 0) {
  6036. _close_fds(tls, fds, num_fds)
  6037. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED))
  6038. return uint64(0)
  6039. }
  6040. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fmajor_opcode
  6041. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  6042. } else {
  6043. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  6044. }
  6045. /* put together the length field, possibly using BIGREQUESTS */
  6046. i = uint32(0)
  6047. for {
  6048. if !(i < (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount) {
  6049. break
  6050. }
  6051. longlen += (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*8))).Fiov_len
  6052. if !((*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*8))).Fiov_base != 0) {
  6053. (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*8))).Fiov_base = uintptr(unsafe.Pointer(&_pad1))
  6054. }
  6055. goto _1
  6056. _1:
  6057. ;
  6058. i++
  6059. }
  6060. longlen >>= uint32(2)
  6061. if longlen <= uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length) {
  6062. /* we don't need BIGREQUESTS. */
  6063. shortlen = uint16(longlen)
  6064. longlen = uint32(0)
  6065. } else {
  6066. if longlen > Xxcb_get_maximum_request_length(tls, c) {
  6067. _close_fds(tls, fds, num_fds)
  6068. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_REQ_LEN_EXCEED))
  6069. return uint64(0) /* server can't take this; maybe need BIGREQUESTS? */
  6070. }
  6071. }
  6072. /* set the length field. */
  6073. *(*Tuint16_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*2)) = shortlen
  6074. if !(shortlen != 0) {
  6075. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[0] = *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base))
  6076. longlen++
  6077. v2 = longlen
  6078. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] = v2
  6079. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr(1)*4
  6080. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len -= uint32(4)
  6081. vector -= 8
  6082. veclen++
  6083. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = bp
  6084. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint32(8)
  6085. }
  6086. }
  6087. flags &= ^int32(_XCB_REQUEST_RAW)
  6088. /* do we need to work around the X server bug described in glx.xml? */
  6089. /* XXX: GetFBConfigs won't use BIG-REQUESTS in any sane
  6090. * configuration, but that should be handled here anyway. */
  6091. 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)) {
  6092. workaround = int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG)
  6093. }
  6094. /* get a sequence number and arrange for delivery. */
  6095. libc.Xpthread_mutex_lock(tls, c+12)
  6096. /* send FDs before establishing a good request number, because this might
  6097. * call send_sync(), too
  6098. */
  6099. _send_fds(tls, c, fds, num_fds)
  6100. _prepare_socket_request(tls, c)
  6101. /* send GetInputFocus (sync_req) when 64k-2 requests have been sent without
  6102. * a reply.
  6103. * Also send sync_req (could use NoOp) at 32-bit wrap to avoid having
  6104. * applications see sequence 0 as that is used to indicate
  6105. * an error in sending the request
  6106. */
  6107. 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) {
  6108. _send_sync(tls, c)
  6109. _prepare_socket_request(tls, c)
  6110. }
  6111. _send_request(tls, c, libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid), workaround, flags, vector, veclen)
  6112. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6113. v3 = uint64(0)
  6114. } else {
  6115. v3 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6116. }
  6117. request = v3
  6118. libc.Xpthread_mutex_unlock(tls, c+12)
  6119. return request
  6120. }
  6121. var _pad1 [3]uint8
  6122. // C documentation
  6123. //
  6124. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6125. func Xxcb_send_request_with_fds(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r uint32) {
  6126. return uint32(Xxcb_send_request_with_fds64(tls, c, flags, vector, req, num_fds, fds))
  6127. }
  6128. func Xxcb_send_request64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r Tuint64_t) {
  6129. return Xxcb_send_request_with_fds64(tls, c, flags, vector, req, uint32(0), libc.UintptrFromInt32(0))
  6130. }
  6131. // C documentation
  6132. //
  6133. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6134. func Xxcb_send_request(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r uint32) {
  6135. return uint32(Xxcb_send_request64(tls, c, flags, vector, req))
  6136. }
  6137. func Xxcb_send_fd(tls *libc.TLS, c uintptr, fd int32) {
  6138. bp := tls.Alloc(16)
  6139. defer tls.Free(16)
  6140. var _ /* fds at bp+0 */ [1]int32
  6141. *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{
  6142. 0: fd,
  6143. }
  6144. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6145. libc.Xclose(tls, fd)
  6146. return
  6147. }
  6148. libc.Xpthread_mutex_lock(tls, c+12)
  6149. _send_fds(tls, c, bp, uint32(1))
  6150. libc.Xpthread_mutex_unlock(tls, c+12)
  6151. }
  6152. func Xxcb_take_socket(tls *libc.TLS, c uintptr, return_socket uintptr, closure uintptr, flags int32, sent uintptr) (r int32) {
  6153. var ret int32
  6154. _ = ret
  6155. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6156. return 0
  6157. }
  6158. libc.Xpthread_mutex_lock(tls, c+12)
  6159. _get_socket_back(tls, c)
  6160. /* _xcb_out_flush may drop the iolock allowing other threads to
  6161. * write requests, so keep flushing until we're done
  6162. */
  6163. for cond := true; cond; cond = ret != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest != (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written {
  6164. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6165. }
  6166. if ret != 0 {
  6167. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = return_socket
  6168. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = closure
  6169. if flags != 0 {
  6170. /* c->out.request + 1 will be the first request sent by the external
  6171. * socket owner. If the socket is returned before this request is sent
  6172. * it will be detected in _xcb_in_replies_done and this pending_reply
  6173. * will be discarded.
  6174. */
  6175. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+uint64(1), int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER), flags)
  6176. }
  6177. *(*Tuint64_t)(unsafe.Pointer(sent)) = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6178. }
  6179. libc.Xpthread_mutex_unlock(tls, c+12)
  6180. return ret
  6181. }
  6182. func Xxcb_writev(tls *libc.TLS, c uintptr, vector uintptr, count int32, requests Tuint64_t) (r int32) {
  6183. var ret int32
  6184. _ = ret
  6185. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6186. return 0
  6187. }
  6188. libc.Xpthread_mutex_lock(tls, c+12)
  6189. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest += requests
  6190. ret = X_xcb_out_send(tls, c, vector, count)
  6191. libc.Xpthread_mutex_unlock(tls, c+12)
  6192. return ret
  6193. }
  6194. func Xxcb_flush(tls *libc.TLS, c uintptr) (r int32) {
  6195. var ret int32
  6196. _ = ret
  6197. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6198. return 0
  6199. }
  6200. libc.Xpthread_mutex_lock(tls, c+12)
  6201. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6202. libc.Xpthread_mutex_unlock(tls, c+12)
  6203. return ret
  6204. }
  6205. /* Private interface */
  6206. func X_xcb_out_init(tls *libc.TLS, out uintptr) (r int32) {
  6207. if libc.Xpthread_cond_init(tls, out+52, uintptr(0)) != 0 {
  6208. return 0
  6209. }
  6210. (*T_xcb_out)(unsafe.Pointer(out)).Freturn_socket = uintptr(0)
  6211. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_closure = uintptr(0)
  6212. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_moving = 0
  6213. if libc.Xpthread_cond_init(tls, out, uintptr(0)) != 0 {
  6214. return 0
  6215. }
  6216. (*T_xcb_out)(unsafe.Pointer(out)).Fwriting = 0
  6217. (*T_xcb_out)(unsafe.Pointer(out)).Fqueue_len = 0
  6218. (*T_xcb_out)(unsafe.Pointer(out)).Frequest = uint64(0)
  6219. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_written = uint64(0)
  6220. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_expected_written = uint64(0)
  6221. if libc.Xpthread_mutex_init(tls, out+16536, uintptr(0)) != 0 {
  6222. return 0
  6223. }
  6224. (*T_xcb_out)(unsafe.Pointer(out)).Fmaximum_request_length_tag = int32(_LAZY_NONE)
  6225. return int32(1)
  6226. }
  6227. func X_xcb_out_destroy(tls *libc.TLS, out uintptr) {
  6228. libc.Xpthread_mutex_destroy(tls, out+16536)
  6229. libc.Xpthread_cond_destroy(tls, out)
  6230. libc.Xpthread_cond_destroy(tls, out+52)
  6231. }
  6232. func X_xcb_out_send(tls *libc.TLS, c uintptr, _vector uintptr, _count int32) (r int32) {
  6233. bp := tls.Alloc(16)
  6234. defer tls.Free(16)
  6235. *(*uintptr)(unsafe.Pointer(bp)) = _vector
  6236. *(*int32)(unsafe.Pointer(bp + 4)) = _count
  6237. var ret int32
  6238. _ = ret
  6239. ret = int32(1)
  6240. for ret != 0 && *(*int32)(unsafe.Pointer(bp + 4)) != 0 {
  6241. ret = X_xcb_conn_wait(tls, c, c+4336, bp, bp+4)
  6242. }
  6243. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6244. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected
  6245. libc.Xpthread_cond_broadcast(tls, c+4336)
  6246. X_xcb_in_wake_up_next_reader(tls, c)
  6247. return ret
  6248. }
  6249. func X_xcb_out_send_sync(tls *libc.TLS, c uintptr) {
  6250. _prepare_socket_request(tls, c)
  6251. _send_sync(tls, c)
  6252. }
  6253. func X_xcb_out_flush_to(tls *libc.TLS, c uintptr, request Tuint64_t) (r int32) {
  6254. bp := tls.Alloc(16)
  6255. defer tls.Free(16)
  6256. var _ /* vec at bp+0 */ Tiovec
  6257. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written-request) >= 0 {
  6258. return int32(1)
  6259. }
  6260. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len != 0 {
  6261. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_base = c + 4336 + 112
  6262. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_len = libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  6263. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  6264. return X_xcb_out_send(tls, c, bp, int32(1))
  6265. }
  6266. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0 {
  6267. libc.Xpthread_cond_wait(tls, c+4336, c+12)
  6268. }
  6269. return int32(1)
  6270. }
  6271. const m_INT32_MAX1 = 2147483647
  6272. const m_MSG_CTRUNC1 = 8
  6273. const m_MSG_TRUNC1 = 32
  6274. const m_POLLOUT1 = 0x004
  6275. const m_UINT32_MAX1 = 4294967295
  6276. const m_XCB_ERROR = 0
  6277. const m_XCB_REPLY = 1
  6278. const m_XCB_XGE_EVENT = 35
  6279. type Txcb_special_event_t = struct {
  6280. Fnext uintptr
  6281. Fextension Tuint8_t
  6282. Feid Tuint32_t
  6283. Fstamp uintptr
  6284. Fevents uintptr
  6285. Fevents_tail uintptr
  6286. Fspecial_event_cond Tpthread_cond_t
  6287. }
  6288. type Txcb_special_event = Txcb_special_event_t
  6289. type Tevent_list = struct {
  6290. Fevent uintptr
  6291. Fnext uintptr
  6292. }
  6293. type Treply_list = struct {
  6294. Freply uintptr
  6295. Fnext uintptr
  6296. }
  6297. type Tpending_reply = struct {
  6298. F__ccgo_align [0]uint32
  6299. Ffirst_request Tuint64_t
  6300. Flast_request Tuint64_t
  6301. Fworkaround _workarounds
  6302. Fflags int32
  6303. Fnext uintptr
  6304. F__ccgo_pad5 [4]byte
  6305. }
  6306. type Treader_list = struct {
  6307. F__ccgo_align [0]uint32
  6308. Frequest Tuint64_t
  6309. Fdata uintptr
  6310. Fnext uintptr
  6311. }
  6312. type Tspecial_list = struct {
  6313. Fse uintptr
  6314. Fnext uintptr
  6315. }
  6316. func _remove_finished_readers(tls *libc.TLS, prev_reader uintptr, completed Tuint64_t) {
  6317. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-completed) <= 0 {
  6318. /* If you don't have what you're looking for now, you never
  6319. * will. Wake up and leave me alone. */
  6320. libc.Xpthread_cond_signal(tls, (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fdata)
  6321. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6322. }
  6323. }
  6324. func _read_fds(tls *libc.TLS, c uintptr, fds uintptr, nfd int32) (r int32) {
  6325. var ifds uintptr
  6326. var infd int32
  6327. _, _ = ifds, infd
  6328. ifds = c + 40 + 4220 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4
  6329. infd = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd - (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  6330. if nfd > infd {
  6331. return 0
  6332. }
  6333. libc.Xmemcpy(tls, fds, ifds, libc.Uint32FromInt32(nfd)*uint32(4))
  6334. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd += nfd
  6335. return int32(1)
  6336. }
  6337. type Txcb_ge_special_event_t = struct {
  6338. Fresponse_type Tuint8_t
  6339. Fextension Tuint8_t
  6340. Fsequence Tuint16_t
  6341. Flength Tuint32_t
  6342. Fevtype Tuint16_t
  6343. Fpad0 [2]Tuint8_t
  6344. Feid Tuint32_t
  6345. Fpad1 [16]Tuint8_t
  6346. }
  6347. func _event_special(tls *libc.TLS, c uintptr, event uintptr) (r int32) {
  6348. var ges, special_event uintptr
  6349. _, _ = ges, special_event
  6350. ges = (*Tevent_list)(unsafe.Pointer(event)).Fevent
  6351. /* Special events are always XGE events */
  6352. if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fresponse_type)&int32(0x7f) != int32(m_XCB_XGE_EVENT) {
  6353. return 0
  6354. }
  6355. special_event = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6356. for {
  6357. if !(special_event != 0) {
  6358. break
  6359. }
  6360. 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 {
  6361. *(*uintptr)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail)) = event
  6362. (*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail = event + 4
  6363. if (*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp != 0 {
  6364. *(*Tuint32_t)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp))++
  6365. }
  6366. libc.Xpthread_cond_signal(tls, special_event+24)
  6367. return int32(1)
  6368. }
  6369. goto _1
  6370. _1:
  6371. ;
  6372. special_event = (*Txcb_special_event)(unsafe.Pointer(special_event)).Fnext
  6373. }
  6374. return 0
  6375. }
  6376. func _read_packet(tls *libc.TLS, c uintptr) (r int32) {
  6377. bp := tls.Alloc(16)
  6378. defer tls.Free(16)
  6379. var buf, cur, event, oldpend, p, pend uintptr
  6380. var bufsize, eventlength, lastread, length, new_length Tuint64_t
  6381. var nfd int32
  6382. var v1 uint32
  6383. var _ /* genrep at bp+0 */ Txcb_generic_reply_t
  6384. _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, bufsize, cur, event, eventlength, lastread, length, new_length, nfd, oldpend, p, pend, v1
  6385. length = uint64(32)
  6386. eventlength = uint64(0) /* length after first 32 bytes for GenericEvents */
  6387. nfd = 0
  6388. pend = uintptr(0)
  6389. /* Wait for there to be enough data for us to read a whole packet */
  6390. if libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len) < length {
  6391. return 0
  6392. }
  6393. /* Get the response type, length, and sequence number. */
  6394. libc.Xmemcpy(tls, bp, c+40+52, uint32(8))
  6395. /* Compute 32-bit sequence number of this packet. */
  6396. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) != int32(m_XCB_KEYMAP_NOTIFY) {
  6397. lastread = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6398. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read = lastread&uint64(0xffffffffffff0000) | uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fsequence)
  6399. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-lastread) < 0 {
  6400. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read += uint64(0x10000)
  6401. }
  6402. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) > 0 {
  6403. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6404. }
  6405. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read != lastread {
  6406. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6407. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, lastread, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply)
  6408. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = uintptr(0)
  6409. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 40 + 4184
  6410. }
  6411. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read - uint64(1)
  6412. }
  6413. 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 {
  6414. oldpend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6415. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies = (*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext
  6416. if !((*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext != 0) {
  6417. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = c + 40 + 4212
  6418. }
  6419. libc.Xfree(tls, oldpend)
  6420. }
  6421. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR {
  6422. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6423. }
  6424. _remove_finished_readers(tls, c+40+4204, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed)
  6425. }
  6426. 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) {
  6427. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6428. 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)) {
  6429. pend = uintptr(0)
  6430. }
  6431. }
  6432. /* For reply packets, check that the entire packet is available. */
  6433. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6434. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG) {
  6435. p = c + 40 + 52
  6436. new_length = uint64(*(*Tuint32_t)(unsafe.Pointer(p + 2*4))) * uint64(*(*Tuint32_t)(unsafe.Pointer(p + 3*4)))
  6437. if new_length >= uint64(libc.Uint32FromUint32(0xffffffff)/libc.Uint32FromUint32(16)) {
  6438. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6439. return 0
  6440. }
  6441. (*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength = uint32(new_length * libc.Uint64FromUint64(2))
  6442. }
  6443. length += uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
  6444. /* XXX a bit of a hack -- we "know" that all FD replys place
  6445. * the number of fds in the pad0 byte */
  6446. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_REPLY_FDS) != 0 {
  6447. nfd = libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fpad0)
  6448. }
  6449. }
  6450. /* XGE events may have sizes > 32 */
  6451. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) == int32(m_XCB_XGE_EVENT) {
  6452. eventlength = uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
  6453. }
  6454. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6455. v1 = uint32(0)
  6456. } else {
  6457. v1 = uint32(4)
  6458. }
  6459. bufsize = length + eventlength + uint64(libc.Uint32FromInt32(nfd)*uint32(4)) + uint64(v1)
  6460. if bufsize < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT32_MAX1)) {
  6461. buf = libc.Xmalloc(tls, uint32(bufsize))
  6462. } else {
  6463. buf = libc.UintptrFromInt32(0)
  6464. }
  6465. if !(buf != 0) {
  6466. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6467. return 0
  6468. }
  6469. if X_xcb_in_read_block(tls, c, buf, libc.Int32FromUint64(length)) <= 0 {
  6470. libc.Xfree(tls, buf)
  6471. return 0
  6472. }
  6473. /* pull in XGE event data if available, append after event struct */
  6474. if eventlength != 0 {
  6475. if X_xcb_in_read_block(tls, c, buf+1*36, libc.Int32FromUint64(eventlength)) <= 0 {
  6476. libc.Xfree(tls, buf)
  6477. return 0
  6478. }
  6479. }
  6480. if nfd != 0 {
  6481. if !(_read_fds(tls, c, buf+uintptr(length), nfd) != 0) {
  6482. libc.Xfree(tls, buf)
  6483. return 0
  6484. }
  6485. }
  6486. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_DISCARD_REPLY) != 0 {
  6487. libc.Xfree(tls, buf)
  6488. return int32(1)
  6489. }
  6490. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) != int32(m_XCB_REPLY) {
  6491. (*Txcb_generic_event_t)(unsafe.Pointer(buf)).Ffull_sequence = uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read)
  6492. }
  6493. /* reply, or checked error */
  6494. 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 {
  6495. cur = libc.Xmalloc(tls, uint32(8))
  6496. if !(cur != 0) {
  6497. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6498. libc.Xfree(tls, buf)
  6499. return 0
  6500. }
  6501. (*Treply_list)(unsafe.Pointer(cur)).Freply = buf
  6502. (*Treply_list)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  6503. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail)) = cur
  6504. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = cur + 4
  6505. 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 {
  6506. libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  6507. }
  6508. return int32(1)
  6509. }
  6510. /* event, or unchecked error */
  6511. event = libc.Xmalloc(tls, uint32(8))
  6512. if !(event != 0) {
  6513. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6514. libc.Xfree(tls, buf)
  6515. return 0
  6516. }
  6517. (*Tevent_list)(unsafe.Pointer(event)).Fevent = buf
  6518. (*Tevent_list)(unsafe.Pointer(event)).Fnext = uintptr(0)
  6519. if !(_event_special(tls, c, event) != 0) {
  6520. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail)) = event
  6521. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = event + 4
  6522. libc.Xpthread_cond_signal(tls, c+40)
  6523. }
  6524. return int32(1) /* I have something for you... */
  6525. }
  6526. func _get_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6527. var cur, ret uintptr
  6528. _, _ = cur, ret
  6529. cur = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents
  6530. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents != 0) {
  6531. return uintptr(0)
  6532. }
  6533. ret = (*Tevent_list)(unsafe.Pointer(cur)).Fevent
  6534. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents = (*Tevent_list)(unsafe.Pointer(cur)).Fnext
  6535. if !((*Tevent_list)(unsafe.Pointer(cur)).Fnext != 0) {
  6536. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = c + 40 + 4196
  6537. }
  6538. libc.Xfree(tls, cur)
  6539. return ret
  6540. }
  6541. func _free_reply_list(tls *libc.TLS, head uintptr) {
  6542. var cur uintptr
  6543. _ = cur
  6544. for head != 0 {
  6545. cur = head
  6546. head = (*Treply_list)(unsafe.Pointer(cur)).Fnext
  6547. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(cur)).Freply)
  6548. libc.Xfree(tls, cur)
  6549. }
  6550. }
  6551. func _read_block(tls *libc.TLS, fd int32, buf uintptr, len1 Tintptr_t) (r int32) {
  6552. bp := tls.Alloc(16)
  6553. defer tls.Free(16)
  6554. var done, ret int32
  6555. var _ /* pfd at bp+0 */ Tpollfd
  6556. _, _ = done, ret
  6557. done = 0
  6558. for done < len1 {
  6559. ret = libc.Xrecv(tls, fd, buf+uintptr(done), libc.Uint32FromInt32(len1-done), 0)
  6560. if ret > 0 {
  6561. done += ret
  6562. }
  6563. if ret < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  6564. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = fd
  6565. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  6566. (*(*Tpollfd)(unsafe.Pointer(bp))).Frevents = 0
  6567. for cond := true; cond; cond = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  6568. ret = libc.Xpoll(tls, bp, uint32(1), -int32(1))
  6569. }
  6570. }
  6571. if ret <= 0 {
  6572. return ret
  6573. }
  6574. }
  6575. return len1
  6576. }
  6577. func _poll_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6578. var head uintptr
  6579. _ = head
  6580. /* If an error occurred when issuing the request, fail immediately. */
  6581. if !(request != 0) {
  6582. head = uintptr(0)
  6583. } else {
  6584. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) < 0 {
  6585. head = X_xcb_map_remove(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request)
  6586. if head != 0 && (*Treply_list)(unsafe.Pointer(head)).Fnext != 0 {
  6587. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request, (*Treply_list)(unsafe.Pointer(head)).Fnext)
  6588. }
  6589. } else {
  6590. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6591. head = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply
  6592. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = (*Treply_list)(unsafe.Pointer(head)).Fnext
  6593. if !((*Treply_list)(unsafe.Pointer(head)).Fnext != 0) {
  6594. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 40 + 4184
  6595. }
  6596. } else {
  6597. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed {
  6598. head = uintptr(0)
  6599. } else {
  6600. return 0
  6601. }
  6602. }
  6603. }
  6604. }
  6605. if error1 != 0 {
  6606. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6607. }
  6608. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6609. if head != 0 {
  6610. if libc.Int32FromUint8((*Txcb_generic_reply_t)(unsafe.Pointer((*Treply_list)(unsafe.Pointer(head)).Freply)).Fresponse_type) == m_XCB_ERROR {
  6611. if error1 != 0 {
  6612. *(*uintptr)(unsafe.Pointer(error1)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6613. } else {
  6614. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(head)).Freply)
  6615. }
  6616. } else {
  6617. *(*uintptr)(unsafe.Pointer(reply)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6618. }
  6619. libc.Xfree(tls, head)
  6620. }
  6621. return int32(1)
  6622. }
  6623. func _insert_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr, request Tuint64_t, cond uintptr) {
  6624. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-request) <= 0 {
  6625. prev_reader = *(*uintptr)(unsafe.Pointer(prev_reader)) + 12
  6626. }
  6627. (*Treader_list)(unsafe.Pointer(reader)).Frequest = request
  6628. (*Treader_list)(unsafe.Pointer(reader)).Fdata = cond
  6629. (*Treader_list)(unsafe.Pointer(reader)).Fnext = *(*uintptr)(unsafe.Pointer(prev_reader))
  6630. *(*uintptr)(unsafe.Pointer(prev_reader)) = reader
  6631. }
  6632. func _remove_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr) {
  6633. 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 {
  6634. if *(*uintptr)(unsafe.Pointer(prev_reader)) == reader {
  6635. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6636. break
  6637. }
  6638. }
  6639. }
  6640. func _insert_special(tls *libc.TLS, prev_special uintptr, special uintptr, se uintptr) {
  6641. (*Tspecial_list)(unsafe.Pointer(special)).Fse = se
  6642. (*Tspecial_list)(unsafe.Pointer(special)).Fnext = *(*uintptr)(unsafe.Pointer(prev_special))
  6643. *(*uintptr)(unsafe.Pointer(prev_special)) = special
  6644. }
  6645. func _remove_special(tls *libc.TLS, prev_special uintptr, special uintptr) {
  6646. for *(*uintptr)(unsafe.Pointer(prev_special)) != 0 {
  6647. if *(*uintptr)(unsafe.Pointer(prev_special)) == special {
  6648. *(*uintptr)(unsafe.Pointer(prev_special)) = (*Tspecial_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_special)))).Fnext
  6649. break
  6650. }
  6651. prev_special = *(*uintptr)(unsafe.Pointer(prev_special)) + 4
  6652. }
  6653. }
  6654. func _wait_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6655. bp := tls.Alloc(80)
  6656. defer tls.Free(80)
  6657. var _ /* cond at bp+4 */ Tpthread_cond_t
  6658. var _ /* reader at bp+56 */ Treader_list
  6659. var _ /* ret at bp+0 */ uintptr
  6660. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6661. /* If this request has not been written yet, write it. */
  6662. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 || X_xcb_out_flush_to(tls, c, request) != 0 {
  6663. *(*Tpthread_cond_t)(unsafe.Pointer(bp + 4)) = Tpthread_cond_t{}
  6664. *(*int32)(unsafe.Pointer(bp + 4)) = 0
  6665. _insert_reader(tls, c+40+4204, bp+56, request, bp+4)
  6666. for !(_poll_for_reply(tls, c, request, bp, e) != 0) {
  6667. if !(X_xcb_conn_wait(tls, c, bp+4, uintptr(0), uintptr(0)) != 0) {
  6668. break
  6669. }
  6670. }
  6671. _remove_reader(tls, c+40+4204, bp+56)
  6672. libc.Xpthread_cond_destroy(tls, bp+4)
  6673. }
  6674. X_xcb_in_wake_up_next_reader(tls, c)
  6675. return *(*uintptr)(unsafe.Pointer(bp))
  6676. }
  6677. func _widen(tls *libc.TLS, c uintptr, request uint32) (r Tuint64_t) {
  6678. var widened_request Tuint64_t
  6679. _ = widened_request
  6680. widened_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest&uint64(0xffffffff00000000) | uint64(request)
  6681. if widened_request > (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest {
  6682. widened_request -= libc.Uint64FromUint64(1) << libc.Int32FromInt32(32)
  6683. }
  6684. return widened_request
  6685. }
  6686. /* Public interface */
  6687. func Xxcb_wait_for_reply(tls *libc.TLS, c uintptr, request uint32, e uintptr) (r uintptr) {
  6688. var ret uintptr
  6689. _ = ret
  6690. if e != 0 {
  6691. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6692. }
  6693. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6694. return uintptr(0)
  6695. }
  6696. libc.Xpthread_mutex_lock(tls, c+12)
  6697. ret = _wait_for_reply(tls, c, _widen(tls, c, request), e)
  6698. libc.Xpthread_mutex_unlock(tls, c+12)
  6699. return ret
  6700. }
  6701. func Xxcb_wait_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6702. var ret uintptr
  6703. _ = ret
  6704. if e != 0 {
  6705. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6706. }
  6707. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6708. return uintptr(0)
  6709. }
  6710. libc.Xpthread_mutex_lock(tls, c+12)
  6711. ret = _wait_for_reply(tls, c, request, e)
  6712. libc.Xpthread_mutex_unlock(tls, c+12)
  6713. return ret
  6714. }
  6715. func Xxcb_get_reply_fds(tls *libc.TLS, c uintptr, reply uintptr, reply_size Tsize_t) (r uintptr) {
  6716. return reply + uintptr(reply_size)
  6717. }
  6718. func _insert_pending_discard(tls *libc.TLS, c uintptr, prev_next uintptr, seq Tuint64_t) {
  6719. var pend uintptr
  6720. _ = pend
  6721. pend = libc.Xmalloc(tls, uint32(32))
  6722. if !(pend != 0) {
  6723. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6724. return
  6725. }
  6726. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = seq
  6727. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = seq
  6728. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = 0
  6729. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = int32(_XCB_REQUEST_DISCARD_REPLY)
  6730. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = *(*uintptr)(unsafe.Pointer(prev_next))
  6731. *(*uintptr)(unsafe.Pointer(prev_next)) = pend
  6732. if !((*Tpending_reply)(unsafe.Pointer(pend)).Fnext != 0) {
  6733. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  6734. }
  6735. }
  6736. func _discard_reply(tls *libc.TLS, c uintptr, request Tuint64_t) {
  6737. bp := tls.Alloc(16)
  6738. defer tls.Free(16)
  6739. var prev_pend uintptr
  6740. var _ /* reply at bp+0 */ uintptr
  6741. _ = prev_pend
  6742. /* Free any replies or errors that we've already read. Stop if
  6743. * xcb_wait_for_reply would block or we've run out of replies. */
  6744. for _poll_for_reply(tls, c, request, bp, uintptr(0)) != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
  6745. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp)))
  6746. }
  6747. /* If we've proven there are no more responses coming, we're done. */
  6748. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
  6749. return
  6750. }
  6751. /* Walk the list of pending requests. Mark the first match for deletion. */
  6752. prev_pend = c + 40 + 4212
  6753. for {
  6754. if !(*(*uintptr)(unsafe.Pointer(prev_pend)) != 0) {
  6755. break
  6756. }
  6757. if libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request-request) > 0 {
  6758. break
  6759. }
  6760. if (*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request == request {
  6761. /* Pending reply found. Mark for discard: */
  6762. *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)) + 20)) |= int32(_XCB_REQUEST_DISCARD_REPLY)
  6763. return
  6764. }
  6765. goto _1
  6766. _1:
  6767. ;
  6768. prev_pend = *(*uintptr)(unsafe.Pointer(prev_pend)) + 24
  6769. }
  6770. /* Pending reply not found (likely due to _unchecked request). Create one: */
  6771. _insert_pending_discard(tls, c, prev_pend, request)
  6772. }
  6773. func Xxcb_discard_reply(tls *libc.TLS, c uintptr, sequence uint32) {
  6774. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6775. return
  6776. }
  6777. /* If an error occurred when issuing the request, fail immediately. */
  6778. if !(sequence != 0) {
  6779. return
  6780. }
  6781. libc.Xpthread_mutex_lock(tls, c+12)
  6782. _discard_reply(tls, c, _widen(tls, c, sequence))
  6783. libc.Xpthread_mutex_unlock(tls, c+12)
  6784. }
  6785. func Xxcb_discard_reply64(tls *libc.TLS, c uintptr, sequence Tuint64_t) {
  6786. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6787. return
  6788. }
  6789. /* If an error occurred when issuing the request, fail immediately. */
  6790. if !(sequence != 0) {
  6791. return
  6792. }
  6793. libc.Xpthread_mutex_lock(tls, c+12)
  6794. _discard_reply(tls, c, sequence)
  6795. libc.Xpthread_mutex_unlock(tls, c+12)
  6796. }
  6797. func Xxcb_poll_for_reply(tls *libc.TLS, c uintptr, request uint32, reply uintptr, error1 uintptr) (r int32) {
  6798. var ret int32
  6799. _ = ret
  6800. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6801. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6802. if error1 != 0 {
  6803. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6804. }
  6805. return int32(1) /* would not block */
  6806. }
  6807. libc.Xpthread_mutex_lock(tls, c+12)
  6808. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6809. 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 */
  6810. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6811. }
  6812. libc.Xpthread_mutex_unlock(tls, c+12)
  6813. return ret
  6814. }
  6815. func Xxcb_poll_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6816. var ret int32
  6817. _ = ret
  6818. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6819. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6820. if error1 != 0 {
  6821. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6822. }
  6823. return int32(1) /* would not block */
  6824. }
  6825. libc.Xpthread_mutex_lock(tls, c+12)
  6826. ret = _poll_for_reply(tls, c, request, reply, error1)
  6827. 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 */
  6828. ret = _poll_for_reply(tls, c, request, reply, error1)
  6829. }
  6830. libc.Xpthread_mutex_unlock(tls, c+12)
  6831. return ret
  6832. }
  6833. func Xxcb_wait_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6834. var ret, v1 uintptr
  6835. _, _ = ret, v1
  6836. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6837. return uintptr(0)
  6838. }
  6839. libc.Xpthread_mutex_lock(tls, c+12)
  6840. /* get_event returns 0 on empty list. */
  6841. for {
  6842. v1 = _get_event(tls, c)
  6843. ret = v1
  6844. if !!(v1 != 0) {
  6845. break
  6846. }
  6847. if !(X_xcb_conn_wait(tls, c, c+40, uintptr(0), uintptr(0)) != 0) {
  6848. break
  6849. }
  6850. }
  6851. X_xcb_in_wake_up_next_reader(tls, c)
  6852. libc.Xpthread_mutex_unlock(tls, c+12)
  6853. return ret
  6854. }
  6855. func _poll_for_next_event(tls *libc.TLS, c uintptr, queued int32) (r uintptr) {
  6856. var ret uintptr
  6857. _ = ret
  6858. ret = uintptr(0)
  6859. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
  6860. libc.Xpthread_mutex_lock(tls, c+12)
  6861. /* FIXME: follow X meets Z architecture changes. */
  6862. ret = _get_event(tls, c)
  6863. 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 */
  6864. ret = _get_event(tls, c)
  6865. }
  6866. libc.Xpthread_mutex_unlock(tls, c+12)
  6867. }
  6868. return ret
  6869. }
  6870. func Xxcb_poll_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6871. return _poll_for_next_event(tls, c, 0)
  6872. }
  6873. func Xxcb_poll_for_queued_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6874. return _poll_for_next_event(tls, c, int32(1))
  6875. }
  6876. func Xxcb_request_check(tls *libc.TLS, c uintptr, cookie Txcb_void_cookie_t) (r uintptr) {
  6877. bp := tls.Alloc(16)
  6878. defer tls.Free(16)
  6879. var reply uintptr
  6880. var request Tuint64_t
  6881. var _ /* ret at bp+0 */ uintptr
  6882. _, _ = reply, request
  6883. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6884. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6885. return uintptr(0)
  6886. }
  6887. libc.Xpthread_mutex_lock(tls, c+12)
  6888. request = _widen(tls, c, cookie.Fsequence)
  6889. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) > 0 {
  6890. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) >= 0 {
  6891. X_xcb_out_send_sync(tls, c)
  6892. }
  6893. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written) >= 0 {
  6894. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6895. }
  6896. }
  6897. reply = _wait_for_reply(tls, c, request, bp)
  6898. libc.Xpthread_mutex_unlock(tls, c+12)
  6899. return *(*uintptr)(unsafe.Pointer(bp))
  6900. }
  6901. func _get_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6902. var event, events, v1, v2 uintptr
  6903. _, _, _, _ = event, events, v1, v2
  6904. event = libc.UintptrFromInt32(0)
  6905. v1 = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6906. events = v1
  6907. if v1 != libc.UintptrFromInt32(0) {
  6908. event = (*Tevent_list)(unsafe.Pointer(events)).Fevent
  6909. v2 = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6910. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = v2
  6911. if !(v2 != 0) {
  6912. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 16
  6913. }
  6914. libc.Xfree(tls, events)
  6915. }
  6916. return event
  6917. }
  6918. func Xxcb_poll_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6919. var event uintptr
  6920. _ = event
  6921. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6922. return uintptr(0)
  6923. }
  6924. libc.Xpthread_mutex_lock(tls, c+12)
  6925. event = _get_special_event(tls, c, se)
  6926. 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 */
  6927. event = _get_special_event(tls, c, se)
  6928. }
  6929. libc.Xpthread_mutex_unlock(tls, c+12)
  6930. return event
  6931. }
  6932. func Xxcb_wait_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6933. bp := tls.Alloc(16)
  6934. defer tls.Free(16)
  6935. var event, v1 uintptr
  6936. var _ /* special at bp+0 */ Tspecial_list
  6937. _, _ = event, v1
  6938. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6939. return uintptr(0)
  6940. }
  6941. libc.Xpthread_mutex_lock(tls, c+12)
  6942. _insert_special(tls, c+40+4208, bp, se)
  6943. /* get_special_event returns 0 on empty list. */
  6944. for {
  6945. v1 = _get_special_event(tls, c, se)
  6946. event = v1
  6947. if !!(v1 != 0) {
  6948. break
  6949. }
  6950. if !(X_xcb_conn_wait(tls, c, se+24, uintptr(0), uintptr(0)) != 0) {
  6951. break
  6952. }
  6953. }
  6954. _remove_special(tls, c+40+4208, bp)
  6955. X_xcb_in_wake_up_next_reader(tls, c)
  6956. libc.Xpthread_mutex_unlock(tls, c+12)
  6957. return event
  6958. }
  6959. func Xxcb_register_for_special_xge(tls *libc.TLS, c uintptr, ext uintptr, eid Tuint32_t, stamp uintptr) (r uintptr) {
  6960. var ext_reply, se uintptr
  6961. _, _ = ext_reply, se
  6962. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6963. return libc.UintptrFromInt32(0)
  6964. }
  6965. ext_reply = Xxcb_get_extension_data(tls, c, ext)
  6966. if !(ext_reply != 0) {
  6967. return libc.UintptrFromInt32(0)
  6968. }
  6969. libc.Xpthread_mutex_lock(tls, c+12)
  6970. se = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6971. for {
  6972. if !(se != 0) {
  6973. break
  6974. }
  6975. 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 {
  6976. libc.Xpthread_mutex_unlock(tls, c+12)
  6977. return libc.UintptrFromInt32(0)
  6978. }
  6979. goto _1
  6980. _1:
  6981. ;
  6982. se = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6983. }
  6984. se = libc.Xcalloc(tls, uint32(1), uint32(72))
  6985. if !(se != 0) {
  6986. libc.Xpthread_mutex_unlock(tls, c+12)
  6987. return libc.UintptrFromInt32(0)
  6988. }
  6989. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension = (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode
  6990. (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid = eid
  6991. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = libc.UintptrFromInt32(0)
  6992. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 16
  6993. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fstamp = stamp
  6994. libc.Xpthread_cond_init(tls, se+24, uintptr(0))
  6995. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6996. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events = se
  6997. libc.Xpthread_mutex_unlock(tls, c+12)
  6998. return se
  6999. }
  7000. func Xxcb_unregister_for_special_event(tls *libc.TLS, c uintptr, se uintptr) {
  7001. var events, next, prev, s, v2 uintptr
  7002. _, _, _, _, _ = events, next, prev, s, v2
  7003. if !(se != 0) {
  7004. return
  7005. }
  7006. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7007. return
  7008. }
  7009. libc.Xpthread_mutex_lock(tls, c+12)
  7010. prev = c + 40 + 4292
  7011. for {
  7012. v2 = *(*uintptr)(unsafe.Pointer(prev))
  7013. s = v2
  7014. if !(v2 != libc.UintptrFromInt32(0)) {
  7015. break
  7016. }
  7017. if s == se {
  7018. *(*uintptr)(unsafe.Pointer(prev)) = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  7019. events = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  7020. for {
  7021. if !(events != 0) {
  7022. break
  7023. }
  7024. next = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  7025. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(events)).Fevent)
  7026. libc.Xfree(tls, events)
  7027. goto _3
  7028. _3:
  7029. ;
  7030. events = next
  7031. }
  7032. libc.Xpthread_cond_destroy(tls, se+24)
  7033. libc.Xfree(tls, se)
  7034. break
  7035. }
  7036. goto _1
  7037. _1:
  7038. ;
  7039. prev = s
  7040. }
  7041. libc.Xpthread_mutex_unlock(tls, c+12)
  7042. }
  7043. /* Private interface */
  7044. func X_xcb_in_init(tls *libc.TLS, in uintptr) (r int32) {
  7045. if libc.Xpthread_cond_init(tls, in, uintptr(0)) != 0 {
  7046. return 0
  7047. }
  7048. (*T_xcb_in)(unsafe.Pointer(in)).Freading = 0
  7049. (*T_xcb_in)(unsafe.Pointer(in)).Fqueue_len = 0
  7050. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_read = uint64(0)
  7051. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_completed = uint64(0)
  7052. (*T_xcb_in)(unsafe.Pointer(in)).Freplies = X_xcb_map_new(tls)
  7053. if !((*T_xcb_in)(unsafe.Pointer(in)).Freplies != 0) {
  7054. return 0
  7055. }
  7056. (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply_tail = in + 4184
  7057. (*T_xcb_in)(unsafe.Pointer(in)).Fevents_tail = in + 4196
  7058. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies_tail = in + 4212
  7059. return int32(1)
  7060. }
  7061. func X_xcb_in_destroy(tls *libc.TLS, in uintptr) {
  7062. var e, pend uintptr
  7063. _, _ = e, pend
  7064. libc.Xpthread_cond_destroy(tls, in)
  7065. _free_reply_list(tls, (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply)
  7066. X_xcb_map_delete(tls, (*T_xcb_in)(unsafe.Pointer(in)).Freplies, __ccgo_fp(_free_reply_list))
  7067. for (*T_xcb_in)(unsafe.Pointer(in)).Fevents != 0 {
  7068. e = (*T_xcb_in)(unsafe.Pointer(in)).Fevents
  7069. (*T_xcb_in)(unsafe.Pointer(in)).Fevents = (*Tevent_list)(unsafe.Pointer(e)).Fnext
  7070. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(e)).Fevent)
  7071. libc.Xfree(tls, e)
  7072. }
  7073. for (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies != 0 {
  7074. pend = (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies
  7075. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies = (*Tpending_reply)(unsafe.Pointer(pend)).Fnext
  7076. libc.Xfree(tls, pend)
  7077. }
  7078. }
  7079. func X_xcb_in_wake_up_next_reader(tls *libc.TLS, c uintptr) {
  7080. var pthreadret int32
  7081. _ = pthreadret
  7082. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 {
  7083. pthreadret = libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  7084. } else {
  7085. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters != 0 {
  7086. pthreadret = libc.Xpthread_cond_signal(tls, (*Tspecial_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters)).Fse+24)
  7087. } else {
  7088. pthreadret = libc.Xpthread_cond_signal(tls, c+40)
  7089. }
  7090. }
  7091. }
  7092. func X_xcb_in_expect_reply(tls *libc.TLS, c uintptr, request Tuint64_t, workaround _workarounds, flags int32) (r int32) {
  7093. var pend uintptr
  7094. var v1 Tuint64_t
  7095. _, _ = pend, v1
  7096. pend = libc.Xmalloc(tls, uint32(32))
  7097. if !(pend != 0) {
  7098. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  7099. return 0
  7100. }
  7101. v1 = request
  7102. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = v1
  7103. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = v1
  7104. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = workaround
  7105. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = flags
  7106. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = uintptr(0)
  7107. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail)) = pend
  7108. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  7109. return int32(1)
  7110. }
  7111. func X_xcb_in_replies_done(tls *libc.TLS, c uintptr) {
  7112. var pend, prev_next uintptr
  7113. _, _ = pend, prev_next
  7114. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail != c+40+4212 {
  7115. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail - uintptr(Tsize_t(libc.UintptrFromInt32(0)+24))
  7116. if (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) {
  7117. if libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest) <= 0 {
  7118. (*Tpending_reply1)(unsafe.Pointer(pend)).Flast_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  7119. (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround = int32(_WORKAROUND_NONE)
  7120. } else {
  7121. /* The socket was taken, but no requests were actually sent
  7122. * so just discard the pending_reply that was created.
  7123. */
  7124. prev_next = c + 40 + 4212
  7125. for *(*uintptr)(unsafe.Pointer(prev_next)) != pend {
  7126. prev_next = *(*uintptr)(unsafe.Pointer(prev_next)) + 24
  7127. }
  7128. *(*uintptr)(unsafe.Pointer(prev_next)) = libc.UintptrFromInt32(0)
  7129. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = prev_next
  7130. libc.Xfree(tls, pend)
  7131. }
  7132. }
  7133. }
  7134. }
  7135. func X_xcb_in_read(tls *libc.TLS, c uintptr) (r int32) {
  7136. bp := tls.Alloc(112)
  7137. defer tls.Free(112)
  7138. var hdr, v2, v3 uintptr
  7139. var i, n, nfd int32
  7140. var _ /* cmsgbuf at bp+8 */ struct {
  7141. Fbuf [0][76]uint8
  7142. Fcmsghdr Tcmsghdr
  7143. F__ccgo_pad2 [64]byte
  7144. }
  7145. var _ /* iov at bp+0 */ Tiovec
  7146. var _ /* msg at bp+84 */ Tmsghdr
  7147. _, _, _, _, _, _ = hdr, i, n, nfd, v2, v3
  7148. *(*Tiovec)(unsafe.Pointer(bp)) = Tiovec{
  7149. Fiov_base: c + 40 + 52 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7150. Fiov_len: uint32(4096) - libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7151. }
  7152. *(*Tmsghdr)(unsafe.Pointer(bp + 84)) = Tmsghdr{
  7153. Fmsg_iov: bp,
  7154. Fmsg_iovlen: int32(1),
  7155. Fmsg_control: bp + 8,
  7156. Fmsg_controllen: (libc.Uint32FromInt64(4)*libc.Uint32FromInt32(libc.Int32FromInt32(m_XCB_MAX_PASS_FD)-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)+libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)) & ^(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)) + (libc.Uint32FromInt64(12)+libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)) & ^(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)),
  7157. }
  7158. n = libc.Xrecvmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+84, 0)
  7159. /* Check for truncation errors. Only MSG_CTRUNC is
  7160. * probably possible here, which would indicate that
  7161. * the sender tried to transmit more than XCB_MAX_PASS_FD
  7162. * file descriptors.
  7163. */
  7164. if (*(*Tmsghdr)(unsafe.Pointer(bp + 84))).Fmsg_flags&(libc.Int32FromInt32(m_MSG_TRUNC1)|libc.Int32FromInt32(m_MSG_CTRUNC1)) != 0 {
  7165. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7166. return 0
  7167. }
  7168. if n > 0 {
  7169. if (*(*Tmsghdr)(unsafe.Pointer(bp + 84))).Fmsg_controllen >= uint32(12) {
  7170. if (*Tmsghdr)(unsafe.Pointer(bp+84)).Fmsg_controllen >= uint32(12) {
  7171. v2 = (*Tmsghdr)(unsafe.Pointer(bp + 84)).Fmsg_control
  7172. } else {
  7173. v2 = libc.UintptrFromInt32(0)
  7174. }
  7175. hdr = v2
  7176. for {
  7177. if !(hdr != 0) {
  7178. break
  7179. }
  7180. if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level == int32(m_SOL_SOCKET) && (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type == int32(m_SCM_RIGHTS) {
  7181. nfd = libc.Int32FromUint32(((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len - ((libc.Uint32FromInt64(12)+libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)) & ^(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)) + libc.Uint32FromInt32(libc.Int32FromInt32(0)))) / uint32(4))
  7182. libc.Xmemcpy(tls, c+40+4220+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)*4, hdr+libc.UintptrFromInt32(1)*12, libc.Uint32FromInt32(nfd)*uint32(4))
  7183. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd += nfd
  7184. }
  7185. goto _1
  7186. _1:
  7187. ;
  7188. if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len < uint32(12) || uint32((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len+libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1))&libc.Uint32FromInt32(^libc.Int32FromUint32(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1)))+uint32(12) >= libc.Uint32FromInt32(int32((*Tmsghdr)(unsafe.Pointer(bp+84)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp+84)).Fmsg_controllen))-int32(hdr)) {
  7189. v3 = uintptr(0)
  7190. } else {
  7191. v3 = hdr + uintptr(uint32((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len+libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1))&libc.Uint32FromInt32(^libc.Int32FromUint32(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1))))
  7192. }
  7193. hdr = v3
  7194. }
  7195. }
  7196. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read += libc.Uint64FromInt32(n)
  7197. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len += n
  7198. }
  7199. for _read_packet(tls, c) != 0 {
  7200. /* empty */
  7201. }
  7202. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7203. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd -= (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  7204. libc.Xmemmove(tls, c+40+4220, c+40+4220+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4, libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)*uint32(4))
  7205. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd = 0
  7206. /* If we have any left-over file descriptors after emptying
  7207. * the input buffer, then the server sent some that we weren't
  7208. * expecting. Close them and mark the connection as broken;
  7209. */
  7210. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len == 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7211. i = 0
  7212. for {
  7213. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd) {
  7214. break
  7215. }
  7216. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 40 + 4220 + uintptr(i)*4)))
  7217. goto _4
  7218. _4:
  7219. ;
  7220. i++
  7221. }
  7222. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7223. return 0
  7224. }
  7225. }
  7226. 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)) {
  7227. return int32(1)
  7228. }
  7229. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7230. return 0
  7231. }
  7232. func X_xcb_in_read_block(tls *libc.TLS, c uintptr, buf uintptr, len1 int32) (r int32) {
  7233. var done, ret int32
  7234. _, _ = done, ret
  7235. done = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len
  7236. if len1 < done {
  7237. done = len1
  7238. }
  7239. libc.Xmemcpy(tls, buf, c+40+52, libc.Uint32FromInt32(done))
  7240. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len -= done
  7241. libc.Xmemmove(tls, c+40+52, c+40+52+uintptr(done), libc.Uint32FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len))
  7242. if len1 > done {
  7243. ret = _read_block(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, buf+uintptr(done), len1-done)
  7244. if ret <= 0 {
  7245. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7246. return ret
  7247. }
  7248. }
  7249. return len1
  7250. }
  7251. type Tpending_reply1 = struct {
  7252. F__ccgo_align [0]uint32
  7253. Ffirst_request Tuint64_t
  7254. Flast_request Tuint64_t
  7255. Fworkaround _workarounds
  7256. Fflags int32
  7257. Fnext uintptr
  7258. F__ccgo_pad5 [4]byte
  7259. }
  7260. type Treader_list1 = struct {
  7261. F__ccgo_align [0]uint32
  7262. Frequest Tuint64_t
  7263. Fdata uintptr
  7264. Fnext uintptr
  7265. }
  7266. type Tspecial_list1 = struct {
  7267. Fse uintptr
  7268. Fnext uintptr
  7269. }
  7270. type Txcb_ge_special_event_t1 = struct {
  7271. Fresponse_type Tuint8_t
  7272. Fextension Tuint8_t
  7273. Fsequence Tuint16_t
  7274. Flength Tuint32_t
  7275. Fevtype Tuint16_t
  7276. Fpad0 [2]Tuint8_t
  7277. Feid Tuint32_t
  7278. Fpad1 [16]Tuint8_t
  7279. }
  7280. const m_INT32_MAX2 = 0x7fffffff
  7281. const m_UINT32_MAX2 = "0xffffffffu"
  7282. type Tlazyreply = struct {
  7283. Ftag _lazy_reply_tag
  7284. Fvalue struct {
  7285. Freply [0]uintptr
  7286. Fcookie Txcb_query_extension_cookie_t
  7287. }
  7288. }
  7289. func _get_index(tls *libc.TLS, c uintptr, idx int32) (r uintptr) {
  7290. var new_extensions uintptr
  7291. var new_size int32
  7292. _, _ = new_extensions, new_size
  7293. if idx > (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size {
  7294. new_size = idx << int32(1)
  7295. new_extensions = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions, uint32(8)*libc.Uint32FromInt32(new_size))
  7296. if !(new_extensions != 0) {
  7297. return uintptr(0)
  7298. }
  7299. libc.Xmemset(tls, new_extensions+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*8, 0, uint32(8)*libc.Uint32FromInt32(new_size-(*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size))
  7300. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions = new_extensions
  7301. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size = new_size
  7302. }
  7303. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr(idx)*8 - uintptr(1)*8
  7304. }
  7305. func _get_lazyreply(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7306. var data uintptr
  7307. var v1 int32
  7308. _, _ = data, v1
  7309. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7310. if !((*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id != 0) {
  7311. _next_global_id++
  7312. v1 = _next_global_id
  7313. (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id = v1
  7314. }
  7315. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7316. data = _get_index(tls, c, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id)
  7317. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_NONE) {
  7318. /* cache miss: query the server */
  7319. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_COOKIE)
  7320. *(*Txcb_query_extension_cookie_t)(unsafe.Pointer(data + 4)) = Xxcb_query_extension(tls, c, uint16(libc.Xstrlen(tls, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fname)), (*Txcb_extension_t)(unsafe.Pointer(ext)).Fname)
  7321. }
  7322. return data
  7323. }
  7324. var _global_lock = Tpthread_mutex_t{}
  7325. var _next_global_id int32
  7326. /* Public interface */
  7327. // C documentation
  7328. //
  7329. // /* Do not free the returned xcb_query_extension_reply_t - on return, it's aliased
  7330. // * from the cache. */
  7331. func Xxcb_get_extension_data(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7332. var data, v1 uintptr
  7333. _, _ = data, v1
  7334. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7335. return uintptr(0)
  7336. }
  7337. libc.Xpthread_mutex_lock(tls, c+20984)
  7338. data = _get_lazyreply(tls, c, ext)
  7339. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_COOKIE) {
  7340. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_FORCED)
  7341. *(*uintptr)(unsafe.Pointer(data + 4)) = Xxcb_query_extension_reply(tls, c, *(*Txcb_query_extension_cookie_t)(unsafe.Pointer(data + 4)), uintptr(0))
  7342. }
  7343. libc.Xpthread_mutex_unlock(tls, c+20984)
  7344. if data != 0 {
  7345. v1 = *(*uintptr)(unsafe.Pointer(data + 4))
  7346. } else {
  7347. v1 = uintptr(0)
  7348. }
  7349. return v1
  7350. }
  7351. func Xxcb_prefetch_extension_data(tls *libc.TLS, c uintptr, ext uintptr) {
  7352. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7353. return
  7354. }
  7355. libc.Xpthread_mutex_lock(tls, c+20984)
  7356. _get_lazyreply(tls, c, ext)
  7357. libc.Xpthread_mutex_unlock(tls, c+20984)
  7358. }
  7359. /* Private interface */
  7360. func X_xcb_ext_init(tls *libc.TLS, c uintptr) (r int32) {
  7361. if libc.Xpthread_mutex_init(tls, c+20984, uintptr(0)) != 0 {
  7362. return 0
  7363. }
  7364. return int32(1)
  7365. }
  7366. func X_xcb_ext_destroy(tls *libc.TLS, c uintptr) {
  7367. var v1 int32
  7368. var v2 uintptr
  7369. _, _ = v1, v2
  7370. libc.Xpthread_mutex_destroy(tls, c+20984)
  7371. for {
  7372. v2 = c + 20984 + 32
  7373. v1 = *(*int32)(unsafe.Pointer(v2))
  7374. *(*int32)(unsafe.Pointer(v2))--
  7375. if !(v1 > 0) {
  7376. break
  7377. }
  7378. if (*(*Tlazyreply1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*8))).Ftag == int32(_LAZY_FORCED) {
  7379. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*8 + 4)))
  7380. }
  7381. }
  7382. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions)
  7383. }
  7384. type Tlazyreply1 = struct {
  7385. Ftag _lazy_reply_tag
  7386. Fvalue struct {
  7387. Freply [0]uintptr
  7388. Fcookie Txcb_query_extension_cookie_t
  7389. }
  7390. }
  7391. const m_XCB_XCMISC_MAJOR_VERSION = 1
  7392. const m_XCB_XCMISC_MINOR_VERSION = 1
  7393. const m_XCB_XC_MISC_GET_VERSION = 0
  7394. const m_XCB_XC_MISC_GET_XID_LIST = 2
  7395. const m_XCB_XC_MISC_GET_XID_RANGE = 1
  7396. type Txcb_xc_misc_get_version_cookie_t = struct {
  7397. Fsequence uint32
  7398. }
  7399. type Txcb_xc_misc_get_version_request_t = struct {
  7400. Fmajor_opcode Tuint8_t
  7401. Fminor_opcode Tuint8_t
  7402. Flength Tuint16_t
  7403. Fclient_major_version Tuint16_t
  7404. Fclient_minor_version Tuint16_t
  7405. }
  7406. type Txcb_xc_misc_get_version_reply_t = struct {
  7407. Fresponse_type Tuint8_t
  7408. Fpad0 Tuint8_t
  7409. Fsequence Tuint16_t
  7410. Flength Tuint32_t
  7411. Fserver_major_version Tuint16_t
  7412. Fserver_minor_version Tuint16_t
  7413. }
  7414. type Txcb_xc_misc_get_xid_range_cookie_t = struct {
  7415. Fsequence uint32
  7416. }
  7417. type Txcb_xc_misc_get_xid_range_request_t = struct {
  7418. Fmajor_opcode Tuint8_t
  7419. Fminor_opcode Tuint8_t
  7420. Flength Tuint16_t
  7421. }
  7422. type Txcb_xc_misc_get_xid_range_reply_t = struct {
  7423. Fresponse_type Tuint8_t
  7424. Fpad0 Tuint8_t
  7425. Fsequence Tuint16_t
  7426. Flength Tuint32_t
  7427. Fstart_id Tuint32_t
  7428. Fcount Tuint32_t
  7429. }
  7430. type Txcb_xc_misc_get_xid_list_cookie_t = struct {
  7431. Fsequence uint32
  7432. }
  7433. type Txcb_xc_misc_get_xid_list_request_t = struct {
  7434. Fmajor_opcode Tuint8_t
  7435. Fminor_opcode Tuint8_t
  7436. Flength Tuint16_t
  7437. Fcount Tuint32_t
  7438. }
  7439. type Txcb_xc_misc_get_xid_list_reply_t = struct {
  7440. Fresponse_type Tuint8_t
  7441. Fpad0 Tuint8_t
  7442. Fsequence Tuint16_t
  7443. Flength Tuint32_t
  7444. Fids_len Tuint32_t
  7445. Fpad1 [20]Tuint8_t
  7446. }
  7447. /**
  7448. * @}
  7449. */
  7450. /* Public interface */
  7451. func Xxcb_generate_id(tls *libc.TLS, c uintptr) (r Tuint32_t) {
  7452. var range1, xc_misc_reply uintptr
  7453. var ret Tuint32_t
  7454. _, _, _ = range1, ret, xc_misc_reply
  7455. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7456. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7457. }
  7458. libc.Xpthread_mutex_lock(tls, c+21020)
  7459. 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) {
  7460. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast == uint32(0) {
  7461. /* finish setting up initial range */
  7462. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
  7463. } else {
  7464. /* check for extension */
  7465. xc_misc_reply = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)))
  7466. if !(xc_misc_reply != 0) || !((*Txcb_query_extension_reply_t)(unsafe.Pointer(xc_misc_reply)).Fpresent != 0) {
  7467. libc.Xpthread_mutex_unlock(tls, c+21020)
  7468. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7469. }
  7470. /* get new range */
  7471. range1 = Xxcb_xc_misc_get_xid_range_reply(tls, c, Xxcb_xc_misc_get_xid_range(tls, c), uintptr(0))
  7472. /* XXX The latter disjunct is what the server returns
  7473. when it is out of XIDs. Sweet. */
  7474. 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) {
  7475. libc.Xpthread_mutex_unlock(tls, c+21020)
  7476. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7477. }
  7478. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id
  7479. (*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
  7480. libc.Xfree(tls, range1)
  7481. }
  7482. } else {
  7483. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast += (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
  7484. }
  7485. ret = (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast | (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase
  7486. libc.Xpthread_mutex_unlock(tls, c+21020)
  7487. return ret
  7488. }
  7489. /* Private interface */
  7490. func X_xcb_xid_init(tls *libc.TLS, c uintptr) (r int32) {
  7491. if libc.Xpthread_mutex_init(tls, c+21020, uintptr(0)) != 0 {
  7492. return 0
  7493. }
  7494. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = uint32(0)
  7495. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = uint32(0)
  7496. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_base
  7497. (*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
  7498. return int32(1)
  7499. }
  7500. func X_xcb_xid_destroy(tls *libc.TLS, c uintptr) {
  7501. libc.Xpthread_mutex_destroy(tls, c+21020)
  7502. }
  7503. type T_xcb_map = struct {
  7504. Fhead uintptr
  7505. Ftail uintptr
  7506. }
  7507. type Tnode = struct {
  7508. F__ccgo_align [0]uint32
  7509. Fnext uintptr
  7510. F__ccgo_align1 [4]byte
  7511. Fkey Tuint64_t
  7512. Fdata uintptr
  7513. F__ccgo_pad3 [4]byte
  7514. }
  7515. type T_xcb_map1 = struct {
  7516. Fhead uintptr
  7517. Ftail uintptr
  7518. }
  7519. /* Private interface */
  7520. func X_xcb_map_new(tls *libc.TLS) (r uintptr) {
  7521. var list uintptr
  7522. _ = list
  7523. list = libc.Xmalloc(tls, uint32(8))
  7524. if !(list != 0) {
  7525. return uintptr(0)
  7526. }
  7527. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = uintptr(0)
  7528. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = list
  7529. return list
  7530. }
  7531. func X_xcb_map_delete(tls *libc.TLS, list uintptr, do_free Txcb_list_free_func_t) {
  7532. var cur uintptr
  7533. _ = cur
  7534. if !(list != 0) {
  7535. return
  7536. }
  7537. for (*T_xcb_map)(unsafe.Pointer(list)).Fhead != 0 {
  7538. cur = (*T_xcb_map)(unsafe.Pointer(list)).Fhead
  7539. if do_free != 0 {
  7540. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{do_free})))(tls, (*Tnode)(unsafe.Pointer(cur)).Fdata)
  7541. }
  7542. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = (*Tnode)(unsafe.Pointer(cur)).Fnext
  7543. libc.Xfree(tls, cur)
  7544. }
  7545. libc.Xfree(tls, list)
  7546. }
  7547. func X_xcb_map_put(tls *libc.TLS, list uintptr, key Tuint64_t, data uintptr) (r int32) {
  7548. var cur uintptr
  7549. _ = cur
  7550. cur = libc.Xmalloc(tls, uint32(24))
  7551. if !(cur != 0) {
  7552. return 0
  7553. }
  7554. (*Tnode)(unsafe.Pointer(cur)).Fkey = key
  7555. (*Tnode)(unsafe.Pointer(cur)).Fdata = data
  7556. (*Tnode)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  7557. *(*uintptr)(unsafe.Pointer((*T_xcb_map)(unsafe.Pointer(list)).Ftail)) = cur
  7558. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7559. return int32(1)
  7560. }
  7561. func X_xcb_map_remove(tls *libc.TLS, list uintptr, key Tuint64_t) (r uintptr) {
  7562. var cur, ret, tmp uintptr
  7563. _, _, _ = cur, ret, tmp
  7564. cur = list
  7565. for {
  7566. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7567. break
  7568. }
  7569. if (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fkey == key {
  7570. tmp = *(*uintptr)(unsafe.Pointer(cur))
  7571. ret = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fdata
  7572. *(*uintptr)(unsafe.Pointer(cur)) = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fnext
  7573. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7574. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7575. }
  7576. libc.Xfree(tls, tmp)
  7577. return ret
  7578. }
  7579. goto _1
  7580. _1:
  7581. ;
  7582. cur = *(*uintptr)(unsafe.Pointer(cur))
  7583. }
  7584. return uintptr(0)
  7585. }
  7586. const m_AI_ADDRCONFIG = 0x20
  7587. const m_AI_ALL = 0x10
  7588. const m_AI_CANONNAME = 0x02
  7589. const m_AI_NUMERICHOST = 4
  7590. const m_AI_NUMERICSERV = 1024
  7591. const m_AI_PASSIVE = 0x01
  7592. const m_AI_V4MAPPED = 0x08
  7593. const m_HOST_NOT_FOUND = 1
  7594. const m_MSG_CTRUNC2 = 0x0008
  7595. const m_MSG_TRUNC2 = 0x0020
  7596. const m_NI_DGRAM = 0x10
  7597. const m_NI_MAXHOST = 255
  7598. const m_NI_MAXSERV = 32
  7599. const m_NI_NAMEREQD = 0x08
  7600. const m_NI_NOFQDN = 0x04
  7601. const m_NI_NUMERICHOST = 0x01
  7602. const m_NI_NUMERICSCOPE = 0x100
  7603. const m_NI_NUMERICSERV = 0x02
  7604. const m_NO_ADDRESS = "NO_DATA"
  7605. const m_NO_DATA = 4
  7606. const m_NO_RECOVERY = 3
  7607. const m_O_NONBLOCK1 = 04000
  7608. const m_SCM_RIGHTS1 = 0x01
  7609. const m_SOCK_CLOEXEC1 = 524288
  7610. const m_SOL_TCP = 6
  7611. const m_TCPI_OPT_ECN = 8
  7612. const m_TCPI_OPT_SACK = 2
  7613. const m_TCPI_OPT_TIMESTAMPS = 1
  7614. const m_TCPI_OPT_WSCALE = 4
  7615. const m_TCPOLEN_MAXSEG = 4
  7616. const m_TCPOLEN_SACK_PERMITTED = 2
  7617. const m_TCPOLEN_TIMESTAMP = 10
  7618. const m_TCPOLEN_WINDOW = 3
  7619. const m_TCPOPT_EOL = 0
  7620. const m_TCPOPT_MAXSEG = 2
  7621. const m_TCPOPT_NOP = 1
  7622. const m_TCPOPT_SACK = 5
  7623. const m_TCPOPT_SACK_PERMITTED = 4
  7624. const m_TCPOPT_TIMESTAMP = 8
  7625. const m_TCPOPT_WINDOW = 3
  7626. const m_TCP_CA_CWR = 2
  7627. const m_TCP_CA_Disorder = 1
  7628. const m_TCP_CA_Loss = 4
  7629. const m_TCP_CA_Open = 0
  7630. const m_TCP_CA_Recovery = 3
  7631. const m_TCP_CC_INFO = 26
  7632. const m_TCP_CLOSE = 7
  7633. const m_TCP_CLOSE_WAIT = 8
  7634. const m_TCP_CLOSING = 11
  7635. const m_TCP_CM_INQ = "TCP_INQ"
  7636. const m_TCP_CONGESTION = 13
  7637. const m_TCP_CORK = 3
  7638. const m_TCP_DEFER_ACCEPT = 9
  7639. const m_TCP_ESTABLISHED = 1
  7640. const m_TCP_FASTOPEN = 23
  7641. const m_TCP_FASTOPEN_CONNECT = 30
  7642. const m_TCP_FASTOPEN_KEY = 33
  7643. const m_TCP_FASTOPEN_NO_COOKIE = 34
  7644. const m_TCP_FIN_WAIT1 = 4
  7645. const m_TCP_FIN_WAIT2 = 5
  7646. const m_TCP_INFO = 11
  7647. const m_TCP_INQ = 36
  7648. const m_TCP_KEEPCNT = 6
  7649. const m_TCP_KEEPIDLE = 4
  7650. const m_TCP_KEEPINTVL = 5
  7651. const m_TCP_LAST_ACK = 9
  7652. const m_TCP_LINGER2 = 8
  7653. const m_TCP_LISTEN = 10
  7654. const m_TCP_MAXSEG = 2
  7655. const m_TCP_MD5SIG = 14
  7656. const m_TCP_MD5SIG_EXT = 32
  7657. const m_TCP_MD5SIG_FLAG_IFINDEX = 0x2
  7658. const m_TCP_MD5SIG_FLAG_PREFIX = 0x1
  7659. const m_TCP_MD5SIG_MAXKEYLEN = 80
  7660. const m_TCP_NODELAY = 1
  7661. const m_TCP_NOTSENT_LOWAT = 25
  7662. const m_TCP_QUEUE_SEQ = 21
  7663. const m_TCP_QUICKACK = 12
  7664. const m_TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT = 0x1
  7665. const m_TCP_REPAIR = 19
  7666. const m_TCP_REPAIR_OFF = 0
  7667. const m_TCP_REPAIR_ON = 1
  7668. const m_TCP_REPAIR_OPTIONS = 22
  7669. const m_TCP_REPAIR_QUEUE = 20
  7670. const m_TCP_REPAIR_WINDOW = 29
  7671. const m_TCP_SAVED_SYN = 28
  7672. const m_TCP_SAVE_SYN = 27
  7673. const m_TCP_SYNCNT = 7
  7674. const m_TCP_SYN_RECV = 3
  7675. const m_TCP_SYN_SENT = 2
  7676. const m_TCP_THIN_DUPACK = 17
  7677. const m_TCP_THIN_LINEAR_TIMEOUTS = 16
  7678. const m_TCP_TIMESTAMP = 24
  7679. const m_TCP_TIME_WAIT = 6
  7680. const m_TCP_TX_DELAY = 37
  7681. const m_TCP_ULP = 31
  7682. const m_TCP_USER_TIMEOUT = 18
  7683. const m_TCP_WINDOW_CLAMP = 10
  7684. const m_TCP_ZEROCOPY_RECEIVE = 35
  7685. const m_TH_ACK = 0x10
  7686. const m_TH_FIN = 0x01
  7687. const m_TH_PUSH = 0x08
  7688. const m_TH_RST = 0x04
  7689. const m_TH_SYN = 0x02
  7690. const m_TH_URG = 0x20
  7691. const m_TRY_AGAIN = 2
  7692. type Tmax_align_t = struct {
  7693. F__ccgo_align [0]uint32
  7694. F__ll int64
  7695. F__ld float64
  7696. }
  7697. type Tptrdiff_t = int32
  7698. type Tsockaddr_un = struct {
  7699. Fsun_family Tsa_family_t
  7700. Fsun_path [108]uint8
  7701. }
  7702. const _TCP_NLA_PAD = 0
  7703. const _TCP_NLA_BUSY = 1
  7704. const _TCP_NLA_RWND_LIMITED = 2
  7705. const _TCP_NLA_SNDBUF_LIMITED = 3
  7706. const _TCP_NLA_DATA_SEGS_OUT = 4
  7707. const _TCP_NLA_TOTAL_RETRANS = 5
  7708. const _TCP_NLA_PACING_RATE = 6
  7709. const _TCP_NLA_DELIVERY_RATE = 7
  7710. const _TCP_NLA_SND_CWND = 8
  7711. const _TCP_NLA_REORDERING = 9
  7712. const _TCP_NLA_MIN_RTT = 10
  7713. const _TCP_NLA_RECUR_RETRANS = 11
  7714. const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12
  7715. const _TCP_NLA_SNDQ_SIZE = 13
  7716. const _TCP_NLA_CA_STATE = 14
  7717. const _TCP_NLA_SND_SSTHRESH = 15
  7718. const _TCP_NLA_DELIVERED = 16
  7719. const _TCP_NLA_DELIVERED_CE = 17
  7720. const _TCP_NLA_BYTES_SENT = 18
  7721. const _TCP_NLA_BYTES_RETRANS = 19
  7722. const _TCP_NLA_DSACK_DUPS = 20
  7723. const _TCP_NLA_REORD_SEEN = 21
  7724. const _TCP_NLA_SRTT = 22
  7725. const _TCP_NLA_TIMEOUT_REHASH = 23
  7726. const _TCP_NLA_BYTES_NOTSENT = 24
  7727. const _TCP_NLA_EDT = 25
  7728. const _TCP_NLA_TTL = 26
  7729. type Ttcp_seq = uint32
  7730. type Ttcphdr = struct {
  7731. F__ccgo0_0 struct {
  7732. F__ccgo1_0 [0]struct {
  7733. Fth_sport Tuint16_t
  7734. Fth_dport Tuint16_t
  7735. Fth_seq Tuint32_t
  7736. Fth_ack Tuint32_t
  7737. F__ccgo12 uint8
  7738. Fth_flags Tuint8_t
  7739. Fth_win Tuint16_t
  7740. Fth_sum Tuint16_t
  7741. Fth_urp Tuint16_t
  7742. }
  7743. F__ccgo0_0 struct {
  7744. Fsource Tuint16_t
  7745. Fdest Tuint16_t
  7746. Fseq Tuint32_t
  7747. Fack_seq Tuint32_t
  7748. F__ccgo12 uint16
  7749. Fwindow Tuint16_t
  7750. Fcheck Tuint16_t
  7751. Furg_ptr Tuint16_t
  7752. }
  7753. }
  7754. }
  7755. type _tcp_fastopen_client_fail = int32
  7756. const _TFO_STATUS_UNSPEC = 0
  7757. const _TFO_COOKIE_UNAVAILABLE = 1
  7758. const _TFO_DATA_NOT_ACKED = 2
  7759. const _TFO_SYN_RETRANSMITTED = 3
  7760. type Ttcp_info = struct {
  7761. F__ccgo_align [0]uint32
  7762. Ftcpi_state Tuint8_t
  7763. Ftcpi_ca_state Tuint8_t
  7764. Ftcpi_retransmits Tuint8_t
  7765. Ftcpi_probes Tuint8_t
  7766. Ftcpi_backoff Tuint8_t
  7767. Ftcpi_options Tuint8_t
  7768. F__ccgo6 uint8
  7769. F__ccgo7 uint8
  7770. Ftcpi_rto Tuint32_t
  7771. Ftcpi_ato Tuint32_t
  7772. Ftcpi_snd_mss Tuint32_t
  7773. Ftcpi_rcv_mss Tuint32_t
  7774. Ftcpi_unacked Tuint32_t
  7775. Ftcpi_sacked Tuint32_t
  7776. Ftcpi_lost Tuint32_t
  7777. Ftcpi_retrans Tuint32_t
  7778. Ftcpi_fackets Tuint32_t
  7779. Ftcpi_last_data_sent Tuint32_t
  7780. Ftcpi_last_ack_sent Tuint32_t
  7781. Ftcpi_last_data_recv Tuint32_t
  7782. Ftcpi_last_ack_recv Tuint32_t
  7783. Ftcpi_pmtu Tuint32_t
  7784. Ftcpi_rcv_ssthresh Tuint32_t
  7785. Ftcpi_rtt Tuint32_t
  7786. Ftcpi_rttvar Tuint32_t
  7787. Ftcpi_snd_ssthresh Tuint32_t
  7788. Ftcpi_snd_cwnd Tuint32_t
  7789. Ftcpi_advmss Tuint32_t
  7790. Ftcpi_reordering Tuint32_t
  7791. Ftcpi_rcv_rtt Tuint32_t
  7792. Ftcpi_rcv_space Tuint32_t
  7793. Ftcpi_total_retrans Tuint32_t
  7794. Ftcpi_pacing_rate Tuint64_t
  7795. Ftcpi_max_pacing_rate Tuint64_t
  7796. Ftcpi_bytes_acked Tuint64_t
  7797. Ftcpi_bytes_received Tuint64_t
  7798. Ftcpi_segs_out Tuint32_t
  7799. Ftcpi_segs_in Tuint32_t
  7800. Ftcpi_notsent_bytes Tuint32_t
  7801. Ftcpi_min_rtt Tuint32_t
  7802. Ftcpi_data_segs_in Tuint32_t
  7803. Ftcpi_data_segs_out Tuint32_t
  7804. Ftcpi_delivery_rate Tuint64_t
  7805. Ftcpi_busy_time Tuint64_t
  7806. Ftcpi_rwnd_limited Tuint64_t
  7807. Ftcpi_sndbuf_limited Tuint64_t
  7808. Ftcpi_delivered Tuint32_t
  7809. Ftcpi_delivered_ce Tuint32_t
  7810. Ftcpi_bytes_sent Tuint64_t
  7811. Ftcpi_bytes_retrans Tuint64_t
  7812. Ftcpi_dsack_dups Tuint32_t
  7813. Ftcpi_reord_seen Tuint32_t
  7814. Ftcpi_rcv_ooopack Tuint32_t
  7815. Ftcpi_snd_wnd Tuint32_t
  7816. }
  7817. type Ttcp_md5sig = struct {
  7818. Ftcpm_addr Tsockaddr_storage
  7819. Ftcpm_flags Tuint8_t
  7820. Ftcpm_prefixlen Tuint8_t
  7821. Ftcpm_keylen Tuint16_t
  7822. Ftcpm_ifindex int32
  7823. Ftcpm_key [80]Tuint8_t
  7824. }
  7825. type Ttcp_diag_md5sig = struct {
  7826. Ftcpm_family Tuint8_t
  7827. Ftcpm_prefixlen Tuint8_t
  7828. Ftcpm_keylen Tuint16_t
  7829. Ftcpm_addr [4]Tuint32_t
  7830. Ftcpm_key [80]Tuint8_t
  7831. }
  7832. type Ttcp_repair_window = struct {
  7833. Fsnd_wl1 Tuint32_t
  7834. Fsnd_wnd Tuint32_t
  7835. Fmax_window Tuint32_t
  7836. Frcv_wnd Tuint32_t
  7837. Frcv_wup Tuint32_t
  7838. }
  7839. type Ttcp_zerocopy_receive = struct {
  7840. F__ccgo_align [0]uint32
  7841. Faddress Tuint64_t
  7842. Flength Tuint32_t
  7843. Frecv_skip_hint Tuint32_t
  7844. Finq Tuint32_t
  7845. Ferr Tint32_t
  7846. Fcopybuf_address Tuint64_t
  7847. Fcopybuf_len Tint32_t
  7848. Fflags Tuint32_t
  7849. Fmsg_control Tuint64_t
  7850. Fmsg_controllen Tuint64_t
  7851. Fmsg_flags Tuint32_t
  7852. Freserved Tuint32_t
  7853. }
  7854. type Taddrinfo = struct {
  7855. Fai_flags int32
  7856. Fai_family int32
  7857. Fai_socktype int32
  7858. Fai_protocol int32
  7859. Fai_addrlen Tsocklen_t
  7860. Fai_addr uintptr
  7861. Fai_canonname uintptr
  7862. Fai_next uintptr
  7863. }
  7864. type Tnetent = struct {
  7865. Fn_name uintptr
  7866. Fn_aliases uintptr
  7867. Fn_addrtype int32
  7868. Fn_net Tuint32_t
  7869. }
  7870. type Thostent = struct {
  7871. Fh_name uintptr
  7872. Fh_aliases uintptr
  7873. Fh_addrtype int32
  7874. Fh_length int32
  7875. Fh_addr_list uintptr
  7876. }
  7877. type Tservent = struct {
  7878. Fs_name uintptr
  7879. Fs_aliases uintptr
  7880. Fs_port int32
  7881. Fs_proto uintptr
  7882. }
  7883. type Tprotoent = struct {
  7884. Fp_name uintptr
  7885. Fp_aliases uintptr
  7886. Fp_proto int32
  7887. }
  7888. func Xxcb_popcount(tls *libc.TLS, mask Tuint32_t) (r int32) {
  7889. var y Tuint32_t
  7890. _ = y
  7891. y = mask >> libc.Int32FromInt32(1) & uint32(033333333333)
  7892. y = mask - y - y>>libc.Int32FromInt32(1)&uint32(033333333333)
  7893. return libc.Int32FromUint32((y + y>>libc.Int32FromInt32(3)) & uint32(030707070707) % uint32(077))
  7894. }
  7895. func Xxcb_sumof(tls *libc.TLS, list uintptr, len1 int32) (r int32) {
  7896. var i, s int32
  7897. _, _ = i, s
  7898. s = 0
  7899. i = 0
  7900. for {
  7901. if !(i < len1) {
  7902. break
  7903. }
  7904. s += libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(list)))
  7905. list++
  7906. goto _1
  7907. _1:
  7908. ;
  7909. i++
  7910. }
  7911. return s
  7912. }
  7913. func __xcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7914. bp := tls.Alloc(16)
  7915. defer tls.Free(16)
  7916. var colon, slash uintptr
  7917. var display, len1, screen int32
  7918. var _ /* dot at bp+0 */ uintptr
  7919. var _ /* end at bp+4 */ uintptr
  7920. _, _, _, _, _ = colon, display, len1, screen, slash
  7921. if !(name != 0) || !(*(*uint8)(unsafe.Pointer(name)) != 0) {
  7922. name = libc.Xgetenv(tls, __ccgo_ts+4)
  7923. }
  7924. if !(name != 0) {
  7925. return 0
  7926. }
  7927. slash = libc.Xstrrchr(tls, name, int32('/'))
  7928. if slash != 0 {
  7929. len1 = int32(slash) - int32(name)
  7930. if protocol != 0 {
  7931. *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xmalloc(tls, libc.Uint32FromInt32(len1+int32(1)))
  7932. if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
  7933. return 0
  7934. }
  7935. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(protocol)), name, libc.Uint32FromInt32(len1))
  7936. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(protocol)) + uintptr(len1))) = uint8('\000')
  7937. }
  7938. name = slash + uintptr(1)
  7939. } else {
  7940. if protocol != 0 {
  7941. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7942. }
  7943. }
  7944. colon = libc.Xstrrchr(tls, name, int32(':'))
  7945. if !(colon != 0) {
  7946. goto error_out
  7947. }
  7948. len1 = int32(colon) - int32(name)
  7949. colon++
  7950. display = libc.Int32FromUint32(libc.Xstrtoul(tls, colon, bp, int32(10)))
  7951. if *(*uintptr)(unsafe.Pointer(bp)) == colon {
  7952. goto error_out
  7953. }
  7954. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('\000') {
  7955. screen = 0
  7956. } else {
  7957. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('.') {
  7958. goto error_out
  7959. }
  7960. *(*uintptr)(unsafe.Pointer(bp))++
  7961. screen = libc.Int32FromUint32(libc.Xstrtoul(tls, *(*uintptr)(unsafe.Pointer(bp)), bp+4, int32(10)))
  7962. if *(*uintptr)(unsafe.Pointer(bp + 4)) == *(*uintptr)(unsafe.Pointer(bp)) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 4))))) != int32('\000') {
  7963. goto error_out
  7964. }
  7965. }
  7966. /* At this point, the display string is fully parsed and valid, but
  7967. * the caller's memory is untouched. */
  7968. *(*uintptr)(unsafe.Pointer(host)) = libc.Xmalloc(tls, libc.Uint32FromInt32(len1+int32(1)))
  7969. if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
  7970. goto error_out
  7971. }
  7972. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(host)), name, libc.Uint32FromInt32(len1))
  7973. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(host)) + uintptr(len1))) = uint8('\000')
  7974. *(*int32)(unsafe.Pointer(displayp)) = display
  7975. if screenp != 0 {
  7976. *(*int32)(unsafe.Pointer(screenp)) = screen
  7977. }
  7978. return int32(1)
  7979. goto error_out
  7980. error_out:
  7981. ;
  7982. if protocol != 0 {
  7983. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(protocol)))
  7984. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7985. }
  7986. return 0
  7987. }
  7988. func Xxcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7989. return __xcb_parse_display(tls, name, host, libc.UintptrFromInt32(0), displayp, screenp)
  7990. }
  7991. func __xcb_open(tls *libc.TLS, host uintptr, protocol uintptr, display int32) (r int32) {
  7992. bp := tls.Alloc(32)
  7993. defer tls.Free(32)
  7994. var actual_filelen, fd int32
  7995. var base, file uintptr
  7996. var filelen Tsize_t
  7997. var port, port1 uint16
  7998. var v1 uint32
  7999. _, _, _, _, _, _, _, _ = actual_filelen, base, fd, file, filelen, port, port1, v1
  8000. base = uintptr(unsafe.Pointer(&_unix_base))
  8001. file = libc.UintptrFromInt32(0)
  8002. /* If protocol or host is "unix", fall through to Unix socket code below */
  8003. 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 {
  8004. /* display specifies TCP */
  8005. port = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  8006. return __xcb_open_tcp(tls, host, protocol, port)
  8007. }
  8008. filelen = libc.Xstrlen(tls, base) + uint32(1) + libc.Uint32FromInt64(4)*libc.Uint32FromInt32(3) + uint32(1)
  8009. file = libc.Xmalloc(tls, filelen)
  8010. if file == libc.UintptrFromInt32(0) {
  8011. return -int32(1)
  8012. }
  8013. /* display specifies Unix socket */
  8014. actual_filelen = libc.X__builtin_snprintf(tls, file, filelen, __ccgo_ts+17, libc.VaList(bp+8, base, display))
  8015. if actual_filelen < 0 {
  8016. libc.Xfree(tls, file)
  8017. return -int32(1)
  8018. }
  8019. /* snprintf may truncate the file */
  8020. if libc.Uint32FromInt32(actual_filelen) < filelen-uint32(1) {
  8021. v1 = libc.Uint32FromInt32(actual_filelen)
  8022. } else {
  8023. v1 = filelen - uint32(1)
  8024. }
  8025. filelen = v1
  8026. fd = __xcb_open_abstract(tls, protocol, file, filelen)
  8027. 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) {
  8028. libc.Xfree(tls, file)
  8029. return fd
  8030. }
  8031. fd = __xcb_open_unix(tls, protocol, file)
  8032. libc.Xfree(tls, file)
  8033. if fd < 0 && !(protocol != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  8034. port1 = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  8035. fd = __xcb_open_tcp(tls, host, protocol, port1)
  8036. }
  8037. return fd
  8038. return -int32(1) /* if control reaches here then something has gone wrong */
  8039. }
  8040. var _unix_base = [17]uint8{'/', 't', 'm', 'p', '/', '.', 'X', '1', '1', '-', 'u', 'n', 'i', 'x', '/', 'X'}
  8041. func __xcb_socket(tls *libc.TLS, family int32, type1 int32, proto int32) (r int32) {
  8042. bp := tls.Alloc(16)
  8043. defer tls.Free(16)
  8044. var fd int32
  8045. _ = fd
  8046. fd = libc.Xsocket(tls, family, type1|int32(m_SOCK_CLOEXEC1), proto)
  8047. if fd == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINVAL) {
  8048. fd = libc.Xsocket(tls, family, type1, proto)
  8049. if fd >= 0 {
  8050. libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
  8051. }
  8052. }
  8053. return fd
  8054. }
  8055. func __xcb_do_connect(tls *libc.TLS, fd int32, addr uintptr, addrlen int32) (r int32) {
  8056. bp := tls.Alloc(16)
  8057. defer tls.Free(16)
  8058. var _ /* on at bp+0 */ int32
  8059. *(*int32)(unsafe.Pointer(bp)) = int32(1)
  8060. if fd < 0 {
  8061. return -int32(1)
  8062. }
  8063. libc.Xsetsockopt(tls, fd, int32(m_IPPROTO_TCP), int32(m_TCP_NODELAY), bp, uint32(4))
  8064. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_KEEPALIVE), bp, uint32(4))
  8065. return libc.Xconnect(tls, fd, addr, libc.Uint32FromInt32(addrlen))
  8066. }
  8067. func __xcb_open_tcp(tls *libc.TLS, host uintptr, protocol uintptr, port uint16) (r int32) {
  8068. bp := tls.Alloc(64)
  8069. defer tls.Free(64)
  8070. var addr, bracket, v1 uintptr
  8071. var fd int32
  8072. var v2 bool
  8073. var _ /* hints at bp+0 */ Taddrinfo
  8074. var _ /* results at bp+44 */ uintptr
  8075. var _ /* service at bp+36 */ [6]uint8
  8076. _, _, _, _, _ = addr, bracket, fd, v1, v2
  8077. fd = -int32(1)
  8078. 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 {
  8079. return -int32(1)
  8080. }
  8081. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  8082. host = __ccgo_ts + 37
  8083. }
  8084. libc.Xmemset(tls, bp, 0, uint32(32))
  8085. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICSERV)
  8086. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = m_PF_UNSPEC
  8087. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_socktype = int32(m_SOCK_STREAM)
  8088. /* Allow IPv6 addresses enclosed in brackets. */
  8089. if v2 = libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('['); v2 {
  8090. v1 = libc.Xstrrchr(tls, host, int32(']'))
  8091. bracket = v1
  8092. }
  8093. if v2 && v1 != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bracket + 1))) == int32('\000') {
  8094. *(*uint8)(unsafe.Pointer(bracket)) = uint8('\000')
  8095. host++
  8096. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICHOST)
  8097. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = int32(m_PF_INET6)
  8098. }
  8099. libc.X__builtin_snprintf(tls, bp+36, uint32(6), __ccgo_ts+47, libc.VaList(bp+56, libc.Int32FromUint16(port)))
  8100. if libc.Xgetaddrinfo(tls, host, bp+36, bp, bp+44) != 0 {
  8101. /* FIXME: use gai_strerror, and fill in error connection */
  8102. return -int32(1)
  8103. }
  8104. addr = *(*uintptr)(unsafe.Pointer(bp + 44))
  8105. for {
  8106. if !(addr != 0) {
  8107. break
  8108. }
  8109. fd = __xcb_socket(tls, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_family, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_socktype, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_protocol)
  8110. if __xcb_do_connect(tls, fd, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_addr, libc.Int32FromUint32((*Taddrinfo)(unsafe.Pointer(addr)).Fai_addrlen)) >= 0 {
  8111. break
  8112. }
  8113. libc.Xclose(tls, fd)
  8114. fd = -int32(1)
  8115. goto _3
  8116. _3:
  8117. ;
  8118. addr = (*Taddrinfo)(unsafe.Pointer(addr)).Fai_next
  8119. }
  8120. libc.Xfreeaddrinfo(tls, *(*uintptr)(unsafe.Pointer(bp + 44)))
  8121. return fd
  8122. }
  8123. func __xcb_open_unix(tls *libc.TLS, protocol uintptr, file uintptr) (r int32) {
  8124. bp := tls.Alloc(128)
  8125. defer tls.Free(128)
  8126. var fd int32
  8127. var _ /* addr at bp+0 */ Tsockaddr_un
  8128. var _ /* len at bp+112 */ Tsocklen_t
  8129. var _ /* val at bp+116 */ int32
  8130. _ = fd
  8131. *(*Tsocklen_t)(unsafe.Pointer(bp + 112)) = uint32(4)
  8132. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8133. return -int32(1)
  8134. }
  8135. libc.Xstrcpy(tls, bp+2, file)
  8136. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8137. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8138. if fd == -int32(1) {
  8139. return -int32(1)
  8140. }
  8141. 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) {
  8142. *(*int32)(unsafe.Pointer(bp + 116)) = libc.Int32FromInt32(64) * libc.Int32FromInt32(1024)
  8143. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, uint32(4))
  8144. }
  8145. if libc.Xconnect(tls, fd, bp, uint32(110)) == -int32(1) {
  8146. libc.Xclose(tls, fd)
  8147. return -int32(1)
  8148. }
  8149. return fd
  8150. }
  8151. func __xcb_open_abstract(tls *libc.TLS, protocol uintptr, file uintptr, filelen Tsize_t) (r int32) {
  8152. bp := tls.Alloc(112)
  8153. defer tls.Free(112)
  8154. var fd int32
  8155. var namelen Tsocklen_t
  8156. var _ /* addr at bp+0 */ Tsockaddr_un
  8157. _, _ = fd, namelen
  8158. *(*Tsockaddr_un)(unsafe.Pointer(bp)) = Tsockaddr_un{}
  8159. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8160. return -int32(1)
  8161. }
  8162. libc.Xstrcpy(tls, bp+2+uintptr(1), file)
  8163. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8164. namelen = uint32(libc.UintptrFromInt32(0)+2) + libc.Uint32FromInt32(1) + filelen
  8165. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8166. if fd == -int32(1) {
  8167. return -int32(1)
  8168. }
  8169. if libc.Xconnect(tls, fd, bp, namelen) == -int32(1) {
  8170. libc.Xclose(tls, fd)
  8171. return -int32(1)
  8172. }
  8173. return fd
  8174. }
  8175. func Xxcb_connect(tls *libc.TLS, displayname uintptr, screenp uintptr) (r uintptr) {
  8176. return Xxcb_connect_to_display_with_auth_info(tls, displayname, libc.UintptrFromInt32(0), screenp)
  8177. }
  8178. func Xxcb_connect_to_display_with_auth_info(tls *libc.TLS, displayname uintptr, auth uintptr, screenp uintptr) (r uintptr) {
  8179. bp := tls.Alloc(32)
  8180. defer tls.Free(32)
  8181. var c uintptr
  8182. var fd, parsed int32
  8183. var _ /* display at bp+0 */ int32
  8184. var _ /* host at bp+4 */ uintptr
  8185. var _ /* ourauth at bp+12 */ Txcb_auth_info_t
  8186. var _ /* protocol at bp+8 */ uintptr
  8187. _, _, _ = c, fd, parsed
  8188. *(*int32)(unsafe.Pointer(bp)) = 0
  8189. *(*uintptr)(unsafe.Pointer(bp + 4)) = libc.UintptrFromInt32(0)
  8190. *(*uintptr)(unsafe.Pointer(bp + 8)) = libc.UintptrFromInt32(0)
  8191. parsed = __xcb_parse_display(tls, displayname, bp+4, bp+8, bp, screenp)
  8192. if !(parsed != 0) {
  8193. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_PARSE_ERR))
  8194. goto out
  8195. }
  8196. fd = __xcb_open(tls, *(*uintptr)(unsafe.Pointer(bp + 4)), *(*uintptr)(unsafe.Pointer(bp + 8)), *(*int32)(unsafe.Pointer(bp)))
  8197. if fd == -int32(1) {
  8198. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  8199. goto out
  8200. }
  8201. if auth != 0 {
  8202. c = Xxcb_connect_to_fd(tls, fd, auth)
  8203. goto out
  8204. }
  8205. if X_xcb_get_auth_info(tls, fd, bp+12, *(*int32)(unsafe.Pointer(bp))) != 0 {
  8206. c = Xxcb_connect_to_fd(tls, fd, bp+12)
  8207. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 12))).Fname)
  8208. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 12))).Fdata)
  8209. } else {
  8210. c = Xxcb_connect_to_fd(tls, fd, uintptr(0))
  8211. }
  8212. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  8213. goto out
  8214. }
  8215. /* Make sure requested screen number is in bounds for this server */
  8216. 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) {
  8217. Xxcb_disconnect(tls, c)
  8218. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_INVALID_SCREEN))
  8219. goto out
  8220. }
  8221. goto out
  8222. out:
  8223. ;
  8224. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 4)))
  8225. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
  8226. return c
  8227. }
  8228. const m_AUTH_PROTO_MIT_MAGIC_COOKIE = "MIT-MAGIC-COOKIE-1"
  8229. const m_AUTH_PROTO_XDM_AUTHORIZATION = "XDM-AUTHORIZATION-1"
  8230. const m_CANBSIZ = 255
  8231. const m_DEV_BSIZE = 512
  8232. const m_FALSE = 0
  8233. const m_FUNCPROTO = 15
  8234. const m_FamilyKrb5Principal = 253
  8235. const m_FamilyLocal = 256
  8236. const m_FamilyLocalHost = 252
  8237. const m_FamilyNetname = 254
  8238. const m_FamilyWild = 65535
  8239. const m_INITIAL_SOCKNAME_SLACK = 108
  8240. const m_ITIMER_PROF = 2
  8241. const m_ITIMER_REAL = 0
  8242. const m_ITIMER_VIRTUAL = 1
  8243. const m_LOCK_ERROR = 1
  8244. const m_LOCK_SUCCESS = 0
  8245. const m_LOCK_TIMEOUT = 2
  8246. const m_MAXHOSTNAMELEN = 64
  8247. const m_MAXNAMLEN = 255
  8248. const m_MAXPATHLEN = 4096
  8249. const m_MAXSYMLINKS = 20
  8250. const m_NBBY = 8
  8251. const m_NCARGS = 131072
  8252. const m_NGROUPS = 32
  8253. const m_NOFILE = 256
  8254. const m_NeedFunctionPrototypes = 1
  8255. const m_NeedNestedPrototypes = 1
  8256. const m_NeedVarargsPrototypes = 1
  8257. const m_NeedWidePrototypes = 0
  8258. const m_PRIO_MAX = 20
  8259. const m_PRIO_PGRP = 1
  8260. const m_PRIO_PROCESS = 0
  8261. const m_PRIO_USER = 2
  8262. const m_RLIMIT_AS = 9
  8263. const m_RLIMIT_CORE = 4
  8264. const m_RLIMIT_CPU = 0
  8265. const m_RLIMIT_DATA = 2
  8266. const m_RLIMIT_FSIZE = 1
  8267. const m_RLIMIT_LOCKS = 10
  8268. const m_RLIMIT_MEMLOCK = 8
  8269. const m_RLIMIT_MSGQUEUE = 12
  8270. const m_RLIMIT_NICE = 13
  8271. const m_RLIMIT_NLIMITS = 16
  8272. const m_RLIMIT_NOFILE = 7
  8273. const m_RLIMIT_NPROC = 6
  8274. const m_RLIMIT_RSS = 5
  8275. const m_RLIMIT_RTPRIO = 14
  8276. const m_RLIMIT_RTTIME = 15
  8277. const m_RLIMIT_SIGPENDING = 11
  8278. const m_RLIMIT_STACK = 3
  8279. const m_RLIM_NLIMITS = "RLIMIT_NLIMITS"
  8280. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  8281. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  8282. const m_RUSAGE_SELF = 0
  8283. const m_RUSAGE_THREAD = 1
  8284. const m_SOCK_CLOEXEC2 = 02000000
  8285. const m_TRUE = 1
  8286. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  8287. const m_XDM_KA_RTX_LIMIT = 4
  8288. const m_XDM_MAX_MSGLEN = 8192
  8289. const m_XDM_MAX_RTX = 32
  8290. const m_XDM_MIN_RTX = 2
  8291. const m_XDM_PROTOCOL_VERSION = 1
  8292. const m_XDM_RTX_LIMIT = 7
  8293. const m_XDM_UDP_PORT = 177
  8294. const m_XMD_H = 1
  8295. const m__X_INLINE = "inline"
  8296. const m__X_RESTRICT_KYWD = "restrict"
  8297. const m__Xconst = "const"
  8298. const m_prlimit64 = "prlimit"
  8299. type TXauth = struct {
  8300. Ffamily uint16
  8301. Faddress_length uint16
  8302. Faddress uintptr
  8303. Fnumber_length uint16
  8304. Fnumber uintptr
  8305. Fname_length uint16
  8306. Fname uintptr
  8307. Fdata_length uint16
  8308. Fdata uintptr
  8309. }
  8310. type Txauth = TXauth
  8311. type Titimerval = struct {
  8312. F__ccgo_align [0]uint32
  8313. Fit_interval Ttimeval
  8314. Fit_value Ttimeval
  8315. }
  8316. type Ttimezone = struct {
  8317. Ftz_minuteswest int32
  8318. Ftz_dsttime int32
  8319. }
  8320. type Trlim_t = uint64
  8321. type Trlimit = struct {
  8322. F__ccgo_align [0]uint32
  8323. Frlim_cur Trlim_t
  8324. Frlim_max Trlim_t
  8325. }
  8326. type Trusage = struct {
  8327. F__ccgo_align [0]uint32
  8328. Fru_utime Ttimeval
  8329. Fru_stime Ttimeval
  8330. Fru_maxrss int32
  8331. Fru_ixrss int32
  8332. Fru_idrss int32
  8333. Fru_isrss int32
  8334. Fru_minflt int32
  8335. Fru_majflt int32
  8336. Fru_nswap int32
  8337. Fru_inblock int32
  8338. Fru_oublock int32
  8339. Fru_msgsnd int32
  8340. Fru_msgrcv int32
  8341. Fru_nsignals int32
  8342. Fru_nvcsw int32
  8343. Fru_nivcsw int32
  8344. F__reserved [16]int32
  8345. }
  8346. type TINT32 = int32
  8347. type TINT16 = int16
  8348. type TINT8 = int8
  8349. type TCARD64 = uint64
  8350. type TCARD32 = uint32
  8351. type TCARD16 = uint16
  8352. type TCARD8 = uint8
  8353. type TBITS32 = uint32
  8354. type TBITS16 = uint16
  8355. type TBYTE = uint8
  8356. type TBOOL = uint8
  8357. type TxdmOpCode = int32
  8358. const _BROADCAST_QUERY = 1
  8359. const _QUERY = 2
  8360. const _INDIRECT_QUERY = 3
  8361. const _FORWARD_QUERY = 4
  8362. const _WILLING = 5
  8363. const _UNWILLING = 6
  8364. const _REQUEST = 7
  8365. const _ACCEPT = 8
  8366. const _DECLINE = 9
  8367. const _MANAGE = 10
  8368. const _REFUSE = 11
  8369. const _FAILED = 12
  8370. const _KEEPALIVE = 13
  8371. const _ALIVE = 14
  8372. type Txdmcp_states = int32
  8373. const _XDM_QUERY = 0
  8374. const _XDM_BROADCAST = 1
  8375. const _XDM_INDIRECT = 2
  8376. const _XDM_COLLECT_QUERY = 3
  8377. const _XDM_COLLECT_BROADCAST_QUERY = 4
  8378. const _XDM_COLLECT_INDIRECT_QUERY = 5
  8379. const _XDM_START_CONNECTION = 6
  8380. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  8381. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  8382. const _XDM_MANAGE = 9
  8383. const _XDM_RUN_SESSION = 10
  8384. const _XDM_OFF = 11
  8385. const _XDM_AWAIT_USER_INPUT = 12
  8386. const _XDM_KEEPALIVE = 13
  8387. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  8388. const _XDM_KEEP_ME_LAST = 15
  8389. type TCARD8Ptr = uintptr
  8390. type TCARD16Ptr = uintptr
  8391. type TCARD32Ptr = uintptr
  8392. type TARRAY8 = struct {
  8393. Flength TCARD16
  8394. Fdata TCARD8Ptr
  8395. }
  8396. type T_ARRAY8 = TARRAY8
  8397. type TARRAY8Ptr = uintptr
  8398. type TARRAY16 = struct {
  8399. Flength TCARD8
  8400. Fdata TCARD16Ptr
  8401. }
  8402. type T_ARRAY16 = TARRAY16
  8403. type TARRAY16Ptr = uintptr
  8404. type TARRAY32 = struct {
  8405. Flength TCARD8
  8406. Fdata TCARD32Ptr
  8407. }
  8408. type T_ARRAY32 = TARRAY32
  8409. type TARRAY32Ptr = uintptr
  8410. type TARRAYofARRAY8 = struct {
  8411. Flength TCARD8
  8412. Fdata TARRAY8Ptr
  8413. }
  8414. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  8415. type TARRAYofARRAY8Ptr = uintptr
  8416. type TXdmcpHeader = struct {
  8417. Fversion TCARD16
  8418. Fopcode TCARD16
  8419. Flength TCARD16
  8420. }
  8421. type T_XdmcpHeader = TXdmcpHeader
  8422. type TXdmcpHeaderPtr = uintptr
  8423. type TXdmcpBuffer = struct {
  8424. Fdata uintptr
  8425. Fsize int32
  8426. Fpointer int32
  8427. Fcount int32
  8428. }
  8429. type T_XdmcpBuffer = TXdmcpBuffer
  8430. type TXdmcpBufferPtr = uintptr
  8431. type TXdmAuthKeyRec = struct {
  8432. Fdata [8]TBYTE
  8433. }
  8434. type T_XdmAuthKey = TXdmAuthKeyRec
  8435. type TXdmAuthKeyPtr = uintptr
  8436. type TXdmcpNetaddr = uintptr
  8437. type _auth_protos = int32
  8438. const _AUTH_XA1 = 0
  8439. const _AUTH_MC1 = 1
  8440. const _N_AUTH_PROTOS = 2
  8441. var _authnames = [2]uintptr{
  8442. 0: __ccgo_ts + 51,
  8443. 1: __ccgo_ts + 71,
  8444. }
  8445. var _authnameslen = [2]int32{
  8446. 0: libc.Int32FromUint32(libc.Uint32FromInt64(20) - libc.Uint32FromInt32(1)),
  8447. 1: libc.Int32FromUint32(libc.Uint32FromInt64(19) - libc.Uint32FromInt32(1)),
  8448. }
  8449. func _memdup(tls *libc.TLS, dst uintptr, src uintptr, len1 Tsize_t) (r Tsize_t) {
  8450. if len1 != 0 {
  8451. *(*uintptr)(unsafe.Pointer(dst)) = libc.Xmalloc(tls, len1)
  8452. } else {
  8453. *(*uintptr)(unsafe.Pointer(dst)) = uintptr(0)
  8454. }
  8455. if !(*(*uintptr)(unsafe.Pointer(dst)) != 0) {
  8456. return uint32(0)
  8457. }
  8458. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(dst)), src, len1)
  8459. return len1
  8460. }
  8461. func _authname_match(tls *libc.TLS, kind _auth_protos, name uintptr, namelen Tsize_t) (r int32) {
  8462. if libc.Uint32FromInt32(_authnameslen[kind]) != namelen {
  8463. return 0
  8464. }
  8465. if libc.Xmemcmp(tls, _authnames[kind], name, namelen) != 0 {
  8466. return 0
  8467. }
  8468. return int32(1)
  8469. }
  8470. func _get_authptr(tls *libc.TLS, sockname uintptr, display int32) (r uintptr) {
  8471. bp := tls.Alloc(320)
  8472. defer tls.Free(320)
  8473. var addr uintptr
  8474. var addrlen, dispbuflen int32
  8475. var family uint16
  8476. var v1 uint32
  8477. var _ /* dispbuf at bp+256 */ [40]uint8
  8478. var _ /* hostnamebuf at bp+0 */ [256]uint8
  8479. _, _, _, _, _ = addr, addrlen, dispbuflen, family, v1
  8480. addr = uintptr(0)
  8481. addrlen = 0
  8482. family = libc.Uint16FromInt32(libc.Int32FromInt32(m_FamilyLocal)) /* 256 */
  8483. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8484. case int32(m_PF_INET6):
  8485. addr = sockname + 8
  8486. addrlen = int32(16)
  8487. 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)) {
  8488. 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)) {
  8489. family = uint16(_XCB_FAMILY_INTERNET_6)
  8490. }
  8491. break
  8492. }
  8493. addr += uintptr(12)
  8494. /* if v4-mapped, fall through. */
  8495. fallthrough
  8496. case int32(m_PF_INET):
  8497. if !(addr != 0) {
  8498. addr = sockname + 4
  8499. }
  8500. addrlen = int32(4)
  8501. if *(*Tin_addr_t)(unsafe.Pointer(addr)) != libc.Xhtonl(tls, libc.Uint32FromInt32(0x7f000001)) {
  8502. family = uint16(_XCB_FAMILY_INTERNET)
  8503. }
  8504. case int32(m_PF_LOCAL):
  8505. default:
  8506. return uintptr(0) /* cannot authenticate this family */
  8507. }
  8508. dispbuflen = libc.X__builtin_snprintf(tls, bp+256, uint32(40), __ccgo_ts+90, libc.VaList(bp+304, display))
  8509. if dispbuflen < 0 {
  8510. return uintptr(0)
  8511. }
  8512. /* snprintf may have truncate our text */
  8513. if libc.Uint32FromInt32(dispbuflen) < libc.Uint32FromInt64(40)-libc.Uint32FromInt32(1) {
  8514. v1 = libc.Uint32FromInt32(dispbuflen)
  8515. } else {
  8516. v1 = libc.Uint32FromInt64(40) - libc.Uint32FromInt32(1)
  8517. }
  8518. dispbuflen = libc.Int32FromUint32(v1)
  8519. if libc.Int32FromUint16(family) == int32(m_FamilyLocal) {
  8520. if libc.Xgethostname(tls, bp, uint32(256)) == -int32(1) {
  8521. return uintptr(0)
  8522. } /* do not know own hostname */
  8523. addr = bp
  8524. addrlen = libc.Int32FromUint32(libc.Xstrlen(tls, addr))
  8525. }
  8526. 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)))
  8527. }
  8528. func _next_nonce(tls *libc.TLS) (r int32) {
  8529. var ret, v1 int32
  8530. _, _ = ret, v1
  8531. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8532. v1 = _nonce
  8533. _nonce++
  8534. ret = v1
  8535. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8536. return ret
  8537. }
  8538. var _nonce int32
  8539. var _nonce_mutex = Tpthread_mutex_t{}
  8540. func _do_append(tls *libc.TLS, buf uintptr, idxp uintptr, val uintptr, valsize Tsize_t) {
  8541. var p1 uintptr
  8542. _ = p1
  8543. libc.Xmemcpy(tls, buf+uintptr(*(*int32)(unsafe.Pointer(idxp))), val, valsize)
  8544. p1 = idxp
  8545. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + valsize)
  8546. }
  8547. func _compute_auth(tls *libc.TLS, info uintptr, authptr uintptr, sockname uintptr) (r int32) {
  8548. bp := tls.Alloc(32)
  8549. defer tls.Free(32)
  8550. var si, si6 uintptr
  8551. var v2 int32
  8552. var _ /* fakeaddr at bp+12 */ Tuint32_t
  8553. var _ /* fakeaddr at bp+4 */ Tuint32_t
  8554. var _ /* fakeport at bp+16 */ Tuint16_t
  8555. var _ /* fakeport at bp+8 */ Tuint16_t
  8556. var _ /* j at bp+0 */ int32
  8557. var _ /* now at bp+20 */ Tuint32_t
  8558. _, _, _ = si, si6, v2
  8559. if _authname_match(tls, int32(_AUTH_MC1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint32((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8560. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = libc.Int32FromUint32(_memdup(tls, info+12, (*TXauth)(unsafe.Pointer(authptr)).Fdata, uint32((*TXauth)(unsafe.Pointer(authptr)).Fdata_length)))
  8561. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen != 0) {
  8562. return 0
  8563. }
  8564. return int32(1)
  8565. }
  8566. if _authname_match(tls, int32(_AUTH_XA1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint32((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8567. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata = libc.Xmalloc(tls, libc.Uint32FromInt32(libc.Int32FromInt32(192)/libc.Int32FromInt32(8)))
  8568. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata != 0) {
  8569. return 0
  8570. }
  8571. *(*int32)(unsafe.Pointer(bp)) = 0
  8572. for {
  8573. if !(*(*int32)(unsafe.Pointer(bp)) < int32(8)) {
  8574. break
  8575. }
  8576. *(*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)))))
  8577. goto _1
  8578. _1:
  8579. ;
  8580. *(*int32)(unsafe.Pointer(bp))++
  8581. }
  8582. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8583. case int32(m_PF_INET):
  8584. /*block*/
  8585. si = sockname
  8586. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+4, uint32(4))
  8587. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+2, uint32(2))
  8588. case int32(m_PF_INET6):
  8589. /*block*/
  8590. si6 = sockname
  8591. 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) {
  8592. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+8+12, uint32(4))
  8593. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+2, uint32(2))
  8594. } else {
  8595. /* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
  8596. same thing Xlib does: use all zeroes for the 4-byte address
  8597. and 2-byte port number. */
  8598. *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uint32(0)
  8599. *(*Tuint16_t)(unsafe.Pointer(bp + 8)) = uint16(0)
  8600. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+4, uint32(4))
  8601. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+8, uint32(2))
  8602. }
  8603. case int32(m_PF_LOCAL):
  8604. /*block*/
  8605. *(*Tuint32_t)(unsafe.Pointer(bp + 12)) = libc.Xhtonl(tls, uint32(0xffffffff)-libc.Uint32FromInt32(_next_nonce(tls)))
  8606. *(*Tuint16_t)(unsafe.Pointer(bp + 16)) = libc.Xhtons(tls, libc.Uint16FromInt32(libc.Xgetpid(tls)))
  8607. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+12, uint32(4))
  8608. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+16, uint32(2))
  8609. default:
  8610. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata)
  8611. return 0 /* do not know how to build this */
  8612. }
  8613. *(*Tuint32_t)(unsafe.Pointer(bp + 20)) = libc.Xhtonl(tls, libc.Uint32FromInt64(libc.Xtime(tls, uintptr(0))))
  8614. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+20, uint32(4))
  8615. for *(*int32)(unsafe.Pointer(bp)) < libc.Int32FromInt32(192)/libc.Int32FromInt32(8) {
  8616. v2 = *(*int32)(unsafe.Pointer(bp))
  8617. *(*int32)(unsafe.Pointer(bp))++
  8618. *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(v2))) = uint8(0)
  8619. }
  8620. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = *(*int32)(unsafe.Pointer(bp))
  8621. 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)
  8622. return int32(1)
  8623. }
  8624. return 0 /* Unknown authorization type */
  8625. }
  8626. /* `sockaddr_un.sun_path' typical size usually ranges between 92 and 108 */
  8627. // C documentation
  8628. //
  8629. // /* Return a dynamically allocated socket address structure according
  8630. // to the value returned by either getpeername() or getsockname()
  8631. // (according to POSIX, applications should not assume a particular
  8632. // length for `sockaddr_un.sun_path') */
  8633. func _get_peer_sock_name(tls *libc.TLS, socket_func uintptr, fd int32) (r uintptr) {
  8634. bp := tls.Alloc(16)
  8635. defer tls.Free(16)
  8636. var new_sockname, sockname, v1 uintptr
  8637. var socknamelen Tsocklen_t
  8638. var _ /* actual_socknamelen at bp+0 */ Tsocklen_t
  8639. _, _, _, _ = new_sockname, sockname, socknamelen, v1
  8640. socknamelen = libc.Uint32FromInt64(16) + libc.Uint32FromInt32(m_INITIAL_SOCKNAME_SLACK)
  8641. *(*Tsocklen_t)(unsafe.Pointer(bp)) = socknamelen
  8642. sockname = libc.Xmalloc(tls, socknamelen)
  8643. if sockname == libc.UintptrFromInt32(0) {
  8644. return libc.UintptrFromInt32(0)
  8645. }
  8646. /* Both getpeername() and getsockname() truncates sockname if
  8647. there is not enough space and set the required length in
  8648. actual_socknamelen */
  8649. if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) {
  8650. goto sock_or_realloc_error
  8651. }
  8652. if *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
  8653. new_sockname = libc.UintptrFromInt32(0)
  8654. socknamelen = *(*Tsocklen_t)(unsafe.Pointer(bp))
  8655. v1 = libc.Xrealloc(tls, sockname, *(*Tsocklen_t)(unsafe.Pointer(bp)))
  8656. new_sockname = v1
  8657. if v1 == libc.UintptrFromInt32(0) {
  8658. goto sock_or_realloc_error
  8659. }
  8660. sockname = new_sockname
  8661. 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 {
  8662. goto sock_or_realloc_error
  8663. }
  8664. }
  8665. return sockname
  8666. goto sock_or_realloc_error
  8667. sock_or_realloc_error:
  8668. ;
  8669. libc.Xfree(tls, sockname)
  8670. return libc.UintptrFromInt32(0)
  8671. }
  8672. func X_xcb_get_auth_info(tls *libc.TLS, fd int32, info uintptr, display int32) (r int32) {
  8673. var authptr, sockname, v1, v2, v3 uintptr
  8674. var gotsockname, ret int32
  8675. _, _, _, _, _, _, _ = authptr, gotsockname, ret, sockname, v1, v2, v3
  8676. /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
  8677. xtrans/Xtransutils.c */
  8678. sockname = libc.UintptrFromInt32(0)
  8679. gotsockname = 0
  8680. authptr = uintptr(0)
  8681. ret = int32(1)
  8682. /* Some systems like hpux or Hurd do not expose peer names
  8683. * for UNIX Domain Sockets, but this is irrelevant,
  8684. * since compute_auth() ignores the peer name in this
  8685. * case anyway.*/
  8686. v1 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetpeername), fd)
  8687. sockname = v1
  8688. if v1 == libc.UintptrFromInt32(0) {
  8689. v2 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8690. sockname = v2
  8691. if v2 == libc.UintptrFromInt32(0) {
  8692. return 0
  8693. } /* can only authenticate sockets */
  8694. if libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) != int32(m_PF_LOCAL) {
  8695. libc.Xfree(tls, sockname)
  8696. return 0 /* except for AF_UNIX, sockets should have peernames */
  8697. }
  8698. gotsockname = int32(1)
  8699. }
  8700. authptr = _get_authptr(tls, sockname, display)
  8701. if authptr == uintptr(0) {
  8702. libc.Xfree(tls, sockname)
  8703. return 0 /* cannot find good auth data */
  8704. }
  8705. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = libc.Int32FromUint32(_memdup(tls, info+4, (*TXauth)(unsafe.Pointer(authptr)).Fname, uint32((*TXauth)(unsafe.Pointer(authptr)).Fname_length)))
  8706. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen != 0) {
  8707. goto no_auth
  8708. } /* out of memory */
  8709. if !(gotsockname != 0) {
  8710. libc.Xfree(tls, sockname)
  8711. v3 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8712. sockname = v3
  8713. if v3 == libc.UintptrFromInt32(0) {
  8714. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8715. goto no_auth /* can only authenticate sockets */
  8716. }
  8717. }
  8718. ret = _compute_auth(tls, info, authptr, sockname)
  8719. if !(ret != 0) {
  8720. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8721. goto no_auth /* cannot build auth record */
  8722. }
  8723. libc.Xfree(tls, sockname)
  8724. sockname = libc.UintptrFromInt32(0)
  8725. libxau.XXauDisposeAuth(tls, authptr)
  8726. return ret
  8727. goto no_auth
  8728. no_auth:
  8729. ;
  8730. libc.Xfree(tls, sockname)
  8731. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname = uintptr(0)
  8732. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = 0
  8733. libxau.XXauDisposeAuth(tls, authptr)
  8734. return 0
  8735. }
  8736. /*
  8737. * This file generated automatically from xproto.xml by c_client.py.
  8738. * Edit at your peril.
  8739. */
  8740. /**
  8741. * @defgroup XCB__API XCB API
  8742. * @brief XCB Protocol Implementation.
  8743. * @{
  8744. **/
  8745. /**
  8746. * @}
  8747. */
  8748. func Xxcb_char2b_next(tls *libc.TLS, i uintptr) {
  8749. var p1 uintptr
  8750. _ = p1
  8751. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Frem--
  8752. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Fdata += 2
  8753. p1 = i + 8
  8754. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(2))
  8755. }
  8756. func Xxcb_char2b_end(tls *libc.TLS, i Txcb_char2b_iterator_t) (r Txcb_generic_iterator_t) {
  8757. var ret Txcb_generic_iterator_t
  8758. _ = ret
  8759. ret.Fdata = i.Fdata + uintptr(i.Frem)*2
  8760. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8761. ret.Frem = 0
  8762. return ret
  8763. }
  8764. func Xxcb_window_next(tls *libc.TLS, i uintptr) {
  8765. var p1 uintptr
  8766. _ = p1
  8767. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Frem--
  8768. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8769. p1 = i + 8
  8770. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8771. }
  8772. func Xxcb_window_end(tls *libc.TLS, i Txcb_window_iterator_t) (r Txcb_generic_iterator_t) {
  8773. var ret Txcb_generic_iterator_t
  8774. _ = ret
  8775. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8776. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8777. ret.Frem = 0
  8778. return ret
  8779. }
  8780. func Xxcb_pixmap_next(tls *libc.TLS, i uintptr) {
  8781. var p1 uintptr
  8782. _ = p1
  8783. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Frem--
  8784. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8785. p1 = i + 8
  8786. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8787. }
  8788. func Xxcb_pixmap_end(tls *libc.TLS, i Txcb_pixmap_iterator_t) (r Txcb_generic_iterator_t) {
  8789. var ret Txcb_generic_iterator_t
  8790. _ = ret
  8791. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8792. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8793. ret.Frem = 0
  8794. return ret
  8795. }
  8796. func Xxcb_cursor_next(tls *libc.TLS, i uintptr) {
  8797. var p1 uintptr
  8798. _ = p1
  8799. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Frem--
  8800. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8801. p1 = i + 8
  8802. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8803. }
  8804. func Xxcb_cursor_end(tls *libc.TLS, i Txcb_cursor_iterator_t) (r Txcb_generic_iterator_t) {
  8805. var ret Txcb_generic_iterator_t
  8806. _ = ret
  8807. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8808. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8809. ret.Frem = 0
  8810. return ret
  8811. }
  8812. func Xxcb_font_next(tls *libc.TLS, i uintptr) {
  8813. var p1 uintptr
  8814. _ = p1
  8815. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Frem--
  8816. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8817. p1 = i + 8
  8818. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8819. }
  8820. func Xxcb_font_end(tls *libc.TLS, i Txcb_font_iterator_t) (r Txcb_generic_iterator_t) {
  8821. var ret Txcb_generic_iterator_t
  8822. _ = ret
  8823. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8824. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8825. ret.Frem = 0
  8826. return ret
  8827. }
  8828. func Xxcb_gcontext_next(tls *libc.TLS, i uintptr) {
  8829. var p1 uintptr
  8830. _ = p1
  8831. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Frem--
  8832. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8833. p1 = i + 8
  8834. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8835. }
  8836. func Xxcb_gcontext_end(tls *libc.TLS, i Txcb_gcontext_iterator_t) (r Txcb_generic_iterator_t) {
  8837. var ret Txcb_generic_iterator_t
  8838. _ = ret
  8839. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8840. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8841. ret.Frem = 0
  8842. return ret
  8843. }
  8844. func Xxcb_colormap_next(tls *libc.TLS, i uintptr) {
  8845. var p1 uintptr
  8846. _ = p1
  8847. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Frem--
  8848. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8849. p1 = i + 8
  8850. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8851. }
  8852. func Xxcb_colormap_end(tls *libc.TLS, i Txcb_colormap_iterator_t) (r Txcb_generic_iterator_t) {
  8853. var ret Txcb_generic_iterator_t
  8854. _ = ret
  8855. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8856. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8857. ret.Frem = 0
  8858. return ret
  8859. }
  8860. func Xxcb_atom_next(tls *libc.TLS, i uintptr) {
  8861. var p1 uintptr
  8862. _ = p1
  8863. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Frem--
  8864. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8865. p1 = i + 8
  8866. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8867. }
  8868. func Xxcb_atom_end(tls *libc.TLS, i Txcb_atom_iterator_t) (r Txcb_generic_iterator_t) {
  8869. var ret Txcb_generic_iterator_t
  8870. _ = ret
  8871. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8872. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8873. ret.Frem = 0
  8874. return ret
  8875. }
  8876. func Xxcb_drawable_next(tls *libc.TLS, i uintptr) {
  8877. var p1 uintptr
  8878. _ = p1
  8879. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Frem--
  8880. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8881. p1 = i + 8
  8882. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8883. }
  8884. func Xxcb_drawable_end(tls *libc.TLS, i Txcb_drawable_iterator_t) (r Txcb_generic_iterator_t) {
  8885. var ret Txcb_generic_iterator_t
  8886. _ = ret
  8887. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8888. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8889. ret.Frem = 0
  8890. return ret
  8891. }
  8892. func Xxcb_fontable_next(tls *libc.TLS, i uintptr) {
  8893. var p1 uintptr
  8894. _ = p1
  8895. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Frem--
  8896. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8897. p1 = i + 8
  8898. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8899. }
  8900. func Xxcb_fontable_end(tls *libc.TLS, i Txcb_fontable_iterator_t) (r Txcb_generic_iterator_t) {
  8901. var ret Txcb_generic_iterator_t
  8902. _ = ret
  8903. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8904. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8905. ret.Frem = 0
  8906. return ret
  8907. }
  8908. func Xxcb_bool32_next(tls *libc.TLS, i uintptr) {
  8909. var p1 uintptr
  8910. _ = p1
  8911. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Frem--
  8912. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8913. p1 = i + 8
  8914. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8915. }
  8916. func Xxcb_bool32_end(tls *libc.TLS, i Txcb_bool32_iterator_t) (r Txcb_generic_iterator_t) {
  8917. var ret Txcb_generic_iterator_t
  8918. _ = ret
  8919. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8920. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8921. ret.Frem = 0
  8922. return ret
  8923. }
  8924. func Xxcb_visualid_next(tls *libc.TLS, i uintptr) {
  8925. var p1 uintptr
  8926. _ = p1
  8927. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Frem--
  8928. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8929. p1 = i + 8
  8930. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8931. }
  8932. func Xxcb_visualid_end(tls *libc.TLS, i Txcb_visualid_iterator_t) (r Txcb_generic_iterator_t) {
  8933. var ret Txcb_generic_iterator_t
  8934. _ = ret
  8935. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8936. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8937. ret.Frem = 0
  8938. return ret
  8939. }
  8940. func Xxcb_timestamp_next(tls *libc.TLS, i uintptr) {
  8941. var p1 uintptr
  8942. _ = p1
  8943. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Frem--
  8944. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8945. p1 = i + 8
  8946. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8947. }
  8948. func Xxcb_timestamp_end(tls *libc.TLS, i Txcb_timestamp_iterator_t) (r Txcb_generic_iterator_t) {
  8949. var ret Txcb_generic_iterator_t
  8950. _ = ret
  8951. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8952. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8953. ret.Frem = 0
  8954. return ret
  8955. }
  8956. func Xxcb_keysym_next(tls *libc.TLS, i uintptr) {
  8957. var p1 uintptr
  8958. _ = p1
  8959. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Frem--
  8960. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8961. p1 = i + 8
  8962. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8963. }
  8964. func Xxcb_keysym_end(tls *libc.TLS, i Txcb_keysym_iterator_t) (r Txcb_generic_iterator_t) {
  8965. var ret Txcb_generic_iterator_t
  8966. _ = ret
  8967. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8968. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8969. ret.Frem = 0
  8970. return ret
  8971. }
  8972. func Xxcb_keycode_next(tls *libc.TLS, i uintptr) {
  8973. var p1 uintptr
  8974. _ = p1
  8975. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Frem--
  8976. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Fdata++
  8977. p1 = i + 8
  8978. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(1))
  8979. }
  8980. func Xxcb_keycode_end(tls *libc.TLS, i Txcb_keycode_iterator_t) (r Txcb_generic_iterator_t) {
  8981. var ret Txcb_generic_iterator_t
  8982. _ = ret
  8983. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8984. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  8985. ret.Frem = 0
  8986. return ret
  8987. }
  8988. func Xxcb_keycode32_next(tls *libc.TLS, i uintptr) {
  8989. var p1 uintptr
  8990. _ = p1
  8991. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Frem--
  8992. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8993. p1 = i + 8
  8994. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  8995. }
  8996. func Xxcb_keycode32_end(tls *libc.TLS, i Txcb_keycode32_iterator_t) (r Txcb_generic_iterator_t) {
  8997. var ret Txcb_generic_iterator_t
  8998. _ = ret
  8999. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9000. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9001. ret.Frem = 0
  9002. return ret
  9003. }
  9004. func Xxcb_button_next(tls *libc.TLS, i uintptr) {
  9005. var p1 uintptr
  9006. _ = p1
  9007. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Frem--
  9008. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Fdata++
  9009. p1 = i + 8
  9010. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(1))
  9011. }
  9012. func Xxcb_button_end(tls *libc.TLS, i Txcb_button_iterator_t) (r Txcb_generic_iterator_t) {
  9013. var ret Txcb_generic_iterator_t
  9014. _ = ret
  9015. ret.Fdata = i.Fdata + uintptr(i.Frem)
  9016. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9017. ret.Frem = 0
  9018. return ret
  9019. }
  9020. func Xxcb_point_next(tls *libc.TLS, i uintptr) {
  9021. var p1 uintptr
  9022. _ = p1
  9023. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Frem--
  9024. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  9025. p1 = i + 8
  9026. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(4))
  9027. }
  9028. func Xxcb_point_end(tls *libc.TLS, i Txcb_point_iterator_t) (r Txcb_generic_iterator_t) {
  9029. var ret Txcb_generic_iterator_t
  9030. _ = ret
  9031. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9032. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9033. ret.Frem = 0
  9034. return ret
  9035. }
  9036. func Xxcb_rectangle_next(tls *libc.TLS, i uintptr) {
  9037. var p1 uintptr
  9038. _ = p1
  9039. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Frem--
  9040. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  9041. p1 = i + 8
  9042. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(8))
  9043. }
  9044. func Xxcb_rectangle_end(tls *libc.TLS, i Txcb_rectangle_iterator_t) (r Txcb_generic_iterator_t) {
  9045. var ret Txcb_generic_iterator_t
  9046. _ = ret
  9047. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9048. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9049. ret.Frem = 0
  9050. return ret
  9051. }
  9052. func Xxcb_arc_next(tls *libc.TLS, i uintptr) {
  9053. var p1 uintptr
  9054. _ = p1
  9055. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Frem--
  9056. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  9057. p1 = i + 8
  9058. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(12))
  9059. }
  9060. func Xxcb_arc_end(tls *libc.TLS, i Txcb_arc_iterator_t) (r Txcb_generic_iterator_t) {
  9061. var ret Txcb_generic_iterator_t
  9062. _ = ret
  9063. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  9064. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9065. ret.Frem = 0
  9066. return ret
  9067. }
  9068. func Xxcb_format_next(tls *libc.TLS, i uintptr) {
  9069. var p1 uintptr
  9070. _ = p1
  9071. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Frem--
  9072. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  9073. p1 = i + 8
  9074. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(8))
  9075. }
  9076. func Xxcb_format_end(tls *libc.TLS, i Txcb_format_iterator_t) (r Txcb_generic_iterator_t) {
  9077. var ret Txcb_generic_iterator_t
  9078. _ = ret
  9079. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9080. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9081. ret.Frem = 0
  9082. return ret
  9083. }
  9084. func Xxcb_visualtype_next(tls *libc.TLS, i uintptr) {
  9085. var p1 uintptr
  9086. _ = p1
  9087. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Frem--
  9088. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Fdata += 24
  9089. p1 = i + 8
  9090. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(24))
  9091. }
  9092. func Xxcb_visualtype_end(tls *libc.TLS, i Txcb_visualtype_iterator_t) (r Txcb_generic_iterator_t) {
  9093. var ret Txcb_generic_iterator_t
  9094. _ = ret
  9095. ret.Fdata = i.Fdata + uintptr(i.Frem)*24
  9096. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9097. ret.Frem = 0
  9098. return ret
  9099. }
  9100. func Xxcb_depth_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9101. var _aux, xcb_tmp uintptr
  9102. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9103. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9104. xcb_tmp = _buffer
  9105. _aux = _buffer
  9106. xcb_buffer_len = uint32(0)
  9107. xcb_block_len = uint32(0)
  9108. xcb_pad = uint32(0)
  9109. xcb_align_to = uint32(0)
  9110. xcb_block_len += uint32(8)
  9111. xcb_tmp += uintptr(xcb_block_len)
  9112. xcb_buffer_len += xcb_block_len
  9113. xcb_block_len = uint32(0)
  9114. /* visuals */
  9115. xcb_block_len += uint32((*Txcb_depth_t)(unsafe.Pointer(_aux)).Fvisuals_len) * uint32(24)
  9116. xcb_tmp += uintptr(xcb_block_len)
  9117. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9118. /* insert padding */
  9119. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9120. xcb_buffer_len += xcb_block_len + xcb_pad
  9121. if uint32(0) != xcb_pad {
  9122. xcb_tmp += uintptr(xcb_pad)
  9123. xcb_pad = uint32(0)
  9124. }
  9125. xcb_block_len = uint32(0)
  9126. return libc.Int32FromUint32(xcb_buffer_len)
  9127. }
  9128. func Xxcb_depth_visuals(tls *libc.TLS, R uintptr) (r uintptr) {
  9129. return R + libc.UintptrFromInt32(1)*8
  9130. }
  9131. func Xxcb_depth_visuals_length(tls *libc.TLS, R uintptr) (r int32) {
  9132. return libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9133. }
  9134. func Xxcb_depth_visuals_iterator(tls *libc.TLS, R uintptr) (r Txcb_visualtype_iterator_t) {
  9135. var i Txcb_visualtype_iterator_t
  9136. _ = i
  9137. i.Fdata = R + libc.UintptrFromInt32(1)*8
  9138. i.Frem = libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9139. i.Findex = int32(i.Fdata) - int32(R)
  9140. return i
  9141. }
  9142. func Xxcb_depth_next(tls *libc.TLS, i uintptr) {
  9143. var R uintptr
  9144. var child Txcb_generic_iterator_t
  9145. _, _ = R, child
  9146. R = (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata
  9147. child.Fdata = R + uintptr(Xxcb_depth_sizeof(tls, R))
  9148. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata)
  9149. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Frem--
  9150. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9151. }
  9152. func Xxcb_depth_end(tls *libc.TLS, _i Txcb_depth_iterator_t) (r Txcb_generic_iterator_t) {
  9153. bp := tls.Alloc(16)
  9154. defer tls.Free(16)
  9155. *(*Txcb_depth_iterator_t)(unsafe.Pointer(bp)) = _i
  9156. var ret Txcb_generic_iterator_t
  9157. _ = ret
  9158. for (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9159. Xxcb_depth_next(tls, bp)
  9160. }
  9161. ret.Fdata = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Fdata
  9162. ret.Frem = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem
  9163. ret.Findex = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Findex
  9164. return ret
  9165. }
  9166. func Xxcb_screen_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9167. var _aux, xcb_tmp uintptr
  9168. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9169. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9170. xcb_tmp = _buffer
  9171. _aux = _buffer
  9172. xcb_buffer_len = uint32(0)
  9173. xcb_block_len = uint32(0)
  9174. xcb_pad = uint32(0)
  9175. xcb_align_to = uint32(0)
  9176. xcb_block_len += uint32(40)
  9177. xcb_tmp += uintptr(xcb_block_len)
  9178. xcb_buffer_len += xcb_block_len
  9179. xcb_block_len = uint32(0)
  9180. /* allowed_depths */
  9181. i = uint32(0)
  9182. for {
  9183. if !(i < uint32((*Txcb_screen_t)(unsafe.Pointer(_aux)).Fallowed_depths_len)) {
  9184. break
  9185. }
  9186. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_depth_sizeof(tls, xcb_tmp))
  9187. xcb_block_len += xcb_tmp_len
  9188. xcb_tmp += uintptr(xcb_tmp_len)
  9189. goto _1
  9190. _1:
  9191. ;
  9192. i++
  9193. }
  9194. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  9195. /* insert padding */
  9196. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9197. xcb_buffer_len += xcb_block_len + xcb_pad
  9198. if uint32(0) != xcb_pad {
  9199. xcb_tmp += uintptr(xcb_pad)
  9200. xcb_pad = uint32(0)
  9201. }
  9202. xcb_block_len = uint32(0)
  9203. return libc.Int32FromUint32(xcb_buffer_len)
  9204. }
  9205. func Xxcb_screen_allowed_depths_length(tls *libc.TLS, R uintptr) (r int32) {
  9206. return libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9207. }
  9208. func Xxcb_screen_allowed_depths_iterator(tls *libc.TLS, R uintptr) (r Txcb_depth_iterator_t) {
  9209. var i Txcb_depth_iterator_t
  9210. _ = i
  9211. i.Fdata = R + libc.UintptrFromInt32(1)*40
  9212. i.Frem = libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9213. i.Findex = int32(i.Fdata) - int32(R)
  9214. return i
  9215. }
  9216. func Xxcb_screen_next(tls *libc.TLS, i uintptr) {
  9217. var R uintptr
  9218. var child Txcb_generic_iterator_t
  9219. _, _ = R, child
  9220. R = (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata
  9221. child.Fdata = R + uintptr(Xxcb_screen_sizeof(tls, R))
  9222. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata)
  9223. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Frem--
  9224. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9225. }
  9226. func Xxcb_screen_end(tls *libc.TLS, _i Txcb_screen_iterator_t) (r Txcb_generic_iterator_t) {
  9227. bp := tls.Alloc(16)
  9228. defer tls.Free(16)
  9229. *(*Txcb_screen_iterator_t)(unsafe.Pointer(bp)) = _i
  9230. var ret Txcb_generic_iterator_t
  9231. _ = ret
  9232. for (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9233. Xxcb_screen_next(tls, bp)
  9234. }
  9235. ret.Fdata = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Fdata
  9236. ret.Frem = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem
  9237. ret.Findex = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Findex
  9238. return ret
  9239. }
  9240. func Xxcb_setup_request_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9241. var _aux, xcb_tmp uintptr
  9242. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9243. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9244. xcb_tmp = _buffer
  9245. _aux = _buffer
  9246. xcb_buffer_len = uint32(0)
  9247. xcb_block_len = uint32(0)
  9248. xcb_pad = uint32(0)
  9249. xcb_align_to = uint32(0)
  9250. xcb_block_len += uint32(12)
  9251. xcb_tmp += uintptr(xcb_block_len)
  9252. xcb_buffer_len += xcb_block_len
  9253. xcb_block_len = uint32(0)
  9254. /* authorization_protocol_name */
  9255. xcb_block_len += uint32((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_name_len) * uint32(1)
  9256. xcb_tmp += uintptr(xcb_block_len)
  9257. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  9258. xcb_align_to = uint32(4)
  9259. /* insert padding */
  9260. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9261. xcb_buffer_len += xcb_block_len + xcb_pad
  9262. if uint32(0) != xcb_pad {
  9263. xcb_tmp += uintptr(xcb_pad)
  9264. xcb_pad = uint32(0)
  9265. }
  9266. xcb_block_len = uint32(0)
  9267. /* insert padding */
  9268. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9269. xcb_buffer_len += xcb_block_len + xcb_pad
  9270. if uint32(0) != xcb_pad {
  9271. xcb_tmp += uintptr(xcb_pad)
  9272. xcb_pad = uint32(0)
  9273. }
  9274. xcb_block_len = uint32(0)
  9275. /* authorization_protocol_data */
  9276. xcb_block_len += uint32((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_data_len) * uint32(1)
  9277. xcb_tmp += uintptr(xcb_block_len)
  9278. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  9279. xcb_align_to = uint32(4)
  9280. /* insert padding */
  9281. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9282. xcb_buffer_len += xcb_block_len + xcb_pad
  9283. if uint32(0) != xcb_pad {
  9284. xcb_tmp += uintptr(xcb_pad)
  9285. xcb_pad = uint32(0)
  9286. }
  9287. xcb_block_len = uint32(0)
  9288. /* insert padding */
  9289. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9290. xcb_buffer_len += xcb_block_len + xcb_pad
  9291. if uint32(0) != xcb_pad {
  9292. xcb_tmp += uintptr(xcb_pad)
  9293. xcb_pad = uint32(0)
  9294. }
  9295. xcb_block_len = uint32(0)
  9296. return libc.Int32FromUint32(xcb_buffer_len)
  9297. }
  9298. func Xxcb_setup_request_authorization_protocol_name(tls *libc.TLS, R uintptr) (r uintptr) {
  9299. return R + libc.UintptrFromInt32(1)*12
  9300. }
  9301. func Xxcb_setup_request_authorization_protocol_name_length(tls *libc.TLS, R uintptr) (r int32) {
  9302. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9303. }
  9304. func Xxcb_setup_request_authorization_protocol_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9305. var i Txcb_generic_iterator_t
  9306. _ = i
  9307. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9308. i.Frem = 0
  9309. i.Findex = int32(i.Fdata) - int32(R)
  9310. return i
  9311. }
  9312. func Xxcb_setup_request_authorization_protocol_data(tls *libc.TLS, R uintptr) (r uintptr) {
  9313. var prev Txcb_generic_iterator_t
  9314. _ = prev
  9315. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9316. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9317. }
  9318. func Xxcb_setup_request_authorization_protocol_data_length(tls *libc.TLS, R uintptr) (r int32) {
  9319. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
  9320. }
  9321. func Xxcb_setup_request_authorization_protocol_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9322. var i, prev Txcb_generic_iterator_t
  9323. _, _ = i, prev
  9324. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9325. 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)
  9326. i.Frem = 0
  9327. i.Findex = int32(i.Fdata) - int32(R)
  9328. return i
  9329. }
  9330. func Xxcb_setup_request_next(tls *libc.TLS, i uintptr) {
  9331. var R uintptr
  9332. var child Txcb_generic_iterator_t
  9333. _, _ = R, child
  9334. R = (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata
  9335. child.Fdata = R + uintptr(Xxcb_setup_request_sizeof(tls, R))
  9336. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata)
  9337. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Frem--
  9338. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9339. }
  9340. func Xxcb_setup_request_end(tls *libc.TLS, _i Txcb_setup_request_iterator_t) (r Txcb_generic_iterator_t) {
  9341. bp := tls.Alloc(16)
  9342. defer tls.Free(16)
  9343. *(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp)) = _i
  9344. var ret Txcb_generic_iterator_t
  9345. _ = ret
  9346. for (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9347. Xxcb_setup_request_next(tls, bp)
  9348. }
  9349. ret.Fdata = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Fdata
  9350. ret.Frem = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem
  9351. ret.Findex = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Findex
  9352. return ret
  9353. }
  9354. func Xxcb_setup_failed_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9355. var _aux, xcb_tmp uintptr
  9356. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9357. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9358. xcb_tmp = _buffer
  9359. _aux = _buffer
  9360. xcb_buffer_len = uint32(0)
  9361. xcb_block_len = uint32(0)
  9362. xcb_pad = uint32(0)
  9363. xcb_align_to = uint32(0)
  9364. xcb_block_len += uint32(8)
  9365. xcb_tmp += uintptr(xcb_block_len)
  9366. xcb_buffer_len += xcb_block_len
  9367. xcb_block_len = uint32(0)
  9368. /* reason */
  9369. xcb_block_len += uint32((*Txcb_setup_failed_t)(unsafe.Pointer(_aux)).Freason_len) * uint32(1)
  9370. xcb_tmp += uintptr(xcb_block_len)
  9371. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  9372. /* insert padding */
  9373. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9374. xcb_buffer_len += xcb_block_len + xcb_pad
  9375. if uint32(0) != xcb_pad {
  9376. xcb_tmp += uintptr(xcb_pad)
  9377. xcb_pad = uint32(0)
  9378. }
  9379. xcb_block_len = uint32(0)
  9380. return libc.Int32FromUint32(xcb_buffer_len)
  9381. }
  9382. func Xxcb_setup_failed_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9383. return R + libc.UintptrFromInt32(1)*8
  9384. }
  9385. func Xxcb_setup_failed_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9386. return libc.Int32FromUint8((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9387. }
  9388. func Xxcb_setup_failed_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9389. var i Txcb_generic_iterator_t
  9390. _ = i
  9391. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9392. i.Frem = 0
  9393. i.Findex = int32(i.Fdata) - int32(R)
  9394. return i
  9395. }
  9396. func Xxcb_setup_failed_next(tls *libc.TLS, i uintptr) {
  9397. var R uintptr
  9398. var child Txcb_generic_iterator_t
  9399. _, _ = R, child
  9400. R = (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata
  9401. child.Fdata = R + uintptr(Xxcb_setup_failed_sizeof(tls, R))
  9402. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata)
  9403. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Frem--
  9404. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9405. }
  9406. func Xxcb_setup_failed_end(tls *libc.TLS, _i Txcb_setup_failed_iterator_t) (r Txcb_generic_iterator_t) {
  9407. bp := tls.Alloc(16)
  9408. defer tls.Free(16)
  9409. *(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp)) = _i
  9410. var ret Txcb_generic_iterator_t
  9411. _ = ret
  9412. for (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9413. Xxcb_setup_failed_next(tls, bp)
  9414. }
  9415. ret.Fdata = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Fdata
  9416. ret.Frem = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem
  9417. ret.Findex = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Findex
  9418. return ret
  9419. }
  9420. func Xxcb_setup_authenticate_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9421. var _aux, xcb_tmp uintptr
  9422. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9423. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9424. xcb_tmp = _buffer
  9425. _aux = _buffer
  9426. xcb_buffer_len = uint32(0)
  9427. xcb_block_len = uint32(0)
  9428. xcb_pad = uint32(0)
  9429. xcb_align_to = uint32(0)
  9430. xcb_block_len += uint32(8)
  9431. xcb_tmp += uintptr(xcb_block_len)
  9432. xcb_buffer_len += xcb_block_len
  9433. xcb_block_len = uint32(0)
  9434. /* reason */
  9435. xcb_block_len += libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(_aux)).Flength)*libc.Int32FromInt32(4)) * uint32(1)
  9436. xcb_tmp += uintptr(xcb_block_len)
  9437. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  9438. /* insert padding */
  9439. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9440. xcb_buffer_len += xcb_block_len + xcb_pad
  9441. if uint32(0) != xcb_pad {
  9442. xcb_tmp += uintptr(xcb_pad)
  9443. xcb_pad = uint32(0)
  9444. }
  9445. xcb_block_len = uint32(0)
  9446. return libc.Int32FromUint32(xcb_buffer_len)
  9447. }
  9448. func Xxcb_setup_authenticate_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9449. return R + libc.UintptrFromInt32(1)*8
  9450. }
  9451. func Xxcb_setup_authenticate_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9452. return libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength) * int32(4)
  9453. }
  9454. func Xxcb_setup_authenticate_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9455. var i Txcb_generic_iterator_t
  9456. _ = i
  9457. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))
  9458. i.Frem = 0
  9459. i.Findex = int32(i.Fdata) - int32(R)
  9460. return i
  9461. }
  9462. func Xxcb_setup_authenticate_next(tls *libc.TLS, i uintptr) {
  9463. var R uintptr
  9464. var child Txcb_generic_iterator_t
  9465. _, _ = R, child
  9466. R = (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata
  9467. child.Fdata = R + uintptr(Xxcb_setup_authenticate_sizeof(tls, R))
  9468. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata)
  9469. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Frem--
  9470. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9471. }
  9472. func Xxcb_setup_authenticate_end(tls *libc.TLS, _i Txcb_setup_authenticate_iterator_t) (r Txcb_generic_iterator_t) {
  9473. bp := tls.Alloc(16)
  9474. defer tls.Free(16)
  9475. *(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp)) = _i
  9476. var ret Txcb_generic_iterator_t
  9477. _ = ret
  9478. for (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9479. Xxcb_setup_authenticate_next(tls, bp)
  9480. }
  9481. ret.Fdata = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Fdata
  9482. ret.Frem = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem
  9483. ret.Findex = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Findex
  9484. return ret
  9485. }
  9486. func Xxcb_setup_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9487. var _aux, xcb_tmp uintptr
  9488. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9489. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9490. xcb_tmp = _buffer
  9491. _aux = _buffer
  9492. xcb_buffer_len = uint32(0)
  9493. xcb_block_len = uint32(0)
  9494. xcb_pad = uint32(0)
  9495. xcb_align_to = uint32(0)
  9496. xcb_block_len += uint32(40)
  9497. xcb_tmp += uintptr(xcb_block_len)
  9498. xcb_buffer_len += xcb_block_len
  9499. xcb_block_len = uint32(0)
  9500. /* vendor */
  9501. xcb_block_len += uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fvendor_len) * uint32(1)
  9502. xcb_tmp += uintptr(xcb_block_len)
  9503. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  9504. xcb_align_to = uint32(4)
  9505. /* insert padding */
  9506. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9507. xcb_buffer_len += xcb_block_len + xcb_pad
  9508. if uint32(0) != xcb_pad {
  9509. xcb_tmp += uintptr(xcb_pad)
  9510. xcb_pad = uint32(0)
  9511. }
  9512. xcb_block_len = uint32(0)
  9513. /* insert padding */
  9514. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9515. xcb_buffer_len += xcb_block_len + xcb_pad
  9516. if uint32(0) != xcb_pad {
  9517. xcb_tmp += uintptr(xcb_pad)
  9518. xcb_pad = uint32(0)
  9519. }
  9520. xcb_block_len = uint32(0)
  9521. /* pixmap_formats */
  9522. xcb_block_len += uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fpixmap_formats_len) * uint32(8)
  9523. xcb_tmp += uintptr(xcb_block_len)
  9524. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  9525. /* insert padding */
  9526. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9527. xcb_buffer_len += xcb_block_len + xcb_pad
  9528. if uint32(0) != xcb_pad {
  9529. xcb_tmp += uintptr(xcb_pad)
  9530. xcb_pad = uint32(0)
  9531. }
  9532. xcb_block_len = uint32(0)
  9533. /* roots */
  9534. i = uint32(0)
  9535. for {
  9536. if !(i < uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Froots_len)) {
  9537. break
  9538. }
  9539. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_screen_sizeof(tls, xcb_tmp))
  9540. xcb_block_len += xcb_tmp_len
  9541. xcb_tmp += uintptr(xcb_tmp_len)
  9542. goto _1
  9543. _1:
  9544. ;
  9545. i++
  9546. }
  9547. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9548. /* insert padding */
  9549. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9550. xcb_buffer_len += xcb_block_len + xcb_pad
  9551. if uint32(0) != xcb_pad {
  9552. xcb_tmp += uintptr(xcb_pad)
  9553. xcb_pad = uint32(0)
  9554. }
  9555. xcb_block_len = uint32(0)
  9556. return libc.Int32FromUint32(xcb_buffer_len)
  9557. }
  9558. func Xxcb_setup_vendor(tls *libc.TLS, R uintptr) (r uintptr) {
  9559. return R + libc.UintptrFromInt32(1)*40
  9560. }
  9561. func Xxcb_setup_vendor_length(tls *libc.TLS, R uintptr) (r int32) {
  9562. return libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9563. }
  9564. func Xxcb_setup_vendor_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9565. var i Txcb_generic_iterator_t
  9566. _ = i
  9567. i.Fdata = R + libc.UintptrFromInt32(1)*40 + uintptr((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9568. i.Frem = 0
  9569. i.Findex = int32(i.Fdata) - int32(R)
  9570. return i
  9571. }
  9572. func Xxcb_setup_pixmap_formats(tls *libc.TLS, R uintptr) (r uintptr) {
  9573. var prev Txcb_generic_iterator_t
  9574. _ = prev
  9575. prev = Xxcb_setup_vendor_end(tls, R)
  9576. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9577. }
  9578. func Xxcb_setup_pixmap_formats_length(tls *libc.TLS, R uintptr) (r int32) {
  9579. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9580. }
  9581. func Xxcb_setup_pixmap_formats_iterator(tls *libc.TLS, R uintptr) (r Txcb_format_iterator_t) {
  9582. var i Txcb_format_iterator_t
  9583. var prev Txcb_generic_iterator_t
  9584. _, _ = i, prev
  9585. prev = Xxcb_setup_vendor_end(tls, R)
  9586. i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)))
  9587. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9588. i.Findex = int32(i.Fdata) - int32(R)
  9589. return i
  9590. }
  9591. func Xxcb_setup_roots_length(tls *libc.TLS, R uintptr) (r int32) {
  9592. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9593. }
  9594. func Xxcb_setup_roots_iterator(tls *libc.TLS, R uintptr) (r Txcb_screen_iterator_t) {
  9595. var i Txcb_screen_iterator_t
  9596. var prev Txcb_generic_iterator_t
  9597. _, _ = i, prev
  9598. prev = Xxcb_format_end(tls, Xxcb_setup_pixmap_formats_iterator(tls, R))
  9599. i.Fdata = prev.Fdata + uintptr(libc.Uint32FromInt32(-prev.Findex)&libc.Uint32FromInt32(3))
  9600. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9601. i.Findex = int32(i.Fdata) - int32(R)
  9602. return i
  9603. }
  9604. func Xxcb_setup_next(tls *libc.TLS, i uintptr) {
  9605. var R uintptr
  9606. var child Txcb_generic_iterator_t
  9607. _, _ = R, child
  9608. R = (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata
  9609. child.Fdata = R + uintptr(Xxcb_setup_sizeof(tls, R))
  9610. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata)
  9611. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Frem--
  9612. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9613. }
  9614. func Xxcb_setup_end(tls *libc.TLS, _i Txcb_setup_iterator_t) (r Txcb_generic_iterator_t) {
  9615. bp := tls.Alloc(16)
  9616. defer tls.Free(16)
  9617. *(*Txcb_setup_iterator_t)(unsafe.Pointer(bp)) = _i
  9618. var ret Txcb_generic_iterator_t
  9619. _ = ret
  9620. for (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9621. Xxcb_setup_next(tls, bp)
  9622. }
  9623. ret.Fdata = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Fdata
  9624. ret.Frem = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem
  9625. ret.Findex = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Findex
  9626. return ret
  9627. }
  9628. func Xxcb_client_message_data_next(tls *libc.TLS, i uintptr) {
  9629. var p1 uintptr
  9630. _ = p1
  9631. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Frem--
  9632. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Fdata += 20
  9633. p1 = i + 8
  9634. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(20))
  9635. }
  9636. func Xxcb_client_message_data_end(tls *libc.TLS, i Txcb_client_message_data_iterator_t) (r Txcb_generic_iterator_t) {
  9637. var ret Txcb_generic_iterator_t
  9638. _ = ret
  9639. ret.Fdata = i.Fdata + uintptr(i.Frem)*20
  9640. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  9641. ret.Frem = 0
  9642. return ret
  9643. }
  9644. func Xxcb_create_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9645. bp := tls.Alloc(16)
  9646. defer tls.Free(16)
  9647. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  9648. var xcb_out, xcb_tmp uintptr
  9649. var xcb_parts [16]Tiovec
  9650. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  9651. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  9652. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  9653. xcb_buffer_len = uint32(0)
  9654. xcb_align_to = uint32(0)
  9655. xcb_padding_offset = uint32(0)
  9656. xcb_pad = uint32(0)
  9657. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  9658. xcb_parts_idx = uint32(0)
  9659. xcb_block_len = uint32(0)
  9660. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9661. /* xcb_create_window_value_list_t.background_pixmap */
  9662. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  9663. xcb_block_len += uint32(4)
  9664. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9665. xcb_parts_idx++
  9666. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9667. }
  9668. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9669. /* xcb_create_window_value_list_t.background_pixel */
  9670. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  9671. xcb_block_len += uint32(4)
  9672. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9673. xcb_parts_idx++
  9674. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9675. }
  9676. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9677. /* xcb_create_window_value_list_t.border_pixmap */
  9678. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  9679. xcb_block_len += uint32(4)
  9680. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9681. xcb_parts_idx++
  9682. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9683. }
  9684. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9685. /* xcb_create_window_value_list_t.border_pixel */
  9686. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  9687. xcb_block_len += uint32(4)
  9688. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9689. xcb_parts_idx++
  9690. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9691. }
  9692. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9693. /* xcb_create_window_value_list_t.bit_gravity */
  9694. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  9695. xcb_block_len += uint32(4)
  9696. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9697. xcb_parts_idx++
  9698. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9699. }
  9700. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9701. /* xcb_create_window_value_list_t.win_gravity */
  9702. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  9703. xcb_block_len += uint32(4)
  9704. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9705. xcb_parts_idx++
  9706. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9707. }
  9708. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9709. /* xcb_create_window_value_list_t.backing_store */
  9710. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  9711. xcb_block_len += uint32(4)
  9712. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9713. xcb_parts_idx++
  9714. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9715. }
  9716. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9717. /* xcb_create_window_value_list_t.backing_planes */
  9718. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  9719. xcb_block_len += uint32(4)
  9720. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9721. xcb_parts_idx++
  9722. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9723. }
  9724. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9725. /* xcb_create_window_value_list_t.backing_pixel */
  9726. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  9727. xcb_block_len += uint32(4)
  9728. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9729. xcb_parts_idx++
  9730. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9731. }
  9732. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9733. /* xcb_create_window_value_list_t.override_redirect */
  9734. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  9735. xcb_block_len += uint32(4)
  9736. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9737. xcb_parts_idx++
  9738. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9739. }
  9740. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9741. /* xcb_create_window_value_list_t.save_under */
  9742. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  9743. xcb_block_len += uint32(4)
  9744. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9745. xcb_parts_idx++
  9746. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9747. }
  9748. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9749. /* xcb_create_window_value_list_t.event_mask */
  9750. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  9751. xcb_block_len += uint32(4)
  9752. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9753. xcb_parts_idx++
  9754. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9755. }
  9756. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9757. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9758. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  9759. xcb_block_len += uint32(4)
  9760. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9761. xcb_parts_idx++
  9762. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9763. }
  9764. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9765. /* xcb_create_window_value_list_t.colormap */
  9766. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  9767. xcb_block_len += uint32(4)
  9768. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9769. xcb_parts_idx++
  9770. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9771. }
  9772. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9773. /* xcb_create_window_value_list_t.cursor */
  9774. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  9775. xcb_block_len += uint32(4)
  9776. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  9777. xcb_parts_idx++
  9778. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9779. }
  9780. /* insert padding */
  9781. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9782. xcb_buffer_len += xcb_block_len + xcb_pad
  9783. if uint32(0) != xcb_pad {
  9784. xcb_parts[xcb_parts_idx].Fiov_base = bp
  9785. xcb_parts[xcb_parts_idx].Fiov_len = xcb_pad
  9786. xcb_parts_idx++
  9787. xcb_pad = uint32(0)
  9788. }
  9789. xcb_block_len = uint32(0)
  9790. xcb_padding_offset = uint32(0)
  9791. if libc.UintptrFromInt32(0) == xcb_out {
  9792. /* allocate memory */
  9793. xcb_out = libc.Xmalloc(tls, xcb_buffer_len)
  9794. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  9795. }
  9796. xcb_tmp = xcb_out
  9797. i = uint32(0)
  9798. for {
  9799. if !(i < xcb_parts_idx) {
  9800. break
  9801. }
  9802. if uintptr(0) != xcb_parts[i].Fiov_base && uint32(0) != xcb_parts[i].Fiov_len {
  9803. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  9804. }
  9805. if uint32(0) != xcb_parts[i].Fiov_len {
  9806. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  9807. }
  9808. goto _1
  9809. _1:
  9810. ;
  9811. i++
  9812. }
  9813. return libc.Int32FromUint32(xcb_buffer_len)
  9814. }
  9815. func Xxcb_create_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9816. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  9817. var xcb_tmp uintptr
  9818. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  9819. xcb_tmp = _buffer
  9820. xcb_buffer_len = uint32(0)
  9821. xcb_block_len = uint32(0)
  9822. xcb_pad = uint32(0)
  9823. xcb_align_to = uint32(0)
  9824. xcb_padding_offset = uint32(0)
  9825. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9826. /* xcb_create_window_value_list_t.background_pixmap */
  9827. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9828. xcb_block_len += uint32(4)
  9829. xcb_tmp += uintptr(4)
  9830. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9831. }
  9832. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9833. /* xcb_create_window_value_list_t.background_pixel */
  9834. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9835. xcb_block_len += uint32(4)
  9836. xcb_tmp += uintptr(4)
  9837. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9838. }
  9839. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9840. /* xcb_create_window_value_list_t.border_pixmap */
  9841. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9842. xcb_block_len += uint32(4)
  9843. xcb_tmp += uintptr(4)
  9844. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9845. }
  9846. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9847. /* xcb_create_window_value_list_t.border_pixel */
  9848. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9849. xcb_block_len += uint32(4)
  9850. xcb_tmp += uintptr(4)
  9851. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9852. }
  9853. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9854. /* xcb_create_window_value_list_t.bit_gravity */
  9855. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9856. xcb_block_len += uint32(4)
  9857. xcb_tmp += uintptr(4)
  9858. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9859. }
  9860. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9861. /* xcb_create_window_value_list_t.win_gravity */
  9862. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9863. xcb_block_len += uint32(4)
  9864. xcb_tmp += uintptr(4)
  9865. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9866. }
  9867. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9868. /* xcb_create_window_value_list_t.backing_store */
  9869. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9870. xcb_block_len += uint32(4)
  9871. xcb_tmp += uintptr(4)
  9872. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9873. }
  9874. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9875. /* xcb_create_window_value_list_t.backing_planes */
  9876. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9877. xcb_block_len += uint32(4)
  9878. xcb_tmp += uintptr(4)
  9879. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9880. }
  9881. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9882. /* xcb_create_window_value_list_t.backing_pixel */
  9883. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9884. xcb_block_len += uint32(4)
  9885. xcb_tmp += uintptr(4)
  9886. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9887. }
  9888. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9889. /* xcb_create_window_value_list_t.override_redirect */
  9890. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9891. xcb_block_len += uint32(4)
  9892. xcb_tmp += uintptr(4)
  9893. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9894. }
  9895. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9896. /* xcb_create_window_value_list_t.save_under */
  9897. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9898. xcb_block_len += uint32(4)
  9899. xcb_tmp += uintptr(4)
  9900. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9901. }
  9902. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9903. /* xcb_create_window_value_list_t.event_mask */
  9904. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9905. xcb_block_len += uint32(4)
  9906. xcb_tmp += uintptr(4)
  9907. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9908. }
  9909. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9910. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9911. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9912. xcb_block_len += uint32(4)
  9913. xcb_tmp += uintptr(4)
  9914. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9915. }
  9916. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9917. /* xcb_create_window_value_list_t.colormap */
  9918. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  9919. xcb_block_len += uint32(4)
  9920. xcb_tmp += uintptr(4)
  9921. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9922. }
  9923. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9924. /* xcb_create_window_value_list_t.cursor */
  9925. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  9926. xcb_block_len += uint32(4)
  9927. xcb_tmp += uintptr(4)
  9928. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  9929. }
  9930. /* insert padding */
  9931. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9932. xcb_buffer_len += xcb_block_len + xcb_pad
  9933. if uint32(0) != xcb_pad {
  9934. xcb_tmp += uintptr(xcb_pad)
  9935. xcb_pad = uint32(0)
  9936. }
  9937. xcb_block_len = uint32(0)
  9938. xcb_padding_offset = uint32(0)
  9939. return libc.Int32FromUint32(xcb_buffer_len)
  9940. }
  9941. func Xxcb_create_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  9942. bp := tls.Alloc(64)
  9943. defer tls.Free(64)
  9944. var _ /* _aux at bp+0 */ Txcb_create_window_value_list_t
  9945. return Xxcb_create_window_value_list_unpack(tls, _buffer, value_mask, bp)
  9946. }
  9947. func Xxcb_create_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9948. var _aux, xcb_tmp uintptr
  9949. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9950. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9951. xcb_tmp = _buffer
  9952. _aux = _buffer
  9953. xcb_buffer_len = uint32(0)
  9954. xcb_block_len = uint32(0)
  9955. xcb_pad = uint32(0)
  9956. xcb_align_to = uint32(0)
  9957. xcb_block_len += uint32(32)
  9958. xcb_tmp += uintptr(xcb_block_len)
  9959. xcb_buffer_len += xcb_block_len
  9960. xcb_block_len = uint32(0)
  9961. /* value_list */
  9962. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  9963. xcb_tmp += uintptr(xcb_block_len)
  9964. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  9965. /* insert padding */
  9966. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9967. xcb_buffer_len += xcb_block_len + xcb_pad
  9968. if uint32(0) != xcb_pad {
  9969. xcb_tmp += uintptr(xcb_pad)
  9970. xcb_pad = uint32(0)
  9971. }
  9972. xcb_block_len = uint32(0)
  9973. return libc.Int32FromUint32(xcb_buffer_len)
  9974. }
  9975. 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) {
  9976. bp := tls.Alloc(80)
  9977. defer tls.Free(80)
  9978. var xcb_ret Txcb_void_cookie_t
  9979. var _ /* xcb_out at bp+40 */ Txcb_create_window_request_t
  9980. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9981. _ = xcb_ret
  9982. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fdepth = depth
  9983. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwid = wid
  9984. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fparent = parent
  9985. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fx = x
  9986. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fy = y
  9987. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwidth = width
  9988. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fheight = height
  9989. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fborder_width = border_width
  9990. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).F_class = _class
  9991. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvisual = visual
  9992. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  9993. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  9994. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  9995. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9996. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  9997. /* xcb_create_window_value_list_t value_list */
  9998. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9999. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  10000. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req)))
  10001. return xcb_ret
  10002. }
  10003. var _xcb_req = Txcb_protocol_request_t{
  10004. Fcount: uint32(3),
  10005. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10006. Fisvoid: uint8(1),
  10007. }
  10008. 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) {
  10009. bp := tls.Alloc(80)
  10010. defer tls.Free(80)
  10011. var xcb_ret Txcb_void_cookie_t
  10012. var _ /* xcb_out at bp+40 */ Txcb_create_window_request_t
  10013. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10014. _ = xcb_ret
  10015. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fdepth = depth
  10016. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwid = wid
  10017. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fparent = parent
  10018. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fx = x
  10019. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fy = y
  10020. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwidth = width
  10021. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fheight = height
  10022. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fborder_width = border_width
  10023. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).F_class = _class
  10024. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvisual = visual
  10025. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  10026. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  10027. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  10028. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10029. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10030. /* xcb_create_window_value_list_t value_list */
  10031. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10032. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  10033. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req1)))
  10034. return xcb_ret
  10035. }
  10036. var _xcb_req1 = Txcb_protocol_request_t{
  10037. Fcount: uint32(3),
  10038. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10039. Fisvoid: uint8(1),
  10040. }
  10041. 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) {
  10042. bp := tls.Alloc(80)
  10043. defer tls.Free(80)
  10044. var xcb_ret Txcb_void_cookie_t
  10045. var _ /* xcb_aux0 at bp+72 */ uintptr
  10046. var _ /* xcb_out at bp+40 */ Txcb_create_window_request_t
  10047. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10048. _ = xcb_ret
  10049. *(*uintptr)(unsafe.Pointer(bp + 72)) = uintptr(0)
  10050. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fdepth = depth
  10051. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwid = wid
  10052. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fparent = parent
  10053. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fx = x
  10054. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fy = y
  10055. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwidth = width
  10056. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fheight = height
  10057. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fborder_width = border_width
  10058. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).F_class = _class
  10059. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvisual = visual
  10060. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  10061. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  10062. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  10063. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10064. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10065. /* xcb_create_window_value_list_t value_list */
  10066. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+72, value_mask, value_list))
  10067. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 72))
  10068. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req2)))
  10069. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 72)))
  10070. return xcb_ret
  10071. }
  10072. var _xcb_req2 = Txcb_protocol_request_t{
  10073. Fcount: uint32(3),
  10074. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10075. Fisvoid: uint8(1),
  10076. }
  10077. 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) {
  10078. bp := tls.Alloc(80)
  10079. defer tls.Free(80)
  10080. var xcb_ret Txcb_void_cookie_t
  10081. var _ /* xcb_aux0 at bp+72 */ uintptr
  10082. var _ /* xcb_out at bp+40 */ Txcb_create_window_request_t
  10083. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10084. _ = xcb_ret
  10085. *(*uintptr)(unsafe.Pointer(bp + 72)) = uintptr(0)
  10086. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fdepth = depth
  10087. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwid = wid
  10088. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fparent = parent
  10089. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fx = x
  10090. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fy = y
  10091. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fwidth = width
  10092. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fheight = height
  10093. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fborder_width = border_width
  10094. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).F_class = _class
  10095. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvisual = visual
  10096. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  10097. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  10098. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  10099. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10100. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10101. /* xcb_create_window_value_list_t value_list */
  10102. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+72, value_mask, value_list))
  10103. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 72))
  10104. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req3)))
  10105. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 72)))
  10106. return xcb_ret
  10107. }
  10108. var _xcb_req3 = Txcb_protocol_request_t{
  10109. Fcount: uint32(3),
  10110. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10111. Fisvoid: uint8(1),
  10112. }
  10113. func Xxcb_create_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10114. return R + libc.UintptrFromInt32(1)*32
  10115. }
  10116. func Xxcb_change_window_attributes_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10117. bp := tls.Alloc(16)
  10118. defer tls.Free(16)
  10119. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10120. var xcb_out, xcb_tmp uintptr
  10121. var xcb_parts [16]Tiovec
  10122. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10123. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10124. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10125. xcb_buffer_len = uint32(0)
  10126. xcb_align_to = uint32(0)
  10127. xcb_padding_offset = uint32(0)
  10128. xcb_pad = uint32(0)
  10129. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10130. xcb_parts_idx = uint32(0)
  10131. xcb_block_len = uint32(0)
  10132. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10133. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10134. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10135. xcb_block_len += uint32(4)
  10136. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10137. xcb_parts_idx++
  10138. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10139. }
  10140. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10141. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10142. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10143. xcb_block_len += uint32(4)
  10144. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10145. xcb_parts_idx++
  10146. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10147. }
  10148. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10149. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10150. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10151. xcb_block_len += uint32(4)
  10152. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10153. xcb_parts_idx++
  10154. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10155. }
  10156. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10157. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10158. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10159. xcb_block_len += uint32(4)
  10160. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10161. xcb_parts_idx++
  10162. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10163. }
  10164. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10165. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10166. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10167. xcb_block_len += uint32(4)
  10168. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10169. xcb_parts_idx++
  10170. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10171. }
  10172. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10173. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10174. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10175. xcb_block_len += uint32(4)
  10176. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10177. xcb_parts_idx++
  10178. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10179. }
  10180. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10181. /* xcb_change_window_attributes_value_list_t.backing_store */
  10182. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10183. xcb_block_len += uint32(4)
  10184. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10185. xcb_parts_idx++
  10186. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10187. }
  10188. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10189. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10190. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  10191. xcb_block_len += uint32(4)
  10192. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10193. xcb_parts_idx++
  10194. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10195. }
  10196. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10197. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10198. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  10199. xcb_block_len += uint32(4)
  10200. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10201. xcb_parts_idx++
  10202. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10203. }
  10204. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10205. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10206. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  10207. xcb_block_len += uint32(4)
  10208. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10209. xcb_parts_idx++
  10210. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10211. }
  10212. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10213. /* xcb_change_window_attributes_value_list_t.save_under */
  10214. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  10215. xcb_block_len += uint32(4)
  10216. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10217. xcb_parts_idx++
  10218. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10219. }
  10220. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10221. /* xcb_change_window_attributes_value_list_t.event_mask */
  10222. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  10223. xcb_block_len += uint32(4)
  10224. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10225. xcb_parts_idx++
  10226. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10227. }
  10228. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10229. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10230. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  10231. xcb_block_len += uint32(4)
  10232. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10233. xcb_parts_idx++
  10234. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10235. }
  10236. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10237. /* xcb_change_window_attributes_value_list_t.colormap */
  10238. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  10239. xcb_block_len += uint32(4)
  10240. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10241. xcb_parts_idx++
  10242. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10243. }
  10244. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10245. /* xcb_change_window_attributes_value_list_t.cursor */
  10246. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  10247. xcb_block_len += uint32(4)
  10248. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10249. xcb_parts_idx++
  10250. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10251. }
  10252. /* insert padding */
  10253. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10254. xcb_buffer_len += xcb_block_len + xcb_pad
  10255. if uint32(0) != xcb_pad {
  10256. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10257. xcb_parts[xcb_parts_idx].Fiov_len = xcb_pad
  10258. xcb_parts_idx++
  10259. xcb_pad = uint32(0)
  10260. }
  10261. xcb_block_len = uint32(0)
  10262. xcb_padding_offset = uint32(0)
  10263. if libc.UintptrFromInt32(0) == xcb_out {
  10264. /* allocate memory */
  10265. xcb_out = libc.Xmalloc(tls, xcb_buffer_len)
  10266. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10267. }
  10268. xcb_tmp = xcb_out
  10269. i = uint32(0)
  10270. for {
  10271. if !(i < xcb_parts_idx) {
  10272. break
  10273. }
  10274. if uintptr(0) != xcb_parts[i].Fiov_base && uint32(0) != xcb_parts[i].Fiov_len {
  10275. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10276. }
  10277. if uint32(0) != xcb_parts[i].Fiov_len {
  10278. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10279. }
  10280. goto _1
  10281. _1:
  10282. ;
  10283. i++
  10284. }
  10285. return libc.Int32FromUint32(xcb_buffer_len)
  10286. }
  10287. func Xxcb_change_window_attributes_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10288. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10289. var xcb_tmp uintptr
  10290. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10291. xcb_tmp = _buffer
  10292. xcb_buffer_len = uint32(0)
  10293. xcb_block_len = uint32(0)
  10294. xcb_pad = uint32(0)
  10295. xcb_align_to = uint32(0)
  10296. xcb_padding_offset = uint32(0)
  10297. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10298. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10299. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10300. xcb_block_len += uint32(4)
  10301. xcb_tmp += uintptr(4)
  10302. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10303. }
  10304. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10305. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10306. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10307. xcb_block_len += uint32(4)
  10308. xcb_tmp += uintptr(4)
  10309. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10310. }
  10311. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10312. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10313. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10314. xcb_block_len += uint32(4)
  10315. xcb_tmp += uintptr(4)
  10316. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10317. }
  10318. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10319. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10320. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10321. xcb_block_len += uint32(4)
  10322. xcb_tmp += uintptr(4)
  10323. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10324. }
  10325. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10326. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10327. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10328. xcb_block_len += uint32(4)
  10329. xcb_tmp += uintptr(4)
  10330. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10331. }
  10332. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10333. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10334. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10335. xcb_block_len += uint32(4)
  10336. xcb_tmp += uintptr(4)
  10337. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10338. }
  10339. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10340. /* xcb_change_window_attributes_value_list_t.backing_store */
  10341. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10342. xcb_block_len += uint32(4)
  10343. xcb_tmp += uintptr(4)
  10344. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10345. }
  10346. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10347. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10348. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10349. xcb_block_len += uint32(4)
  10350. xcb_tmp += uintptr(4)
  10351. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10352. }
  10353. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10354. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10355. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10356. xcb_block_len += uint32(4)
  10357. xcb_tmp += uintptr(4)
  10358. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10359. }
  10360. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10361. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10362. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10363. xcb_block_len += uint32(4)
  10364. xcb_tmp += uintptr(4)
  10365. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10366. }
  10367. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10368. /* xcb_change_window_attributes_value_list_t.save_under */
  10369. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10370. xcb_block_len += uint32(4)
  10371. xcb_tmp += uintptr(4)
  10372. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10373. }
  10374. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10375. /* xcb_change_window_attributes_value_list_t.event_mask */
  10376. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10377. xcb_block_len += uint32(4)
  10378. xcb_tmp += uintptr(4)
  10379. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10380. }
  10381. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10382. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10383. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10384. xcb_block_len += uint32(4)
  10385. xcb_tmp += uintptr(4)
  10386. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10387. }
  10388. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10389. /* xcb_change_window_attributes_value_list_t.colormap */
  10390. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  10391. xcb_block_len += uint32(4)
  10392. xcb_tmp += uintptr(4)
  10393. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10394. }
  10395. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10396. /* xcb_change_window_attributes_value_list_t.cursor */
  10397. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  10398. xcb_block_len += uint32(4)
  10399. xcb_tmp += uintptr(4)
  10400. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10401. }
  10402. /* insert padding */
  10403. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10404. xcb_buffer_len += xcb_block_len + xcb_pad
  10405. if uint32(0) != xcb_pad {
  10406. xcb_tmp += uintptr(xcb_pad)
  10407. xcb_pad = uint32(0)
  10408. }
  10409. xcb_block_len = uint32(0)
  10410. xcb_padding_offset = uint32(0)
  10411. return libc.Int32FromUint32(xcb_buffer_len)
  10412. }
  10413. func Xxcb_change_window_attributes_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  10414. bp := tls.Alloc(64)
  10415. defer tls.Free(64)
  10416. var _ /* _aux at bp+0 */ Txcb_change_window_attributes_value_list_t
  10417. return Xxcb_change_window_attributes_value_list_unpack(tls, _buffer, value_mask, bp)
  10418. }
  10419. func Xxcb_change_window_attributes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10420. var _aux, xcb_tmp uintptr
  10421. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10422. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10423. xcb_tmp = _buffer
  10424. _aux = _buffer
  10425. xcb_buffer_len = uint32(0)
  10426. xcb_block_len = uint32(0)
  10427. xcb_pad = uint32(0)
  10428. xcb_align_to = uint32(0)
  10429. xcb_block_len += uint32(12)
  10430. xcb_tmp += uintptr(xcb_block_len)
  10431. xcb_buffer_len += xcb_block_len
  10432. xcb_block_len = uint32(0)
  10433. /* value_list */
  10434. 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))
  10435. xcb_tmp += uintptr(xcb_block_len)
  10436. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  10437. /* insert padding */
  10438. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10439. xcb_buffer_len += xcb_block_len + xcb_pad
  10440. if uint32(0) != xcb_pad {
  10441. xcb_tmp += uintptr(xcb_pad)
  10442. xcb_pad = uint32(0)
  10443. }
  10444. xcb_block_len = uint32(0)
  10445. return libc.Int32FromUint32(xcb_buffer_len)
  10446. }
  10447. 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) {
  10448. bp := tls.Alloc(64)
  10449. defer tls.Free(64)
  10450. var xcb_ret Txcb_void_cookie_t
  10451. var _ /* xcb_out at bp+40 */ Txcb_change_window_attributes_request_t
  10452. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10453. _ = xcb_ret
  10454. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  10455. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  10456. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  10457. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  10458. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  10459. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10460. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10461. /* xcb_change_window_attributes_value_list_t value_list */
  10462. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10463. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10464. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req4)))
  10465. return xcb_ret
  10466. }
  10467. var _xcb_req4 = Txcb_protocol_request_t{
  10468. Fcount: uint32(3),
  10469. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10470. Fisvoid: uint8(1),
  10471. }
  10472. 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) {
  10473. bp := tls.Alloc(64)
  10474. defer tls.Free(64)
  10475. var xcb_ret Txcb_void_cookie_t
  10476. var _ /* xcb_out at bp+40 */ Txcb_change_window_attributes_request_t
  10477. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10478. _ = xcb_ret
  10479. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  10480. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  10481. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  10482. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  10483. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  10484. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10485. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10486. /* xcb_change_window_attributes_value_list_t value_list */
  10487. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10488. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10489. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req5)))
  10490. return xcb_ret
  10491. }
  10492. var _xcb_req5 = Txcb_protocol_request_t{
  10493. Fcount: uint32(3),
  10494. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10495. Fisvoid: uint8(1),
  10496. }
  10497. 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) {
  10498. bp := tls.Alloc(64)
  10499. defer tls.Free(64)
  10500. var xcb_ret Txcb_void_cookie_t
  10501. var _ /* xcb_aux0 at bp+52 */ uintptr
  10502. var _ /* xcb_out at bp+40 */ Txcb_change_window_attributes_request_t
  10503. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10504. _ = xcb_ret
  10505. *(*uintptr)(unsafe.Pointer(bp + 52)) = uintptr(0)
  10506. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  10507. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  10508. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  10509. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  10510. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  10511. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10512. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10513. /* xcb_change_window_attributes_value_list_t value_list */
  10514. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_window_attributes_value_list_serialize(tls, bp+52, value_mask, value_list))
  10515. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 52))
  10516. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req6)))
  10517. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 52)))
  10518. return xcb_ret
  10519. }
  10520. var _xcb_req6 = Txcb_protocol_request_t{
  10521. Fcount: uint32(3),
  10522. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10523. Fisvoid: uint8(1),
  10524. }
  10525. 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) {
  10526. bp := tls.Alloc(64)
  10527. defer tls.Free(64)
  10528. var xcb_ret Txcb_void_cookie_t
  10529. var _ /* xcb_aux0 at bp+52 */ uintptr
  10530. var _ /* xcb_out at bp+40 */ Txcb_change_window_attributes_request_t
  10531. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10532. _ = xcb_ret
  10533. *(*uintptr)(unsafe.Pointer(bp + 52)) = uintptr(0)
  10534. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  10535. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  10536. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  10537. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  10538. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  10539. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10540. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10541. /* xcb_change_window_attributes_value_list_t value_list */
  10542. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_window_attributes_value_list_serialize(tls, bp+52, value_mask, value_list))
  10543. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 52))
  10544. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req7)))
  10545. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 52)))
  10546. return xcb_ret
  10547. }
  10548. var _xcb_req7 = Txcb_protocol_request_t{
  10549. Fcount: uint32(3),
  10550. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10551. Fisvoid: uint8(1),
  10552. }
  10553. func Xxcb_change_window_attributes_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10554. return R + libc.UintptrFromInt32(1)*12
  10555. }
  10556. func Xxcb_get_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10557. bp := tls.Alloc(48)
  10558. defer tls.Free(48)
  10559. var xcb_ret Txcb_get_window_attributes_cookie_t
  10560. var _ /* xcb_out at bp+32 */ Txcb_get_window_attributes_request_t
  10561. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10562. _ = xcb_ret
  10563. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10564. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10565. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10566. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10567. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10568. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10569. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req8)))
  10570. return xcb_ret
  10571. }
  10572. var _xcb_req8 = Txcb_protocol_request_t{
  10573. Fcount: uint32(2),
  10574. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10575. }
  10576. func Xxcb_get_window_attributes_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10577. bp := tls.Alloc(48)
  10578. defer tls.Free(48)
  10579. var xcb_ret Txcb_get_window_attributes_cookie_t
  10580. var _ /* xcb_out at bp+32 */ Txcb_get_window_attributes_request_t
  10581. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10582. _ = xcb_ret
  10583. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10584. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10585. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10586. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10587. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10588. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10589. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req9)))
  10590. return xcb_ret
  10591. }
  10592. var _xcb_req9 = Txcb_protocol_request_t{
  10593. Fcount: uint32(2),
  10594. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10595. }
  10596. func Xxcb_get_window_attributes_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_window_attributes_cookie_t, e uintptr) (r uintptr) {
  10597. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  10598. }
  10599. func Xxcb_destroy_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10600. bp := tls.Alloc(48)
  10601. defer tls.Free(48)
  10602. var xcb_ret Txcb_void_cookie_t
  10603. var _ /* xcb_out at bp+32 */ Txcb_destroy_window_request_t
  10604. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10605. _ = xcb_ret
  10606. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10607. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10608. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10609. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10610. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10611. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10612. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req10)))
  10613. return xcb_ret
  10614. }
  10615. var _xcb_req10 = Txcb_protocol_request_t{
  10616. Fcount: uint32(2),
  10617. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10618. Fisvoid: uint8(1),
  10619. }
  10620. func Xxcb_destroy_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10621. bp := tls.Alloc(48)
  10622. defer tls.Free(48)
  10623. var xcb_ret Txcb_void_cookie_t
  10624. var _ /* xcb_out at bp+32 */ Txcb_destroy_window_request_t
  10625. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10626. _ = xcb_ret
  10627. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10628. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10629. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10630. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10631. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10632. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10633. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req11)))
  10634. return xcb_ret
  10635. }
  10636. var _xcb_req11 = Txcb_protocol_request_t{
  10637. Fcount: uint32(2),
  10638. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10639. Fisvoid: uint8(1),
  10640. }
  10641. func Xxcb_destroy_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10642. bp := tls.Alloc(48)
  10643. defer tls.Free(48)
  10644. var xcb_ret Txcb_void_cookie_t
  10645. var _ /* xcb_out at bp+32 */ Txcb_destroy_subwindows_request_t
  10646. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10647. _ = xcb_ret
  10648. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10649. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10650. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10651. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10652. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10653. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10654. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req12)))
  10655. return xcb_ret
  10656. }
  10657. var _xcb_req12 = Txcb_protocol_request_t{
  10658. Fcount: uint32(2),
  10659. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10660. Fisvoid: uint8(1),
  10661. }
  10662. func Xxcb_destroy_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10663. bp := tls.Alloc(48)
  10664. defer tls.Free(48)
  10665. var xcb_ret Txcb_void_cookie_t
  10666. var _ /* xcb_out at bp+32 */ Txcb_destroy_subwindows_request_t
  10667. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10668. _ = xcb_ret
  10669. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10670. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10671. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10672. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10673. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10674. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10675. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req13)))
  10676. return xcb_ret
  10677. }
  10678. var _xcb_req13 = Txcb_protocol_request_t{
  10679. Fcount: uint32(2),
  10680. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10681. Fisvoid: uint8(1),
  10682. }
  10683. func Xxcb_change_save_set_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10684. bp := tls.Alloc(48)
  10685. defer tls.Free(48)
  10686. var xcb_ret Txcb_void_cookie_t
  10687. var _ /* xcb_out at bp+32 */ Txcb_change_save_set_request_t
  10688. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10689. _ = xcb_ret
  10690. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  10691. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10692. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10693. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10694. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10695. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10696. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req14)))
  10697. return xcb_ret
  10698. }
  10699. var _xcb_req14 = Txcb_protocol_request_t{
  10700. Fcount: uint32(2),
  10701. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10702. Fisvoid: uint8(1),
  10703. }
  10704. func Xxcb_change_save_set(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10705. bp := tls.Alloc(48)
  10706. defer tls.Free(48)
  10707. var xcb_ret Txcb_void_cookie_t
  10708. var _ /* xcb_out at bp+32 */ Txcb_change_save_set_request_t
  10709. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10710. _ = xcb_ret
  10711. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  10712. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10713. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10714. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10715. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10716. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10717. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req15)))
  10718. return xcb_ret
  10719. }
  10720. var _xcb_req15 = Txcb_protocol_request_t{
  10721. Fcount: uint32(2),
  10722. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10723. Fisvoid: uint8(1),
  10724. }
  10725. 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) {
  10726. bp := tls.Alloc(48)
  10727. defer tls.Free(48)
  10728. var xcb_ret Txcb_void_cookie_t
  10729. var _ /* xcb_out at bp+32 */ Txcb_reparent_window_request_t
  10730. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10731. _ = xcb_ret
  10732. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10733. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10734. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fparent = parent
  10735. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  10736. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  10737. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10738. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  10739. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10740. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10741. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req16)))
  10742. return xcb_ret
  10743. }
  10744. var _xcb_req16 = Txcb_protocol_request_t{
  10745. Fcount: uint32(2),
  10746. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10747. Fisvoid: uint8(1),
  10748. }
  10749. 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) {
  10750. bp := tls.Alloc(48)
  10751. defer tls.Free(48)
  10752. var xcb_ret Txcb_void_cookie_t
  10753. var _ /* xcb_out at bp+32 */ Txcb_reparent_window_request_t
  10754. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10755. _ = xcb_ret
  10756. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10757. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10758. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fparent = parent
  10759. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  10760. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  10761. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10762. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  10763. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10764. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10765. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req17)))
  10766. return xcb_ret
  10767. }
  10768. var _xcb_req17 = Txcb_protocol_request_t{
  10769. Fcount: uint32(2),
  10770. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10771. Fisvoid: uint8(1),
  10772. }
  10773. func Xxcb_map_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10774. bp := tls.Alloc(48)
  10775. defer tls.Free(48)
  10776. var xcb_ret Txcb_void_cookie_t
  10777. var _ /* xcb_out at bp+32 */ Txcb_map_window_request_t
  10778. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10779. _ = xcb_ret
  10780. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10781. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10782. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10783. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10784. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10785. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10786. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req18)))
  10787. return xcb_ret
  10788. }
  10789. var _xcb_req18 = Txcb_protocol_request_t{
  10790. Fcount: uint32(2),
  10791. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10792. Fisvoid: uint8(1),
  10793. }
  10794. func Xxcb_map_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10795. bp := tls.Alloc(48)
  10796. defer tls.Free(48)
  10797. var xcb_ret Txcb_void_cookie_t
  10798. var _ /* xcb_out at bp+32 */ Txcb_map_window_request_t
  10799. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10800. _ = xcb_ret
  10801. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10802. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10803. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10804. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10805. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10806. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10807. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req19)))
  10808. return xcb_ret
  10809. }
  10810. var _xcb_req19 = Txcb_protocol_request_t{
  10811. Fcount: uint32(2),
  10812. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10813. Fisvoid: uint8(1),
  10814. }
  10815. func Xxcb_map_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10816. bp := tls.Alloc(48)
  10817. defer tls.Free(48)
  10818. var xcb_ret Txcb_void_cookie_t
  10819. var _ /* xcb_out at bp+32 */ Txcb_map_subwindows_request_t
  10820. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10821. _ = xcb_ret
  10822. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10823. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10824. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10825. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10826. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10827. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10828. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req20)))
  10829. return xcb_ret
  10830. }
  10831. var _xcb_req20 = Txcb_protocol_request_t{
  10832. Fcount: uint32(2),
  10833. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10834. Fisvoid: uint8(1),
  10835. }
  10836. func Xxcb_map_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10837. bp := tls.Alloc(48)
  10838. defer tls.Free(48)
  10839. var xcb_ret Txcb_void_cookie_t
  10840. var _ /* xcb_out at bp+32 */ Txcb_map_subwindows_request_t
  10841. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10842. _ = xcb_ret
  10843. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10844. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10845. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10846. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10847. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10848. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10849. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req21)))
  10850. return xcb_ret
  10851. }
  10852. var _xcb_req21 = Txcb_protocol_request_t{
  10853. Fcount: uint32(2),
  10854. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10855. Fisvoid: uint8(1),
  10856. }
  10857. func Xxcb_unmap_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10858. bp := tls.Alloc(48)
  10859. defer tls.Free(48)
  10860. var xcb_ret Txcb_void_cookie_t
  10861. var _ /* xcb_out at bp+32 */ Txcb_unmap_window_request_t
  10862. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10863. _ = xcb_ret
  10864. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10865. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10867. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10868. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10869. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10870. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req22)))
  10871. return xcb_ret
  10872. }
  10873. var _xcb_req22 = Txcb_protocol_request_t{
  10874. Fcount: uint32(2),
  10875. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10876. Fisvoid: uint8(1),
  10877. }
  10878. func Xxcb_unmap_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10879. bp := tls.Alloc(48)
  10880. defer tls.Free(48)
  10881. var xcb_ret Txcb_void_cookie_t
  10882. var _ /* xcb_out at bp+32 */ Txcb_unmap_window_request_t
  10883. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10884. _ = xcb_ret
  10885. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10886. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10887. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10888. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10889. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10890. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10891. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req23)))
  10892. return xcb_ret
  10893. }
  10894. var _xcb_req23 = Txcb_protocol_request_t{
  10895. Fcount: uint32(2),
  10896. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10897. Fisvoid: uint8(1),
  10898. }
  10899. func Xxcb_unmap_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10900. bp := tls.Alloc(48)
  10901. defer tls.Free(48)
  10902. var xcb_ret Txcb_void_cookie_t
  10903. var _ /* xcb_out at bp+32 */ Txcb_unmap_subwindows_request_t
  10904. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10905. _ = xcb_ret
  10906. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10907. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10909. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10910. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10911. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10912. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req24)))
  10913. return xcb_ret
  10914. }
  10915. var _xcb_req24 = Txcb_protocol_request_t{
  10916. Fcount: uint32(2),
  10917. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10918. Fisvoid: uint8(1),
  10919. }
  10920. func Xxcb_unmap_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10921. bp := tls.Alloc(48)
  10922. defer tls.Free(48)
  10923. var xcb_ret Txcb_void_cookie_t
  10924. var _ /* xcb_out at bp+32 */ Txcb_unmap_subwindows_request_t
  10925. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10926. _ = xcb_ret
  10927. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  10928. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  10929. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  10930. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  10931. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10932. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  10933. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req25)))
  10934. return xcb_ret
  10935. }
  10936. var _xcb_req25 = Txcb_protocol_request_t{
  10937. Fcount: uint32(2),
  10938. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10939. Fisvoid: uint8(1),
  10940. }
  10941. func Xxcb_configure_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10942. bp := tls.Alloc(16)
  10943. defer tls.Free(16)
  10944. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10945. var xcb_out, xcb_tmp uintptr
  10946. var xcb_parts [8]Tiovec
  10947. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10948. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10949. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10950. xcb_buffer_len = uint32(0)
  10951. xcb_align_to = uint32(0)
  10952. xcb_padding_offset = uint32(0)
  10953. xcb_pad = uint32(0)
  10954. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10955. xcb_parts_idx = uint32(0)
  10956. xcb_block_len = uint32(0)
  10957. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10958. /* xcb_configure_window_value_list_t.x */
  10959. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10960. xcb_block_len += uint32(4)
  10961. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10962. xcb_parts_idx++
  10963. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10964. }
  10965. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10966. /* xcb_configure_window_value_list_t.y */
  10967. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10968. xcb_block_len += uint32(4)
  10969. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10970. xcb_parts_idx++
  10971. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10972. }
  10973. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10974. /* xcb_configure_window_value_list_t.width */
  10975. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10976. xcb_block_len += uint32(4)
  10977. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10978. xcb_parts_idx++
  10979. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10980. }
  10981. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  10982. /* xcb_configure_window_value_list_t.height */
  10983. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10984. xcb_block_len += uint32(4)
  10985. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10986. xcb_parts_idx++
  10987. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10988. }
  10989. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  10990. /* xcb_configure_window_value_list_t.border_width */
  10991. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10992. xcb_block_len += uint32(4)
  10993. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  10994. xcb_parts_idx++
  10995. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  10996. }
  10997. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  10998. /* xcb_configure_window_value_list_t.sibling */
  10999. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  11000. xcb_block_len += uint32(4)
  11001. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  11002. xcb_parts_idx++
  11003. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11004. }
  11005. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  11006. /* xcb_configure_window_value_list_t.stack_mode */
  11007. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  11008. xcb_block_len += uint32(4)
  11009. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  11010. xcb_parts_idx++
  11011. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11012. }
  11013. /* insert padding */
  11014. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  11015. xcb_buffer_len += xcb_block_len + xcb_pad
  11016. if uint32(0) != xcb_pad {
  11017. xcb_parts[xcb_parts_idx].Fiov_base = bp
  11018. xcb_parts[xcb_parts_idx].Fiov_len = xcb_pad
  11019. xcb_parts_idx++
  11020. xcb_pad = uint32(0)
  11021. }
  11022. xcb_block_len = uint32(0)
  11023. xcb_padding_offset = uint32(0)
  11024. if libc.UintptrFromInt32(0) == xcb_out {
  11025. /* allocate memory */
  11026. xcb_out = libc.Xmalloc(tls, xcb_buffer_len)
  11027. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  11028. }
  11029. xcb_tmp = xcb_out
  11030. i = uint32(0)
  11031. for {
  11032. if !(i < xcb_parts_idx) {
  11033. break
  11034. }
  11035. if uintptr(0) != xcb_parts[i].Fiov_base && uint32(0) != xcb_parts[i].Fiov_len {
  11036. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  11037. }
  11038. if uint32(0) != xcb_parts[i].Fiov_len {
  11039. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  11040. }
  11041. goto _1
  11042. _1:
  11043. ;
  11044. i++
  11045. }
  11046. return libc.Int32FromUint32(xcb_buffer_len)
  11047. }
  11048. func Xxcb_configure_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  11049. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  11050. var xcb_tmp uintptr
  11051. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  11052. xcb_tmp = _buffer
  11053. xcb_buffer_len = uint32(0)
  11054. xcb_block_len = uint32(0)
  11055. xcb_pad = uint32(0)
  11056. xcb_align_to = uint32(0)
  11057. xcb_padding_offset = uint32(0)
  11058. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  11059. /* xcb_configure_window_value_list_t.x */
  11060. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fx = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  11061. xcb_block_len += uint32(4)
  11062. xcb_tmp += uintptr(4)
  11063. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11064. }
  11065. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  11066. /* xcb_configure_window_value_list_t.y */
  11067. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fy = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  11068. xcb_block_len += uint32(4)
  11069. xcb_tmp += uintptr(4)
  11070. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11071. }
  11072. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  11073. /* xcb_configure_window_value_list_t.width */
  11074. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fwidth = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11075. xcb_block_len += uint32(4)
  11076. xcb_tmp += uintptr(4)
  11077. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11078. }
  11079. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  11080. /* xcb_configure_window_value_list_t.height */
  11081. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fheight = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11082. xcb_block_len += uint32(4)
  11083. xcb_tmp += uintptr(4)
  11084. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11085. }
  11086. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  11087. /* xcb_configure_window_value_list_t.border_width */
  11088. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11089. xcb_block_len += uint32(4)
  11090. xcb_tmp += uintptr(4)
  11091. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11092. }
  11093. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  11094. /* xcb_configure_window_value_list_t.sibling */
  11095. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fsibling = *(*Txcb_window_t)(unsafe.Pointer(xcb_tmp))
  11096. xcb_block_len += uint32(4)
  11097. xcb_tmp += uintptr(4)
  11098. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11099. }
  11100. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  11101. /* xcb_configure_window_value_list_t.stack_mode */
  11102. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fstack_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11103. xcb_block_len += uint32(4)
  11104. xcb_tmp += uintptr(4)
  11105. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11106. }
  11107. /* insert padding */
  11108. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  11109. xcb_buffer_len += xcb_block_len + xcb_pad
  11110. if uint32(0) != xcb_pad {
  11111. xcb_tmp += uintptr(xcb_pad)
  11112. xcb_pad = uint32(0)
  11113. }
  11114. xcb_block_len = uint32(0)
  11115. xcb_padding_offset = uint32(0)
  11116. return libc.Int32FromUint32(xcb_buffer_len)
  11117. }
  11118. func Xxcb_configure_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t) (r int32) {
  11119. bp := tls.Alloc(32)
  11120. defer tls.Free(32)
  11121. var _ /* _aux at bp+0 */ Txcb_configure_window_value_list_t
  11122. return Xxcb_configure_window_value_list_unpack(tls, _buffer, value_mask, bp)
  11123. }
  11124. func Xxcb_configure_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11125. var _aux, xcb_tmp uintptr
  11126. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11127. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11128. xcb_tmp = _buffer
  11129. _aux = _buffer
  11130. xcb_buffer_len = uint32(0)
  11131. xcb_block_len = uint32(0)
  11132. xcb_pad = uint32(0)
  11133. xcb_align_to = uint32(0)
  11134. xcb_block_len += uint32(12)
  11135. xcb_tmp += uintptr(xcb_block_len)
  11136. xcb_buffer_len += xcb_block_len
  11137. xcb_block_len = uint32(0)
  11138. /* value_list */
  11139. xcb_block_len += libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_configure_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  11140. xcb_tmp += uintptr(xcb_block_len)
  11141. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  11142. /* insert padding */
  11143. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11144. xcb_buffer_len += xcb_block_len + xcb_pad
  11145. if uint32(0) != xcb_pad {
  11146. xcb_tmp += uintptr(xcb_pad)
  11147. xcb_pad = uint32(0)
  11148. }
  11149. xcb_block_len = uint32(0)
  11150. return libc.Int32FromUint32(xcb_buffer_len)
  11151. }
  11152. 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) {
  11153. bp := tls.Alloc(64)
  11154. defer tls.Free(64)
  11155. var xcb_ret Txcb_void_cookie_t
  11156. var _ /* xcb_out at bp+40 */ Txcb_configure_window_request_t
  11157. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11158. _ = xcb_ret
  11159. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  11160. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  11161. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  11162. libc.Xmemset(tls, bp+40+10, 0, uint32(2))
  11163. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  11164. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  11165. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11166. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11167. /* xcb_configure_window_value_list_t value_list */
  11168. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11169. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11170. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req26)))
  11171. return xcb_ret
  11172. }
  11173. var _xcb_req26 = Txcb_protocol_request_t{
  11174. Fcount: uint32(3),
  11175. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11176. Fisvoid: uint8(1),
  11177. }
  11178. 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) {
  11179. bp := tls.Alloc(64)
  11180. defer tls.Free(64)
  11181. var xcb_ret Txcb_void_cookie_t
  11182. var _ /* xcb_out at bp+40 */ Txcb_configure_window_request_t
  11183. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11184. _ = xcb_ret
  11185. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  11186. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  11187. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  11188. libc.Xmemset(tls, bp+40+10, 0, uint32(2))
  11189. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  11190. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  11191. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11192. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11193. /* xcb_configure_window_value_list_t value_list */
  11194. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11195. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11196. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req27)))
  11197. return xcb_ret
  11198. }
  11199. var _xcb_req27 = Txcb_protocol_request_t{
  11200. Fcount: uint32(3),
  11201. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11202. Fisvoid: uint8(1),
  11203. }
  11204. 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) {
  11205. bp := tls.Alloc(64)
  11206. defer tls.Free(64)
  11207. var xcb_ret Txcb_void_cookie_t
  11208. var _ /* xcb_aux0 at bp+52 */ uintptr
  11209. var _ /* xcb_out at bp+40 */ Txcb_configure_window_request_t
  11210. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11211. _ = xcb_ret
  11212. *(*uintptr)(unsafe.Pointer(bp + 52)) = uintptr(0)
  11213. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  11214. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  11215. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  11216. libc.Xmemset(tls, bp+40+10, 0, uint32(2))
  11217. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  11218. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  11219. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11220. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11221. /* xcb_configure_window_value_list_t value_list */
  11222. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+52, value_mask, value_list))
  11223. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 52))
  11224. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req28)))
  11225. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 52)))
  11226. return xcb_ret
  11227. }
  11228. var _xcb_req28 = Txcb_protocol_request_t{
  11229. Fcount: uint32(3),
  11230. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11231. Fisvoid: uint8(1),
  11232. }
  11233. 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) {
  11234. bp := tls.Alloc(64)
  11235. defer tls.Free(64)
  11236. var xcb_ret Txcb_void_cookie_t
  11237. var _ /* xcb_aux0 at bp+52 */ uintptr
  11238. var _ /* xcb_out at bp+40 */ Txcb_configure_window_request_t
  11239. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11240. _ = xcb_ret
  11241. *(*uintptr)(unsafe.Pointer(bp + 52)) = uintptr(0)
  11242. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  11243. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fwindow = window
  11244. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  11245. libc.Xmemset(tls, bp+40+10, 0, uint32(2))
  11246. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  11247. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  11248. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11249. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11250. /* xcb_configure_window_value_list_t value_list */
  11251. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+52, value_mask, value_list))
  11252. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 52))
  11253. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req29)))
  11254. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 52)))
  11255. return xcb_ret
  11256. }
  11257. var _xcb_req29 = Txcb_protocol_request_t{
  11258. Fcount: uint32(3),
  11259. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11260. Fisvoid: uint8(1),
  11261. }
  11262. func Xxcb_configure_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  11263. return R + libc.UintptrFromInt32(1)*12
  11264. }
  11265. func Xxcb_circulate_window_checked(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11266. bp := tls.Alloc(48)
  11267. defer tls.Free(48)
  11268. var xcb_ret Txcb_void_cookie_t
  11269. var _ /* xcb_out at bp+32 */ Txcb_circulate_window_request_t
  11270. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11271. _ = xcb_ret
  11272. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 32))).Fdirection = direction
  11273. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11274. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11275. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11276. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11278. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req30)))
  11279. return xcb_ret
  11280. }
  11281. var _xcb_req30 = Txcb_protocol_request_t{
  11282. Fcount: uint32(2),
  11283. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11284. Fisvoid: uint8(1),
  11285. }
  11286. func Xxcb_circulate_window(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11287. bp := tls.Alloc(48)
  11288. defer tls.Free(48)
  11289. var xcb_ret Txcb_void_cookie_t
  11290. var _ /* xcb_out at bp+32 */ Txcb_circulate_window_request_t
  11291. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11292. _ = xcb_ret
  11293. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 32))).Fdirection = direction
  11294. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11295. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11296. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11299. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req31)))
  11300. return xcb_ret
  11301. }
  11302. var _xcb_req31 = Txcb_protocol_request_t{
  11303. Fcount: uint32(2),
  11304. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11305. Fisvoid: uint8(1),
  11306. }
  11307. func Xxcb_get_geometry(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11308. bp := tls.Alloc(48)
  11309. defer tls.Free(48)
  11310. var xcb_ret Txcb_get_geometry_cookie_t
  11311. var _ /* xcb_out at bp+32 */ Txcb_get_geometry_request_t
  11312. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11313. _ = xcb_ret
  11314. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11315. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  11316. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11317. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11318. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11320. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req32)))
  11321. return xcb_ret
  11322. }
  11323. var _xcb_req32 = Txcb_protocol_request_t{
  11324. Fcount: uint32(2),
  11325. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11326. }
  11327. func Xxcb_get_geometry_unchecked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11328. bp := tls.Alloc(48)
  11329. defer tls.Free(48)
  11330. var xcb_ret Txcb_get_geometry_cookie_t
  11331. var _ /* xcb_out at bp+32 */ Txcb_get_geometry_request_t
  11332. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11333. _ = xcb_ret
  11334. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11335. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  11336. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11337. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11338. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11339. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11340. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req33)))
  11341. return xcb_ret
  11342. }
  11343. var _xcb_req33 = Txcb_protocol_request_t{
  11344. Fcount: uint32(2),
  11345. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11346. }
  11347. func Xxcb_get_geometry_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_geometry_cookie_t, e uintptr) (r uintptr) {
  11348. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11349. }
  11350. func Xxcb_query_tree_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11351. var _aux, xcb_tmp uintptr
  11352. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11353. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11354. xcb_tmp = _buffer
  11355. _aux = _buffer
  11356. xcb_buffer_len = uint32(0)
  11357. xcb_block_len = uint32(0)
  11358. xcb_pad = uint32(0)
  11359. xcb_align_to = uint32(0)
  11360. xcb_block_len += uint32(32)
  11361. xcb_tmp += uintptr(xcb_block_len)
  11362. xcb_buffer_len += xcb_block_len
  11363. xcb_block_len = uint32(0)
  11364. /* children */
  11365. xcb_block_len += uint32((*Txcb_query_tree_reply_t)(unsafe.Pointer(_aux)).Fchildren_len) * uint32(4)
  11366. xcb_tmp += uintptr(xcb_block_len)
  11367. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11368. /* insert padding */
  11369. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11370. xcb_buffer_len += xcb_block_len + xcb_pad
  11371. if uint32(0) != xcb_pad {
  11372. xcb_tmp += uintptr(xcb_pad)
  11373. xcb_pad = uint32(0)
  11374. }
  11375. xcb_block_len = uint32(0)
  11376. return libc.Int32FromUint32(xcb_buffer_len)
  11377. }
  11378. func Xxcb_query_tree(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11379. bp := tls.Alloc(48)
  11380. defer tls.Free(48)
  11381. var xcb_ret Txcb_query_tree_cookie_t
  11382. var _ /* xcb_out at bp+32 */ Txcb_query_tree_request_t
  11383. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11384. _ = xcb_ret
  11385. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11386. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11387. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11388. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11389. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11390. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11391. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req34)))
  11392. return xcb_ret
  11393. }
  11394. var _xcb_req34 = Txcb_protocol_request_t{
  11395. Fcount: uint32(2),
  11396. Fopcode: uint8(m_XCB_QUERY_TREE),
  11397. }
  11398. func Xxcb_query_tree_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11399. bp := tls.Alloc(48)
  11400. defer tls.Free(48)
  11401. var xcb_ret Txcb_query_tree_cookie_t
  11402. var _ /* xcb_out at bp+32 */ Txcb_query_tree_request_t
  11403. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11404. _ = xcb_ret
  11405. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11406. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11407. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11408. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11409. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11411. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req35)))
  11412. return xcb_ret
  11413. }
  11414. var _xcb_req35 = Txcb_protocol_request_t{
  11415. Fcount: uint32(2),
  11416. Fopcode: uint8(m_XCB_QUERY_TREE),
  11417. }
  11418. func Xxcb_query_tree_children(tls *libc.TLS, R uintptr) (r uintptr) {
  11419. return R + libc.UintptrFromInt32(1)*32
  11420. }
  11421. func Xxcb_query_tree_children_length(tls *libc.TLS, R uintptr) (r int32) {
  11422. return libc.Int32FromUint16((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)
  11423. }
  11424. func Xxcb_query_tree_children_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11425. var i Txcb_generic_iterator_t
  11426. _ = i
  11427. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)*4
  11428. i.Frem = 0
  11429. i.Findex = int32(i.Fdata) - int32(R)
  11430. return i
  11431. }
  11432. func Xxcb_query_tree_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_tree_cookie_t, e uintptr) (r uintptr) {
  11433. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11434. }
  11435. func Xxcb_intern_atom_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11436. var _aux, xcb_tmp uintptr
  11437. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11438. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11439. xcb_tmp = _buffer
  11440. _aux = _buffer
  11441. xcb_buffer_len = uint32(0)
  11442. xcb_block_len = uint32(0)
  11443. xcb_pad = uint32(0)
  11444. xcb_align_to = uint32(0)
  11445. xcb_block_len += uint32(8)
  11446. xcb_tmp += uintptr(xcb_block_len)
  11447. xcb_buffer_len += xcb_block_len
  11448. xcb_block_len = uint32(0)
  11449. /* name */
  11450. xcb_block_len += uint32((*Txcb_intern_atom_request_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  11451. xcb_tmp += uintptr(xcb_block_len)
  11452. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  11453. /* insert padding */
  11454. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11455. xcb_buffer_len += xcb_block_len + xcb_pad
  11456. if uint32(0) != xcb_pad {
  11457. xcb_tmp += uintptr(xcb_pad)
  11458. xcb_pad = uint32(0)
  11459. }
  11460. xcb_block_len = uint32(0)
  11461. return libc.Int32FromUint32(xcb_buffer_len)
  11462. }
  11463. 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) {
  11464. bp := tls.Alloc(64)
  11465. defer tls.Free(64)
  11466. var xcb_ret Txcb_intern_atom_cookie_t
  11467. var _ /* xcb_out at bp+48 */ Txcb_intern_atom_request_t
  11468. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11469. _ = xcb_ret
  11470. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 48))).Fonly_if_exists = only_if_exists
  11471. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  11472. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  11473. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  11474. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11475. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11476. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11477. /* char name */
  11478. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11479. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  11480. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11481. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  11482. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req36)))
  11483. return xcb_ret
  11484. }
  11485. var _xcb_req36 = Txcb_protocol_request_t{
  11486. Fcount: uint32(4),
  11487. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11488. }
  11489. 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) {
  11490. bp := tls.Alloc(64)
  11491. defer tls.Free(64)
  11492. var xcb_ret Txcb_intern_atom_cookie_t
  11493. var _ /* xcb_out at bp+48 */ Txcb_intern_atom_request_t
  11494. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11495. _ = xcb_ret
  11496. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 48))).Fonly_if_exists = only_if_exists
  11497. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  11498. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  11499. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  11500. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11501. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11502. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11503. /* char name */
  11504. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11505. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  11506. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11507. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  11508. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req37)))
  11509. return xcb_ret
  11510. }
  11511. var _xcb_req37 = Txcb_protocol_request_t{
  11512. Fcount: uint32(4),
  11513. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11514. }
  11515. func Xxcb_intern_atom_reply(tls *libc.TLS, c uintptr, cookie Txcb_intern_atom_cookie_t, e uintptr) (r uintptr) {
  11516. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11517. }
  11518. func Xxcb_get_atom_name_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11519. var _aux, xcb_tmp uintptr
  11520. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11521. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11522. xcb_tmp = _buffer
  11523. _aux = _buffer
  11524. xcb_buffer_len = uint32(0)
  11525. xcb_block_len = uint32(0)
  11526. xcb_pad = uint32(0)
  11527. xcb_align_to = uint32(0)
  11528. xcb_block_len += uint32(32)
  11529. xcb_tmp += uintptr(xcb_block_len)
  11530. xcb_buffer_len += xcb_block_len
  11531. xcb_block_len = uint32(0)
  11532. /* name */
  11533. xcb_block_len += uint32((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  11534. xcb_tmp += uintptr(xcb_block_len)
  11535. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  11536. /* insert padding */
  11537. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11538. xcb_buffer_len += xcb_block_len + xcb_pad
  11539. if uint32(0) != xcb_pad {
  11540. xcb_tmp += uintptr(xcb_pad)
  11541. xcb_pad = uint32(0)
  11542. }
  11543. xcb_block_len = uint32(0)
  11544. return libc.Int32FromUint32(xcb_buffer_len)
  11545. }
  11546. func Xxcb_get_atom_name(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11547. bp := tls.Alloc(48)
  11548. defer tls.Free(48)
  11549. var xcb_ret Txcb_get_atom_name_cookie_t
  11550. var _ /* xcb_out at bp+32 */ Txcb_get_atom_name_request_t
  11551. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11552. _ = xcb_ret
  11553. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11554. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 32))).Fatom = atom
  11555. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11556. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11557. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11558. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11559. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req38)))
  11560. return xcb_ret
  11561. }
  11562. var _xcb_req38 = Txcb_protocol_request_t{
  11563. Fcount: uint32(2),
  11564. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11565. }
  11566. func Xxcb_get_atom_name_unchecked(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11567. bp := tls.Alloc(48)
  11568. defer tls.Free(48)
  11569. var xcb_ret Txcb_get_atom_name_cookie_t
  11570. var _ /* xcb_out at bp+32 */ Txcb_get_atom_name_request_t
  11571. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11572. _ = xcb_ret
  11573. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11574. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 32))).Fatom = atom
  11575. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11576. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11577. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11578. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11579. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req39)))
  11580. return xcb_ret
  11581. }
  11582. var _xcb_req39 = Txcb_protocol_request_t{
  11583. Fcount: uint32(2),
  11584. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11585. }
  11586. func Xxcb_get_atom_name_name(tls *libc.TLS, R uintptr) (r uintptr) {
  11587. return R + libc.UintptrFromInt32(1)*32
  11588. }
  11589. func Xxcb_get_atom_name_name_length(tls *libc.TLS, R uintptr) (r int32) {
  11590. return libc.Int32FromUint16((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11591. }
  11592. func Xxcb_get_atom_name_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11593. var i Txcb_generic_iterator_t
  11594. _ = i
  11595. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11596. i.Frem = 0
  11597. i.Findex = int32(i.Fdata) - int32(R)
  11598. return i
  11599. }
  11600. func Xxcb_get_atom_name_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_atom_name_cookie_t, e uintptr) (r uintptr) {
  11601. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11602. }
  11603. func Xxcb_change_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11604. var _aux, xcb_tmp uintptr
  11605. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11606. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11607. xcb_tmp = _buffer
  11608. _aux = _buffer
  11609. xcb_buffer_len = uint32(0)
  11610. xcb_block_len = uint32(0)
  11611. xcb_pad = uint32(0)
  11612. xcb_align_to = uint32(0)
  11613. xcb_block_len += uint32(24)
  11614. xcb_tmp += uintptr(xcb_block_len)
  11615. xcb_buffer_len += xcb_block_len
  11616. xcb_block_len = uint32(0)
  11617. /* data */
  11618. xcb_block_len += (*Txcb_change_property_request_t)(unsafe.Pointer(_aux)).Fdata_len * uint32((*Txcb_change_property_request_t)(unsafe.Pointer(_aux)).Fformat) / uint32(8) * uint32(1)
  11619. xcb_tmp += uintptr(xcb_block_len)
  11620. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  11621. /* insert padding */
  11622. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11623. xcb_buffer_len += xcb_block_len + xcb_pad
  11624. if uint32(0) != xcb_pad {
  11625. xcb_tmp += uintptr(xcb_pad)
  11626. xcb_pad = uint32(0)
  11627. }
  11628. xcb_block_len = uint32(0)
  11629. return libc.Int32FromUint32(xcb_buffer_len)
  11630. }
  11631. 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) {
  11632. bp := tls.Alloc(80)
  11633. defer tls.Free(80)
  11634. var xcb_ret Txcb_void_cookie_t
  11635. var _ /* xcb_out at bp+48 */ Txcb_change_property_request_t
  11636. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11637. _ = xcb_ret
  11638. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fmode = mode
  11639. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fwindow = window
  11640. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fproperty = property
  11641. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Ftype1 = type1
  11642. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fformat = format
  11643. libc.Xmemset(tls, bp+48+17, 0, uint32(3))
  11644. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fdata_len = data_len
  11645. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  11646. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  11647. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11648. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11649. /* void data */
  11650. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11651. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = data_len * uint32(format) / uint32(8) * uint32(1)
  11652. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11653. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  11654. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req40)))
  11655. return xcb_ret
  11656. }
  11657. var _xcb_req40 = Txcb_protocol_request_t{
  11658. Fcount: uint32(4),
  11659. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11660. Fisvoid: uint8(1),
  11661. }
  11662. 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) {
  11663. bp := tls.Alloc(80)
  11664. defer tls.Free(80)
  11665. var xcb_ret Txcb_void_cookie_t
  11666. var _ /* xcb_out at bp+48 */ Txcb_change_property_request_t
  11667. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11668. _ = xcb_ret
  11669. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fmode = mode
  11670. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fwindow = window
  11671. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fproperty = property
  11672. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Ftype1 = type1
  11673. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fformat = format
  11674. libc.Xmemset(tls, bp+48+17, 0, uint32(3))
  11675. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 48))).Fdata_len = data_len
  11676. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  11677. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  11678. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11679. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11680. /* void data */
  11681. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11682. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = data_len * uint32(format) / uint32(8) * uint32(1)
  11683. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11684. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  11685. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req41)))
  11686. return xcb_ret
  11687. }
  11688. var _xcb_req41 = Txcb_protocol_request_t{
  11689. Fcount: uint32(4),
  11690. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11691. Fisvoid: uint8(1),
  11692. }
  11693. func Xxcb_change_property_data(tls *libc.TLS, R uintptr) (r uintptr) {
  11694. return R + libc.UintptrFromInt32(1)*24
  11695. }
  11696. func Xxcb_change_property_data_length(tls *libc.TLS, R uintptr) (r int32) {
  11697. 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))
  11698. }
  11699. func Xxcb_change_property_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11700. var i Txcb_generic_iterator_t
  11701. _ = i
  11702. 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))
  11703. i.Frem = 0
  11704. i.Findex = int32(i.Fdata) - int32(R)
  11705. return i
  11706. }
  11707. func Xxcb_delete_property_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11708. bp := tls.Alloc(48)
  11709. defer tls.Free(48)
  11710. var xcb_ret Txcb_void_cookie_t
  11711. var _ /* xcb_out at bp+32 */ Txcb_delete_property_request_t
  11712. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11713. _ = xcb_ret
  11714. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11715. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11716. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 32))).Fproperty = property
  11717. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11718. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  11719. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11720. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11721. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req42)))
  11722. return xcb_ret
  11723. }
  11724. var _xcb_req42 = Txcb_protocol_request_t{
  11725. Fcount: uint32(2),
  11726. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11727. Fisvoid: uint8(1),
  11728. }
  11729. func Xxcb_delete_property(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11730. bp := tls.Alloc(48)
  11731. defer tls.Free(48)
  11732. var xcb_ret Txcb_void_cookie_t
  11733. var _ /* xcb_out at bp+32 */ Txcb_delete_property_request_t
  11734. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11735. _ = xcb_ret
  11736. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11737. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11738. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 32))).Fproperty = property
  11739. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11740. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  11741. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11742. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11743. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req43)))
  11744. return xcb_ret
  11745. }
  11746. var _xcb_req43 = Txcb_protocol_request_t{
  11747. Fcount: uint32(2),
  11748. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11749. Fisvoid: uint8(1),
  11750. }
  11751. func Xxcb_get_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11752. var _aux, xcb_tmp uintptr
  11753. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11754. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11755. xcb_tmp = _buffer
  11756. _aux = _buffer
  11757. xcb_buffer_len = uint32(0)
  11758. xcb_block_len = uint32(0)
  11759. xcb_pad = uint32(0)
  11760. xcb_align_to = uint32(0)
  11761. xcb_block_len += uint32(32)
  11762. xcb_tmp += uintptr(xcb_block_len)
  11763. xcb_buffer_len += xcb_block_len
  11764. xcb_block_len = uint32(0)
  11765. /* value */
  11766. xcb_block_len += (*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)) * uint32(1)
  11767. xcb_tmp += uintptr(xcb_block_len)
  11768. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  11769. /* insert padding */
  11770. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11771. xcb_buffer_len += xcb_block_len + xcb_pad
  11772. if uint32(0) != xcb_pad {
  11773. xcb_tmp += uintptr(xcb_pad)
  11774. xcb_pad = uint32(0)
  11775. }
  11776. xcb_block_len = uint32(0)
  11777. return libc.Int32FromUint32(xcb_buffer_len)
  11778. }
  11779. 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) {
  11780. bp := tls.Alloc(64)
  11781. defer tls.Free(64)
  11782. var xcb_ret Txcb_get_property_cookie_t
  11783. var _ /* xcb_out at bp+32 */ Txcb_get_property_request_t
  11784. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11785. _ = xcb_ret
  11786. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).F_delete = _delete
  11787. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11788. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Fproperty = property
  11789. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Ftype1 = type1
  11790. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Flong_offset = long_offset
  11791. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Flong_length = long_length
  11792. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11793. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  11794. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11795. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11796. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req44)))
  11797. return xcb_ret
  11798. }
  11799. var _xcb_req44 = Txcb_protocol_request_t{
  11800. Fcount: uint32(2),
  11801. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11802. }
  11803. 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) {
  11804. bp := tls.Alloc(64)
  11805. defer tls.Free(64)
  11806. var xcb_ret Txcb_get_property_cookie_t
  11807. var _ /* xcb_out at bp+32 */ Txcb_get_property_request_t
  11808. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11809. _ = xcb_ret
  11810. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).F_delete = _delete
  11811. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11812. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Fproperty = property
  11813. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Ftype1 = type1
  11814. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Flong_offset = long_offset
  11815. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 32))).Flong_length = long_length
  11816. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11817. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  11818. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11819. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11820. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req45)))
  11821. return xcb_ret
  11822. }
  11823. var _xcb_req45 = Txcb_protocol_request_t{
  11824. Fcount: uint32(2),
  11825. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11826. }
  11827. func Xxcb_get_property_value(tls *libc.TLS, R uintptr) (r uintptr) {
  11828. return R + libc.UintptrFromInt32(1)*32
  11829. }
  11830. func Xxcb_get_property_value_length(tls *libc.TLS, R uintptr) (r int32) {
  11831. 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)))
  11832. }
  11833. func Xxcb_get_property_value_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11834. var i Txcb_generic_iterator_t
  11835. _ = i
  11836. 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)))
  11837. i.Frem = 0
  11838. i.Findex = int32(i.Fdata) - int32(R)
  11839. return i
  11840. }
  11841. func Xxcb_get_property_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_property_cookie_t, e uintptr) (r uintptr) {
  11842. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11843. }
  11844. func Xxcb_list_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11845. var _aux, xcb_tmp uintptr
  11846. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11847. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11848. xcb_tmp = _buffer
  11849. _aux = _buffer
  11850. xcb_buffer_len = uint32(0)
  11851. xcb_block_len = uint32(0)
  11852. xcb_pad = uint32(0)
  11853. xcb_align_to = uint32(0)
  11854. xcb_block_len += uint32(32)
  11855. xcb_tmp += uintptr(xcb_block_len)
  11856. xcb_buffer_len += xcb_block_len
  11857. xcb_block_len = uint32(0)
  11858. /* atoms */
  11859. xcb_block_len += uint32((*Txcb_list_properties_reply_t)(unsafe.Pointer(_aux)).Fatoms_len) * uint32(4)
  11860. xcb_tmp += uintptr(xcb_block_len)
  11861. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  11862. /* insert padding */
  11863. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11864. xcb_buffer_len += xcb_block_len + xcb_pad
  11865. if uint32(0) != xcb_pad {
  11866. xcb_tmp += uintptr(xcb_pad)
  11867. xcb_pad = uint32(0)
  11868. }
  11869. xcb_block_len = uint32(0)
  11870. return libc.Int32FromUint32(xcb_buffer_len)
  11871. }
  11872. func Xxcb_list_properties(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11873. bp := tls.Alloc(48)
  11874. defer tls.Free(48)
  11875. var xcb_ret Txcb_list_properties_cookie_t
  11876. var _ /* xcb_out at bp+32 */ Txcb_list_properties_request_t
  11877. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11878. _ = xcb_ret
  11879. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11880. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11881. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11882. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11883. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11884. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11885. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req46)))
  11886. return xcb_ret
  11887. }
  11888. var _xcb_req46 = Txcb_protocol_request_t{
  11889. Fcount: uint32(2),
  11890. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11891. }
  11892. func Xxcb_list_properties_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11893. bp := tls.Alloc(48)
  11894. defer tls.Free(48)
  11895. var xcb_ret Txcb_list_properties_cookie_t
  11896. var _ /* xcb_out at bp+32 */ Txcb_list_properties_request_t
  11897. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11898. _ = xcb_ret
  11899. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11900. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  11901. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11902. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11903. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11904. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11905. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req47)))
  11906. return xcb_ret
  11907. }
  11908. var _xcb_req47 = Txcb_protocol_request_t{
  11909. Fcount: uint32(2),
  11910. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11911. }
  11912. func Xxcb_list_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  11913. return R + libc.UintptrFromInt32(1)*32
  11914. }
  11915. func Xxcb_list_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  11916. return libc.Int32FromUint16((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)
  11917. }
  11918. func Xxcb_list_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11919. var i Txcb_generic_iterator_t
  11920. _ = i
  11921. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)*4
  11922. i.Frem = 0
  11923. i.Findex = int32(i.Fdata) - int32(R)
  11924. return i
  11925. }
  11926. func Xxcb_list_properties_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_properties_cookie_t, e uintptr) (r uintptr) {
  11927. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11928. }
  11929. 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) {
  11930. bp := tls.Alloc(48)
  11931. defer tls.Free(48)
  11932. var xcb_ret Txcb_void_cookie_t
  11933. var _ /* xcb_out at bp+32 */ Txcb_set_selection_owner_request_t
  11934. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11935. _ = xcb_ret
  11936. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11937. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fowner = owner
  11938. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fselection = selection
  11939. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  11940. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11941. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  11942. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11943. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11944. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req48)))
  11945. return xcb_ret
  11946. }
  11947. var _xcb_req48 = Txcb_protocol_request_t{
  11948. Fcount: uint32(2),
  11949. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11950. Fisvoid: uint8(1),
  11951. }
  11952. 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) {
  11953. bp := tls.Alloc(48)
  11954. defer tls.Free(48)
  11955. var xcb_ret Txcb_void_cookie_t
  11956. var _ /* xcb_out at bp+32 */ Txcb_set_selection_owner_request_t
  11957. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11958. _ = xcb_ret
  11959. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11960. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fowner = owner
  11961. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fselection = selection
  11962. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  11963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  11965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11967. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req49)))
  11968. return xcb_ret
  11969. }
  11970. var _xcb_req49 = Txcb_protocol_request_t{
  11971. Fcount: uint32(2),
  11972. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11973. Fisvoid: uint8(1),
  11974. }
  11975. func Xxcb_get_selection_owner(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11976. bp := tls.Alloc(48)
  11977. defer tls.Free(48)
  11978. var xcb_ret Txcb_get_selection_owner_cookie_t
  11979. var _ /* xcb_out at bp+32 */ Txcb_get_selection_owner_request_t
  11980. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11981. _ = xcb_ret
  11982. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  11983. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fselection = selection
  11984. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  11985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  11986. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11987. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  11988. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req50)))
  11989. return xcb_ret
  11990. }
  11991. var _xcb_req50 = Txcb_protocol_request_t{
  11992. Fcount: uint32(2),
  11993. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11994. }
  11995. func Xxcb_get_selection_owner_unchecked(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11996. bp := tls.Alloc(48)
  11997. defer tls.Free(48)
  11998. var xcb_ret Txcb_get_selection_owner_cookie_t
  11999. var _ /* xcb_out at bp+32 */ Txcb_get_selection_owner_request_t
  12000. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12001. _ = xcb_ret
  12002. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12003. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 32))).Fselection = selection
  12004. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12005. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12006. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12007. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12008. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req51)))
  12009. return xcb_ret
  12010. }
  12011. var _xcb_req51 = Txcb_protocol_request_t{
  12012. Fcount: uint32(2),
  12013. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  12014. }
  12015. func Xxcb_get_selection_owner_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_selection_owner_cookie_t, e uintptr) (r uintptr) {
  12016. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12017. }
  12018. 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) {
  12019. bp := tls.Alloc(64)
  12020. defer tls.Free(64)
  12021. var xcb_ret Txcb_void_cookie_t
  12022. var _ /* xcb_out at bp+32 */ Txcb_convert_selection_request_t
  12023. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12024. _ = xcb_ret
  12025. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12026. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Frequestor = requestor
  12027. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Fselection = selection
  12028. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Ftarget = target
  12029. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Fproperty = property
  12030. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12031. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12032. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12033. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12034. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12035. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req52)))
  12036. return xcb_ret
  12037. }
  12038. var _xcb_req52 = Txcb_protocol_request_t{
  12039. Fcount: uint32(2),
  12040. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  12041. Fisvoid: uint8(1),
  12042. }
  12043. 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) {
  12044. bp := tls.Alloc(64)
  12045. defer tls.Free(64)
  12046. var xcb_ret Txcb_void_cookie_t
  12047. var _ /* xcb_out at bp+32 */ Txcb_convert_selection_request_t
  12048. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12049. _ = xcb_ret
  12050. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12051. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Frequestor = requestor
  12052. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Fselection = selection
  12053. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Ftarget = target
  12054. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Fproperty = property
  12055. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12056. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12057. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12058. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12059. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12060. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req53)))
  12061. return xcb_ret
  12062. }
  12063. var _xcb_req53 = Txcb_protocol_request_t{
  12064. Fcount: uint32(2),
  12065. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  12066. Fisvoid: uint8(1),
  12067. }
  12068. 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) {
  12069. bp := tls.Alloc(80)
  12070. defer tls.Free(80)
  12071. var xcb_ret Txcb_void_cookie_t
  12072. var _ /* xcb_out at bp+32 */ Txcb_send_event_request_t
  12073. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12074. _ = xcb_ret
  12075. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 32))).Fpropagate = propagate
  12076. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 32))).Fdestination = destination
  12077. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12078. libc.Xmemcpy(tls, bp+32+12, event, uint32(32))
  12079. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12080. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(44)
  12081. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12082. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12083. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req54)))
  12084. return xcb_ret
  12085. }
  12086. var _xcb_req54 = Txcb_protocol_request_t{
  12087. Fcount: uint32(2),
  12088. Fopcode: uint8(m_XCB_SEND_EVENT),
  12089. Fisvoid: uint8(1),
  12090. }
  12091. 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) {
  12092. bp := tls.Alloc(80)
  12093. defer tls.Free(80)
  12094. var xcb_ret Txcb_void_cookie_t
  12095. var _ /* xcb_out at bp+32 */ Txcb_send_event_request_t
  12096. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12097. _ = xcb_ret
  12098. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 32))).Fpropagate = propagate
  12099. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 32))).Fdestination = destination
  12100. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12101. libc.Xmemcpy(tls, bp+32+12, event, uint32(32))
  12102. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12103. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(44)
  12104. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12105. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12106. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req55)))
  12107. return xcb_ret
  12108. }
  12109. var _xcb_req55 = Txcb_protocol_request_t{
  12110. Fcount: uint32(2),
  12111. Fopcode: uint8(m_XCB_SEND_EVENT),
  12112. Fisvoid: uint8(1),
  12113. }
  12114. 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) {
  12115. bp := tls.Alloc(64)
  12116. defer tls.Free(64)
  12117. var xcb_ret Txcb_grab_pointer_cookie_t
  12118. var _ /* xcb_out at bp+32 */ Txcb_grab_pointer_request_t
  12119. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12120. _ = xcb_ret
  12121. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12122. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12123. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12124. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12125. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12126. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fconfine_to = confine_to
  12127. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  12128. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12129. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12130. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12131. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12132. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12133. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req56)))
  12134. return xcb_ret
  12135. }
  12136. var _xcb_req56 = Txcb_protocol_request_t{
  12137. Fcount: uint32(2),
  12138. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12139. }
  12140. 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) {
  12141. bp := tls.Alloc(64)
  12142. defer tls.Free(64)
  12143. var xcb_ret Txcb_grab_pointer_cookie_t
  12144. var _ /* xcb_out at bp+32 */ Txcb_grab_pointer_request_t
  12145. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12146. _ = xcb_ret
  12147. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12148. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12149. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12150. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12151. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12152. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fconfine_to = confine_to
  12153. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  12154. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12156. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12159. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req57)))
  12160. return xcb_ret
  12161. }
  12162. var _xcb_req57 = Txcb_protocol_request_t{
  12163. Fcount: uint32(2),
  12164. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12165. }
  12166. func Xxcb_grab_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_pointer_cookie_t, e uintptr) (r uintptr) {
  12167. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12168. }
  12169. func Xxcb_ungrab_pointer_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12170. bp := tls.Alloc(48)
  12171. defer tls.Free(48)
  12172. var xcb_ret Txcb_void_cookie_t
  12173. var _ /* xcb_out at bp+32 */ Txcb_ungrab_pointer_request_t
  12174. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12175. _ = xcb_ret
  12176. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12177. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12178. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  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 & uint32(3)
  12182. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req58)))
  12183. return xcb_ret
  12184. }
  12185. var _xcb_req58 = Txcb_protocol_request_t{
  12186. Fcount: uint32(2),
  12187. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12188. Fisvoid: uint8(1),
  12189. }
  12190. func Xxcb_ungrab_pointer(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12191. bp := tls.Alloc(48)
  12192. defer tls.Free(48)
  12193. var xcb_ret Txcb_void_cookie_t
  12194. var _ /* xcb_out at bp+32 */ Txcb_ungrab_pointer_request_t
  12195. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12196. _ = xcb_ret
  12197. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12198. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12202. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12203. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req59)))
  12204. return xcb_ret
  12205. }
  12206. var _xcb_req59 = Txcb_protocol_request_t{
  12207. Fcount: uint32(2),
  12208. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12209. Fisvoid: uint8(1),
  12210. }
  12211. 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) {
  12212. bp := tls.Alloc(64)
  12213. defer tls.Free(64)
  12214. var xcb_ret Txcb_void_cookie_t
  12215. var _ /* xcb_out at bp+32 */ Txcb_grab_button_request_t
  12216. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12217. _ = xcb_ret
  12218. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12219. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12220. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12221. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12222. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12223. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fconfine_to = confine_to
  12224. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  12225. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fbutton = button
  12226. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12227. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12228. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12229. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12230. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12231. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12232. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req60)))
  12233. return xcb_ret
  12234. }
  12235. var _xcb_req60 = Txcb_protocol_request_t{
  12236. Fcount: uint32(2),
  12237. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12238. Fisvoid: uint8(1),
  12239. }
  12240. 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) {
  12241. bp := tls.Alloc(64)
  12242. defer tls.Free(64)
  12243. var xcb_ret Txcb_void_cookie_t
  12244. var _ /* xcb_out at bp+32 */ Txcb_grab_button_request_t
  12245. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12246. _ = xcb_ret
  12247. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12248. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12249. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12250. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12251. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12252. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fconfine_to = confine_to
  12253. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  12254. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fbutton = button
  12255. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12256. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12261. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req61)))
  12262. return xcb_ret
  12263. }
  12264. var _xcb_req61 = Txcb_protocol_request_t{
  12265. Fcount: uint32(2),
  12266. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12267. Fisvoid: uint8(1),
  12268. }
  12269. 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) {
  12270. bp := tls.Alloc(48)
  12271. defer tls.Free(48)
  12272. var xcb_ret Txcb_void_cookie_t
  12273. var _ /* xcb_out at bp+32 */ Txcb_ungrab_button_request_t
  12274. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12275. _ = xcb_ret
  12276. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 32))).Fbutton = button
  12277. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12278. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12279. libc.Xmemset(tls, bp+32+10, 0, uint32(2))
  12280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12281. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  12282. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12283. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12284. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req62)))
  12285. return xcb_ret
  12286. }
  12287. var _xcb_req62 = Txcb_protocol_request_t{
  12288. Fcount: uint32(2),
  12289. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12290. Fisvoid: uint8(1),
  12291. }
  12292. 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) {
  12293. bp := tls.Alloc(48)
  12294. defer tls.Free(48)
  12295. var xcb_ret Txcb_void_cookie_t
  12296. var _ /* xcb_out at bp+32 */ Txcb_ungrab_button_request_t
  12297. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12298. _ = xcb_ret
  12299. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 32))).Fbutton = button
  12300. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12301. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12302. libc.Xmemset(tls, bp+32+10, 0, uint32(2))
  12303. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12304. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  12305. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12306. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12307. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req63)))
  12308. return xcb_ret
  12309. }
  12310. var _xcb_req63 = Txcb_protocol_request_t{
  12311. Fcount: uint32(2),
  12312. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12313. Fisvoid: uint8(1),
  12314. }
  12315. 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) {
  12316. bp := tls.Alloc(48)
  12317. defer tls.Free(48)
  12318. var xcb_ret Txcb_void_cookie_t
  12319. var _ /* xcb_out at bp+32 */ Txcb_change_active_pointer_grab_request_t
  12320. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12321. _ = xcb_ret
  12322. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12323. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  12324. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12325. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12326. libc.Xmemset(tls, bp+32+14, 0, uint32(2))
  12327. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12328. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12329. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12330. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12331. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req64)))
  12332. return xcb_ret
  12333. }
  12334. var _xcb_req64 = Txcb_protocol_request_t{
  12335. Fcount: uint32(2),
  12336. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12337. Fisvoid: uint8(1),
  12338. }
  12339. 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) {
  12340. bp := tls.Alloc(48)
  12341. defer tls.Free(48)
  12342. var xcb_ret Txcb_void_cookie_t
  12343. var _ /* xcb_out at bp+32 */ Txcb_change_active_pointer_grab_request_t
  12344. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12345. _ = xcb_ret
  12346. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12347. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  12348. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12349. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 32))).Fevent_mask = event_mask
  12350. libc.Xmemset(tls, bp+32+14, 0, uint32(2))
  12351. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12352. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12353. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12354. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12355. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req65)))
  12356. return xcb_ret
  12357. }
  12358. var _xcb_req65 = Txcb_protocol_request_t{
  12359. Fcount: uint32(2),
  12360. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12361. Fisvoid: uint8(1),
  12362. }
  12363. 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) {
  12364. bp := tls.Alloc(48)
  12365. defer tls.Free(48)
  12366. var xcb_ret Txcb_grab_keyboard_cookie_t
  12367. var _ /* xcb_out at bp+32 */ Txcb_grab_keyboard_request_t
  12368. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12369. _ = xcb_ret
  12370. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12371. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12372. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12373. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12374. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12375. libc.Xmemset(tls, bp+32+14, 0, uint32(2))
  12376. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12377. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12378. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12379. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12380. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req66)))
  12381. return xcb_ret
  12382. }
  12383. var _xcb_req66 = Txcb_protocol_request_t{
  12384. Fcount: uint32(2),
  12385. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12386. }
  12387. 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) {
  12388. bp := tls.Alloc(48)
  12389. defer tls.Free(48)
  12390. var xcb_ret Txcb_grab_keyboard_cookie_t
  12391. var _ /* xcb_out at bp+32 */ Txcb_grab_keyboard_request_t
  12392. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12393. _ = xcb_ret
  12394. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12395. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12396. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12397. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12398. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12399. libc.Xmemset(tls, bp+32+14, 0, uint32(2))
  12400. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12401. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12402. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12403. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12404. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req67)))
  12405. return xcb_ret
  12406. }
  12407. var _xcb_req67 = Txcb_protocol_request_t{
  12408. Fcount: uint32(2),
  12409. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12410. }
  12411. func Xxcb_grab_keyboard_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_keyboard_cookie_t, e uintptr) (r uintptr) {
  12412. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12413. }
  12414. func Xxcb_ungrab_keyboard_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12415. bp := tls.Alloc(48)
  12416. defer tls.Free(48)
  12417. var xcb_ret Txcb_void_cookie_t
  12418. var _ /* xcb_out at bp+32 */ Txcb_ungrab_keyboard_request_t
  12419. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12420. _ = xcb_ret
  12421. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12422. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12423. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12424. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12425. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12426. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12427. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req68)))
  12428. return xcb_ret
  12429. }
  12430. var _xcb_req68 = Txcb_protocol_request_t{
  12431. Fcount: uint32(2),
  12432. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12433. Fisvoid: uint8(1),
  12434. }
  12435. func Xxcb_ungrab_keyboard(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12436. bp := tls.Alloc(48)
  12437. defer tls.Free(48)
  12438. var xcb_ret Txcb_void_cookie_t
  12439. var _ /* xcb_out at bp+32 */ Txcb_ungrab_keyboard_request_t
  12440. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12441. _ = xcb_ret
  12442. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12443. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12444. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12445. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12446. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12447. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12448. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req69)))
  12449. return xcb_ret
  12450. }
  12451. var _xcb_req69 = Txcb_protocol_request_t{
  12452. Fcount: uint32(2),
  12453. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12454. Fisvoid: uint8(1),
  12455. }
  12456. 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) {
  12457. bp := tls.Alloc(48)
  12458. defer tls.Free(48)
  12459. var xcb_ret Txcb_void_cookie_t
  12460. var _ /* xcb_out at bp+32 */ Txcb_grab_key_request_t
  12461. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12462. _ = xcb_ret
  12463. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12464. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12465. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12466. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fkey = key
  12467. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12468. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12469. libc.Xmemset(tls, bp+32+13, 0, uint32(3))
  12470. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12471. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12473. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12474. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req70)))
  12475. return xcb_ret
  12476. }
  12477. var _xcb_req70 = Txcb_protocol_request_t{
  12478. Fcount: uint32(2),
  12479. Fopcode: uint8(m_XCB_GRAB_KEY),
  12480. Fisvoid: uint8(1),
  12481. }
  12482. 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) {
  12483. bp := tls.Alloc(48)
  12484. defer tls.Free(48)
  12485. var xcb_ret Txcb_void_cookie_t
  12486. var _ /* xcb_out at bp+32 */ Txcb_grab_key_request_t
  12487. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12488. _ = xcb_ret
  12489. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fowner_events = owner_events
  12490. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12491. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12492. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fkey = key
  12493. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fpointer_mode = pointer_mode
  12494. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 32))).Fkeyboard_mode = keyboard_mode
  12495. libc.Xmemset(tls, bp+32+13, 0, uint32(3))
  12496. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12497. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12498. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12499. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12500. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req71)))
  12501. return xcb_ret
  12502. }
  12503. var _xcb_req71 = Txcb_protocol_request_t{
  12504. Fcount: uint32(2),
  12505. Fopcode: uint8(m_XCB_GRAB_KEY),
  12506. Fisvoid: uint8(1),
  12507. }
  12508. 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) {
  12509. bp := tls.Alloc(48)
  12510. defer tls.Free(48)
  12511. var xcb_ret Txcb_void_cookie_t
  12512. var _ /* xcb_out at bp+32 */ Txcb_ungrab_key_request_t
  12513. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12514. _ = xcb_ret
  12515. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 32))).Fkey = key
  12516. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12517. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12518. libc.Xmemset(tls, bp+32+10, 0, uint32(2))
  12519. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12520. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  12521. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12522. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12523. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req72)))
  12524. return xcb_ret
  12525. }
  12526. var _xcb_req72 = Txcb_protocol_request_t{
  12527. Fcount: uint32(2),
  12528. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12529. Fisvoid: uint8(1),
  12530. }
  12531. 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) {
  12532. bp := tls.Alloc(48)
  12533. defer tls.Free(48)
  12534. var xcb_ret Txcb_void_cookie_t
  12535. var _ /* xcb_out at bp+32 */ Txcb_ungrab_key_request_t
  12536. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12537. _ = xcb_ret
  12538. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 32))).Fkey = key
  12539. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 32))).Fgrab_window = grab_window
  12540. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 32))).Fmodifiers = modifiers
  12541. libc.Xmemset(tls, bp+32+10, 0, uint32(2))
  12542. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12543. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  12544. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12545. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12546. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req73)))
  12547. return xcb_ret
  12548. }
  12549. var _xcb_req73 = Txcb_protocol_request_t{
  12550. Fcount: uint32(2),
  12551. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12552. Fisvoid: uint8(1),
  12553. }
  12554. func Xxcb_allow_events_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12555. bp := tls.Alloc(48)
  12556. defer tls.Free(48)
  12557. var xcb_ret Txcb_void_cookie_t
  12558. var _ /* xcb_out at bp+32 */ Txcb_allow_events_request_t
  12559. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12560. _ = xcb_ret
  12561. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  12562. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12563. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12564. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12565. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12566. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12567. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req74)))
  12568. return xcb_ret
  12569. }
  12570. var _xcb_req74 = Txcb_protocol_request_t{
  12571. Fcount: uint32(2),
  12572. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12573. Fisvoid: uint8(1),
  12574. }
  12575. func Xxcb_allow_events(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12576. bp := tls.Alloc(48)
  12577. defer tls.Free(48)
  12578. var xcb_ret Txcb_void_cookie_t
  12579. var _ /* xcb_out at bp+32 */ Txcb_allow_events_request_t
  12580. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12581. _ = xcb_ret
  12582. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  12583. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12584. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12585. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12586. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12587. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12588. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req75)))
  12589. return xcb_ret
  12590. }
  12591. var _xcb_req75 = Txcb_protocol_request_t{
  12592. Fcount: uint32(2),
  12593. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12594. Fisvoid: uint8(1),
  12595. }
  12596. func Xxcb_grab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12597. bp := tls.Alloc(48)
  12598. defer tls.Free(48)
  12599. var xcb_ret Txcb_void_cookie_t
  12600. var _ /* xcb_out at bp+32 */ Txcb_grab_server_request_t
  12601. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12602. _ = xcb_ret
  12603. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12604. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12605. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  12606. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12607. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12608. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req76)))
  12609. return xcb_ret
  12610. }
  12611. var _xcb_req76 = Txcb_protocol_request_t{
  12612. Fcount: uint32(2),
  12613. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12614. Fisvoid: uint8(1),
  12615. }
  12616. func Xxcb_grab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12617. bp := tls.Alloc(48)
  12618. defer tls.Free(48)
  12619. var xcb_ret Txcb_void_cookie_t
  12620. var _ /* xcb_out at bp+32 */ Txcb_grab_server_request_t
  12621. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12622. _ = xcb_ret
  12623. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12624. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12625. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  12626. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12627. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12628. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req77)))
  12629. return xcb_ret
  12630. }
  12631. var _xcb_req77 = Txcb_protocol_request_t{
  12632. Fcount: uint32(2),
  12633. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12634. Fisvoid: uint8(1),
  12635. }
  12636. func Xxcb_ungrab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12637. bp := tls.Alloc(48)
  12638. defer tls.Free(48)
  12639. var xcb_ret Txcb_void_cookie_t
  12640. var _ /* xcb_out at bp+32 */ Txcb_ungrab_server_request_t
  12641. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12642. _ = xcb_ret
  12643. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12644. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12645. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  12646. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12647. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12648. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req78)))
  12649. return xcb_ret
  12650. }
  12651. var _xcb_req78 = Txcb_protocol_request_t{
  12652. Fcount: uint32(2),
  12653. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12654. Fisvoid: uint8(1),
  12655. }
  12656. func Xxcb_ungrab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12657. bp := tls.Alloc(48)
  12658. defer tls.Free(48)
  12659. var xcb_ret Txcb_void_cookie_t
  12660. var _ /* xcb_out at bp+32 */ Txcb_ungrab_server_request_t
  12661. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12662. _ = xcb_ret
  12663. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12664. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12665. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  12666. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12667. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12668. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req79)))
  12669. return xcb_ret
  12670. }
  12671. var _xcb_req79 = Txcb_protocol_request_t{
  12672. Fcount: uint32(2),
  12673. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12674. Fisvoid: uint8(1),
  12675. }
  12676. func Xxcb_query_pointer(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12677. bp := tls.Alloc(48)
  12678. defer tls.Free(48)
  12679. var xcb_ret Txcb_query_pointer_cookie_t
  12680. var _ /* xcb_out at bp+32 */ Txcb_query_pointer_request_t
  12681. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12682. _ = xcb_ret
  12683. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12684. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  12685. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12686. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12687. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12688. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12689. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req80)))
  12690. return xcb_ret
  12691. }
  12692. var _xcb_req80 = Txcb_protocol_request_t{
  12693. Fcount: uint32(2),
  12694. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12695. }
  12696. func Xxcb_query_pointer_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12697. bp := tls.Alloc(48)
  12698. defer tls.Free(48)
  12699. var xcb_ret Txcb_query_pointer_cookie_t
  12700. var _ /* xcb_out at bp+32 */ Txcb_query_pointer_request_t
  12701. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12702. _ = xcb_ret
  12703. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12704. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  12705. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12706. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  12707. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12708. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12709. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req81)))
  12710. return xcb_ret
  12711. }
  12712. var _xcb_req81 = Txcb_protocol_request_t{
  12713. Fcount: uint32(2),
  12714. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12715. }
  12716. func Xxcb_query_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_pointer_cookie_t, e uintptr) (r uintptr) {
  12717. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12718. }
  12719. func Xxcb_timecoord_next(tls *libc.TLS, i uintptr) {
  12720. var p1 uintptr
  12721. _ = p1
  12722. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Frem--
  12723. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  12724. p1 = i + 8
  12725. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(8))
  12726. }
  12727. func Xxcb_timecoord_end(tls *libc.TLS, i Txcb_timecoord_iterator_t) (r Txcb_generic_iterator_t) {
  12728. var ret Txcb_generic_iterator_t
  12729. _ = ret
  12730. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  12731. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  12732. ret.Frem = 0
  12733. return ret
  12734. }
  12735. func Xxcb_get_motion_events_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12736. var _aux, xcb_tmp uintptr
  12737. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12738. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12739. xcb_tmp = _buffer
  12740. _aux = _buffer
  12741. xcb_buffer_len = uint32(0)
  12742. xcb_block_len = uint32(0)
  12743. xcb_pad = uint32(0)
  12744. xcb_align_to = uint32(0)
  12745. xcb_block_len += uint32(32)
  12746. xcb_tmp += uintptr(xcb_block_len)
  12747. xcb_buffer_len += xcb_block_len
  12748. xcb_block_len = uint32(0)
  12749. /* events */
  12750. xcb_block_len += (*Txcb_get_motion_events_reply_t)(unsafe.Pointer(_aux)).Fevents_len * uint32(8)
  12751. xcb_tmp += uintptr(xcb_block_len)
  12752. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  12753. /* insert padding */
  12754. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12755. xcb_buffer_len += xcb_block_len + xcb_pad
  12756. if uint32(0) != xcb_pad {
  12757. xcb_tmp += uintptr(xcb_pad)
  12758. xcb_pad = uint32(0)
  12759. }
  12760. xcb_block_len = uint32(0)
  12761. return libc.Int32FromUint32(xcb_buffer_len)
  12762. }
  12763. 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) {
  12764. bp := tls.Alloc(48)
  12765. defer tls.Free(48)
  12766. var xcb_ret Txcb_get_motion_events_cookie_t
  12767. var _ /* xcb_out at bp+32 */ Txcb_get_motion_events_request_t
  12768. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12769. _ = xcb_ret
  12770. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12771. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  12772. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fstart = start
  12773. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fstop = stop
  12774. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12777. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12778. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req82)))
  12779. return xcb_ret
  12780. }
  12781. var _xcb_req82 = Txcb_protocol_request_t{
  12782. Fcount: uint32(2),
  12783. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12784. }
  12785. 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) {
  12786. bp := tls.Alloc(48)
  12787. defer tls.Free(48)
  12788. var xcb_ret Txcb_get_motion_events_cookie_t
  12789. var _ /* xcb_out at bp+32 */ Txcb_get_motion_events_request_t
  12790. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12791. _ = xcb_ret
  12792. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12793. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  12794. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fstart = start
  12795. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 32))).Fstop = stop
  12796. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12797. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12798. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12799. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12800. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req83)))
  12801. return xcb_ret
  12802. }
  12803. var _xcb_req83 = Txcb_protocol_request_t{
  12804. Fcount: uint32(2),
  12805. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12806. }
  12807. func Xxcb_get_motion_events_events(tls *libc.TLS, R uintptr) (r uintptr) {
  12808. return R + libc.UintptrFromInt32(1)*32
  12809. }
  12810. func Xxcb_get_motion_events_events_length(tls *libc.TLS, R uintptr) (r int32) {
  12811. return libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12812. }
  12813. func Xxcb_get_motion_events_events_iterator(tls *libc.TLS, R uintptr) (r Txcb_timecoord_iterator_t) {
  12814. var i Txcb_timecoord_iterator_t
  12815. _ = i
  12816. i.Fdata = R + libc.UintptrFromInt32(1)*32
  12817. i.Frem = libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12818. i.Findex = int32(i.Fdata) - int32(R)
  12819. return i
  12820. }
  12821. func Xxcb_get_motion_events_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_motion_events_cookie_t, e uintptr) (r uintptr) {
  12822. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12823. }
  12824. 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) {
  12825. bp := tls.Alloc(48)
  12826. defer tls.Free(48)
  12827. var xcb_ret Txcb_translate_coordinates_cookie_t
  12828. var _ /* xcb_out at bp+32 */ Txcb_translate_coordinates_request_t
  12829. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12830. _ = xcb_ret
  12831. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12832. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fsrc_window = src_window
  12833. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fdst_window = dst_window
  12834. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  12835. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  12836. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12837. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12838. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12839. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12840. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req84)))
  12841. return xcb_ret
  12842. }
  12843. var _xcb_req84 = Txcb_protocol_request_t{
  12844. Fcount: uint32(2),
  12845. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12846. }
  12847. 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) {
  12848. bp := tls.Alloc(48)
  12849. defer tls.Free(48)
  12850. var xcb_ret Txcb_translate_coordinates_cookie_t
  12851. var _ /* xcb_out at bp+32 */ Txcb_translate_coordinates_request_t
  12852. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12853. _ = xcb_ret
  12854. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12855. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fsrc_window = src_window
  12856. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fdst_window = dst_window
  12857. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  12858. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  12859. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12860. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  12861. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12862. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12863. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req85)))
  12864. return xcb_ret
  12865. }
  12866. var _xcb_req85 = Txcb_protocol_request_t{
  12867. Fcount: uint32(2),
  12868. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12869. }
  12870. func Xxcb_translate_coordinates_reply(tls *libc.TLS, c uintptr, cookie Txcb_translate_coordinates_cookie_t, e uintptr) (r uintptr) {
  12871. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12872. }
  12873. 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) {
  12874. bp := tls.Alloc(64)
  12875. defer tls.Free(64)
  12876. var xcb_ret Txcb_void_cookie_t
  12877. var _ /* xcb_out at bp+32 */ Txcb_warp_pointer_request_t
  12878. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12879. _ = xcb_ret
  12880. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12881. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_window = src_window
  12882. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fdst_window = dst_window
  12883. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  12884. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  12885. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_width = src_width
  12886. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_height = src_height
  12887. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fdst_x = dst_x
  12888. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fdst_y = dst_y
  12889. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12890. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12891. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12892. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12893. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req86)))
  12894. return xcb_ret
  12895. }
  12896. var _xcb_req86 = Txcb_protocol_request_t{
  12897. Fcount: uint32(2),
  12898. Fopcode: uint8(m_XCB_WARP_POINTER),
  12899. Fisvoid: uint8(1),
  12900. }
  12901. 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) {
  12902. bp := tls.Alloc(64)
  12903. defer tls.Free(64)
  12904. var xcb_ret Txcb_void_cookie_t
  12905. var _ /* xcb_out at bp+32 */ Txcb_warp_pointer_request_t
  12906. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12907. _ = xcb_ret
  12908. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12909. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_window = src_window
  12910. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fdst_window = dst_window
  12911. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  12912. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  12913. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_width = src_width
  12914. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fsrc_height = src_height
  12915. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fdst_x = dst_x
  12916. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 32))).Fdst_y = dst_y
  12917. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12918. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  12919. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12920. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12921. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req87)))
  12922. return xcb_ret
  12923. }
  12924. var _xcb_req87 = Txcb_protocol_request_t{
  12925. Fcount: uint32(2),
  12926. Fopcode: uint8(m_XCB_WARP_POINTER),
  12927. Fisvoid: uint8(1),
  12928. }
  12929. 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) {
  12930. bp := tls.Alloc(48)
  12931. defer tls.Free(48)
  12932. var xcb_ret Txcb_void_cookie_t
  12933. var _ /* xcb_out at bp+32 */ Txcb_set_input_focus_request_t
  12934. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12935. _ = xcb_ret
  12936. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 32))).Frevert_to = revert_to
  12937. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 32))).Ffocus = focus
  12938. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12939. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12940. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  12941. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12942. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12943. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req88)))
  12944. return xcb_ret
  12945. }
  12946. var _xcb_req88 = Txcb_protocol_request_t{
  12947. Fcount: uint32(2),
  12948. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12949. Fisvoid: uint8(1),
  12950. }
  12951. 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) {
  12952. bp := tls.Alloc(48)
  12953. defer tls.Free(48)
  12954. var xcb_ret Txcb_void_cookie_t
  12955. var _ /* xcb_out at bp+32 */ Txcb_set_input_focus_request_t
  12956. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12957. _ = xcb_ret
  12958. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 32))).Frevert_to = revert_to
  12959. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 32))).Ffocus = focus
  12960. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 32))).Ftime = time
  12961. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12962. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  12963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12965. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req89)))
  12966. return xcb_ret
  12967. }
  12968. var _xcb_req89 = Txcb_protocol_request_t{
  12969. Fcount: uint32(2),
  12970. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12971. Fisvoid: uint8(1),
  12972. }
  12973. func Xxcb_get_input_focus(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12974. bp := tls.Alloc(48)
  12975. defer tls.Free(48)
  12976. var xcb_ret Txcb_get_input_focus_cookie_t
  12977. var _ /* xcb_out at bp+32 */ Txcb_get_input_focus_request_t
  12978. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12979. _ = xcb_ret
  12980. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  12981. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  12982. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  12983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12984. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  12985. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req90)))
  12986. return xcb_ret
  12987. }
  12988. var _xcb_req90 = Txcb_protocol_request_t{
  12989. Fcount: uint32(2),
  12990. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12991. }
  12992. func Xxcb_get_input_focus_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12993. bp := tls.Alloc(48)
  12994. defer tls.Free(48)
  12995. var xcb_ret Txcb_get_input_focus_cookie_t
  12996. var _ /* xcb_out at bp+32 */ Txcb_get_input_focus_request_t
  12997. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12998. _ = xcb_ret
  12999. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13000. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13001. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  13002. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13003. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13004. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req91)))
  13005. return xcb_ret
  13006. }
  13007. var _xcb_req91 = Txcb_protocol_request_t{
  13008. Fcount: uint32(2),
  13009. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  13010. }
  13011. func Xxcb_get_input_focus_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_input_focus_cookie_t, e uintptr) (r uintptr) {
  13012. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13013. }
  13014. func Xxcb_query_keymap(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  13015. bp := tls.Alloc(48)
  13016. defer tls.Free(48)
  13017. var xcb_ret Txcb_query_keymap_cookie_t
  13018. var _ /* xcb_out at bp+32 */ Txcb_query_keymap_request_t
  13019. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13020. _ = xcb_ret
  13021. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13022. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13023. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  13024. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13025. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13026. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req92)))
  13027. return xcb_ret
  13028. }
  13029. var _xcb_req92 = Txcb_protocol_request_t{
  13030. Fcount: uint32(2),
  13031. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  13032. }
  13033. func Xxcb_query_keymap_unchecked(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  13034. bp := tls.Alloc(48)
  13035. defer tls.Free(48)
  13036. var xcb_ret Txcb_query_keymap_cookie_t
  13037. var _ /* xcb_out at bp+32 */ Txcb_query_keymap_request_t
  13038. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13039. _ = xcb_ret
  13040. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13041. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13042. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  13043. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13044. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13045. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req93)))
  13046. return xcb_ret
  13047. }
  13048. var _xcb_req93 = Txcb_protocol_request_t{
  13049. Fcount: uint32(2),
  13050. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  13051. }
  13052. func Xxcb_query_keymap_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_keymap_cookie_t, e uintptr) (r uintptr) {
  13053. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13054. }
  13055. func Xxcb_open_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13056. var _aux, xcb_tmp uintptr
  13057. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13058. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13059. xcb_tmp = _buffer
  13060. _aux = _buffer
  13061. xcb_buffer_len = uint32(0)
  13062. xcb_block_len = uint32(0)
  13063. xcb_pad = uint32(0)
  13064. xcb_align_to = uint32(0)
  13065. xcb_block_len += uint32(12)
  13066. xcb_tmp += uintptr(xcb_block_len)
  13067. xcb_buffer_len += xcb_block_len
  13068. xcb_block_len = uint32(0)
  13069. /* name */
  13070. xcb_block_len += uint32((*Txcb_open_font_request_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  13071. xcb_tmp += uintptr(xcb_block_len)
  13072. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  13073. /* insert padding */
  13074. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13075. xcb_buffer_len += xcb_block_len + xcb_pad
  13076. if uint32(0) != xcb_pad {
  13077. xcb_tmp += uintptr(xcb_pad)
  13078. xcb_pad = uint32(0)
  13079. }
  13080. xcb_block_len = uint32(0)
  13081. return libc.Int32FromUint32(xcb_buffer_len)
  13082. }
  13083. 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) {
  13084. bp := tls.Alloc(64)
  13085. defer tls.Free(64)
  13086. var xcb_ret Txcb_void_cookie_t
  13087. var _ /* xcb_out at bp+48 */ Txcb_open_font_request_t
  13088. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13089. _ = xcb_ret
  13090. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13091. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 48))).Ffid = fid
  13092. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  13093. libc.Xmemset(tls, bp+48+10, 0, uint32(2))
  13094. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13095. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  13096. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13097. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13098. /* char name */
  13099. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13100. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  13101. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13102. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13103. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req94)))
  13104. return xcb_ret
  13105. }
  13106. var _xcb_req94 = Txcb_protocol_request_t{
  13107. Fcount: uint32(4),
  13108. Fopcode: uint8(m_XCB_OPEN_FONT),
  13109. Fisvoid: uint8(1),
  13110. }
  13111. func Xxcb_open_font(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
  13112. bp := tls.Alloc(64)
  13113. defer tls.Free(64)
  13114. var xcb_ret Txcb_void_cookie_t
  13115. var _ /* xcb_out at bp+48 */ Txcb_open_font_request_t
  13116. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13117. _ = xcb_ret
  13118. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13119. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 48))).Ffid = fid
  13120. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  13121. libc.Xmemset(tls, bp+48+10, 0, uint32(2))
  13122. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13123. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  13124. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13125. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13126. /* char name */
  13127. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13128. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  13129. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13130. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13131. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req95)))
  13132. return xcb_ret
  13133. }
  13134. var _xcb_req95 = Txcb_protocol_request_t{
  13135. Fcount: uint32(4),
  13136. Fopcode: uint8(m_XCB_OPEN_FONT),
  13137. Fisvoid: uint8(1),
  13138. }
  13139. func Xxcb_open_font_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13140. return R + libc.UintptrFromInt32(1)*12
  13141. }
  13142. func Xxcb_open_font_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13143. return libc.Int32FromUint16((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13144. }
  13145. func Xxcb_open_font_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13146. var i Txcb_generic_iterator_t
  13147. _ = i
  13148. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13149. i.Frem = 0
  13150. i.Findex = int32(i.Fdata) - int32(R)
  13151. return i
  13152. }
  13153. func Xxcb_close_font_checked(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13154. bp := tls.Alloc(48)
  13155. defer tls.Free(48)
  13156. var xcb_ret Txcb_void_cookie_t
  13157. var _ /* xcb_out at bp+32 */ Txcb_close_font_request_t
  13158. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13159. _ = xcb_ret
  13160. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13161. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 32))).Ffont = font
  13162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13164. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13165. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13166. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req96)))
  13167. return xcb_ret
  13168. }
  13169. var _xcb_req96 = Txcb_protocol_request_t{
  13170. Fcount: uint32(2),
  13171. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13172. Fisvoid: uint8(1),
  13173. }
  13174. func Xxcb_close_font(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13175. bp := tls.Alloc(48)
  13176. defer tls.Free(48)
  13177. var xcb_ret Txcb_void_cookie_t
  13178. var _ /* xcb_out at bp+32 */ Txcb_close_font_request_t
  13179. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13180. _ = xcb_ret
  13181. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13182. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 32))).Ffont = font
  13183. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13184. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13185. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13186. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13187. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req97)))
  13188. return xcb_ret
  13189. }
  13190. var _xcb_req97 = Txcb_protocol_request_t{
  13191. Fcount: uint32(2),
  13192. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13193. Fisvoid: uint8(1),
  13194. }
  13195. func Xxcb_fontprop_next(tls *libc.TLS, i uintptr) {
  13196. var p1 uintptr
  13197. _ = p1
  13198. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Frem--
  13199. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  13200. p1 = i + 8
  13201. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(8))
  13202. }
  13203. func Xxcb_fontprop_end(tls *libc.TLS, i Txcb_fontprop_iterator_t) (r Txcb_generic_iterator_t) {
  13204. var ret Txcb_generic_iterator_t
  13205. _ = ret
  13206. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  13207. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  13208. ret.Frem = 0
  13209. return ret
  13210. }
  13211. func Xxcb_charinfo_next(tls *libc.TLS, i uintptr) {
  13212. var p1 uintptr
  13213. _ = p1
  13214. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Frem--
  13215. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  13216. p1 = i + 8
  13217. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(12))
  13218. }
  13219. func Xxcb_charinfo_end(tls *libc.TLS, i Txcb_charinfo_iterator_t) (r Txcb_generic_iterator_t) {
  13220. var ret Txcb_generic_iterator_t
  13221. _ = ret
  13222. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  13223. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  13224. ret.Frem = 0
  13225. return ret
  13226. }
  13227. func Xxcb_query_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13228. var _aux, xcb_tmp uintptr
  13229. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13230. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13231. xcb_tmp = _buffer
  13232. _aux = _buffer
  13233. xcb_buffer_len = uint32(0)
  13234. xcb_block_len = uint32(0)
  13235. xcb_pad = uint32(0)
  13236. xcb_align_to = uint32(0)
  13237. xcb_block_len += uint32(60)
  13238. xcb_tmp += uintptr(xcb_block_len)
  13239. xcb_buffer_len += xcb_block_len
  13240. xcb_block_len = uint32(0)
  13241. /* properties */
  13242. xcb_block_len += uint32((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fproperties_len) * uint32(8)
  13243. xcb_tmp += uintptr(xcb_block_len)
  13244. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  13245. /* insert padding */
  13246. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13247. xcb_buffer_len += xcb_block_len + xcb_pad
  13248. if uint32(0) != xcb_pad {
  13249. xcb_tmp += uintptr(xcb_pad)
  13250. xcb_pad = uint32(0)
  13251. }
  13252. xcb_block_len = uint32(0)
  13253. /* char_infos */
  13254. xcb_block_len += (*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fchar_infos_len * uint32(12)
  13255. xcb_tmp += uintptr(xcb_block_len)
  13256. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  13257. /* insert padding */
  13258. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13259. xcb_buffer_len += xcb_block_len + xcb_pad
  13260. if uint32(0) != xcb_pad {
  13261. xcb_tmp += uintptr(xcb_pad)
  13262. xcb_pad = uint32(0)
  13263. }
  13264. xcb_block_len = uint32(0)
  13265. return libc.Int32FromUint32(xcb_buffer_len)
  13266. }
  13267. func Xxcb_query_font(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13268. bp := tls.Alloc(48)
  13269. defer tls.Free(48)
  13270. var xcb_ret Txcb_query_font_cookie_t
  13271. var _ /* xcb_out at bp+32 */ Txcb_query_font_request_t
  13272. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13273. _ = xcb_ret
  13274. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13275. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 32))).Ffont = font
  13276. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13280. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req98)))
  13281. return xcb_ret
  13282. }
  13283. var _xcb_req98 = Txcb_protocol_request_t{
  13284. Fcount: uint32(2),
  13285. Fopcode: uint8(m_XCB_QUERY_FONT),
  13286. }
  13287. func Xxcb_query_font_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13288. bp := tls.Alloc(48)
  13289. defer tls.Free(48)
  13290. var xcb_ret Txcb_query_font_cookie_t
  13291. var _ /* xcb_out at bp+32 */ Txcb_query_font_request_t
  13292. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13293. _ = xcb_ret
  13294. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13295. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 32))).Ffont = font
  13296. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13300. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req99)))
  13301. return xcb_ret
  13302. }
  13303. var _xcb_req99 = Txcb_protocol_request_t{
  13304. Fcount: uint32(2),
  13305. Fopcode: uint8(m_XCB_QUERY_FONT),
  13306. }
  13307. func Xxcb_query_font_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13308. return R + libc.UintptrFromInt32(1)*60
  13309. }
  13310. func Xxcb_query_font_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13311. return libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13312. }
  13313. func Xxcb_query_font_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13314. var i Txcb_fontprop_iterator_t
  13315. _ = i
  13316. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13317. i.Frem = libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13318. i.Findex = int32(i.Fdata) - int32(R)
  13319. return i
  13320. }
  13321. func Xxcb_query_font_char_infos(tls *libc.TLS, R uintptr) (r uintptr) {
  13322. var prev Txcb_generic_iterator_t
  13323. _ = prev
  13324. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13325. return prev.Fdata + uintptr(libc.Uint32FromInt32(-prev.Findex)&libc.Uint32FromInt32(3)) + libc.UintptrFromInt32(0)
  13326. }
  13327. func Xxcb_query_font_char_infos_length(tls *libc.TLS, R uintptr) (r int32) {
  13328. return libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13329. }
  13330. func Xxcb_query_font_char_infos_iterator(tls *libc.TLS, R uintptr) (r Txcb_charinfo_iterator_t) {
  13331. var i Txcb_charinfo_iterator_t
  13332. var prev Txcb_generic_iterator_t
  13333. _, _ = i, prev
  13334. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13335. i.Fdata = prev.Fdata + uintptr(libc.Uint32FromInt32(-prev.Findex)&libc.Uint32FromInt32(3))
  13336. i.Frem = libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13337. i.Findex = int32(i.Fdata) - int32(R)
  13338. return i
  13339. }
  13340. func Xxcb_query_font_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_font_cookie_t, e uintptr) (r uintptr) {
  13341. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13342. }
  13343. func Xxcb_query_text_extents_sizeof(tls *libc.TLS, _buffer uintptr, string_len Tuint32_t) (r int32) {
  13344. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13345. var xcb_tmp uintptr
  13346. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13347. xcb_tmp = _buffer
  13348. xcb_buffer_len = uint32(0)
  13349. xcb_block_len = uint32(0)
  13350. xcb_pad = uint32(0)
  13351. xcb_align_to = uint32(0)
  13352. xcb_block_len += uint32(8)
  13353. xcb_tmp += uintptr(xcb_block_len)
  13354. xcb_buffer_len += xcb_block_len
  13355. xcb_block_len = uint32(0)
  13356. /* string */
  13357. xcb_block_len += string_len * uint32(2)
  13358. xcb_tmp += uintptr(xcb_block_len)
  13359. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  13360. /* insert padding */
  13361. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13362. xcb_buffer_len += xcb_block_len + xcb_pad
  13363. if uint32(0) != xcb_pad {
  13364. xcb_tmp += uintptr(xcb_pad)
  13365. xcb_pad = uint32(0)
  13366. }
  13367. xcb_block_len = uint32(0)
  13368. return libc.Int32FromUint32(xcb_buffer_len)
  13369. }
  13370. 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) {
  13371. bp := tls.Alloc(64)
  13372. defer tls.Free(64)
  13373. var xcb_ret Txcb_query_text_extents_cookie_t
  13374. var _ /* xcb_out at bp+48 */ Txcb_query_text_extents_request_t
  13375. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13376. _ = xcb_ret
  13377. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 48))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13378. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 48))).Ffont = font
  13379. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13380. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13381. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13382. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13383. /* xcb_char2b_t string */
  13384. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13385. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = string_len * uint32(2)
  13386. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13387. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13388. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req100)))
  13389. return xcb_ret
  13390. }
  13391. var _xcb_req100 = Txcb_protocol_request_t{
  13392. Fcount: uint32(4),
  13393. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13394. }
  13395. 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) {
  13396. bp := tls.Alloc(64)
  13397. defer tls.Free(64)
  13398. var xcb_ret Txcb_query_text_extents_cookie_t
  13399. var _ /* xcb_out at bp+48 */ Txcb_query_text_extents_request_t
  13400. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13401. _ = xcb_ret
  13402. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 48))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13403. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 48))).Ffont = font
  13404. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13405. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13406. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13407. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13408. /* xcb_char2b_t string */
  13409. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13410. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = string_len * uint32(2)
  13411. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13412. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13413. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req101)))
  13414. return xcb_ret
  13415. }
  13416. var _xcb_req101 = Txcb_protocol_request_t{
  13417. Fcount: uint32(4),
  13418. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13419. }
  13420. func Xxcb_query_text_extents_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_text_extents_cookie_t, e uintptr) (r uintptr) {
  13421. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13422. }
  13423. func Xxcb_str_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13424. var _aux, xcb_tmp uintptr
  13425. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13426. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13427. xcb_tmp = _buffer
  13428. _aux = _buffer
  13429. xcb_buffer_len = uint32(0)
  13430. xcb_block_len = uint32(0)
  13431. xcb_pad = uint32(0)
  13432. xcb_align_to = uint32(0)
  13433. xcb_block_len += uint32(1)
  13434. xcb_tmp += uintptr(xcb_block_len)
  13435. xcb_buffer_len += xcb_block_len
  13436. xcb_block_len = uint32(0)
  13437. /* name */
  13438. xcb_block_len += uint32((*Txcb_str_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  13439. xcb_tmp += uintptr(xcb_block_len)
  13440. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  13441. /* insert padding */
  13442. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13443. xcb_buffer_len += xcb_block_len + xcb_pad
  13444. if uint32(0) != xcb_pad {
  13445. xcb_tmp += uintptr(xcb_pad)
  13446. xcb_pad = uint32(0)
  13447. }
  13448. xcb_block_len = uint32(0)
  13449. return libc.Int32FromUint32(xcb_buffer_len)
  13450. }
  13451. func Xxcb_str_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13452. return R + libc.UintptrFromInt32(1)
  13453. }
  13454. func Xxcb_str_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13455. return libc.Int32FromUint8((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13456. }
  13457. func Xxcb_str_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13458. var i Txcb_generic_iterator_t
  13459. _ = i
  13460. i.Fdata = R + libc.UintptrFromInt32(1) + uintptr((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13461. i.Frem = 0
  13462. i.Findex = int32(i.Fdata) - int32(R)
  13463. return i
  13464. }
  13465. func Xxcb_str_next(tls *libc.TLS, i uintptr) {
  13466. var R uintptr
  13467. var child Txcb_generic_iterator_t
  13468. _, _ = R, child
  13469. R = (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata
  13470. child.Fdata = R + uintptr(Xxcb_str_sizeof(tls, R))
  13471. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata)
  13472. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Frem--
  13473. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  13474. }
  13475. func Xxcb_str_end(tls *libc.TLS, _i Txcb_str_iterator_t) (r Txcb_generic_iterator_t) {
  13476. bp := tls.Alloc(16)
  13477. defer tls.Free(16)
  13478. *(*Txcb_str_iterator_t)(unsafe.Pointer(bp)) = _i
  13479. var ret Txcb_generic_iterator_t
  13480. _ = ret
  13481. for (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  13482. Xxcb_str_next(tls, bp)
  13483. }
  13484. ret.Fdata = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Fdata
  13485. ret.Frem = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem
  13486. ret.Findex = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Findex
  13487. return ret
  13488. }
  13489. func Xxcb_list_fonts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13490. var _aux, xcb_tmp uintptr
  13491. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13492. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13493. xcb_tmp = _buffer
  13494. _aux = _buffer
  13495. xcb_buffer_len = uint32(0)
  13496. xcb_block_len = uint32(0)
  13497. xcb_pad = uint32(0)
  13498. xcb_align_to = uint32(0)
  13499. xcb_block_len += uint32(8)
  13500. xcb_tmp += uintptr(xcb_block_len)
  13501. xcb_buffer_len += xcb_block_len
  13502. xcb_block_len = uint32(0)
  13503. /* pattern */
  13504. xcb_block_len += uint32((*Txcb_list_fonts_request_t)(unsafe.Pointer(_aux)).Fpattern_len) * uint32(1)
  13505. xcb_tmp += uintptr(xcb_block_len)
  13506. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  13507. /* insert padding */
  13508. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13509. xcb_buffer_len += xcb_block_len + xcb_pad
  13510. if uint32(0) != xcb_pad {
  13511. xcb_tmp += uintptr(xcb_pad)
  13512. xcb_pad = uint32(0)
  13513. }
  13514. xcb_block_len = uint32(0)
  13515. return libc.Int32FromUint32(xcb_buffer_len)
  13516. }
  13517. 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) {
  13518. bp := tls.Alloc(64)
  13519. defer tls.Free(64)
  13520. var xcb_ret Txcb_list_fonts_cookie_t
  13521. var _ /* xcb_out at bp+48 */ Txcb_list_fonts_request_t
  13522. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13523. _ = xcb_ret
  13524. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13525. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 48))).Fmax_names = max_names
  13526. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 48))).Fpattern_len = pattern_len
  13527. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13528. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13529. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13530. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13531. /* char pattern */
  13532. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13533. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(pattern_len) * uint32(1)
  13534. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13535. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13536. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req102)))
  13537. return xcb_ret
  13538. }
  13539. var _xcb_req102 = Txcb_protocol_request_t{
  13540. Fcount: uint32(4),
  13541. Fopcode: uint8(m_XCB_LIST_FONTS),
  13542. }
  13543. 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) {
  13544. bp := tls.Alloc(64)
  13545. defer tls.Free(64)
  13546. var xcb_ret Txcb_list_fonts_cookie_t
  13547. var _ /* xcb_out at bp+48 */ Txcb_list_fonts_request_t
  13548. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13549. _ = xcb_ret
  13550. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13551. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 48))).Fmax_names = max_names
  13552. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 48))).Fpattern_len = pattern_len
  13553. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13554. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13555. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13556. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13557. /* char pattern */
  13558. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13559. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(pattern_len) * uint32(1)
  13560. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13561. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13562. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req103)))
  13563. return xcb_ret
  13564. }
  13565. var _xcb_req103 = Txcb_protocol_request_t{
  13566. Fcount: uint32(4),
  13567. Fopcode: uint8(m_XCB_LIST_FONTS),
  13568. }
  13569. func Xxcb_list_fonts_names_length(tls *libc.TLS, R uintptr) (r int32) {
  13570. return libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13571. }
  13572. func Xxcb_list_fonts_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13573. var i Txcb_str_iterator_t
  13574. _ = i
  13575. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13576. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13577. i.Findex = int32(i.Fdata) - int32(R)
  13578. return i
  13579. }
  13580. func Xxcb_list_fonts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_cookie_t, e uintptr) (r uintptr) {
  13581. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13582. }
  13583. func Xxcb_list_fonts_with_info_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13584. var _aux, xcb_tmp uintptr
  13585. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13586. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13587. xcb_tmp = _buffer
  13588. _aux = _buffer
  13589. xcb_buffer_len = uint32(0)
  13590. xcb_block_len = uint32(0)
  13591. xcb_pad = uint32(0)
  13592. xcb_align_to = uint32(0)
  13593. xcb_block_len += uint32(8)
  13594. xcb_tmp += uintptr(xcb_block_len)
  13595. xcb_buffer_len += xcb_block_len
  13596. xcb_block_len = uint32(0)
  13597. /* pattern */
  13598. xcb_block_len += uint32((*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(_aux)).Fpattern_len) * uint32(1)
  13599. xcb_tmp += uintptr(xcb_block_len)
  13600. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  13601. /* insert padding */
  13602. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13603. xcb_buffer_len += xcb_block_len + xcb_pad
  13604. if uint32(0) != xcb_pad {
  13605. xcb_tmp += uintptr(xcb_pad)
  13606. xcb_pad = uint32(0)
  13607. }
  13608. xcb_block_len = uint32(0)
  13609. return libc.Int32FromUint32(xcb_buffer_len)
  13610. }
  13611. 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) {
  13612. bp := tls.Alloc(64)
  13613. defer tls.Free(64)
  13614. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13615. var _ /* xcb_out at bp+48 */ Txcb_list_fonts_with_info_request_t
  13616. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13617. _ = xcb_ret
  13618. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13619. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 48))).Fmax_names = max_names
  13620. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 48))).Fpattern_len = pattern_len
  13621. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13622. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13623. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13624. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13625. /* char pattern */
  13626. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13627. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(pattern_len) * uint32(1)
  13628. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13629. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13630. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req104)))
  13631. return xcb_ret
  13632. }
  13633. var _xcb_req104 = Txcb_protocol_request_t{
  13634. Fcount: uint32(4),
  13635. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13636. }
  13637. 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) {
  13638. bp := tls.Alloc(64)
  13639. defer tls.Free(64)
  13640. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13641. var _ /* xcb_out at bp+48 */ Txcb_list_fonts_with_info_request_t
  13642. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13643. _ = xcb_ret
  13644. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13645. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 48))).Fmax_names = max_names
  13646. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 48))).Fpattern_len = pattern_len
  13647. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13648. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13649. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13650. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13651. /* char pattern */
  13652. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13653. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(pattern_len) * uint32(1)
  13654. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13655. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13656. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req105)))
  13657. return xcb_ret
  13658. }
  13659. var _xcb_req105 = Txcb_protocol_request_t{
  13660. Fcount: uint32(4),
  13661. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13662. }
  13663. func Xxcb_list_fonts_with_info_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13664. return R + libc.UintptrFromInt32(1)*60
  13665. }
  13666. func Xxcb_list_fonts_with_info_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13667. return libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13668. }
  13669. func Xxcb_list_fonts_with_info_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13670. var i Txcb_fontprop_iterator_t
  13671. _ = i
  13672. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13673. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13674. i.Findex = int32(i.Fdata) - int32(R)
  13675. return i
  13676. }
  13677. func Xxcb_list_fonts_with_info_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13678. var prev Txcb_generic_iterator_t
  13679. _ = prev
  13680. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13681. return prev.Fdata + uintptr(libc.Uint32FromInt32(-prev.Findex)&(libc.Uint32FromInt64(1)-libc.Uint32FromInt32(1))) + libc.UintptrFromInt32(0)
  13682. }
  13683. func Xxcb_list_fonts_with_info_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13684. return libc.Int32FromUint8((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13685. }
  13686. func Xxcb_list_fonts_with_info_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13687. var i, prev Txcb_generic_iterator_t
  13688. _, _ = i, prev
  13689. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13690. i.Fdata = prev.Fdata + uintptr(libc.Uint32FromInt32(-prev.Findex)&(libc.Uint32FromInt64(1)-libc.Uint32FromInt32(1))) + uintptr((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13691. i.Frem = 0
  13692. i.Findex = int32(i.Fdata) - int32(R)
  13693. return i
  13694. }
  13695. func Xxcb_list_fonts_with_info_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_with_info_cookie_t, e uintptr) (r uintptr) {
  13696. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13697. }
  13698. func Xxcb_set_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13699. var _aux, xcb_tmp uintptr
  13700. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13701. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13702. xcb_tmp = _buffer
  13703. _aux = _buffer
  13704. xcb_buffer_len = uint32(0)
  13705. xcb_block_len = uint32(0)
  13706. xcb_pad = uint32(0)
  13707. xcb_align_to = uint32(0)
  13708. xcb_block_len += uint32(8)
  13709. xcb_tmp += uintptr(xcb_block_len)
  13710. xcb_buffer_len += xcb_block_len
  13711. xcb_block_len = uint32(0)
  13712. /* font */
  13713. i = uint32(0)
  13714. for {
  13715. if !(i < uint32((*Txcb_set_font_path_request_t)(unsafe.Pointer(_aux)).Ffont_qty)) {
  13716. break
  13717. }
  13718. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13719. xcb_block_len += xcb_tmp_len
  13720. xcb_tmp += uintptr(xcb_tmp_len)
  13721. goto _1
  13722. _1:
  13723. ;
  13724. i++
  13725. }
  13726. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  13727. /* insert padding */
  13728. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13729. xcb_buffer_len += xcb_block_len + xcb_pad
  13730. if uint32(0) != xcb_pad {
  13731. xcb_tmp += uintptr(xcb_pad)
  13732. xcb_pad = uint32(0)
  13733. }
  13734. xcb_block_len = uint32(0)
  13735. return libc.Int32FromUint32(xcb_buffer_len)
  13736. }
  13737. func Xxcb_set_font_path_checked(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13738. bp := tls.Alloc(64)
  13739. defer tls.Free(64)
  13740. var i, xcb_tmp_len uint32
  13741. var xcb_ret Txcb_void_cookie_t
  13742. var xcb_tmp uintptr
  13743. var _ /* xcb_out at bp+48 */ Txcb_set_font_path_request_t
  13744. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13745. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13746. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13747. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 48))).Ffont_qty = font_qty
  13748. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  13749. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13750. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13751. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13752. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13753. /* xcb_str_t font */
  13754. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13755. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(0)
  13756. xcb_tmp = font
  13757. i = uint32(0)
  13758. for {
  13759. if !(i < uint32(font_qty)) {
  13760. break
  13761. }
  13762. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13763. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += xcb_tmp_len
  13764. xcb_tmp += uintptr(xcb_tmp_len)
  13765. goto _1
  13766. _1:
  13767. ;
  13768. i++
  13769. }
  13770. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13771. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13772. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req106)))
  13773. return xcb_ret
  13774. }
  13775. var _xcb_req106 = Txcb_protocol_request_t{
  13776. Fcount: uint32(4),
  13777. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13778. Fisvoid: uint8(1),
  13779. }
  13780. func Xxcb_set_font_path(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13781. bp := tls.Alloc(64)
  13782. defer tls.Free(64)
  13783. var i, xcb_tmp_len uint32
  13784. var xcb_ret Txcb_void_cookie_t
  13785. var xcb_tmp uintptr
  13786. var _ /* xcb_out at bp+48 */ Txcb_set_font_path_request_t
  13787. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13788. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13789. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  13790. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 48))).Ffont_qty = font_qty
  13791. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  13792. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  13793. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13794. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13795. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13796. /* xcb_str_t font */
  13797. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13798. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(0)
  13799. xcb_tmp = font
  13800. i = uint32(0)
  13801. for {
  13802. if !(i < uint32(font_qty)) {
  13803. break
  13804. }
  13805. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13806. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += xcb_tmp_len
  13807. xcb_tmp += uintptr(xcb_tmp_len)
  13808. goto _1
  13809. _1:
  13810. ;
  13811. i++
  13812. }
  13813. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13814. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  13815. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req107)))
  13816. return xcb_ret
  13817. }
  13818. var _xcb_req107 = Txcb_protocol_request_t{
  13819. Fcount: uint32(4),
  13820. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13821. Fisvoid: uint8(1),
  13822. }
  13823. func Xxcb_set_font_path_font_length(tls *libc.TLS, R uintptr) (r int32) {
  13824. return libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13825. }
  13826. func Xxcb_set_font_path_font_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13827. var i Txcb_str_iterator_t
  13828. _ = i
  13829. i.Fdata = R + libc.UintptrFromInt32(1)*8
  13830. i.Frem = libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13831. i.Findex = int32(i.Fdata) - int32(R)
  13832. return i
  13833. }
  13834. func Xxcb_get_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13835. var _aux, xcb_tmp uintptr
  13836. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13837. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13838. xcb_tmp = _buffer
  13839. _aux = _buffer
  13840. xcb_buffer_len = uint32(0)
  13841. xcb_block_len = uint32(0)
  13842. xcb_pad = uint32(0)
  13843. xcb_align_to = uint32(0)
  13844. xcb_block_len += uint32(32)
  13845. xcb_tmp += uintptr(xcb_block_len)
  13846. xcb_buffer_len += xcb_block_len
  13847. xcb_block_len = uint32(0)
  13848. /* path */
  13849. i = uint32(0)
  13850. for {
  13851. if !(i < uint32((*Txcb_get_font_path_reply_t)(unsafe.Pointer(_aux)).Fpath_len)) {
  13852. break
  13853. }
  13854. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13855. xcb_block_len += xcb_tmp_len
  13856. xcb_tmp += uintptr(xcb_tmp_len)
  13857. goto _1
  13858. _1:
  13859. ;
  13860. i++
  13861. }
  13862. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  13863. /* insert padding */
  13864. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13865. xcb_buffer_len += xcb_block_len + xcb_pad
  13866. if uint32(0) != xcb_pad {
  13867. xcb_tmp += uintptr(xcb_pad)
  13868. xcb_pad = uint32(0)
  13869. }
  13870. xcb_block_len = uint32(0)
  13871. return libc.Int32FromUint32(xcb_buffer_len)
  13872. }
  13873. func Xxcb_get_font_path(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13874. bp := tls.Alloc(48)
  13875. defer tls.Free(48)
  13876. var xcb_ret Txcb_get_font_path_cookie_t
  13877. var _ /* xcb_out at bp+32 */ Txcb_get_font_path_request_t
  13878. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13879. _ = xcb_ret
  13880. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13881. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13882. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  13883. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13884. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13885. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req108)))
  13886. return xcb_ret
  13887. }
  13888. var _xcb_req108 = Txcb_protocol_request_t{
  13889. Fcount: uint32(2),
  13890. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13891. }
  13892. func Xxcb_get_font_path_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13893. bp := tls.Alloc(48)
  13894. defer tls.Free(48)
  13895. var xcb_ret Txcb_get_font_path_cookie_t
  13896. var _ /* xcb_out at bp+32 */ Txcb_get_font_path_request_t
  13897. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13898. _ = xcb_ret
  13899. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13900. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13901. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  13902. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13903. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13904. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req109)))
  13905. return xcb_ret
  13906. }
  13907. var _xcb_req109 = Txcb_protocol_request_t{
  13908. Fcount: uint32(2),
  13909. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13910. }
  13911. func Xxcb_get_font_path_path_length(tls *libc.TLS, R uintptr) (r int32) {
  13912. return libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13913. }
  13914. func Xxcb_get_font_path_path_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13915. var i Txcb_str_iterator_t
  13916. _ = i
  13917. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13918. i.Frem = libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13919. i.Findex = int32(i.Fdata) - int32(R)
  13920. return i
  13921. }
  13922. func Xxcb_get_font_path_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_font_path_cookie_t, e uintptr) (r uintptr) {
  13923. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13924. }
  13925. 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) {
  13926. bp := tls.Alloc(48)
  13927. defer tls.Free(48)
  13928. var xcb_ret Txcb_void_cookie_t
  13929. var _ /* xcb_out at bp+32 */ Txcb_create_pixmap_request_t
  13930. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13931. _ = xcb_ret
  13932. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fdepth = depth
  13933. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fpid = pid
  13934. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  13935. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  13936. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  13937. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13938. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  13939. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13940. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13941. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req110)))
  13942. return xcb_ret
  13943. }
  13944. var _xcb_req110 = Txcb_protocol_request_t{
  13945. Fcount: uint32(2),
  13946. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13947. Fisvoid: uint8(1),
  13948. }
  13949. 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) {
  13950. bp := tls.Alloc(48)
  13951. defer tls.Free(48)
  13952. var xcb_ret Txcb_void_cookie_t
  13953. var _ /* xcb_out at bp+32 */ Txcb_create_pixmap_request_t
  13954. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13955. _ = xcb_ret
  13956. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fdepth = depth
  13957. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fpid = pid
  13958. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  13959. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  13960. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  13961. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13962. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  13963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13965. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req111)))
  13966. return xcb_ret
  13967. }
  13968. var _xcb_req111 = Txcb_protocol_request_t{
  13969. Fcount: uint32(2),
  13970. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13971. Fisvoid: uint8(1),
  13972. }
  13973. func Xxcb_free_pixmap_checked(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13974. bp := tls.Alloc(48)
  13975. defer tls.Free(48)
  13976. var xcb_ret Txcb_void_cookie_t
  13977. var _ /* xcb_out at bp+32 */ Txcb_free_pixmap_request_t
  13978. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13979. _ = xcb_ret
  13980. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  13981. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fpixmap = pixmap
  13982. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  13983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  13984. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  13986. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req112)))
  13987. return xcb_ret
  13988. }
  13989. var _xcb_req112 = Txcb_protocol_request_t{
  13990. Fcount: uint32(2),
  13991. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13992. Fisvoid: uint8(1),
  13993. }
  13994. func Xxcb_free_pixmap(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13995. bp := tls.Alloc(48)
  13996. defer tls.Free(48)
  13997. var xcb_ret Txcb_void_cookie_t
  13998. var _ /* xcb_out at bp+32 */ Txcb_free_pixmap_request_t
  13999. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  14000. _ = xcb_ret
  14001. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  14002. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 32))).Fpixmap = pixmap
  14003. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  14004. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  14005. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14006. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  14007. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req113)))
  14008. return xcb_ret
  14009. }
  14010. var _xcb_req113 = Txcb_protocol_request_t{
  14011. Fcount: uint32(2),
  14012. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  14013. Fisvoid: uint8(1),
  14014. }
  14015. func Xxcb_create_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14016. bp := tls.Alloc(16)
  14017. defer tls.Free(16)
  14018. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14019. var xcb_out, xcb_tmp uintptr
  14020. var xcb_parts [24]Tiovec
  14021. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  14022. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14023. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14024. xcb_buffer_len = uint32(0)
  14025. xcb_align_to = uint32(0)
  14026. xcb_padding_offset = uint32(0)
  14027. xcb_pad = uint32(0)
  14028. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  14029. xcb_parts_idx = uint32(0)
  14030. xcb_block_len = uint32(0)
  14031. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14032. /* xcb_create_gc_value_list_t.function */
  14033. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14034. xcb_block_len += uint32(4)
  14035. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14036. xcb_parts_idx++
  14037. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14038. }
  14039. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14040. /* xcb_create_gc_value_list_t.plane_mask */
  14041. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14042. xcb_block_len += uint32(4)
  14043. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14044. xcb_parts_idx++
  14045. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14046. }
  14047. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14048. /* xcb_create_gc_value_list_t.foreground */
  14049. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14050. xcb_block_len += uint32(4)
  14051. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14052. xcb_parts_idx++
  14053. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14054. }
  14055. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14056. /* xcb_create_gc_value_list_t.background */
  14057. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14058. xcb_block_len += uint32(4)
  14059. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14060. xcb_parts_idx++
  14061. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14062. }
  14063. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14064. /* xcb_create_gc_value_list_t.line_width */
  14065. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14066. xcb_block_len += uint32(4)
  14067. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14068. xcb_parts_idx++
  14069. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14070. }
  14071. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14072. /* xcb_create_gc_value_list_t.line_style */
  14073. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14074. xcb_block_len += uint32(4)
  14075. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14076. xcb_parts_idx++
  14077. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14078. }
  14079. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14080. /* xcb_create_gc_value_list_t.cap_style */
  14081. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14082. xcb_block_len += uint32(4)
  14083. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14084. xcb_parts_idx++
  14085. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14086. }
  14087. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14088. /* xcb_create_gc_value_list_t.join_style */
  14089. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14090. xcb_block_len += uint32(4)
  14091. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14092. xcb_parts_idx++
  14093. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14094. }
  14095. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14096. /* xcb_create_gc_value_list_t.fill_style */
  14097. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14098. xcb_block_len += uint32(4)
  14099. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14100. xcb_parts_idx++
  14101. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14102. }
  14103. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14104. /* xcb_create_gc_value_list_t.fill_rule */
  14105. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14106. xcb_block_len += uint32(4)
  14107. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14108. xcb_parts_idx++
  14109. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14110. }
  14111. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14112. /* xcb_create_gc_value_list_t.tile */
  14113. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14114. xcb_block_len += uint32(4)
  14115. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14116. xcb_parts_idx++
  14117. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14118. }
  14119. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14120. /* xcb_create_gc_value_list_t.stipple */
  14121. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14122. xcb_block_len += uint32(4)
  14123. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14124. xcb_parts_idx++
  14125. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14126. }
  14127. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14128. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14129. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14130. xcb_block_len += uint32(4)
  14131. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14132. xcb_parts_idx++
  14133. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14134. }
  14135. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14136. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14137. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14138. xcb_block_len += uint32(4)
  14139. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14140. xcb_parts_idx++
  14141. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14142. }
  14143. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14144. /* xcb_create_gc_value_list_t.font */
  14145. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14146. xcb_block_len += uint32(4)
  14147. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14148. xcb_parts_idx++
  14149. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14150. }
  14151. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14152. /* xcb_create_gc_value_list_t.subwindow_mode */
  14153. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14154. xcb_block_len += uint32(4)
  14155. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14156. xcb_parts_idx++
  14157. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14158. }
  14159. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14160. /* xcb_create_gc_value_list_t.graphics_exposures */
  14161. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14162. xcb_block_len += uint32(4)
  14163. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14164. xcb_parts_idx++
  14165. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14166. }
  14167. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14168. /* xcb_create_gc_value_list_t.clip_x_origin */
  14169. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14170. xcb_block_len += uint32(4)
  14171. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14172. xcb_parts_idx++
  14173. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14174. }
  14175. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14176. /* xcb_create_gc_value_list_t.clip_y_origin */
  14177. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14178. xcb_block_len += uint32(4)
  14179. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14180. xcb_parts_idx++
  14181. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14182. }
  14183. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14184. /* xcb_create_gc_value_list_t.clip_mask */
  14185. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14186. xcb_block_len += uint32(4)
  14187. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14188. xcb_parts_idx++
  14189. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14190. }
  14191. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14192. /* xcb_create_gc_value_list_t.dash_offset */
  14193. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14194. xcb_block_len += uint32(4)
  14195. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14196. xcb_parts_idx++
  14197. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14198. }
  14199. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14200. /* xcb_create_gc_value_list_t.dashes */
  14201. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14202. xcb_block_len += uint32(4)
  14203. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14204. xcb_parts_idx++
  14205. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14206. }
  14207. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14208. /* xcb_create_gc_value_list_t.arc_mode */
  14209. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14210. xcb_block_len += uint32(4)
  14211. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14212. xcb_parts_idx++
  14213. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14214. }
  14215. /* insert padding */
  14216. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14217. xcb_buffer_len += xcb_block_len + xcb_pad
  14218. if uint32(0) != xcb_pad {
  14219. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14220. xcb_parts[xcb_parts_idx].Fiov_len = xcb_pad
  14221. xcb_parts_idx++
  14222. xcb_pad = uint32(0)
  14223. }
  14224. xcb_block_len = uint32(0)
  14225. xcb_padding_offset = uint32(0)
  14226. if libc.UintptrFromInt32(0) == xcb_out {
  14227. /* allocate memory */
  14228. xcb_out = libc.Xmalloc(tls, xcb_buffer_len)
  14229. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14230. }
  14231. xcb_tmp = xcb_out
  14232. i = uint32(0)
  14233. for {
  14234. if !(i < xcb_parts_idx) {
  14235. break
  14236. }
  14237. if uintptr(0) != xcb_parts[i].Fiov_base && uint32(0) != xcb_parts[i].Fiov_len {
  14238. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14239. }
  14240. if uint32(0) != xcb_parts[i].Fiov_len {
  14241. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14242. }
  14243. goto _1
  14244. _1:
  14245. ;
  14246. i++
  14247. }
  14248. return libc.Int32FromUint32(xcb_buffer_len)
  14249. }
  14250. func Xxcb_create_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14251. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14252. var xcb_tmp uintptr
  14253. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14254. xcb_tmp = _buffer
  14255. xcb_buffer_len = uint32(0)
  14256. xcb_block_len = uint32(0)
  14257. xcb_pad = uint32(0)
  14258. xcb_align_to = uint32(0)
  14259. xcb_padding_offset = uint32(0)
  14260. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14261. /* xcb_create_gc_value_list_t.function */
  14262. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14263. xcb_block_len += uint32(4)
  14264. xcb_tmp += uintptr(4)
  14265. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14266. }
  14267. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14268. /* xcb_create_gc_value_list_t.plane_mask */
  14269. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14270. xcb_block_len += uint32(4)
  14271. xcb_tmp += uintptr(4)
  14272. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14273. }
  14274. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14275. /* xcb_create_gc_value_list_t.foreground */
  14276. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14277. xcb_block_len += uint32(4)
  14278. xcb_tmp += uintptr(4)
  14279. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14280. }
  14281. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14282. /* xcb_create_gc_value_list_t.background */
  14283. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14284. xcb_block_len += uint32(4)
  14285. xcb_tmp += uintptr(4)
  14286. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14287. }
  14288. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14289. /* xcb_create_gc_value_list_t.line_width */
  14290. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14291. xcb_block_len += uint32(4)
  14292. xcb_tmp += uintptr(4)
  14293. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14294. }
  14295. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14296. /* xcb_create_gc_value_list_t.line_style */
  14297. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14298. xcb_block_len += uint32(4)
  14299. xcb_tmp += uintptr(4)
  14300. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14301. }
  14302. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14303. /* xcb_create_gc_value_list_t.cap_style */
  14304. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14305. xcb_block_len += uint32(4)
  14306. xcb_tmp += uintptr(4)
  14307. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14308. }
  14309. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14310. /* xcb_create_gc_value_list_t.join_style */
  14311. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14312. xcb_block_len += uint32(4)
  14313. xcb_tmp += uintptr(4)
  14314. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14315. }
  14316. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14317. /* xcb_create_gc_value_list_t.fill_style */
  14318. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14319. xcb_block_len += uint32(4)
  14320. xcb_tmp += uintptr(4)
  14321. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14322. }
  14323. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14324. /* xcb_create_gc_value_list_t.fill_rule */
  14325. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14326. xcb_block_len += uint32(4)
  14327. xcb_tmp += uintptr(4)
  14328. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14329. }
  14330. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14331. /* xcb_create_gc_value_list_t.tile */
  14332. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14333. xcb_block_len += uint32(4)
  14334. xcb_tmp += uintptr(4)
  14335. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14336. }
  14337. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14338. /* xcb_create_gc_value_list_t.stipple */
  14339. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14340. xcb_block_len += uint32(4)
  14341. xcb_tmp += uintptr(4)
  14342. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14343. }
  14344. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14345. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14346. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14347. xcb_block_len += uint32(4)
  14348. xcb_tmp += uintptr(4)
  14349. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14350. }
  14351. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14352. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14353. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14354. xcb_block_len += uint32(4)
  14355. xcb_tmp += uintptr(4)
  14356. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14357. }
  14358. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14359. /* xcb_create_gc_value_list_t.font */
  14360. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14361. xcb_block_len += uint32(4)
  14362. xcb_tmp += uintptr(4)
  14363. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14364. }
  14365. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14366. /* xcb_create_gc_value_list_t.subwindow_mode */
  14367. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14368. xcb_block_len += uint32(4)
  14369. xcb_tmp += uintptr(4)
  14370. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14371. }
  14372. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14373. /* xcb_create_gc_value_list_t.graphics_exposures */
  14374. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14375. xcb_block_len += uint32(4)
  14376. xcb_tmp += uintptr(4)
  14377. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14378. }
  14379. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14380. /* xcb_create_gc_value_list_t.clip_x_origin */
  14381. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14382. xcb_block_len += uint32(4)
  14383. xcb_tmp += uintptr(4)
  14384. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14385. }
  14386. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14387. /* xcb_create_gc_value_list_t.clip_y_origin */
  14388. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14389. xcb_block_len += uint32(4)
  14390. xcb_tmp += uintptr(4)
  14391. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14392. }
  14393. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14394. /* xcb_create_gc_value_list_t.clip_mask */
  14395. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14396. xcb_block_len += uint32(4)
  14397. xcb_tmp += uintptr(4)
  14398. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14399. }
  14400. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14401. /* xcb_create_gc_value_list_t.dash_offset */
  14402. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14403. xcb_block_len += uint32(4)
  14404. xcb_tmp += uintptr(4)
  14405. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14406. }
  14407. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14408. /* xcb_create_gc_value_list_t.dashes */
  14409. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14410. xcb_block_len += uint32(4)
  14411. xcb_tmp += uintptr(4)
  14412. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14413. }
  14414. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14415. /* xcb_create_gc_value_list_t.arc_mode */
  14416. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14417. xcb_block_len += uint32(4)
  14418. xcb_tmp += uintptr(4)
  14419. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14420. }
  14421. /* insert padding */
  14422. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14423. xcb_buffer_len += xcb_block_len + xcb_pad
  14424. if uint32(0) != xcb_pad {
  14425. xcb_tmp += uintptr(xcb_pad)
  14426. xcb_pad = uint32(0)
  14427. }
  14428. xcb_block_len = uint32(0)
  14429. xcb_padding_offset = uint32(0)
  14430. return libc.Int32FromUint32(xcb_buffer_len)
  14431. }
  14432. func Xxcb_create_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14433. bp := tls.Alloc(96)
  14434. defer tls.Free(96)
  14435. var _ /* _aux at bp+0 */ Txcb_create_gc_value_list_t
  14436. return Xxcb_create_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14437. }
  14438. func Xxcb_create_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14439. var _aux, xcb_tmp uintptr
  14440. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14441. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14442. xcb_tmp = _buffer
  14443. _aux = _buffer
  14444. xcb_buffer_len = uint32(0)
  14445. xcb_block_len = uint32(0)
  14446. xcb_pad = uint32(0)
  14447. xcb_align_to = uint32(0)
  14448. xcb_block_len += uint32(16)
  14449. xcb_tmp += uintptr(xcb_block_len)
  14450. xcb_buffer_len += xcb_block_len
  14451. xcb_block_len = uint32(0)
  14452. /* value_list */
  14453. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14454. xcb_tmp += uintptr(xcb_block_len)
  14455. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  14456. /* insert padding */
  14457. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14458. xcb_buffer_len += xcb_block_len + xcb_pad
  14459. if uint32(0) != xcb_pad {
  14460. xcb_tmp += uintptr(xcb_pad)
  14461. xcb_pad = uint32(0)
  14462. }
  14463. xcb_block_len = uint32(0)
  14464. return libc.Int32FromUint32(xcb_buffer_len)
  14465. }
  14466. 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) {
  14467. bp := tls.Alloc(64)
  14468. defer tls.Free(64)
  14469. var xcb_ret Txcb_void_cookie_t
  14470. var _ /* xcb_out at bp+40 */ Txcb_create_gc_request_t
  14471. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14472. _ = xcb_ret
  14473. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  14474. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fcid = cid
  14475. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fdrawable = drawable
  14476. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  14477. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  14478. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  14479. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14480. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  14481. /* xcb_create_gc_value_list_t value_list */
  14482. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14483. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14484. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req114)))
  14485. return xcb_ret
  14486. }
  14487. var _xcb_req114 = Txcb_protocol_request_t{
  14488. Fcount: uint32(3),
  14489. Fopcode: uint8(m_XCB_CREATE_GC),
  14490. Fisvoid: uint8(1),
  14491. }
  14492. 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) {
  14493. bp := tls.Alloc(64)
  14494. defer tls.Free(64)
  14495. var xcb_ret Txcb_void_cookie_t
  14496. var _ /* xcb_out at bp+40 */ Txcb_create_gc_request_t
  14497. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14498. _ = xcb_ret
  14499. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  14500. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fcid = cid
  14501. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fdrawable = drawable
  14502. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  14503. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  14504. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  14505. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14506. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  14507. /* xcb_create_gc_value_list_t value_list */
  14508. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14509. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14510. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req115)))
  14511. return xcb_ret
  14512. }
  14513. var _xcb_req115 = Txcb_protocol_request_t{
  14514. Fcount: uint32(3),
  14515. Fopcode: uint8(m_XCB_CREATE_GC),
  14516. Fisvoid: uint8(1),
  14517. }
  14518. 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) {
  14519. bp := tls.Alloc(64)
  14520. defer tls.Free(64)
  14521. var xcb_ret Txcb_void_cookie_t
  14522. var _ /* xcb_aux0 at bp+56 */ uintptr
  14523. var _ /* xcb_out at bp+40 */ Txcb_create_gc_request_t
  14524. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14525. _ = xcb_ret
  14526. *(*uintptr)(unsafe.Pointer(bp + 56)) = uintptr(0)
  14527. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  14528. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fcid = cid
  14529. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fdrawable = drawable
  14530. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  14531. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  14532. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  14533. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14534. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  14535. /* xcb_create_gc_value_list_t value_list */
  14536. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+56, value_mask, value_list))
  14537. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 56))
  14538. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req116)))
  14539. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
  14540. return xcb_ret
  14541. }
  14542. var _xcb_req116 = Txcb_protocol_request_t{
  14543. Fcount: uint32(3),
  14544. Fopcode: uint8(m_XCB_CREATE_GC),
  14545. Fisvoid: uint8(1),
  14546. }
  14547. 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) {
  14548. bp := tls.Alloc(64)
  14549. defer tls.Free(64)
  14550. var xcb_ret Txcb_void_cookie_t
  14551. var _ /* xcb_aux0 at bp+56 */ uintptr
  14552. var _ /* xcb_out at bp+40 */ Txcb_create_gc_request_t
  14553. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14554. _ = xcb_ret
  14555. *(*uintptr)(unsafe.Pointer(bp + 56)) = uintptr(0)
  14556. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  14557. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fcid = cid
  14558. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fdrawable = drawable
  14559. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  14560. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  14561. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  14562. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14563. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  14564. /* xcb_create_gc_value_list_t value_list */
  14565. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+56, value_mask, value_list))
  14566. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 56))
  14567. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req117)))
  14568. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
  14569. return xcb_ret
  14570. }
  14571. var _xcb_req117 = Txcb_protocol_request_t{
  14572. Fcount: uint32(3),
  14573. Fopcode: uint8(m_XCB_CREATE_GC),
  14574. Fisvoid: uint8(1),
  14575. }
  14576. func Xxcb_create_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  14577. return R + libc.UintptrFromInt32(1)*16
  14578. }
  14579. func Xxcb_change_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14580. bp := tls.Alloc(16)
  14581. defer tls.Free(16)
  14582. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14583. var xcb_out, xcb_tmp uintptr
  14584. var xcb_parts [24]Tiovec
  14585. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  14586. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14587. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14588. xcb_buffer_len = uint32(0)
  14589. xcb_align_to = uint32(0)
  14590. xcb_padding_offset = uint32(0)
  14591. xcb_pad = uint32(0)
  14592. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  14593. xcb_parts_idx = uint32(0)
  14594. xcb_block_len = uint32(0)
  14595. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14596. /* xcb_change_gc_value_list_t.function */
  14597. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14598. xcb_block_len += uint32(4)
  14599. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14600. xcb_parts_idx++
  14601. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14602. }
  14603. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14604. /* xcb_change_gc_value_list_t.plane_mask */
  14605. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14606. xcb_block_len += uint32(4)
  14607. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14608. xcb_parts_idx++
  14609. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14610. }
  14611. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14612. /* xcb_change_gc_value_list_t.foreground */
  14613. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14614. xcb_block_len += uint32(4)
  14615. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14616. xcb_parts_idx++
  14617. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14618. }
  14619. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14620. /* xcb_change_gc_value_list_t.background */
  14621. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14622. xcb_block_len += uint32(4)
  14623. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14624. xcb_parts_idx++
  14625. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14626. }
  14627. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14628. /* xcb_change_gc_value_list_t.line_width */
  14629. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14630. xcb_block_len += uint32(4)
  14631. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14632. xcb_parts_idx++
  14633. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14634. }
  14635. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14636. /* xcb_change_gc_value_list_t.line_style */
  14637. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14638. xcb_block_len += uint32(4)
  14639. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14640. xcb_parts_idx++
  14641. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14642. }
  14643. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14644. /* xcb_change_gc_value_list_t.cap_style */
  14645. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14646. xcb_block_len += uint32(4)
  14647. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14648. xcb_parts_idx++
  14649. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14650. }
  14651. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14652. /* xcb_change_gc_value_list_t.join_style */
  14653. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14654. xcb_block_len += uint32(4)
  14655. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14656. xcb_parts_idx++
  14657. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14658. }
  14659. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14660. /* xcb_change_gc_value_list_t.fill_style */
  14661. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14662. xcb_block_len += uint32(4)
  14663. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14664. xcb_parts_idx++
  14665. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14666. }
  14667. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14668. /* xcb_change_gc_value_list_t.fill_rule */
  14669. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14670. xcb_block_len += uint32(4)
  14671. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14672. xcb_parts_idx++
  14673. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14674. }
  14675. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14676. /* xcb_change_gc_value_list_t.tile */
  14677. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14678. xcb_block_len += uint32(4)
  14679. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14680. xcb_parts_idx++
  14681. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14682. }
  14683. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14684. /* xcb_change_gc_value_list_t.stipple */
  14685. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14686. xcb_block_len += uint32(4)
  14687. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14688. xcb_parts_idx++
  14689. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14690. }
  14691. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14692. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14693. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14694. xcb_block_len += uint32(4)
  14695. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14696. xcb_parts_idx++
  14697. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14698. }
  14699. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14700. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14701. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14702. xcb_block_len += uint32(4)
  14703. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14704. xcb_parts_idx++
  14705. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14706. }
  14707. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14708. /* xcb_change_gc_value_list_t.font */
  14709. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14710. xcb_block_len += uint32(4)
  14711. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14712. xcb_parts_idx++
  14713. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14714. }
  14715. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14716. /* xcb_change_gc_value_list_t.subwindow_mode */
  14717. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14718. xcb_block_len += uint32(4)
  14719. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14720. xcb_parts_idx++
  14721. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14722. }
  14723. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14724. /* xcb_change_gc_value_list_t.graphics_exposures */
  14725. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14726. xcb_block_len += uint32(4)
  14727. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14728. xcb_parts_idx++
  14729. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14730. }
  14731. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14732. /* xcb_change_gc_value_list_t.clip_x_origin */
  14733. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14734. xcb_block_len += uint32(4)
  14735. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14736. xcb_parts_idx++
  14737. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14738. }
  14739. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14740. /* xcb_change_gc_value_list_t.clip_y_origin */
  14741. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14742. xcb_block_len += uint32(4)
  14743. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14744. xcb_parts_idx++
  14745. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14746. }
  14747. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14748. /* xcb_change_gc_value_list_t.clip_mask */
  14749. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14750. xcb_block_len += uint32(4)
  14751. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14752. xcb_parts_idx++
  14753. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14754. }
  14755. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14756. /* xcb_change_gc_value_list_t.dash_offset */
  14757. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14758. xcb_block_len += uint32(4)
  14759. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14760. xcb_parts_idx++
  14761. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14762. }
  14763. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14764. /* xcb_change_gc_value_list_t.dashes */
  14765. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14766. xcb_block_len += uint32(4)
  14767. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14768. xcb_parts_idx++
  14769. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14770. }
  14771. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14772. /* xcb_change_gc_value_list_t.arc_mode */
  14773. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14774. xcb_block_len += uint32(4)
  14775. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  14776. xcb_parts_idx++
  14777. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14778. }
  14779. /* insert padding */
  14780. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14781. xcb_buffer_len += xcb_block_len + xcb_pad
  14782. if uint32(0) != xcb_pad {
  14783. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14784. xcb_parts[xcb_parts_idx].Fiov_len = xcb_pad
  14785. xcb_parts_idx++
  14786. xcb_pad = uint32(0)
  14787. }
  14788. xcb_block_len = uint32(0)
  14789. xcb_padding_offset = uint32(0)
  14790. if libc.UintptrFromInt32(0) == xcb_out {
  14791. /* allocate memory */
  14792. xcb_out = libc.Xmalloc(tls, xcb_buffer_len)
  14793. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14794. }
  14795. xcb_tmp = xcb_out
  14796. i = uint32(0)
  14797. for {
  14798. if !(i < xcb_parts_idx) {
  14799. break
  14800. }
  14801. if uintptr(0) != xcb_parts[i].Fiov_base && uint32(0) != xcb_parts[i].Fiov_len {
  14802. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14803. }
  14804. if uint32(0) != xcb_parts[i].Fiov_len {
  14805. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14806. }
  14807. goto _1
  14808. _1:
  14809. ;
  14810. i++
  14811. }
  14812. return libc.Int32FromUint32(xcb_buffer_len)
  14813. }
  14814. func Xxcb_change_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14815. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14816. var xcb_tmp uintptr
  14817. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14818. xcb_tmp = _buffer
  14819. xcb_buffer_len = uint32(0)
  14820. xcb_block_len = uint32(0)
  14821. xcb_pad = uint32(0)
  14822. xcb_align_to = uint32(0)
  14823. xcb_padding_offset = uint32(0)
  14824. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14825. /* xcb_change_gc_value_list_t.function */
  14826. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14827. xcb_block_len += uint32(4)
  14828. xcb_tmp += uintptr(4)
  14829. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14830. }
  14831. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14832. /* xcb_change_gc_value_list_t.plane_mask */
  14833. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14834. xcb_block_len += uint32(4)
  14835. xcb_tmp += uintptr(4)
  14836. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14837. }
  14838. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14839. /* xcb_change_gc_value_list_t.foreground */
  14840. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14841. xcb_block_len += uint32(4)
  14842. xcb_tmp += uintptr(4)
  14843. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14844. }
  14845. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14846. /* xcb_change_gc_value_list_t.background */
  14847. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14848. xcb_block_len += uint32(4)
  14849. xcb_tmp += uintptr(4)
  14850. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14851. }
  14852. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14853. /* xcb_change_gc_value_list_t.line_width */
  14854. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14855. xcb_block_len += uint32(4)
  14856. xcb_tmp += uintptr(4)
  14857. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14858. }
  14859. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14860. /* xcb_change_gc_value_list_t.line_style */
  14861. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14862. xcb_block_len += uint32(4)
  14863. xcb_tmp += uintptr(4)
  14864. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14865. }
  14866. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14867. /* xcb_change_gc_value_list_t.cap_style */
  14868. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14869. xcb_block_len += uint32(4)
  14870. xcb_tmp += uintptr(4)
  14871. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14872. }
  14873. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14874. /* xcb_change_gc_value_list_t.join_style */
  14875. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14876. xcb_block_len += uint32(4)
  14877. xcb_tmp += uintptr(4)
  14878. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14879. }
  14880. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14881. /* xcb_change_gc_value_list_t.fill_style */
  14882. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14883. xcb_block_len += uint32(4)
  14884. xcb_tmp += uintptr(4)
  14885. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14886. }
  14887. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14888. /* xcb_change_gc_value_list_t.fill_rule */
  14889. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14890. xcb_block_len += uint32(4)
  14891. xcb_tmp += uintptr(4)
  14892. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14893. }
  14894. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14895. /* xcb_change_gc_value_list_t.tile */
  14896. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14897. xcb_block_len += uint32(4)
  14898. xcb_tmp += uintptr(4)
  14899. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14900. }
  14901. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14902. /* xcb_change_gc_value_list_t.stipple */
  14903. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14904. xcb_block_len += uint32(4)
  14905. xcb_tmp += uintptr(4)
  14906. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14907. }
  14908. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14909. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14910. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14911. xcb_block_len += uint32(4)
  14912. xcb_tmp += uintptr(4)
  14913. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14914. }
  14915. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14916. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14917. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14918. xcb_block_len += uint32(4)
  14919. xcb_tmp += uintptr(4)
  14920. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14921. }
  14922. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14923. /* xcb_change_gc_value_list_t.font */
  14924. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14925. xcb_block_len += uint32(4)
  14926. xcb_tmp += uintptr(4)
  14927. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14928. }
  14929. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14930. /* xcb_change_gc_value_list_t.subwindow_mode */
  14931. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14932. xcb_block_len += uint32(4)
  14933. xcb_tmp += uintptr(4)
  14934. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14935. }
  14936. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14937. /* xcb_change_gc_value_list_t.graphics_exposures */
  14938. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14939. xcb_block_len += uint32(4)
  14940. xcb_tmp += uintptr(4)
  14941. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14942. }
  14943. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14944. /* xcb_change_gc_value_list_t.clip_x_origin */
  14945. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14946. xcb_block_len += uint32(4)
  14947. xcb_tmp += uintptr(4)
  14948. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14949. }
  14950. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14951. /* xcb_change_gc_value_list_t.clip_y_origin */
  14952. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14953. xcb_block_len += uint32(4)
  14954. xcb_tmp += uintptr(4)
  14955. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14956. }
  14957. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14958. /* xcb_change_gc_value_list_t.clip_mask */
  14959. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14960. xcb_block_len += uint32(4)
  14961. xcb_tmp += uintptr(4)
  14962. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14963. }
  14964. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14965. /* xcb_change_gc_value_list_t.dash_offset */
  14966. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14967. xcb_block_len += uint32(4)
  14968. xcb_tmp += uintptr(4)
  14969. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14970. }
  14971. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14972. /* xcb_change_gc_value_list_t.dashes */
  14973. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14974. xcb_block_len += uint32(4)
  14975. xcb_tmp += uintptr(4)
  14976. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14977. }
  14978. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14979. /* xcb_change_gc_value_list_t.arc_mode */
  14980. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14981. xcb_block_len += uint32(4)
  14982. xcb_tmp += uintptr(4)
  14983. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  14984. }
  14985. /* insert padding */
  14986. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14987. xcb_buffer_len += xcb_block_len + xcb_pad
  14988. if uint32(0) != xcb_pad {
  14989. xcb_tmp += uintptr(xcb_pad)
  14990. xcb_pad = uint32(0)
  14991. }
  14992. xcb_block_len = uint32(0)
  14993. xcb_padding_offset = uint32(0)
  14994. return libc.Int32FromUint32(xcb_buffer_len)
  14995. }
  14996. func Xxcb_change_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14997. bp := tls.Alloc(96)
  14998. defer tls.Free(96)
  14999. var _ /* _aux at bp+0 */ Txcb_change_gc_value_list_t
  15000. return Xxcb_change_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  15001. }
  15002. func Xxcb_change_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15003. var _aux, xcb_tmp uintptr
  15004. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15005. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15006. xcb_tmp = _buffer
  15007. _aux = _buffer
  15008. xcb_buffer_len = uint32(0)
  15009. xcb_block_len = uint32(0)
  15010. xcb_pad = uint32(0)
  15011. xcb_align_to = uint32(0)
  15012. xcb_block_len += uint32(12)
  15013. xcb_tmp += uintptr(xcb_block_len)
  15014. xcb_buffer_len += xcb_block_len
  15015. xcb_block_len = uint32(0)
  15016. /* value_list */
  15017. xcb_block_len += libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  15018. xcb_tmp += uintptr(xcb_block_len)
  15019. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  15020. /* insert padding */
  15021. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15022. xcb_buffer_len += xcb_block_len + xcb_pad
  15023. if uint32(0) != xcb_pad {
  15024. xcb_tmp += uintptr(xcb_pad)
  15025. xcb_pad = uint32(0)
  15026. }
  15027. xcb_block_len = uint32(0)
  15028. return libc.Int32FromUint32(xcb_buffer_len)
  15029. }
  15030. 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) {
  15031. bp := tls.Alloc(64)
  15032. defer tls.Free(64)
  15033. var xcb_ret Txcb_void_cookie_t
  15034. var _ /* xcb_out at bp+40 */ Txcb_change_gc_request_t
  15035. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15036. _ = xcb_ret
  15037. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  15038. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fgc = gc
  15039. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  15040. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  15041. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15042. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15043. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15044. /* xcb_change_gc_value_list_t value_list */
  15045. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  15046. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  15047. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req118)))
  15048. return xcb_ret
  15049. }
  15050. var _xcb_req118 = Txcb_protocol_request_t{
  15051. Fcount: uint32(3),
  15052. Fopcode: uint8(m_XCB_CHANGE_GC),
  15053. Fisvoid: uint8(1),
  15054. }
  15055. 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) {
  15056. bp := tls.Alloc(64)
  15057. defer tls.Free(64)
  15058. var xcb_ret Txcb_void_cookie_t
  15059. var _ /* xcb_out at bp+40 */ Txcb_change_gc_request_t
  15060. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15061. _ = xcb_ret
  15062. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  15063. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fgc = gc
  15064. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  15065. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  15066. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15067. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15068. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15069. /* xcb_change_gc_value_list_t value_list */
  15070. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  15071. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  15072. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req119)))
  15073. return xcb_ret
  15074. }
  15075. var _xcb_req119 = Txcb_protocol_request_t{
  15076. Fcount: uint32(3),
  15077. Fopcode: uint8(m_XCB_CHANGE_GC),
  15078. Fisvoid: uint8(1),
  15079. }
  15080. 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) {
  15081. bp := tls.Alloc(64)
  15082. defer tls.Free(64)
  15083. var xcb_ret Txcb_void_cookie_t
  15084. var _ /* xcb_aux0 at bp+52 */ uintptr
  15085. var _ /* xcb_out at bp+40 */ Txcb_change_gc_request_t
  15086. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15087. _ = xcb_ret
  15088. *(*uintptr)(unsafe.Pointer(bp + 52)) = uintptr(0)
  15089. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  15090. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fgc = gc
  15091. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  15092. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  15093. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15094. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15095. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15096. /* xcb_change_gc_value_list_t value_list */
  15097. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+52, value_mask, value_list))
  15098. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 52))
  15099. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req120)))
  15100. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 52)))
  15101. return xcb_ret
  15102. }
  15103. var _xcb_req120 = Txcb_protocol_request_t{
  15104. Fcount: uint32(3),
  15105. Fopcode: uint8(m_XCB_CHANGE_GC),
  15106. Fisvoid: uint8(1),
  15107. }
  15108. 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) {
  15109. bp := tls.Alloc(64)
  15110. defer tls.Free(64)
  15111. var xcb_ret Txcb_void_cookie_t
  15112. var _ /* xcb_aux0 at bp+52 */ uintptr
  15113. var _ /* xcb_out at bp+40 */ Txcb_change_gc_request_t
  15114. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15115. _ = xcb_ret
  15116. *(*uintptr)(unsafe.Pointer(bp + 52)) = uintptr(0)
  15117. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  15118. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fgc = gc
  15119. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  15120. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  15121. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15122. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15123. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15124. /* xcb_change_gc_value_list_t value_list */
  15125. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+52, value_mask, value_list))
  15126. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 52))
  15127. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req121)))
  15128. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 52)))
  15129. return xcb_ret
  15130. }
  15131. var _xcb_req121 = Txcb_protocol_request_t{
  15132. Fcount: uint32(3),
  15133. Fopcode: uint8(m_XCB_CHANGE_GC),
  15134. Fisvoid: uint8(1),
  15135. }
  15136. func Xxcb_change_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  15137. return R + libc.UintptrFromInt32(1)*12
  15138. }
  15139. 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) {
  15140. bp := tls.Alloc(48)
  15141. defer tls.Free(48)
  15142. var xcb_ret Txcb_void_cookie_t
  15143. var _ /* xcb_out at bp+32 */ Txcb_copy_gc_request_t
  15144. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15145. _ = xcb_ret
  15146. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15147. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fsrc_gc = src_gc
  15148. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fdst_gc = dst_gc
  15149. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fvalue_mask = value_mask
  15150. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15151. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  15152. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15153. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15154. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req122)))
  15155. return xcb_ret
  15156. }
  15157. var _xcb_req122 = Txcb_protocol_request_t{
  15158. Fcount: uint32(2),
  15159. Fopcode: uint8(m_XCB_COPY_GC),
  15160. Fisvoid: uint8(1),
  15161. }
  15162. 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) {
  15163. bp := tls.Alloc(48)
  15164. defer tls.Free(48)
  15165. var xcb_ret Txcb_void_cookie_t
  15166. var _ /* xcb_out at bp+32 */ Txcb_copy_gc_request_t
  15167. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15168. _ = xcb_ret
  15169. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15170. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fsrc_gc = src_gc
  15171. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fdst_gc = dst_gc
  15172. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 32))).Fvalue_mask = value_mask
  15173. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15174. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  15175. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15176. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15177. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req123)))
  15178. return xcb_ret
  15179. }
  15180. var _xcb_req123 = Txcb_protocol_request_t{
  15181. Fcount: uint32(2),
  15182. Fopcode: uint8(m_XCB_COPY_GC),
  15183. Fisvoid: uint8(1),
  15184. }
  15185. func Xxcb_set_dashes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15186. var _aux, xcb_tmp uintptr
  15187. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15188. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15189. xcb_tmp = _buffer
  15190. _aux = _buffer
  15191. xcb_buffer_len = uint32(0)
  15192. xcb_block_len = uint32(0)
  15193. xcb_pad = uint32(0)
  15194. xcb_align_to = uint32(0)
  15195. xcb_block_len += uint32(12)
  15196. xcb_tmp += uintptr(xcb_block_len)
  15197. xcb_buffer_len += xcb_block_len
  15198. xcb_block_len = uint32(0)
  15199. /* dashes */
  15200. xcb_block_len += uint32((*Txcb_set_dashes_request_t)(unsafe.Pointer(_aux)).Fdashes_len) * uint32(1)
  15201. xcb_tmp += uintptr(xcb_block_len)
  15202. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  15203. /* insert padding */
  15204. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15205. xcb_buffer_len += xcb_block_len + xcb_pad
  15206. if uint32(0) != xcb_pad {
  15207. xcb_tmp += uintptr(xcb_pad)
  15208. xcb_pad = uint32(0)
  15209. }
  15210. xcb_block_len = uint32(0)
  15211. return libc.Int32FromUint32(xcb_buffer_len)
  15212. }
  15213. 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) {
  15214. bp := tls.Alloc(64)
  15215. defer tls.Free(64)
  15216. var xcb_ret Txcb_void_cookie_t
  15217. var _ /* xcb_out at bp+48 */ Txcb_set_dashes_request_t
  15218. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15219. _ = xcb_ret
  15220. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  15221. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15222. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fdash_offset = dash_offset
  15223. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fdashes_len = dashes_len
  15224. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15225. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15226. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15227. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15228. /* uint8_t dashes */
  15229. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15230. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(dashes_len) * uint32(1)
  15231. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15232. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15233. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req124)))
  15234. return xcb_ret
  15235. }
  15236. var _xcb_req124 = Txcb_protocol_request_t{
  15237. Fcount: uint32(4),
  15238. Fopcode: uint8(m_XCB_SET_DASHES),
  15239. Fisvoid: uint8(1),
  15240. }
  15241. 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) {
  15242. bp := tls.Alloc(64)
  15243. defer tls.Free(64)
  15244. var xcb_ret Txcb_void_cookie_t
  15245. var _ /* xcb_out at bp+48 */ Txcb_set_dashes_request_t
  15246. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15247. _ = xcb_ret
  15248. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  15249. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15250. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fdash_offset = dash_offset
  15251. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 48))).Fdashes_len = dashes_len
  15252. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15253. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15254. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15255. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15256. /* uint8_t dashes */
  15257. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15258. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(dashes_len) * uint32(1)
  15259. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15260. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15261. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req125)))
  15262. return xcb_ret
  15263. }
  15264. var _xcb_req125 = Txcb_protocol_request_t{
  15265. Fcount: uint32(4),
  15266. Fopcode: uint8(m_XCB_SET_DASHES),
  15267. Fisvoid: uint8(1),
  15268. }
  15269. func Xxcb_set_dashes_dashes(tls *libc.TLS, R uintptr) (r uintptr) {
  15270. return R + libc.UintptrFromInt32(1)*12
  15271. }
  15272. func Xxcb_set_dashes_dashes_length(tls *libc.TLS, R uintptr) (r int32) {
  15273. return libc.Int32FromUint16((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15274. }
  15275. func Xxcb_set_dashes_dashes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  15276. var i Txcb_generic_iterator_t
  15277. _ = i
  15278. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15279. i.Frem = 0
  15280. i.Findex = int32(i.Fdata) - int32(R)
  15281. return i
  15282. }
  15283. func Xxcb_set_clip_rectangles_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15284. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15285. var xcb_tmp uintptr
  15286. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15287. xcb_tmp = _buffer
  15288. xcb_buffer_len = uint32(0)
  15289. xcb_block_len = uint32(0)
  15290. xcb_pad = uint32(0)
  15291. xcb_align_to = uint32(0)
  15292. xcb_block_len += uint32(12)
  15293. xcb_tmp += uintptr(xcb_block_len)
  15294. xcb_buffer_len += xcb_block_len
  15295. xcb_block_len = uint32(0)
  15296. /* rectangles */
  15297. xcb_block_len += rectangles_len * uint32(8)
  15298. xcb_tmp += uintptr(xcb_block_len)
  15299. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  15300. /* insert padding */
  15301. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15302. xcb_buffer_len += xcb_block_len + xcb_pad
  15303. if uint32(0) != xcb_pad {
  15304. xcb_tmp += uintptr(xcb_pad)
  15305. xcb_pad = uint32(0)
  15306. }
  15307. xcb_block_len = uint32(0)
  15308. return libc.Int32FromUint32(xcb_buffer_len)
  15309. }
  15310. 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) {
  15311. bp := tls.Alloc(64)
  15312. defer tls.Free(64)
  15313. var xcb_ret Txcb_void_cookie_t
  15314. var _ /* xcb_out at bp+48 */ Txcb_set_clip_rectangles_request_t
  15315. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15316. _ = xcb_ret
  15317. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fordering = ordering
  15318. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15319. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fclip_x_origin = clip_x_origin
  15320. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fclip_y_origin = clip_y_origin
  15321. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15322. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15323. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15324. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15325. /* xcb_rectangle_t rectangles */
  15326. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15327. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = rectangles_len * uint32(8)
  15328. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15329. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15330. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req126)))
  15331. return xcb_ret
  15332. }
  15333. var _xcb_req126 = Txcb_protocol_request_t{
  15334. Fcount: uint32(4),
  15335. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15336. Fisvoid: uint8(1),
  15337. }
  15338. 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) {
  15339. bp := tls.Alloc(64)
  15340. defer tls.Free(64)
  15341. var xcb_ret Txcb_void_cookie_t
  15342. var _ /* xcb_out at bp+48 */ Txcb_set_clip_rectangles_request_t
  15343. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15344. _ = xcb_ret
  15345. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fordering = ordering
  15346. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15347. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fclip_x_origin = clip_x_origin
  15348. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 48))).Fclip_y_origin = clip_y_origin
  15349. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15350. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15351. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15352. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15353. /* xcb_rectangle_t rectangles */
  15354. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15355. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = rectangles_len * uint32(8)
  15356. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15357. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15358. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req127)))
  15359. return xcb_ret
  15360. }
  15361. var _xcb_req127 = Txcb_protocol_request_t{
  15362. Fcount: uint32(4),
  15363. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15364. Fisvoid: uint8(1),
  15365. }
  15366. func Xxcb_set_clip_rectangles_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15367. return R + libc.UintptrFromInt32(1)*12
  15368. }
  15369. func Xxcb_set_clip_rectangles_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15370. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  15371. }
  15372. func Xxcb_set_clip_rectangles_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15373. var i Txcb_rectangle_iterator_t
  15374. _ = i
  15375. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15376. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  15377. i.Findex = int32(i.Fdata) - int32(R)
  15378. return i
  15379. }
  15380. func Xxcb_free_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15381. bp := tls.Alloc(48)
  15382. defer tls.Free(48)
  15383. var xcb_ret Txcb_void_cookie_t
  15384. var _ /* xcb_out at bp+32 */ Txcb_free_gc_request_t
  15385. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15386. _ = xcb_ret
  15387. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15388. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 32))).Fgc = gc
  15389. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15390. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  15391. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15392. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15393. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req128)))
  15394. return xcb_ret
  15395. }
  15396. var _xcb_req128 = Txcb_protocol_request_t{
  15397. Fcount: uint32(2),
  15398. Fopcode: uint8(m_XCB_FREE_GC),
  15399. Fisvoid: uint8(1),
  15400. }
  15401. func Xxcb_free_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15402. bp := tls.Alloc(48)
  15403. defer tls.Free(48)
  15404. var xcb_ret Txcb_void_cookie_t
  15405. var _ /* xcb_out at bp+32 */ Txcb_free_gc_request_t
  15406. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15407. _ = xcb_ret
  15408. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15409. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 32))).Fgc = gc
  15410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15411. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  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 & uint32(3)
  15414. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req129)))
  15415. return xcb_ret
  15416. }
  15417. var _xcb_req129 = Txcb_protocol_request_t{
  15418. Fcount: uint32(2),
  15419. Fopcode: uint8(m_XCB_FREE_GC),
  15420. Fisvoid: uint8(1),
  15421. }
  15422. 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) {
  15423. bp := tls.Alloc(48)
  15424. defer tls.Free(48)
  15425. var xcb_ret Txcb_void_cookie_t
  15426. var _ /* xcb_out at bp+32 */ Txcb_clear_area_request_t
  15427. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15428. _ = xcb_ret
  15429. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fexposures = exposures
  15430. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  15431. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  15432. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  15433. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  15434. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  15435. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15436. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  15437. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15438. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15439. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req130)))
  15440. return xcb_ret
  15441. }
  15442. var _xcb_req130 = Txcb_protocol_request_t{
  15443. Fcount: uint32(2),
  15444. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15445. Fisvoid: uint8(1),
  15446. }
  15447. 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) {
  15448. bp := tls.Alloc(48)
  15449. defer tls.Free(48)
  15450. var xcb_ret Txcb_void_cookie_t
  15451. var _ /* xcb_out at bp+32 */ Txcb_clear_area_request_t
  15452. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15453. _ = xcb_ret
  15454. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fexposures = exposures
  15455. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  15456. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  15457. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  15458. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  15459. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  15460. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15461. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  15462. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15463. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15464. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req131)))
  15465. return xcb_ret
  15466. }
  15467. var _xcb_req131 = Txcb_protocol_request_t{
  15468. Fcount: uint32(2),
  15469. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15470. Fisvoid: uint8(1),
  15471. }
  15472. 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) {
  15473. bp := tls.Alloc(64)
  15474. defer tls.Free(64)
  15475. var xcb_ret Txcb_void_cookie_t
  15476. var _ /* xcb_out at bp+32 */ Txcb_copy_area_request_t
  15477. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15478. _ = xcb_ret
  15479. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15480. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fsrc_drawable = src_drawable
  15481. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fdst_drawable = dst_drawable
  15482. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fgc = gc
  15483. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  15484. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  15485. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fdst_x = dst_x
  15486. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fdst_y = dst_y
  15487. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  15488. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  15489. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15490. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(28)
  15491. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15492. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15493. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req132)))
  15494. return xcb_ret
  15495. }
  15496. var _xcb_req132 = Txcb_protocol_request_t{
  15497. Fcount: uint32(2),
  15498. Fopcode: uint8(m_XCB_COPY_AREA),
  15499. Fisvoid: uint8(1),
  15500. }
  15501. 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) {
  15502. bp := tls.Alloc(64)
  15503. defer tls.Free(64)
  15504. var xcb_ret Txcb_void_cookie_t
  15505. var _ /* xcb_out at bp+32 */ Txcb_copy_area_request_t
  15506. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15507. _ = xcb_ret
  15508. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15509. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fsrc_drawable = src_drawable
  15510. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fdst_drawable = dst_drawable
  15511. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fgc = gc
  15512. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  15513. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  15514. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fdst_x = dst_x
  15515. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fdst_y = dst_y
  15516. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  15517. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  15518. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15519. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(28)
  15520. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15521. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15522. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req133)))
  15523. return xcb_ret
  15524. }
  15525. var _xcb_req133 = Txcb_protocol_request_t{
  15526. Fcount: uint32(2),
  15527. Fopcode: uint8(m_XCB_COPY_AREA),
  15528. Fisvoid: uint8(1),
  15529. }
  15530. 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) {
  15531. bp := tls.Alloc(64)
  15532. defer tls.Free(64)
  15533. var xcb_ret Txcb_void_cookie_t
  15534. var _ /* xcb_out at bp+32 */ Txcb_copy_plane_request_t
  15535. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15536. _ = xcb_ret
  15537. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15538. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fsrc_drawable = src_drawable
  15539. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fdst_drawable = dst_drawable
  15540. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fgc = gc
  15541. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  15542. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  15543. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fdst_x = dst_x
  15544. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fdst_y = dst_y
  15545. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  15546. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  15547. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fbit_plane = bit_plane
  15548. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15549. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  15550. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15551. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15552. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req134)))
  15553. return xcb_ret
  15554. }
  15555. var _xcb_req134 = Txcb_protocol_request_t{
  15556. Fcount: uint32(2),
  15557. Fopcode: uint8(m_XCB_COPY_PLANE),
  15558. Fisvoid: uint8(1),
  15559. }
  15560. 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) {
  15561. bp := tls.Alloc(64)
  15562. defer tls.Free(64)
  15563. var xcb_ret Txcb_void_cookie_t
  15564. var _ /* xcb_out at bp+32 */ Txcb_copy_plane_request_t
  15565. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15566. _ = xcb_ret
  15567. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  15568. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fsrc_drawable = src_drawable
  15569. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fdst_drawable = dst_drawable
  15570. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fgc = gc
  15571. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fsrc_x = src_x
  15572. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fsrc_y = src_y
  15573. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fdst_x = dst_x
  15574. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fdst_y = dst_y
  15575. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  15576. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  15577. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 32))).Fbit_plane = bit_plane
  15578. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  15579. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  15580. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15581. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15582. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req135)))
  15583. return xcb_ret
  15584. }
  15585. var _xcb_req135 = Txcb_protocol_request_t{
  15586. Fcount: uint32(2),
  15587. Fopcode: uint8(m_XCB_COPY_PLANE),
  15588. Fisvoid: uint8(1),
  15589. }
  15590. func Xxcb_poly_point_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15591. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15592. var xcb_tmp uintptr
  15593. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15594. xcb_tmp = _buffer
  15595. xcb_buffer_len = uint32(0)
  15596. xcb_block_len = uint32(0)
  15597. xcb_pad = uint32(0)
  15598. xcb_align_to = uint32(0)
  15599. xcb_block_len += uint32(12)
  15600. xcb_tmp += uintptr(xcb_block_len)
  15601. xcb_buffer_len += xcb_block_len
  15602. xcb_block_len = uint32(0)
  15603. /* points */
  15604. xcb_block_len += points_len * uint32(4)
  15605. xcb_tmp += uintptr(xcb_block_len)
  15606. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  15607. /* insert padding */
  15608. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15609. xcb_buffer_len += xcb_block_len + xcb_pad
  15610. if uint32(0) != xcb_pad {
  15611. xcb_tmp += uintptr(xcb_pad)
  15612. xcb_pad = uint32(0)
  15613. }
  15614. xcb_block_len = uint32(0)
  15615. return libc.Int32FromUint32(xcb_buffer_len)
  15616. }
  15617. 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) {
  15618. bp := tls.Alloc(64)
  15619. defer tls.Free(64)
  15620. var xcb_ret Txcb_void_cookie_t
  15621. var _ /* xcb_out at bp+48 */ Txcb_poly_point_request_t
  15622. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15623. _ = xcb_ret
  15624. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 48))).Fcoordinate_mode = coordinate_mode
  15625. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15626. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15627. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15628. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15629. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15630. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15631. /* xcb_point_t points */
  15632. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15633. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = points_len * uint32(4)
  15634. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15635. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15636. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req136)))
  15637. return xcb_ret
  15638. }
  15639. var _xcb_req136 = Txcb_protocol_request_t{
  15640. Fcount: uint32(4),
  15641. Fopcode: uint8(m_XCB_POLY_POINT),
  15642. Fisvoid: uint8(1),
  15643. }
  15644. 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) {
  15645. bp := tls.Alloc(64)
  15646. defer tls.Free(64)
  15647. var xcb_ret Txcb_void_cookie_t
  15648. var _ /* xcb_out at bp+48 */ Txcb_poly_point_request_t
  15649. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15650. _ = xcb_ret
  15651. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 48))).Fcoordinate_mode = coordinate_mode
  15652. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15653. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15654. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15655. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15656. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15657. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15658. /* xcb_point_t points */
  15659. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15660. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = points_len * uint32(4)
  15661. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15662. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15663. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req137)))
  15664. return xcb_ret
  15665. }
  15666. var _xcb_req137 = Txcb_protocol_request_t{
  15667. Fcount: uint32(4),
  15668. Fopcode: uint8(m_XCB_POLY_POINT),
  15669. Fisvoid: uint8(1),
  15670. }
  15671. func Xxcb_poly_point_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15672. return R + libc.UintptrFromInt32(1)*12
  15673. }
  15674. func Xxcb_poly_point_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15675. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_point_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(4))
  15676. }
  15677. func Xxcb_poly_point_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15678. var i Txcb_point_iterator_t
  15679. _ = i
  15680. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15681. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_point_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(4))
  15682. i.Findex = int32(i.Fdata) - int32(R)
  15683. return i
  15684. }
  15685. func Xxcb_poly_line_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15686. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15687. var xcb_tmp uintptr
  15688. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15689. xcb_tmp = _buffer
  15690. xcb_buffer_len = uint32(0)
  15691. xcb_block_len = uint32(0)
  15692. xcb_pad = uint32(0)
  15693. xcb_align_to = uint32(0)
  15694. xcb_block_len += uint32(12)
  15695. xcb_tmp += uintptr(xcb_block_len)
  15696. xcb_buffer_len += xcb_block_len
  15697. xcb_block_len = uint32(0)
  15698. /* points */
  15699. xcb_block_len += points_len * uint32(4)
  15700. xcb_tmp += uintptr(xcb_block_len)
  15701. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  15702. /* insert padding */
  15703. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15704. xcb_buffer_len += xcb_block_len + xcb_pad
  15705. if uint32(0) != xcb_pad {
  15706. xcb_tmp += uintptr(xcb_pad)
  15707. xcb_pad = uint32(0)
  15708. }
  15709. xcb_block_len = uint32(0)
  15710. return libc.Int32FromUint32(xcb_buffer_len)
  15711. }
  15712. 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) {
  15713. bp := tls.Alloc(64)
  15714. defer tls.Free(64)
  15715. var xcb_ret Txcb_void_cookie_t
  15716. var _ /* xcb_out at bp+48 */ Txcb_poly_line_request_t
  15717. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15718. _ = xcb_ret
  15719. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 48))).Fcoordinate_mode = coordinate_mode
  15720. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15721. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15722. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15723. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15724. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15725. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15726. /* xcb_point_t points */
  15727. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15728. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = points_len * uint32(4)
  15729. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15730. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15731. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req138)))
  15732. return xcb_ret
  15733. }
  15734. var _xcb_req138 = Txcb_protocol_request_t{
  15735. Fcount: uint32(4),
  15736. Fopcode: uint8(m_XCB_POLY_LINE),
  15737. Fisvoid: uint8(1),
  15738. }
  15739. 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) {
  15740. bp := tls.Alloc(64)
  15741. defer tls.Free(64)
  15742. var xcb_ret Txcb_void_cookie_t
  15743. var _ /* xcb_out at bp+48 */ Txcb_poly_line_request_t
  15744. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15745. _ = xcb_ret
  15746. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 48))).Fcoordinate_mode = coordinate_mode
  15747. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15748. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15749. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15750. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15751. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15752. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15753. /* xcb_point_t points */
  15754. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15755. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = points_len * uint32(4)
  15756. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15757. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15758. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req139)))
  15759. return xcb_ret
  15760. }
  15761. var _xcb_req139 = Txcb_protocol_request_t{
  15762. Fcount: uint32(4),
  15763. Fopcode: uint8(m_XCB_POLY_LINE),
  15764. Fisvoid: uint8(1),
  15765. }
  15766. func Xxcb_poly_line_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15767. return R + libc.UintptrFromInt32(1)*12
  15768. }
  15769. func Xxcb_poly_line_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15770. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_line_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(4))
  15771. }
  15772. func Xxcb_poly_line_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15773. var i Txcb_point_iterator_t
  15774. _ = i
  15775. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15776. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_line_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(4))
  15777. i.Findex = int32(i.Fdata) - int32(R)
  15778. return i
  15779. }
  15780. func Xxcb_segment_next(tls *libc.TLS, i uintptr) {
  15781. var p1 uintptr
  15782. _ = p1
  15783. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Frem--
  15784. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  15785. p1 = i + 8
  15786. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(8))
  15787. }
  15788. func Xxcb_segment_end(tls *libc.TLS, i Txcb_segment_iterator_t) (r Txcb_generic_iterator_t) {
  15789. var ret Txcb_generic_iterator_t
  15790. _ = ret
  15791. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  15792. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  15793. ret.Frem = 0
  15794. return ret
  15795. }
  15796. func Xxcb_poly_segment_sizeof(tls *libc.TLS, _buffer uintptr, segments_len Tuint32_t) (r int32) {
  15797. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15798. var xcb_tmp uintptr
  15799. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15800. xcb_tmp = _buffer
  15801. xcb_buffer_len = uint32(0)
  15802. xcb_block_len = uint32(0)
  15803. xcb_pad = uint32(0)
  15804. xcb_align_to = uint32(0)
  15805. xcb_block_len += uint32(12)
  15806. xcb_tmp += uintptr(xcb_block_len)
  15807. xcb_buffer_len += xcb_block_len
  15808. xcb_block_len = uint32(0)
  15809. /* segments */
  15810. xcb_block_len += segments_len * uint32(8)
  15811. xcb_tmp += uintptr(xcb_block_len)
  15812. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  15813. /* insert padding */
  15814. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15815. xcb_buffer_len += xcb_block_len + xcb_pad
  15816. if uint32(0) != xcb_pad {
  15817. xcb_tmp += uintptr(xcb_pad)
  15818. xcb_pad = uint32(0)
  15819. }
  15820. xcb_block_len = uint32(0)
  15821. return libc.Int32FromUint32(xcb_buffer_len)
  15822. }
  15823. 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) {
  15824. bp := tls.Alloc(64)
  15825. defer tls.Free(64)
  15826. var xcb_ret Txcb_void_cookie_t
  15827. var _ /* xcb_out at bp+48 */ Txcb_poly_segment_request_t
  15828. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15829. _ = xcb_ret
  15830. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  15831. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15832. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15833. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15834. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15835. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15836. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15837. /* xcb_segment_t segments */
  15838. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15839. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = segments_len * uint32(8)
  15840. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15841. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15842. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req140)))
  15843. return xcb_ret
  15844. }
  15845. var _xcb_req140 = Txcb_protocol_request_t{
  15846. Fcount: uint32(4),
  15847. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15848. Fisvoid: uint8(1),
  15849. }
  15850. 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) {
  15851. bp := tls.Alloc(64)
  15852. defer tls.Free(64)
  15853. var xcb_ret Txcb_void_cookie_t
  15854. var _ /* xcb_out at bp+48 */ Txcb_poly_segment_request_t
  15855. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15856. _ = xcb_ret
  15857. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  15858. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15859. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15860. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15861. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15862. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15863. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15864. /* xcb_segment_t segments */
  15865. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15866. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = segments_len * uint32(8)
  15867. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15868. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15869. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req141)))
  15870. return xcb_ret
  15871. }
  15872. var _xcb_req141 = Txcb_protocol_request_t{
  15873. Fcount: uint32(4),
  15874. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15875. Fisvoid: uint8(1),
  15876. }
  15877. func Xxcb_poly_segment_segments(tls *libc.TLS, R uintptr) (r uintptr) {
  15878. return R + libc.UintptrFromInt32(1)*12
  15879. }
  15880. func Xxcb_poly_segment_segments_length(tls *libc.TLS, R uintptr) (r int32) {
  15881. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_segment_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  15882. }
  15883. func Xxcb_poly_segment_segments_iterator(tls *libc.TLS, R uintptr) (r Txcb_segment_iterator_t) {
  15884. var i Txcb_segment_iterator_t
  15885. _ = i
  15886. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15887. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_segment_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  15888. i.Findex = int32(i.Fdata) - int32(R)
  15889. return i
  15890. }
  15891. func Xxcb_poly_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15892. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15893. var xcb_tmp uintptr
  15894. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15895. xcb_tmp = _buffer
  15896. xcb_buffer_len = uint32(0)
  15897. xcb_block_len = uint32(0)
  15898. xcb_pad = uint32(0)
  15899. xcb_align_to = uint32(0)
  15900. xcb_block_len += uint32(12)
  15901. xcb_tmp += uintptr(xcb_block_len)
  15902. xcb_buffer_len += xcb_block_len
  15903. xcb_block_len = uint32(0)
  15904. /* rectangles */
  15905. xcb_block_len += rectangles_len * uint32(8)
  15906. xcb_tmp += uintptr(xcb_block_len)
  15907. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  15908. /* insert padding */
  15909. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15910. xcb_buffer_len += xcb_block_len + xcb_pad
  15911. if uint32(0) != xcb_pad {
  15912. xcb_tmp += uintptr(xcb_pad)
  15913. xcb_pad = uint32(0)
  15914. }
  15915. xcb_block_len = uint32(0)
  15916. return libc.Int32FromUint32(xcb_buffer_len)
  15917. }
  15918. 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) {
  15919. bp := tls.Alloc(64)
  15920. defer tls.Free(64)
  15921. var xcb_ret Txcb_void_cookie_t
  15922. var _ /* xcb_out at bp+48 */ Txcb_poly_rectangle_request_t
  15923. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15924. _ = xcb_ret
  15925. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  15926. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15927. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15928. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15929. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15930. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15931. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15932. /* xcb_rectangle_t rectangles */
  15933. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15934. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = rectangles_len * uint32(8)
  15935. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15936. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15937. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req142)))
  15938. return xcb_ret
  15939. }
  15940. var _xcb_req142 = Txcb_protocol_request_t{
  15941. Fcount: uint32(4),
  15942. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15943. Fisvoid: uint8(1),
  15944. }
  15945. 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) {
  15946. bp := tls.Alloc(64)
  15947. defer tls.Free(64)
  15948. var xcb_ret Txcb_void_cookie_t
  15949. var _ /* xcb_out at bp+48 */ Txcb_poly_rectangle_request_t
  15950. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15951. _ = xcb_ret
  15952. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  15953. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  15954. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  15955. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  15956. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  15957. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15958. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  15959. /* xcb_rectangle_t rectangles */
  15960. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15961. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = rectangles_len * uint32(8)
  15962. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15963. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  15964. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req143)))
  15965. return xcb_ret
  15966. }
  15967. var _xcb_req143 = Txcb_protocol_request_t{
  15968. Fcount: uint32(4),
  15969. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15970. Fisvoid: uint8(1),
  15971. }
  15972. func Xxcb_poly_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15973. return R + libc.UintptrFromInt32(1)*12
  15974. }
  15975. func Xxcb_poly_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15976. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  15977. }
  15978. func Xxcb_poly_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15979. var i Txcb_rectangle_iterator_t
  15980. _ = i
  15981. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15982. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  15983. i.Findex = int32(i.Fdata) - int32(R)
  15984. return i
  15985. }
  15986. func Xxcb_poly_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  15987. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15988. var xcb_tmp uintptr
  15989. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15990. xcb_tmp = _buffer
  15991. xcb_buffer_len = uint32(0)
  15992. xcb_block_len = uint32(0)
  15993. xcb_pad = uint32(0)
  15994. xcb_align_to = uint32(0)
  15995. xcb_block_len += uint32(12)
  15996. xcb_tmp += uintptr(xcb_block_len)
  15997. xcb_buffer_len += xcb_block_len
  15998. xcb_block_len = uint32(0)
  15999. /* arcs */
  16000. xcb_block_len += arcs_len * uint32(12)
  16001. xcb_tmp += uintptr(xcb_block_len)
  16002. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  16003. /* insert padding */
  16004. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16005. xcb_buffer_len += xcb_block_len + xcb_pad
  16006. if uint32(0) != xcb_pad {
  16007. xcb_tmp += uintptr(xcb_pad)
  16008. xcb_pad = uint32(0)
  16009. }
  16010. xcb_block_len = uint32(0)
  16011. return libc.Int32FromUint32(xcb_buffer_len)
  16012. }
  16013. 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) {
  16014. bp := tls.Alloc(64)
  16015. defer tls.Free(64)
  16016. var xcb_ret Txcb_void_cookie_t
  16017. var _ /* xcb_out at bp+48 */ Txcb_poly_arc_request_t
  16018. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16019. _ = xcb_ret
  16020. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16021. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16022. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16023. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16024. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  16025. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16026. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16027. /* xcb_arc_t arcs */
  16028. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16029. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = arcs_len * uint32(12)
  16030. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16031. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16032. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req144)))
  16033. return xcb_ret
  16034. }
  16035. var _xcb_req144 = Txcb_protocol_request_t{
  16036. Fcount: uint32(4),
  16037. Fopcode: uint8(m_XCB_POLY_ARC),
  16038. Fisvoid: uint8(1),
  16039. }
  16040. 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) {
  16041. bp := tls.Alloc(64)
  16042. defer tls.Free(64)
  16043. var xcb_ret Txcb_void_cookie_t
  16044. var _ /* xcb_out at bp+48 */ Txcb_poly_arc_request_t
  16045. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16046. _ = xcb_ret
  16047. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16048. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16049. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16050. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16051. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  16052. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16053. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16054. /* xcb_arc_t arcs */
  16055. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16056. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = arcs_len * uint32(12)
  16057. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16058. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16059. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req145)))
  16060. return xcb_ret
  16061. }
  16062. var _xcb_req145 = Txcb_protocol_request_t{
  16063. Fcount: uint32(4),
  16064. Fopcode: uint8(m_XCB_POLY_ARC),
  16065. Fisvoid: uint8(1),
  16066. }
  16067. func Xxcb_poly_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16068. return R + libc.UintptrFromInt32(1)*12
  16069. }
  16070. func Xxcb_poly_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16071. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(12))
  16072. }
  16073. func Xxcb_poly_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16074. var i Txcb_arc_iterator_t
  16075. _ = i
  16076. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16077. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(12))
  16078. i.Findex = int32(i.Fdata) - int32(R)
  16079. return i
  16080. }
  16081. func Xxcb_fill_poly_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  16082. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16083. var xcb_tmp uintptr
  16084. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16085. xcb_tmp = _buffer
  16086. xcb_buffer_len = uint32(0)
  16087. xcb_block_len = uint32(0)
  16088. xcb_pad = uint32(0)
  16089. xcb_align_to = uint32(0)
  16090. xcb_block_len += uint32(16)
  16091. xcb_tmp += uintptr(xcb_block_len)
  16092. xcb_buffer_len += xcb_block_len
  16093. xcb_block_len = uint32(0)
  16094. /* points */
  16095. xcb_block_len += points_len * uint32(4)
  16096. xcb_tmp += uintptr(xcb_block_len)
  16097. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  16098. /* insert padding */
  16099. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16100. xcb_buffer_len += xcb_block_len + xcb_pad
  16101. if uint32(0) != xcb_pad {
  16102. xcb_tmp += uintptr(xcb_pad)
  16103. xcb_pad = uint32(0)
  16104. }
  16105. xcb_block_len = uint32(0)
  16106. return libc.Int32FromUint32(xcb_buffer_len)
  16107. }
  16108. 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) {
  16109. bp := tls.Alloc(64)
  16110. defer tls.Free(64)
  16111. var xcb_ret Txcb_void_cookie_t
  16112. var _ /* xcb_out at bp+48 */ Txcb_fill_poly_request_t
  16113. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16114. _ = xcb_ret
  16115. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16116. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16117. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16118. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fshape = shape
  16119. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fcoordinate_mode = coordinate_mode
  16120. libc.Xmemset(tls, bp+48+14, 0, uint32(2))
  16121. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16122. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16123. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16124. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16125. /* xcb_point_t points */
  16126. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16127. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = points_len * uint32(4)
  16128. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16129. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16130. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req146)))
  16131. return xcb_ret
  16132. }
  16133. var _xcb_req146 = Txcb_protocol_request_t{
  16134. Fcount: uint32(4),
  16135. Fopcode: uint8(m_XCB_FILL_POLY),
  16136. Fisvoid: uint8(1),
  16137. }
  16138. 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) {
  16139. bp := tls.Alloc(64)
  16140. defer tls.Free(64)
  16141. var xcb_ret Txcb_void_cookie_t
  16142. var _ /* xcb_out at bp+48 */ Txcb_fill_poly_request_t
  16143. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16144. _ = xcb_ret
  16145. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16146. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16147. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16148. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fshape = shape
  16149. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 48))).Fcoordinate_mode = coordinate_mode
  16150. libc.Xmemset(tls, bp+48+14, 0, uint32(2))
  16151. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16152. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16153. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16154. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16155. /* xcb_point_t points */
  16156. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16157. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = points_len * uint32(4)
  16158. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16159. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16160. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req147)))
  16161. return xcb_ret
  16162. }
  16163. var _xcb_req147 = Txcb_protocol_request_t{
  16164. Fcount: uint32(4),
  16165. Fopcode: uint8(m_XCB_FILL_POLY),
  16166. Fisvoid: uint8(1),
  16167. }
  16168. func Xxcb_fill_poly_points(tls *libc.TLS, R uintptr) (r uintptr) {
  16169. return R + libc.UintptrFromInt32(1)*16
  16170. }
  16171. func Xxcb_fill_poly_points_length(tls *libc.TLS, R uintptr) (r int32) {
  16172. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_fill_poly_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(16)) / libc.Uint32FromInt64(4))
  16173. }
  16174. func Xxcb_fill_poly_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  16175. var i Txcb_point_iterator_t
  16176. _ = i
  16177. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16178. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_fill_poly_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(16)) / libc.Uint32FromInt64(4))
  16179. i.Findex = int32(i.Fdata) - int32(R)
  16180. return i
  16181. }
  16182. func Xxcb_poly_fill_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  16183. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16184. var xcb_tmp uintptr
  16185. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16186. xcb_tmp = _buffer
  16187. xcb_buffer_len = uint32(0)
  16188. xcb_block_len = uint32(0)
  16189. xcb_pad = uint32(0)
  16190. xcb_align_to = uint32(0)
  16191. xcb_block_len += uint32(12)
  16192. xcb_tmp += uintptr(xcb_block_len)
  16193. xcb_buffer_len += xcb_block_len
  16194. xcb_block_len = uint32(0)
  16195. /* rectangles */
  16196. xcb_block_len += rectangles_len * uint32(8)
  16197. xcb_tmp += uintptr(xcb_block_len)
  16198. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  16199. /* insert padding */
  16200. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16201. xcb_buffer_len += xcb_block_len + xcb_pad
  16202. if uint32(0) != xcb_pad {
  16203. xcb_tmp += uintptr(xcb_pad)
  16204. xcb_pad = uint32(0)
  16205. }
  16206. xcb_block_len = uint32(0)
  16207. return libc.Int32FromUint32(xcb_buffer_len)
  16208. }
  16209. 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) {
  16210. bp := tls.Alloc(64)
  16211. defer tls.Free(64)
  16212. var xcb_ret Txcb_void_cookie_t
  16213. var _ /* xcb_out at bp+48 */ Txcb_poly_fill_rectangle_request_t
  16214. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16215. _ = xcb_ret
  16216. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16217. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16218. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16219. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16220. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  16221. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16222. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16223. /* xcb_rectangle_t rectangles */
  16224. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16225. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = rectangles_len * uint32(8)
  16226. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16227. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16228. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req148)))
  16229. return xcb_ret
  16230. }
  16231. var _xcb_req148 = Txcb_protocol_request_t{
  16232. Fcount: uint32(4),
  16233. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16234. Fisvoid: uint8(1),
  16235. }
  16236. 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) {
  16237. bp := tls.Alloc(64)
  16238. defer tls.Free(64)
  16239. var xcb_ret Txcb_void_cookie_t
  16240. var _ /* xcb_out at bp+48 */ Txcb_poly_fill_rectangle_request_t
  16241. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16242. _ = xcb_ret
  16243. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16244. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16245. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16246. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16247. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  16248. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16249. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16250. /* xcb_rectangle_t rectangles */
  16251. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16252. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = rectangles_len * uint32(8)
  16253. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16254. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16255. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req149)))
  16256. return xcb_ret
  16257. }
  16258. var _xcb_req149 = Txcb_protocol_request_t{
  16259. Fcount: uint32(4),
  16260. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16261. Fisvoid: uint8(1),
  16262. }
  16263. func Xxcb_poly_fill_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  16264. return R + libc.UintptrFromInt32(1)*12
  16265. }
  16266. func Xxcb_poly_fill_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  16267. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  16268. }
  16269. func Xxcb_poly_fill_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  16270. var i Txcb_rectangle_iterator_t
  16271. _ = i
  16272. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16273. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(8))
  16274. i.Findex = int32(i.Fdata) - int32(R)
  16275. return i
  16276. }
  16277. func Xxcb_poly_fill_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  16278. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16279. var xcb_tmp uintptr
  16280. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16281. xcb_tmp = _buffer
  16282. xcb_buffer_len = uint32(0)
  16283. xcb_block_len = uint32(0)
  16284. xcb_pad = uint32(0)
  16285. xcb_align_to = uint32(0)
  16286. xcb_block_len += uint32(12)
  16287. xcb_tmp += uintptr(xcb_block_len)
  16288. xcb_buffer_len += xcb_block_len
  16289. xcb_block_len = uint32(0)
  16290. /* arcs */
  16291. xcb_block_len += arcs_len * uint32(12)
  16292. xcb_tmp += uintptr(xcb_block_len)
  16293. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  16294. /* insert padding */
  16295. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16296. xcb_buffer_len += xcb_block_len + xcb_pad
  16297. if uint32(0) != xcb_pad {
  16298. xcb_tmp += uintptr(xcb_pad)
  16299. xcb_pad = uint32(0)
  16300. }
  16301. xcb_block_len = uint32(0)
  16302. return libc.Int32FromUint32(xcb_buffer_len)
  16303. }
  16304. 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) {
  16305. bp := tls.Alloc(64)
  16306. defer tls.Free(64)
  16307. var xcb_ret Txcb_void_cookie_t
  16308. var _ /* xcb_out at bp+48 */ Txcb_poly_fill_arc_request_t
  16309. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16310. _ = xcb_ret
  16311. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16312. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16313. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16314. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16315. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  16316. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16317. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16318. /* xcb_arc_t arcs */
  16319. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16320. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = arcs_len * uint32(12)
  16321. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16322. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16323. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req150)))
  16324. return xcb_ret
  16325. }
  16326. var _xcb_req150 = Txcb_protocol_request_t{
  16327. Fcount: uint32(4),
  16328. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16329. Fisvoid: uint8(1),
  16330. }
  16331. 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) {
  16332. bp := tls.Alloc(64)
  16333. defer tls.Free(64)
  16334. var xcb_ret Txcb_void_cookie_t
  16335. var _ /* xcb_out at bp+48 */ Txcb_poly_fill_arc_request_t
  16336. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16337. _ = xcb_ret
  16338. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16339. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16340. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16341. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16342. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  16343. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16344. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16345. /* xcb_arc_t arcs */
  16346. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16347. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = arcs_len * uint32(12)
  16348. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16349. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16350. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req151)))
  16351. return xcb_ret
  16352. }
  16353. var _xcb_req151 = Txcb_protocol_request_t{
  16354. Fcount: uint32(4),
  16355. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16356. Fisvoid: uint8(1),
  16357. }
  16358. func Xxcb_poly_fill_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16359. return R + libc.UintptrFromInt32(1)*12
  16360. }
  16361. func Xxcb_poly_fill_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16362. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(12))
  16363. }
  16364. func Xxcb_poly_fill_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16365. var i Txcb_arc_iterator_t
  16366. _ = i
  16367. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16368. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(12))
  16369. i.Findex = int32(i.Fdata) - int32(R)
  16370. return i
  16371. }
  16372. func Xxcb_put_image_sizeof(tls *libc.TLS, _buffer uintptr, data_len Tuint32_t) (r int32) {
  16373. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16374. var xcb_tmp uintptr
  16375. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16376. xcb_tmp = _buffer
  16377. xcb_buffer_len = uint32(0)
  16378. xcb_block_len = uint32(0)
  16379. xcb_pad = uint32(0)
  16380. xcb_align_to = uint32(0)
  16381. xcb_block_len += uint32(24)
  16382. xcb_tmp += uintptr(xcb_block_len)
  16383. xcb_buffer_len += xcb_block_len
  16384. xcb_block_len = uint32(0)
  16385. /* data */
  16386. xcb_block_len += data_len * uint32(1)
  16387. xcb_tmp += uintptr(xcb_block_len)
  16388. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  16389. /* insert padding */
  16390. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16391. xcb_buffer_len += xcb_block_len + xcb_pad
  16392. if uint32(0) != xcb_pad {
  16393. xcb_tmp += uintptr(xcb_pad)
  16394. xcb_pad = uint32(0)
  16395. }
  16396. xcb_block_len = uint32(0)
  16397. return libc.Int32FromUint32(xcb_buffer_len)
  16398. }
  16399. 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) {
  16400. bp := tls.Alloc(80)
  16401. defer tls.Free(80)
  16402. var xcb_ret Txcb_void_cookie_t
  16403. var _ /* xcb_out at bp+48 */ Txcb_put_image_request_t
  16404. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16405. _ = xcb_ret
  16406. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fformat = format
  16407. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16408. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16409. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fwidth = width
  16410. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fheight = height
  16411. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdst_x = dst_x
  16412. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdst_y = dst_y
  16413. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fleft_pad = left_pad
  16414. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdepth = depth
  16415. libc.Xmemset(tls, bp+48+22, 0, uint32(2))
  16416. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16417. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  16418. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16419. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16420. /* uint8_t data */
  16421. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16422. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = data_len * uint32(1)
  16423. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16424. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16425. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req152)))
  16426. return xcb_ret
  16427. }
  16428. var _xcb_req152 = Txcb_protocol_request_t{
  16429. Fcount: uint32(4),
  16430. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16431. Fisvoid: uint8(1),
  16432. }
  16433. 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) {
  16434. bp := tls.Alloc(80)
  16435. defer tls.Free(80)
  16436. var xcb_ret Txcb_void_cookie_t
  16437. var _ /* xcb_out at bp+48 */ Txcb_put_image_request_t
  16438. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16439. _ = xcb_ret
  16440. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fformat = format
  16441. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16442. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16443. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fwidth = width
  16444. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fheight = height
  16445. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdst_x = dst_x
  16446. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdst_y = dst_y
  16447. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fleft_pad = left_pad
  16448. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 48))).Fdepth = depth
  16449. libc.Xmemset(tls, bp+48+22, 0, uint32(2))
  16450. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16451. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(24)
  16452. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16453. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16454. /* uint8_t data */
  16455. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16456. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = data_len * uint32(1)
  16457. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16458. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16459. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req153)))
  16460. return xcb_ret
  16461. }
  16462. var _xcb_req153 = Txcb_protocol_request_t{
  16463. Fcount: uint32(4),
  16464. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16465. Fisvoid: uint8(1),
  16466. }
  16467. func Xxcb_put_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16468. return R + libc.UintptrFromInt32(1)*24
  16469. }
  16470. func Xxcb_put_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16471. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_put_image_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(24)) / libc.Uint32FromInt64(1))
  16472. }
  16473. func Xxcb_put_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16474. var i Txcb_generic_iterator_t
  16475. _ = i
  16476. i.Fdata = R + libc.UintptrFromInt32(1)*24 + uintptr((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_put_image_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint32FromInt64(24))/libc.Uint32FromInt64(1))
  16477. i.Frem = 0
  16478. i.Findex = int32(i.Fdata) - int32(R)
  16479. return i
  16480. }
  16481. func Xxcb_get_image_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16482. var _aux, xcb_tmp uintptr
  16483. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16484. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16485. xcb_tmp = _buffer
  16486. _aux = _buffer
  16487. xcb_buffer_len = uint32(0)
  16488. xcb_block_len = uint32(0)
  16489. xcb_pad = uint32(0)
  16490. xcb_align_to = uint32(0)
  16491. xcb_block_len += uint32(32)
  16492. xcb_tmp += uintptr(xcb_block_len)
  16493. xcb_buffer_len += xcb_block_len
  16494. xcb_block_len = uint32(0)
  16495. /* data */
  16496. xcb_block_len += (*Txcb_get_image_reply_t)(unsafe.Pointer(_aux)).Flength * uint32(4) * uint32(1)
  16497. xcb_tmp += uintptr(xcb_block_len)
  16498. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  16499. /* insert padding */
  16500. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16501. xcb_buffer_len += xcb_block_len + xcb_pad
  16502. if uint32(0) != xcb_pad {
  16503. xcb_tmp += uintptr(xcb_pad)
  16504. xcb_pad = uint32(0)
  16505. }
  16506. xcb_block_len = uint32(0)
  16507. return libc.Int32FromUint32(xcb_buffer_len)
  16508. }
  16509. 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) {
  16510. bp := tls.Alloc(64)
  16511. defer tls.Free(64)
  16512. var xcb_ret Txcb_get_image_cookie_t
  16513. var _ /* xcb_out at bp+32 */ Txcb_get_image_request_t
  16514. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16515. _ = xcb_ret
  16516. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fformat = format
  16517. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  16518. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  16519. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  16520. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  16521. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  16522. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fplane_mask = plane_mask
  16523. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  16524. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(20)
  16525. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16526. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16527. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req154)))
  16528. return xcb_ret
  16529. }
  16530. var _xcb_req154 = Txcb_protocol_request_t{
  16531. Fcount: uint32(2),
  16532. Fopcode: uint8(m_XCB_GET_IMAGE),
  16533. }
  16534. 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) {
  16535. bp := tls.Alloc(64)
  16536. defer tls.Free(64)
  16537. var xcb_ret Txcb_get_image_cookie_t
  16538. var _ /* xcb_out at bp+32 */ Txcb_get_image_request_t
  16539. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16540. _ = xcb_ret
  16541. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fformat = format
  16542. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  16543. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  16544. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  16545. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  16546. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  16547. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 32))).Fplane_mask = plane_mask
  16548. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  16549. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(20)
  16550. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16551. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16552. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req155)))
  16553. return xcb_ret
  16554. }
  16555. var _xcb_req155 = Txcb_protocol_request_t{
  16556. Fcount: uint32(2),
  16557. Fopcode: uint8(m_XCB_GET_IMAGE),
  16558. }
  16559. func Xxcb_get_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16560. return R + libc.UintptrFromInt32(1)*32
  16561. }
  16562. func Xxcb_get_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16563. return libc.Int32FromUint32((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength * libc.Uint32FromInt32(4))
  16564. }
  16565. func Xxcb_get_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16566. var i Txcb_generic_iterator_t
  16567. _ = i
  16568. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength*libc.Uint32FromInt32(4))
  16569. i.Frem = 0
  16570. i.Findex = int32(i.Fdata) - int32(R)
  16571. return i
  16572. }
  16573. func Xxcb_get_image_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_image_cookie_t, e uintptr) (r uintptr) {
  16574. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  16575. }
  16576. func Xxcb_poly_text_8_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16577. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16578. var xcb_tmp uintptr
  16579. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16580. xcb_tmp = _buffer
  16581. xcb_buffer_len = uint32(0)
  16582. xcb_block_len = uint32(0)
  16583. xcb_pad = uint32(0)
  16584. xcb_align_to = uint32(0)
  16585. xcb_block_len += uint32(16)
  16586. xcb_tmp += uintptr(xcb_block_len)
  16587. xcb_buffer_len += xcb_block_len
  16588. xcb_block_len = uint32(0)
  16589. /* items */
  16590. xcb_block_len += items_len * uint32(1)
  16591. xcb_tmp += uintptr(xcb_block_len)
  16592. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  16593. /* insert padding */
  16594. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16595. xcb_buffer_len += xcb_block_len + xcb_pad
  16596. if uint32(0) != xcb_pad {
  16597. xcb_tmp += uintptr(xcb_pad)
  16598. xcb_pad = uint32(0)
  16599. }
  16600. xcb_block_len = uint32(0)
  16601. return libc.Int32FromUint32(xcb_buffer_len)
  16602. }
  16603. 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) {
  16604. bp := tls.Alloc(64)
  16605. defer tls.Free(64)
  16606. var xcb_ret Txcb_void_cookie_t
  16607. var _ /* xcb_out at bp+48 */ Txcb_poly_text_8_request_t
  16608. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16609. _ = xcb_ret
  16610. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16611. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16612. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16613. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16614. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16615. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16616. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16617. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16618. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16619. /* uint8_t items */
  16620. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16621. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = items_len * uint32(1)
  16622. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16623. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16624. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req156)))
  16625. return xcb_ret
  16626. }
  16627. var _xcb_req156 = Txcb_protocol_request_t{
  16628. Fcount: uint32(4),
  16629. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16630. Fisvoid: uint8(1),
  16631. }
  16632. 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) {
  16633. bp := tls.Alloc(64)
  16634. defer tls.Free(64)
  16635. var xcb_ret Txcb_void_cookie_t
  16636. var _ /* xcb_out at bp+48 */ Txcb_poly_text_8_request_t
  16637. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16638. _ = xcb_ret
  16639. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16640. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16641. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16642. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16643. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16644. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16645. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16646. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16647. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16648. /* uint8_t items */
  16649. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16650. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = items_len * uint32(1)
  16651. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16652. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16653. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req157)))
  16654. return xcb_ret
  16655. }
  16656. var _xcb_req157 = Txcb_protocol_request_t{
  16657. Fcount: uint32(4),
  16658. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16659. Fisvoid: uint8(1),
  16660. }
  16661. func Xxcb_poly_text_8_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16662. return R + libc.UintptrFromInt32(1)*16
  16663. }
  16664. func Xxcb_poly_text_8_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16665. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_text_8_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(16)) / libc.Uint32FromInt64(1))
  16666. }
  16667. func Xxcb_poly_text_8_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16668. var i Txcb_generic_iterator_t
  16669. _ = i
  16670. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_text_8_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint32FromInt64(16))/libc.Uint32FromInt64(1))
  16671. i.Frem = 0
  16672. i.Findex = int32(i.Fdata) - int32(R)
  16673. return i
  16674. }
  16675. func Xxcb_poly_text_16_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16676. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16677. var xcb_tmp uintptr
  16678. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16679. xcb_tmp = _buffer
  16680. xcb_buffer_len = uint32(0)
  16681. xcb_block_len = uint32(0)
  16682. xcb_pad = uint32(0)
  16683. xcb_align_to = uint32(0)
  16684. xcb_block_len += uint32(16)
  16685. xcb_tmp += uintptr(xcb_block_len)
  16686. xcb_buffer_len += xcb_block_len
  16687. xcb_block_len = uint32(0)
  16688. /* items */
  16689. xcb_block_len += items_len * uint32(1)
  16690. xcb_tmp += uintptr(xcb_block_len)
  16691. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  16692. /* insert padding */
  16693. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16694. xcb_buffer_len += xcb_block_len + xcb_pad
  16695. if uint32(0) != xcb_pad {
  16696. xcb_tmp += uintptr(xcb_pad)
  16697. xcb_pad = uint32(0)
  16698. }
  16699. xcb_block_len = uint32(0)
  16700. return libc.Int32FromUint32(xcb_buffer_len)
  16701. }
  16702. 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) {
  16703. bp := tls.Alloc(64)
  16704. defer tls.Free(64)
  16705. var xcb_ret Txcb_void_cookie_t
  16706. var _ /* xcb_out at bp+48 */ Txcb_poly_text_16_request_t
  16707. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16708. _ = xcb_ret
  16709. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16710. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16711. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16712. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16713. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16714. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16715. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16716. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16717. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16718. /* uint8_t items */
  16719. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16720. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = items_len * uint32(1)
  16721. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16722. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16723. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req158)))
  16724. return xcb_ret
  16725. }
  16726. var _xcb_req158 = Txcb_protocol_request_t{
  16727. Fcount: uint32(4),
  16728. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16729. Fisvoid: uint8(1),
  16730. }
  16731. 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) {
  16732. bp := tls.Alloc(64)
  16733. defer tls.Free(64)
  16734. var xcb_ret Txcb_void_cookie_t
  16735. var _ /* xcb_out at bp+48 */ Txcb_poly_text_16_request_t
  16736. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16737. _ = xcb_ret
  16738. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  16739. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16740. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16741. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16742. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16743. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16744. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16745. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16746. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16747. /* uint8_t items */
  16748. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16749. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = items_len * uint32(1)
  16750. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16751. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16752. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req159)))
  16753. return xcb_ret
  16754. }
  16755. var _xcb_req159 = Txcb_protocol_request_t{
  16756. Fcount: uint32(4),
  16757. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16758. Fisvoid: uint8(1),
  16759. }
  16760. func Xxcb_poly_text_16_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16761. return R + libc.UintptrFromInt32(1)*16
  16762. }
  16763. func Xxcb_poly_text_16_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16764. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_text_16_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(16)) / libc.Uint32FromInt64(1))
  16765. }
  16766. func Xxcb_poly_text_16_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16767. var i Txcb_generic_iterator_t
  16768. _ = i
  16769. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_poly_text_16_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint32FromInt64(16))/libc.Uint32FromInt64(1))
  16770. i.Frem = 0
  16771. i.Findex = int32(i.Fdata) - int32(R)
  16772. return i
  16773. }
  16774. func Xxcb_image_text_8_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16775. var _aux, xcb_tmp uintptr
  16776. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16777. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16778. xcb_tmp = _buffer
  16779. _aux = _buffer
  16780. xcb_buffer_len = uint32(0)
  16781. xcb_block_len = uint32(0)
  16782. xcb_pad = uint32(0)
  16783. xcb_align_to = uint32(0)
  16784. xcb_block_len += uint32(16)
  16785. xcb_tmp += uintptr(xcb_block_len)
  16786. xcb_buffer_len += xcb_block_len
  16787. xcb_block_len = uint32(0)
  16788. /* string */
  16789. xcb_block_len += uint32((*Txcb_image_text_8_request_t)(unsafe.Pointer(_aux)).Fstring_len) * uint32(1)
  16790. xcb_tmp += uintptr(xcb_block_len)
  16791. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  16792. /* insert padding */
  16793. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16794. xcb_buffer_len += xcb_block_len + xcb_pad
  16795. if uint32(0) != xcb_pad {
  16796. xcb_tmp += uintptr(xcb_pad)
  16797. xcb_pad = uint32(0)
  16798. }
  16799. xcb_block_len = uint32(0)
  16800. return libc.Int32FromUint32(xcb_buffer_len)
  16801. }
  16802. 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) {
  16803. bp := tls.Alloc(64)
  16804. defer tls.Free(64)
  16805. var xcb_ret Txcb_void_cookie_t
  16806. var _ /* xcb_out at bp+48 */ Txcb_image_text_8_request_t
  16807. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16808. _ = xcb_ret
  16809. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fstring_len = string_len
  16810. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16811. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16812. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16813. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16814. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16815. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16816. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16817. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16818. /* char string */
  16819. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16820. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(string_len) * uint32(1)
  16821. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16822. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16823. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req160)))
  16824. return xcb_ret
  16825. }
  16826. var _xcb_req160 = Txcb_protocol_request_t{
  16827. Fcount: uint32(4),
  16828. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16829. Fisvoid: uint8(1),
  16830. }
  16831. 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) {
  16832. bp := tls.Alloc(64)
  16833. defer tls.Free(64)
  16834. var xcb_ret Txcb_void_cookie_t
  16835. var _ /* xcb_out at bp+48 */ Txcb_image_text_8_request_t
  16836. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16837. _ = xcb_ret
  16838. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fstring_len = string_len
  16839. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16840. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16841. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16842. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16843. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16844. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16845. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16846. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16847. /* char string */
  16848. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16849. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(string_len) * uint32(1)
  16850. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16851. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16852. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req161)))
  16853. return xcb_ret
  16854. }
  16855. var _xcb_req161 = Txcb_protocol_request_t{
  16856. Fcount: uint32(4),
  16857. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16858. Fisvoid: uint8(1),
  16859. }
  16860. func Xxcb_image_text_8_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16861. return R + libc.UintptrFromInt32(1)*16
  16862. }
  16863. func Xxcb_image_text_8_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16864. return libc.Int32FromUint8((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16865. }
  16866. func Xxcb_image_text_8_string_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16867. var i Txcb_generic_iterator_t
  16868. _ = i
  16869. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16870. i.Frem = 0
  16871. i.Findex = int32(i.Fdata) - int32(R)
  16872. return i
  16873. }
  16874. func Xxcb_image_text_16_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16875. var _aux, xcb_tmp uintptr
  16876. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16877. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16878. xcb_tmp = _buffer
  16879. _aux = _buffer
  16880. xcb_buffer_len = uint32(0)
  16881. xcb_block_len = uint32(0)
  16882. xcb_pad = uint32(0)
  16883. xcb_align_to = uint32(0)
  16884. xcb_block_len += uint32(16)
  16885. xcb_tmp += uintptr(xcb_block_len)
  16886. xcb_buffer_len += xcb_block_len
  16887. xcb_block_len = uint32(0)
  16888. /* string */
  16889. xcb_block_len += uint32((*Txcb_image_text_16_request_t)(unsafe.Pointer(_aux)).Fstring_len) * uint32(2)
  16890. xcb_tmp += uintptr(xcb_block_len)
  16891. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  16892. /* insert padding */
  16893. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16894. xcb_buffer_len += xcb_block_len + xcb_pad
  16895. if uint32(0) != xcb_pad {
  16896. xcb_tmp += uintptr(xcb_pad)
  16897. xcb_pad = uint32(0)
  16898. }
  16899. xcb_block_len = uint32(0)
  16900. return libc.Int32FromUint32(xcb_buffer_len)
  16901. }
  16902. 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) {
  16903. bp := tls.Alloc(64)
  16904. defer tls.Free(64)
  16905. var xcb_ret Txcb_void_cookie_t
  16906. var _ /* xcb_out at bp+48 */ Txcb_image_text_16_request_t
  16907. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16908. _ = xcb_ret
  16909. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fstring_len = string_len
  16910. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16911. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16912. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16913. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16914. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16915. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16916. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16917. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16918. /* xcb_char2b_t string */
  16919. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16920. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(string_len) * uint32(2)
  16921. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16922. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16923. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req162)))
  16924. return xcb_ret
  16925. }
  16926. var _xcb_req162 = Txcb_protocol_request_t{
  16927. Fcount: uint32(4),
  16928. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16929. Fisvoid: uint8(1),
  16930. }
  16931. 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) {
  16932. bp := tls.Alloc(64)
  16933. defer tls.Free(64)
  16934. var xcb_ret Txcb_void_cookie_t
  16935. var _ /* xcb_out at bp+48 */ Txcb_image_text_16_request_t
  16936. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16937. _ = xcb_ret
  16938. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fstring_len = string_len
  16939. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fdrawable = drawable
  16940. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fgc = gc
  16941. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fx = x
  16942. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 48))).Fy = y
  16943. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  16944. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16945. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16946. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16947. /* xcb_char2b_t string */
  16948. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16949. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(string_len) * uint32(2)
  16950. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16951. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  16952. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req163)))
  16953. return xcb_ret
  16954. }
  16955. var _xcb_req163 = Txcb_protocol_request_t{
  16956. Fcount: uint32(4),
  16957. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16958. Fisvoid: uint8(1),
  16959. }
  16960. func Xxcb_image_text_16_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16961. return R + libc.UintptrFromInt32(1)*16
  16962. }
  16963. func Xxcb_image_text_16_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16964. return libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16965. }
  16966. func Xxcb_image_text_16_string_iterator(tls *libc.TLS, R uintptr) (r Txcb_char2b_iterator_t) {
  16967. var i Txcb_char2b_iterator_t
  16968. _ = i
  16969. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16970. i.Frem = libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16971. i.Findex = int32(i.Fdata) - int32(R)
  16972. return i
  16973. }
  16974. 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) {
  16975. bp := tls.Alloc(48)
  16976. defer tls.Free(48)
  16977. var xcb_ret Txcb_void_cookie_t
  16978. var _ /* xcb_out at bp+32 */ Txcb_create_colormap_request_t
  16979. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16980. _ = xcb_ret
  16981. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Falloc = alloc
  16982. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Fmid = mid
  16983. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  16984. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Fvisual = visual
  16985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  16986. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  16987. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16988. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  16989. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req164)))
  16990. return xcb_ret
  16991. }
  16992. var _xcb_req164 = Txcb_protocol_request_t{
  16993. Fcount: uint32(2),
  16994. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16995. Fisvoid: uint8(1),
  16996. }
  16997. 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) {
  16998. bp := tls.Alloc(48)
  16999. defer tls.Free(48)
  17000. var xcb_ret Txcb_void_cookie_t
  17001. var _ /* xcb_out at bp+32 */ Txcb_create_colormap_request_t
  17002. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17003. _ = xcb_ret
  17004. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Falloc = alloc
  17005. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Fmid = mid
  17006. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  17007. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 32))).Fvisual = visual
  17008. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17009. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  17010. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17011. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17012. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req165)))
  17013. return xcb_ret
  17014. }
  17015. var _xcb_req165 = Txcb_protocol_request_t{
  17016. Fcount: uint32(2),
  17017. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  17018. Fisvoid: uint8(1),
  17019. }
  17020. func Xxcb_free_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17021. bp := tls.Alloc(48)
  17022. defer tls.Free(48)
  17023. var xcb_ret Txcb_void_cookie_t
  17024. var _ /* xcb_out at bp+32 */ Txcb_free_colormap_request_t
  17025. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17026. _ = xcb_ret
  17027. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17028. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17029. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17030. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17031. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17032. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17033. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req166)))
  17034. return xcb_ret
  17035. }
  17036. var _xcb_req166 = Txcb_protocol_request_t{
  17037. Fcount: uint32(2),
  17038. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  17039. Fisvoid: uint8(1),
  17040. }
  17041. func Xxcb_free_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17042. bp := tls.Alloc(48)
  17043. defer tls.Free(48)
  17044. var xcb_ret Txcb_void_cookie_t
  17045. var _ /* xcb_out at bp+32 */ Txcb_free_colormap_request_t
  17046. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17047. _ = xcb_ret
  17048. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17049. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17050. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17051. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17052. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17053. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17054. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req167)))
  17055. return xcb_ret
  17056. }
  17057. var _xcb_req167 = Txcb_protocol_request_t{
  17058. Fcount: uint32(2),
  17059. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  17060. Fisvoid: uint8(1),
  17061. }
  17062. 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) {
  17063. bp := tls.Alloc(48)
  17064. defer tls.Free(48)
  17065. var xcb_ret Txcb_void_cookie_t
  17066. var _ /* xcb_out at bp+32 */ Txcb_copy_colormap_and_free_request_t
  17067. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17068. _ = xcb_ret
  17069. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17070. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 32))).Fmid = mid
  17071. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 32))).Fsrc_cmap = src_cmap
  17072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17073. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17074. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17075. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17076. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req168)))
  17077. return xcb_ret
  17078. }
  17079. var _xcb_req168 = Txcb_protocol_request_t{
  17080. Fcount: uint32(2),
  17081. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17082. Fisvoid: uint8(1),
  17083. }
  17084. 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) {
  17085. bp := tls.Alloc(48)
  17086. defer tls.Free(48)
  17087. var xcb_ret Txcb_void_cookie_t
  17088. var _ /* xcb_out at bp+32 */ Txcb_copy_colormap_and_free_request_t
  17089. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17090. _ = xcb_ret
  17091. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17092. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 32))).Fmid = mid
  17093. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 32))).Fsrc_cmap = src_cmap
  17094. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17095. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17096. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17097. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17098. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req169)))
  17099. return xcb_ret
  17100. }
  17101. var _xcb_req169 = Txcb_protocol_request_t{
  17102. Fcount: uint32(2),
  17103. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17104. Fisvoid: uint8(1),
  17105. }
  17106. func Xxcb_install_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17107. bp := tls.Alloc(48)
  17108. defer tls.Free(48)
  17109. var xcb_ret Txcb_void_cookie_t
  17110. var _ /* xcb_out at bp+32 */ Txcb_install_colormap_request_t
  17111. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17112. _ = xcb_ret
  17113. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17114. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17115. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17116. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17117. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17118. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17119. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req170)))
  17120. return xcb_ret
  17121. }
  17122. var _xcb_req170 = Txcb_protocol_request_t{
  17123. Fcount: uint32(2),
  17124. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17125. Fisvoid: uint8(1),
  17126. }
  17127. func Xxcb_install_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17128. bp := tls.Alloc(48)
  17129. defer tls.Free(48)
  17130. var xcb_ret Txcb_void_cookie_t
  17131. var _ /* xcb_out at bp+32 */ Txcb_install_colormap_request_t
  17132. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17133. _ = xcb_ret
  17134. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17135. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17136. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17137. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17138. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17140. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req171)))
  17141. return xcb_ret
  17142. }
  17143. var _xcb_req171 = Txcb_protocol_request_t{
  17144. Fcount: uint32(2),
  17145. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17146. Fisvoid: uint8(1),
  17147. }
  17148. func Xxcb_uninstall_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17149. bp := tls.Alloc(48)
  17150. defer tls.Free(48)
  17151. var xcb_ret Txcb_void_cookie_t
  17152. var _ /* xcb_out at bp+32 */ Txcb_uninstall_colormap_request_t
  17153. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17154. _ = xcb_ret
  17155. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17156. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17159. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17160. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17161. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req172)))
  17162. return xcb_ret
  17163. }
  17164. var _xcb_req172 = Txcb_protocol_request_t{
  17165. Fcount: uint32(2),
  17166. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17167. Fisvoid: uint8(1),
  17168. }
  17169. func Xxcb_uninstall_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17170. bp := tls.Alloc(48)
  17171. defer tls.Free(48)
  17172. var xcb_ret Txcb_void_cookie_t
  17173. var _ /* xcb_out at bp+32 */ Txcb_uninstall_colormap_request_t
  17174. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17175. _ = xcb_ret
  17176. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17177. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17178. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17180. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17181. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17182. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req173)))
  17183. return xcb_ret
  17184. }
  17185. var _xcb_req173 = Txcb_protocol_request_t{
  17186. Fcount: uint32(2),
  17187. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17188. Fisvoid: uint8(1),
  17189. }
  17190. func Xxcb_list_installed_colormaps_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17191. var _aux, xcb_tmp uintptr
  17192. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17193. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17194. xcb_tmp = _buffer
  17195. _aux = _buffer
  17196. xcb_buffer_len = uint32(0)
  17197. xcb_block_len = uint32(0)
  17198. xcb_pad = uint32(0)
  17199. xcb_align_to = uint32(0)
  17200. xcb_block_len += uint32(32)
  17201. xcb_tmp += uintptr(xcb_block_len)
  17202. xcb_buffer_len += xcb_block_len
  17203. xcb_block_len = uint32(0)
  17204. /* cmaps */
  17205. xcb_block_len += uint32((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(_aux)).Fcmaps_len) * uint32(4)
  17206. xcb_tmp += uintptr(xcb_block_len)
  17207. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  17208. /* insert padding */
  17209. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17210. xcb_buffer_len += xcb_block_len + xcb_pad
  17211. if uint32(0) != xcb_pad {
  17212. xcb_tmp += uintptr(xcb_pad)
  17213. xcb_pad = uint32(0)
  17214. }
  17215. xcb_block_len = uint32(0)
  17216. return libc.Int32FromUint32(xcb_buffer_len)
  17217. }
  17218. func Xxcb_list_installed_colormaps(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17219. bp := tls.Alloc(48)
  17220. defer tls.Free(48)
  17221. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17222. var _ /* xcb_out at bp+32 */ Txcb_list_installed_colormaps_request_t
  17223. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17224. _ = xcb_ret
  17225. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17226. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  17227. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17228. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17229. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17230. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17231. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req174)))
  17232. return xcb_ret
  17233. }
  17234. var _xcb_req174 = Txcb_protocol_request_t{
  17235. Fcount: uint32(2),
  17236. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17237. }
  17238. func Xxcb_list_installed_colormaps_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17239. bp := tls.Alloc(48)
  17240. defer tls.Free(48)
  17241. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17242. var _ /* xcb_out at bp+32 */ Txcb_list_installed_colormaps_request_t
  17243. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17244. _ = xcb_ret
  17245. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17246. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 32))).Fwindow = window
  17247. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17248. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17249. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17250. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17251. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req175)))
  17252. return xcb_ret
  17253. }
  17254. var _xcb_req175 = Txcb_protocol_request_t{
  17255. Fcount: uint32(2),
  17256. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17257. }
  17258. func Xxcb_list_installed_colormaps_cmaps(tls *libc.TLS, R uintptr) (r uintptr) {
  17259. return R + libc.UintptrFromInt32(1)*32
  17260. }
  17261. func Xxcb_list_installed_colormaps_cmaps_length(tls *libc.TLS, R uintptr) (r int32) {
  17262. return libc.Int32FromUint16((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)
  17263. }
  17264. func Xxcb_list_installed_colormaps_cmaps_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17265. var i Txcb_generic_iterator_t
  17266. _ = i
  17267. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)*4
  17268. i.Frem = 0
  17269. i.Findex = int32(i.Fdata) - int32(R)
  17270. return i
  17271. }
  17272. func Xxcb_list_installed_colormaps_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_installed_colormaps_cookie_t, e uintptr) (r uintptr) {
  17273. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17274. }
  17275. 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) {
  17276. bp := tls.Alloc(48)
  17277. defer tls.Free(48)
  17278. var xcb_ret Txcb_alloc_color_cookie_t
  17279. var _ /* xcb_out at bp+32 */ Txcb_alloc_color_request_t
  17280. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17281. _ = xcb_ret
  17282. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17283. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17284. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fred = red
  17285. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fgreen = green
  17286. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fblue = blue
  17287. libc.Xmemset(tls, bp+32+14, 0, uint32(2))
  17288. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17289. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  17290. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17291. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17292. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req176)))
  17293. return xcb_ret
  17294. }
  17295. var _xcb_req176 = Txcb_protocol_request_t{
  17296. Fcount: uint32(2),
  17297. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17298. }
  17299. 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) {
  17300. bp := tls.Alloc(48)
  17301. defer tls.Free(48)
  17302. var xcb_ret Txcb_alloc_color_cookie_t
  17303. var _ /* xcb_out at bp+32 */ Txcb_alloc_color_request_t
  17304. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17305. _ = xcb_ret
  17306. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  17307. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17308. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fred = red
  17309. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fgreen = green
  17310. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 32))).Fblue = blue
  17311. libc.Xmemset(tls, bp+32+14, 0, uint32(2))
  17312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17313. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  17314. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17315. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17316. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req177)))
  17317. return xcb_ret
  17318. }
  17319. var _xcb_req177 = Txcb_protocol_request_t{
  17320. Fcount: uint32(2),
  17321. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17322. }
  17323. func Xxcb_alloc_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cookie_t, e uintptr) (r uintptr) {
  17324. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17325. }
  17326. func Xxcb_alloc_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17327. var _aux, xcb_tmp uintptr
  17328. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17329. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17330. xcb_tmp = _buffer
  17331. _aux = _buffer
  17332. xcb_buffer_len = uint32(0)
  17333. xcb_block_len = uint32(0)
  17334. xcb_pad = uint32(0)
  17335. xcb_align_to = uint32(0)
  17336. xcb_block_len += uint32(12)
  17337. xcb_tmp += uintptr(xcb_block_len)
  17338. xcb_buffer_len += xcb_block_len
  17339. xcb_block_len = uint32(0)
  17340. /* name */
  17341. xcb_block_len += uint32((*Txcb_alloc_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  17342. xcb_tmp += uintptr(xcb_block_len)
  17343. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  17344. /* insert padding */
  17345. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17346. xcb_buffer_len += xcb_block_len + xcb_pad
  17347. if uint32(0) != xcb_pad {
  17348. xcb_tmp += uintptr(xcb_pad)
  17349. xcb_pad = uint32(0)
  17350. }
  17351. xcb_block_len = uint32(0)
  17352. return libc.Int32FromUint32(xcb_buffer_len)
  17353. }
  17354. 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) {
  17355. bp := tls.Alloc(64)
  17356. defer tls.Free(64)
  17357. var xcb_ret Txcb_alloc_named_color_cookie_t
  17358. var _ /* xcb_out at bp+48 */ Txcb_alloc_named_color_request_t
  17359. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17360. _ = xcb_ret
  17361. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  17362. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17363. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  17364. libc.Xmemset(tls, bp+48+10, 0, uint32(2))
  17365. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17366. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17367. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17368. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17369. /* char name */
  17370. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17371. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  17372. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17373. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17374. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req178)))
  17375. return xcb_ret
  17376. }
  17377. var _xcb_req178 = Txcb_protocol_request_t{
  17378. Fcount: uint32(4),
  17379. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17380. }
  17381. 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) {
  17382. bp := tls.Alloc(64)
  17383. defer tls.Free(64)
  17384. var xcb_ret Txcb_alloc_named_color_cookie_t
  17385. var _ /* xcb_out at bp+48 */ Txcb_alloc_named_color_request_t
  17386. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17387. _ = xcb_ret
  17388. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  17389. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17390. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  17391. libc.Xmemset(tls, bp+48+10, 0, uint32(2))
  17392. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17393. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17394. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17395. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17396. /* char name */
  17397. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17398. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  17399. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17400. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17401. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req179)))
  17402. return xcb_ret
  17403. }
  17404. var _xcb_req179 = Txcb_protocol_request_t{
  17405. Fcount: uint32(4),
  17406. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17407. }
  17408. func Xxcb_alloc_named_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_named_color_cookie_t, e uintptr) (r uintptr) {
  17409. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17410. }
  17411. func Xxcb_alloc_color_cells_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17412. var _aux, xcb_tmp uintptr
  17413. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17414. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17415. xcb_tmp = _buffer
  17416. _aux = _buffer
  17417. xcb_buffer_len = uint32(0)
  17418. xcb_block_len = uint32(0)
  17419. xcb_pad = uint32(0)
  17420. xcb_align_to = uint32(0)
  17421. xcb_block_len += uint32(32)
  17422. xcb_tmp += uintptr(xcb_block_len)
  17423. xcb_buffer_len += xcb_block_len
  17424. xcb_block_len = uint32(0)
  17425. /* pixels */
  17426. xcb_block_len += uint32((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fpixels_len) * uint32(4)
  17427. xcb_tmp += uintptr(xcb_block_len)
  17428. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  17429. /* insert padding */
  17430. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17431. xcb_buffer_len += xcb_block_len + xcb_pad
  17432. if uint32(0) != xcb_pad {
  17433. xcb_tmp += uintptr(xcb_pad)
  17434. xcb_pad = uint32(0)
  17435. }
  17436. xcb_block_len = uint32(0)
  17437. /* masks */
  17438. xcb_block_len += uint32((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fmasks_len) * uint32(4)
  17439. xcb_tmp += uintptr(xcb_block_len)
  17440. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  17441. /* insert padding */
  17442. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17443. xcb_buffer_len += xcb_block_len + xcb_pad
  17444. if uint32(0) != xcb_pad {
  17445. xcb_tmp += uintptr(xcb_pad)
  17446. xcb_pad = uint32(0)
  17447. }
  17448. xcb_block_len = uint32(0)
  17449. return libc.Int32FromUint32(xcb_buffer_len)
  17450. }
  17451. 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) {
  17452. bp := tls.Alloc(48)
  17453. defer tls.Free(48)
  17454. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17455. var _ /* xcb_out at bp+32 */ Txcb_alloc_color_cells_request_t
  17456. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17457. _ = xcb_ret
  17458. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fcontiguous = contiguous
  17459. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17460. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fcolors = colors
  17461. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fplanes = planes
  17462. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17463. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17464. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17465. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17466. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req180)))
  17467. return xcb_ret
  17468. }
  17469. var _xcb_req180 = Txcb_protocol_request_t{
  17470. Fcount: uint32(2),
  17471. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17472. }
  17473. 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) {
  17474. bp := tls.Alloc(48)
  17475. defer tls.Free(48)
  17476. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17477. var _ /* xcb_out at bp+32 */ Txcb_alloc_color_cells_request_t
  17478. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17479. _ = xcb_ret
  17480. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fcontiguous = contiguous
  17481. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17482. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fcolors = colors
  17483. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 32))).Fplanes = planes
  17484. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17485. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17486. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17487. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17488. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req181)))
  17489. return xcb_ret
  17490. }
  17491. var _xcb_req181 = Txcb_protocol_request_t{
  17492. Fcount: uint32(2),
  17493. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17494. }
  17495. func Xxcb_alloc_color_cells_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17496. return R + libc.UintptrFromInt32(1)*32
  17497. }
  17498. func Xxcb_alloc_color_cells_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17499. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17500. }
  17501. func Xxcb_alloc_color_cells_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17502. var i Txcb_generic_iterator_t
  17503. _ = i
  17504. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17505. i.Frem = 0
  17506. i.Findex = int32(i.Fdata) - int32(R)
  17507. return i
  17508. }
  17509. func Xxcb_alloc_color_cells_masks(tls *libc.TLS, R uintptr) (r uintptr) {
  17510. var prev Txcb_generic_iterator_t
  17511. _ = prev
  17512. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17513. return prev.Fdata + uintptr(libc.Uint32FromInt32(-prev.Findex)&(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1))) + libc.UintptrFromInt32(0)
  17514. }
  17515. func Xxcb_alloc_color_cells_masks_length(tls *libc.TLS, R uintptr) (r int32) {
  17516. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)
  17517. }
  17518. func Xxcb_alloc_color_cells_masks_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17519. var i, prev Txcb_generic_iterator_t
  17520. _, _ = i, prev
  17521. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17522. i.Fdata = prev.Fdata + uintptr(libc.Uint32FromInt32(-prev.Findex)&(libc.Uint32FromInt64(4)-libc.Uint32FromInt32(1))) + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)*4
  17523. i.Frem = 0
  17524. i.Findex = int32(i.Fdata) - int32(R)
  17525. return i
  17526. }
  17527. func Xxcb_alloc_color_cells_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cells_cookie_t, e uintptr) (r uintptr) {
  17528. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17529. }
  17530. func Xxcb_alloc_color_planes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17531. var _aux, xcb_tmp uintptr
  17532. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17533. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17534. xcb_tmp = _buffer
  17535. _aux = _buffer
  17536. xcb_buffer_len = uint32(0)
  17537. xcb_block_len = uint32(0)
  17538. xcb_pad = uint32(0)
  17539. xcb_align_to = uint32(0)
  17540. xcb_block_len += uint32(32)
  17541. xcb_tmp += uintptr(xcb_block_len)
  17542. xcb_buffer_len += xcb_block_len
  17543. xcb_block_len = uint32(0)
  17544. /* pixels */
  17545. xcb_block_len += uint32((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(_aux)).Fpixels_len) * uint32(4)
  17546. xcb_tmp += uintptr(xcb_block_len)
  17547. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  17548. /* insert padding */
  17549. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17550. xcb_buffer_len += xcb_block_len + xcb_pad
  17551. if uint32(0) != xcb_pad {
  17552. xcb_tmp += uintptr(xcb_pad)
  17553. xcb_pad = uint32(0)
  17554. }
  17555. xcb_block_len = uint32(0)
  17556. return libc.Int32FromUint32(xcb_buffer_len)
  17557. }
  17558. 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) {
  17559. bp := tls.Alloc(48)
  17560. defer tls.Free(48)
  17561. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17562. var _ /* xcb_out at bp+32 */ Txcb_alloc_color_planes_request_t
  17563. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17564. _ = xcb_ret
  17565. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fcontiguous = contiguous
  17566. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17567. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fcolors = colors
  17568. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Freds = reds
  17569. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fgreens = greens
  17570. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fblues = blues
  17571. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17572. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  17573. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17574. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17575. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req182)))
  17576. return xcb_ret
  17577. }
  17578. var _xcb_req182 = Txcb_protocol_request_t{
  17579. Fcount: uint32(2),
  17580. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17581. }
  17582. 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) {
  17583. bp := tls.Alloc(48)
  17584. defer tls.Free(48)
  17585. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17586. var _ /* xcb_out at bp+32 */ Txcb_alloc_color_planes_request_t
  17587. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17588. _ = xcb_ret
  17589. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fcontiguous = contiguous
  17590. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fcmap = cmap
  17591. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fcolors = colors
  17592. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Freds = reds
  17593. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fgreens = greens
  17594. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 32))).Fblues = blues
  17595. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  17596. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  17597. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17598. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17599. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req183)))
  17600. return xcb_ret
  17601. }
  17602. var _xcb_req183 = Txcb_protocol_request_t{
  17603. Fcount: uint32(2),
  17604. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17605. }
  17606. func Xxcb_alloc_color_planes_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17607. return R + libc.UintptrFromInt32(1)*32
  17608. }
  17609. func Xxcb_alloc_color_planes_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17610. return libc.Int32FromUint16((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17611. }
  17612. func Xxcb_alloc_color_planes_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17613. var i Txcb_generic_iterator_t
  17614. _ = i
  17615. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17616. i.Frem = 0
  17617. i.Findex = int32(i.Fdata) - int32(R)
  17618. return i
  17619. }
  17620. func Xxcb_alloc_color_planes_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_planes_cookie_t, e uintptr) (r uintptr) {
  17621. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17622. }
  17623. func Xxcb_free_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17624. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17625. var xcb_tmp uintptr
  17626. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17627. xcb_tmp = _buffer
  17628. xcb_buffer_len = uint32(0)
  17629. xcb_block_len = uint32(0)
  17630. xcb_pad = uint32(0)
  17631. xcb_align_to = uint32(0)
  17632. xcb_block_len += uint32(12)
  17633. xcb_tmp += uintptr(xcb_block_len)
  17634. xcb_buffer_len += xcb_block_len
  17635. xcb_block_len = uint32(0)
  17636. /* pixels */
  17637. xcb_block_len += pixels_len * uint32(4)
  17638. xcb_tmp += uintptr(xcb_block_len)
  17639. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  17640. /* insert padding */
  17641. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17642. xcb_buffer_len += xcb_block_len + xcb_pad
  17643. if uint32(0) != xcb_pad {
  17644. xcb_tmp += uintptr(xcb_pad)
  17645. xcb_pad = uint32(0)
  17646. }
  17647. xcb_block_len = uint32(0)
  17648. return libc.Int32FromUint32(xcb_buffer_len)
  17649. }
  17650. 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) {
  17651. bp := tls.Alloc(64)
  17652. defer tls.Free(64)
  17653. var xcb_ret Txcb_void_cookie_t
  17654. var _ /* xcb_out at bp+48 */ Txcb_free_colors_request_t
  17655. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17656. _ = xcb_ret
  17657. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  17658. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17659. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 48))).Fplane_mask = plane_mask
  17660. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17661. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17662. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17663. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17664. /* uint32_t pixels */
  17665. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17666. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = pixels_len * uint32(4)
  17667. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17668. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17669. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req184)))
  17670. return xcb_ret
  17671. }
  17672. var _xcb_req184 = Txcb_protocol_request_t{
  17673. Fcount: uint32(4),
  17674. Fopcode: uint8(m_XCB_FREE_COLORS),
  17675. Fisvoid: uint8(1),
  17676. }
  17677. 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) {
  17678. bp := tls.Alloc(64)
  17679. defer tls.Free(64)
  17680. var xcb_ret Txcb_void_cookie_t
  17681. var _ /* xcb_out at bp+48 */ Txcb_free_colors_request_t
  17682. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17683. _ = xcb_ret
  17684. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  17685. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17686. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 48))).Fplane_mask = plane_mask
  17687. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17688. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  17689. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17690. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17691. /* uint32_t pixels */
  17692. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17693. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = pixels_len * uint32(4)
  17694. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17695. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17696. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req185)))
  17697. return xcb_ret
  17698. }
  17699. var _xcb_req185 = Txcb_protocol_request_t{
  17700. Fcount: uint32(4),
  17701. Fopcode: uint8(m_XCB_FREE_COLORS),
  17702. Fisvoid: uint8(1),
  17703. }
  17704. func Xxcb_free_colors_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17705. return R + libc.UintptrFromInt32(1)*12
  17706. }
  17707. func Xxcb_free_colors_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17708. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_free_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(12)) / libc.Uint32FromInt64(4))
  17709. }
  17710. func Xxcb_free_colors_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17711. var i Txcb_generic_iterator_t
  17712. _ = i
  17713. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_free_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint32FromInt64(12))/libc.Uint32FromInt64(4))*4
  17714. i.Frem = 0
  17715. i.Findex = int32(i.Fdata) - int32(R)
  17716. return i
  17717. }
  17718. func Xxcb_coloritem_next(tls *libc.TLS, i uintptr) {
  17719. var p1 uintptr
  17720. _ = p1
  17721. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Frem--
  17722. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  17723. p1 = i + 8
  17724. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(12))
  17725. }
  17726. func Xxcb_coloritem_end(tls *libc.TLS, i Txcb_coloritem_iterator_t) (r Txcb_generic_iterator_t) {
  17727. var ret Txcb_generic_iterator_t
  17728. _ = ret
  17729. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  17730. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  17731. ret.Frem = 0
  17732. return ret
  17733. }
  17734. func Xxcb_store_colors_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  17735. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17736. var xcb_tmp uintptr
  17737. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17738. xcb_tmp = _buffer
  17739. xcb_buffer_len = uint32(0)
  17740. xcb_block_len = uint32(0)
  17741. xcb_pad = uint32(0)
  17742. xcb_align_to = uint32(0)
  17743. xcb_block_len += uint32(8)
  17744. xcb_tmp += uintptr(xcb_block_len)
  17745. xcb_buffer_len += xcb_block_len
  17746. xcb_block_len = uint32(0)
  17747. /* items */
  17748. xcb_block_len += items_len * uint32(12)
  17749. xcb_tmp += uintptr(xcb_block_len)
  17750. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  17751. /* insert padding */
  17752. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17753. xcb_buffer_len += xcb_block_len + xcb_pad
  17754. if uint32(0) != xcb_pad {
  17755. xcb_tmp += uintptr(xcb_pad)
  17756. xcb_pad = uint32(0)
  17757. }
  17758. xcb_block_len = uint32(0)
  17759. return libc.Int32FromUint32(xcb_buffer_len)
  17760. }
  17761. 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) {
  17762. bp := tls.Alloc(64)
  17763. defer tls.Free(64)
  17764. var xcb_ret Txcb_void_cookie_t
  17765. var _ /* xcb_out at bp+48 */ Txcb_store_colors_request_t
  17766. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17767. _ = xcb_ret
  17768. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  17769. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17770. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17771. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17772. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17773. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17774. /* xcb_coloritem_t items */
  17775. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17776. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = items_len * uint32(12)
  17777. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17778. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17779. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req186)))
  17780. return xcb_ret
  17781. }
  17782. var _xcb_req186 = Txcb_protocol_request_t{
  17783. Fcount: uint32(4),
  17784. Fopcode: uint8(m_XCB_STORE_COLORS),
  17785. Fisvoid: uint8(1),
  17786. }
  17787. func Xxcb_store_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
  17788. bp := tls.Alloc(64)
  17789. defer tls.Free(64)
  17790. var xcb_ret Txcb_void_cookie_t
  17791. var _ /* xcb_out at bp+48 */ Txcb_store_colors_request_t
  17792. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17793. _ = xcb_ret
  17794. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  17795. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17797. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17798. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17799. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17800. /* xcb_coloritem_t items */
  17801. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17802. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = items_len * uint32(12)
  17803. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17804. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17805. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req187)))
  17806. return xcb_ret
  17807. }
  17808. var _xcb_req187 = Txcb_protocol_request_t{
  17809. Fcount: uint32(4),
  17810. Fopcode: uint8(m_XCB_STORE_COLORS),
  17811. Fisvoid: uint8(1),
  17812. }
  17813. func Xxcb_store_colors_items(tls *libc.TLS, R uintptr) (r uintptr) {
  17814. return R + libc.UintptrFromInt32(1)*8
  17815. }
  17816. func Xxcb_store_colors_items_length(tls *libc.TLS, R uintptr) (r int32) {
  17817. return libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_store_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(8)) / libc.Uint32FromInt64(12))
  17818. }
  17819. func Xxcb_store_colors_items_iterator(tls *libc.TLS, R uintptr) (r Txcb_coloritem_iterator_t) {
  17820. var i Txcb_coloritem_iterator_t
  17821. _ = i
  17822. i.Fdata = R + libc.UintptrFromInt32(1)*8
  17823. i.Frem = libc.Int32FromUint32((libc.Uint32FromInt32(libc.Int32FromUint16((*Txcb_store_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint32FromInt64(8)) / libc.Uint32FromInt64(12))
  17824. i.Findex = int32(i.Fdata) - int32(R)
  17825. return i
  17826. }
  17827. func Xxcb_store_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17828. var _aux, xcb_tmp uintptr
  17829. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17830. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17831. xcb_tmp = _buffer
  17832. _aux = _buffer
  17833. xcb_buffer_len = uint32(0)
  17834. xcb_block_len = uint32(0)
  17835. xcb_pad = uint32(0)
  17836. xcb_align_to = uint32(0)
  17837. xcb_block_len += uint32(16)
  17838. xcb_tmp += uintptr(xcb_block_len)
  17839. xcb_buffer_len += xcb_block_len
  17840. xcb_block_len = uint32(0)
  17841. /* name */
  17842. xcb_block_len += uint32((*Txcb_store_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  17843. xcb_tmp += uintptr(xcb_block_len)
  17844. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  17845. /* insert padding */
  17846. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17847. xcb_buffer_len += xcb_block_len + xcb_pad
  17848. if uint32(0) != xcb_pad {
  17849. xcb_tmp += uintptr(xcb_pad)
  17850. xcb_pad = uint32(0)
  17851. }
  17852. xcb_block_len = uint32(0)
  17853. return libc.Int32FromUint32(xcb_buffer_len)
  17854. }
  17855. 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) {
  17856. bp := tls.Alloc(64)
  17857. defer tls.Free(64)
  17858. var xcb_ret Txcb_void_cookie_t
  17859. var _ /* xcb_out at bp+48 */ Txcb_store_named_color_request_t
  17860. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17861. _ = xcb_ret
  17862. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fflags = flags
  17863. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17864. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fpixel = pixel
  17865. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  17866. libc.Xmemset(tls, bp+48+14, 0, uint32(2))
  17867. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17868. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  17869. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17870. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17871. /* char name */
  17872. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17873. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  17874. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17875. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17876. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req188)))
  17877. return xcb_ret
  17878. }
  17879. var _xcb_req188 = Txcb_protocol_request_t{
  17880. Fcount: uint32(4),
  17881. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17882. Fisvoid: uint8(1),
  17883. }
  17884. 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) {
  17885. bp := tls.Alloc(64)
  17886. defer tls.Free(64)
  17887. var xcb_ret Txcb_void_cookie_t
  17888. var _ /* xcb_out at bp+48 */ Txcb_store_named_color_request_t
  17889. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17890. _ = xcb_ret
  17891. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fflags = flags
  17892. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17893. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fpixel = pixel
  17894. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  17895. libc.Xmemset(tls, bp+48+14, 0, uint32(2))
  17896. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17897. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(16)
  17898. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17899. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17900. /* char name */
  17901. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17902. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  17903. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17904. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17905. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req189)))
  17906. return xcb_ret
  17907. }
  17908. var _xcb_req189 = Txcb_protocol_request_t{
  17909. Fcount: uint32(4),
  17910. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17911. Fisvoid: uint8(1),
  17912. }
  17913. func Xxcb_store_named_color_name(tls *libc.TLS, R uintptr) (r uintptr) {
  17914. return R + libc.UintptrFromInt32(1)*16
  17915. }
  17916. func Xxcb_store_named_color_name_length(tls *libc.TLS, R uintptr) (r int32) {
  17917. return libc.Int32FromUint16((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17918. }
  17919. func Xxcb_store_named_color_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17920. var i Txcb_generic_iterator_t
  17921. _ = i
  17922. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17923. i.Frem = 0
  17924. i.Findex = int32(i.Fdata) - int32(R)
  17925. return i
  17926. }
  17927. func Xxcb_rgb_next(tls *libc.TLS, i uintptr) {
  17928. var p1 uintptr
  17929. _ = p1
  17930. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Frem--
  17931. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  17932. p1 = i + 8
  17933. *(*int32)(unsafe.Pointer(p1)) = int32(uint32(*(*int32)(unsafe.Pointer(p1))) + libc.Uint32FromInt64(8))
  17934. }
  17935. func Xxcb_rgb_end(tls *libc.TLS, i Txcb_rgb_iterator_t) (r Txcb_generic_iterator_t) {
  17936. var ret Txcb_generic_iterator_t
  17937. _ = ret
  17938. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  17939. ret.Findex = i.Findex + (int32(ret.Fdata) - int32(i.Fdata))
  17940. ret.Frem = 0
  17941. return ret
  17942. }
  17943. func Xxcb_query_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17944. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17945. var xcb_tmp uintptr
  17946. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17947. xcb_tmp = _buffer
  17948. xcb_buffer_len = uint32(0)
  17949. xcb_block_len = uint32(0)
  17950. xcb_pad = uint32(0)
  17951. xcb_align_to = uint32(0)
  17952. xcb_block_len += uint32(8)
  17953. xcb_tmp += uintptr(xcb_block_len)
  17954. xcb_buffer_len += xcb_block_len
  17955. xcb_block_len = uint32(0)
  17956. /* pixels */
  17957. xcb_block_len += pixels_len * uint32(4)
  17958. xcb_tmp += uintptr(xcb_block_len)
  17959. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  17960. /* insert padding */
  17961. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17962. xcb_buffer_len += xcb_block_len + xcb_pad
  17963. if uint32(0) != xcb_pad {
  17964. xcb_tmp += uintptr(xcb_pad)
  17965. xcb_pad = uint32(0)
  17966. }
  17967. xcb_block_len = uint32(0)
  17968. return libc.Int32FromUint32(xcb_buffer_len)
  17969. }
  17970. 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) {
  17971. bp := tls.Alloc(64)
  17972. defer tls.Free(64)
  17973. var xcb_ret Txcb_query_colors_cookie_t
  17974. var _ /* xcb_out at bp+48 */ Txcb_query_colors_request_t
  17975. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17976. _ = xcb_ret
  17977. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  17978. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  17979. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  17980. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  17981. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17982. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  17983. /* uint32_t pixels */
  17984. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17985. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = pixels_len * uint32(4)
  17986. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17987. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  17988. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req190)))
  17989. return xcb_ret
  17990. }
  17991. var _xcb_req190 = Txcb_protocol_request_t{
  17992. Fcount: uint32(4),
  17993. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17994. }
  17995. 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) {
  17996. bp := tls.Alloc(64)
  17997. defer tls.Free(64)
  17998. var xcb_ret Txcb_query_colors_cookie_t
  17999. var _ /* xcb_out at bp+48 */ Txcb_query_colors_request_t
  18000. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18001. _ = xcb_ret
  18002. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  18003. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  18004. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  18005. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18006. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18007. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18008. /* uint32_t pixels */
  18009. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  18010. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = pixels_len * uint32(4)
  18011. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18012. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  18013. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req191)))
  18014. return xcb_ret
  18015. }
  18016. var _xcb_req191 = Txcb_protocol_request_t{
  18017. Fcount: uint32(4),
  18018. Fopcode: uint8(m_XCB_QUERY_COLORS),
  18019. }
  18020. func Xxcb_query_colors_colors(tls *libc.TLS, R uintptr) (r uintptr) {
  18021. return R + libc.UintptrFromInt32(1)*32
  18022. }
  18023. func Xxcb_query_colors_colors_length(tls *libc.TLS, R uintptr) (r int32) {
  18024. return libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  18025. }
  18026. func Xxcb_query_colors_colors_iterator(tls *libc.TLS, R uintptr) (r Txcb_rgb_iterator_t) {
  18027. var i Txcb_rgb_iterator_t
  18028. _ = i
  18029. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18030. i.Frem = libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  18031. i.Findex = int32(i.Fdata) - int32(R)
  18032. return i
  18033. }
  18034. func Xxcb_query_colors_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_colors_cookie_t, e uintptr) (r uintptr) {
  18035. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18036. }
  18037. func Xxcb_lookup_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18038. var _aux, xcb_tmp uintptr
  18039. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18040. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18041. xcb_tmp = _buffer
  18042. _aux = _buffer
  18043. xcb_buffer_len = uint32(0)
  18044. xcb_block_len = uint32(0)
  18045. xcb_pad = uint32(0)
  18046. xcb_align_to = uint32(0)
  18047. xcb_block_len += uint32(12)
  18048. xcb_tmp += uintptr(xcb_block_len)
  18049. xcb_buffer_len += xcb_block_len
  18050. xcb_block_len = uint32(0)
  18051. /* name */
  18052. xcb_block_len += uint32((*Txcb_lookup_color_request_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  18053. xcb_tmp += uintptr(xcb_block_len)
  18054. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  18055. /* insert padding */
  18056. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18057. xcb_buffer_len += xcb_block_len + xcb_pad
  18058. if uint32(0) != xcb_pad {
  18059. xcb_tmp += uintptr(xcb_pad)
  18060. xcb_pad = uint32(0)
  18061. }
  18062. xcb_block_len = uint32(0)
  18063. return libc.Int32FromUint32(xcb_buffer_len)
  18064. }
  18065. 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) {
  18066. bp := tls.Alloc(64)
  18067. defer tls.Free(64)
  18068. var xcb_ret Txcb_lookup_color_cookie_t
  18069. var _ /* xcb_out at bp+48 */ Txcb_lookup_color_request_t
  18070. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18071. _ = xcb_ret
  18072. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  18073. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  18074. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  18075. libc.Xmemset(tls, bp+48+10, 0, uint32(2))
  18076. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  18077. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  18078. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18079. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18080. /* char name */
  18081. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18082. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  18083. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18084. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  18085. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req192)))
  18086. return xcb_ret
  18087. }
  18088. var _xcb_req192 = Txcb_protocol_request_t{
  18089. Fcount: uint32(4),
  18090. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18091. }
  18092. 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) {
  18093. bp := tls.Alloc(64)
  18094. defer tls.Free(64)
  18095. var xcb_ret Txcb_lookup_color_cookie_t
  18096. var _ /* xcb_out at bp+48 */ Txcb_lookup_color_request_t
  18097. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18098. _ = xcb_ret
  18099. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  18100. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 48))).Fcmap = cmap
  18101. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  18102. libc.Xmemset(tls, bp+48+10, 0, uint32(2))
  18103. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  18104. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  18105. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18106. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18107. /* char name */
  18108. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18109. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  18110. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18111. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  18112. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req193)))
  18113. return xcb_ret
  18114. }
  18115. var _xcb_req193 = Txcb_protocol_request_t{
  18116. Fcount: uint32(4),
  18117. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18118. }
  18119. func Xxcb_lookup_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_lookup_color_cookie_t, e uintptr) (r uintptr) {
  18120. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18121. }
  18122. 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) {
  18123. bp := tls.Alloc(64)
  18124. defer tls.Free(64)
  18125. var xcb_ret Txcb_void_cookie_t
  18126. var _ /* xcb_out at bp+32 */ Txcb_create_cursor_request_t
  18127. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18128. _ = xcb_ret
  18129. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18130. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcid = cid
  18131. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fsource = source
  18132. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fmask = mask
  18133. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_red = fore_red
  18134. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_green = fore_green
  18135. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_blue = fore_blue
  18136. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_red = back_red
  18137. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_green = back_green
  18138. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_blue = back_blue
  18139. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  18140. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  18141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  18143. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18144. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18145. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req194)))
  18146. return xcb_ret
  18147. }
  18148. var _xcb_req194 = Txcb_protocol_request_t{
  18149. Fcount: uint32(2),
  18150. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18151. Fisvoid: uint8(1),
  18152. }
  18153. 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) {
  18154. bp := tls.Alloc(64)
  18155. defer tls.Free(64)
  18156. var xcb_ret Txcb_void_cookie_t
  18157. var _ /* xcb_out at bp+32 */ Txcb_create_cursor_request_t
  18158. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18159. _ = xcb_ret
  18160. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18161. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcid = cid
  18162. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fsource = source
  18163. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fmask = mask
  18164. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_red = fore_red
  18165. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_green = fore_green
  18166. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_blue = fore_blue
  18167. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_red = back_red
  18168. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_green = back_green
  18169. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_blue = back_blue
  18170. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fx = x
  18171. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 32))).Fy = y
  18172. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18173. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  18174. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18175. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18176. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req195)))
  18177. return xcb_ret
  18178. }
  18179. var _xcb_req195 = Txcb_protocol_request_t{
  18180. Fcount: uint32(2),
  18181. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18182. Fisvoid: uint8(1),
  18183. }
  18184. 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) {
  18185. bp := tls.Alloc(64)
  18186. defer tls.Free(64)
  18187. var xcb_ret Txcb_void_cookie_t
  18188. var _ /* xcb_out at bp+32 */ Txcb_create_glyph_cursor_request_t
  18189. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18190. _ = xcb_ret
  18191. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18192. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcid = cid
  18193. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fsource_font = source_font
  18194. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fmask_font = mask_font
  18195. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fsource_char = source_char
  18196. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fmask_char = mask_char
  18197. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_red = fore_red
  18198. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_green = fore_green
  18199. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_blue = fore_blue
  18200. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_red = back_red
  18201. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_green = back_green
  18202. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_blue = back_blue
  18203. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18204. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  18205. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18206. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18207. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req196)))
  18208. return xcb_ret
  18209. }
  18210. var _xcb_req196 = Txcb_protocol_request_t{
  18211. Fcount: uint32(2),
  18212. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18213. Fisvoid: uint8(1),
  18214. }
  18215. 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) {
  18216. bp := tls.Alloc(64)
  18217. defer tls.Free(64)
  18218. var xcb_ret Txcb_void_cookie_t
  18219. var _ /* xcb_out at bp+32 */ Txcb_create_glyph_cursor_request_t
  18220. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18221. _ = xcb_ret
  18222. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18223. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcid = cid
  18224. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fsource_font = source_font
  18225. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fmask_font = mask_font
  18226. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fsource_char = source_char
  18227. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fmask_char = mask_char
  18228. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_red = fore_red
  18229. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_green = fore_green
  18230. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_blue = fore_blue
  18231. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_red = back_red
  18232. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_green = back_green
  18233. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_blue = back_blue
  18234. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18235. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(32)
  18236. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18238. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req197)))
  18239. return xcb_ret
  18240. }
  18241. var _xcb_req197 = Txcb_protocol_request_t{
  18242. Fcount: uint32(2),
  18243. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18244. Fisvoid: uint8(1),
  18245. }
  18246. func Xxcb_free_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18247. bp := tls.Alloc(48)
  18248. defer tls.Free(48)
  18249. var xcb_ret Txcb_void_cookie_t
  18250. var _ /* xcb_out at bp+32 */ Txcb_free_cursor_request_t
  18251. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18252. _ = xcb_ret
  18253. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18254. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  18255. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18256. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18259. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req198)))
  18260. return xcb_ret
  18261. }
  18262. var _xcb_req198 = Txcb_protocol_request_t{
  18263. Fcount: uint32(2),
  18264. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18265. Fisvoid: uint8(1),
  18266. }
  18267. func Xxcb_free_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18268. bp := tls.Alloc(48)
  18269. defer tls.Free(48)
  18270. var xcb_ret Txcb_void_cookie_t
  18271. var _ /* xcb_out at bp+32 */ Txcb_free_cursor_request_t
  18272. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18273. _ = xcb_ret
  18274. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18275. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  18276. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18280. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req199)))
  18281. return xcb_ret
  18282. }
  18283. var _xcb_req199 = Txcb_protocol_request_t{
  18284. Fcount: uint32(2),
  18285. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18286. Fisvoid: uint8(1),
  18287. }
  18288. 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) {
  18289. bp := tls.Alloc(64)
  18290. defer tls.Free(64)
  18291. var xcb_ret Txcb_void_cookie_t
  18292. var _ /* xcb_out at bp+32 */ Txcb_recolor_cursor_request_t
  18293. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18294. _ = xcb_ret
  18295. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18296. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  18297. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_red = fore_red
  18298. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_green = fore_green
  18299. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_blue = fore_blue
  18300. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_red = back_red
  18301. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_green = back_green
  18302. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_blue = back_blue
  18303. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18304. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(20)
  18305. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18306. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18307. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req200)))
  18308. return xcb_ret
  18309. }
  18310. var _xcb_req200 = Txcb_protocol_request_t{
  18311. Fcount: uint32(2),
  18312. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18313. Fisvoid: uint8(1),
  18314. }
  18315. 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) {
  18316. bp := tls.Alloc(64)
  18317. defer tls.Free(64)
  18318. var xcb_ret Txcb_void_cookie_t
  18319. var _ /* xcb_out at bp+32 */ Txcb_recolor_cursor_request_t
  18320. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18321. _ = xcb_ret
  18322. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18323. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fcursor = cursor
  18324. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_red = fore_red
  18325. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_green = fore_green
  18326. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Ffore_blue = fore_blue
  18327. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_red = back_red
  18328. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_green = back_green
  18329. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 32))).Fback_blue = back_blue
  18330. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(20)
  18332. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18333. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18334. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req201)))
  18335. return xcb_ret
  18336. }
  18337. var _xcb_req201 = Txcb_protocol_request_t{
  18338. Fcount: uint32(2),
  18339. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18340. Fisvoid: uint8(1),
  18341. }
  18342. 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) {
  18343. bp := tls.Alloc(48)
  18344. defer tls.Free(48)
  18345. var xcb_ret Txcb_query_best_size_cookie_t
  18346. var _ /* xcb_out at bp+32 */ Txcb_query_best_size_request_t
  18347. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18348. _ = xcb_ret
  18349. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).F_class = _class
  18350. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  18351. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  18352. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  18353. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18354. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  18355. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18356. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18357. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req202)))
  18358. return xcb_ret
  18359. }
  18360. var _xcb_req202 = Txcb_protocol_request_t{
  18361. Fcount: uint32(2),
  18362. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18363. }
  18364. 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) {
  18365. bp := tls.Alloc(48)
  18366. defer tls.Free(48)
  18367. var xcb_ret Txcb_query_best_size_cookie_t
  18368. var _ /* xcb_out at bp+32 */ Txcb_query_best_size_request_t
  18369. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18370. _ = xcb_ret
  18371. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).F_class = _class
  18372. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).Fdrawable = drawable
  18373. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).Fwidth = width
  18374. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 32))).Fheight = height
  18375. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18376. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  18377. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18378. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18379. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req203)))
  18380. return xcb_ret
  18381. }
  18382. var _xcb_req203 = Txcb_protocol_request_t{
  18383. Fcount: uint32(2),
  18384. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18385. }
  18386. func Xxcb_query_best_size_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_best_size_cookie_t, e uintptr) (r uintptr) {
  18387. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18388. }
  18389. func Xxcb_query_extension_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18390. var _aux, xcb_tmp uintptr
  18391. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18392. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18393. xcb_tmp = _buffer
  18394. _aux = _buffer
  18395. xcb_buffer_len = uint32(0)
  18396. xcb_block_len = uint32(0)
  18397. xcb_pad = uint32(0)
  18398. xcb_align_to = uint32(0)
  18399. xcb_block_len += uint32(8)
  18400. xcb_tmp += uintptr(xcb_block_len)
  18401. xcb_buffer_len += xcb_block_len
  18402. xcb_block_len = uint32(0)
  18403. /* name */
  18404. xcb_block_len += uint32((*Txcb_query_extension_request_t)(unsafe.Pointer(_aux)).Fname_len) * uint32(1)
  18405. xcb_tmp += uintptr(xcb_block_len)
  18406. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  18407. /* insert padding */
  18408. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18409. xcb_buffer_len += xcb_block_len + xcb_pad
  18410. if uint32(0) != xcb_pad {
  18411. xcb_tmp += uintptr(xcb_pad)
  18412. xcb_pad = uint32(0)
  18413. }
  18414. xcb_block_len = uint32(0)
  18415. return libc.Int32FromUint32(xcb_buffer_len)
  18416. }
  18417. func Xxcb_query_extension(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18418. bp := tls.Alloc(64)
  18419. defer tls.Free(64)
  18420. var xcb_ret Txcb_query_extension_cookie_t
  18421. var _ /* xcb_out at bp+48 */ Txcb_query_extension_request_t
  18422. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18423. _ = xcb_ret
  18424. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  18425. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  18426. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  18427. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  18428. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18429. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18430. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18431. /* char name */
  18432. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18433. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  18434. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18435. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  18436. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req204)))
  18437. return xcb_ret
  18438. }
  18439. var _xcb_req204 = Txcb_protocol_request_t{
  18440. Fcount: uint32(4),
  18441. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18442. }
  18443. func Xxcb_query_extension_unchecked(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18444. bp := tls.Alloc(64)
  18445. defer tls.Free(64)
  18446. var xcb_ret Txcb_query_extension_cookie_t
  18447. var _ /* xcb_out at bp+48 */ Txcb_query_extension_request_t
  18448. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18449. _ = xcb_ret
  18450. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  18451. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 48))).Fname_len = name_len
  18452. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  18453. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  18454. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18455. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18456. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18457. /* char name */
  18458. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18459. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(name_len) * uint32(1)
  18460. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18461. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  18462. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req205)))
  18463. return xcb_ret
  18464. }
  18465. var _xcb_req205 = Txcb_protocol_request_t{
  18466. Fcount: uint32(4),
  18467. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18468. }
  18469. func Xxcb_query_extension_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_extension_cookie_t, e uintptr) (r uintptr) {
  18470. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18471. }
  18472. func Xxcb_list_extensions_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18473. var _aux, xcb_tmp uintptr
  18474. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  18475. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  18476. xcb_tmp = _buffer
  18477. _aux = _buffer
  18478. xcb_buffer_len = uint32(0)
  18479. xcb_block_len = uint32(0)
  18480. xcb_pad = uint32(0)
  18481. xcb_align_to = uint32(0)
  18482. xcb_block_len += uint32(32)
  18483. xcb_tmp += uintptr(xcb_block_len)
  18484. xcb_buffer_len += xcb_block_len
  18485. xcb_block_len = uint32(0)
  18486. /* names */
  18487. i = uint32(0)
  18488. for {
  18489. if !(i < uint32((*Txcb_list_extensions_reply_t)(unsafe.Pointer(_aux)).Fnames_len)) {
  18490. break
  18491. }
  18492. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  18493. xcb_block_len += xcb_tmp_len
  18494. xcb_tmp += uintptr(xcb_tmp_len)
  18495. goto _1
  18496. _1:
  18497. ;
  18498. i++
  18499. }
  18500. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  18501. /* insert padding */
  18502. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18503. xcb_buffer_len += xcb_block_len + xcb_pad
  18504. if uint32(0) != xcb_pad {
  18505. xcb_tmp += uintptr(xcb_pad)
  18506. xcb_pad = uint32(0)
  18507. }
  18508. xcb_block_len = uint32(0)
  18509. return libc.Int32FromUint32(xcb_buffer_len)
  18510. }
  18511. func Xxcb_list_extensions(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18512. bp := tls.Alloc(48)
  18513. defer tls.Free(48)
  18514. var xcb_ret Txcb_list_extensions_cookie_t
  18515. var _ /* xcb_out at bp+32 */ Txcb_list_extensions_request_t
  18516. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18517. _ = xcb_ret
  18518. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18519. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18520. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  18521. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18522. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18523. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req206)))
  18524. return xcb_ret
  18525. }
  18526. var _xcb_req206 = Txcb_protocol_request_t{
  18527. Fcount: uint32(2),
  18528. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18529. }
  18530. func Xxcb_list_extensions_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18531. bp := tls.Alloc(48)
  18532. defer tls.Free(48)
  18533. var xcb_ret Txcb_list_extensions_cookie_t
  18534. var _ /* xcb_out at bp+32 */ Txcb_list_extensions_request_t
  18535. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18536. _ = xcb_ret
  18537. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  18538. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  18539. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  18540. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18541. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18542. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req207)))
  18543. return xcb_ret
  18544. }
  18545. var _xcb_req207 = Txcb_protocol_request_t{
  18546. Fcount: uint32(2),
  18547. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18548. }
  18549. func Xxcb_list_extensions_names_length(tls *libc.TLS, R uintptr) (r int32) {
  18550. return libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18551. }
  18552. func Xxcb_list_extensions_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  18553. var i Txcb_str_iterator_t
  18554. _ = i
  18555. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18556. i.Frem = libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18557. i.Findex = int32(i.Fdata) - int32(R)
  18558. return i
  18559. }
  18560. func Xxcb_list_extensions_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_extensions_cookie_t, e uintptr) (r uintptr) {
  18561. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18562. }
  18563. func Xxcb_change_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18564. var _aux, xcb_tmp uintptr
  18565. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18566. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18567. xcb_tmp = _buffer
  18568. _aux = _buffer
  18569. xcb_buffer_len = uint32(0)
  18570. xcb_block_len = uint32(0)
  18571. xcb_pad = uint32(0)
  18572. xcb_align_to = uint32(0)
  18573. xcb_block_len += uint32(8)
  18574. xcb_tmp += uintptr(xcb_block_len)
  18575. xcb_buffer_len += xcb_block_len
  18576. xcb_block_len = uint32(0)
  18577. /* keysyms */
  18578. xcb_block_len += libc.Uint32FromInt32(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)) * uint32(4)
  18579. xcb_tmp += uintptr(xcb_block_len)
  18580. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18581. /* insert padding */
  18582. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18583. xcb_buffer_len += xcb_block_len + xcb_pad
  18584. if uint32(0) != xcb_pad {
  18585. xcb_tmp += uintptr(xcb_pad)
  18586. xcb_pad = uint32(0)
  18587. }
  18588. xcb_block_len = uint32(0)
  18589. return libc.Int32FromUint32(xcb_buffer_len)
  18590. }
  18591. 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) {
  18592. bp := tls.Alloc(64)
  18593. defer tls.Free(64)
  18594. var xcb_ret Txcb_void_cookie_t
  18595. var _ /* xcb_out at bp+48 */ Txcb_change_keyboard_mapping_request_t
  18596. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18597. _ = xcb_ret
  18598. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 48))).Fkeycode_count = keycode_count
  18599. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 48))).Ffirst_keycode = first_keycode
  18600. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 48))).Fkeysyms_per_keycode = keysyms_per_keycode
  18601. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  18602. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  18603. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18604. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18606. /* xcb_keysym_t keysyms */
  18607. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18608. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint32(4)
  18609. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18610. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  18611. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req208)))
  18612. return xcb_ret
  18613. }
  18614. var _xcb_req208 = Txcb_protocol_request_t{
  18615. Fcount: uint32(4),
  18616. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18617. Fisvoid: uint8(1),
  18618. }
  18619. 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) {
  18620. bp := tls.Alloc(64)
  18621. defer tls.Free(64)
  18622. var xcb_ret Txcb_void_cookie_t
  18623. var _ /* xcb_out at bp+48 */ Txcb_change_keyboard_mapping_request_t
  18624. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18625. _ = xcb_ret
  18626. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 48))).Fkeycode_count = keycode_count
  18627. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 48))).Ffirst_keycode = first_keycode
  18628. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 48))).Fkeysyms_per_keycode = keysyms_per_keycode
  18629. libc.Xmemset(tls, bp+48+6, 0, uint32(2))
  18630. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  18631. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18632. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18633. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18634. /* xcb_keysym_t keysyms */
  18635. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18636. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint32(4)
  18637. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18638. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  18639. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req209)))
  18640. return xcb_ret
  18641. }
  18642. var _xcb_req209 = Txcb_protocol_request_t{
  18643. Fcount: uint32(4),
  18644. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18645. Fisvoid: uint8(1),
  18646. }
  18647. func Xxcb_change_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18648. return R + libc.UintptrFromInt32(1)*8
  18649. }
  18650. func Xxcb_change_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18651. 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)
  18652. }
  18653. func Xxcb_change_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18654. var i Txcb_generic_iterator_t
  18655. _ = i
  18656. 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
  18657. i.Frem = 0
  18658. i.Findex = int32(i.Fdata) - int32(R)
  18659. return i
  18660. }
  18661. func Xxcb_get_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18662. var _aux, xcb_tmp uintptr
  18663. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18664. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18665. xcb_tmp = _buffer
  18666. _aux = _buffer
  18667. xcb_buffer_len = uint32(0)
  18668. xcb_block_len = uint32(0)
  18669. xcb_pad = uint32(0)
  18670. xcb_align_to = uint32(0)
  18671. xcb_block_len += uint32(32)
  18672. xcb_tmp += uintptr(xcb_block_len)
  18673. xcb_buffer_len += xcb_block_len
  18674. xcb_block_len = uint32(0)
  18675. /* keysyms */
  18676. xcb_block_len += (*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(_aux)).Flength * uint32(4)
  18677. xcb_tmp += uintptr(xcb_block_len)
  18678. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18679. /* insert padding */
  18680. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18681. xcb_buffer_len += xcb_block_len + xcb_pad
  18682. if uint32(0) != xcb_pad {
  18683. xcb_tmp += uintptr(xcb_pad)
  18684. xcb_pad = uint32(0)
  18685. }
  18686. xcb_block_len = uint32(0)
  18687. return libc.Int32FromUint32(xcb_buffer_len)
  18688. }
  18689. 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) {
  18690. bp := tls.Alloc(48)
  18691. defer tls.Free(48)
  18692. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18693. var _ /* xcb_out at bp+36 */ Txcb_get_keyboard_mapping_request_t
  18694. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18695. _ = xcb_ret
  18696. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 36))).Fpad0 = uint8(0)
  18697. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 36))).Ffirst_keycode = first_keycode
  18698. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 36))).Fcount = count
  18699. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 36
  18700. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(6)
  18701. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18702. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18703. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req210)))
  18704. return xcb_ret
  18705. }
  18706. var _xcb_req210 = Txcb_protocol_request_t{
  18707. Fcount: uint32(2),
  18708. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18709. }
  18710. 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) {
  18711. bp := tls.Alloc(48)
  18712. defer tls.Free(48)
  18713. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18714. var _ /* xcb_out at bp+36 */ Txcb_get_keyboard_mapping_request_t
  18715. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18716. _ = xcb_ret
  18717. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 36))).Fpad0 = uint8(0)
  18718. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 36))).Ffirst_keycode = first_keycode
  18719. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 36))).Fcount = count
  18720. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 36
  18721. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(6)
  18722. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18723. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18724. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req211)))
  18725. return xcb_ret
  18726. }
  18727. var _xcb_req211 = Txcb_protocol_request_t{
  18728. Fcount: uint32(2),
  18729. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18730. }
  18731. func Xxcb_get_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18732. return R + libc.UintptrFromInt32(1)*32
  18733. }
  18734. func Xxcb_get_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18735. return libc.Int32FromUint32((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)
  18736. }
  18737. func Xxcb_get_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18738. var i Txcb_generic_iterator_t
  18739. _ = i
  18740. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)*4
  18741. i.Frem = 0
  18742. i.Findex = int32(i.Fdata) - int32(R)
  18743. return i
  18744. }
  18745. func Xxcb_get_keyboard_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_mapping_cookie_t, e uintptr) (r uintptr) {
  18746. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18747. }
  18748. func Xxcb_change_keyboard_control_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18749. bp := tls.Alloc(16)
  18750. defer tls.Free(16)
  18751. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  18752. var xcb_out, xcb_tmp uintptr
  18753. var xcb_parts [9]Tiovec
  18754. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  18755. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  18756. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  18757. xcb_buffer_len = uint32(0)
  18758. xcb_align_to = uint32(0)
  18759. xcb_padding_offset = uint32(0)
  18760. xcb_pad = uint32(0)
  18761. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  18762. xcb_parts_idx = uint32(0)
  18763. xcb_block_len = uint32(0)
  18764. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18765. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18766. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  18767. xcb_block_len += uint32(4)
  18768. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18769. xcb_parts_idx++
  18770. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18771. }
  18772. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18773. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18774. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  18775. xcb_block_len += uint32(4)
  18776. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18777. xcb_parts_idx++
  18778. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18779. }
  18780. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18781. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18782. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  18783. xcb_block_len += uint32(4)
  18784. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18785. xcb_parts_idx++
  18786. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18787. }
  18788. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18789. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18790. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  18791. xcb_block_len += uint32(4)
  18792. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18793. xcb_parts_idx++
  18794. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18795. }
  18796. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18797. /* xcb_change_keyboard_control_value_list_t.led */
  18798. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  18799. xcb_block_len += uint32(4)
  18800. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18801. xcb_parts_idx++
  18802. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18803. }
  18804. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18805. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18806. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  18807. xcb_block_len += uint32(4)
  18808. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18809. xcb_parts_idx++
  18810. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18811. }
  18812. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18813. /* xcb_change_keyboard_control_value_list_t.key */
  18814. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  18815. xcb_block_len += uint32(4)
  18816. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18817. xcb_parts_idx++
  18818. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18819. }
  18820. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18821. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18822. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  18823. xcb_block_len += uint32(4)
  18824. xcb_parts[xcb_parts_idx].Fiov_len = uint32(4)
  18825. xcb_parts_idx++
  18826. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18827. }
  18828. /* insert padding */
  18829. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18830. xcb_buffer_len += xcb_block_len + xcb_pad
  18831. if uint32(0) != xcb_pad {
  18832. xcb_parts[xcb_parts_idx].Fiov_base = bp
  18833. xcb_parts[xcb_parts_idx].Fiov_len = xcb_pad
  18834. xcb_parts_idx++
  18835. xcb_pad = uint32(0)
  18836. }
  18837. xcb_block_len = uint32(0)
  18838. xcb_padding_offset = uint32(0)
  18839. if libc.UintptrFromInt32(0) == xcb_out {
  18840. /* allocate memory */
  18841. xcb_out = libc.Xmalloc(tls, xcb_buffer_len)
  18842. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  18843. }
  18844. xcb_tmp = xcb_out
  18845. i = uint32(0)
  18846. for {
  18847. if !(i < xcb_parts_idx) {
  18848. break
  18849. }
  18850. if uintptr(0) != xcb_parts[i].Fiov_base && uint32(0) != xcb_parts[i].Fiov_len {
  18851. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  18852. }
  18853. if uint32(0) != xcb_parts[i].Fiov_len {
  18854. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  18855. }
  18856. goto _1
  18857. _1:
  18858. ;
  18859. i++
  18860. }
  18861. return libc.Int32FromUint32(xcb_buffer_len)
  18862. }
  18863. func Xxcb_change_keyboard_control_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18864. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  18865. var xcb_tmp uintptr
  18866. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  18867. xcb_tmp = _buffer
  18868. xcb_buffer_len = uint32(0)
  18869. xcb_block_len = uint32(0)
  18870. xcb_pad = uint32(0)
  18871. xcb_align_to = uint32(0)
  18872. xcb_padding_offset = uint32(0)
  18873. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18874. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18875. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey_click_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18876. xcb_block_len += uint32(4)
  18877. xcb_tmp += uintptr(4)
  18878. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18879. }
  18880. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18881. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18882. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18883. xcb_block_len += uint32(4)
  18884. xcb_tmp += uintptr(4)
  18885. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18886. }
  18887. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18888. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18889. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_pitch = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18890. xcb_block_len += uint32(4)
  18891. xcb_tmp += uintptr(4)
  18892. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18893. }
  18894. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18895. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18896. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_duration = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18897. xcb_block_len += uint32(4)
  18898. xcb_tmp += uintptr(4)
  18899. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18900. }
  18901. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18902. /* xcb_change_keyboard_control_value_list_t.led */
  18903. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18904. xcb_block_len += uint32(4)
  18905. xcb_tmp += uintptr(4)
  18906. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18907. }
  18908. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18909. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18910. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18911. xcb_block_len += uint32(4)
  18912. xcb_tmp += uintptr(4)
  18913. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18914. }
  18915. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18916. /* xcb_change_keyboard_control_value_list_t.key */
  18917. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey = *(*Txcb_keycode32_t)(unsafe.Pointer(xcb_tmp))
  18918. xcb_block_len += uint32(4)
  18919. xcb_tmp += uintptr(4)
  18920. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18921. }
  18922. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18923. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18924. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fauto_repeat_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18925. xcb_block_len += uint32(4)
  18926. xcb_tmp += uintptr(4)
  18927. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  18928. }
  18929. /* insert padding */
  18930. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18931. xcb_buffer_len += xcb_block_len + xcb_pad
  18932. if uint32(0) != xcb_pad {
  18933. xcb_tmp += uintptr(xcb_pad)
  18934. xcb_pad = uint32(0)
  18935. }
  18936. xcb_block_len = uint32(0)
  18937. xcb_padding_offset = uint32(0)
  18938. return libc.Int32FromUint32(xcb_buffer_len)
  18939. }
  18940. func Xxcb_change_keyboard_control_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  18941. bp := tls.Alloc(32)
  18942. defer tls.Free(32)
  18943. var _ /* _aux at bp+0 */ Txcb_change_keyboard_control_value_list_t
  18944. return Xxcb_change_keyboard_control_value_list_unpack(tls, _buffer, value_mask, bp)
  18945. }
  18946. func Xxcb_change_keyboard_control_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18947. var _aux, xcb_tmp uintptr
  18948. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18949. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18950. xcb_tmp = _buffer
  18951. _aux = _buffer
  18952. xcb_buffer_len = uint32(0)
  18953. xcb_block_len = uint32(0)
  18954. xcb_pad = uint32(0)
  18955. xcb_align_to = uint32(0)
  18956. xcb_block_len += uint32(8)
  18957. xcb_tmp += uintptr(xcb_block_len)
  18958. xcb_buffer_len += xcb_block_len
  18959. xcb_block_len = uint32(0)
  18960. /* value_list */
  18961. 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))
  18962. xcb_tmp += uintptr(xcb_block_len)
  18963. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  18964. /* insert padding */
  18965. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18966. xcb_buffer_len += xcb_block_len + xcb_pad
  18967. if uint32(0) != xcb_pad {
  18968. xcb_tmp += uintptr(xcb_pad)
  18969. xcb_pad = uint32(0)
  18970. }
  18971. xcb_block_len = uint32(0)
  18972. return libc.Int32FromUint32(xcb_buffer_len)
  18973. }
  18974. func Xxcb_change_keyboard_control_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18975. bp := tls.Alloc(48)
  18976. defer tls.Free(48)
  18977. var xcb_ret Txcb_void_cookie_t
  18978. var _ /* xcb_out at bp+40 */ Txcb_change_keyboard_control_request_t
  18979. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18980. _ = xcb_ret
  18981. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  18982. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  18983. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  18984. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  18985. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18986. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  18987. /* xcb_change_keyboard_control_value_list_t value_list */
  18988. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18989. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18990. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req212)))
  18991. return xcb_ret
  18992. }
  18993. var _xcb_req212 = Txcb_protocol_request_t{
  18994. Fcount: uint32(3),
  18995. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18996. Fisvoid: uint8(1),
  18997. }
  18998. func Xxcb_change_keyboard_control(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18999. bp := tls.Alloc(48)
  19000. defer tls.Free(48)
  19001. var xcb_ret Txcb_void_cookie_t
  19002. var _ /* xcb_out at bp+40 */ Txcb_change_keyboard_control_request_t
  19003. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19004. _ = xcb_ret
  19005. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  19006. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  19007. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  19008. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  19009. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19010. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19011. /* xcb_change_keyboard_control_value_list_t value_list */
  19012. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  19013. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  19014. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req213)))
  19015. return xcb_ret
  19016. }
  19017. var _xcb_req213 = Txcb_protocol_request_t{
  19018. Fcount: uint32(3),
  19019. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19020. Fisvoid: uint8(1),
  19021. }
  19022. func Xxcb_change_keyboard_control_aux_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19023. bp := tls.Alloc(64)
  19024. defer tls.Free(64)
  19025. var xcb_ret Txcb_void_cookie_t
  19026. var _ /* xcb_aux0 at bp+48 */ uintptr
  19027. var _ /* xcb_out at bp+40 */ Txcb_change_keyboard_control_request_t
  19028. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19029. _ = xcb_ret
  19030. *(*uintptr)(unsafe.Pointer(bp + 48)) = uintptr(0)
  19031. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  19032. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  19033. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  19034. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  19035. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19036. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19037. /* xcb_change_keyboard_control_value_list_t value_list */
  19038. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_keyboard_control_value_list_serialize(tls, bp+48, value_mask, value_list))
  19039. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 48))
  19040. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req214)))
  19041. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 48)))
  19042. return xcb_ret
  19043. }
  19044. var _xcb_req214 = Txcb_protocol_request_t{
  19045. Fcount: uint32(3),
  19046. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19047. Fisvoid: uint8(1),
  19048. }
  19049. func Xxcb_change_keyboard_control_aux(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19050. bp := tls.Alloc(64)
  19051. defer tls.Free(64)
  19052. var xcb_ret Txcb_void_cookie_t
  19053. var _ /* xcb_aux0 at bp+48 */ uintptr
  19054. var _ /* xcb_out at bp+40 */ Txcb_change_keyboard_control_request_t
  19055. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19056. _ = xcb_ret
  19057. *(*uintptr)(unsafe.Pointer(bp + 48)) = uintptr(0)
  19058. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fpad0 = uint8(0)
  19059. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 40))).Fvalue_mask = value_mask
  19060. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 40
  19061. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  19062. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19063. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19064. /* xcb_change_keyboard_control_value_list_t value_list */
  19065. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(Xxcb_change_keyboard_control_value_list_serialize(tls, bp+48, value_mask, value_list))
  19066. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 48))
  19067. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req215)))
  19068. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 48)))
  19069. return xcb_ret
  19070. }
  19071. var _xcb_req215 = Txcb_protocol_request_t{
  19072. Fcount: uint32(3),
  19073. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19074. Fisvoid: uint8(1),
  19075. }
  19076. func Xxcb_change_keyboard_control_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  19077. return R + libc.UintptrFromInt32(1)*8
  19078. }
  19079. func Xxcb_get_keyboard_control(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19080. bp := tls.Alloc(48)
  19081. defer tls.Free(48)
  19082. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19083. var _ /* xcb_out at bp+32 */ Txcb_get_keyboard_control_request_t
  19084. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19085. _ = xcb_ret
  19086. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19087. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19088. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19089. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19090. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19091. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req216)))
  19092. return xcb_ret
  19093. }
  19094. var _xcb_req216 = Txcb_protocol_request_t{
  19095. Fcount: uint32(2),
  19096. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19097. }
  19098. func Xxcb_get_keyboard_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19099. bp := tls.Alloc(48)
  19100. defer tls.Free(48)
  19101. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19102. var _ /* xcb_out at bp+32 */ Txcb_get_keyboard_control_request_t
  19103. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19104. _ = xcb_ret
  19105. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19106. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19107. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19108. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19109. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19110. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req217)))
  19111. return xcb_ret
  19112. }
  19113. var _xcb_req217 = Txcb_protocol_request_t{
  19114. Fcount: uint32(2),
  19115. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19116. }
  19117. func Xxcb_get_keyboard_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_control_cookie_t, e uintptr) (r uintptr) {
  19118. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19119. }
  19120. func Xxcb_bell_checked(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19121. bp := tls.Alloc(48)
  19122. defer tls.Free(48)
  19123. var xcb_ret Txcb_void_cookie_t
  19124. var _ /* xcb_out at bp+32 */ Txcb_bell_request_t
  19125. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19126. _ = xcb_ret
  19127. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 32))).Fpercent = percent
  19128. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19129. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19130. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19131. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19132. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req218)))
  19133. return xcb_ret
  19134. }
  19135. var _xcb_req218 = Txcb_protocol_request_t{
  19136. Fcount: uint32(2),
  19137. Fopcode: uint8(m_XCB_BELL),
  19138. Fisvoid: uint8(1),
  19139. }
  19140. func Xxcb_bell(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19141. bp := tls.Alloc(48)
  19142. defer tls.Free(48)
  19143. var xcb_ret Txcb_void_cookie_t
  19144. var _ /* xcb_out at bp+32 */ Txcb_bell_request_t
  19145. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19146. _ = xcb_ret
  19147. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 32))).Fpercent = percent
  19148. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19149. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19150. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19151. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19152. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req219)))
  19153. return xcb_ret
  19154. }
  19155. var _xcb_req219 = Txcb_protocol_request_t{
  19156. Fcount: uint32(2),
  19157. Fopcode: uint8(m_XCB_BELL),
  19158. Fisvoid: uint8(1),
  19159. }
  19160. 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) {
  19161. bp := tls.Alloc(48)
  19162. defer tls.Free(48)
  19163. var xcb_ret Txcb_void_cookie_t
  19164. var _ /* xcb_out at bp+32 */ Txcb_change_pointer_control_request_t
  19165. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19166. _ = xcb_ret
  19167. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19168. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Facceleration_numerator = acceleration_numerator
  19169. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Facceleration_denominator = acceleration_denominator
  19170. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fthreshold = threshold
  19171. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fdo_acceleration = do_acceleration
  19172. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fdo_threshold = do_threshold
  19173. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19174. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  19175. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19176. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19177. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req220)))
  19178. return xcb_ret
  19179. }
  19180. var _xcb_req220 = Txcb_protocol_request_t{
  19181. Fcount: uint32(2),
  19182. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19183. Fisvoid: uint8(1),
  19184. }
  19185. 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) {
  19186. bp := tls.Alloc(48)
  19187. defer tls.Free(48)
  19188. var xcb_ret Txcb_void_cookie_t
  19189. var _ /* xcb_out at bp+32 */ Txcb_change_pointer_control_request_t
  19190. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19191. _ = xcb_ret
  19192. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19193. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Facceleration_numerator = acceleration_numerator
  19194. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Facceleration_denominator = acceleration_denominator
  19195. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fthreshold = threshold
  19196. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fdo_acceleration = do_acceleration
  19197. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fdo_threshold = do_threshold
  19198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  19200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19202. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req221)))
  19203. return xcb_ret
  19204. }
  19205. var _xcb_req221 = Txcb_protocol_request_t{
  19206. Fcount: uint32(2),
  19207. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19208. Fisvoid: uint8(1),
  19209. }
  19210. func Xxcb_get_pointer_control(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19211. bp := tls.Alloc(48)
  19212. defer tls.Free(48)
  19213. var xcb_ret Txcb_get_pointer_control_cookie_t
  19214. var _ /* xcb_out at bp+32 */ Txcb_get_pointer_control_request_t
  19215. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19216. _ = xcb_ret
  19217. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19221. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19222. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req222)))
  19223. return xcb_ret
  19224. }
  19225. var _xcb_req222 = Txcb_protocol_request_t{
  19226. Fcount: uint32(2),
  19227. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19228. }
  19229. func Xxcb_get_pointer_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19230. bp := tls.Alloc(48)
  19231. defer tls.Free(48)
  19232. var xcb_ret Txcb_get_pointer_control_cookie_t
  19233. var _ /* xcb_out at bp+32 */ Txcb_get_pointer_control_request_t
  19234. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19235. _ = xcb_ret
  19236. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19241. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req223)))
  19242. return xcb_ret
  19243. }
  19244. var _xcb_req223 = Txcb_protocol_request_t{
  19245. Fcount: uint32(2),
  19246. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19247. }
  19248. func Xxcb_get_pointer_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_control_cookie_t, e uintptr) (r uintptr) {
  19249. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19250. }
  19251. 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) {
  19252. bp := tls.Alloc(48)
  19253. defer tls.Free(48)
  19254. var xcb_ret Txcb_void_cookie_t
  19255. var _ /* xcb_out at bp+32 */ Txcb_set_screen_saver_request_t
  19256. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19257. _ = xcb_ret
  19258. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19259. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Ftimeout = timeout
  19260. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Finterval = interval
  19261. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fprefer_blanking = prefer_blanking
  19262. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fallow_exposures = allow_exposures
  19263. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19264. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(10)
  19265. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19266. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19267. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req224)))
  19268. return xcb_ret
  19269. }
  19270. var _xcb_req224 = Txcb_protocol_request_t{
  19271. Fcount: uint32(2),
  19272. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19273. Fisvoid: uint8(1),
  19274. }
  19275. 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) {
  19276. bp := tls.Alloc(48)
  19277. defer tls.Free(48)
  19278. var xcb_ret Txcb_void_cookie_t
  19279. var _ /* xcb_out at bp+32 */ Txcb_set_screen_saver_request_t
  19280. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19281. _ = xcb_ret
  19282. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19283. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Ftimeout = timeout
  19284. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Finterval = interval
  19285. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fprefer_blanking = prefer_blanking
  19286. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fallow_exposures = allow_exposures
  19287. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19288. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(10)
  19289. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19290. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19291. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req225)))
  19292. return xcb_ret
  19293. }
  19294. var _xcb_req225 = Txcb_protocol_request_t{
  19295. Fcount: uint32(2),
  19296. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19297. Fisvoid: uint8(1),
  19298. }
  19299. func Xxcb_get_screen_saver(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19300. bp := tls.Alloc(48)
  19301. defer tls.Free(48)
  19302. var xcb_ret Txcb_get_screen_saver_cookie_t
  19303. var _ /* xcb_out at bp+32 */ Txcb_get_screen_saver_request_t
  19304. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19305. _ = xcb_ret
  19306. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19307. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19308. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19309. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19311. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req226)))
  19312. return xcb_ret
  19313. }
  19314. var _xcb_req226 = Txcb_protocol_request_t{
  19315. Fcount: uint32(2),
  19316. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19317. }
  19318. func Xxcb_get_screen_saver_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19319. bp := tls.Alloc(48)
  19320. defer tls.Free(48)
  19321. var xcb_ret Txcb_get_screen_saver_cookie_t
  19322. var _ /* xcb_out at bp+32 */ Txcb_get_screen_saver_request_t
  19323. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19324. _ = xcb_ret
  19325. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19326. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19327. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19328. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19329. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19330. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req227)))
  19331. return xcb_ret
  19332. }
  19333. var _xcb_req227 = Txcb_protocol_request_t{
  19334. Fcount: uint32(2),
  19335. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19336. }
  19337. func Xxcb_get_screen_saver_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_screen_saver_cookie_t, e uintptr) (r uintptr) {
  19338. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19339. }
  19340. func Xxcb_change_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19341. var _aux, xcb_tmp uintptr
  19342. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19343. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19344. xcb_tmp = _buffer
  19345. _aux = _buffer
  19346. xcb_buffer_len = uint32(0)
  19347. xcb_block_len = uint32(0)
  19348. xcb_pad = uint32(0)
  19349. xcb_align_to = uint32(0)
  19350. xcb_block_len += uint32(8)
  19351. xcb_tmp += uintptr(xcb_block_len)
  19352. xcb_buffer_len += xcb_block_len
  19353. xcb_block_len = uint32(0)
  19354. /* address */
  19355. xcb_block_len += uint32((*Txcb_change_hosts_request_t)(unsafe.Pointer(_aux)).Faddress_len) * uint32(1)
  19356. xcb_tmp += uintptr(xcb_block_len)
  19357. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  19358. /* insert padding */
  19359. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19360. xcb_buffer_len += xcb_block_len + xcb_pad
  19361. if uint32(0) != xcb_pad {
  19362. xcb_tmp += uintptr(xcb_pad)
  19363. xcb_pad = uint32(0)
  19364. }
  19365. xcb_block_len = uint32(0)
  19366. return libc.Int32FromUint32(xcb_buffer_len)
  19367. }
  19368. 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) {
  19369. bp := tls.Alloc(64)
  19370. defer tls.Free(64)
  19371. var xcb_ret Txcb_void_cookie_t
  19372. var _ /* xcb_out at bp+48 */ Txcb_change_hosts_request_t
  19373. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19374. _ = xcb_ret
  19375. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Fmode = mode
  19376. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Ffamily = family
  19377. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  19378. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Faddress_len = address_len
  19379. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  19380. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  19381. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19382. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19383. /* uint8_t address */
  19384. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19385. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(address_len) * uint32(1)
  19386. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19387. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  19388. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req228)))
  19389. return xcb_ret
  19390. }
  19391. var _xcb_req228 = Txcb_protocol_request_t{
  19392. Fcount: uint32(4),
  19393. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19394. Fisvoid: uint8(1),
  19395. }
  19396. 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) {
  19397. bp := tls.Alloc(64)
  19398. defer tls.Free(64)
  19399. var xcb_ret Txcb_void_cookie_t
  19400. var _ /* xcb_out at bp+48 */ Txcb_change_hosts_request_t
  19401. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19402. _ = xcb_ret
  19403. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Fmode = mode
  19404. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Ffamily = family
  19405. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  19406. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 48))).Faddress_len = address_len
  19407. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  19408. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  19409. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19410. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19411. /* uint8_t address */
  19412. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19413. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(address_len) * uint32(1)
  19414. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19415. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  19416. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req229)))
  19417. return xcb_ret
  19418. }
  19419. var _xcb_req229 = Txcb_protocol_request_t{
  19420. Fcount: uint32(4),
  19421. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19422. Fisvoid: uint8(1),
  19423. }
  19424. func Xxcb_change_hosts_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19425. return R + libc.UintptrFromInt32(1)*8
  19426. }
  19427. func Xxcb_change_hosts_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19428. return libc.Int32FromUint16((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19429. }
  19430. func Xxcb_change_hosts_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19431. var i Txcb_generic_iterator_t
  19432. _ = i
  19433. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19434. i.Frem = 0
  19435. i.Findex = int32(i.Fdata) - int32(R)
  19436. return i
  19437. }
  19438. func Xxcb_host_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19439. var _aux, xcb_tmp uintptr
  19440. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19441. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19442. xcb_tmp = _buffer
  19443. _aux = _buffer
  19444. xcb_buffer_len = uint32(0)
  19445. xcb_block_len = uint32(0)
  19446. xcb_pad = uint32(0)
  19447. xcb_align_to = uint32(0)
  19448. xcb_block_len += uint32(4)
  19449. xcb_tmp += uintptr(xcb_block_len)
  19450. xcb_buffer_len += xcb_block_len
  19451. xcb_block_len = uint32(0)
  19452. /* address */
  19453. xcb_block_len += uint32((*Txcb_host_t)(unsafe.Pointer(_aux)).Faddress_len) * uint32(1)
  19454. xcb_tmp += uintptr(xcb_block_len)
  19455. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  19456. xcb_align_to = uint32(4)
  19457. /* insert padding */
  19458. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19459. xcb_buffer_len += xcb_block_len + xcb_pad
  19460. if uint32(0) != xcb_pad {
  19461. xcb_tmp += uintptr(xcb_pad)
  19462. xcb_pad = uint32(0)
  19463. }
  19464. xcb_block_len = uint32(0)
  19465. /* insert padding */
  19466. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19467. xcb_buffer_len += xcb_block_len + xcb_pad
  19468. if uint32(0) != xcb_pad {
  19469. xcb_tmp += uintptr(xcb_pad)
  19470. xcb_pad = uint32(0)
  19471. }
  19472. xcb_block_len = uint32(0)
  19473. return libc.Int32FromUint32(xcb_buffer_len)
  19474. }
  19475. func Xxcb_host_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19476. return R + libc.UintptrFromInt32(1)*4
  19477. }
  19478. func Xxcb_host_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19479. return libc.Int32FromUint16((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19480. }
  19481. func Xxcb_host_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19482. var i Txcb_generic_iterator_t
  19483. _ = i
  19484. i.Fdata = R + libc.UintptrFromInt32(1)*4 + uintptr((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19485. i.Frem = 0
  19486. i.Findex = int32(i.Fdata) - int32(R)
  19487. return i
  19488. }
  19489. func Xxcb_host_next(tls *libc.TLS, i uintptr) {
  19490. var R uintptr
  19491. var child Txcb_generic_iterator_t
  19492. _, _ = R, child
  19493. R = (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata
  19494. child.Fdata = R + uintptr(Xxcb_host_sizeof(tls, R))
  19495. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Findex = int32(child.Fdata) - int32((*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata)
  19496. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Frem--
  19497. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  19498. }
  19499. func Xxcb_host_end(tls *libc.TLS, _i Txcb_host_iterator_t) (r Txcb_generic_iterator_t) {
  19500. bp := tls.Alloc(16)
  19501. defer tls.Free(16)
  19502. *(*Txcb_host_iterator_t)(unsafe.Pointer(bp)) = _i
  19503. var ret Txcb_generic_iterator_t
  19504. _ = ret
  19505. for (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  19506. Xxcb_host_next(tls, bp)
  19507. }
  19508. ret.Fdata = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Fdata
  19509. ret.Frem = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem
  19510. ret.Findex = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Findex
  19511. return ret
  19512. }
  19513. func Xxcb_list_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19514. var _aux, xcb_tmp uintptr
  19515. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  19516. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  19517. xcb_tmp = _buffer
  19518. _aux = _buffer
  19519. xcb_buffer_len = uint32(0)
  19520. xcb_block_len = uint32(0)
  19521. xcb_pad = uint32(0)
  19522. xcb_align_to = uint32(0)
  19523. xcb_block_len += uint32(32)
  19524. xcb_tmp += uintptr(xcb_block_len)
  19525. xcb_buffer_len += xcb_block_len
  19526. xcb_block_len = uint32(0)
  19527. /* hosts */
  19528. i = uint32(0)
  19529. for {
  19530. if !(i < uint32((*Txcb_list_hosts_reply_t)(unsafe.Pointer(_aux)).Fhosts_len)) {
  19531. break
  19532. }
  19533. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_host_sizeof(tls, xcb_tmp))
  19534. xcb_block_len += xcb_tmp_len
  19535. xcb_tmp += uintptr(xcb_tmp_len)
  19536. goto _1
  19537. _1:
  19538. ;
  19539. i++
  19540. }
  19541. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 2)
  19542. /* insert padding */
  19543. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19544. xcb_buffer_len += xcb_block_len + xcb_pad
  19545. if uint32(0) != xcb_pad {
  19546. xcb_tmp += uintptr(xcb_pad)
  19547. xcb_pad = uint32(0)
  19548. }
  19549. xcb_block_len = uint32(0)
  19550. return libc.Int32FromUint32(xcb_buffer_len)
  19551. }
  19552. func Xxcb_list_hosts(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19553. bp := tls.Alloc(48)
  19554. defer tls.Free(48)
  19555. var xcb_ret Txcb_list_hosts_cookie_t
  19556. var _ /* xcb_out at bp+32 */ Txcb_list_hosts_request_t
  19557. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19558. _ = xcb_ret
  19559. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19560. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19561. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19562. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19563. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19564. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req230)))
  19565. return xcb_ret
  19566. }
  19567. var _xcb_req230 = Txcb_protocol_request_t{
  19568. Fcount: uint32(2),
  19569. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19570. }
  19571. func Xxcb_list_hosts_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19572. bp := tls.Alloc(48)
  19573. defer tls.Free(48)
  19574. var xcb_ret Txcb_list_hosts_cookie_t
  19575. var _ /* xcb_out at bp+32 */ Txcb_list_hosts_request_t
  19576. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19577. _ = xcb_ret
  19578. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19579. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19580. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19581. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19582. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19583. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req231)))
  19584. return xcb_ret
  19585. }
  19586. var _xcb_req231 = Txcb_protocol_request_t{
  19587. Fcount: uint32(2),
  19588. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19589. }
  19590. func Xxcb_list_hosts_hosts_length(tls *libc.TLS, R uintptr) (r int32) {
  19591. return libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19592. }
  19593. func Xxcb_list_hosts_hosts_iterator(tls *libc.TLS, R uintptr) (r Txcb_host_iterator_t) {
  19594. var i Txcb_host_iterator_t
  19595. _ = i
  19596. i.Fdata = R + libc.UintptrFromInt32(1)*32
  19597. i.Frem = libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19598. i.Findex = int32(i.Fdata) - int32(R)
  19599. return i
  19600. }
  19601. func Xxcb_list_hosts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_hosts_cookie_t, e uintptr) (r uintptr) {
  19602. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19603. }
  19604. func Xxcb_set_access_control_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19605. bp := tls.Alloc(48)
  19606. defer tls.Free(48)
  19607. var xcb_ret Txcb_void_cookie_t
  19608. var _ /* xcb_out at bp+32 */ Txcb_set_access_control_request_t
  19609. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19610. _ = xcb_ret
  19611. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  19612. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19613. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19614. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19615. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19616. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req232)))
  19617. return xcb_ret
  19618. }
  19619. var _xcb_req232 = Txcb_protocol_request_t{
  19620. Fcount: uint32(2),
  19621. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19622. Fisvoid: uint8(1),
  19623. }
  19624. func Xxcb_set_access_control(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19625. bp := tls.Alloc(48)
  19626. defer tls.Free(48)
  19627. var xcb_ret Txcb_void_cookie_t
  19628. var _ /* xcb_out at bp+32 */ Txcb_set_access_control_request_t
  19629. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19630. _ = xcb_ret
  19631. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  19632. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19633. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19634. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19635. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19636. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req233)))
  19637. return xcb_ret
  19638. }
  19639. var _xcb_req233 = Txcb_protocol_request_t{
  19640. Fcount: uint32(2),
  19641. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19642. Fisvoid: uint8(1),
  19643. }
  19644. func Xxcb_set_close_down_mode_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19645. bp := tls.Alloc(48)
  19646. defer tls.Free(48)
  19647. var xcb_ret Txcb_void_cookie_t
  19648. var _ /* xcb_out at bp+32 */ Txcb_set_close_down_mode_request_t
  19649. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19650. _ = xcb_ret
  19651. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  19652. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19653. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19654. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19655. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19656. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req234)))
  19657. return xcb_ret
  19658. }
  19659. var _xcb_req234 = Txcb_protocol_request_t{
  19660. Fcount: uint32(2),
  19661. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19662. Fisvoid: uint8(1),
  19663. }
  19664. func Xxcb_set_close_down_mode(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19665. bp := tls.Alloc(48)
  19666. defer tls.Free(48)
  19667. var xcb_ret Txcb_void_cookie_t
  19668. var _ /* xcb_out at bp+32 */ Txcb_set_close_down_mode_request_t
  19669. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19670. _ = xcb_ret
  19671. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  19672. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19673. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19674. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19675. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19676. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req235)))
  19677. return xcb_ret
  19678. }
  19679. var _xcb_req235 = Txcb_protocol_request_t{
  19680. Fcount: uint32(2),
  19681. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19682. Fisvoid: uint8(1),
  19683. }
  19684. func Xxcb_kill_client_checked(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19685. bp := tls.Alloc(48)
  19686. defer tls.Free(48)
  19687. var xcb_ret Txcb_void_cookie_t
  19688. var _ /* xcb_out at bp+32 */ Txcb_kill_client_request_t
  19689. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19690. _ = xcb_ret
  19691. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19692. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 32))).Fresource = resource
  19693. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19694. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  19695. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19696. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19697. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req236)))
  19698. return xcb_ret
  19699. }
  19700. var _xcb_req236 = Txcb_protocol_request_t{
  19701. Fcount: uint32(2),
  19702. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19703. Fisvoid: uint8(1),
  19704. }
  19705. func Xxcb_kill_client(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19706. bp := tls.Alloc(48)
  19707. defer tls.Free(48)
  19708. var xcb_ret Txcb_void_cookie_t
  19709. var _ /* xcb_out at bp+32 */ Txcb_kill_client_request_t
  19710. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19711. _ = xcb_ret
  19712. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19713. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 32))).Fresource = resource
  19714. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19715. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  19716. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19717. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19718. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req237)))
  19719. return xcb_ret
  19720. }
  19721. var _xcb_req237 = Txcb_protocol_request_t{
  19722. Fcount: uint32(2),
  19723. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19724. Fisvoid: uint8(1),
  19725. }
  19726. func Xxcb_rotate_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19727. var _aux, xcb_tmp uintptr
  19728. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19729. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19730. xcb_tmp = _buffer
  19731. _aux = _buffer
  19732. xcb_buffer_len = uint32(0)
  19733. xcb_block_len = uint32(0)
  19734. xcb_pad = uint32(0)
  19735. xcb_align_to = uint32(0)
  19736. xcb_block_len += uint32(12)
  19737. xcb_tmp += uintptr(xcb_block_len)
  19738. xcb_buffer_len += xcb_block_len
  19739. xcb_block_len = uint32(0)
  19740. /* atoms */
  19741. xcb_block_len += uint32((*Txcb_rotate_properties_request_t)(unsafe.Pointer(_aux)).Fatoms_len) * uint32(4)
  19742. xcb_tmp += uintptr(xcb_block_len)
  19743. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  19744. /* insert padding */
  19745. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19746. xcb_buffer_len += xcb_block_len + xcb_pad
  19747. if uint32(0) != xcb_pad {
  19748. xcb_tmp += uintptr(xcb_pad)
  19749. xcb_pad = uint32(0)
  19750. }
  19751. xcb_block_len = uint32(0)
  19752. return libc.Int32FromUint32(xcb_buffer_len)
  19753. }
  19754. 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) {
  19755. bp := tls.Alloc(64)
  19756. defer tls.Free(64)
  19757. var xcb_ret Txcb_void_cookie_t
  19758. var _ /* xcb_out at bp+48 */ Txcb_rotate_properties_request_t
  19759. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19760. _ = xcb_ret
  19761. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  19762. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fwindow = window
  19763. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fatoms_len = atoms_len
  19764. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fdelta = delta
  19765. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  19766. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  19767. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19768. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19769. /* xcb_atom_t atoms */
  19770. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19771. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(atoms_len) * uint32(4)
  19772. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19773. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  19774. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req238)))
  19775. return xcb_ret
  19776. }
  19777. var _xcb_req238 = Txcb_protocol_request_t{
  19778. Fcount: uint32(4),
  19779. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19780. Fisvoid: uint8(1),
  19781. }
  19782. 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) {
  19783. bp := tls.Alloc(64)
  19784. defer tls.Free(64)
  19785. var xcb_ret Txcb_void_cookie_t
  19786. var _ /* xcb_out at bp+48 */ Txcb_rotate_properties_request_t
  19787. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19788. _ = xcb_ret
  19789. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fpad0 = uint8(0)
  19790. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fwindow = window
  19791. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fatoms_len = atoms_len
  19792. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 48))).Fdelta = delta
  19793. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  19794. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(12)
  19795. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19797. /* xcb_atom_t atoms */
  19798. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19799. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(atoms_len) * uint32(4)
  19800. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19801. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  19802. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req239)))
  19803. return xcb_ret
  19804. }
  19805. var _xcb_req239 = Txcb_protocol_request_t{
  19806. Fcount: uint32(4),
  19807. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19808. Fisvoid: uint8(1),
  19809. }
  19810. func Xxcb_rotate_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  19811. return R + libc.UintptrFromInt32(1)*12
  19812. }
  19813. func Xxcb_rotate_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  19814. return libc.Int32FromUint16((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)
  19815. }
  19816. func Xxcb_rotate_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19817. var i Txcb_generic_iterator_t
  19818. _ = i
  19819. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)*4
  19820. i.Frem = 0
  19821. i.Findex = int32(i.Fdata) - int32(R)
  19822. return i
  19823. }
  19824. func Xxcb_force_screen_saver_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19825. bp := tls.Alloc(48)
  19826. defer tls.Free(48)
  19827. var xcb_ret Txcb_void_cookie_t
  19828. var _ /* xcb_out at bp+32 */ Txcb_force_screen_saver_request_t
  19829. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19830. _ = xcb_ret
  19831. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  19832. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19833. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19834. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19835. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19836. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req240)))
  19837. return xcb_ret
  19838. }
  19839. var _xcb_req240 = Txcb_protocol_request_t{
  19840. Fcount: uint32(2),
  19841. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19842. Fisvoid: uint8(1),
  19843. }
  19844. func Xxcb_force_screen_saver(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19845. bp := tls.Alloc(48)
  19846. defer tls.Free(48)
  19847. var xcb_ret Txcb_void_cookie_t
  19848. var _ /* xcb_out at bp+32 */ Txcb_force_screen_saver_request_t
  19849. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19850. _ = xcb_ret
  19851. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 32))).Fmode = mode
  19852. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19853. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19854. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19855. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19856. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req241)))
  19857. return xcb_ret
  19858. }
  19859. var _xcb_req241 = Txcb_protocol_request_t{
  19860. Fcount: uint32(2),
  19861. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19862. Fisvoid: uint8(1),
  19863. }
  19864. func Xxcb_set_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(4)
  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((*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(_aux)).Fmap_len) * uint32(1)
  19880. xcb_tmp += uintptr(xcb_block_len)
  19881. xcb_align_to = uint32(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_set_pointer_mapping(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19893. bp := tls.Alloc(64)
  19894. defer tls.Free(64)
  19895. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19896. var _ /* xcb_out at bp+48 */ Txcb_set_pointer_mapping_request_t
  19897. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19898. _ = xcb_ret
  19899. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 48))).Fmap_len = map_len
  19900. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  19901. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19902. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19903. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19904. /* uint8_t map */
  19905. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19906. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(map_len) * uint32(1)
  19907. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19908. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  19909. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req242)))
  19910. return xcb_ret
  19911. }
  19912. var _xcb_req242 = Txcb_protocol_request_t{
  19913. Fcount: uint32(4),
  19914. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19915. }
  19916. func Xxcb_set_pointer_mapping_unchecked(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19917. bp := tls.Alloc(64)
  19918. defer tls.Free(64)
  19919. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19920. var _ /* xcb_out at bp+48 */ Txcb_set_pointer_mapping_request_t
  19921. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19922. _ = xcb_ret
  19923. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 48))).Fmap_len = map_len
  19924. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  19925. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19926. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19927. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19928. /* uint8_t map */
  19929. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19930. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint32(map_len) * uint32(1)
  19931. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19932. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  19933. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req243)))
  19934. return xcb_ret
  19935. }
  19936. var _xcb_req243 = Txcb_protocol_request_t{
  19937. Fcount: uint32(4),
  19938. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19939. }
  19940. func Xxcb_set_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19941. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19942. }
  19943. func Xxcb_get_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19944. var _aux, xcb_tmp uintptr
  19945. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19946. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19947. xcb_tmp = _buffer
  19948. _aux = _buffer
  19949. xcb_buffer_len = uint32(0)
  19950. xcb_block_len = uint32(0)
  19951. xcb_pad = uint32(0)
  19952. xcb_align_to = uint32(0)
  19953. xcb_block_len += uint32(32)
  19954. xcb_tmp += uintptr(xcb_block_len)
  19955. xcb_buffer_len += xcb_block_len
  19956. xcb_block_len = uint32(0)
  19957. /* map */
  19958. xcb_block_len += uint32((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(_aux)).Fmap_len) * uint32(1)
  19959. xcb_tmp += uintptr(xcb_block_len)
  19960. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  19961. /* insert padding */
  19962. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19963. xcb_buffer_len += xcb_block_len + xcb_pad
  19964. if uint32(0) != xcb_pad {
  19965. xcb_tmp += uintptr(xcb_pad)
  19966. xcb_pad = uint32(0)
  19967. }
  19968. xcb_block_len = uint32(0)
  19969. return libc.Int32FromUint32(xcb_buffer_len)
  19970. }
  19971. func Xxcb_get_pointer_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19972. bp := tls.Alloc(48)
  19973. defer tls.Free(48)
  19974. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19975. var _ /* xcb_out at bp+32 */ Txcb_get_pointer_mapping_request_t
  19976. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19977. _ = xcb_ret
  19978. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19979. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19980. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  19981. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19982. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  19983. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req244)))
  19984. return xcb_ret
  19985. }
  19986. var _xcb_req244 = Txcb_protocol_request_t{
  19987. Fcount: uint32(2),
  19988. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19989. }
  19990. func Xxcb_get_pointer_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19991. bp := tls.Alloc(48)
  19992. defer tls.Free(48)
  19993. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19994. var _ /* xcb_out at bp+32 */ Txcb_get_pointer_mapping_request_t
  19995. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19996. _ = xcb_ret
  19997. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  19998. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  19999. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20000. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20001. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20002. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req245)))
  20003. return xcb_ret
  20004. }
  20005. var _xcb_req245 = Txcb_protocol_request_t{
  20006. Fcount: uint32(2),
  20007. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  20008. }
  20009. func Xxcb_get_pointer_mapping_map(tls *libc.TLS, R uintptr) (r uintptr) {
  20010. return R + libc.UintptrFromInt32(1)*32
  20011. }
  20012. func Xxcb_get_pointer_mapping_map_length(tls *libc.TLS, R uintptr) (r int32) {
  20013. return libc.Int32FromUint8((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  20014. }
  20015. func Xxcb_get_pointer_mapping_map_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20016. var i Txcb_generic_iterator_t
  20017. _ = i
  20018. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  20019. i.Frem = 0
  20020. i.Findex = int32(i.Fdata) - int32(R)
  20021. return i
  20022. }
  20023. func Xxcb_get_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  20024. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20025. }
  20026. func Xxcb_set_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(4)
  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 += libc.Uint32FromInt32(libc.Int32FromUint8((*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(_aux)).Fkeycodes_per_modifier)*libc.Int32FromInt32(8)) * uint32(1)
  20042. xcb_tmp += uintptr(xcb_block_len)
  20043. xcb_align_to = uint32(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_set_modifier_mapping(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
  20055. bp := tls.Alloc(64)
  20056. defer tls.Free(64)
  20057. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20058. var _ /* xcb_out at bp+48 */ Txcb_set_modifier_mapping_request_t
  20059. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20060. _ = xcb_ret
  20061. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 48))).Fkeycodes_per_modifier = keycodes_per_modifier
  20062. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  20063. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20064. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20065. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20066. /* xcb_keycode_t keycodes */
  20067. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20068. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint32(1)
  20069. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20070. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  20071. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req246)))
  20072. return xcb_ret
  20073. }
  20074. var _xcb_req246 = Txcb_protocol_request_t{
  20075. Fcount: uint32(4),
  20076. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20077. }
  20078. 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) {
  20079. bp := tls.Alloc(64)
  20080. defer tls.Free(64)
  20081. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20082. var _ /* xcb_out at bp+48 */ Txcb_set_modifier_mapping_request_t
  20083. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20084. _ = xcb_ret
  20085. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 48))).Fkeycodes_per_modifier = keycodes_per_modifier
  20086. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 48
  20087. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20088. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20089. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20090. /* xcb_keycode_t keycodes */
  20091. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20092. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint32FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint32(1)
  20093. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20094. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint32(3)
  20095. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req247)))
  20096. return xcb_ret
  20097. }
  20098. var _xcb_req247 = Txcb_protocol_request_t{
  20099. Fcount: uint32(4),
  20100. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20101. }
  20102. func Xxcb_set_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20103. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20104. }
  20105. func Xxcb_get_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20106. var _aux, xcb_tmp uintptr
  20107. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20108. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20109. xcb_tmp = _buffer
  20110. _aux = _buffer
  20111. xcb_buffer_len = uint32(0)
  20112. xcb_block_len = uint32(0)
  20113. xcb_pad = uint32(0)
  20114. xcb_align_to = uint32(0)
  20115. xcb_block_len += uint32(32)
  20116. xcb_tmp += uintptr(xcb_block_len)
  20117. xcb_buffer_len += xcb_block_len
  20118. xcb_block_len = uint32(0)
  20119. /* keycodes */
  20120. xcb_block_len += libc.Uint32FromInt32(libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(_aux)).Fkeycodes_per_modifier)*libc.Int32FromInt32(8)) * uint32(1)
  20121. xcb_tmp += uintptr(xcb_block_len)
  20122. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 1)
  20123. /* insert padding */
  20124. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20125. xcb_buffer_len += xcb_block_len + xcb_pad
  20126. if uint32(0) != xcb_pad {
  20127. xcb_tmp += uintptr(xcb_pad)
  20128. xcb_pad = uint32(0)
  20129. }
  20130. xcb_block_len = uint32(0)
  20131. return libc.Int32FromUint32(xcb_buffer_len)
  20132. }
  20133. func Xxcb_get_modifier_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20134. bp := tls.Alloc(48)
  20135. defer tls.Free(48)
  20136. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20137. var _ /* xcb_out at bp+32 */ Txcb_get_modifier_mapping_request_t
  20138. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20139. _ = xcb_ret
  20140. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  20141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20143. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20144. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20145. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req248)))
  20146. return xcb_ret
  20147. }
  20148. var _xcb_req248 = Txcb_protocol_request_t{
  20149. Fcount: uint32(2),
  20150. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20151. }
  20152. func Xxcb_get_modifier_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20153. bp := tls.Alloc(48)
  20154. defer tls.Free(48)
  20155. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20156. var _ /* xcb_out at bp+32 */ Txcb_get_modifier_mapping_request_t
  20157. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20158. _ = xcb_ret
  20159. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  20160. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20164. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req249)))
  20165. return xcb_ret
  20166. }
  20167. var _xcb_req249 = Txcb_protocol_request_t{
  20168. Fcount: uint32(2),
  20169. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20170. }
  20171. func Xxcb_get_modifier_mapping_keycodes(tls *libc.TLS, R uintptr) (r uintptr) {
  20172. return R + libc.UintptrFromInt32(1)*32
  20173. }
  20174. func Xxcb_get_modifier_mapping_keycodes_length(tls *libc.TLS, R uintptr) (r int32) {
  20175. return libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier) * int32(8)
  20176. }
  20177. func Xxcb_get_modifier_mapping_keycodes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20178. var i Txcb_generic_iterator_t
  20179. _ = i
  20180. 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))
  20181. i.Frem = 0
  20182. i.Findex = int32(i.Fdata) - int32(R)
  20183. return i
  20184. }
  20185. func Xxcb_get_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20186. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20187. }
  20188. func Xxcb_no_operation_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20189. bp := tls.Alloc(48)
  20190. defer tls.Free(48)
  20191. var xcb_ret Txcb_void_cookie_t
  20192. var _ /* xcb_out at bp+32 */ Txcb_no_operation_request_t
  20193. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20194. _ = xcb_ret
  20195. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  20196. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20197. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20200. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req250)))
  20201. return xcb_ret
  20202. }
  20203. var _xcb_req250 = Txcb_protocol_request_t{
  20204. Fcount: uint32(2),
  20205. Fopcode: uint8(m_XCB_NO_OPERATION),
  20206. Fisvoid: uint8(1),
  20207. }
  20208. func Xxcb_no_operation(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20209. bp := tls.Alloc(48)
  20210. defer tls.Free(48)
  20211. var xcb_ret Txcb_void_cookie_t
  20212. var _ /* xcb_out at bp+32 */ Txcb_no_operation_request_t
  20213. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20214. _ = xcb_ret
  20215. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 32))).Fpad0 = uint8(0)
  20216. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20217. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20220. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req251)))
  20221. return xcb_ret
  20222. }
  20223. var _xcb_req251 = Txcb_protocol_request_t{
  20224. Fcount: uint32(2),
  20225. Fopcode: uint8(m_XCB_NO_OPERATION),
  20226. Fisvoid: uint8(1),
  20227. }
  20228. func Xxcb_big_requests_enable(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20229. bp := tls.Alloc(48)
  20230. defer tls.Free(48)
  20231. var xcb_ret Txcb_big_requests_enable_cookie_t
  20232. var _ /* xcb_out at bp+32 */ Txcb_big_requests_enable_request_t
  20233. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20234. _ = xcb_ret
  20235. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20236. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20239. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req252)))
  20240. return xcb_ret
  20241. }
  20242. var _xcb_req252 = Txcb_protocol_request_t{
  20243. Fcount: uint32(2),
  20244. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20245. }
  20246. func Xxcb_big_requests_enable_unchecked(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20247. bp := tls.Alloc(48)
  20248. defer tls.Free(48)
  20249. var xcb_ret Txcb_big_requests_enable_cookie_t
  20250. var _ /* xcb_out at bp+32 */ Txcb_big_requests_enable_request_t
  20251. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20252. _ = xcb_ret
  20253. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20254. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20255. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20256. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20257. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req253)))
  20258. return xcb_ret
  20259. }
  20260. var _xcb_req253 = Txcb_protocol_request_t{
  20261. Fcount: uint32(2),
  20262. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20263. }
  20264. func Xxcb_big_requests_enable_reply(tls *libc.TLS, c uintptr, cookie Txcb_big_requests_enable_cookie_t, e uintptr) (r uintptr) {
  20265. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20266. }
  20267. 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) {
  20268. bp := tls.Alloc(48)
  20269. defer tls.Free(48)
  20270. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20271. var _ /* xcb_out at bp+32 */ Txcb_xc_misc_get_version_request_t
  20272. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20273. _ = xcb_ret
  20274. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 32))).Fclient_major_version = client_major_version
  20275. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 32))).Fclient_minor_version = client_minor_version
  20276. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  20278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20280. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req254)))
  20281. return xcb_ret
  20282. }
  20283. var _xcb_req254 = Txcb_protocol_request_t{
  20284. Fcount: uint32(2),
  20285. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20286. }
  20287. 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) {
  20288. bp := tls.Alloc(48)
  20289. defer tls.Free(48)
  20290. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20291. var _ /* xcb_out at bp+32 */ Txcb_xc_misc_get_version_request_t
  20292. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20293. _ = xcb_ret
  20294. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 32))).Fclient_major_version = client_major_version
  20295. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 32))).Fclient_minor_version = client_minor_version
  20296. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  20298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20300. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req255)))
  20301. return xcb_ret
  20302. }
  20303. var _xcb_req255 = Txcb_protocol_request_t{
  20304. Fcount: uint32(2),
  20305. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20306. }
  20307. func Xxcb_xc_misc_get_version_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_version_cookie_t, e uintptr) (r uintptr) {
  20308. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20309. }
  20310. func Xxcb_xc_misc_get_xid_range(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20311. bp := tls.Alloc(48)
  20312. defer tls.Free(48)
  20313. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20314. var _ /* xcb_out at bp+32 */ Txcb_xc_misc_get_xid_range_request_t
  20315. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20316. _ = xcb_ret
  20317. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20318. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20320. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20321. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req256)))
  20322. return xcb_ret
  20323. }
  20324. var _xcb_req256 = Txcb_protocol_request_t{
  20325. Fcount: uint32(2),
  20326. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20327. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20328. }
  20329. func Xxcb_xc_misc_get_xid_range_unchecked(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20330. bp := tls.Alloc(48)
  20331. defer tls.Free(48)
  20332. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20333. var _ /* xcb_out at bp+32 */ Txcb_xc_misc_get_xid_range_request_t
  20334. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20335. _ = xcb_ret
  20336. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20337. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(4)
  20338. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20339. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20340. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req257)))
  20341. return xcb_ret
  20342. }
  20343. var _xcb_req257 = Txcb_protocol_request_t{
  20344. Fcount: uint32(2),
  20345. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20346. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20347. }
  20348. 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) {
  20349. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20350. }
  20351. func Xxcb_xc_misc_get_xid_list_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20352. var _aux, xcb_tmp uintptr
  20353. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20354. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20355. xcb_tmp = _buffer
  20356. _aux = _buffer
  20357. xcb_buffer_len = uint32(0)
  20358. xcb_block_len = uint32(0)
  20359. xcb_pad = uint32(0)
  20360. xcb_align_to = uint32(0)
  20361. xcb_block_len += uint32(32)
  20362. xcb_tmp += uintptr(xcb_block_len)
  20363. xcb_buffer_len += xcb_block_len
  20364. xcb_block_len = uint32(0)
  20365. /* ids */
  20366. xcb_block_len += (*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(_aux)).Fids_len * uint32(4)
  20367. xcb_tmp += uintptr(xcb_block_len)
  20368. xcb_align_to = uint32(libc.UintptrFromInt32(0) + 4)
  20369. /* insert padding */
  20370. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20371. xcb_buffer_len += xcb_block_len + xcb_pad
  20372. if uint32(0) != xcb_pad {
  20373. xcb_tmp += uintptr(xcb_pad)
  20374. xcb_pad = uint32(0)
  20375. }
  20376. xcb_block_len = uint32(0)
  20377. return libc.Int32FromUint32(xcb_buffer_len)
  20378. }
  20379. func Xxcb_xc_misc_get_xid_list(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
  20380. bp := tls.Alloc(48)
  20381. defer tls.Free(48)
  20382. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20383. var _ /* xcb_out at bp+32 */ Txcb_xc_misc_get_xid_list_request_t
  20384. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20385. _ = xcb_ret
  20386. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 32))).Fcount = count
  20387. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20388. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  20389. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20390. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20391. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req258)))
  20392. return xcb_ret
  20393. }
  20394. var _xcb_req258 = Txcb_protocol_request_t{
  20395. Fcount: uint32(2),
  20396. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20397. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20398. }
  20399. 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) {
  20400. bp := tls.Alloc(48)
  20401. defer tls.Free(48)
  20402. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20403. var _ /* xcb_out at bp+32 */ Txcb_xc_misc_get_xid_list_request_t
  20404. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20405. _ = xcb_ret
  20406. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 32))).Fcount = count
  20407. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 32
  20408. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint32(8)
  20409. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint32(3)
  20411. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*8, uintptr(unsafe.Pointer(&_xcb_req259)))
  20412. return xcb_ret
  20413. }
  20414. var _xcb_req259 = Txcb_protocol_request_t{
  20415. Fcount: uint32(2),
  20416. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20417. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20418. }
  20419. func Xxcb_xc_misc_get_xid_list_ids(tls *libc.TLS, R uintptr) (r uintptr) {
  20420. return R + libc.UintptrFromInt32(1)*32
  20421. }
  20422. func Xxcb_xc_misc_get_xid_list_ids_length(tls *libc.TLS, R uintptr) (r int32) {
  20423. return libc.Int32FromUint32((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)
  20424. }
  20425. func Xxcb_xc_misc_get_xid_list_ids_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20426. var i Txcb_generic_iterator_t
  20427. _ = i
  20428. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)*4
  20429. i.Frem = 0
  20430. i.Findex = int32(i.Fdata) - int32(R)
  20431. return i
  20432. }
  20433. 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) {
  20434. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20435. }
  20436. func __ccgo_fp(f interface{}) uintptr {
  20437. type iface [2]uintptr
  20438. return (*iface)(unsafe.Pointer(&f))[1]
  20439. }
  20440. /**
  20441. * @}
  20442. */
  20443. var Xxcb_big_requests_id = Txcb_extension_t{
  20444. Fname: __ccgo_ts + 93,
  20445. }
  20446. /**
  20447. * @}
  20448. */
  20449. var Xxcb_xc_misc_id = Txcb_extension_t{
  20450. Fname: __ccgo_ts + 106,
  20451. }
  20452. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  20453. 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"