ccgo_linux_loong64.go 846 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300
  1. // Code generated for linux/loong64 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/cznic/src/modernc.org/builder/.exclude/modernc.org/libXau/include/linux/loong64 -I /home/cznic/src/modernc.org/builder/.exclude/modernc.org/libXdmcp/include/linux/loong64 -lXau -lXdmcp -o libxcb.go --package-name libxcb src/.libs/libxcb.a', DO NOT EDIT.
  2. //go:build linux && loong64
  3. package libxcb
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libXau"
  8. "modernc.org/libXdmcp"
  9. "modernc.org/libc"
  10. )
  11. var _ reflect.Type
  12. var _ unsafe.Pointer
  13. const m_AF_ALG = "PF_ALG"
  14. const m_AF_APPLETALK = "PF_APPLETALK"
  15. const m_AF_ASH = "PF_ASH"
  16. const m_AF_ATMPVC = "PF_ATMPVC"
  17. const m_AF_ATMSVC = "PF_ATMSVC"
  18. const m_AF_AX25 = "PF_AX25"
  19. const m_AF_BLUETOOTH = "PF_BLUETOOTH"
  20. const m_AF_BRIDGE = "PF_BRIDGE"
  21. const m_AF_CAIF = "PF_CAIF"
  22. const m_AF_CAN = "PF_CAN"
  23. const m_AF_DECnet = "PF_DECnet"
  24. const m_AF_ECONET = "PF_ECONET"
  25. const m_AF_FILE = "AF_LOCAL"
  26. const m_AF_IB = "PF_IB"
  27. const m_AF_IEEE802154 = "PF_IEEE802154"
  28. const m_AF_INET = "PF_INET"
  29. const m_AF_INET6 = "PF_INET6"
  30. const m_AF_IPX = "PF_IPX"
  31. const m_AF_IRDA = "PF_IRDA"
  32. const m_AF_ISDN = "PF_ISDN"
  33. const m_AF_IUCV = "PF_IUCV"
  34. const m_AF_KCM = "PF_KCM"
  35. const m_AF_KEY = "PF_KEY"
  36. const m_AF_LLC = "PF_LLC"
  37. const m_AF_LOCAL = "PF_LOCAL"
  38. const m_AF_MAX = "PF_MAX"
  39. const m_AF_MPLS = "PF_MPLS"
  40. const m_AF_NETBEUI = "PF_NETBEUI"
  41. const m_AF_NETLINK = "PF_NETLINK"
  42. const m_AF_NETROM = "PF_NETROM"
  43. const m_AF_NFC = "PF_NFC"
  44. const m_AF_PACKET = "PF_PACKET"
  45. const m_AF_PHONET = "PF_PHONET"
  46. const m_AF_PPPOX = "PF_PPPOX"
  47. const m_AF_QIPCRTR = "PF_QIPCRTR"
  48. const m_AF_RDS = "PF_RDS"
  49. const m_AF_ROSE = "PF_ROSE"
  50. const m_AF_ROUTE = "PF_ROUTE"
  51. const m_AF_RXRPC = "PF_RXRPC"
  52. const m_AF_SECURITY = "PF_SECURITY"
  53. const m_AF_SMC = "PF_SMC"
  54. const m_AF_SNA = "PF_SNA"
  55. const m_AF_TIPC = "PF_TIPC"
  56. const m_AF_UNIX = "AF_LOCAL"
  57. const m_AF_UNSPEC = "PF_UNSPEC"
  58. const m_AF_VSOCK = "PF_VSOCK"
  59. const m_AF_WANPIPE = "PF_WANPIPE"
  60. const m_AF_X25 = "PF_X25"
  61. const m_AF_XDP = "PF_XDP"
  62. const m_ARG_MAX = 131072
  63. const m_AT_EACCESS = 0x200
  64. const m_AT_EMPTY_PATH = 0x1000
  65. const m_AT_NO_AUTOMOUNT = 0x800
  66. const m_AT_RECURSIVE = 0x8000
  67. const m_AT_REMOVEDIR = 0x200
  68. const m_AT_STATX_DONT_SYNC = 0x4000
  69. const m_AT_STATX_FORCE_SYNC = 0x2000
  70. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  71. const m_AT_STATX_SYNC_TYPE = 0x6000
  72. const m_AT_SYMLINK_FOLLOW = 0x400
  73. const m_AT_SYMLINK_NOFOLLOW = 0x100
  74. const m_BC_BASE_MAX = 99
  75. const m_BC_DIM_MAX = 2048
  76. const m_BC_SCALE_MAX = 99
  77. const m_BC_STRING_MAX = 1000
  78. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  79. const m_BUFSIZ = 1024
  80. const m_BYTE_ORDER = "__BYTE_ORDER"
  81. const m_CHARCLASS_NAME_MAX = 14
  82. const m_CHAR_BIT = 8
  83. const m_CHAR_MAX = 255
  84. const m_CHAR_MIN = 0
  85. const m_CLOCKS_PER_SEC = 1000000
  86. const m_CLOCK_BOOTTIME = 7
  87. const m_CLOCK_BOOTTIME_ALARM = 9
  88. const m_CLOCK_MONOTONIC = 1
  89. const m_CLOCK_MONOTONIC_COARSE = 6
  90. const m_CLOCK_MONOTONIC_RAW = 4
  91. const m_CLOCK_PROCESS_CPUTIME_ID = 2
  92. const m_CLOCK_REALTIME = 0
  93. const m_CLOCK_REALTIME_ALARM = 8
  94. const m_CLOCK_REALTIME_COARSE = 5
  95. const m_CLOCK_SGI_CYCLE = 10
  96. const m_CLOCK_TAI = 11
  97. const m_CLOCK_THREAD_CPUTIME_ID = 3
  98. const m_CLONE_CHILD_CLEARTID = 0x00200000
  99. const m_CLONE_CHILD_SETTID = 0x01000000
  100. const m_CLONE_DETACHED = 0x00400000
  101. const m_CLONE_FILES = 0x00000400
  102. const m_CLONE_FS = 0x00000200
  103. const m_CLONE_IO = 0x80000000
  104. const m_CLONE_NEWCGROUP = 0x02000000
  105. const m_CLONE_NEWIPC = 0x08000000
  106. const m_CLONE_NEWNET = 0x40000000
  107. const m_CLONE_NEWNS = 0x00020000
  108. const m_CLONE_NEWPID = 0x20000000
  109. const m_CLONE_NEWTIME = 0x00000080
  110. const m_CLONE_NEWUSER = 0x10000000
  111. const m_CLONE_NEWUTS = 0x04000000
  112. const m_CLONE_PARENT = 0x00008000
  113. const m_CLONE_PARENT_SETTID = 0x00100000
  114. const m_CLONE_PIDFD = 0x00001000
  115. const m_CLONE_PTRACE = 0x00002000
  116. const m_CLONE_SETTLS = 0x00080000
  117. const m_CLONE_SIGHAND = 0x00000800
  118. const m_CLONE_SYSVSEM = 0x00040000
  119. const m_CLONE_THREAD = 0x00010000
  120. const m_CLONE_UNTRACED = 0x00800000
  121. const m_CLONE_VFORK = 0x00004000
  122. const m_CLONE_VM = 0x00000100
  123. const m_COLL_WEIGHTS_MAX = 2
  124. const m_CPU_SETSIZE = 1024
  125. const m_CSIGNAL = 0x000000ff
  126. const m_DELAYTIMER_MAX = 0x7fffffff
  127. const m_DN_ACCESS = 0x00000001
  128. const m_DN_ATTRIB = 0x00000020
  129. const m_DN_CREATE = 0x00000004
  130. const m_DN_DELETE = 0x00000008
  131. const m_DN_MODIFY = 0x00000002
  132. const m_DN_MULTISHOT = 0x80000000
  133. const m_DN_RENAME = 0x00000010
  134. const m_E2BIG = 7
  135. const m_EACCES = 13
  136. const m_EADDRINUSE = 98
  137. const m_EADDRNOTAVAIL = 99
  138. const m_EADV = 68
  139. const m_EAFNOSUPPORT = 97
  140. const m_EAGAIN = 11
  141. const m_EALREADY = 114
  142. const m_EBADE = 52
  143. const m_EBADF = 9
  144. const m_EBADFD = 77
  145. const m_EBADMSG = 74
  146. const m_EBADR = 53
  147. const m_EBADRQC = 56
  148. const m_EBADSLT = 57
  149. const m_EBFONT = 59
  150. const m_EBUSY = 16
  151. const m_ECANCELED = 125
  152. const m_ECHILD = 10
  153. const m_ECHRNG = 44
  154. const m_ECOMM = 70
  155. const m_ECONNABORTED = 103
  156. const m_ECONNREFUSED = 111
  157. const m_ECONNRESET = 104
  158. const m_EDEADLK = 35
  159. const m_EDEADLOCK = "EDEADLK"
  160. const m_EDESTADDRREQ = 89
  161. const m_EDOM = 33
  162. const m_EDOTDOT = 73
  163. const m_EDQUOT = 122
  164. const m_EEXIST = 17
  165. const m_EFAULT = 14
  166. const m_EFBIG = 27
  167. const m_EHOSTDOWN = 112
  168. const m_EHOSTUNREACH = 113
  169. const m_EHWPOISON = 133
  170. const m_EIDRM = 43
  171. const m_EILSEQ = 84
  172. const m_EINPROGRESS = 115
  173. const m_EINTR = 4
  174. const m_EINVAL = 22
  175. const m_EIO = 5
  176. const m_EISCONN = 106
  177. const m_EISDIR = 21
  178. const m_EISNAM = 120
  179. const m_EKEYEXPIRED = 127
  180. const m_EKEYREJECTED = 129
  181. const m_EKEYREVOKED = 128
  182. const m_EL2HLT = 51
  183. const m_EL2NSYNC = 45
  184. const m_EL3HLT = 46
  185. const m_EL3RST = 47
  186. const m_ELIBACC = 79
  187. const m_ELIBBAD = 80
  188. const m_ELIBEXEC = 83
  189. const m_ELIBMAX = 82
  190. const m_ELIBSCN = 81
  191. const m_ELNRNG = 48
  192. const m_ELOOP = 40
  193. const m_EMEDIUMTYPE = 124
  194. const m_EMFILE = 24
  195. const m_EMLINK = 31
  196. const m_EMSGSIZE = 90
  197. const m_EMULTIHOP = 72
  198. const m_ENAMETOOLONG = 36
  199. const m_ENAVAIL = 119
  200. const m_ENETDOWN = 100
  201. const m_ENETRESET = 102
  202. const m_ENETUNREACH = 101
  203. const m_ENFILE = 23
  204. const m_ENOANO = 55
  205. const m_ENOBUFS = 105
  206. const m_ENOCSI = 50
  207. const m_ENODATA = 61
  208. const m_ENODEV = 19
  209. const m_ENOENT = 2
  210. const m_ENOEXEC = 8
  211. const m_ENOKEY = 126
  212. const m_ENOLCK = 37
  213. const m_ENOLINK = 67
  214. const m_ENOMEDIUM = 123
  215. const m_ENOMEM = 12
  216. const m_ENOMSG = 42
  217. const m_ENONET = 64
  218. const m_ENOPKG = 65
  219. const m_ENOPROTOOPT = 92
  220. const m_ENOSPC = 28
  221. const m_ENOSR = 63
  222. const m_ENOSTR = 60
  223. const m_ENOSYS = 38
  224. const m_ENOTBLK = 15
  225. const m_ENOTCONN = 107
  226. const m_ENOTDIR = 20
  227. const m_ENOTEMPTY = 39
  228. const m_ENOTNAM = 118
  229. const m_ENOTRECOVERABLE = 131
  230. const m_ENOTSOCK = 88
  231. const m_ENOTSUP = "EOPNOTSUPP"
  232. const m_ENOTTY = 25
  233. const m_ENOTUNIQ = 76
  234. const m_ENXIO = 6
  235. const m_EOPNOTSUPP = 95
  236. const m_EOVERFLOW = 75
  237. const m_EOWNERDEAD = 130
  238. const m_EPERM = 1
  239. const m_EPFNOSUPPORT = 96
  240. const m_EPIPE = 32
  241. const m_EPROTO = 71
  242. const m_EPROTONOSUPPORT = 93
  243. const m_EPROTOTYPE = 91
  244. const m_ERANGE = 34
  245. const m_EREMCHG = 78
  246. const m_EREMOTE = 66
  247. const m_EREMOTEIO = 121
  248. const m_ERESTART = 85
  249. const m_ERFKILL = 132
  250. const m_EROFS = 30
  251. const m_ESHUTDOWN = 108
  252. const m_ESOCKTNOSUPPORT = 94
  253. const m_ESPIPE = 29
  254. const m_ESRCH = 3
  255. const m_ESRMNT = 69
  256. const m_ESTALE = 116
  257. const m_ESTRPIPE = 86
  258. const m_ETIME = 62
  259. const m_ETIMEDOUT = 110
  260. const m_ETOOMANYREFS = 109
  261. const m_ETXTBSY = 26
  262. const m_EUCLEAN = 117
  263. const m_EUNATCH = 49
  264. const m_EUSERS = 87
  265. const m_EWOULDBLOCK = "EAGAIN"
  266. const m_EXDEV = 18
  267. const m_EXFULL = 54
  268. const m_EXIT_FAILURE = 1
  269. const m_EXIT_SUCCESS = 0
  270. const m_EXPR_NEST_MAX = 32
  271. const m_FALLOC_FL_KEEP_SIZE = 1
  272. const m_FALLOC_FL_PUNCH_HOLE = 2
  273. const m_FAPPEND = "O_APPEND"
  274. const m_FASYNC = "O_ASYNC"
  275. const m_FD_CLOEXEC = 1
  276. const m_FD_SETSIZE = 1024
  277. const m_FFSYNC = "O_SYNC"
  278. const m_FILENAME_MAX = 4096
  279. const m_FILESIZEBITS = 64
  280. const m_FNDELAY = "O_NDELAY"
  281. const m_FNONBLOCK = "O_NONBLOCK"
  282. const m_FOPEN_MAX = 1000
  283. const m_F_ADD_SEALS = 1033
  284. const m_F_CANCELLK = 1029
  285. const m_F_DUPFD = 0
  286. const m_F_DUPFD_CLOEXEC = 1030
  287. const m_F_GETFD = 1
  288. const m_F_GETFL = 3
  289. const m_F_GETLEASE = 1025
  290. const m_F_GETLK = 5
  291. const m_F_GETOWN = 9
  292. const m_F_GETOWNER_UIDS = 17
  293. const m_F_GETOWN_EX = 16
  294. const m_F_GETPIPE_SZ = 1032
  295. const m_F_GETSIG = 11
  296. const m_F_GET_FILE_RW_HINT = 1037
  297. const m_F_GET_RW_HINT = 1035
  298. const m_F_GET_SEALS = 1034
  299. const m_F_LOCK = 1
  300. const m_F_NOTIFY = 1026
  301. const m_F_OFD_GETLK = 36
  302. const m_F_OFD_SETLK = 37
  303. const m_F_OFD_SETLKW = 38
  304. const m_F_OK = 0
  305. const m_F_OWNER_GID = 2
  306. const m_F_OWNER_PGRP = 2
  307. const m_F_OWNER_PID = 1
  308. const m_F_OWNER_TID = 0
  309. const m_F_RDLCK = 0
  310. const m_F_SEAL_FUTURE_WRITE = 0x0010
  311. const m_F_SEAL_GROW = 0x0004
  312. const m_F_SEAL_SEAL = 0x0001
  313. const m_F_SEAL_SHRINK = 0x0002
  314. const m_F_SEAL_WRITE = 0x0008
  315. const m_F_SETFD = 2
  316. const m_F_SETFL = 4
  317. const m_F_SETLEASE = 1024
  318. const m_F_SETLK = 6
  319. const m_F_SETLKW = 7
  320. const m_F_SETOWN = 8
  321. const m_F_SETOWN_EX = 15
  322. const m_F_SETPIPE_SZ = 1031
  323. const m_F_SETSIG = 10
  324. const m_F_SET_FILE_RW_HINT = 1038
  325. const m_F_SET_RW_HINT = 1036
  326. const m_F_TEST = 3
  327. const m_F_TLOCK = 2
  328. const m_F_ULOCK = 0
  329. const m_F_UNLCK = 2
  330. const m_F_WRLCK = 1
  331. const m_HASXDMAUTH = 1
  332. const m_HAVE_ABSTRACT_SOCKETS = 1
  333. const m_HAVE_CONFIG_H = 1
  334. const m_HAVE_DLFCN_H = 1
  335. const m_HAVE_GETADDRINFO = 1
  336. const m_HAVE_INTTYPES_H = 1
  337. const m_HAVE_MEMORY_H = 1
  338. const m_HAVE_SENDMSG = 1
  339. const m_HAVE_STDINT_H = 1
  340. const m_HAVE_STDLIB_H = 1
  341. const m_HAVE_STRINGS_H = 1
  342. const m_HAVE_STRING_H = 1
  343. const m_HAVE_SYS_STAT_H = 1
  344. const m_HAVE_SYS_TYPES_H = 1
  345. const m_HAVE_UNISTD_H = 1
  346. const m_HOST_NAME_MAX = 255
  347. const m_INET6_ADDRSTRLEN = 46
  348. const m_INET_ADDRSTRLEN = 16
  349. const m_INT16_MAX = 0x7fff
  350. const m_INT32_MAX = 0x7fffffff
  351. const m_INT64_MAX = 0x7fffffffffffffff
  352. const m_INT8_MAX = 0x7f
  353. const m_INTMAX_MAX = "INT64_MAX"
  354. const m_INTMAX_MIN = "INT64_MIN"
  355. const m_INTPTR_MAX = "INT64_MAX"
  356. const m_INTPTR_MIN = "INT64_MIN"
  357. const m_INT_FAST16_MAX = "INT32_MAX"
  358. const m_INT_FAST16_MIN = "INT32_MIN"
  359. const m_INT_FAST32_MAX = "INT32_MAX"
  360. const m_INT_FAST32_MIN = "INT32_MIN"
  361. const m_INT_FAST64_MAX = "INT64_MAX"
  362. const m_INT_FAST64_MIN = "INT64_MIN"
  363. const m_INT_FAST8_MAX = "INT8_MAX"
  364. const m_INT_FAST8_MIN = "INT8_MIN"
  365. const m_INT_LEAST16_MAX = "INT16_MAX"
  366. const m_INT_LEAST16_MIN = "INT16_MIN"
  367. const m_INT_LEAST32_MAX = "INT32_MAX"
  368. const m_INT_LEAST32_MIN = "INT32_MIN"
  369. const m_INT_LEAST64_MAX = "INT64_MAX"
  370. const m_INT_LEAST64_MIN = "INT64_MIN"
  371. const m_INT_LEAST8_MAX = "INT8_MAX"
  372. const m_INT_LEAST8_MIN = "INT8_MIN"
  373. const m_INT_MAX = 0x7fffffff
  374. const m_IN_CLASSA_MAX = 128
  375. const m_IN_CLASSA_NET = 0xff000000
  376. const m_IN_CLASSA_NSHIFT = 24
  377. const m_IN_CLASSB_MAX = 65536
  378. const m_IN_CLASSB_NET = 0xffff0000
  379. const m_IN_CLASSB_NSHIFT = 16
  380. const m_IN_CLASSC_NET = 0xffffff00
  381. const m_IN_CLASSC_NSHIFT = 8
  382. const m_IN_LOOPBACKNET = 127
  383. const m_IOV_MAX = 1024
  384. const m_IPPORT_RESERVED = 1024
  385. const m_IPPROTO_AH = 51
  386. const m_IPPROTO_BEETPH = 94
  387. const m_IPPROTO_COMP = 108
  388. const m_IPPROTO_DCCP = 33
  389. const m_IPPROTO_DSTOPTS = 60
  390. const m_IPPROTO_EGP = 8
  391. const m_IPPROTO_ENCAP = 98
  392. const m_IPPROTO_ESP = 50
  393. const m_IPPROTO_ETHERNET = 143
  394. const m_IPPROTO_FRAGMENT = 44
  395. const m_IPPROTO_GRE = 47
  396. const m_IPPROTO_HOPOPTS = 0
  397. const m_IPPROTO_ICMP = 1
  398. const m_IPPROTO_ICMPV6 = 58
  399. const m_IPPROTO_IDP = 22
  400. const m_IPPROTO_IGMP = 2
  401. const m_IPPROTO_IP = 0
  402. const m_IPPROTO_IPIP = 4
  403. const m_IPPROTO_IPV6 = 41
  404. const m_IPPROTO_MAX = 263
  405. const m_IPPROTO_MH = 135
  406. const m_IPPROTO_MPLS = 137
  407. const m_IPPROTO_MPTCP = 262
  408. const m_IPPROTO_MTP = 92
  409. const m_IPPROTO_NONE = 59
  410. const m_IPPROTO_PIM = 103
  411. const m_IPPROTO_PUP = 12
  412. const m_IPPROTO_RAW = 255
  413. const m_IPPROTO_ROUTING = 43
  414. const m_IPPROTO_RSVP = 46
  415. const m_IPPROTO_SCTP = 132
  416. const m_IPPROTO_TCP = 6
  417. const m_IPPROTO_TP = 29
  418. const m_IPPROTO_UDP = 17
  419. const m_IPPROTO_UDPLITE = 136
  420. const m_IPV6_2292DSTOPTS = 4
  421. const m_IPV6_2292HOPLIMIT = 8
  422. const m_IPV6_2292HOPOPTS = 3
  423. const m_IPV6_2292PKTINFO = 2
  424. const m_IPV6_2292PKTOPTIONS = 6
  425. const m_IPV6_2292RTHDR = 5
  426. const m_IPV6_ADDRFORM = 1
  427. const m_IPV6_ADDR_PREFERENCES = 72
  428. const m_IPV6_ADD_MEMBERSHIP = "IPV6_JOIN_GROUP"
  429. const m_IPV6_AUTHHDR = 10
  430. const m_IPV6_AUTOFLOWLABEL = 70
  431. const m_IPV6_CHECKSUM = 7
  432. const m_IPV6_DONTFRAG = 62
  433. const m_IPV6_DROP_MEMBERSHIP = "IPV6_LEAVE_GROUP"
  434. const m_IPV6_DSTOPTS = 59
  435. const m_IPV6_FREEBIND = 78
  436. const m_IPV6_HDRINCL = 36
  437. const m_IPV6_HOPLIMIT = 52
  438. const m_IPV6_HOPOPTS = 54
  439. const m_IPV6_IPSEC_POLICY = 34
  440. const m_IPV6_JOIN_ANYCAST = 27
  441. const m_IPV6_JOIN_GROUP = 20
  442. const m_IPV6_LEAVE_ANYCAST = 28
  443. const m_IPV6_LEAVE_GROUP = 21
  444. const m_IPV6_MINHOPCOUNT = 73
  445. const m_IPV6_MTU = 24
  446. const m_IPV6_MTU_DISCOVER = 23
  447. const m_IPV6_MULTICAST_ALL = 29
  448. const m_IPV6_MULTICAST_HOPS = 18
  449. const m_IPV6_MULTICAST_IF = 17
  450. const m_IPV6_MULTICAST_LOOP = 19
  451. const m_IPV6_NEXTHOP = 9
  452. const m_IPV6_ORIGDSTADDR = 74
  453. const m_IPV6_PATHMTU = 61
  454. const m_IPV6_PKTINFO = 50
  455. const m_IPV6_PMTUDISC_DO = 2
  456. const m_IPV6_PMTUDISC_DONT = 0
  457. const m_IPV6_PMTUDISC_INTERFACE = 4
  458. const m_IPV6_PMTUDISC_OMIT = 5
  459. const m_IPV6_PMTUDISC_PROBE = 3
  460. const m_IPV6_PMTUDISC_WANT = 1
  461. const m_IPV6_PREFER_SRC_CGA = 0x0008
  462. const m_IPV6_PREFER_SRC_COA = 0x0004
  463. const m_IPV6_PREFER_SRC_HOME = 0x0400
  464. const m_IPV6_PREFER_SRC_NONCGA = 0x0800
  465. const m_IPV6_PREFER_SRC_PUBLIC = 0x0002
  466. const m_IPV6_PREFER_SRC_PUBTMP_DEFAULT = 0x0100
  467. const m_IPV6_PREFER_SRC_TMP = 0x0001
  468. const m_IPV6_RECVDSTOPTS = 58
  469. const m_IPV6_RECVERR = 25
  470. const m_IPV6_RECVFRAGSIZE = 77
  471. const m_IPV6_RECVHOPLIMIT = 51
  472. const m_IPV6_RECVHOPOPTS = 53
  473. const m_IPV6_RECVORIGDSTADDR = "IPV6_ORIGDSTADDR"
  474. const m_IPV6_RECVPATHMTU = 60
  475. const m_IPV6_RECVPKTINFO = 49
  476. const m_IPV6_RECVRTHDR = 56
  477. const m_IPV6_RECVTCLASS = 66
  478. const m_IPV6_ROUTER_ALERT = 22
  479. const m_IPV6_ROUTER_ALERT_ISOLATE = 30
  480. const m_IPV6_RTHDR = 57
  481. const m_IPV6_RTHDRDSTOPTS = 55
  482. const m_IPV6_RTHDR_LOOSE = 0
  483. const m_IPV6_RTHDR_STRICT = 1
  484. const m_IPV6_RTHDR_TYPE_0 = 0
  485. const m_IPV6_RXDSTOPTS = "IPV6_DSTOPTS"
  486. const m_IPV6_RXHOPOPTS = "IPV6_HOPOPTS"
  487. const m_IPV6_TCLASS = 67
  488. const m_IPV6_TRANSPARENT = 75
  489. const m_IPV6_UNICAST_HOPS = 16
  490. const m_IPV6_UNICAST_IF = 76
  491. const m_IPV6_V6ONLY = 26
  492. const m_IPV6_XFRM_POLICY = 35
  493. const m_IP_ADD_MEMBERSHIP = 35
  494. const m_IP_ADD_SOURCE_MEMBERSHIP = 39
  495. const m_IP_BIND_ADDRESS_NO_PORT = 24
  496. const m_IP_BLOCK_SOURCE = 38
  497. const m_IP_CHECKSUM = 23
  498. const m_IP_DEFAULT_MULTICAST_LOOP = 1
  499. const m_IP_DEFAULT_MULTICAST_TTL = 1
  500. const m_IP_DROP_MEMBERSHIP = 36
  501. const m_IP_DROP_SOURCE_MEMBERSHIP = 40
  502. const m_IP_FREEBIND = 15
  503. const m_IP_HDRINCL = 3
  504. const m_IP_IPSEC_POLICY = 16
  505. const m_IP_MAX_MEMBERSHIPS = 20
  506. const m_IP_MINTTL = 21
  507. const m_IP_MSFILTER = 41
  508. const m_IP_MTU = 14
  509. const m_IP_MTU_DISCOVER = 10
  510. const m_IP_MULTICAST_ALL = 49
  511. const m_IP_MULTICAST_IF = 32
  512. const m_IP_MULTICAST_LOOP = 34
  513. const m_IP_MULTICAST_TTL = 33
  514. const m_IP_NODEFRAG = 22
  515. const m_IP_OPTIONS = 4
  516. const m_IP_ORIGDSTADDR = 20
  517. const m_IP_PASSSEC = 18
  518. const m_IP_PKTINFO = 8
  519. const m_IP_PKTOPTIONS = 9
  520. const m_IP_PMTUDISC = 10
  521. const m_IP_PMTUDISC_DO = 2
  522. const m_IP_PMTUDISC_DONT = 0
  523. const m_IP_PMTUDISC_INTERFACE = 4
  524. const m_IP_PMTUDISC_OMIT = 5
  525. const m_IP_PMTUDISC_PROBE = 3
  526. const m_IP_PMTUDISC_WANT = 1
  527. const m_IP_RECVERR = 11
  528. const m_IP_RECVERR_RFC4884 = 26
  529. const m_IP_RECVFRAGSIZE = 25
  530. const m_IP_RECVOPTS = 6
  531. const m_IP_RECVORIGDSTADDR = "IP_ORIGDSTADDR"
  532. const m_IP_RECVRETOPTS = "IP_RETOPTS"
  533. const m_IP_RECVTOS = 13
  534. const m_IP_RECVTTL = 12
  535. const m_IP_RETOPTS = 7
  536. const m_IP_ROUTER_ALERT = 5
  537. const m_IP_TOS = 1
  538. const m_IP_TRANSPARENT = 19
  539. const m_IP_TTL = 2
  540. const m_IP_UNBLOCK_SOURCE = 37
  541. const m_IP_UNICAST_IF = 50
  542. const m_IP_XFRM_POLICY = 17
  543. const m_LINE_MAX = 4096
  544. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  545. const m_LLONG_MAX = 0x7fffffffffffffff
  546. const m_LOGIN_NAME_MAX = 256
  547. const m_LONG_BIT = 64
  548. const m_LONG_MAX = "__LONG_MAX"
  549. const m_LT_OBJDIR = ".libs/"
  550. const m_L_INCR = 1
  551. const m_L_SET = 0
  552. const m_L_XTND = 2
  553. const m_L_ctermid = 20
  554. const m_L_cuserid = 20
  555. const m_L_tmpnam = 20
  556. const m_MAX_HANDLE_SZ = 128
  557. const m_MB_LEN_MAX = 4
  558. const m_MCAST_BLOCK_SOURCE = 43
  559. const m_MCAST_EXCLUDE = 0
  560. const m_MCAST_INCLUDE = 1
  561. const m_MCAST_JOIN_GROUP = 42
  562. const m_MCAST_JOIN_SOURCE_GROUP = 46
  563. const m_MCAST_LEAVE_GROUP = 45
  564. const m_MCAST_LEAVE_SOURCE_GROUP = 47
  565. const m_MCAST_MSFILTER = 48
  566. const m_MCAST_UNBLOCK_SOURCE = 44
  567. const m_MQ_PRIO_MAX = 32768
  568. const m_MSG_BATCH = 0x40000
  569. const m_MSG_CMSG_CLOEXEC = 0x40000000
  570. const m_MSG_CONFIRM = 0x0800
  571. const m_MSG_CTRUNC = 0x0008
  572. const m_MSG_DONTROUTE = 0x0004
  573. const m_MSG_DONTWAIT = 0x0040
  574. const m_MSG_EOR = 0x0080
  575. const m_MSG_ERRQUEUE = 0x2000
  576. const m_MSG_FASTOPEN = 0x20000000
  577. const m_MSG_FIN = 0x0200
  578. const m_MSG_MORE = 0x8000
  579. const m_MSG_NOSIGNAL = 0x4000
  580. const m_MSG_OOB = 0x0001
  581. const m_MSG_PEEK = 0x0002
  582. const m_MSG_PROXY = 0x0010
  583. const m_MSG_RST = 0x1000
  584. const m_MSG_SYN = 0x0400
  585. const m_MSG_TRUNC = 0x0020
  586. const m_MSG_WAITALL = 0x0100
  587. const m_MSG_WAITFORONE = 0x10000
  588. const m_MSG_ZEROCOPY = 0x4000000
  589. const m_NAME_MAX = 255
  590. const m_NDEBUG = 1
  591. const m_NGROUPS_MAX = 32
  592. const m_NL_ARGMAX = 9
  593. const m_NL_LANGMAX = 32
  594. const m_NL_MSGMAX = 32767
  595. const m_NL_NMAX = 16
  596. const m_NL_SETMAX = 255
  597. const m_NL_TEXTMAX = 2048
  598. const m_NZERO = 20
  599. const m_O_APPEND = 02000
  600. const m_O_ASYNC = 020000
  601. const m_O_CLOEXEC = 02000000
  602. const m_O_CREAT = 0100
  603. const m_O_DIRECT = 040000
  604. const m_O_DIRECTORY = 0200000
  605. const m_O_DSYNC = 010000
  606. const m_O_EXCL = 0200
  607. const m_O_EXEC = "O_PATH"
  608. const m_O_LARGEFILE = 0100000
  609. const m_O_NDELAY = "O_NONBLOCK"
  610. const m_O_NOATIME = 01000000
  611. const m_O_NOCTTY = 0400
  612. const m_O_NOFOLLOW = 0400000
  613. const m_O_NONBLOCK = 2048
  614. const m_O_PATH = 010000000
  615. const m_O_RDONLY = 00
  616. const m_O_RDWR = 02
  617. const m_O_RSYNC = 04010000
  618. const m_O_SEARCH = "O_PATH"
  619. const m_O_SYNC = 04010000
  620. const m_O_TMPFILE = 020200000
  621. const m_O_TRUNC = 01000
  622. const m_O_TTY_INIT = 0
  623. const m_O_WRONLY = 01
  624. const m_PACKAGE = "libxcb"
  625. const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxcb/issues"
  626. const m_PACKAGE_NAME = "libxcb"
  627. const m_PACKAGE_STRING = "libxcb 1.14"
  628. const m_PACKAGE_TARNAME = "libxcb"
  629. const m_PACKAGE_URL = ""
  630. const m_PACKAGE_VERSION = "1.14"
  631. const m_PACKAGE_VERSION_MAJOR = 1
  632. const m_PACKAGE_VERSION_MINOR = 14
  633. const m_PACKAGE_VERSION_PATCHLEVEL = 0
  634. const m_PATH_MAX = 4096
  635. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  636. const m_PF_ALG = 38
  637. const m_PF_APPLETALK = 5
  638. const m_PF_ASH = 18
  639. const m_PF_ATMPVC = 8
  640. const m_PF_ATMSVC = 20
  641. const m_PF_AX25 = 3
  642. const m_PF_BLUETOOTH = 31
  643. const m_PF_BRIDGE = 7
  644. const m_PF_CAIF = 37
  645. const m_PF_CAN = 29
  646. const m_PF_DECnet = 12
  647. const m_PF_ECONET = 19
  648. const m_PF_FILE = "PF_LOCAL"
  649. const m_PF_IB = 27
  650. const m_PF_IEEE802154 = 36
  651. const m_PF_INET = 2
  652. const m_PF_INET6 = 10
  653. const m_PF_IPX = 4
  654. const m_PF_IRDA = 23
  655. const m_PF_ISDN = 34
  656. const m_PF_IUCV = 32
  657. const m_PF_KCM = 41
  658. const m_PF_KEY = 15
  659. const m_PF_LLC = 26
  660. const m_PF_LOCAL = 1
  661. const m_PF_MAX = 45
  662. const m_PF_MPLS = 28
  663. const m_PF_NETBEUI = 13
  664. const m_PF_NETLINK = 16
  665. const m_PF_NETROM = 6
  666. const m_PF_NFC = 39
  667. const m_PF_PACKET = 17
  668. const m_PF_PHONET = 35
  669. const m_PF_PPPOX = 24
  670. const m_PF_QIPCRTR = 42
  671. const m_PF_RDS = 21
  672. const m_PF_ROSE = 11
  673. const m_PF_ROUTE = "PF_NETLINK"
  674. const m_PF_RXRPC = 33
  675. const m_PF_SECURITY = 14
  676. const m_PF_SMC = 43
  677. const m_PF_SNA = 22
  678. const m_PF_TIPC = 30
  679. const m_PF_UNIX = "PF_LOCAL"
  680. const m_PF_UNSPEC = 0
  681. const m_PF_VSOCK = 40
  682. const m_PF_WANPIPE = 25
  683. const m_PF_X25 = 9
  684. const m_PF_XDP = 44
  685. const m_PIPE_BUF = 4096
  686. const m_POLLERR = 0x008
  687. const m_POLLHUP = 0x010
  688. const m_POLLIN = 1
  689. const m_POLLMSG = 0x400
  690. const m_POLLNVAL = 0x020
  691. const m_POLLOUT = 4
  692. const m_POLLPRI = 0x002
  693. const m_POLLRDBAND = 0x080
  694. const m_POLLRDHUP = 0x2000
  695. const m_POLLRDNORM = 0x040
  696. const m_POLLWRBAND = 0x200
  697. const m_POLLWRNORM = 0x100
  698. const m_POSIX_CLOSE_RESTART = 0
  699. const m_POSIX_FADV_DONTNEED = 4
  700. const m_POSIX_FADV_NOREUSE = 5
  701. const m_POSIX_FADV_NORMAL = 0
  702. const m_POSIX_FADV_RANDOM = 1
  703. const m_POSIX_FADV_SEQUENTIAL = 2
  704. const m_POSIX_FADV_WILLNEED = 3
  705. const m_PRIX16 = "X"
  706. const m_PRIX32 = "X"
  707. const m_PRIX8 = "X"
  708. const m_PRIXFAST16 = "X"
  709. const m_PRIXFAST32 = "X"
  710. const m_PRIXFAST8 = "X"
  711. const m_PRIXLEAST16 = "X"
  712. const m_PRIXLEAST32 = "X"
  713. const m_PRIXLEAST8 = "X"
  714. const m_PRId16 = "d"
  715. const m_PRId32 = "d"
  716. const m_PRId8 = "d"
  717. const m_PRIdFAST16 = "d"
  718. const m_PRIdFAST32 = "d"
  719. const m_PRIdFAST8 = "d"
  720. const m_PRIdLEAST16 = "d"
  721. const m_PRIdLEAST32 = "d"
  722. const m_PRIdLEAST8 = "d"
  723. const m_PRIi16 = "i"
  724. const m_PRIi32 = "i"
  725. const m_PRIi8 = "i"
  726. const m_PRIiFAST16 = "i"
  727. const m_PRIiFAST32 = "i"
  728. const m_PRIiFAST8 = "i"
  729. const m_PRIiLEAST16 = "i"
  730. const m_PRIiLEAST32 = "i"
  731. const m_PRIiLEAST8 = "i"
  732. const m_PRIo16 = "o"
  733. const m_PRIo32 = "o"
  734. const m_PRIo8 = "o"
  735. const m_PRIoFAST16 = "o"
  736. const m_PRIoFAST32 = "o"
  737. const m_PRIoFAST8 = "o"
  738. const m_PRIoLEAST16 = "o"
  739. const m_PRIoLEAST32 = "o"
  740. const m_PRIoLEAST8 = "o"
  741. const m_PRIu16 = "u"
  742. const m_PRIu32 = "u"
  743. const m_PRIu8 = "u"
  744. const m_PRIuFAST16 = "u"
  745. const m_PRIuFAST32 = "u"
  746. const m_PRIuFAST8 = "u"
  747. const m_PRIuLEAST16 = "u"
  748. const m_PRIuLEAST32 = "u"
  749. const m_PRIuLEAST8 = "u"
  750. const m_PRIx16 = "x"
  751. const m_PRIx32 = "x"
  752. const m_PRIx8 = "x"
  753. const m_PRIxFAST16 = "x"
  754. const m_PRIxFAST32 = "x"
  755. const m_PRIxFAST8 = "x"
  756. const m_PRIxLEAST16 = "x"
  757. const m_PRIxLEAST32 = "x"
  758. const m_PRIxLEAST8 = "x"
  759. const m_PTHREAD_CANCEL_ASYNCHRONOUS = 1
  760. const m_PTHREAD_CANCEL_DEFERRED = 0
  761. const m_PTHREAD_CANCEL_DISABLE = 1
  762. const m_PTHREAD_CANCEL_ENABLE = 0
  763. const m_PTHREAD_CANCEL_MASKED = 2
  764. const m_PTHREAD_CREATE_DETACHED = 1
  765. const m_PTHREAD_CREATE_JOINABLE = 0
  766. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  767. const m_PTHREAD_EXPLICIT_SCHED = 1
  768. const m_PTHREAD_INHERIT_SCHED = 0
  769. const m_PTHREAD_KEYS_MAX = 128
  770. const m_PTHREAD_MUTEX_DEFAULT = 0
  771. const m_PTHREAD_MUTEX_ERRORCHECK = 2
  772. const m_PTHREAD_MUTEX_NORMAL = 0
  773. const m_PTHREAD_MUTEX_RECURSIVE = 1
  774. const m_PTHREAD_MUTEX_ROBUST = 1
  775. const m_PTHREAD_MUTEX_STALLED = 0
  776. const m_PTHREAD_ONCE_INIT = 0
  777. const m_PTHREAD_PRIO_INHERIT = 1
  778. const m_PTHREAD_PRIO_NONE = 0
  779. const m_PTHREAD_PRIO_PROTECT = 2
  780. const m_PTHREAD_PROCESS_PRIVATE = 0
  781. const m_PTHREAD_PROCESS_SHARED = 1
  782. const m_PTHREAD_SCOPE_PROCESS = 1
  783. const m_PTHREAD_SCOPE_SYSTEM = 0
  784. const m_PTHREAD_STACK_MIN = 2048
  785. const m_PTRDIFF_MAX = "INT64_MAX"
  786. const m_PTRDIFF_MIN = "INT64_MIN"
  787. const m_P_tmpdir = "/tmp"
  788. const m_RAND_MAX = 0x7fffffff
  789. const m_RE_DUP_MAX = 255
  790. const m_RWF_APPEND = 0x00000010
  791. const m_RWF_DSYNC = 0x00000002
  792. const m_RWF_HIPRI = 0x00000001
  793. const m_RWF_NOWAIT = 0x00000008
  794. const m_RWF_SYNC = 0x00000004
  795. const m_RWF_WRITE_LIFE_NOT_SET = 0
  796. const m_RWH_WRITE_LIFE_EXTREME = 5
  797. const m_RWH_WRITE_LIFE_LONG = 4
  798. const m_RWH_WRITE_LIFE_MEDIUM = 3
  799. const m_RWH_WRITE_LIFE_NONE = 1
  800. const m_RWH_WRITE_LIFE_SHORT = 2
  801. const m_R_OK = 4
  802. const m_SCHAR_MAX = 127
  803. const m_SCHED_BATCH = 3
  804. const m_SCHED_DEADLINE = 6
  805. const m_SCHED_FIFO = 1
  806. const m_SCHED_IDLE = 5
  807. const m_SCHED_OTHER = 0
  808. const m_SCHED_RESET_ON_FORK = 0x40000000
  809. const m_SCHED_RR = 2
  810. const m_SCM_CREDENTIALS = 0x02
  811. const m_SCM_RIGHTS = 1
  812. const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
  813. const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
  814. const m_SCM_TIMESTAMPING_OPT_STATS = 54
  815. const m_SCM_TIMESTAMPING_PKTINFO = 58
  816. const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
  817. const m_SCM_TXTIME = "SO_TXTIME"
  818. const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
  819. const m_SCNd16 = "hd"
  820. const m_SCNd32 = "d"
  821. const m_SCNd8 = "hhd"
  822. const m_SCNdFAST16 = "d"
  823. const m_SCNdFAST32 = "d"
  824. const m_SCNdFAST8 = "hhd"
  825. const m_SCNdLEAST16 = "hd"
  826. const m_SCNdLEAST32 = "d"
  827. const m_SCNdLEAST8 = "hhd"
  828. const m_SCNi16 = "hi"
  829. const m_SCNi32 = "i"
  830. const m_SCNi8 = "hhi"
  831. const m_SCNiFAST16 = "i"
  832. const m_SCNiFAST32 = "i"
  833. const m_SCNiFAST8 = "hhi"
  834. const m_SCNiLEAST16 = "hi"
  835. const m_SCNiLEAST32 = "i"
  836. const m_SCNiLEAST8 = "hhi"
  837. const m_SCNo16 = "ho"
  838. const m_SCNo32 = "o"
  839. const m_SCNo8 = "hho"
  840. const m_SCNoFAST16 = "o"
  841. const m_SCNoFAST32 = "o"
  842. const m_SCNoFAST8 = "hho"
  843. const m_SCNoLEAST16 = "ho"
  844. const m_SCNoLEAST32 = "o"
  845. const m_SCNoLEAST8 = "hho"
  846. const m_SCNu16 = "hu"
  847. const m_SCNu32 = "u"
  848. const m_SCNu8 = "hhu"
  849. const m_SCNuFAST16 = "u"
  850. const m_SCNuFAST32 = "u"
  851. const m_SCNuFAST8 = "hhu"
  852. const m_SCNuLEAST16 = "hu"
  853. const m_SCNuLEAST32 = "u"
  854. const m_SCNuLEAST8 = "hhu"
  855. const m_SCNx16 = "hx"
  856. const m_SCNx32 = "x"
  857. const m_SCNx8 = "hhx"
  858. const m_SCNxFAST16 = "x"
  859. const m_SCNxFAST32 = "x"
  860. const m_SCNxFAST8 = "hhx"
  861. const m_SCNxLEAST16 = "hx"
  862. const m_SCNxLEAST32 = "x"
  863. const m_SCNxLEAST8 = "hhx"
  864. const m_SEEK_DATA = 3
  865. const m_SEEK_HOLE = 4
  866. const m_SEM_NSEMS_MAX = 256
  867. const m_SEM_VALUE_MAX = 0x7fffffff
  868. const m_SHRT_MAX = 0x7fff
  869. const m_SHUT_RD = 0
  870. const m_SHUT_RDWR = 2
  871. const m_SHUT_WR = 1
  872. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  873. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  874. const m_SIZE_MAX = "UINT64_MAX"
  875. const m_SOCK_CLOEXEC = 02000000
  876. const m_SOCK_DCCP = 6
  877. const m_SOCK_DGRAM = 2
  878. const m_SOCK_NONBLOCK = 04000
  879. const m_SOCK_PACKET = 10
  880. const m_SOCK_RAW = 3
  881. const m_SOCK_RDM = 4
  882. const m_SOCK_SEQPACKET = 5
  883. const m_SOCK_STREAM = 1
  884. const m_SOL_AAL = 265
  885. const m_SOL_ALG = 279
  886. const m_SOL_ATM = 264
  887. const m_SOL_BLUETOOTH = 274
  888. const m_SOL_CAIF = 278
  889. const m_SOL_DCCP = 269
  890. const m_SOL_DECNET = 261
  891. const m_SOL_ICMPV6 = 58
  892. const m_SOL_IP = 0
  893. const m_SOL_IPV6 = 41
  894. const m_SOL_IRDA = 266
  895. const m_SOL_IUCV = 277
  896. const m_SOL_KCM = 281
  897. const m_SOL_LLC = 268
  898. const m_SOL_NETBEUI = 267
  899. const m_SOL_NETLINK = 270
  900. const m_SOL_NFC = 280
  901. const m_SOL_PACKET = 263
  902. const m_SOL_PNPIPE = 275
  903. const m_SOL_PPPOL2TP = 273
  904. const m_SOL_RAW = 255
  905. const m_SOL_RDS = 276
  906. const m_SOL_RXRPC = 272
  907. const m_SOL_SOCKET = 1
  908. const m_SOL_TIPC = 271
  909. const m_SOL_TLS = 282
  910. const m_SOL_X25 = 262
  911. const m_SOL_XDP = 283
  912. const m_SOMAXCONN = 128
  913. const m_SO_ACCEPTCONN = 30
  914. const m_SO_ATTACH_BPF = 50
  915. const m_SO_ATTACH_FILTER = 26
  916. const m_SO_ATTACH_REUSEPORT_CBPF = 51
  917. const m_SO_ATTACH_REUSEPORT_EBPF = 52
  918. const m_SO_BINDTODEVICE = 25
  919. const m_SO_BINDTOIFINDEX = 62
  920. const m_SO_BPF_EXTENSIONS = 48
  921. const m_SO_BROADCAST = 6
  922. const m_SO_BSDCOMPAT = 14
  923. const m_SO_BUSY_POLL = 46
  924. const m_SO_BUSY_POLL_BUDGET = 70
  925. const m_SO_CNX_ADVICE = 53
  926. const m_SO_COOKIE = 57
  927. const m_SO_DEBUG = 1
  928. const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
  929. const m_SO_DETACH_FILTER = 27
  930. const m_SO_DETACH_REUSEPORT_BPF = 68
  931. const m_SO_DOMAIN = 39
  932. const m_SO_DONTROUTE = 5
  933. const m_SO_ERROR = 4
  934. const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
  935. const m_SO_INCOMING_CPU = 49
  936. const m_SO_INCOMING_NAPI_ID = 56
  937. const m_SO_KEEPALIVE = 9
  938. const m_SO_LINGER = 13
  939. const m_SO_LOCK_FILTER = 44
  940. const m_SO_MARK = 36
  941. const m_SO_MAX_PACING_RATE = 47
  942. const m_SO_MEMINFO = 55
  943. const m_SO_NOFCS = 43
  944. const m_SO_NO_CHECK = 11
  945. const m_SO_OOBINLINE = 10
  946. const m_SO_PASSCRED = 16
  947. const m_SO_PASSSEC = 34
  948. const m_SO_PEEK_OFF = 42
  949. const m_SO_PEERCRED = 17
  950. const m_SO_PEERGROUPS = 59
  951. const m_SO_PEERNAME = 28
  952. const m_SO_PEERSEC = 31
  953. const m_SO_PREFER_BUSY_POLL = 69
  954. const m_SO_PRIORITY = 12
  955. const m_SO_PROTOCOL = 38
  956. const m_SO_RCVBUF = 8
  957. const m_SO_RCVBUFFORCE = 33
  958. const m_SO_RCVLOWAT = 18
  959. const m_SO_RCVTIMEO = 20
  960. const m_SO_REUSEADDR = 2
  961. const m_SO_REUSEPORT = 15
  962. const m_SO_RXQ_OVFL = 40
  963. const m_SO_SECURITY_AUTHENTICATION = 22
  964. const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
  965. const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
  966. const m_SO_SELECT_ERR_QUEUE = 45
  967. const m_SO_SNDBUF = 7
  968. const m_SO_SNDBUFFORCE = 32
  969. const m_SO_SNDLOWAT = 19
  970. const m_SO_SNDTIMEO = 21
  971. const m_SO_TIMESTAMP = 29
  972. const m_SO_TIMESTAMPING = 37
  973. const m_SO_TIMESTAMPNS = 35
  974. const m_SO_TXTIME = 61
  975. const m_SO_TYPE = 3
  976. const m_SO_WIFI_STATUS = 41
  977. const m_SO_ZEROCOPY = 60
  978. const m_SPLICE_F_GIFT = 8
  979. const m_SPLICE_F_MORE = 4
  980. const m_SPLICE_F_MOVE = 1
  981. const m_SPLICE_F_NONBLOCK = 2
  982. const m_SSIZE_MAX = "LONG_MAX"
  983. const m_STDC_HEADERS = 1
  984. const m_STDERR_FILENO = 2
  985. const m_STDIN_FILENO = 0
  986. const m_STDOUT_FILENO = 1
  987. const m_SYMLOOP_MAX = 40
  988. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  989. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  990. const m_SYNC_FILE_RANGE_WRITE = 2
  991. const m_S_IRGRP = 0040
  992. const m_S_IROTH = 0004
  993. const m_S_IRUSR = 0400
  994. const m_S_IRWXG = 0070
  995. const m_S_IRWXO = 0007
  996. const m_S_IRWXU = 0700
  997. const m_S_ISGID = 02000
  998. const m_S_ISUID = 04000
  999. const m_S_ISVTX = 01000
  1000. const m_S_IWGRP = 0020
  1001. const m_S_IWOTH = 0002
  1002. const m_S_IWUSR = 0200
  1003. const m_S_IXGRP = 0010
  1004. const m_S_IXOTH = 0001
  1005. const m_S_IXUSR = 0100
  1006. const m_TIMER_ABSTIME = 1
  1007. const m_TIME_UTC = 1
  1008. const m_TMP_MAX = 10000
  1009. const m_TTY_NAME_MAX = 32
  1010. const m_TZNAME_MAX = 6
  1011. const m_UCHAR_MAX = 255
  1012. const m_UINT16_MAX = 0xffff
  1013. const m_UINT32_MAX = "0xffffffffu"
  1014. const m_UINT64_MAX = "0xffffffffffffffffu"
  1015. const m_UINT8_MAX = 0xff
  1016. const m_UINTMAX_MAX = "UINT64_MAX"
  1017. const m_UINTPTR_MAX = "UINT64_MAX"
  1018. const m_UINT_FAST16_MAX = "UINT32_MAX"
  1019. const m_UINT_FAST32_MAX = "UINT32_MAX"
  1020. const m_UINT_FAST64_MAX = "UINT64_MAX"
  1021. const m_UINT_FAST8_MAX = "UINT8_MAX"
  1022. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  1023. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  1024. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  1025. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  1026. const m_UINT_MAX = 0xffffffff
  1027. const m_UIO_MAXIOV = 1024
  1028. const m_USE_POLL = 1
  1029. const m_USHRT_MAX = 0xffff
  1030. const m_VERSION = "1.14"
  1031. const m_WINT_MAX = "UINT32_MAX"
  1032. const m_WINT_MIN = 0
  1033. const m_WNOHANG = 1
  1034. const m_WORD_BIT = 32
  1035. const m_WUNTRACED = 2
  1036. const m_W_OK = 2
  1037. const m_XCB_ACCESS = 10
  1038. const m_XCB_ALLOC = 11
  1039. const m_XCB_ALLOC_COLOR = 84
  1040. const m_XCB_ALLOC_COLOR_CELLS = 86
  1041. const m_XCB_ALLOC_COLOR_PLANES = 87
  1042. const m_XCB_ALLOC_NAMED_COLOR = 85
  1043. const m_XCB_ALLOW_EVENTS = 35
  1044. const m_XCB_ATOM = 5
  1045. const m_XCB_BELL = 104
  1046. const m_XCB_BIGREQUESTS_MAJOR_VERSION = 0
  1047. const m_XCB_BIGREQUESTS_MINOR_VERSION = 0
  1048. const m_XCB_BIG_REQUESTS_ENABLE = 0
  1049. const m_XCB_BUTTON_PRESS = 4
  1050. const m_XCB_BUTTON_RELEASE = 5
  1051. const m_XCB_CHANGE_ACTIVE_POINTER_GRAB = 30
  1052. const m_XCB_CHANGE_GC = 56
  1053. const m_XCB_CHANGE_HOSTS = 109
  1054. const m_XCB_CHANGE_KEYBOARD_CONTROL = 102
  1055. const m_XCB_CHANGE_KEYBOARD_MAPPING = 100
  1056. const m_XCB_CHANGE_POINTER_CONTROL = 105
  1057. const m_XCB_CHANGE_PROPERTY = 18
  1058. const m_XCB_CHANGE_SAVE_SET = 6
  1059. const m_XCB_CHANGE_WINDOW_ATTRIBUTES = 2
  1060. const m_XCB_CIRCULATE_NOTIFY = 26
  1061. const m_XCB_CIRCULATE_REQUEST = 27
  1062. const m_XCB_CIRCULATE_WINDOW = 13
  1063. const m_XCB_CLEAR_AREA = 61
  1064. const m_XCB_CLIENT_MESSAGE = 33
  1065. const m_XCB_CLOSE_FONT = 46
  1066. const m_XCB_COLORMAP = 12
  1067. const m_XCB_COLORMAP_NOTIFY = 32
  1068. const m_XCB_CONFIGURE_NOTIFY = 22
  1069. const m_XCB_CONFIGURE_REQUEST = 23
  1070. const m_XCB_CONFIGURE_WINDOW = 12
  1071. const m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED = 2
  1072. const m_XCB_CONN_CLOSED_FDPASSING_FAILED = 7
  1073. const m_XCB_CONN_CLOSED_INVALID_SCREEN = 6
  1074. const m_XCB_CONN_CLOSED_MEM_INSUFFICIENT = 3
  1075. const m_XCB_CONN_CLOSED_PARSE_ERR = 5
  1076. const m_XCB_CONN_CLOSED_REQ_LEN_EXCEED = 4
  1077. const m_XCB_CONN_ERROR = 1
  1078. const m_XCB_CONVERT_SELECTION = 24
  1079. const m_XCB_COPY_AREA = 62
  1080. const m_XCB_COPY_COLORMAP_AND_FREE = 80
  1081. const m_XCB_COPY_FROM_PARENT = 0
  1082. const m_XCB_COPY_GC = 57
  1083. const m_XCB_COPY_PLANE = 63
  1084. const m_XCB_CREATE_COLORMAP = 78
  1085. const m_XCB_CREATE_CURSOR = 93
  1086. const m_XCB_CREATE_GC = 55
  1087. const m_XCB_CREATE_GLYPH_CURSOR = 94
  1088. const m_XCB_CREATE_NOTIFY = 16
  1089. const m_XCB_CREATE_PIXMAP = 53
  1090. const m_XCB_CREATE_WINDOW = 1
  1091. const m_XCB_CURRENT_TIME = 0
  1092. const m_XCB_CURSOR = 6
  1093. const m_XCB_DELETE_PROPERTY = 19
  1094. const m_XCB_DESTROY_NOTIFY = 17
  1095. const m_XCB_DESTROY_SUBWINDOWS = 5
  1096. const m_XCB_DESTROY_WINDOW = 4
  1097. const m_XCB_DRAWABLE = 9
  1098. const m_XCB_ENTER_NOTIFY = 7
  1099. const m_XCB_EXPOSE = 12
  1100. const m_XCB_FILL_POLY = 69
  1101. const m_XCB_FOCUS_IN = 9
  1102. const m_XCB_FOCUS_OUT = 10
  1103. const m_XCB_FONT = 7
  1104. const m_XCB_FORCE_SCREEN_SAVER = 115
  1105. const m_XCB_FREE_COLORMAP = 79
  1106. const m_XCB_FREE_COLORS = 88
  1107. const m_XCB_FREE_CURSOR = 95
  1108. const m_XCB_FREE_GC = 60
  1109. const m_XCB_FREE_PIXMAP = 54
  1110. const m_XCB_GET_ATOM_NAME = 17
  1111. const m_XCB_GET_FONT_PATH = 52
  1112. const m_XCB_GET_GEOMETRY = 14
  1113. const m_XCB_GET_IMAGE = 73
  1114. const m_XCB_GET_INPUT_FOCUS = 43
  1115. const m_XCB_GET_KEYBOARD_CONTROL = 103
  1116. const m_XCB_GET_KEYBOARD_MAPPING = 101
  1117. const m_XCB_GET_MODIFIER_MAPPING = 119
  1118. const m_XCB_GET_MOTION_EVENTS = 39
  1119. const m_XCB_GET_POINTER_CONTROL = 106
  1120. const m_XCB_GET_POINTER_MAPPING = 117
  1121. const m_XCB_GET_PROPERTY = 20
  1122. const m_XCB_GET_SCREEN_SAVER = 108
  1123. const m_XCB_GET_SELECTION_OWNER = 23
  1124. const m_XCB_GET_WINDOW_ATTRIBUTES = 3
  1125. const m_XCB_GE_GENERIC = 35
  1126. const m_XCB_GRAB_BUTTON = 28
  1127. const m_XCB_GRAB_KEY = 33
  1128. const m_XCB_GRAB_KEYBOARD = 31
  1129. const m_XCB_GRAB_POINTER = 26
  1130. const m_XCB_GRAB_SERVER = 36
  1131. const m_XCB_GRAPHICS_EXPOSURE = 13
  1132. const m_XCB_GRAVITY_NOTIFY = 24
  1133. const m_XCB_G_CONTEXT = 13
  1134. const m_XCB_ID_CHOICE = 14
  1135. const m_XCB_IMAGE_TEXT_16 = 77
  1136. const m_XCB_IMAGE_TEXT_8 = 76
  1137. const m_XCB_IMPLEMENTATION = 17
  1138. const m_XCB_INSTALL_COLORMAP = 81
  1139. const m_XCB_INTERN_ATOM = 16
  1140. const m_XCB_KEYMAP_NOTIFY = 11
  1141. const m_XCB_KEY_PRESS = 2
  1142. const m_XCB_KEY_RELEASE = 3
  1143. const m_XCB_KILL_CLIENT = 113
  1144. const m_XCB_LEAVE_NOTIFY = 8
  1145. const m_XCB_LENGTH = 16
  1146. const m_XCB_LIST_EXTENSIONS = 99
  1147. const m_XCB_LIST_FONTS = 49
  1148. const m_XCB_LIST_FONTS_WITH_INFO = 50
  1149. const m_XCB_LIST_HOSTS = 110
  1150. const m_XCB_LIST_INSTALLED_COLORMAPS = 83
  1151. const m_XCB_LIST_PROPERTIES = 21
  1152. const m_XCB_LOOKUP_COLOR = 92
  1153. const m_XCB_MAPPING_NOTIFY = 34
  1154. const m_XCB_MAP_NOTIFY = 19
  1155. const m_XCB_MAP_REQUEST = 20
  1156. const m_XCB_MAP_SUBWINDOWS = 9
  1157. const m_XCB_MAP_WINDOW = 8
  1158. const m_XCB_MATCH = 8
  1159. const m_XCB_MAX_PASS_FD = 16
  1160. const m_XCB_MOTION_NOTIFY = 6
  1161. const m_XCB_NAME = 15
  1162. const m_XCB_NONE = 0
  1163. const m_XCB_NO_EXPOSURE = 14
  1164. const m_XCB_NO_OPERATION = 127
  1165. const m_XCB_NO_SYMBOL = 0
  1166. const m_XCB_OPEN_FONT = 45
  1167. const m_XCB_PIXMAP = 4
  1168. const m_XCB_POLY_ARC = 68
  1169. const m_XCB_POLY_FILL_ARC = 71
  1170. const m_XCB_POLY_FILL_RECTANGLE = 70
  1171. const m_XCB_POLY_LINE = 65
  1172. const m_XCB_POLY_POINT = 64
  1173. const m_XCB_POLY_RECTANGLE = 67
  1174. const m_XCB_POLY_SEGMENT = 66
  1175. const m_XCB_POLY_TEXT_16 = 75
  1176. const m_XCB_POLY_TEXT_8 = 74
  1177. const m_XCB_PROPERTY_NOTIFY = 28
  1178. const m_XCB_PUT_IMAGE = 72
  1179. const m_XCB_QUERY_BEST_SIZE = 97
  1180. const m_XCB_QUERY_COLORS = 91
  1181. const m_XCB_QUERY_EXTENSION = 98
  1182. const m_XCB_QUERY_FONT = 47
  1183. const m_XCB_QUERY_KEYMAP = 44
  1184. const m_XCB_QUERY_POINTER = 38
  1185. const m_XCB_QUERY_TEXT_EXTENTS = 48
  1186. const m_XCB_QUERY_TREE = 15
  1187. const m_XCB_QUEUE_BUFFER_SIZE = 16384
  1188. const m_XCB_RECOLOR_CURSOR = 96
  1189. const m_XCB_REPARENT_NOTIFY = 21
  1190. const m_XCB_REPARENT_WINDOW = 7
  1191. const m_XCB_REQUEST = 1
  1192. const m_XCB_RESIZE_REQUEST = 25
  1193. const m_XCB_ROTATE_PROPERTIES = 114
  1194. const m_XCB_SELECTION_CLEAR = 29
  1195. const m_XCB_SELECTION_NOTIFY = 31
  1196. const m_XCB_SELECTION_REQUEST = 30
  1197. const m_XCB_SEND_EVENT = 25
  1198. const m_XCB_SET_ACCESS_CONTROL = 111
  1199. const m_XCB_SET_CLIP_RECTANGLES = 59
  1200. const m_XCB_SET_CLOSE_DOWN_MODE = 112
  1201. const m_XCB_SET_DASHES = 58
  1202. const m_XCB_SET_FONT_PATH = 51
  1203. const m_XCB_SET_INPUT_FOCUS = 42
  1204. const m_XCB_SET_MODIFIER_MAPPING = 118
  1205. const m_XCB_SET_POINTER_MAPPING = 116
  1206. const m_XCB_SET_SCREEN_SAVER = 107
  1207. const m_XCB_SET_SELECTION_OWNER = 22
  1208. const m_XCB_STORE_COLORS = 89
  1209. const m_XCB_STORE_NAMED_COLOR = 90
  1210. const m_XCB_TRANSLATE_COORDINATES = 40
  1211. const m_XCB_UNGRAB_BUTTON = 29
  1212. const m_XCB_UNGRAB_KEY = 34
  1213. const m_XCB_UNGRAB_KEYBOARD = 32
  1214. const m_XCB_UNGRAB_POINTER = 27
  1215. const m_XCB_UNGRAB_SERVER = 37
  1216. const m_XCB_UNINSTALL_COLORMAP = 82
  1217. const m_XCB_UNMAP_NOTIFY = 18
  1218. const m_XCB_UNMAP_SUBWINDOWS = 11
  1219. const m_XCB_UNMAP_WINDOW = 10
  1220. const m_XCB_VALUE = 2
  1221. const m_XCB_VISIBILITY_NOTIFY = 15
  1222. const m_XCB_WARP_POINTER = 41
  1223. const m_XCB_WINDOW = 3
  1224. const m_X_OK = 1
  1225. const m_X_PROTOCOL = 11
  1226. const m_X_PROTOCOL_REVISION = 0
  1227. const m_X_TCP_PORT = 6000
  1228. const m__ABILP64 = 3
  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__GNU_SOURCE = 1
  1273. const m__IOFBF = 0
  1274. const m__IOLBF = 1
  1275. const m__IONBF = 2
  1276. const m__LOONGARCH_ARCH = "la64v1.0"
  1277. const m__LOONGARCH_FPSET = 32
  1278. const m__LOONGARCH_SIM = "_ABILP64"
  1279. const m__LOONGARCH_SPFPSET = 32
  1280. const m__LOONGARCH_SZINT = 32
  1281. const m__LOONGARCH_SZLONG = 64
  1282. const m__LOONGARCH_SZPTR = 64
  1283. const m__LOONGARCH_TUNE = "generic"
  1284. const m__LP64 = 1
  1285. const m__PC_2_SYMLINKS = 20
  1286. const m__PC_ALLOC_SIZE_MIN = 18
  1287. const m__PC_ASYNC_IO = 10
  1288. const m__PC_CHOWN_RESTRICTED = 6
  1289. const m__PC_FILESIZEBITS = 13
  1290. const m__PC_LINK_MAX = 0
  1291. const m__PC_MAX_CANON = 1
  1292. const m__PC_MAX_INPUT = 2
  1293. const m__PC_NAME_MAX = 3
  1294. const m__PC_NO_TRUNC = 7
  1295. const m__PC_PATH_MAX = 4
  1296. const m__PC_PIPE_BUF = 5
  1297. const m__PC_PRIO_IO = 11
  1298. const m__PC_REC_INCR_XFER_SIZE = 14
  1299. const m__PC_REC_MAX_XFER_SIZE = 15
  1300. const m__PC_REC_MIN_XFER_SIZE = 16
  1301. const m__PC_REC_XFER_ALIGN = 17
  1302. const m__PC_SOCK_MAXBUF = 12
  1303. const m__PC_SYMLINK_MAX = 19
  1304. const m__PC_SYNC_IO = 9
  1305. const m__PC_VDISABLE = 8
  1306. const m__POSIX2_BC_BASE_MAX = 99
  1307. const m__POSIX2_BC_DIM_MAX = 2048
  1308. const m__POSIX2_BC_SCALE_MAX = 99
  1309. const m__POSIX2_BC_STRING_MAX = 1000
  1310. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  1311. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  1312. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  1313. const m__POSIX2_EXPR_NEST_MAX = 32
  1314. const m__POSIX2_LINE_MAX = 2048
  1315. const m__POSIX2_RE_DUP_MAX = 255
  1316. const m__POSIX2_VERSION = "_POSIX_VERSION"
  1317. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  1318. const m__POSIX_AIO_LISTIO_MAX = 2
  1319. const m__POSIX_AIO_MAX = 1
  1320. const m__POSIX_ARG_MAX = 4096
  1321. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  1322. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  1323. const m__POSIX_CHILD_MAX = 25
  1324. const m__POSIX_CHOWN_RESTRICTED = 1
  1325. const m__POSIX_CLOCKRES_MIN = 20000000
  1326. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  1327. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  1328. const m__POSIX_DELAYTIMER_MAX = 32
  1329. const m__POSIX_FSYNC = "_POSIX_VERSION"
  1330. const m__POSIX_HOST_NAME_MAX = 255
  1331. const m__POSIX_IPV6 = "_POSIX_VERSION"
  1332. const m__POSIX_JOB_CONTROL = 1
  1333. const m__POSIX_LINK_MAX = 8
  1334. const m__POSIX_LOGIN_NAME_MAX = 9
  1335. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  1336. const m__POSIX_MAX_CANON = 255
  1337. const m__POSIX_MAX_INPUT = 255
  1338. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  1339. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  1340. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  1341. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  1342. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  1343. const m__POSIX_MQ_OPEN_MAX = 8
  1344. const m__POSIX_MQ_PRIO_MAX = 32
  1345. const m__POSIX_NAME_MAX = 14
  1346. const m__POSIX_NGROUPS_MAX = 8
  1347. const m__POSIX_NO_TRUNC = 1
  1348. const m__POSIX_OPEN_MAX = 20
  1349. const m__POSIX_PATH_MAX = 256
  1350. const m__POSIX_PIPE_BUF = 512
  1351. const m__POSIX_PTHREAD_SEMANTICS = 1
  1352. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  1353. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  1354. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  1355. const m__POSIX_REGEXP = 1
  1356. const m__POSIX_RE_DUP_MAX = 255
  1357. const m__POSIX_RTSIG_MAX = 8
  1358. const m__POSIX_SAVED_IDS = 1
  1359. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  1360. const m__POSIX_SEM_NSEMS_MAX = 256
  1361. const m__POSIX_SEM_VALUE_MAX = 32767
  1362. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  1363. const m__POSIX_SHELL = 1
  1364. const m__POSIX_SIGQUEUE_MAX = 32
  1365. const m__POSIX_SPAWN = "_POSIX_VERSION"
  1366. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  1367. const m__POSIX_SSIZE_MAX = 32767
  1368. const m__POSIX_SS_REPL_MAX = 4
  1369. const m__POSIX_STREAM_MAX = 8
  1370. const m__POSIX_SYMLINK_MAX = 255
  1371. const m__POSIX_SYMLOOP_MAX = 8
  1372. const m__POSIX_THREADS = "_POSIX_VERSION"
  1373. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  1374. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  1375. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  1376. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  1377. const m__POSIX_THREAD_KEYS_MAX = 128
  1378. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  1379. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  1380. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  1381. const m__POSIX_THREAD_THREADS_MAX = 64
  1382. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  1383. const m__POSIX_TIMERS = "_POSIX_VERSION"
  1384. const m__POSIX_TIMER_MAX = 32
  1385. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  1386. const m__POSIX_TRACE_NAME_MAX = 8
  1387. const m__POSIX_TRACE_SYS_MAX = 8
  1388. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  1389. const m__POSIX_TTY_NAME_MAX = 9
  1390. const m__POSIX_TZNAME_MAX = 6
  1391. const m__POSIX_V6_LP64_OFF64 = 1
  1392. const m__POSIX_V7_LP64_OFF64 = 1
  1393. const m__POSIX_VDISABLE = 0
  1394. const m__POSIX_VERSION = 200809
  1395. const m__SC_2_CHAR_TERM = 95
  1396. const m__SC_2_C_BIND = 47
  1397. const m__SC_2_C_DEV = 48
  1398. const m__SC_2_FORT_DEV = 49
  1399. const m__SC_2_FORT_RUN = 50
  1400. const m__SC_2_LOCALEDEF = 52
  1401. const m__SC_2_PBS = 168
  1402. const m__SC_2_PBS_ACCOUNTING = 169
  1403. const m__SC_2_PBS_CHECKPOINT = 175
  1404. const m__SC_2_PBS_LOCATE = 170
  1405. const m__SC_2_PBS_MESSAGE = 171
  1406. const m__SC_2_PBS_TRACK = 172
  1407. const m__SC_2_SW_DEV = 51
  1408. const m__SC_2_UPE = 97
  1409. const m__SC_2_VERSION = 46
  1410. const m__SC_ADVISORY_INFO = 132
  1411. const m__SC_AIO_LISTIO_MAX = 23
  1412. const m__SC_AIO_MAX = 24
  1413. const m__SC_AIO_PRIO_DELTA_MAX = 25
  1414. const m__SC_ARG_MAX = 0
  1415. const m__SC_ASYNCHRONOUS_IO = 12
  1416. const m__SC_ATEXIT_MAX = 87
  1417. const m__SC_AVPHYS_PAGES = 86
  1418. const m__SC_BARRIERS = 133
  1419. const m__SC_BC_BASE_MAX = 36
  1420. const m__SC_BC_DIM_MAX = 37
  1421. const m__SC_BC_SCALE_MAX = 38
  1422. const m__SC_BC_STRING_MAX = 39
  1423. const m__SC_CHILD_MAX = 1
  1424. const m__SC_CLK_TCK = 2
  1425. const m__SC_CLOCK_SELECTION = 137
  1426. const m__SC_COLL_WEIGHTS_MAX = 40
  1427. const m__SC_CPUTIME = 138
  1428. const m__SC_DELAYTIMER_MAX = 26
  1429. const m__SC_EXPR_NEST_MAX = 42
  1430. const m__SC_FSYNC = 15
  1431. const m__SC_GETGR_R_SIZE_MAX = 69
  1432. const m__SC_GETPW_R_SIZE_MAX = 70
  1433. const m__SC_HOST_NAME_MAX = 180
  1434. const m__SC_IOV_MAX = 60
  1435. const m__SC_IPV6 = 235
  1436. const m__SC_JOB_CONTROL = 7
  1437. const m__SC_LINE_MAX = 43
  1438. const m__SC_LOGIN_NAME_MAX = 71
  1439. const m__SC_MAPPED_FILES = 16
  1440. const m__SC_MEMLOCK = 17
  1441. const m__SC_MEMLOCK_RANGE = 18
  1442. const m__SC_MEMORY_PROTECTION = 19
  1443. const m__SC_MESSAGE_PASSING = 20
  1444. const m__SC_MINSIGSTKSZ = 249
  1445. const m__SC_MONOTONIC_CLOCK = 149
  1446. const m__SC_MQ_OPEN_MAX = 27
  1447. const m__SC_MQ_PRIO_MAX = 28
  1448. const m__SC_NGROUPS_MAX = 3
  1449. const m__SC_NPROCESSORS_CONF = 83
  1450. const m__SC_NPROCESSORS_ONLN = 84
  1451. const m__SC_NZERO = 109
  1452. const m__SC_OPEN_MAX = 4
  1453. const m__SC_PAGESIZE = 30
  1454. const m__SC_PAGE_SIZE = 30
  1455. const m__SC_PASS_MAX = 88
  1456. const m__SC_PHYS_PAGES = 85
  1457. const m__SC_PRIORITIZED_IO = 13
  1458. const m__SC_PRIORITY_SCHEDULING = 10
  1459. const m__SC_RAW_SOCKETS = 236
  1460. const m__SC_READER_WRITER_LOCKS = 153
  1461. const m__SC_REALTIME_SIGNALS = 9
  1462. const m__SC_REGEXP = 155
  1463. const m__SC_RE_DUP_MAX = 44
  1464. const m__SC_RTSIG_MAX = 31
  1465. const m__SC_SAVED_IDS = 8
  1466. const m__SC_SEMAPHORES = 21
  1467. const m__SC_SEM_NSEMS_MAX = 32
  1468. const m__SC_SEM_VALUE_MAX = 33
  1469. const m__SC_SHARED_MEMORY_OBJECTS = 22
  1470. const m__SC_SHELL = 157
  1471. const m__SC_SIGQUEUE_MAX = 34
  1472. const m__SC_SIGSTKSZ = 250
  1473. const m__SC_SPAWN = 159
  1474. const m__SC_SPIN_LOCKS = 154
  1475. const m__SC_SPORADIC_SERVER = 160
  1476. const m__SC_SS_REPL_MAX = 241
  1477. const m__SC_STREAMS = 174
  1478. const m__SC_STREAM_MAX = 5
  1479. const m__SC_SYMLOOP_MAX = 173
  1480. const m__SC_SYNCHRONIZED_IO = 14
  1481. const m__SC_THREADS = 67
  1482. const m__SC_THREAD_ATTR_STACKADDR = 77
  1483. const m__SC_THREAD_ATTR_STACKSIZE = 78
  1484. const m__SC_THREAD_CPUTIME = 139
  1485. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  1486. const m__SC_THREAD_KEYS_MAX = 74
  1487. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  1488. const m__SC_THREAD_PRIO_INHERIT = 80
  1489. const m__SC_THREAD_PRIO_PROTECT = 81
  1490. const m__SC_THREAD_PROCESS_SHARED = 82
  1491. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  1492. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  1493. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  1494. const m__SC_THREAD_SPORADIC_SERVER = 161
  1495. const m__SC_THREAD_STACK_MIN = 75
  1496. const m__SC_THREAD_THREADS_MAX = 76
  1497. const m__SC_TIMEOUTS = 164
  1498. const m__SC_TIMERS = 11
  1499. const m__SC_TIMER_MAX = 35
  1500. const m__SC_TRACE = 181
  1501. const m__SC_TRACE_EVENT_FILTER = 182
  1502. const m__SC_TRACE_EVENT_NAME_MAX = 242
  1503. const m__SC_TRACE_INHERIT = 183
  1504. const m__SC_TRACE_LOG = 184
  1505. const m__SC_TRACE_NAME_MAX = 243
  1506. const m__SC_TRACE_SYS_MAX = 244
  1507. const m__SC_TRACE_USER_EVENT_MAX = 245
  1508. const m__SC_TTY_NAME_MAX = 72
  1509. const m__SC_TYPED_MEMORY_OBJECTS = 165
  1510. const m__SC_TZNAME_MAX = 6
  1511. const m__SC_UIO_MAXIOV = 60
  1512. const m__SC_V6_ILP32_OFF32 = 176
  1513. const m__SC_V6_ILP32_OFFBIG = 177
  1514. const m__SC_V6_LP64_OFF64 = 178
  1515. const m__SC_V6_LPBIG_OFFBIG = 179
  1516. const m__SC_V7_ILP32_OFF32 = 237
  1517. const m__SC_V7_ILP32_OFFBIG = 238
  1518. const m__SC_V7_LP64_OFF64 = 239
  1519. const m__SC_V7_LPBIG_OFFBIG = 240
  1520. const m__SC_VERSION = 29
  1521. const m__SC_XBS5_ILP32_OFF32 = 125
  1522. const m__SC_XBS5_ILP32_OFFBIG = 126
  1523. const m__SC_XBS5_LP64_OFF64 = 127
  1524. const m__SC_XBS5_LPBIG_OFFBIG = 128
  1525. const m__SC_XOPEN_CRYPT = 92
  1526. const m__SC_XOPEN_ENH_I18N = 93
  1527. const m__SC_XOPEN_LEGACY = 129
  1528. const m__SC_XOPEN_REALTIME = 130
  1529. const m__SC_XOPEN_REALTIME_THREADS = 131
  1530. const m__SC_XOPEN_SHM = 94
  1531. const m__SC_XOPEN_STREAMS = 246
  1532. const m__SC_XOPEN_UNIX = 91
  1533. const m__SC_XOPEN_VERSION = 89
  1534. const m__SC_XOPEN_XCU_VERSION = 90
  1535. const m__SC_XOPEN_XPG2 = 98
  1536. const m__SC_XOPEN_XPG3 = 99
  1537. const m__SC_XOPEN_XPG4 = 100
  1538. const m__STDC_PREDEF_H = 1
  1539. const m__TANDEM_SOURCE = 1
  1540. const m__XOPEN_ENH_I18N = 1
  1541. const m__XOPEN_IOV_MAX = 16
  1542. const m__XOPEN_NAME_MAX = 255
  1543. const m__XOPEN_PATH_MAX = 1024
  1544. const m__XOPEN_UNIX = 1
  1545. const m__XOPEN_VERSION = 700
  1546. const m___ACCUM_EPSILON__ = "0x1P-15K"
  1547. const m___ACCUM_FBIT__ = 15
  1548. const m___ACCUM_IBIT__ = 16
  1549. const m___ACCUM_MAX__ = "0X7FFFFFFFP-15K"
  1550. const m___ATOMIC_ACQUIRE = 2
  1551. const m___ATOMIC_ACQ_REL = 4
  1552. const m___ATOMIC_CONSUME = 1
  1553. const m___ATOMIC_RELAXED = 0
  1554. const m___ATOMIC_RELEASE = 3
  1555. const m___ATOMIC_SEQ_CST = 5
  1556. const m___BIGGEST_ALIGNMENT__ = 16
  1557. const m___BIG_ENDIAN = 4321
  1558. const m___BYTE_ORDER = 1234
  1559. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1560. const m___CCGO__ = 1
  1561. const m___CHAR_BIT__ = 8
  1562. const m___DA_FBIT__ = 31
  1563. const m___DA_IBIT__ = 32
  1564. const m___DBL_DECIMAL_DIG__ = 17
  1565. const m___DBL_DIG__ = 15
  1566. const m___DBL_HAS_DENORM__ = 1
  1567. const m___DBL_HAS_INFINITY__ = 1
  1568. const m___DBL_HAS_QUIET_NAN__ = 1
  1569. const m___DBL_IS_IEC_60559__ = 1
  1570. const m___DBL_MANT_DIG__ = 53
  1571. const m___DBL_MAX_10_EXP__ = 308
  1572. const m___DBL_MAX_EXP__ = 1024
  1573. const m___DECIMAL_DIG__ = 36
  1574. const m___DEC_EVAL_METHOD__ = 2
  1575. const m___DQ_FBIT__ = 63
  1576. const m___DQ_IBIT__ = 0
  1577. const m___ELF__ = 1
  1578. const m___EXTENSIONS__ = 1
  1579. const m___FINITE_MATH_ONLY__ = 0
  1580. const m___FLOAT128_TYPE__ = 1
  1581. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1582. const m___FLT128_DECIMAL_DIG__ = 36
  1583. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1584. const m___FLT128_DIG__ = 33
  1585. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1586. const m___FLT128_HAS_DENORM__ = 1
  1587. const m___FLT128_HAS_INFINITY__ = 1
  1588. const m___FLT128_HAS_QUIET_NAN__ = 1
  1589. const m___FLT128_IS_IEC_60559__ = 1
  1590. const m___FLT128_MANT_DIG__ = 113
  1591. const m___FLT128_MAX_10_EXP__ = 4932
  1592. const m___FLT128_MAX_EXP__ = 16384
  1593. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1594. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  1595. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1596. const m___FLT32X_DECIMAL_DIG__ = 17
  1597. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1598. const m___FLT32X_DIG__ = 15
  1599. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1600. const m___FLT32X_HAS_DENORM__ = 1
  1601. const m___FLT32X_HAS_INFINITY__ = 1
  1602. const m___FLT32X_HAS_QUIET_NAN__ = 1
  1603. const m___FLT32X_IS_IEC_60559__ = 1
  1604. const m___FLT32X_MANT_DIG__ = 53
  1605. const m___FLT32X_MAX_10_EXP__ = 308
  1606. const m___FLT32X_MAX_EXP__ = 1024
  1607. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  1608. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  1609. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1610. const m___FLT32_DECIMAL_DIG__ = 9
  1611. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1612. const m___FLT32_DIG__ = 6
  1613. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1614. const m___FLT32_HAS_DENORM__ = 1
  1615. const m___FLT32_HAS_INFINITY__ = 1
  1616. const m___FLT32_HAS_QUIET_NAN__ = 1
  1617. const m___FLT32_IS_IEC_60559__ = 1
  1618. const m___FLT32_MANT_DIG__ = 24
  1619. const m___FLT32_MAX_10_EXP__ = 38
  1620. const m___FLT32_MAX_EXP__ = 128
  1621. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  1622. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  1623. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1624. const m___FLT64X_DECIMAL_DIG__ = 36
  1625. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1626. const m___FLT64X_DIG__ = 33
  1627. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1628. const m___FLT64X_HAS_DENORM__ = 1
  1629. const m___FLT64X_HAS_INFINITY__ = 1
  1630. const m___FLT64X_HAS_QUIET_NAN__ = 1
  1631. const m___FLT64X_IS_IEC_60559__ = 1
  1632. const m___FLT64X_MANT_DIG__ = 113
  1633. const m___FLT64X_MAX_10_EXP__ = 4932
  1634. const m___FLT64X_MAX_EXP__ = 16384
  1635. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1636. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  1637. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1638. const m___FLT64_DECIMAL_DIG__ = 17
  1639. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1640. const m___FLT64_DIG__ = 15
  1641. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1642. const m___FLT64_HAS_DENORM__ = 1
  1643. const m___FLT64_HAS_INFINITY__ = 1
  1644. const m___FLT64_HAS_QUIET_NAN__ = 1
  1645. const m___FLT64_IS_IEC_60559__ = 1
  1646. const m___FLT64_MANT_DIG__ = 53
  1647. const m___FLT64_MAX_10_EXP__ = 308
  1648. const m___FLT64_MAX_EXP__ = 1024
  1649. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  1650. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  1651. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1652. const m___FLT_DECIMAL_DIG__ = 9
  1653. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1654. const m___FLT_DIG__ = 6
  1655. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1656. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  1657. const m___FLT_EVAL_METHOD__ = 0
  1658. const m___FLT_HAS_DENORM__ = 1
  1659. const m___FLT_HAS_INFINITY__ = 1
  1660. const m___FLT_HAS_QUIET_NAN__ = 1
  1661. const m___FLT_IS_IEC_60559__ = 1
  1662. const m___FLT_MANT_DIG__ = 24
  1663. const m___FLT_MAX_10_EXP__ = 38
  1664. const m___FLT_MAX_EXP__ = 128
  1665. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  1666. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  1667. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1668. const m___FLT_RADIX__ = 2
  1669. const m___FP_FAST_FMA = 1
  1670. const m___FP_FAST_FMAF = 1
  1671. const m___FP_FAST_FMAF32 = 1
  1672. const m___FP_FAST_FMAF32x = 1
  1673. const m___FP_FAST_FMAF64 = 1
  1674. const m___FRACT_EPSILON__ = "0x1P-15R"
  1675. const m___FRACT_FBIT__ = 15
  1676. const m___FRACT_IBIT__ = 0
  1677. const m___FRACT_MAX__ = "0X7FFFP-15R"
  1678. const m___FUNCTION__ = "__func__"
  1679. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  1680. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1681. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1682. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  1683. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1684. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  1685. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1686. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1687. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  1688. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1689. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1690. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  1691. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  1692. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  1693. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1694. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  1695. const m___GCC_IEC_559 = 2
  1696. const m___GCC_IEC_559_COMPLEX = 2
  1697. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  1698. const m___GNUC_MINOR__ = 2
  1699. const m___GNUC_PATCHLEVEL__ = 1
  1700. const m___GNUC_RH_RELEASE__ = 6
  1701. const m___GNUC_STDC_INLINE__ = 1
  1702. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  1703. const m___GNUC__ = 14
  1704. const m___GXX_ABI_VERSION = 1019
  1705. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  1706. const m___HA_FBIT__ = 7
  1707. const m___HA_IBIT__ = 8
  1708. const m___HQ_FBIT__ = 15
  1709. const m___HQ_IBIT__ = 0
  1710. const m___INT16_MAX__ = 0x7fff
  1711. const m___INT32_MAX__ = 0x7fffffff
  1712. const m___INT32_TYPE__ = "int"
  1713. const m___INT64_MAX__ = 0x7fffffffffffffff
  1714. const m___INT8_MAX__ = 0x7f
  1715. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  1716. const m___INTMAX_WIDTH__ = 64
  1717. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  1718. const m___INTPTR_WIDTH__ = 64
  1719. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  1720. const m___INT_FAST16_WIDTH__ = 64
  1721. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  1722. const m___INT_FAST32_WIDTH__ = 64
  1723. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  1724. const m___INT_FAST64_WIDTH__ = 64
  1725. const m___INT_FAST8_MAX__ = 0x7f
  1726. const m___INT_FAST8_WIDTH__ = 8
  1727. const m___INT_LEAST16_MAX__ = 0x7fff
  1728. const m___INT_LEAST16_WIDTH__ = 16
  1729. const m___INT_LEAST32_MAX__ = 0x7fffffff
  1730. const m___INT_LEAST32_TYPE__ = "int"
  1731. const m___INT_LEAST32_WIDTH__ = 32
  1732. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  1733. const m___INT_LEAST64_WIDTH__ = 64
  1734. const m___INT_LEAST8_MAX__ = 0x7f
  1735. const m___INT_LEAST8_WIDTH__ = 8
  1736. const m___INT_MAX__ = 0x7fffffff
  1737. const m___INT_WIDTH__ = 32
  1738. const m___LACCUM_EPSILON__ = "0x1P-31LK"
  1739. const m___LACCUM_FBIT__ = 31
  1740. const m___LACCUM_IBIT__ = 32
  1741. const m___LACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFP-31LK"
  1742. const m___LDBL_DECIMAL_DIG__ = 36
  1743. const m___LDBL_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1744. const m___LDBL_DIG__ = 33
  1745. const m___LDBL_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1746. const m___LDBL_HAS_DENORM__ = 1
  1747. const m___LDBL_HAS_INFINITY__ = 1
  1748. const m___LDBL_HAS_QUIET_NAN__ = 1
  1749. const m___LDBL_IS_IEC_60559__ = 1
  1750. const m___LDBL_MANT_DIG__ = 113
  1751. const m___LDBL_MAX_10_EXP__ = 4932
  1752. const m___LDBL_MAX_EXP__ = 16384
  1753. const m___LDBL_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1754. const m___LDBL_MIN__ = 3.36210314311209350626267781732175260e-4932
  1755. const m___LDBL_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1756. const m___LFRACT_EPSILON__ = "0x1P-31LR"
  1757. const m___LFRACT_FBIT__ = 31
  1758. const m___LFRACT_IBIT__ = 0
  1759. const m___LFRACT_MAX__ = "0X7FFFFFFFP-31LR"
  1760. const m___LITTLE_ENDIAN = 1234
  1761. const m___LLACCUM_EPSILON__ = "0x1P-63LLK"
  1762. const m___LLACCUM_FBIT__ = 63
  1763. const m___LLACCUM_IBIT__ = 64
  1764. const m___LLACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFP-63LLK"
  1765. const m___LLFRACT_EPSILON__ = "0x1P-63LLR"
  1766. const m___LLFRACT_FBIT__ = 63
  1767. const m___LLFRACT_IBIT__ = 0
  1768. const m___LLFRACT_MAX__ = "0X7FFFFFFFFFFFFFFFP-63LLR"
  1769. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1770. const m___LONG_LONG_WIDTH__ = 64
  1771. const m___LONG_MAX = 0x7fffffffffffffff
  1772. const m___LONG_MAX__ = 0x7fffffffffffffff
  1773. const m___LONG_WIDTH__ = 64
  1774. const m___LP64__ = 1
  1775. const m___NO_INLINE__ = 1
  1776. const m___ORDER_BIG_ENDIAN__ = 4321
  1777. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1778. const m___ORDER_PDP_ENDIAN__ = 3412
  1779. const m___PDP_ENDIAN = 3412
  1780. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1781. const m___PRETTY_FUNCTION__ = "__func__"
  1782. const m___PRI64 = "l"
  1783. const m___PRIPTR = "l"
  1784. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  1785. const m___PTRDIFF_WIDTH__ = 64
  1786. const m___QQ_FBIT__ = 7
  1787. const m___QQ_IBIT__ = 0
  1788. const m___REGISTER_PREFIX__ = "$"
  1789. const m___SACCUM_EPSILON__ = "0x1P-7HK"
  1790. const m___SACCUM_FBIT__ = 7
  1791. const m___SACCUM_IBIT__ = 8
  1792. const m___SACCUM_MAX__ = "0X7FFFP-7HK"
  1793. const m___SA_FBIT__ = 15
  1794. const m___SA_IBIT__ = 16
  1795. const m___SCHAR_MAX__ = 0x7f
  1796. const m___SCHAR_WIDTH__ = 8
  1797. const m___SFRACT_EPSILON__ = "0x1P-7HR"
  1798. const m___SFRACT_FBIT__ = 7
  1799. const m___SFRACT_IBIT__ = 0
  1800. const m___SFRACT_MAX__ = "0X7FP-7HR"
  1801. const m___SHRT_MAX__ = 0x7fff
  1802. const m___SHRT_WIDTH__ = 16
  1803. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1804. const m___SIG_ATOMIC_TYPE__ = "int"
  1805. const m___SIG_ATOMIC_WIDTH__ = 32
  1806. const m___SIZEOF_DOUBLE__ = 8
  1807. const m___SIZEOF_FLOAT__ = 4
  1808. const m___SIZEOF_INT128__ = 16
  1809. const m___SIZEOF_INT__ = 4
  1810. const m___SIZEOF_LONG_DOUBLE__ = 8
  1811. const m___SIZEOF_LONG_LONG__ = 8
  1812. const m___SIZEOF_LONG__ = 8
  1813. const m___SIZEOF_POINTER__ = 8
  1814. const m___SIZEOF_PTRDIFF_T__ = 8
  1815. const m___SIZEOF_SHORT__ = 2
  1816. const m___SIZEOF_SIZE_T__ = 8
  1817. const m___SIZEOF_WCHAR_T__ = 4
  1818. const m___SIZEOF_WINT_T__ = 4
  1819. const m___SIZE_MAX__ = 0xffffffffffffffff
  1820. const m___SIZE_WIDTH__ = 64
  1821. const m___SQ_FBIT__ = 31
  1822. const m___SQ_IBIT__ = 0
  1823. const m___STDC_HOSTED__ = 1
  1824. const m___STDC_IEC_559_COMPLEX__ = 1
  1825. const m___STDC_IEC_559__ = 1
  1826. const m___STDC_IEC_60559_BFP__ = 201404
  1827. const m___STDC_IEC_60559_COMPLEX__ = 201404
  1828. const m___STDC_ISO_10646__ = 201706
  1829. const m___STDC_UTF_16__ = 1
  1830. const m___STDC_UTF_32__ = 1
  1831. const m___STDC_VERSION__ = 201710
  1832. const m___STDC__ = 1
  1833. const m___TA_FBIT__ = 63
  1834. const m___TA_IBIT__ = 64
  1835. const m___TQ_FBIT__ = 127
  1836. const m___TQ_IBIT__ = 0
  1837. const m___UACCUM_EPSILON__ = "0x1P-16UK"
  1838. const m___UACCUM_FBIT__ = 16
  1839. const m___UACCUM_IBIT__ = 16
  1840. const m___UACCUM_MAX__ = "0XFFFFFFFFP-16UK"
  1841. const m___UACCUM_MIN__ = "0.0UK"
  1842. const m___UAPI_DEF_IN6_ADDR = 0
  1843. const m___UAPI_DEF_IN6_ADDR_ALT = 0
  1844. const m___UAPI_DEF_IN6_PKTINFO = 0
  1845. const m___UAPI_DEF_IN_ADDR = 0
  1846. const m___UAPI_DEF_IN_CLASS = 0
  1847. const m___UAPI_DEF_IN_IPPROTO = 0
  1848. const m___UAPI_DEF_IN_PKTINFO = 0
  1849. const m___UAPI_DEF_IP6_MTUINFO = 0
  1850. const m___UAPI_DEF_IPPROTO_V6 = 0
  1851. const m___UAPI_DEF_IPV6_MREQ = 0
  1852. const m___UAPI_DEF_IPV6_OPTIONS = 0
  1853. const m___UAPI_DEF_IP_MREQ = 0
  1854. const m___UAPI_DEF_SOCKADDR_IN = 0
  1855. const m___UAPI_DEF_SOCKADDR_IN6 = 0
  1856. const m___UDA_FBIT__ = 32
  1857. const m___UDA_IBIT__ = 32
  1858. const m___UDQ_FBIT__ = 64
  1859. const m___UDQ_IBIT__ = 0
  1860. const m___UFRACT_EPSILON__ = "0x1P-16UR"
  1861. const m___UFRACT_FBIT__ = 16
  1862. const m___UFRACT_IBIT__ = 0
  1863. const m___UFRACT_MAX__ = "0XFFFFP-16UR"
  1864. const m___UFRACT_MIN__ = "0.0UR"
  1865. const m___UHA_FBIT__ = 8
  1866. const m___UHA_IBIT__ = 8
  1867. const m___UHQ_FBIT__ = 16
  1868. const m___UHQ_IBIT__ = 0
  1869. const m___UINT16_MAX__ = 0xffff
  1870. const m___UINT32_MAX__ = 0xffffffff
  1871. const m___UINT64_MAX__ = 0xffffffffffffffff
  1872. const m___UINT8_MAX__ = 0xff
  1873. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  1874. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  1875. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  1876. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  1877. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  1878. const m___UINT_FAST8_MAX__ = 0xff
  1879. const m___UINT_LEAST16_MAX__ = 0xffff
  1880. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1881. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  1882. const m___UINT_LEAST8_MAX__ = 0xff
  1883. const m___ULACCUM_EPSILON__ = "0x1P-32ULK"
  1884. const m___ULACCUM_FBIT__ = 32
  1885. const m___ULACCUM_IBIT__ = 32
  1886. const m___ULACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFP-32ULK"
  1887. const m___ULACCUM_MIN__ = "0.0ULK"
  1888. const m___ULFRACT_EPSILON__ = "0x1P-32ULR"
  1889. const m___ULFRACT_FBIT__ = 32
  1890. const m___ULFRACT_IBIT__ = 0
  1891. const m___ULFRACT_MAX__ = "0XFFFFFFFFP-32ULR"
  1892. const m___ULFRACT_MIN__ = "0.0ULR"
  1893. const m___ULLACCUM_EPSILON__ = "0x1P-64ULLK"
  1894. const m___ULLACCUM_FBIT__ = 64
  1895. const m___ULLACCUM_IBIT__ = 64
  1896. const m___ULLACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFP-64ULLK"
  1897. const m___ULLACCUM_MIN__ = "0.0ULLK"
  1898. const m___ULLFRACT_EPSILON__ = "0x1P-64ULLR"
  1899. const m___ULLFRACT_FBIT__ = 64
  1900. const m___ULLFRACT_IBIT__ = 0
  1901. const m___ULLFRACT_MAX__ = "0XFFFFFFFFFFFFFFFFP-64ULLR"
  1902. const m___ULLFRACT_MIN__ = "0.0ULLR"
  1903. const m___UQQ_FBIT__ = 8
  1904. const m___UQQ_IBIT__ = 0
  1905. const m___USACCUM_EPSILON__ = "0x1P-8UHK"
  1906. const m___USACCUM_FBIT__ = 8
  1907. const m___USACCUM_IBIT__ = 8
  1908. const m___USACCUM_MAX__ = "0XFFFFP-8UHK"
  1909. const m___USACCUM_MIN__ = "0.0UHK"
  1910. const m___USA_FBIT__ = 16
  1911. const m___USA_IBIT__ = 16
  1912. const m___USE_TIME_BITS64 = 1
  1913. const m___USFRACT_EPSILON__ = "0x1P-8UHR"
  1914. const m___USFRACT_FBIT__ = 8
  1915. const m___USFRACT_IBIT__ = 0
  1916. const m___USFRACT_MAX__ = "0XFFP-8UHR"
  1917. const m___USFRACT_MIN__ = "0.0UHR"
  1918. const m___USQ_FBIT__ = 32
  1919. const m___USQ_IBIT__ = 0
  1920. const m___UTA_FBIT__ = 64
  1921. const m___UTA_IBIT__ = 64
  1922. const m___UTQ_FBIT__ = 128
  1923. const m___UTQ_IBIT__ = 0
  1924. const m___VERSION__ = "14.2.1 20241104 (Red Hat 14.2.1-6)"
  1925. const m___WCHAR_MAX__ = 0x7fffffff
  1926. const m___WCHAR_TYPE__ = "int"
  1927. const m___WCHAR_WIDTH__ = 32
  1928. const m___WINT_MAX__ = 0xffffffff
  1929. const m___WINT_MIN__ = 0
  1930. const m___WINT_WIDTH__ = 32
  1931. const m___builtin_copysignq = "__builtin_copysignf128"
  1932. const m___builtin_fabsq = "__builtin_fabsf128"
  1933. const m___builtin_huge_valq = "__builtin_huge_valf128"
  1934. const m___builtin_infq = "__builtin_inff128"
  1935. const m___builtin_nanq = "__builtin_nanf128"
  1936. const m___builtin_nansq = "__builtin_nansf128"
  1937. const m___gnu_linux__ = 1
  1938. const m___inline = "inline"
  1939. const m___linux = 1
  1940. const m___linux__ = 1
  1941. const m___loongarch64 = 1
  1942. const m___loongarch__ = 1
  1943. const m___loongarch_arch = "la64v1.0"
  1944. const m___loongarch_double_float = 1
  1945. const m___loongarch_frlen = 64
  1946. const m___loongarch_grlen = 64
  1947. const m___loongarch_hard_float = 1
  1948. const m___loongarch_lp64 = 1
  1949. const m___loongarch_simd = 1
  1950. const m___loongarch_simd_width = 128
  1951. const m___loongarch_sx = 1
  1952. const m___loongarch_tune = "generic"
  1953. const m___loongarch_version_major = 1
  1954. const m___loongarch_version_minor = 0
  1955. const m___restrict = "restrict"
  1956. const m___restrict_arr = "restrict"
  1957. const m___tm_gmtoff = "tm_gmtoff"
  1958. const m___tm_zone = "tm_zone"
  1959. const m___unix = 1
  1960. const m___unix__ = 1
  1961. const m_alloca = "__builtin_alloca"
  1962. const m_linux = 1
  1963. const m_loff_t = "off_t"
  1964. const m_static_assert = "_Static_assert"
  1965. const m_unix = 1
  1966. type t__builtin_va_list = uintptr
  1967. type t__predefined_size_t = uint64
  1968. type t__predefined_wchar_t = int32
  1969. type t__predefined_ptrdiff_t = int64
  1970. type Tsize_t = uint64
  1971. type Tlocale_t = uintptr
  1972. type Tssize_t = int64
  1973. type Toff_t = int64
  1974. type Tva_list = uintptr
  1975. type t__isoc_va_list = uintptr
  1976. type Tfpos_t = struct {
  1977. F__lldata [0]int64
  1978. F__align [0]float64
  1979. F__opaque [16]int8
  1980. }
  1981. type T_G_fpos64_t = Tfpos_t
  1982. type Tcookie_io_functions_t = struct {
  1983. Fread uintptr
  1984. Fwrite uintptr
  1985. Fseek uintptr
  1986. Fclose1 uintptr
  1987. }
  1988. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  1989. type Tintptr_t = int64
  1990. type Tpid_t = int32
  1991. type Tuid_t = uint32
  1992. type Tgid_t = uint32
  1993. type Tuseconds_t = uint32
  1994. type Twchar_t = int32
  1995. type Tdiv_t = struct {
  1996. Fquot int32
  1997. Frem int32
  1998. }
  1999. type Tldiv_t = struct {
  2000. Fquot int64
  2001. Frem int64
  2002. }
  2003. type Tlldiv_t = struct {
  2004. Fquot int64
  2005. Frem int64
  2006. }
  2007. type Tmode_t = uint32
  2008. type Tiovec = struct {
  2009. Fiov_base uintptr
  2010. Fiov_len Tsize_t
  2011. }
  2012. type Tflock = struct {
  2013. Fl_type int16
  2014. Fl_whence int16
  2015. Fl_start Toff_t
  2016. Fl_len Toff_t
  2017. Fl_pid Tpid_t
  2018. }
  2019. type Tfile_handle = struct {
  2020. Fhandle_bytes uint32
  2021. Fhandle_type int32
  2022. }
  2023. type Tf_owner_ex = struct {
  2024. Ftype1 int32
  2025. Fpid Tpid_t
  2026. }
  2027. type Tnlink_t = uint32
  2028. type Tblksize_t = int32
  2029. type Tregister_t = int64
  2030. type Ttime_t = int64
  2031. type Tsuseconds_t = int64
  2032. type Tint8_t = int8
  2033. type Tint16_t = int16
  2034. type Tint32_t = int32
  2035. type Tint64_t = int64
  2036. type Tu_int64_t = uint64
  2037. type Tino_t = uint64
  2038. type Tdev_t = uint64
  2039. type Tblkcnt_t = int64
  2040. type Tfsblkcnt_t = uint64
  2041. type Tfsfilcnt_t = uint64
  2042. type Ttimer_t = uintptr
  2043. type Tclockid_t = int32
  2044. type Tclock_t = int64
  2045. type Tid_t = uint32
  2046. type Tkey_t = int32
  2047. type Tpthread_t = uintptr
  2048. type Tpthread_once_t = int32
  2049. type Tpthread_key_t = uint32
  2050. type Tpthread_spinlock_t = int32
  2051. type Tpthread_mutexattr_t = struct {
  2052. F__attr uint32
  2053. }
  2054. type Tpthread_condattr_t = struct {
  2055. F__attr uint32
  2056. }
  2057. type Tpthread_barrierattr_t = struct {
  2058. F__attr uint32
  2059. }
  2060. type Tpthread_rwlockattr_t = struct {
  2061. F__attr [2]uint32
  2062. }
  2063. type Tpthread_attr_t = struct {
  2064. F__u struct {
  2065. F__vi [0][14]int32
  2066. F__s [0][7]uint64
  2067. F__i [14]int32
  2068. }
  2069. }
  2070. type Tpthread_mutex_t = struct {
  2071. F__u struct {
  2072. F__vi [0][10]int32
  2073. F__p [0][5]uintptr
  2074. F__i [10]int32
  2075. }
  2076. }
  2077. type Tpthread_cond_t = struct {
  2078. F__u struct {
  2079. F__vi [0][12]int32
  2080. F__p [0][6]uintptr
  2081. F__i [12]int32
  2082. }
  2083. }
  2084. type Tpthread_rwlock_t = struct {
  2085. F__u struct {
  2086. F__vi [0][14]int32
  2087. F__p [0][7]uintptr
  2088. F__i [14]int32
  2089. }
  2090. }
  2091. type Tpthread_barrier_t = struct {
  2092. F__u struct {
  2093. F__vi [0][8]int32
  2094. F__p [0][4]uintptr
  2095. F__i [8]int32
  2096. }
  2097. }
  2098. type Tu_int8_t = uint8
  2099. type Tu_int16_t = uint16
  2100. type Tu_int32_t = uint32
  2101. type Tcaddr_t = uintptr
  2102. type Tu_char = uint8
  2103. type Tu_short = uint16
  2104. type Tushort = uint16
  2105. type Tu_int = uint32
  2106. type Tuint = uint32
  2107. type Tu_long = uint64
  2108. type Tulong = uint64
  2109. type Tquad_t = int64
  2110. type Tu_quad_t = uint64
  2111. type Tuint16_t = uint16
  2112. type Tuint32_t = uint32
  2113. type Tuint64_t = uint64
  2114. type Ttimeval = struct {
  2115. Ftv_sec Ttime_t
  2116. Ftv_usec Tsuseconds_t
  2117. }
  2118. type Ttimespec = struct {
  2119. Ftv_sec Ttime_t
  2120. Ftv_nsec int64
  2121. }
  2122. type Tsigset_t = struct {
  2123. F__bits [16]uint64
  2124. }
  2125. type t__sigset_t = Tsigset_t
  2126. type Tfd_mask = uint64
  2127. type Tfd_set = struct {
  2128. Ffds_bits [16]uint64
  2129. }
  2130. type Tuintptr_t = uint64
  2131. type Tintmax_t = int64
  2132. type Tuint8_t = uint8
  2133. type Tuintmax_t = uint64
  2134. type Tint_fast8_t = int8
  2135. type Tint_fast64_t = int64
  2136. type Tint_least8_t = int8
  2137. type Tint_least16_t = int16
  2138. type Tint_least32_t = int32
  2139. type Tint_least64_t = int64
  2140. type Tuint_fast8_t = uint8
  2141. type Tuint_fast64_t = uint64
  2142. type Tuint_least8_t = uint8
  2143. type Tuint_least16_t = uint16
  2144. type Tuint_least32_t = uint32
  2145. type Tuint_least64_t = uint64
  2146. type Tint_fast16_t = int32
  2147. type Tint_fast32_t = int32
  2148. type Tuint_fast16_t = uint32
  2149. type Tuint_fast32_t = uint32
  2150. type Tsched_param = struct {
  2151. Fsched_priority int32
  2152. F__reserved1 int32
  2153. F__reserved2 [2]struct {
  2154. F__reserved1 Ttime_t
  2155. F__reserved2 int64
  2156. }
  2157. F__reserved3 int32
  2158. }
  2159. type Tcpu_set_t = struct {
  2160. F__bits [16]uint64
  2161. }
  2162. type Ttm = struct {
  2163. Ftm_sec int32
  2164. Ftm_min int32
  2165. Ftm_hour int32
  2166. Ftm_mday int32
  2167. Ftm_mon int32
  2168. Ftm_year int32
  2169. Ftm_wday int32
  2170. Ftm_yday int32
  2171. Ftm_isdst int32
  2172. Ftm_gmtoff int64
  2173. Ftm_zone uintptr
  2174. }
  2175. type Titimerspec = struct {
  2176. Fit_interval Ttimespec
  2177. Fit_value Ttimespec
  2178. }
  2179. type t__ptcb = struct {
  2180. F__f uintptr
  2181. F__x uintptr
  2182. F__next uintptr
  2183. }
  2184. type Tcpu_set_t1 = struct {
  2185. F__bits [16]uint64
  2186. }
  2187. type Txcb_connection_t = struct {
  2188. Fhas_error int32
  2189. Fsetup uintptr
  2190. Ffd int32
  2191. Fiolock Tpthread_mutex_t
  2192. Fin T_xcb_in
  2193. Fout T_xcb_out
  2194. Fext T_xcb_ext
  2195. Fxid T_xcb_xid
  2196. }
  2197. type Txcb_generic_iterator_t = struct {
  2198. Fdata uintptr
  2199. Frem int32
  2200. Findex int32
  2201. }
  2202. type Txcb_generic_reply_t = struct {
  2203. Fresponse_type Tuint8_t
  2204. Fpad0 Tuint8_t
  2205. Fsequence Tuint16_t
  2206. Flength Tuint32_t
  2207. }
  2208. type Txcb_generic_event_t = struct {
  2209. Fresponse_type Tuint8_t
  2210. Fpad0 Tuint8_t
  2211. Fsequence Tuint16_t
  2212. Fpad [7]Tuint32_t
  2213. Ffull_sequence Tuint32_t
  2214. }
  2215. type Txcb_raw_generic_event_t = struct {
  2216. Fresponse_type Tuint8_t
  2217. Fpad0 Tuint8_t
  2218. Fsequence Tuint16_t
  2219. Fpad [7]Tuint32_t
  2220. }
  2221. type Txcb_ge_event_t = struct {
  2222. Fresponse_type Tuint8_t
  2223. Fpad0 Tuint8_t
  2224. Fsequence Tuint16_t
  2225. Flength Tuint32_t
  2226. Fevent_type Tuint16_t
  2227. Fpad1 Tuint16_t
  2228. Fpad [5]Tuint32_t
  2229. Ffull_sequence Tuint32_t
  2230. }
  2231. type Txcb_generic_error_t = struct {
  2232. Fresponse_type Tuint8_t
  2233. Ferror_code Tuint8_t
  2234. Fsequence Tuint16_t
  2235. Fresource_id Tuint32_t
  2236. Fminor_code Tuint16_t
  2237. Fmajor_code Tuint8_t
  2238. Fpad0 Tuint8_t
  2239. Fpad [5]Tuint32_t
  2240. Ffull_sequence Tuint32_t
  2241. }
  2242. type Txcb_void_cookie_t = struct {
  2243. Fsequence uint32
  2244. }
  2245. type Txcb_char2b_t = struct {
  2246. Fbyte1 Tuint8_t
  2247. Fbyte2 Tuint8_t
  2248. }
  2249. type Txcb_char2b_iterator_t = struct {
  2250. Fdata uintptr
  2251. Frem int32
  2252. Findex int32
  2253. }
  2254. type Txcb_window_t = uint32
  2255. type Txcb_window_iterator_t = struct {
  2256. Fdata uintptr
  2257. Frem int32
  2258. Findex int32
  2259. }
  2260. type Txcb_pixmap_t = uint32
  2261. type Txcb_pixmap_iterator_t = struct {
  2262. Fdata uintptr
  2263. Frem int32
  2264. Findex int32
  2265. }
  2266. type Txcb_cursor_t = uint32
  2267. type Txcb_cursor_iterator_t = struct {
  2268. Fdata uintptr
  2269. Frem int32
  2270. Findex int32
  2271. }
  2272. type Txcb_font_t = uint32
  2273. type Txcb_font_iterator_t = struct {
  2274. Fdata uintptr
  2275. Frem int32
  2276. Findex int32
  2277. }
  2278. type Txcb_gcontext_t = uint32
  2279. type Txcb_gcontext_iterator_t = struct {
  2280. Fdata uintptr
  2281. Frem int32
  2282. Findex int32
  2283. }
  2284. type Txcb_colormap_t = uint32
  2285. type Txcb_colormap_iterator_t = struct {
  2286. Fdata uintptr
  2287. Frem int32
  2288. Findex int32
  2289. }
  2290. type Txcb_atom_t = uint32
  2291. type Txcb_atom_iterator_t = struct {
  2292. Fdata uintptr
  2293. Frem int32
  2294. Findex int32
  2295. }
  2296. type Txcb_drawable_t = uint32
  2297. type Txcb_drawable_iterator_t = struct {
  2298. Fdata uintptr
  2299. Frem int32
  2300. Findex int32
  2301. }
  2302. type Txcb_fontable_t = uint32
  2303. type Txcb_fontable_iterator_t = struct {
  2304. Fdata uintptr
  2305. Frem int32
  2306. Findex int32
  2307. }
  2308. type Txcb_bool32_t = uint32
  2309. type Txcb_bool32_iterator_t = struct {
  2310. Fdata uintptr
  2311. Frem int32
  2312. Findex int32
  2313. }
  2314. type Txcb_visualid_t = uint32
  2315. type Txcb_visualid_iterator_t = struct {
  2316. Fdata uintptr
  2317. Frem int32
  2318. Findex int32
  2319. }
  2320. type Txcb_timestamp_t = uint32
  2321. type Txcb_timestamp_iterator_t = struct {
  2322. Fdata uintptr
  2323. Frem int32
  2324. Findex int32
  2325. }
  2326. type Txcb_keysym_t = uint32
  2327. type Txcb_keysym_iterator_t = struct {
  2328. Fdata uintptr
  2329. Frem int32
  2330. Findex int32
  2331. }
  2332. type Txcb_keycode_t = uint8
  2333. type Txcb_keycode_iterator_t = struct {
  2334. Fdata uintptr
  2335. Frem int32
  2336. Findex int32
  2337. }
  2338. type Txcb_keycode32_t = uint32
  2339. type Txcb_keycode32_iterator_t = struct {
  2340. Fdata uintptr
  2341. Frem int32
  2342. Findex int32
  2343. }
  2344. type Txcb_button_t = uint8
  2345. type Txcb_button_iterator_t = struct {
  2346. Fdata uintptr
  2347. Frem int32
  2348. Findex int32
  2349. }
  2350. type Txcb_point_t = struct {
  2351. Fx Tint16_t
  2352. Fy Tint16_t
  2353. }
  2354. type Txcb_point_iterator_t = struct {
  2355. Fdata uintptr
  2356. Frem int32
  2357. Findex int32
  2358. }
  2359. type Txcb_rectangle_t = struct {
  2360. Fx Tint16_t
  2361. Fy Tint16_t
  2362. Fwidth Tuint16_t
  2363. Fheight Tuint16_t
  2364. }
  2365. type Txcb_rectangle_iterator_t = struct {
  2366. Fdata uintptr
  2367. Frem int32
  2368. Findex int32
  2369. }
  2370. type Txcb_arc_t = struct {
  2371. Fx Tint16_t
  2372. Fy Tint16_t
  2373. Fwidth Tuint16_t
  2374. Fheight Tuint16_t
  2375. Fangle1 Tint16_t
  2376. Fangle2 Tint16_t
  2377. }
  2378. type Txcb_arc_iterator_t = struct {
  2379. Fdata uintptr
  2380. Frem int32
  2381. Findex int32
  2382. }
  2383. type Txcb_format_t = struct {
  2384. Fdepth Tuint8_t
  2385. Fbits_per_pixel Tuint8_t
  2386. Fscanline_pad Tuint8_t
  2387. Fpad0 [5]Tuint8_t
  2388. }
  2389. type Txcb_format_iterator_t = struct {
  2390. Fdata uintptr
  2391. Frem int32
  2392. Findex int32
  2393. }
  2394. type Txcb_visual_class_t = int32
  2395. type _xcb_visual_class_t = int32
  2396. const _XCB_VISUAL_CLASS_STATIC_GRAY = 0
  2397. const _XCB_VISUAL_CLASS_GRAY_SCALE = 1
  2398. const _XCB_VISUAL_CLASS_STATIC_COLOR = 2
  2399. const _XCB_VISUAL_CLASS_PSEUDO_COLOR = 3
  2400. const _XCB_VISUAL_CLASS_TRUE_COLOR = 4
  2401. const _XCB_VISUAL_CLASS_DIRECT_COLOR = 5
  2402. type Txcb_visualtype_t = struct {
  2403. Fvisual_id Txcb_visualid_t
  2404. F_class Tuint8_t
  2405. Fbits_per_rgb_value Tuint8_t
  2406. Fcolormap_entries Tuint16_t
  2407. Fred_mask Tuint32_t
  2408. Fgreen_mask Tuint32_t
  2409. Fblue_mask Tuint32_t
  2410. Fpad0 [4]Tuint8_t
  2411. }
  2412. type Txcb_visualtype_iterator_t = struct {
  2413. Fdata uintptr
  2414. Frem int32
  2415. Findex int32
  2416. }
  2417. type Txcb_depth_t = struct {
  2418. Fdepth Tuint8_t
  2419. Fpad0 Tuint8_t
  2420. Fvisuals_len Tuint16_t
  2421. Fpad1 [4]Tuint8_t
  2422. }
  2423. type Txcb_depth_iterator_t = struct {
  2424. Fdata uintptr
  2425. Frem int32
  2426. Findex int32
  2427. }
  2428. type Txcb_event_mask_t = int32
  2429. type _xcb_event_mask_t = int32
  2430. const _XCB_EVENT_MASK_NO_EVENT = 0
  2431. const _XCB_EVENT_MASK_KEY_PRESS = 1
  2432. const _XCB_EVENT_MASK_KEY_RELEASE = 2
  2433. const _XCB_EVENT_MASK_BUTTON_PRESS = 4
  2434. const _XCB_EVENT_MASK_BUTTON_RELEASE = 8
  2435. const _XCB_EVENT_MASK_ENTER_WINDOW = 16
  2436. const _XCB_EVENT_MASK_LEAVE_WINDOW = 32
  2437. const _XCB_EVENT_MASK_POINTER_MOTION = 64
  2438. const _XCB_EVENT_MASK_POINTER_MOTION_HINT = 128
  2439. const _XCB_EVENT_MASK_BUTTON_1_MOTION = 256
  2440. const _XCB_EVENT_MASK_BUTTON_2_MOTION = 512
  2441. const _XCB_EVENT_MASK_BUTTON_3_MOTION = 1024
  2442. const _XCB_EVENT_MASK_BUTTON_4_MOTION = 2048
  2443. const _XCB_EVENT_MASK_BUTTON_5_MOTION = 4096
  2444. const _XCB_EVENT_MASK_BUTTON_MOTION = 8192
  2445. const _XCB_EVENT_MASK_KEYMAP_STATE = 16384
  2446. const _XCB_EVENT_MASK_EXPOSURE = 32768
  2447. const _XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536
  2448. const _XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072
  2449. const _XCB_EVENT_MASK_RESIZE_REDIRECT = 262144
  2450. const _XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288
  2451. const _XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576
  2452. const _XCB_EVENT_MASK_FOCUS_CHANGE = 2097152
  2453. const _XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304
  2454. const _XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608
  2455. const _XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
  2456. type Txcb_backing_store_t = int32
  2457. type _xcb_backing_store_t = int32
  2458. const _XCB_BACKING_STORE_NOT_USEFUL = 0
  2459. const _XCB_BACKING_STORE_WHEN_MAPPED = 1
  2460. const _XCB_BACKING_STORE_ALWAYS = 2
  2461. type Txcb_screen_t = struct {
  2462. Froot Txcb_window_t
  2463. Fdefault_colormap Txcb_colormap_t
  2464. Fwhite_pixel Tuint32_t
  2465. Fblack_pixel Tuint32_t
  2466. Fcurrent_input_masks Tuint32_t
  2467. Fwidth_in_pixels Tuint16_t
  2468. Fheight_in_pixels Tuint16_t
  2469. Fwidth_in_millimeters Tuint16_t
  2470. Fheight_in_millimeters Tuint16_t
  2471. Fmin_installed_maps Tuint16_t
  2472. Fmax_installed_maps Tuint16_t
  2473. Froot_visual Txcb_visualid_t
  2474. Fbacking_stores Tuint8_t
  2475. Fsave_unders Tuint8_t
  2476. Froot_depth Tuint8_t
  2477. Fallowed_depths_len Tuint8_t
  2478. }
  2479. type Txcb_screen_iterator_t = struct {
  2480. Fdata uintptr
  2481. Frem int32
  2482. Findex int32
  2483. }
  2484. type Txcb_setup_request_t = struct {
  2485. Fbyte_order Tuint8_t
  2486. Fpad0 Tuint8_t
  2487. Fprotocol_major_version Tuint16_t
  2488. Fprotocol_minor_version Tuint16_t
  2489. Fauthorization_protocol_name_len Tuint16_t
  2490. Fauthorization_protocol_data_len Tuint16_t
  2491. Fpad1 [2]Tuint8_t
  2492. }
  2493. type Txcb_setup_request_iterator_t = struct {
  2494. Fdata uintptr
  2495. Frem int32
  2496. Findex int32
  2497. }
  2498. type Txcb_setup_failed_t = struct {
  2499. Fstatus Tuint8_t
  2500. Freason_len Tuint8_t
  2501. Fprotocol_major_version Tuint16_t
  2502. Fprotocol_minor_version Tuint16_t
  2503. Flength Tuint16_t
  2504. }
  2505. type Txcb_setup_failed_iterator_t = struct {
  2506. Fdata uintptr
  2507. Frem int32
  2508. Findex int32
  2509. }
  2510. type Txcb_setup_authenticate_t = struct {
  2511. Fstatus Tuint8_t
  2512. Fpad0 [5]Tuint8_t
  2513. Flength Tuint16_t
  2514. }
  2515. type Txcb_setup_authenticate_iterator_t = struct {
  2516. Fdata uintptr
  2517. Frem int32
  2518. Findex int32
  2519. }
  2520. type Txcb_image_order_t = int32
  2521. type _xcb_image_order_t = int32
  2522. const _XCB_IMAGE_ORDER_LSB_FIRST = 0
  2523. const _XCB_IMAGE_ORDER_MSB_FIRST = 1
  2524. type Txcb_setup_t = struct {
  2525. Fstatus Tuint8_t
  2526. Fpad0 Tuint8_t
  2527. Fprotocol_major_version Tuint16_t
  2528. Fprotocol_minor_version Tuint16_t
  2529. Flength Tuint16_t
  2530. Frelease_number Tuint32_t
  2531. Fresource_id_base Tuint32_t
  2532. Fresource_id_mask Tuint32_t
  2533. Fmotion_buffer_size Tuint32_t
  2534. Fvendor_len Tuint16_t
  2535. Fmaximum_request_length Tuint16_t
  2536. Froots_len Tuint8_t
  2537. Fpixmap_formats_len Tuint8_t
  2538. Fimage_byte_order Tuint8_t
  2539. Fbitmap_format_bit_order Tuint8_t
  2540. Fbitmap_format_scanline_unit Tuint8_t
  2541. Fbitmap_format_scanline_pad Tuint8_t
  2542. Fmin_keycode Txcb_keycode_t
  2543. Fmax_keycode Txcb_keycode_t
  2544. Fpad1 [4]Tuint8_t
  2545. }
  2546. type Txcb_setup_iterator_t = struct {
  2547. Fdata uintptr
  2548. Frem int32
  2549. Findex int32
  2550. }
  2551. type Txcb_mod_mask_t = int32
  2552. type _xcb_mod_mask_t = int32
  2553. const _XCB_MOD_MASK_SHIFT = 1
  2554. const _XCB_MOD_MASK_LOCK = 2
  2555. const _XCB_MOD_MASK_CONTROL = 4
  2556. const _XCB_MOD_MASK_1 = 8
  2557. const _XCB_MOD_MASK_2 = 16
  2558. const _XCB_MOD_MASK_3 = 32
  2559. const _XCB_MOD_MASK_4 = 64
  2560. const _XCB_MOD_MASK_5 = 128
  2561. const _XCB_MOD_MASK_ANY = 32768
  2562. type Txcb_key_but_mask_t = int32
  2563. type _xcb_key_but_mask_t = int32
  2564. const _XCB_KEY_BUT_MASK_SHIFT = 1
  2565. const _XCB_KEY_BUT_MASK_LOCK = 2
  2566. const _XCB_KEY_BUT_MASK_CONTROL = 4
  2567. const _XCB_KEY_BUT_MASK_MOD_1 = 8
  2568. const _XCB_KEY_BUT_MASK_MOD_2 = 16
  2569. const _XCB_KEY_BUT_MASK_MOD_3 = 32
  2570. const _XCB_KEY_BUT_MASK_MOD_4 = 64
  2571. const _XCB_KEY_BUT_MASK_MOD_5 = 128
  2572. const _XCB_KEY_BUT_MASK_BUTTON_1 = 256
  2573. const _XCB_KEY_BUT_MASK_BUTTON_2 = 512
  2574. const _XCB_KEY_BUT_MASK_BUTTON_3 = 1024
  2575. const _XCB_KEY_BUT_MASK_BUTTON_4 = 2048
  2576. const _XCB_KEY_BUT_MASK_BUTTON_5 = 4096
  2577. type Txcb_window_enum_t = int32
  2578. type _xcb_window_enum_t = int32
  2579. const _XCB_WINDOW_NONE = 0
  2580. type Txcb_key_press_event_t = struct {
  2581. Fresponse_type Tuint8_t
  2582. Fdetail Txcb_keycode_t
  2583. Fsequence Tuint16_t
  2584. Ftime Txcb_timestamp_t
  2585. Froot Txcb_window_t
  2586. Fevent Txcb_window_t
  2587. Fchild Txcb_window_t
  2588. Froot_x Tint16_t
  2589. Froot_y Tint16_t
  2590. Fevent_x Tint16_t
  2591. Fevent_y Tint16_t
  2592. Fstate Tuint16_t
  2593. Fsame_screen Tuint8_t
  2594. Fpad0 Tuint8_t
  2595. }
  2596. type Txcb_key_release_event_t = struct {
  2597. Fresponse_type Tuint8_t
  2598. Fdetail Txcb_keycode_t
  2599. Fsequence Tuint16_t
  2600. Ftime Txcb_timestamp_t
  2601. Froot Txcb_window_t
  2602. Fevent Txcb_window_t
  2603. Fchild Txcb_window_t
  2604. Froot_x Tint16_t
  2605. Froot_y Tint16_t
  2606. Fevent_x Tint16_t
  2607. Fevent_y Tint16_t
  2608. Fstate Tuint16_t
  2609. Fsame_screen Tuint8_t
  2610. Fpad0 Tuint8_t
  2611. }
  2612. type Txcb_key_press_event_t1 = Txcb_key_release_event_t
  2613. type Txcb_button_mask_t = int32
  2614. type _xcb_button_mask_t = int32
  2615. const _XCB_BUTTON_MASK_1 = 256
  2616. const _XCB_BUTTON_MASK_2 = 512
  2617. const _XCB_BUTTON_MASK_3 = 1024
  2618. const _XCB_BUTTON_MASK_4 = 2048
  2619. const _XCB_BUTTON_MASK_5 = 4096
  2620. const _XCB_BUTTON_MASK_ANY = 32768
  2621. type Txcb_button_press_event_t = struct {
  2622. Fresponse_type Tuint8_t
  2623. Fdetail Txcb_button_t
  2624. Fsequence Tuint16_t
  2625. Ftime Txcb_timestamp_t
  2626. Froot Txcb_window_t
  2627. Fevent Txcb_window_t
  2628. Fchild Txcb_window_t
  2629. Froot_x Tint16_t
  2630. Froot_y Tint16_t
  2631. Fevent_x Tint16_t
  2632. Fevent_y Tint16_t
  2633. Fstate Tuint16_t
  2634. Fsame_screen Tuint8_t
  2635. Fpad0 Tuint8_t
  2636. }
  2637. type Txcb_button_release_event_t = struct {
  2638. Fresponse_type Tuint8_t
  2639. Fdetail Txcb_button_t
  2640. Fsequence Tuint16_t
  2641. Ftime Txcb_timestamp_t
  2642. Froot Txcb_window_t
  2643. Fevent Txcb_window_t
  2644. Fchild Txcb_window_t
  2645. Froot_x Tint16_t
  2646. Froot_y Tint16_t
  2647. Fevent_x Tint16_t
  2648. Fevent_y Tint16_t
  2649. Fstate Tuint16_t
  2650. Fsame_screen Tuint8_t
  2651. Fpad0 Tuint8_t
  2652. }
  2653. type Txcb_button_press_event_t1 = Txcb_button_release_event_t
  2654. type Txcb_motion_t = int32
  2655. type _xcb_motion_t = int32
  2656. const _XCB_MOTION_NORMAL = 0
  2657. const _XCB_MOTION_HINT = 1
  2658. type Txcb_motion_notify_event_t = struct {
  2659. Fresponse_type Tuint8_t
  2660. Fdetail Tuint8_t
  2661. Fsequence Tuint16_t
  2662. Ftime Txcb_timestamp_t
  2663. Froot Txcb_window_t
  2664. Fevent Txcb_window_t
  2665. Fchild Txcb_window_t
  2666. Froot_x Tint16_t
  2667. Froot_y Tint16_t
  2668. Fevent_x Tint16_t
  2669. Fevent_y Tint16_t
  2670. Fstate Tuint16_t
  2671. Fsame_screen Tuint8_t
  2672. Fpad0 Tuint8_t
  2673. }
  2674. type Txcb_notify_detail_t = int32
  2675. type _xcb_notify_detail_t = int32
  2676. const _XCB_NOTIFY_DETAIL_ANCESTOR = 0
  2677. const _XCB_NOTIFY_DETAIL_VIRTUAL = 1
  2678. const _XCB_NOTIFY_DETAIL_INFERIOR = 2
  2679. const _XCB_NOTIFY_DETAIL_NONLINEAR = 3
  2680. const _XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4
  2681. const _XCB_NOTIFY_DETAIL_POINTER = 5
  2682. const _XCB_NOTIFY_DETAIL_POINTER_ROOT = 6
  2683. const _XCB_NOTIFY_DETAIL_NONE = 7
  2684. type Txcb_notify_mode_t = int32
  2685. type _xcb_notify_mode_t = int32
  2686. const _XCB_NOTIFY_MODE_NORMAL = 0
  2687. const _XCB_NOTIFY_MODE_GRAB = 1
  2688. const _XCB_NOTIFY_MODE_UNGRAB = 2
  2689. const _XCB_NOTIFY_MODE_WHILE_GRABBED = 3
  2690. type Txcb_enter_notify_event_t = struct {
  2691. Fresponse_type Tuint8_t
  2692. Fdetail Tuint8_t
  2693. Fsequence Tuint16_t
  2694. Ftime Txcb_timestamp_t
  2695. Froot Txcb_window_t
  2696. Fevent Txcb_window_t
  2697. Fchild Txcb_window_t
  2698. Froot_x Tint16_t
  2699. Froot_y Tint16_t
  2700. Fevent_x Tint16_t
  2701. Fevent_y Tint16_t
  2702. Fstate Tuint16_t
  2703. Fmode Tuint8_t
  2704. Fsame_screen_focus Tuint8_t
  2705. }
  2706. type Txcb_leave_notify_event_t = struct {
  2707. Fresponse_type Tuint8_t
  2708. Fdetail Tuint8_t
  2709. Fsequence Tuint16_t
  2710. Ftime Txcb_timestamp_t
  2711. Froot Txcb_window_t
  2712. Fevent Txcb_window_t
  2713. Fchild Txcb_window_t
  2714. Froot_x Tint16_t
  2715. Froot_y Tint16_t
  2716. Fevent_x Tint16_t
  2717. Fevent_y Tint16_t
  2718. Fstate Tuint16_t
  2719. Fmode Tuint8_t
  2720. Fsame_screen_focus Tuint8_t
  2721. }
  2722. type Txcb_enter_notify_event_t1 = Txcb_leave_notify_event_t
  2723. type Txcb_focus_in_event_t = struct {
  2724. Fresponse_type Tuint8_t
  2725. Fdetail Tuint8_t
  2726. Fsequence Tuint16_t
  2727. Fevent Txcb_window_t
  2728. Fmode Tuint8_t
  2729. Fpad0 [3]Tuint8_t
  2730. }
  2731. type Txcb_focus_out_event_t = struct {
  2732. Fresponse_type Tuint8_t
  2733. Fdetail Tuint8_t
  2734. Fsequence Tuint16_t
  2735. Fevent Txcb_window_t
  2736. Fmode Tuint8_t
  2737. Fpad0 [3]Tuint8_t
  2738. }
  2739. type Txcb_focus_in_event_t1 = Txcb_focus_out_event_t
  2740. type Txcb_keymap_notify_event_t = struct {
  2741. Fresponse_type Tuint8_t
  2742. Fkeys [31]Tuint8_t
  2743. }
  2744. type Txcb_expose_event_t = struct {
  2745. Fresponse_type Tuint8_t
  2746. Fpad0 Tuint8_t
  2747. Fsequence Tuint16_t
  2748. Fwindow Txcb_window_t
  2749. Fx Tuint16_t
  2750. Fy Tuint16_t
  2751. Fwidth Tuint16_t
  2752. Fheight Tuint16_t
  2753. Fcount Tuint16_t
  2754. Fpad1 [2]Tuint8_t
  2755. }
  2756. type Txcb_graphics_exposure_event_t = struct {
  2757. Fresponse_type Tuint8_t
  2758. Fpad0 Tuint8_t
  2759. Fsequence Tuint16_t
  2760. Fdrawable Txcb_drawable_t
  2761. Fx Tuint16_t
  2762. Fy Tuint16_t
  2763. Fwidth Tuint16_t
  2764. Fheight Tuint16_t
  2765. Fminor_opcode Tuint16_t
  2766. Fcount Tuint16_t
  2767. Fmajor_opcode Tuint8_t
  2768. Fpad1 [3]Tuint8_t
  2769. }
  2770. type Txcb_no_exposure_event_t = struct {
  2771. Fresponse_type Tuint8_t
  2772. Fpad0 Tuint8_t
  2773. Fsequence Tuint16_t
  2774. Fdrawable Txcb_drawable_t
  2775. Fminor_opcode Tuint16_t
  2776. Fmajor_opcode Tuint8_t
  2777. Fpad1 Tuint8_t
  2778. }
  2779. type Txcb_visibility_t = int32
  2780. type _xcb_visibility_t = int32
  2781. const _XCB_VISIBILITY_UNOBSCURED = 0
  2782. const _XCB_VISIBILITY_PARTIALLY_OBSCURED = 1
  2783. const _XCB_VISIBILITY_FULLY_OBSCURED = 2
  2784. type Txcb_visibility_notify_event_t = struct {
  2785. Fresponse_type Tuint8_t
  2786. Fpad0 Tuint8_t
  2787. Fsequence Tuint16_t
  2788. Fwindow Txcb_window_t
  2789. Fstate Tuint8_t
  2790. Fpad1 [3]Tuint8_t
  2791. }
  2792. type Txcb_create_notify_event_t = struct {
  2793. Fresponse_type Tuint8_t
  2794. Fpad0 Tuint8_t
  2795. Fsequence Tuint16_t
  2796. Fparent Txcb_window_t
  2797. Fwindow Txcb_window_t
  2798. Fx Tint16_t
  2799. Fy Tint16_t
  2800. Fwidth Tuint16_t
  2801. Fheight Tuint16_t
  2802. Fborder_width Tuint16_t
  2803. Foverride_redirect Tuint8_t
  2804. Fpad1 Tuint8_t
  2805. }
  2806. type Txcb_destroy_notify_event_t = struct {
  2807. Fresponse_type Tuint8_t
  2808. Fpad0 Tuint8_t
  2809. Fsequence Tuint16_t
  2810. Fevent Txcb_window_t
  2811. Fwindow Txcb_window_t
  2812. }
  2813. type Txcb_unmap_notify_event_t = struct {
  2814. Fresponse_type Tuint8_t
  2815. Fpad0 Tuint8_t
  2816. Fsequence Tuint16_t
  2817. Fevent Txcb_window_t
  2818. Fwindow Txcb_window_t
  2819. Ffrom_configure Tuint8_t
  2820. Fpad1 [3]Tuint8_t
  2821. }
  2822. type Txcb_map_notify_event_t = struct {
  2823. Fresponse_type Tuint8_t
  2824. Fpad0 Tuint8_t
  2825. Fsequence Tuint16_t
  2826. Fevent Txcb_window_t
  2827. Fwindow Txcb_window_t
  2828. Foverride_redirect Tuint8_t
  2829. Fpad1 [3]Tuint8_t
  2830. }
  2831. type Txcb_map_request_event_t = struct {
  2832. Fresponse_type Tuint8_t
  2833. Fpad0 Tuint8_t
  2834. Fsequence Tuint16_t
  2835. Fparent Txcb_window_t
  2836. Fwindow Txcb_window_t
  2837. }
  2838. type Txcb_reparent_notify_event_t = struct {
  2839. Fresponse_type Tuint8_t
  2840. Fpad0 Tuint8_t
  2841. Fsequence Tuint16_t
  2842. Fevent Txcb_window_t
  2843. Fwindow Txcb_window_t
  2844. Fparent Txcb_window_t
  2845. Fx Tint16_t
  2846. Fy Tint16_t
  2847. Foverride_redirect Tuint8_t
  2848. Fpad1 [3]Tuint8_t
  2849. }
  2850. type Txcb_configure_notify_event_t = struct {
  2851. Fresponse_type Tuint8_t
  2852. Fpad0 Tuint8_t
  2853. Fsequence Tuint16_t
  2854. Fevent Txcb_window_t
  2855. Fwindow Txcb_window_t
  2856. Fabove_sibling Txcb_window_t
  2857. Fx Tint16_t
  2858. Fy Tint16_t
  2859. Fwidth Tuint16_t
  2860. Fheight Tuint16_t
  2861. Fborder_width Tuint16_t
  2862. Foverride_redirect Tuint8_t
  2863. Fpad1 Tuint8_t
  2864. }
  2865. type Txcb_configure_request_event_t = struct {
  2866. Fresponse_type Tuint8_t
  2867. Fstack_mode Tuint8_t
  2868. Fsequence Tuint16_t
  2869. Fparent Txcb_window_t
  2870. Fwindow Txcb_window_t
  2871. Fsibling Txcb_window_t
  2872. Fx Tint16_t
  2873. Fy Tint16_t
  2874. Fwidth Tuint16_t
  2875. Fheight Tuint16_t
  2876. Fborder_width Tuint16_t
  2877. Fvalue_mask Tuint16_t
  2878. }
  2879. type Txcb_gravity_notify_event_t = struct {
  2880. Fresponse_type Tuint8_t
  2881. Fpad0 Tuint8_t
  2882. Fsequence Tuint16_t
  2883. Fevent Txcb_window_t
  2884. Fwindow Txcb_window_t
  2885. Fx Tint16_t
  2886. Fy Tint16_t
  2887. }
  2888. type Txcb_resize_request_event_t = struct {
  2889. Fresponse_type Tuint8_t
  2890. Fpad0 Tuint8_t
  2891. Fsequence Tuint16_t
  2892. Fwindow Txcb_window_t
  2893. Fwidth Tuint16_t
  2894. Fheight Tuint16_t
  2895. }
  2896. type Txcb_place_t = int32
  2897. type _xcb_place_t = int32
  2898. const _XCB_PLACE_ON_TOP = 0
  2899. const _XCB_PLACE_ON_BOTTOM = 1
  2900. type Txcb_circulate_notify_event_t = struct {
  2901. Fresponse_type Tuint8_t
  2902. Fpad0 Tuint8_t
  2903. Fsequence Tuint16_t
  2904. Fevent Txcb_window_t
  2905. Fwindow Txcb_window_t
  2906. Fpad1 [4]Tuint8_t
  2907. Fplace Tuint8_t
  2908. Fpad2 [3]Tuint8_t
  2909. }
  2910. type Txcb_circulate_request_event_t = struct {
  2911. Fresponse_type Tuint8_t
  2912. Fpad0 Tuint8_t
  2913. Fsequence Tuint16_t
  2914. Fevent Txcb_window_t
  2915. Fwindow Txcb_window_t
  2916. Fpad1 [4]Tuint8_t
  2917. Fplace Tuint8_t
  2918. Fpad2 [3]Tuint8_t
  2919. }
  2920. type Txcb_circulate_notify_event_t1 = Txcb_circulate_request_event_t
  2921. type Txcb_property_t = int32
  2922. type _xcb_property_t = int32
  2923. const _XCB_PROPERTY_NEW_VALUE = 0
  2924. const _XCB_PROPERTY_DELETE = 1
  2925. type Txcb_property_notify_event_t = struct {
  2926. Fresponse_type Tuint8_t
  2927. Fpad0 Tuint8_t
  2928. Fsequence Tuint16_t
  2929. Fwindow Txcb_window_t
  2930. Fatom Txcb_atom_t
  2931. Ftime Txcb_timestamp_t
  2932. Fstate Tuint8_t
  2933. Fpad1 [3]Tuint8_t
  2934. }
  2935. type Txcb_selection_clear_event_t = struct {
  2936. Fresponse_type Tuint8_t
  2937. Fpad0 Tuint8_t
  2938. Fsequence Tuint16_t
  2939. Ftime Txcb_timestamp_t
  2940. Fowner Txcb_window_t
  2941. Fselection Txcb_atom_t
  2942. }
  2943. type Txcb_time_t = int32
  2944. type _xcb_time_t = int32
  2945. const _XCB_TIME_CURRENT_TIME = 0
  2946. type Txcb_atom_enum_t = int32
  2947. type _xcb_atom_enum_t = int32
  2948. const _XCB_ATOM_NONE = 0
  2949. const _XCB_ATOM_ANY = 0
  2950. const _XCB_ATOM_PRIMARY = 1
  2951. const _XCB_ATOM_SECONDARY = 2
  2952. const _XCB_ATOM_ARC = 3
  2953. const _XCB_ATOM_ATOM = 4
  2954. const _XCB_ATOM_BITMAP = 5
  2955. const _XCB_ATOM_CARDINAL = 6
  2956. const _XCB_ATOM_COLORMAP = 7
  2957. const _XCB_ATOM_CURSOR = 8
  2958. const _XCB_ATOM_CUT_BUFFER0 = 9
  2959. const _XCB_ATOM_CUT_BUFFER1 = 10
  2960. const _XCB_ATOM_CUT_BUFFER2 = 11
  2961. const _XCB_ATOM_CUT_BUFFER3 = 12
  2962. const _XCB_ATOM_CUT_BUFFER4 = 13
  2963. const _XCB_ATOM_CUT_BUFFER5 = 14
  2964. const _XCB_ATOM_CUT_BUFFER6 = 15
  2965. const _XCB_ATOM_CUT_BUFFER7 = 16
  2966. const _XCB_ATOM_DRAWABLE = 17
  2967. const _XCB_ATOM_FONT = 18
  2968. const _XCB_ATOM_INTEGER = 19
  2969. const _XCB_ATOM_PIXMAP = 20
  2970. const _XCB_ATOM_POINT = 21
  2971. const _XCB_ATOM_RECTANGLE = 22
  2972. const _XCB_ATOM_RESOURCE_MANAGER = 23
  2973. const _XCB_ATOM_RGB_COLOR_MAP = 24
  2974. const _XCB_ATOM_RGB_BEST_MAP = 25
  2975. const _XCB_ATOM_RGB_BLUE_MAP = 26
  2976. const _XCB_ATOM_RGB_DEFAULT_MAP = 27
  2977. const _XCB_ATOM_RGB_GRAY_MAP = 28
  2978. const _XCB_ATOM_RGB_GREEN_MAP = 29
  2979. const _XCB_ATOM_RGB_RED_MAP = 30
  2980. const _XCB_ATOM_STRING = 31
  2981. const _XCB_ATOM_VISUALID = 32
  2982. const _XCB_ATOM_WINDOW = 33
  2983. const _XCB_ATOM_WM_COMMAND = 34
  2984. const _XCB_ATOM_WM_HINTS = 35
  2985. const _XCB_ATOM_WM_CLIENT_MACHINE = 36
  2986. const _XCB_ATOM_WM_ICON_NAME = 37
  2987. const _XCB_ATOM_WM_ICON_SIZE = 38
  2988. const _XCB_ATOM_WM_NAME = 39
  2989. const _XCB_ATOM_WM_NORMAL_HINTS = 40
  2990. const _XCB_ATOM_WM_SIZE_HINTS = 41
  2991. const _XCB_ATOM_WM_ZOOM_HINTS = 42
  2992. const _XCB_ATOM_MIN_SPACE = 43
  2993. const _XCB_ATOM_NORM_SPACE = 44
  2994. const _XCB_ATOM_MAX_SPACE = 45
  2995. const _XCB_ATOM_END_SPACE = 46
  2996. const _XCB_ATOM_SUPERSCRIPT_X = 47
  2997. const _XCB_ATOM_SUPERSCRIPT_Y = 48
  2998. const _XCB_ATOM_SUBSCRIPT_X = 49
  2999. const _XCB_ATOM_SUBSCRIPT_Y = 50
  3000. const _XCB_ATOM_UNDERLINE_POSITION = 51
  3001. const _XCB_ATOM_UNDERLINE_THICKNESS = 52
  3002. const _XCB_ATOM_STRIKEOUT_ASCENT = 53
  3003. const _XCB_ATOM_STRIKEOUT_DESCENT = 54
  3004. const _XCB_ATOM_ITALIC_ANGLE = 55
  3005. const _XCB_ATOM_X_HEIGHT = 56
  3006. const _XCB_ATOM_QUAD_WIDTH = 57
  3007. const _XCB_ATOM_WEIGHT = 58
  3008. const _XCB_ATOM_POINT_SIZE = 59
  3009. const _XCB_ATOM_RESOLUTION = 60
  3010. const _XCB_ATOM_COPYRIGHT = 61
  3011. const _XCB_ATOM_NOTICE = 62
  3012. const _XCB_ATOM_FONT_NAME = 63
  3013. const _XCB_ATOM_FAMILY_NAME = 64
  3014. const _XCB_ATOM_FULL_NAME = 65
  3015. const _XCB_ATOM_CAP_HEIGHT = 66
  3016. const _XCB_ATOM_WM_CLASS = 67
  3017. const _XCB_ATOM_WM_TRANSIENT_FOR = 68
  3018. type Txcb_selection_request_event_t = struct {
  3019. Fresponse_type Tuint8_t
  3020. Fpad0 Tuint8_t
  3021. Fsequence Tuint16_t
  3022. Ftime Txcb_timestamp_t
  3023. Fowner Txcb_window_t
  3024. Frequestor Txcb_window_t
  3025. Fselection Txcb_atom_t
  3026. Ftarget Txcb_atom_t
  3027. Fproperty Txcb_atom_t
  3028. }
  3029. type Txcb_selection_notify_event_t = struct {
  3030. Fresponse_type Tuint8_t
  3031. Fpad0 Tuint8_t
  3032. Fsequence Tuint16_t
  3033. Ftime Txcb_timestamp_t
  3034. Frequestor Txcb_window_t
  3035. Fselection Txcb_atom_t
  3036. Ftarget Txcb_atom_t
  3037. Fproperty Txcb_atom_t
  3038. }
  3039. type Txcb_colormap_state_t = int32
  3040. type _xcb_colormap_state_t = int32
  3041. const _XCB_COLORMAP_STATE_UNINSTALLED = 0
  3042. const _XCB_COLORMAP_STATE_INSTALLED = 1
  3043. type Txcb_colormap_enum_t = int32
  3044. type _xcb_colormap_enum_t = int32
  3045. const _XCB_COLORMAP_NONE = 0
  3046. type Txcb_colormap_notify_event_t = struct {
  3047. Fresponse_type Tuint8_t
  3048. Fpad0 Tuint8_t
  3049. Fsequence Tuint16_t
  3050. Fwindow Txcb_window_t
  3051. Fcolormap Txcb_colormap_t
  3052. F_new Tuint8_t
  3053. Fstate Tuint8_t
  3054. Fpad1 [2]Tuint8_t
  3055. }
  3056. type Txcb_client_message_data_t = struct {
  3057. Fdata16 [0][10]Tuint16_t
  3058. Fdata32 [0][5]Tuint32_t
  3059. Fdata8 [20]Tuint8_t
  3060. }
  3061. type Txcb_client_message_data_iterator_t = struct {
  3062. Fdata uintptr
  3063. Frem int32
  3064. Findex int32
  3065. }
  3066. type Txcb_client_message_event_t = struct {
  3067. Fresponse_type Tuint8_t
  3068. Fformat Tuint8_t
  3069. Fsequence Tuint16_t
  3070. Fwindow Txcb_window_t
  3071. Ftype1 Txcb_atom_t
  3072. Fdata Txcb_client_message_data_t
  3073. }
  3074. type Txcb_mapping_t = int32
  3075. type _xcb_mapping_t = int32
  3076. const _XCB_MAPPING_MODIFIER = 0
  3077. const _XCB_MAPPING_KEYBOARD = 1
  3078. const _XCB_MAPPING_POINTER = 2
  3079. type Txcb_mapping_notify_event_t = struct {
  3080. Fresponse_type Tuint8_t
  3081. Fpad0 Tuint8_t
  3082. Fsequence Tuint16_t
  3083. Frequest Tuint8_t
  3084. Ffirst_keycode Txcb_keycode_t
  3085. Fcount Tuint8_t
  3086. Fpad1 Tuint8_t
  3087. }
  3088. type Txcb_ge_generic_event_t = struct {
  3089. Fresponse_type Tuint8_t
  3090. Fextension Tuint8_t
  3091. Fsequence Tuint16_t
  3092. Flength Tuint32_t
  3093. Fevent_type Tuint16_t
  3094. Fpad0 [22]Tuint8_t
  3095. Ffull_sequence Tuint32_t
  3096. }
  3097. type Txcb_request_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_t = struct {
  3107. Fresponse_type Tuint8_t
  3108. Ferror_code Tuint8_t
  3109. Fsequence Tuint16_t
  3110. Fbad_value Tuint32_t
  3111. Fminor_opcode Tuint16_t
  3112. Fmajor_opcode Tuint8_t
  3113. Fpad0 Tuint8_t
  3114. }
  3115. type Txcb_window_error_t = struct {
  3116. Fresponse_type Tuint8_t
  3117. Ferror_code Tuint8_t
  3118. Fsequence Tuint16_t
  3119. Fbad_value Tuint32_t
  3120. Fminor_opcode Tuint16_t
  3121. Fmajor_opcode Tuint8_t
  3122. Fpad0 Tuint8_t
  3123. }
  3124. type Txcb_value_error_t1 = Txcb_window_error_t
  3125. type Txcb_pixmap_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_atom_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_cursor_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_font_error_t = struct {
  3153. Fresponse_type Tuint8_t
  3154. Ferror_code Tuint8_t
  3155. Fsequence Tuint16_t
  3156. Fbad_value Tuint32_t
  3157. Fminor_opcode Tuint16_t
  3158. Fmajor_opcode Tuint8_t
  3159. Fpad0 Tuint8_t
  3160. }
  3161. type Txcb_match_error_t = struct {
  3162. Fresponse_type Tuint8_t
  3163. Ferror_code Tuint8_t
  3164. Fsequence Tuint16_t
  3165. Fbad_value Tuint32_t
  3166. Fminor_opcode Tuint16_t
  3167. Fmajor_opcode Tuint8_t
  3168. Fpad0 Tuint8_t
  3169. }
  3170. type Txcb_request_error_t1 = Txcb_match_error_t
  3171. type Txcb_drawable_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_access_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_alloc_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_colormap_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_g_context_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_id_choice_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_name_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_length_error_t = struct {
  3235. Fresponse_type Tuint8_t
  3236. Ferror_code Tuint8_t
  3237. Fsequence Tuint16_t
  3238. Fbad_value Tuint32_t
  3239. Fminor_opcode Tuint16_t
  3240. Fmajor_opcode Tuint8_t
  3241. Fpad0 Tuint8_t
  3242. }
  3243. type Txcb_implementation_error_t = struct {
  3244. Fresponse_type Tuint8_t
  3245. Ferror_code Tuint8_t
  3246. Fsequence Tuint16_t
  3247. Fbad_value Tuint32_t
  3248. Fminor_opcode Tuint16_t
  3249. Fmajor_opcode Tuint8_t
  3250. Fpad0 Tuint8_t
  3251. }
  3252. type Txcb_window_class_t = int32
  3253. type _xcb_window_class_t = int32
  3254. const _XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0
  3255. const _XCB_WINDOW_CLASS_INPUT_OUTPUT = 1
  3256. const _XCB_WINDOW_CLASS_INPUT_ONLY = 2
  3257. type Txcb_cw_t = int32
  3258. type _xcb_cw_t = int32
  3259. const _XCB_CW_BACK_PIXMAP = 1
  3260. const _XCB_CW_BACK_PIXEL = 2
  3261. const _XCB_CW_BORDER_PIXMAP = 4
  3262. const _XCB_CW_BORDER_PIXEL = 8
  3263. const _XCB_CW_BIT_GRAVITY = 16
  3264. const _XCB_CW_WIN_GRAVITY = 32
  3265. const _XCB_CW_BACKING_STORE = 64
  3266. const _XCB_CW_BACKING_PLANES = 128
  3267. const _XCB_CW_BACKING_PIXEL = 256
  3268. const _XCB_CW_OVERRIDE_REDIRECT = 512
  3269. const _XCB_CW_SAVE_UNDER = 1024
  3270. const _XCB_CW_EVENT_MASK = 2048
  3271. const _XCB_CW_DONT_PROPAGATE = 4096
  3272. const _XCB_CW_COLORMAP = 8192
  3273. const _XCB_CW_CURSOR = 16384
  3274. type Txcb_back_pixmap_t = int32
  3275. type _xcb_back_pixmap_t = int32
  3276. const _XCB_BACK_PIXMAP_NONE = 0
  3277. const _XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
  3278. type Txcb_gravity_t = int32
  3279. type _xcb_gravity_t = int32
  3280. const _XCB_GRAVITY_BIT_FORGET = 0
  3281. const _XCB_GRAVITY_WIN_UNMAP = 0
  3282. const _XCB_GRAVITY_NORTH_WEST = 1
  3283. const _XCB_GRAVITY_NORTH = 2
  3284. const _XCB_GRAVITY_NORTH_EAST = 3
  3285. const _XCB_GRAVITY_WEST = 4
  3286. const _XCB_GRAVITY_CENTER = 5
  3287. const _XCB_GRAVITY_EAST = 6
  3288. const _XCB_GRAVITY_SOUTH_WEST = 7
  3289. const _XCB_GRAVITY_SOUTH = 8
  3290. const _XCB_GRAVITY_SOUTH_EAST = 9
  3291. const _XCB_GRAVITY_STATIC = 10
  3292. type Txcb_create_window_value_list_t = struct {
  3293. Fbackground_pixmap Txcb_pixmap_t
  3294. Fbackground_pixel Tuint32_t
  3295. Fborder_pixmap Txcb_pixmap_t
  3296. Fborder_pixel Tuint32_t
  3297. Fbit_gravity Tuint32_t
  3298. Fwin_gravity Tuint32_t
  3299. Fbacking_store Tuint32_t
  3300. Fbacking_planes Tuint32_t
  3301. Fbacking_pixel Tuint32_t
  3302. Foverride_redirect Txcb_bool32_t
  3303. Fsave_under Txcb_bool32_t
  3304. Fevent_mask Tuint32_t
  3305. Fdo_not_propogate_mask Tuint32_t
  3306. Fcolormap Txcb_colormap_t
  3307. Fcursor Txcb_cursor_t
  3308. }
  3309. type Txcb_create_window_request_t = struct {
  3310. Fmajor_opcode Tuint8_t
  3311. Fdepth Tuint8_t
  3312. Flength Tuint16_t
  3313. Fwid Txcb_window_t
  3314. Fparent Txcb_window_t
  3315. Fx Tint16_t
  3316. Fy Tint16_t
  3317. Fwidth Tuint16_t
  3318. Fheight Tuint16_t
  3319. Fborder_width Tuint16_t
  3320. F_class Tuint16_t
  3321. Fvisual Txcb_visualid_t
  3322. Fvalue_mask Tuint32_t
  3323. }
  3324. type Txcb_change_window_attributes_value_list_t = struct {
  3325. Fbackground_pixmap Txcb_pixmap_t
  3326. Fbackground_pixel Tuint32_t
  3327. Fborder_pixmap Txcb_pixmap_t
  3328. Fborder_pixel Tuint32_t
  3329. Fbit_gravity Tuint32_t
  3330. Fwin_gravity Tuint32_t
  3331. Fbacking_store Tuint32_t
  3332. Fbacking_planes Tuint32_t
  3333. Fbacking_pixel Tuint32_t
  3334. Foverride_redirect Txcb_bool32_t
  3335. Fsave_under Txcb_bool32_t
  3336. Fevent_mask Tuint32_t
  3337. Fdo_not_propogate_mask Tuint32_t
  3338. Fcolormap Txcb_colormap_t
  3339. Fcursor Txcb_cursor_t
  3340. }
  3341. type Txcb_change_window_attributes_request_t = struct {
  3342. Fmajor_opcode Tuint8_t
  3343. Fpad0 Tuint8_t
  3344. Flength Tuint16_t
  3345. Fwindow Txcb_window_t
  3346. Fvalue_mask Tuint32_t
  3347. }
  3348. type Txcb_map_state_t = int32
  3349. type _xcb_map_state_t = int32
  3350. const _XCB_MAP_STATE_UNMAPPED = 0
  3351. const _XCB_MAP_STATE_UNVIEWABLE = 1
  3352. const _XCB_MAP_STATE_VIEWABLE = 2
  3353. type Txcb_get_window_attributes_cookie_t = struct {
  3354. Fsequence uint32
  3355. }
  3356. type Txcb_get_window_attributes_request_t = struct {
  3357. Fmajor_opcode Tuint8_t
  3358. Fpad0 Tuint8_t
  3359. Flength Tuint16_t
  3360. Fwindow Txcb_window_t
  3361. }
  3362. type Txcb_get_window_attributes_reply_t = struct {
  3363. Fresponse_type Tuint8_t
  3364. Fbacking_store Tuint8_t
  3365. Fsequence Tuint16_t
  3366. Flength Tuint32_t
  3367. Fvisual Txcb_visualid_t
  3368. F_class Tuint16_t
  3369. Fbit_gravity Tuint8_t
  3370. Fwin_gravity Tuint8_t
  3371. Fbacking_planes Tuint32_t
  3372. Fbacking_pixel Tuint32_t
  3373. Fsave_under Tuint8_t
  3374. Fmap_is_installed Tuint8_t
  3375. Fmap_state Tuint8_t
  3376. Foverride_redirect Tuint8_t
  3377. Fcolormap Txcb_colormap_t
  3378. Fall_event_masks Tuint32_t
  3379. Fyour_event_mask Tuint32_t
  3380. Fdo_not_propagate_mask Tuint16_t
  3381. Fpad0 [2]Tuint8_t
  3382. }
  3383. type Txcb_destroy_window_request_t = struct {
  3384. Fmajor_opcode Tuint8_t
  3385. Fpad0 Tuint8_t
  3386. Flength Tuint16_t
  3387. Fwindow Txcb_window_t
  3388. }
  3389. type Txcb_destroy_subwindows_request_t = struct {
  3390. Fmajor_opcode Tuint8_t
  3391. Fpad0 Tuint8_t
  3392. Flength Tuint16_t
  3393. Fwindow Txcb_window_t
  3394. }
  3395. type Txcb_set_mode_t = int32
  3396. type _xcb_set_mode_t = int32
  3397. const _XCB_SET_MODE_INSERT = 0
  3398. const _XCB_SET_MODE_DELETE = 1
  3399. type Txcb_change_save_set_request_t = struct {
  3400. Fmajor_opcode Tuint8_t
  3401. Fmode Tuint8_t
  3402. Flength Tuint16_t
  3403. Fwindow Txcb_window_t
  3404. }
  3405. type Txcb_reparent_window_request_t = struct {
  3406. Fmajor_opcode Tuint8_t
  3407. Fpad0 Tuint8_t
  3408. Flength Tuint16_t
  3409. Fwindow Txcb_window_t
  3410. Fparent Txcb_window_t
  3411. Fx Tint16_t
  3412. Fy Tint16_t
  3413. }
  3414. type Txcb_map_window_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_map_subwindows_request_t = struct {
  3421. Fmajor_opcode Tuint8_t
  3422. Fpad0 Tuint8_t
  3423. Flength Tuint16_t
  3424. Fwindow Txcb_window_t
  3425. }
  3426. type Txcb_unmap_window_request_t = struct {
  3427. Fmajor_opcode Tuint8_t
  3428. Fpad0 Tuint8_t
  3429. Flength Tuint16_t
  3430. Fwindow Txcb_window_t
  3431. }
  3432. type Txcb_unmap_subwindows_request_t = struct {
  3433. Fmajor_opcode Tuint8_t
  3434. Fpad0 Tuint8_t
  3435. Flength Tuint16_t
  3436. Fwindow Txcb_window_t
  3437. }
  3438. type Txcb_config_window_t = int32
  3439. type _xcb_config_window_t = int32
  3440. const _XCB_CONFIG_WINDOW_X = 1
  3441. const _XCB_CONFIG_WINDOW_Y = 2
  3442. const _XCB_CONFIG_WINDOW_WIDTH = 4
  3443. const _XCB_CONFIG_WINDOW_HEIGHT = 8
  3444. const _XCB_CONFIG_WINDOW_BORDER_WIDTH = 16
  3445. const _XCB_CONFIG_WINDOW_SIBLING = 32
  3446. const _XCB_CONFIG_WINDOW_STACK_MODE = 64
  3447. type Txcb_stack_mode_t = int32
  3448. type _xcb_stack_mode_t = int32
  3449. const _XCB_STACK_MODE_ABOVE = 0
  3450. const _XCB_STACK_MODE_BELOW = 1
  3451. const _XCB_STACK_MODE_TOP_IF = 2
  3452. const _XCB_STACK_MODE_BOTTOM_IF = 3
  3453. const _XCB_STACK_MODE_OPPOSITE = 4
  3454. type Txcb_configure_window_value_list_t = struct {
  3455. Fx Tint32_t
  3456. Fy Tint32_t
  3457. Fwidth Tuint32_t
  3458. Fheight Tuint32_t
  3459. Fborder_width Tuint32_t
  3460. Fsibling Txcb_window_t
  3461. Fstack_mode Tuint32_t
  3462. }
  3463. type Txcb_configure_window_request_t = struct {
  3464. Fmajor_opcode Tuint8_t
  3465. Fpad0 Tuint8_t
  3466. Flength Tuint16_t
  3467. Fwindow Txcb_window_t
  3468. Fvalue_mask Tuint16_t
  3469. Fpad1 [2]Tuint8_t
  3470. }
  3471. type Txcb_circulate_t = int32
  3472. type _xcb_circulate_t = int32
  3473. const _XCB_CIRCULATE_RAISE_LOWEST = 0
  3474. const _XCB_CIRCULATE_LOWER_HIGHEST = 1
  3475. type Txcb_circulate_window_request_t = struct {
  3476. Fmajor_opcode Tuint8_t
  3477. Fdirection Tuint8_t
  3478. Flength Tuint16_t
  3479. Fwindow Txcb_window_t
  3480. }
  3481. type Txcb_get_geometry_cookie_t = struct {
  3482. Fsequence uint32
  3483. }
  3484. type Txcb_get_geometry_request_t = struct {
  3485. Fmajor_opcode Tuint8_t
  3486. Fpad0 Tuint8_t
  3487. Flength Tuint16_t
  3488. Fdrawable Txcb_drawable_t
  3489. }
  3490. type Txcb_get_geometry_reply_t = struct {
  3491. Fresponse_type Tuint8_t
  3492. Fdepth Tuint8_t
  3493. Fsequence Tuint16_t
  3494. Flength Tuint32_t
  3495. Froot Txcb_window_t
  3496. Fx Tint16_t
  3497. Fy Tint16_t
  3498. Fwidth Tuint16_t
  3499. Fheight Tuint16_t
  3500. Fborder_width Tuint16_t
  3501. Fpad0 [2]Tuint8_t
  3502. }
  3503. type Txcb_query_tree_cookie_t = struct {
  3504. Fsequence uint32
  3505. }
  3506. type Txcb_query_tree_request_t = struct {
  3507. Fmajor_opcode Tuint8_t
  3508. Fpad0 Tuint8_t
  3509. Flength Tuint16_t
  3510. Fwindow Txcb_window_t
  3511. }
  3512. type Txcb_query_tree_reply_t = struct {
  3513. Fresponse_type Tuint8_t
  3514. Fpad0 Tuint8_t
  3515. Fsequence Tuint16_t
  3516. Flength Tuint32_t
  3517. Froot Txcb_window_t
  3518. Fparent Txcb_window_t
  3519. Fchildren_len Tuint16_t
  3520. Fpad1 [14]Tuint8_t
  3521. }
  3522. type Txcb_intern_atom_cookie_t = struct {
  3523. Fsequence uint32
  3524. }
  3525. type Txcb_intern_atom_request_t = struct {
  3526. Fmajor_opcode Tuint8_t
  3527. Fonly_if_exists Tuint8_t
  3528. Flength Tuint16_t
  3529. Fname_len Tuint16_t
  3530. Fpad0 [2]Tuint8_t
  3531. }
  3532. type Txcb_intern_atom_reply_t = struct {
  3533. Fresponse_type Tuint8_t
  3534. Fpad0 Tuint8_t
  3535. Fsequence Tuint16_t
  3536. Flength Tuint32_t
  3537. Fatom Txcb_atom_t
  3538. }
  3539. type Txcb_get_atom_name_cookie_t = struct {
  3540. Fsequence uint32
  3541. }
  3542. type Txcb_get_atom_name_request_t = struct {
  3543. Fmajor_opcode Tuint8_t
  3544. Fpad0 Tuint8_t
  3545. Flength Tuint16_t
  3546. Fatom Txcb_atom_t
  3547. }
  3548. type Txcb_get_atom_name_reply_t = struct {
  3549. Fresponse_type Tuint8_t
  3550. Fpad0 Tuint8_t
  3551. Fsequence Tuint16_t
  3552. Flength Tuint32_t
  3553. Fname_len Tuint16_t
  3554. Fpad1 [22]Tuint8_t
  3555. }
  3556. type Txcb_prop_mode_t = int32
  3557. type _xcb_prop_mode_t = int32
  3558. const _XCB_PROP_MODE_REPLACE = 0
  3559. const _XCB_PROP_MODE_PREPEND = 1
  3560. const _XCB_PROP_MODE_APPEND = 2
  3561. type Txcb_change_property_request_t = struct {
  3562. Fmajor_opcode Tuint8_t
  3563. Fmode Tuint8_t
  3564. Flength Tuint16_t
  3565. Fwindow Txcb_window_t
  3566. Fproperty Txcb_atom_t
  3567. Ftype1 Txcb_atom_t
  3568. Fformat Tuint8_t
  3569. Fpad0 [3]Tuint8_t
  3570. Fdata_len Tuint32_t
  3571. }
  3572. type Txcb_delete_property_request_t = struct {
  3573. Fmajor_opcode Tuint8_t
  3574. Fpad0 Tuint8_t
  3575. Flength Tuint16_t
  3576. Fwindow Txcb_window_t
  3577. Fproperty Txcb_atom_t
  3578. }
  3579. type Txcb_get_property_type_t = int32
  3580. type _xcb_get_property_type_t = int32
  3581. const _XCB_GET_PROPERTY_TYPE_ANY = 0
  3582. type Txcb_get_property_cookie_t = struct {
  3583. Fsequence uint32
  3584. }
  3585. type Txcb_get_property_request_t = struct {
  3586. Fmajor_opcode Tuint8_t
  3587. F_delete Tuint8_t
  3588. Flength Tuint16_t
  3589. Fwindow Txcb_window_t
  3590. Fproperty Txcb_atom_t
  3591. Ftype1 Txcb_atom_t
  3592. Flong_offset Tuint32_t
  3593. Flong_length Tuint32_t
  3594. }
  3595. type Txcb_get_property_reply_t = struct {
  3596. Fresponse_type Tuint8_t
  3597. Fformat Tuint8_t
  3598. Fsequence Tuint16_t
  3599. Flength Tuint32_t
  3600. Ftype1 Txcb_atom_t
  3601. Fbytes_after Tuint32_t
  3602. Fvalue_len Tuint32_t
  3603. Fpad0 [12]Tuint8_t
  3604. }
  3605. type Txcb_list_properties_cookie_t = struct {
  3606. Fsequence uint32
  3607. }
  3608. type Txcb_list_properties_request_t = struct {
  3609. Fmajor_opcode Tuint8_t
  3610. Fpad0 Tuint8_t
  3611. Flength Tuint16_t
  3612. Fwindow Txcb_window_t
  3613. }
  3614. type Txcb_list_properties_reply_t = struct {
  3615. Fresponse_type Tuint8_t
  3616. Fpad0 Tuint8_t
  3617. Fsequence Tuint16_t
  3618. Flength Tuint32_t
  3619. Fatoms_len Tuint16_t
  3620. Fpad1 [22]Tuint8_t
  3621. }
  3622. type Txcb_set_selection_owner_request_t = struct {
  3623. Fmajor_opcode Tuint8_t
  3624. Fpad0 Tuint8_t
  3625. Flength Tuint16_t
  3626. Fowner Txcb_window_t
  3627. Fselection Txcb_atom_t
  3628. Ftime Txcb_timestamp_t
  3629. }
  3630. type Txcb_get_selection_owner_cookie_t = struct {
  3631. Fsequence uint32
  3632. }
  3633. type Txcb_get_selection_owner_request_t = struct {
  3634. Fmajor_opcode Tuint8_t
  3635. Fpad0 Tuint8_t
  3636. Flength Tuint16_t
  3637. Fselection Txcb_atom_t
  3638. }
  3639. type Txcb_get_selection_owner_reply_t = struct {
  3640. Fresponse_type Tuint8_t
  3641. Fpad0 Tuint8_t
  3642. Fsequence Tuint16_t
  3643. Flength Tuint32_t
  3644. Fowner Txcb_window_t
  3645. }
  3646. type Txcb_convert_selection_request_t = struct {
  3647. Fmajor_opcode Tuint8_t
  3648. Fpad0 Tuint8_t
  3649. Flength Tuint16_t
  3650. Frequestor Txcb_window_t
  3651. Fselection Txcb_atom_t
  3652. Ftarget Txcb_atom_t
  3653. Fproperty Txcb_atom_t
  3654. Ftime Txcb_timestamp_t
  3655. }
  3656. type Txcb_send_event_dest_t = int32
  3657. type _xcb_send_event_dest_t = int32
  3658. const _XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0
  3659. const _XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
  3660. type Txcb_send_event_request_t = struct {
  3661. Fmajor_opcode Tuint8_t
  3662. Fpropagate Tuint8_t
  3663. Flength Tuint16_t
  3664. Fdestination Txcb_window_t
  3665. Fevent_mask Tuint32_t
  3666. Fevent [32]int8
  3667. }
  3668. type Txcb_grab_mode_t = int32
  3669. type _xcb_grab_mode_t = int32
  3670. const _XCB_GRAB_MODE_SYNC = 0
  3671. const _XCB_GRAB_MODE_ASYNC = 1
  3672. type Txcb_grab_status_t = int32
  3673. type _xcb_grab_status_t = int32
  3674. const _XCB_GRAB_STATUS_SUCCESS = 0
  3675. const _XCB_GRAB_STATUS_ALREADY_GRABBED = 1
  3676. const _XCB_GRAB_STATUS_INVALID_TIME = 2
  3677. const _XCB_GRAB_STATUS_NOT_VIEWABLE = 3
  3678. const _XCB_GRAB_STATUS_FROZEN = 4
  3679. type Txcb_cursor_enum_t = int32
  3680. type _xcb_cursor_enum_t = int32
  3681. const _XCB_CURSOR_NONE = 0
  3682. type Txcb_grab_pointer_cookie_t = struct {
  3683. Fsequence uint32
  3684. }
  3685. type Txcb_grab_pointer_request_t = struct {
  3686. Fmajor_opcode Tuint8_t
  3687. Fowner_events Tuint8_t
  3688. Flength Tuint16_t
  3689. Fgrab_window Txcb_window_t
  3690. Fevent_mask Tuint16_t
  3691. Fpointer_mode Tuint8_t
  3692. Fkeyboard_mode Tuint8_t
  3693. Fconfine_to Txcb_window_t
  3694. Fcursor Txcb_cursor_t
  3695. Ftime Txcb_timestamp_t
  3696. }
  3697. type Txcb_grab_pointer_reply_t = struct {
  3698. Fresponse_type Tuint8_t
  3699. Fstatus Tuint8_t
  3700. Fsequence Tuint16_t
  3701. Flength Tuint32_t
  3702. }
  3703. type Txcb_ungrab_pointer_request_t = struct {
  3704. Fmajor_opcode Tuint8_t
  3705. Fpad0 Tuint8_t
  3706. Flength Tuint16_t
  3707. Ftime Txcb_timestamp_t
  3708. }
  3709. type Txcb_button_index_t = int32
  3710. type _xcb_button_index_t = int32
  3711. const _XCB_BUTTON_INDEX_ANY = 0
  3712. const _XCB_BUTTON_INDEX_1 = 1
  3713. const _XCB_BUTTON_INDEX_2 = 2
  3714. const _XCB_BUTTON_INDEX_3 = 3
  3715. const _XCB_BUTTON_INDEX_4 = 4
  3716. const _XCB_BUTTON_INDEX_5 = 5
  3717. type Txcb_grab_button_request_t = struct {
  3718. Fmajor_opcode Tuint8_t
  3719. Fowner_events Tuint8_t
  3720. Flength Tuint16_t
  3721. Fgrab_window Txcb_window_t
  3722. Fevent_mask Tuint16_t
  3723. Fpointer_mode Tuint8_t
  3724. Fkeyboard_mode Tuint8_t
  3725. Fconfine_to Txcb_window_t
  3726. Fcursor Txcb_cursor_t
  3727. Fbutton Tuint8_t
  3728. Fpad0 Tuint8_t
  3729. Fmodifiers Tuint16_t
  3730. }
  3731. type Txcb_ungrab_button_request_t = struct {
  3732. Fmajor_opcode Tuint8_t
  3733. Fbutton Tuint8_t
  3734. Flength Tuint16_t
  3735. Fgrab_window Txcb_window_t
  3736. Fmodifiers Tuint16_t
  3737. Fpad0 [2]Tuint8_t
  3738. }
  3739. type Txcb_change_active_pointer_grab_request_t = struct {
  3740. Fmajor_opcode Tuint8_t
  3741. Fpad0 Tuint8_t
  3742. Flength Tuint16_t
  3743. Fcursor Txcb_cursor_t
  3744. Ftime Txcb_timestamp_t
  3745. Fevent_mask Tuint16_t
  3746. Fpad1 [2]Tuint8_t
  3747. }
  3748. type Txcb_grab_keyboard_cookie_t = struct {
  3749. Fsequence uint32
  3750. }
  3751. type Txcb_grab_keyboard_request_t = struct {
  3752. Fmajor_opcode Tuint8_t
  3753. Fowner_events Tuint8_t
  3754. Flength Tuint16_t
  3755. Fgrab_window Txcb_window_t
  3756. Ftime Txcb_timestamp_t
  3757. Fpointer_mode Tuint8_t
  3758. Fkeyboard_mode Tuint8_t
  3759. Fpad0 [2]Tuint8_t
  3760. }
  3761. type Txcb_grab_keyboard_reply_t = struct {
  3762. Fresponse_type Tuint8_t
  3763. Fstatus Tuint8_t
  3764. Fsequence Tuint16_t
  3765. Flength Tuint32_t
  3766. }
  3767. type Txcb_ungrab_keyboard_request_t = struct {
  3768. Fmajor_opcode Tuint8_t
  3769. Fpad0 Tuint8_t
  3770. Flength Tuint16_t
  3771. Ftime Txcb_timestamp_t
  3772. }
  3773. type Txcb_grab_t = int32
  3774. type _xcb_grab_t = int32
  3775. const _XCB_GRAB_ANY = 0
  3776. type Txcb_grab_key_request_t = struct {
  3777. Fmajor_opcode Tuint8_t
  3778. Fowner_events Tuint8_t
  3779. Flength Tuint16_t
  3780. Fgrab_window Txcb_window_t
  3781. Fmodifiers Tuint16_t
  3782. Fkey Txcb_keycode_t
  3783. Fpointer_mode Tuint8_t
  3784. Fkeyboard_mode Tuint8_t
  3785. Fpad0 [3]Tuint8_t
  3786. }
  3787. type Txcb_ungrab_key_request_t = struct {
  3788. Fmajor_opcode Tuint8_t
  3789. Fkey Txcb_keycode_t
  3790. Flength Tuint16_t
  3791. Fgrab_window Txcb_window_t
  3792. Fmodifiers Tuint16_t
  3793. Fpad0 [2]Tuint8_t
  3794. }
  3795. type Txcb_allow_t = int32
  3796. type _xcb_allow_t = int32
  3797. const _XCB_ALLOW_ASYNC_POINTER = 0
  3798. const _XCB_ALLOW_SYNC_POINTER = 1
  3799. const _XCB_ALLOW_REPLAY_POINTER = 2
  3800. const _XCB_ALLOW_ASYNC_KEYBOARD = 3
  3801. const _XCB_ALLOW_SYNC_KEYBOARD = 4
  3802. const _XCB_ALLOW_REPLAY_KEYBOARD = 5
  3803. const _XCB_ALLOW_ASYNC_BOTH = 6
  3804. const _XCB_ALLOW_SYNC_BOTH = 7
  3805. type Txcb_allow_events_request_t = struct {
  3806. Fmajor_opcode Tuint8_t
  3807. Fmode Tuint8_t
  3808. Flength Tuint16_t
  3809. Ftime Txcb_timestamp_t
  3810. }
  3811. type Txcb_grab_server_request_t = struct {
  3812. Fmajor_opcode Tuint8_t
  3813. Fpad0 Tuint8_t
  3814. Flength Tuint16_t
  3815. }
  3816. type Txcb_ungrab_server_request_t = struct {
  3817. Fmajor_opcode Tuint8_t
  3818. Fpad0 Tuint8_t
  3819. Flength Tuint16_t
  3820. }
  3821. type Txcb_query_pointer_cookie_t = struct {
  3822. Fsequence uint32
  3823. }
  3824. type Txcb_query_pointer_request_t = struct {
  3825. Fmajor_opcode Tuint8_t
  3826. Fpad0 Tuint8_t
  3827. Flength Tuint16_t
  3828. Fwindow Txcb_window_t
  3829. }
  3830. type Txcb_query_pointer_reply_t = struct {
  3831. Fresponse_type Tuint8_t
  3832. Fsame_screen Tuint8_t
  3833. Fsequence Tuint16_t
  3834. Flength Tuint32_t
  3835. Froot Txcb_window_t
  3836. Fchild Txcb_window_t
  3837. Froot_x Tint16_t
  3838. Froot_y Tint16_t
  3839. Fwin_x Tint16_t
  3840. Fwin_y Tint16_t
  3841. Fmask Tuint16_t
  3842. Fpad0 [2]Tuint8_t
  3843. }
  3844. type Txcb_timecoord_t = struct {
  3845. Ftime Txcb_timestamp_t
  3846. Fx Tint16_t
  3847. Fy Tint16_t
  3848. }
  3849. type Txcb_timecoord_iterator_t = struct {
  3850. Fdata uintptr
  3851. Frem int32
  3852. Findex int32
  3853. }
  3854. type Txcb_get_motion_events_cookie_t = struct {
  3855. Fsequence uint32
  3856. }
  3857. type Txcb_get_motion_events_request_t = struct {
  3858. Fmajor_opcode Tuint8_t
  3859. Fpad0 Tuint8_t
  3860. Flength Tuint16_t
  3861. Fwindow Txcb_window_t
  3862. Fstart Txcb_timestamp_t
  3863. Fstop Txcb_timestamp_t
  3864. }
  3865. type Txcb_get_motion_events_reply_t = struct {
  3866. Fresponse_type Tuint8_t
  3867. Fpad0 Tuint8_t
  3868. Fsequence Tuint16_t
  3869. Flength Tuint32_t
  3870. Fevents_len Tuint32_t
  3871. Fpad1 [20]Tuint8_t
  3872. }
  3873. type Txcb_translate_coordinates_cookie_t = struct {
  3874. Fsequence uint32
  3875. }
  3876. type Txcb_translate_coordinates_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. }
  3885. type Txcb_translate_coordinates_reply_t = struct {
  3886. Fresponse_type Tuint8_t
  3887. Fsame_screen Tuint8_t
  3888. Fsequence Tuint16_t
  3889. Flength Tuint32_t
  3890. Fchild Txcb_window_t
  3891. Fdst_x Tint16_t
  3892. Fdst_y Tint16_t
  3893. }
  3894. type Txcb_warp_pointer_request_t = struct {
  3895. Fmajor_opcode Tuint8_t
  3896. Fpad0 Tuint8_t
  3897. Flength Tuint16_t
  3898. Fsrc_window Txcb_window_t
  3899. Fdst_window Txcb_window_t
  3900. Fsrc_x Tint16_t
  3901. Fsrc_y Tint16_t
  3902. Fsrc_width Tuint16_t
  3903. Fsrc_height Tuint16_t
  3904. Fdst_x Tint16_t
  3905. Fdst_y Tint16_t
  3906. }
  3907. type Txcb_input_focus_t = int32
  3908. type _xcb_input_focus_t = int32
  3909. const _XCB_INPUT_FOCUS_NONE = 0
  3910. const _XCB_INPUT_FOCUS_POINTER_ROOT = 1
  3911. const _XCB_INPUT_FOCUS_PARENT = 2
  3912. const _XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
  3913. type Txcb_set_input_focus_request_t = struct {
  3914. Fmajor_opcode Tuint8_t
  3915. Frevert_to Tuint8_t
  3916. Flength Tuint16_t
  3917. Ffocus Txcb_window_t
  3918. Ftime Txcb_timestamp_t
  3919. }
  3920. type Txcb_get_input_focus_cookie_t = struct {
  3921. Fsequence uint32
  3922. }
  3923. type Txcb_get_input_focus_request_t = struct {
  3924. Fmajor_opcode Tuint8_t
  3925. Fpad0 Tuint8_t
  3926. Flength Tuint16_t
  3927. }
  3928. type Txcb_get_input_focus_reply_t = struct {
  3929. Fresponse_type Tuint8_t
  3930. Frevert_to Tuint8_t
  3931. Fsequence Tuint16_t
  3932. Flength Tuint32_t
  3933. Ffocus Txcb_window_t
  3934. }
  3935. type Txcb_query_keymap_cookie_t = struct {
  3936. Fsequence uint32
  3937. }
  3938. type Txcb_query_keymap_request_t = struct {
  3939. Fmajor_opcode Tuint8_t
  3940. Fpad0 Tuint8_t
  3941. Flength Tuint16_t
  3942. }
  3943. type Txcb_query_keymap_reply_t = struct {
  3944. Fresponse_type Tuint8_t
  3945. Fpad0 Tuint8_t
  3946. Fsequence Tuint16_t
  3947. Flength Tuint32_t
  3948. Fkeys [32]Tuint8_t
  3949. }
  3950. type Txcb_open_font_request_t = struct {
  3951. Fmajor_opcode Tuint8_t
  3952. Fpad0 Tuint8_t
  3953. Flength Tuint16_t
  3954. Ffid Txcb_font_t
  3955. Fname_len Tuint16_t
  3956. Fpad1 [2]Tuint8_t
  3957. }
  3958. type Txcb_close_font_request_t = struct {
  3959. Fmajor_opcode Tuint8_t
  3960. Fpad0 Tuint8_t
  3961. Flength Tuint16_t
  3962. Ffont Txcb_font_t
  3963. }
  3964. type Txcb_font_draw_t = int32
  3965. type _xcb_font_draw_t = int32
  3966. const _XCB_FONT_DRAW_LEFT_TO_RIGHT = 0
  3967. const _XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
  3968. type Txcb_fontprop_t = struct {
  3969. Fname Txcb_atom_t
  3970. Fvalue Tuint32_t
  3971. }
  3972. type Txcb_fontprop_iterator_t = struct {
  3973. Fdata uintptr
  3974. Frem int32
  3975. Findex int32
  3976. }
  3977. type Txcb_charinfo_t = struct {
  3978. Fleft_side_bearing Tint16_t
  3979. Fright_side_bearing Tint16_t
  3980. Fcharacter_width Tint16_t
  3981. Fascent Tint16_t
  3982. Fdescent Tint16_t
  3983. Fattributes Tuint16_t
  3984. }
  3985. type Txcb_charinfo_iterator_t = struct {
  3986. Fdata uintptr
  3987. Frem int32
  3988. Findex int32
  3989. }
  3990. type Txcb_query_font_cookie_t = struct {
  3991. Fsequence uint32
  3992. }
  3993. type Txcb_query_font_request_t = struct {
  3994. Fmajor_opcode Tuint8_t
  3995. Fpad0 Tuint8_t
  3996. Flength Tuint16_t
  3997. Ffont Txcb_fontable_t
  3998. }
  3999. type Txcb_query_font_reply_t = struct {
  4000. Fresponse_type Tuint8_t
  4001. Fpad0 Tuint8_t
  4002. Fsequence Tuint16_t
  4003. Flength Tuint32_t
  4004. Fmin_bounds Txcb_charinfo_t
  4005. Fpad1 [4]Tuint8_t
  4006. Fmax_bounds Txcb_charinfo_t
  4007. Fpad2 [4]Tuint8_t
  4008. Fmin_char_or_byte2 Tuint16_t
  4009. Fmax_char_or_byte2 Tuint16_t
  4010. Fdefault_char Tuint16_t
  4011. Fproperties_len Tuint16_t
  4012. Fdraw_direction Tuint8_t
  4013. Fmin_byte1 Tuint8_t
  4014. Fmax_byte1 Tuint8_t
  4015. Fall_chars_exist Tuint8_t
  4016. Ffont_ascent Tint16_t
  4017. Ffont_descent Tint16_t
  4018. Fchar_infos_len Tuint32_t
  4019. }
  4020. type Txcb_query_text_extents_cookie_t = struct {
  4021. Fsequence uint32
  4022. }
  4023. type Txcb_query_text_extents_request_t = struct {
  4024. Fmajor_opcode Tuint8_t
  4025. Fodd_length Tuint8_t
  4026. Flength Tuint16_t
  4027. Ffont Txcb_fontable_t
  4028. }
  4029. type Txcb_query_text_extents_reply_t = struct {
  4030. Fresponse_type Tuint8_t
  4031. Fdraw_direction Tuint8_t
  4032. Fsequence Tuint16_t
  4033. Flength Tuint32_t
  4034. Ffont_ascent Tint16_t
  4035. Ffont_descent Tint16_t
  4036. Foverall_ascent Tint16_t
  4037. Foverall_descent Tint16_t
  4038. Foverall_width Tint32_t
  4039. Foverall_left Tint32_t
  4040. Foverall_right Tint32_t
  4041. }
  4042. type Txcb_str_t = struct {
  4043. Fname_len Tuint8_t
  4044. }
  4045. type Txcb_str_iterator_t = struct {
  4046. Fdata uintptr
  4047. Frem int32
  4048. Findex int32
  4049. }
  4050. type Txcb_list_fonts_cookie_t = struct {
  4051. Fsequence uint32
  4052. }
  4053. type Txcb_list_fonts_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_reply_t = struct {
  4061. Fresponse_type Tuint8_t
  4062. Fpad0 Tuint8_t
  4063. Fsequence Tuint16_t
  4064. Flength Tuint32_t
  4065. Fnames_len Tuint16_t
  4066. Fpad1 [22]Tuint8_t
  4067. }
  4068. type Txcb_list_fonts_with_info_cookie_t = struct {
  4069. Fsequence uint32
  4070. }
  4071. type Txcb_list_fonts_with_info_request_t = struct {
  4072. Fmajor_opcode Tuint8_t
  4073. Fpad0 Tuint8_t
  4074. Flength Tuint16_t
  4075. Fmax_names Tuint16_t
  4076. Fpattern_len Tuint16_t
  4077. }
  4078. type Txcb_list_fonts_with_info_reply_t = struct {
  4079. Fresponse_type Tuint8_t
  4080. Fname_len Tuint8_t
  4081. Fsequence Tuint16_t
  4082. Flength Tuint32_t
  4083. Fmin_bounds Txcb_charinfo_t
  4084. Fpad0 [4]Tuint8_t
  4085. Fmax_bounds Txcb_charinfo_t
  4086. Fpad1 [4]Tuint8_t
  4087. Fmin_char_or_byte2 Tuint16_t
  4088. Fmax_char_or_byte2 Tuint16_t
  4089. Fdefault_char Tuint16_t
  4090. Fproperties_len Tuint16_t
  4091. Fdraw_direction Tuint8_t
  4092. Fmin_byte1 Tuint8_t
  4093. Fmax_byte1 Tuint8_t
  4094. Fall_chars_exist Tuint8_t
  4095. Ffont_ascent Tint16_t
  4096. Ffont_descent Tint16_t
  4097. Freplies_hint Tuint32_t
  4098. }
  4099. type Txcb_set_font_path_request_t = struct {
  4100. Fmajor_opcode Tuint8_t
  4101. Fpad0 Tuint8_t
  4102. Flength Tuint16_t
  4103. Ffont_qty Tuint16_t
  4104. Fpad1 [2]Tuint8_t
  4105. }
  4106. type Txcb_get_font_path_cookie_t = struct {
  4107. Fsequence uint32
  4108. }
  4109. type Txcb_get_font_path_request_t = struct {
  4110. Fmajor_opcode Tuint8_t
  4111. Fpad0 Tuint8_t
  4112. Flength Tuint16_t
  4113. }
  4114. type Txcb_get_font_path_reply_t = struct {
  4115. Fresponse_type Tuint8_t
  4116. Fpad0 Tuint8_t
  4117. Fsequence Tuint16_t
  4118. Flength Tuint32_t
  4119. Fpath_len Tuint16_t
  4120. Fpad1 [22]Tuint8_t
  4121. }
  4122. type Txcb_create_pixmap_request_t = struct {
  4123. Fmajor_opcode Tuint8_t
  4124. Fdepth Tuint8_t
  4125. Flength Tuint16_t
  4126. Fpid Txcb_pixmap_t
  4127. Fdrawable Txcb_drawable_t
  4128. Fwidth Tuint16_t
  4129. Fheight Tuint16_t
  4130. }
  4131. type Txcb_free_pixmap_request_t = struct {
  4132. Fmajor_opcode Tuint8_t
  4133. Fpad0 Tuint8_t
  4134. Flength Tuint16_t
  4135. Fpixmap Txcb_pixmap_t
  4136. }
  4137. type Txcb_gc_t = int32
  4138. type _xcb_gc_t = int32
  4139. const _XCB_GC_FUNCTION = 1
  4140. const _XCB_GC_PLANE_MASK = 2
  4141. const _XCB_GC_FOREGROUND = 4
  4142. const _XCB_GC_BACKGROUND = 8
  4143. const _XCB_GC_LINE_WIDTH = 16
  4144. const _XCB_GC_LINE_STYLE = 32
  4145. const _XCB_GC_CAP_STYLE = 64
  4146. const _XCB_GC_JOIN_STYLE = 128
  4147. const _XCB_GC_FILL_STYLE = 256
  4148. const _XCB_GC_FILL_RULE = 512
  4149. const _XCB_GC_TILE = 1024
  4150. const _XCB_GC_STIPPLE = 2048
  4151. const _XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096
  4152. const _XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192
  4153. const _XCB_GC_FONT = 16384
  4154. const _XCB_GC_SUBWINDOW_MODE = 32768
  4155. const _XCB_GC_GRAPHICS_EXPOSURES = 65536
  4156. const _XCB_GC_CLIP_ORIGIN_X = 131072
  4157. const _XCB_GC_CLIP_ORIGIN_Y = 262144
  4158. const _XCB_GC_CLIP_MASK = 524288
  4159. const _XCB_GC_DASH_OFFSET = 1048576
  4160. const _XCB_GC_DASH_LIST = 2097152
  4161. const _XCB_GC_ARC_MODE = 4194304
  4162. type Txcb_gx_t = int32
  4163. type _xcb_gx_t = int32
  4164. const _XCB_GX_CLEAR = 0
  4165. const _XCB_GX_AND = 1
  4166. const _XCB_GX_AND_REVERSE = 2
  4167. const _XCB_GX_COPY = 3
  4168. const _XCB_GX_AND_INVERTED = 4
  4169. const _XCB_GX_NOOP = 5
  4170. const _XCB_GX_XOR = 6
  4171. const _XCB_GX_OR = 7
  4172. const _XCB_GX_NOR = 8
  4173. const _XCB_GX_EQUIV = 9
  4174. const _XCB_GX_INVERT = 10
  4175. const _XCB_GX_OR_REVERSE = 11
  4176. const _XCB_GX_COPY_INVERTED = 12
  4177. const _XCB_GX_OR_INVERTED = 13
  4178. const _XCB_GX_NAND = 14
  4179. const _XCB_GX_SET = 15
  4180. type Txcb_line_style_t = int32
  4181. type _xcb_line_style_t = int32
  4182. const _XCB_LINE_STYLE_SOLID = 0
  4183. const _XCB_LINE_STYLE_ON_OFF_DASH = 1
  4184. const _XCB_LINE_STYLE_DOUBLE_DASH = 2
  4185. type Txcb_cap_style_t = int32
  4186. type _xcb_cap_style_t = int32
  4187. const _XCB_CAP_STYLE_NOT_LAST = 0
  4188. const _XCB_CAP_STYLE_BUTT = 1
  4189. const _XCB_CAP_STYLE_ROUND = 2
  4190. const _XCB_CAP_STYLE_PROJECTING = 3
  4191. type Txcb_join_style_t = int32
  4192. type _xcb_join_style_t = int32
  4193. const _XCB_JOIN_STYLE_MITER = 0
  4194. const _XCB_JOIN_STYLE_ROUND = 1
  4195. const _XCB_JOIN_STYLE_BEVEL = 2
  4196. type Txcb_fill_style_t = int32
  4197. type _xcb_fill_style_t = int32
  4198. const _XCB_FILL_STYLE_SOLID = 0
  4199. const _XCB_FILL_STYLE_TILED = 1
  4200. const _XCB_FILL_STYLE_STIPPLED = 2
  4201. const _XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
  4202. type Txcb_fill_rule_t = int32
  4203. type _xcb_fill_rule_t = int32
  4204. const _XCB_FILL_RULE_EVEN_ODD = 0
  4205. const _XCB_FILL_RULE_WINDING = 1
  4206. type Txcb_subwindow_mode_t = int32
  4207. type _xcb_subwindow_mode_t = int32
  4208. const _XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0
  4209. const _XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
  4210. type Txcb_arc_mode_t = int32
  4211. type _xcb_arc_mode_t = int32
  4212. const _XCB_ARC_MODE_CHORD = 0
  4213. const _XCB_ARC_MODE_PIE_SLICE = 1
  4214. type Txcb_create_gc_value_list_t = struct {
  4215. Ffunction Tuint32_t
  4216. Fplane_mask Tuint32_t
  4217. Fforeground Tuint32_t
  4218. Fbackground Tuint32_t
  4219. Fline_width Tuint32_t
  4220. Fline_style Tuint32_t
  4221. Fcap_style Tuint32_t
  4222. Fjoin_style Tuint32_t
  4223. Ffill_style Tuint32_t
  4224. Ffill_rule Tuint32_t
  4225. Ftile Txcb_pixmap_t
  4226. Fstipple Txcb_pixmap_t
  4227. Ftile_stipple_x_origin Tint32_t
  4228. Ftile_stipple_y_origin Tint32_t
  4229. Ffont Txcb_font_t
  4230. Fsubwindow_mode Tuint32_t
  4231. Fgraphics_exposures Txcb_bool32_t
  4232. Fclip_x_origin Tint32_t
  4233. Fclip_y_origin Tint32_t
  4234. Fclip_mask Txcb_pixmap_t
  4235. Fdash_offset Tuint32_t
  4236. Fdashes Tuint32_t
  4237. Farc_mode Tuint32_t
  4238. }
  4239. type Txcb_create_gc_request_t = struct {
  4240. Fmajor_opcode Tuint8_t
  4241. Fpad0 Tuint8_t
  4242. Flength Tuint16_t
  4243. Fcid Txcb_gcontext_t
  4244. Fdrawable Txcb_drawable_t
  4245. Fvalue_mask Tuint32_t
  4246. }
  4247. type Txcb_change_gc_value_list_t = struct {
  4248. Ffunction Tuint32_t
  4249. Fplane_mask Tuint32_t
  4250. Fforeground Tuint32_t
  4251. Fbackground Tuint32_t
  4252. Fline_width Tuint32_t
  4253. Fline_style Tuint32_t
  4254. Fcap_style Tuint32_t
  4255. Fjoin_style Tuint32_t
  4256. Ffill_style Tuint32_t
  4257. Ffill_rule Tuint32_t
  4258. Ftile Txcb_pixmap_t
  4259. Fstipple Txcb_pixmap_t
  4260. Ftile_stipple_x_origin Tint32_t
  4261. Ftile_stipple_y_origin Tint32_t
  4262. Ffont Txcb_font_t
  4263. Fsubwindow_mode Tuint32_t
  4264. Fgraphics_exposures Txcb_bool32_t
  4265. Fclip_x_origin Tint32_t
  4266. Fclip_y_origin Tint32_t
  4267. Fclip_mask Txcb_pixmap_t
  4268. Fdash_offset Tuint32_t
  4269. Fdashes Tuint32_t
  4270. Farc_mode Tuint32_t
  4271. }
  4272. type Txcb_change_gc_request_t = struct {
  4273. Fmajor_opcode Tuint8_t
  4274. Fpad0 Tuint8_t
  4275. Flength Tuint16_t
  4276. Fgc Txcb_gcontext_t
  4277. Fvalue_mask Tuint32_t
  4278. }
  4279. type Txcb_copy_gc_request_t = struct {
  4280. Fmajor_opcode Tuint8_t
  4281. Fpad0 Tuint8_t
  4282. Flength Tuint16_t
  4283. Fsrc_gc Txcb_gcontext_t
  4284. Fdst_gc Txcb_gcontext_t
  4285. Fvalue_mask Tuint32_t
  4286. }
  4287. type Txcb_set_dashes_request_t = struct {
  4288. Fmajor_opcode Tuint8_t
  4289. Fpad0 Tuint8_t
  4290. Flength Tuint16_t
  4291. Fgc Txcb_gcontext_t
  4292. Fdash_offset Tuint16_t
  4293. Fdashes_len Tuint16_t
  4294. }
  4295. type Txcb_clip_ordering_t = int32
  4296. type _xcb_clip_ordering_t = int32
  4297. const _XCB_CLIP_ORDERING_UNSORTED = 0
  4298. const _XCB_CLIP_ORDERING_Y_SORTED = 1
  4299. const _XCB_CLIP_ORDERING_YX_SORTED = 2
  4300. const _XCB_CLIP_ORDERING_YX_BANDED = 3
  4301. type Txcb_set_clip_rectangles_request_t = struct {
  4302. Fmajor_opcode Tuint8_t
  4303. Fordering Tuint8_t
  4304. Flength Tuint16_t
  4305. Fgc Txcb_gcontext_t
  4306. Fclip_x_origin Tint16_t
  4307. Fclip_y_origin Tint16_t
  4308. }
  4309. type Txcb_free_gc_request_t = struct {
  4310. Fmajor_opcode Tuint8_t
  4311. Fpad0 Tuint8_t
  4312. Flength Tuint16_t
  4313. Fgc Txcb_gcontext_t
  4314. }
  4315. type Txcb_clear_area_request_t = struct {
  4316. Fmajor_opcode Tuint8_t
  4317. Fexposures Tuint8_t
  4318. Flength Tuint16_t
  4319. Fwindow Txcb_window_t
  4320. Fx Tint16_t
  4321. Fy Tint16_t
  4322. Fwidth Tuint16_t
  4323. Fheight Tuint16_t
  4324. }
  4325. type Txcb_copy_area_request_t = struct {
  4326. Fmajor_opcode Tuint8_t
  4327. Fpad0 Tuint8_t
  4328. Flength Tuint16_t
  4329. Fsrc_drawable Txcb_drawable_t
  4330. Fdst_drawable Txcb_drawable_t
  4331. Fgc Txcb_gcontext_t
  4332. Fsrc_x Tint16_t
  4333. Fsrc_y Tint16_t
  4334. Fdst_x Tint16_t
  4335. Fdst_y Tint16_t
  4336. Fwidth Tuint16_t
  4337. Fheight Tuint16_t
  4338. }
  4339. type Txcb_copy_plane_request_t = struct {
  4340. Fmajor_opcode Tuint8_t
  4341. Fpad0 Tuint8_t
  4342. Flength Tuint16_t
  4343. Fsrc_drawable Txcb_drawable_t
  4344. Fdst_drawable Txcb_drawable_t
  4345. Fgc Txcb_gcontext_t
  4346. Fsrc_x Tint16_t
  4347. Fsrc_y Tint16_t
  4348. Fdst_x Tint16_t
  4349. Fdst_y Tint16_t
  4350. Fwidth Tuint16_t
  4351. Fheight Tuint16_t
  4352. Fbit_plane Tuint32_t
  4353. }
  4354. type Txcb_coord_mode_t = int32
  4355. type _xcb_coord_mode_t = int32
  4356. const _XCB_COORD_MODE_ORIGIN = 0
  4357. const _XCB_COORD_MODE_PREVIOUS = 1
  4358. type Txcb_poly_point_request_t = struct {
  4359. Fmajor_opcode Tuint8_t
  4360. Fcoordinate_mode Tuint8_t
  4361. Flength Tuint16_t
  4362. Fdrawable Txcb_drawable_t
  4363. Fgc Txcb_gcontext_t
  4364. }
  4365. type Txcb_poly_line_request_t = struct {
  4366. Fmajor_opcode Tuint8_t
  4367. Fcoordinate_mode Tuint8_t
  4368. Flength Tuint16_t
  4369. Fdrawable Txcb_drawable_t
  4370. Fgc Txcb_gcontext_t
  4371. }
  4372. type Txcb_segment_t = struct {
  4373. Fx1 Tint16_t
  4374. Fy1 Tint16_t
  4375. Fx2 Tint16_t
  4376. Fy2 Tint16_t
  4377. }
  4378. type Txcb_segment_iterator_t = struct {
  4379. Fdata uintptr
  4380. Frem int32
  4381. Findex int32
  4382. }
  4383. type Txcb_poly_segment_request_t = struct {
  4384. Fmajor_opcode Tuint8_t
  4385. Fpad0 Tuint8_t
  4386. Flength Tuint16_t
  4387. Fdrawable Txcb_drawable_t
  4388. Fgc Txcb_gcontext_t
  4389. }
  4390. type Txcb_poly_rectangle_request_t = struct {
  4391. Fmajor_opcode Tuint8_t
  4392. Fpad0 Tuint8_t
  4393. Flength Tuint16_t
  4394. Fdrawable Txcb_drawable_t
  4395. Fgc Txcb_gcontext_t
  4396. }
  4397. type Txcb_poly_arc_request_t = struct {
  4398. Fmajor_opcode Tuint8_t
  4399. Fpad0 Tuint8_t
  4400. Flength Tuint16_t
  4401. Fdrawable Txcb_drawable_t
  4402. Fgc Txcb_gcontext_t
  4403. }
  4404. type Txcb_poly_shape_t = int32
  4405. type _xcb_poly_shape_t = int32
  4406. const _XCB_POLY_SHAPE_COMPLEX = 0
  4407. const _XCB_POLY_SHAPE_NONCONVEX = 1
  4408. const _XCB_POLY_SHAPE_CONVEX = 2
  4409. type Txcb_fill_poly_request_t = struct {
  4410. Fmajor_opcode Tuint8_t
  4411. Fpad0 Tuint8_t
  4412. Flength Tuint16_t
  4413. Fdrawable Txcb_drawable_t
  4414. Fgc Txcb_gcontext_t
  4415. Fshape Tuint8_t
  4416. Fcoordinate_mode Tuint8_t
  4417. Fpad1 [2]Tuint8_t
  4418. }
  4419. type Txcb_poly_fill_rectangle_request_t = struct {
  4420. Fmajor_opcode Tuint8_t
  4421. Fpad0 Tuint8_t
  4422. Flength Tuint16_t
  4423. Fdrawable Txcb_drawable_t
  4424. Fgc Txcb_gcontext_t
  4425. }
  4426. type Txcb_poly_fill_arc_request_t = struct {
  4427. Fmajor_opcode Tuint8_t
  4428. Fpad0 Tuint8_t
  4429. Flength Tuint16_t
  4430. Fdrawable Txcb_drawable_t
  4431. Fgc Txcb_gcontext_t
  4432. }
  4433. type Txcb_image_format_t = int32
  4434. type _xcb_image_format_t = int32
  4435. const _XCB_IMAGE_FORMAT_XY_BITMAP = 0
  4436. const _XCB_IMAGE_FORMAT_XY_PIXMAP = 1
  4437. const _XCB_IMAGE_FORMAT_Z_PIXMAP = 2
  4438. type Txcb_put_image_request_t = struct {
  4439. Fmajor_opcode Tuint8_t
  4440. Fformat Tuint8_t
  4441. Flength Tuint16_t
  4442. Fdrawable Txcb_drawable_t
  4443. Fgc Txcb_gcontext_t
  4444. Fwidth Tuint16_t
  4445. Fheight Tuint16_t
  4446. Fdst_x Tint16_t
  4447. Fdst_y Tint16_t
  4448. Fleft_pad Tuint8_t
  4449. Fdepth Tuint8_t
  4450. Fpad0 [2]Tuint8_t
  4451. }
  4452. type Txcb_get_image_cookie_t = struct {
  4453. Fsequence uint32
  4454. }
  4455. type Txcb_get_image_request_t = struct {
  4456. Fmajor_opcode Tuint8_t
  4457. Fformat Tuint8_t
  4458. Flength Tuint16_t
  4459. Fdrawable Txcb_drawable_t
  4460. Fx Tint16_t
  4461. Fy Tint16_t
  4462. Fwidth Tuint16_t
  4463. Fheight Tuint16_t
  4464. Fplane_mask Tuint32_t
  4465. }
  4466. type Txcb_get_image_reply_t = struct {
  4467. Fresponse_type Tuint8_t
  4468. Fdepth Tuint8_t
  4469. Fsequence Tuint16_t
  4470. Flength Tuint32_t
  4471. Fvisual Txcb_visualid_t
  4472. Fpad0 [20]Tuint8_t
  4473. }
  4474. type Txcb_poly_text_8_request_t = struct {
  4475. Fmajor_opcode Tuint8_t
  4476. Fpad0 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_poly_text_16_request_t = struct {
  4484. Fmajor_opcode Tuint8_t
  4485. Fpad0 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_image_text_8_request_t = struct {
  4493. Fmajor_opcode Tuint8_t
  4494. Fstring_len Tuint8_t
  4495. Flength Tuint16_t
  4496. Fdrawable Txcb_drawable_t
  4497. Fgc Txcb_gcontext_t
  4498. Fx Tint16_t
  4499. Fy Tint16_t
  4500. }
  4501. type Txcb_image_text_16_request_t = struct {
  4502. Fmajor_opcode Tuint8_t
  4503. Fstring_len Tuint8_t
  4504. Flength Tuint16_t
  4505. Fdrawable Txcb_drawable_t
  4506. Fgc Txcb_gcontext_t
  4507. Fx Tint16_t
  4508. Fy Tint16_t
  4509. }
  4510. type Txcb_colormap_alloc_t = int32
  4511. type _xcb_colormap_alloc_t = int32
  4512. const _XCB_COLORMAP_ALLOC_NONE = 0
  4513. const _XCB_COLORMAP_ALLOC_ALL = 1
  4514. type Txcb_create_colormap_request_t = struct {
  4515. Fmajor_opcode Tuint8_t
  4516. Falloc Tuint8_t
  4517. Flength Tuint16_t
  4518. Fmid Txcb_colormap_t
  4519. Fwindow Txcb_window_t
  4520. Fvisual Txcb_visualid_t
  4521. }
  4522. type Txcb_free_colormap_request_t = struct {
  4523. Fmajor_opcode Tuint8_t
  4524. Fpad0 Tuint8_t
  4525. Flength Tuint16_t
  4526. Fcmap Txcb_colormap_t
  4527. }
  4528. type Txcb_copy_colormap_and_free_request_t = struct {
  4529. Fmajor_opcode Tuint8_t
  4530. Fpad0 Tuint8_t
  4531. Flength Tuint16_t
  4532. Fmid Txcb_colormap_t
  4533. Fsrc_cmap Txcb_colormap_t
  4534. }
  4535. type Txcb_install_colormap_request_t = struct {
  4536. Fmajor_opcode Tuint8_t
  4537. Fpad0 Tuint8_t
  4538. Flength Tuint16_t
  4539. Fcmap Txcb_colormap_t
  4540. }
  4541. type Txcb_uninstall_colormap_request_t = struct {
  4542. Fmajor_opcode Tuint8_t
  4543. Fpad0 Tuint8_t
  4544. Flength Tuint16_t
  4545. Fcmap Txcb_colormap_t
  4546. }
  4547. type Txcb_list_installed_colormaps_cookie_t = struct {
  4548. Fsequence uint32
  4549. }
  4550. type Txcb_list_installed_colormaps_request_t = struct {
  4551. Fmajor_opcode Tuint8_t
  4552. Fpad0 Tuint8_t
  4553. Flength Tuint16_t
  4554. Fwindow Txcb_window_t
  4555. }
  4556. type Txcb_list_installed_colormaps_reply_t = struct {
  4557. Fresponse_type Tuint8_t
  4558. Fpad0 Tuint8_t
  4559. Fsequence Tuint16_t
  4560. Flength Tuint32_t
  4561. Fcmaps_len Tuint16_t
  4562. Fpad1 [22]Tuint8_t
  4563. }
  4564. type Txcb_alloc_color_cookie_t = struct {
  4565. Fsequence uint32
  4566. }
  4567. type Txcb_alloc_color_request_t = struct {
  4568. Fmajor_opcode Tuint8_t
  4569. Fpad0 Tuint8_t
  4570. Flength Tuint16_t
  4571. Fcmap Txcb_colormap_t
  4572. Fred Tuint16_t
  4573. Fgreen Tuint16_t
  4574. Fblue Tuint16_t
  4575. Fpad1 [2]Tuint8_t
  4576. }
  4577. type Txcb_alloc_color_reply_t = struct {
  4578. Fresponse_type Tuint8_t
  4579. Fpad0 Tuint8_t
  4580. Fsequence Tuint16_t
  4581. Flength Tuint32_t
  4582. Fred Tuint16_t
  4583. Fgreen Tuint16_t
  4584. Fblue Tuint16_t
  4585. Fpad1 [2]Tuint8_t
  4586. Fpixel Tuint32_t
  4587. }
  4588. type Txcb_alloc_named_color_cookie_t = struct {
  4589. Fsequence uint32
  4590. }
  4591. type Txcb_alloc_named_color_request_t = struct {
  4592. Fmajor_opcode Tuint8_t
  4593. Fpad0 Tuint8_t
  4594. Flength Tuint16_t
  4595. Fcmap Txcb_colormap_t
  4596. Fname_len Tuint16_t
  4597. Fpad1 [2]Tuint8_t
  4598. }
  4599. type Txcb_alloc_named_color_reply_t = struct {
  4600. Fresponse_type Tuint8_t
  4601. Fpad0 Tuint8_t
  4602. Fsequence Tuint16_t
  4603. Flength Tuint32_t
  4604. Fpixel Tuint32_t
  4605. Fexact_red Tuint16_t
  4606. Fexact_green Tuint16_t
  4607. Fexact_blue Tuint16_t
  4608. Fvisual_red Tuint16_t
  4609. Fvisual_green Tuint16_t
  4610. Fvisual_blue Tuint16_t
  4611. }
  4612. type Txcb_alloc_color_cells_cookie_t = struct {
  4613. Fsequence uint32
  4614. }
  4615. type Txcb_alloc_color_cells_request_t = struct {
  4616. Fmajor_opcode Tuint8_t
  4617. Fcontiguous Tuint8_t
  4618. Flength Tuint16_t
  4619. Fcmap Txcb_colormap_t
  4620. Fcolors Tuint16_t
  4621. Fplanes Tuint16_t
  4622. }
  4623. type Txcb_alloc_color_cells_reply_t = struct {
  4624. Fresponse_type Tuint8_t
  4625. Fpad0 Tuint8_t
  4626. Fsequence Tuint16_t
  4627. Flength Tuint32_t
  4628. Fpixels_len Tuint16_t
  4629. Fmasks_len Tuint16_t
  4630. Fpad1 [20]Tuint8_t
  4631. }
  4632. type Txcb_alloc_color_planes_cookie_t = struct {
  4633. Fsequence uint32
  4634. }
  4635. type Txcb_alloc_color_planes_request_t = struct {
  4636. Fmajor_opcode Tuint8_t
  4637. Fcontiguous Tuint8_t
  4638. Flength Tuint16_t
  4639. Fcmap Txcb_colormap_t
  4640. Fcolors Tuint16_t
  4641. Freds Tuint16_t
  4642. Fgreens Tuint16_t
  4643. Fblues Tuint16_t
  4644. }
  4645. type Txcb_alloc_color_planes_reply_t = struct {
  4646. Fresponse_type Tuint8_t
  4647. Fpad0 Tuint8_t
  4648. Fsequence Tuint16_t
  4649. Flength Tuint32_t
  4650. Fpixels_len Tuint16_t
  4651. Fpad1 [2]Tuint8_t
  4652. Fred_mask Tuint32_t
  4653. Fgreen_mask Tuint32_t
  4654. Fblue_mask Tuint32_t
  4655. Fpad2 [8]Tuint8_t
  4656. }
  4657. type Txcb_free_colors_request_t = struct {
  4658. Fmajor_opcode Tuint8_t
  4659. Fpad0 Tuint8_t
  4660. Flength Tuint16_t
  4661. Fcmap Txcb_colormap_t
  4662. Fplane_mask Tuint32_t
  4663. }
  4664. type Txcb_color_flag_t = int32
  4665. type _xcb_color_flag_t = int32
  4666. const _XCB_COLOR_FLAG_RED = 1
  4667. const _XCB_COLOR_FLAG_GREEN = 2
  4668. const _XCB_COLOR_FLAG_BLUE = 4
  4669. type Txcb_coloritem_t = struct {
  4670. Fpixel Tuint32_t
  4671. Fred Tuint16_t
  4672. Fgreen Tuint16_t
  4673. Fblue Tuint16_t
  4674. Fflags Tuint8_t
  4675. Fpad0 Tuint8_t
  4676. }
  4677. type Txcb_coloritem_iterator_t = struct {
  4678. Fdata uintptr
  4679. Frem int32
  4680. Findex int32
  4681. }
  4682. type Txcb_store_colors_request_t = struct {
  4683. Fmajor_opcode Tuint8_t
  4684. Fpad0 Tuint8_t
  4685. Flength Tuint16_t
  4686. Fcmap Txcb_colormap_t
  4687. }
  4688. type Txcb_store_named_color_request_t = struct {
  4689. Fmajor_opcode Tuint8_t
  4690. Fflags Tuint8_t
  4691. Flength Tuint16_t
  4692. Fcmap Txcb_colormap_t
  4693. Fpixel Tuint32_t
  4694. Fname_len Tuint16_t
  4695. Fpad0 [2]Tuint8_t
  4696. }
  4697. type Txcb_rgb_t = struct {
  4698. Fred Tuint16_t
  4699. Fgreen Tuint16_t
  4700. Fblue Tuint16_t
  4701. Fpad0 [2]Tuint8_t
  4702. }
  4703. type Txcb_rgb_iterator_t = struct {
  4704. Fdata uintptr
  4705. Frem int32
  4706. Findex int32
  4707. }
  4708. type Txcb_query_colors_cookie_t = struct {
  4709. Fsequence uint32
  4710. }
  4711. type Txcb_query_colors_request_t = struct {
  4712. Fmajor_opcode Tuint8_t
  4713. Fpad0 Tuint8_t
  4714. Flength Tuint16_t
  4715. Fcmap Txcb_colormap_t
  4716. }
  4717. type Txcb_query_colors_reply_t = struct {
  4718. Fresponse_type Tuint8_t
  4719. Fpad0 Tuint8_t
  4720. Fsequence Tuint16_t
  4721. Flength Tuint32_t
  4722. Fcolors_len Tuint16_t
  4723. Fpad1 [22]Tuint8_t
  4724. }
  4725. type Txcb_lookup_color_cookie_t = struct {
  4726. Fsequence uint32
  4727. }
  4728. type Txcb_lookup_color_request_t = struct {
  4729. Fmajor_opcode Tuint8_t
  4730. Fpad0 Tuint8_t
  4731. Flength Tuint16_t
  4732. Fcmap Txcb_colormap_t
  4733. Fname_len Tuint16_t
  4734. Fpad1 [2]Tuint8_t
  4735. }
  4736. type Txcb_lookup_color_reply_t = struct {
  4737. Fresponse_type Tuint8_t
  4738. Fpad0 Tuint8_t
  4739. Fsequence Tuint16_t
  4740. Flength Tuint32_t
  4741. Fexact_red Tuint16_t
  4742. Fexact_green Tuint16_t
  4743. Fexact_blue Tuint16_t
  4744. Fvisual_red Tuint16_t
  4745. Fvisual_green Tuint16_t
  4746. Fvisual_blue Tuint16_t
  4747. }
  4748. type Txcb_pixmap_enum_t = int32
  4749. type _xcb_pixmap_enum_t = int32
  4750. const _XCB_PIXMAP_NONE = 0
  4751. type Txcb_create_cursor_request_t = struct {
  4752. Fmajor_opcode Tuint8_t
  4753. Fpad0 Tuint8_t
  4754. Flength Tuint16_t
  4755. Fcid Txcb_cursor_t
  4756. Fsource Txcb_pixmap_t
  4757. Fmask Txcb_pixmap_t
  4758. Ffore_red Tuint16_t
  4759. Ffore_green Tuint16_t
  4760. Ffore_blue Tuint16_t
  4761. Fback_red Tuint16_t
  4762. Fback_green Tuint16_t
  4763. Fback_blue Tuint16_t
  4764. Fx Tuint16_t
  4765. Fy Tuint16_t
  4766. }
  4767. type Txcb_font_enum_t = int32
  4768. type _xcb_font_enum_t = int32
  4769. const _XCB_FONT_NONE = 0
  4770. type Txcb_create_glyph_cursor_request_t = struct {
  4771. Fmajor_opcode Tuint8_t
  4772. Fpad0 Tuint8_t
  4773. Flength Tuint16_t
  4774. Fcid Txcb_cursor_t
  4775. Fsource_font Txcb_font_t
  4776. Fmask_font Txcb_font_t
  4777. Fsource_char Tuint16_t
  4778. Fmask_char Tuint16_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_free_cursor_request_t = struct {
  4787. Fmajor_opcode Tuint8_t
  4788. Fpad0 Tuint8_t
  4789. Flength Tuint16_t
  4790. Fcursor Txcb_cursor_t
  4791. }
  4792. type Txcb_recolor_cursor_request_t = struct {
  4793. Fmajor_opcode Tuint8_t
  4794. Fpad0 Tuint8_t
  4795. Flength Tuint16_t
  4796. Fcursor Txcb_cursor_t
  4797. Ffore_red Tuint16_t
  4798. Ffore_green Tuint16_t
  4799. Ffore_blue Tuint16_t
  4800. Fback_red Tuint16_t
  4801. Fback_green Tuint16_t
  4802. Fback_blue Tuint16_t
  4803. }
  4804. type Txcb_query_shape_of_t = int32
  4805. type _xcb_query_shape_of_t = int32
  4806. const _XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0
  4807. const _XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1
  4808. const _XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
  4809. type Txcb_query_best_size_cookie_t = struct {
  4810. Fsequence uint32
  4811. }
  4812. type Txcb_query_best_size_request_t = struct {
  4813. Fmajor_opcode Tuint8_t
  4814. F_class Tuint8_t
  4815. Flength Tuint16_t
  4816. Fdrawable Txcb_drawable_t
  4817. Fwidth Tuint16_t
  4818. Fheight Tuint16_t
  4819. }
  4820. type Txcb_query_best_size_reply_t = struct {
  4821. Fresponse_type Tuint8_t
  4822. Fpad0 Tuint8_t
  4823. Fsequence Tuint16_t
  4824. Flength Tuint32_t
  4825. Fwidth Tuint16_t
  4826. Fheight Tuint16_t
  4827. }
  4828. type Txcb_query_extension_cookie_t = struct {
  4829. Fsequence uint32
  4830. }
  4831. type Txcb_query_extension_request_t = struct {
  4832. Fmajor_opcode Tuint8_t
  4833. Fpad0 Tuint8_t
  4834. Flength Tuint16_t
  4835. Fname_len Tuint16_t
  4836. Fpad1 [2]Tuint8_t
  4837. }
  4838. type Txcb_query_extension_reply_t = struct {
  4839. Fresponse_type Tuint8_t
  4840. Fpad0 Tuint8_t
  4841. Fsequence Tuint16_t
  4842. Flength Tuint32_t
  4843. Fpresent Tuint8_t
  4844. Fmajor_opcode Tuint8_t
  4845. Ffirst_event Tuint8_t
  4846. Ffirst_error Tuint8_t
  4847. }
  4848. type Txcb_list_extensions_cookie_t = struct {
  4849. Fsequence uint32
  4850. }
  4851. type Txcb_list_extensions_request_t = struct {
  4852. Fmajor_opcode Tuint8_t
  4853. Fpad0 Tuint8_t
  4854. Flength Tuint16_t
  4855. }
  4856. type Txcb_list_extensions_reply_t = struct {
  4857. Fresponse_type Tuint8_t
  4858. Fnames_len Tuint8_t
  4859. Fsequence Tuint16_t
  4860. Flength Tuint32_t
  4861. Fpad0 [24]Tuint8_t
  4862. }
  4863. type Txcb_change_keyboard_mapping_request_t = struct {
  4864. Fmajor_opcode Tuint8_t
  4865. Fkeycode_count Tuint8_t
  4866. Flength Tuint16_t
  4867. Ffirst_keycode Txcb_keycode_t
  4868. Fkeysyms_per_keycode Tuint8_t
  4869. Fpad0 [2]Tuint8_t
  4870. }
  4871. type Txcb_get_keyboard_mapping_cookie_t = struct {
  4872. Fsequence uint32
  4873. }
  4874. type Txcb_get_keyboard_mapping_request_t = struct {
  4875. Fmajor_opcode Tuint8_t
  4876. Fpad0 Tuint8_t
  4877. Flength Tuint16_t
  4878. Ffirst_keycode Txcb_keycode_t
  4879. Fcount Tuint8_t
  4880. }
  4881. type Txcb_get_keyboard_mapping_reply_t = struct {
  4882. Fresponse_type Tuint8_t
  4883. Fkeysyms_per_keycode Tuint8_t
  4884. Fsequence Tuint16_t
  4885. Flength Tuint32_t
  4886. Fpad0 [24]Tuint8_t
  4887. }
  4888. type Txcb_kb_t = int32
  4889. type _xcb_kb_t = int32
  4890. const _XCB_KB_KEY_CLICK_PERCENT = 1
  4891. const _XCB_KB_BELL_PERCENT = 2
  4892. const _XCB_KB_BELL_PITCH = 4
  4893. const _XCB_KB_BELL_DURATION = 8
  4894. const _XCB_KB_LED = 16
  4895. const _XCB_KB_LED_MODE = 32
  4896. const _XCB_KB_KEY = 64
  4897. const _XCB_KB_AUTO_REPEAT_MODE = 128
  4898. type Txcb_led_mode_t = int32
  4899. type _xcb_led_mode_t = int32
  4900. const _XCB_LED_MODE_OFF = 0
  4901. const _XCB_LED_MODE_ON = 1
  4902. type Txcb_auto_repeat_mode_t = int32
  4903. type _xcb_auto_repeat_mode_t = int32
  4904. const _XCB_AUTO_REPEAT_MODE_OFF = 0
  4905. const _XCB_AUTO_REPEAT_MODE_ON = 1
  4906. const _XCB_AUTO_REPEAT_MODE_DEFAULT = 2
  4907. type Txcb_change_keyboard_control_value_list_t = struct {
  4908. Fkey_click_percent Tint32_t
  4909. Fbell_percent Tint32_t
  4910. Fbell_pitch Tint32_t
  4911. Fbell_duration Tint32_t
  4912. Fled Tuint32_t
  4913. Fled_mode Tuint32_t
  4914. Fkey Txcb_keycode32_t
  4915. Fauto_repeat_mode Tuint32_t
  4916. }
  4917. type Txcb_change_keyboard_control_request_t = struct {
  4918. Fmajor_opcode Tuint8_t
  4919. Fpad0 Tuint8_t
  4920. Flength Tuint16_t
  4921. Fvalue_mask Tuint32_t
  4922. }
  4923. type Txcb_get_keyboard_control_cookie_t = struct {
  4924. Fsequence uint32
  4925. }
  4926. type Txcb_get_keyboard_control_request_t = struct {
  4927. Fmajor_opcode Tuint8_t
  4928. Fpad0 Tuint8_t
  4929. Flength Tuint16_t
  4930. }
  4931. type Txcb_get_keyboard_control_reply_t = struct {
  4932. Fresponse_type Tuint8_t
  4933. Fglobal_auto_repeat Tuint8_t
  4934. Fsequence Tuint16_t
  4935. Flength Tuint32_t
  4936. Fled_mask Tuint32_t
  4937. Fkey_click_percent Tuint8_t
  4938. Fbell_percent Tuint8_t
  4939. Fbell_pitch Tuint16_t
  4940. Fbell_duration Tuint16_t
  4941. Fpad0 [2]Tuint8_t
  4942. Fauto_repeats [32]Tuint8_t
  4943. }
  4944. type Txcb_bell_request_t = struct {
  4945. Fmajor_opcode Tuint8_t
  4946. Fpercent Tint8_t
  4947. Flength Tuint16_t
  4948. }
  4949. type Txcb_change_pointer_control_request_t = struct {
  4950. Fmajor_opcode Tuint8_t
  4951. Fpad0 Tuint8_t
  4952. Flength Tuint16_t
  4953. Facceleration_numerator Tint16_t
  4954. Facceleration_denominator Tint16_t
  4955. Fthreshold Tint16_t
  4956. Fdo_acceleration Tuint8_t
  4957. Fdo_threshold Tuint8_t
  4958. }
  4959. type Txcb_get_pointer_control_cookie_t = struct {
  4960. Fsequence uint32
  4961. }
  4962. type Txcb_get_pointer_control_request_t = struct {
  4963. Fmajor_opcode Tuint8_t
  4964. Fpad0 Tuint8_t
  4965. Flength Tuint16_t
  4966. }
  4967. type Txcb_get_pointer_control_reply_t = struct {
  4968. Fresponse_type Tuint8_t
  4969. Fpad0 Tuint8_t
  4970. Fsequence Tuint16_t
  4971. Flength Tuint32_t
  4972. Facceleration_numerator Tuint16_t
  4973. Facceleration_denominator Tuint16_t
  4974. Fthreshold Tuint16_t
  4975. Fpad1 [18]Tuint8_t
  4976. }
  4977. type Txcb_blanking_t = int32
  4978. type _xcb_blanking_t = int32
  4979. const _XCB_BLANKING_NOT_PREFERRED = 0
  4980. const _XCB_BLANKING_PREFERRED = 1
  4981. const _XCB_BLANKING_DEFAULT = 2
  4982. type Txcb_exposures_t = int32
  4983. type _xcb_exposures_t = int32
  4984. const _XCB_EXPOSURES_NOT_ALLOWED = 0
  4985. const _XCB_EXPOSURES_ALLOWED = 1
  4986. const _XCB_EXPOSURES_DEFAULT = 2
  4987. type Txcb_set_screen_saver_request_t = struct {
  4988. Fmajor_opcode Tuint8_t
  4989. Fpad0 Tuint8_t
  4990. Flength Tuint16_t
  4991. Ftimeout Tint16_t
  4992. Finterval Tint16_t
  4993. Fprefer_blanking Tuint8_t
  4994. Fallow_exposures Tuint8_t
  4995. }
  4996. type Txcb_get_screen_saver_cookie_t = struct {
  4997. Fsequence uint32
  4998. }
  4999. type Txcb_get_screen_saver_request_t = struct {
  5000. Fmajor_opcode Tuint8_t
  5001. Fpad0 Tuint8_t
  5002. Flength Tuint16_t
  5003. }
  5004. type Txcb_get_screen_saver_reply_t = struct {
  5005. Fresponse_type Tuint8_t
  5006. Fpad0 Tuint8_t
  5007. Fsequence Tuint16_t
  5008. Flength Tuint32_t
  5009. Ftimeout Tuint16_t
  5010. Finterval Tuint16_t
  5011. Fprefer_blanking Tuint8_t
  5012. Fallow_exposures Tuint8_t
  5013. Fpad1 [18]Tuint8_t
  5014. }
  5015. type Txcb_host_mode_t = int32
  5016. type _xcb_host_mode_t = int32
  5017. const _XCB_HOST_MODE_INSERT = 0
  5018. const _XCB_HOST_MODE_DELETE = 1
  5019. type Txcb_family_t = int32
  5020. type _xcb_family_t = int32
  5021. const _XCB_FAMILY_INTERNET = 0
  5022. const _XCB_FAMILY_DECNET = 1
  5023. const _XCB_FAMILY_CHAOS = 2
  5024. const _XCB_FAMILY_SERVER_INTERPRETED = 5
  5025. const _XCB_FAMILY_INTERNET_6 = 6
  5026. type Txcb_change_hosts_request_t = struct {
  5027. Fmajor_opcode Tuint8_t
  5028. Fmode Tuint8_t
  5029. Flength Tuint16_t
  5030. Ffamily Tuint8_t
  5031. Fpad0 Tuint8_t
  5032. Faddress_len Tuint16_t
  5033. }
  5034. type Txcb_host_t = struct {
  5035. Ffamily Tuint8_t
  5036. Fpad0 Tuint8_t
  5037. Faddress_len Tuint16_t
  5038. }
  5039. type Txcb_host_iterator_t = struct {
  5040. Fdata uintptr
  5041. Frem int32
  5042. Findex int32
  5043. }
  5044. type Txcb_list_hosts_cookie_t = struct {
  5045. Fsequence uint32
  5046. }
  5047. type Txcb_list_hosts_request_t = struct {
  5048. Fmajor_opcode Tuint8_t
  5049. Fpad0 Tuint8_t
  5050. Flength Tuint16_t
  5051. }
  5052. type Txcb_list_hosts_reply_t = struct {
  5053. Fresponse_type Tuint8_t
  5054. Fmode Tuint8_t
  5055. Fsequence Tuint16_t
  5056. Flength Tuint32_t
  5057. Fhosts_len Tuint16_t
  5058. Fpad0 [22]Tuint8_t
  5059. }
  5060. type Txcb_access_control_t = int32
  5061. type _xcb_access_control_t = int32
  5062. const _XCB_ACCESS_CONTROL_DISABLE = 0
  5063. const _XCB_ACCESS_CONTROL_ENABLE = 1
  5064. type Txcb_set_access_control_request_t = struct {
  5065. Fmajor_opcode Tuint8_t
  5066. Fmode Tuint8_t
  5067. Flength Tuint16_t
  5068. }
  5069. type Txcb_close_down_t = int32
  5070. type _xcb_close_down_t = int32
  5071. const _XCB_CLOSE_DOWN_DESTROY_ALL = 0
  5072. const _XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1
  5073. const _XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
  5074. type Txcb_set_close_down_mode_request_t = struct {
  5075. Fmajor_opcode Tuint8_t
  5076. Fmode Tuint8_t
  5077. Flength Tuint16_t
  5078. }
  5079. type Txcb_kill_t = int32
  5080. type _xcb_kill_t = int32
  5081. const _XCB_KILL_ALL_TEMPORARY = 0
  5082. type Txcb_kill_client_request_t = struct {
  5083. Fmajor_opcode Tuint8_t
  5084. Fpad0 Tuint8_t
  5085. Flength Tuint16_t
  5086. Fresource Tuint32_t
  5087. }
  5088. type Txcb_rotate_properties_request_t = struct {
  5089. Fmajor_opcode Tuint8_t
  5090. Fpad0 Tuint8_t
  5091. Flength Tuint16_t
  5092. Fwindow Txcb_window_t
  5093. Fatoms_len Tuint16_t
  5094. Fdelta Tint16_t
  5095. }
  5096. type Txcb_screen_saver_t = int32
  5097. type _xcb_screen_saver_t = int32
  5098. const _XCB_SCREEN_SAVER_RESET = 0
  5099. const _XCB_SCREEN_SAVER_ACTIVE = 1
  5100. type Txcb_force_screen_saver_request_t = struct {
  5101. Fmajor_opcode Tuint8_t
  5102. Fmode Tuint8_t
  5103. Flength Tuint16_t
  5104. }
  5105. type Txcb_mapping_status_t = int32
  5106. type _xcb_mapping_status_t = int32
  5107. const _XCB_MAPPING_STATUS_SUCCESS = 0
  5108. const _XCB_MAPPING_STATUS_BUSY = 1
  5109. const _XCB_MAPPING_STATUS_FAILURE = 2
  5110. type Txcb_set_pointer_mapping_cookie_t = struct {
  5111. Fsequence uint32
  5112. }
  5113. type Txcb_set_pointer_mapping_request_t = struct {
  5114. Fmajor_opcode Tuint8_t
  5115. Fmap_len Tuint8_t
  5116. Flength Tuint16_t
  5117. }
  5118. type Txcb_set_pointer_mapping_reply_t = struct {
  5119. Fresponse_type Tuint8_t
  5120. Fstatus Tuint8_t
  5121. Fsequence Tuint16_t
  5122. Flength Tuint32_t
  5123. }
  5124. type Txcb_get_pointer_mapping_cookie_t = struct {
  5125. Fsequence uint32
  5126. }
  5127. type Txcb_get_pointer_mapping_request_t = struct {
  5128. Fmajor_opcode Tuint8_t
  5129. Fpad0 Tuint8_t
  5130. Flength Tuint16_t
  5131. }
  5132. type Txcb_get_pointer_mapping_reply_t = struct {
  5133. Fresponse_type Tuint8_t
  5134. Fmap_len Tuint8_t
  5135. Fsequence Tuint16_t
  5136. Flength Tuint32_t
  5137. Fpad0 [24]Tuint8_t
  5138. }
  5139. type Txcb_map_index_t = int32
  5140. type _xcb_map_index_t = int32
  5141. const _XCB_MAP_INDEX_SHIFT = 0
  5142. const _XCB_MAP_INDEX_LOCK = 1
  5143. const _XCB_MAP_INDEX_CONTROL = 2
  5144. const _XCB_MAP_INDEX_1 = 3
  5145. const _XCB_MAP_INDEX_2 = 4
  5146. const _XCB_MAP_INDEX_3 = 5
  5147. const _XCB_MAP_INDEX_4 = 6
  5148. const _XCB_MAP_INDEX_5 = 7
  5149. type Txcb_set_modifier_mapping_cookie_t = struct {
  5150. Fsequence uint32
  5151. }
  5152. type Txcb_set_modifier_mapping_request_t = struct {
  5153. Fmajor_opcode Tuint8_t
  5154. Fkeycodes_per_modifier Tuint8_t
  5155. Flength Tuint16_t
  5156. }
  5157. type Txcb_set_modifier_mapping_reply_t = struct {
  5158. Fresponse_type Tuint8_t
  5159. Fstatus Tuint8_t
  5160. Fsequence Tuint16_t
  5161. Flength Tuint32_t
  5162. }
  5163. type Txcb_get_modifier_mapping_cookie_t = struct {
  5164. Fsequence uint32
  5165. }
  5166. type Txcb_get_modifier_mapping_request_t = struct {
  5167. Fmajor_opcode Tuint8_t
  5168. Fpad0 Tuint8_t
  5169. Flength Tuint16_t
  5170. }
  5171. type Txcb_get_modifier_mapping_reply_t = struct {
  5172. Fresponse_type Tuint8_t
  5173. Fkeycodes_per_modifier Tuint8_t
  5174. Fsequence Tuint16_t
  5175. Flength Tuint32_t
  5176. Fpad0 [24]Tuint8_t
  5177. }
  5178. type Txcb_no_operation_request_t = struct {
  5179. Fmajor_opcode Tuint8_t
  5180. Fpad0 Tuint8_t
  5181. Flength Tuint16_t
  5182. }
  5183. type Txcb_auth_info_t = struct {
  5184. Fnamelen int32
  5185. Fname uintptr
  5186. Fdatalen int32
  5187. Fdata uintptr
  5188. }
  5189. type Txcb_big_requests_enable_cookie_t = struct {
  5190. Fsequence uint32
  5191. }
  5192. type Txcb_big_requests_enable_request_t = struct {
  5193. Fmajor_opcode Tuint8_t
  5194. Fminor_opcode Tuint8_t
  5195. Flength Tuint16_t
  5196. }
  5197. type Txcb_big_requests_enable_reply_t = struct {
  5198. Fresponse_type Tuint8_t
  5199. Fpad0 Tuint8_t
  5200. Fsequence Tuint16_t
  5201. Flength Tuint32_t
  5202. Fmaximum_request_length Tuint32_t
  5203. }
  5204. type _workarounds = int32
  5205. const _WORKAROUND_NONE = 0
  5206. const _WORKAROUND_GLX_GET_FB_CONFIGS_BUG = 1
  5207. const _WORKAROUND_EXTERNAL_SOCKET_OWNER = 2
  5208. type _lazy_reply_tag = int32
  5209. const _LAZY_NONE = 0
  5210. const _LAZY_COOKIE = 1
  5211. const _LAZY_FORCED = 2
  5212. type Txcb_list_free_func_t = uintptr
  5213. type T_xcb_fd = struct {
  5214. Ffd [16]int32
  5215. Fnfd int32
  5216. Fifd int32
  5217. }
  5218. type T_xcb_out = struct {
  5219. Fcond Tpthread_cond_t
  5220. Fwriting int32
  5221. Fsocket_cond Tpthread_cond_t
  5222. Freturn_socket uintptr
  5223. Fsocket_closure uintptr
  5224. Fsocket_moving int32
  5225. Fqueue [16384]int8
  5226. Fqueue_len int32
  5227. Frequest Tuint64_t
  5228. Frequest_written Tuint64_t
  5229. Ftotal_written Tuint64_t
  5230. Freqlenlock Tpthread_mutex_t
  5231. Fmaximum_request_length_tag _lazy_reply_tag
  5232. Fmaximum_request_length struct {
  5233. Fvalue [0]Tuint32_t
  5234. Fcookie Txcb_big_requests_enable_cookie_t
  5235. }
  5236. Fout_fd T_xcb_fd
  5237. }
  5238. type T_xcb_in = struct {
  5239. Fevent_cond Tpthread_cond_t
  5240. Freading int32
  5241. Fqueue [4096]int8
  5242. Fqueue_len int32
  5243. Frequest_expected Tuint64_t
  5244. Frequest_read Tuint64_t
  5245. Frequest_completed Tuint64_t
  5246. Ftotal_read Tuint64_t
  5247. Fcurrent_reply uintptr
  5248. Fcurrent_reply_tail uintptr
  5249. Freplies uintptr
  5250. Fevents uintptr
  5251. Fevents_tail uintptr
  5252. Freaders uintptr
  5253. Fspecial_waiters uintptr
  5254. Fpending_replies uintptr
  5255. Fpending_replies_tail uintptr
  5256. Fin_fd T_xcb_fd
  5257. Fspecial_events uintptr
  5258. }
  5259. type T_xcb_xid = struct {
  5260. Flock Tpthread_mutex_t
  5261. Flast Tuint32_t
  5262. Fbase Tuint32_t
  5263. Fmax Tuint32_t
  5264. Finc Tuint32_t
  5265. }
  5266. type T_xcb_ext = struct {
  5267. Flock Tpthread_mutex_t
  5268. Fextensions uintptr
  5269. Fextensions_size int32
  5270. }
  5271. type Txcb_connection_t1 = struct {
  5272. Fhas_error int32
  5273. Fsetup uintptr
  5274. Ffd int32
  5275. Fiolock Tpthread_mutex_t
  5276. Fin T_xcb_in
  5277. Fout T_xcb_out
  5278. Fext T_xcb_ext
  5279. Fxid T_xcb_xid
  5280. }
  5281. type Tnfds_t = uint64
  5282. type Tpollfd = struct {
  5283. Ffd int32
  5284. Fevents int16
  5285. Frevents int16
  5286. }
  5287. type Tsocklen_t = uint32
  5288. type Tsa_family_t = uint16
  5289. type Tmsghdr = struct {
  5290. Fmsg_name uintptr
  5291. Fmsg_namelen Tsocklen_t
  5292. Fmsg_iov uintptr
  5293. Fmsg_iovlen int32
  5294. F__pad1 int32
  5295. Fmsg_control uintptr
  5296. Fmsg_controllen Tsocklen_t
  5297. F__pad2 int32
  5298. Fmsg_flags int32
  5299. }
  5300. type Tcmsghdr = struct {
  5301. Fcmsg_len Tsocklen_t
  5302. F__pad1 int32
  5303. Fcmsg_level int32
  5304. Fcmsg_type int32
  5305. }
  5306. type Tucred = struct {
  5307. Fpid Tpid_t
  5308. Fuid Tuid_t
  5309. Fgid Tgid_t
  5310. }
  5311. type Tmmsghdr = struct {
  5312. Fmsg_hdr Tmsghdr
  5313. Fmsg_len uint32
  5314. }
  5315. type Tlinger = struct {
  5316. Fl_onoff int32
  5317. Fl_linger int32
  5318. }
  5319. type Tsockaddr = struct {
  5320. Fsa_family Tsa_family_t
  5321. Fsa_data [14]int8
  5322. }
  5323. type Tsockaddr_storage = struct {
  5324. Fss_family Tsa_family_t
  5325. F__ss_padding [118]int8
  5326. F__ss_align uint64
  5327. }
  5328. type Timaxdiv_t = struct {
  5329. Fquot Tintmax_t
  5330. Frem Tintmax_t
  5331. }
  5332. type Tin_port_t = uint16
  5333. type Tin_addr_t = uint32
  5334. type Tin_addr = struct {
  5335. Fs_addr Tin_addr_t
  5336. }
  5337. type Tsockaddr_in = struct {
  5338. Fsin_family Tsa_family_t
  5339. Fsin_port Tin_port_t
  5340. Fsin_addr Tin_addr
  5341. Fsin_zero [8]Tuint8_t
  5342. }
  5343. type Tin6_addr = struct {
  5344. F__in6_union struct {
  5345. F__s6_addr16 [0][8]Tuint16_t
  5346. F__s6_addr32 [0][4]Tuint32_t
  5347. F__s6_addr [16]Tuint8_t
  5348. }
  5349. }
  5350. type Tsockaddr_in6 = struct {
  5351. Fsin6_family Tsa_family_t
  5352. Fsin6_port Tin_port_t
  5353. Fsin6_flowinfo Tuint32_t
  5354. Fsin6_addr Tin6_addr
  5355. Fsin6_scope_id Tuint32_t
  5356. }
  5357. type Tipv6_mreq = struct {
  5358. Fipv6mr_multiaddr Tin6_addr
  5359. Fipv6mr_interface uint32
  5360. }
  5361. type Tip_opts = struct {
  5362. Fip_dst Tin_addr
  5363. Fip_opts [40]int8
  5364. }
  5365. type Tip_mreq = struct {
  5366. Fimr_multiaddr Tin_addr
  5367. Fimr_interface Tin_addr
  5368. }
  5369. type Tip_mreqn = struct {
  5370. Fimr_multiaddr Tin_addr
  5371. Fimr_address Tin_addr
  5372. Fimr_ifindex int32
  5373. }
  5374. type Tip_mreq_source = struct {
  5375. Fimr_multiaddr Tin_addr
  5376. Fimr_interface Tin_addr
  5377. Fimr_sourceaddr Tin_addr
  5378. }
  5379. type Tip_msfilter = struct {
  5380. Fimsf_multiaddr Tin_addr
  5381. Fimsf_interface Tin_addr
  5382. Fimsf_fmode Tuint32_t
  5383. Fimsf_numsrc Tuint32_t
  5384. Fimsf_slist [1]Tin_addr
  5385. }
  5386. type Tgroup_req = struct {
  5387. Fgr_interface Tuint32_t
  5388. Fgr_group Tsockaddr_storage
  5389. }
  5390. type Tgroup_source_req = struct {
  5391. Fgsr_interface Tuint32_t
  5392. Fgsr_group Tsockaddr_storage
  5393. Fgsr_source Tsockaddr_storage
  5394. }
  5395. type Tgroup_filter = struct {
  5396. Fgf_interface Tuint32_t
  5397. Fgf_group Tsockaddr_storage
  5398. Fgf_fmode Tuint32_t
  5399. Fgf_numsrc Tuint32_t
  5400. Fgf_slist [1]Tsockaddr_storage
  5401. }
  5402. type Tin_pktinfo = struct {
  5403. Fipi_ifindex int32
  5404. Fipi_spec_dst Tin_addr
  5405. Fipi_addr Tin_addr
  5406. }
  5407. type Tin6_pktinfo = struct {
  5408. Fipi6_addr Tin6_addr
  5409. Fipi6_ifindex uint32
  5410. }
  5411. type Tip6_mtuinfo = struct {
  5412. Fip6m_addr Tsockaddr_in6
  5413. Fip6m_mtu Tuint32_t
  5414. }
  5415. /* SHUT_RDWR is fairly recent and is not available on all platforms */
  5416. type Txcb_setup_generic_t = struct {
  5417. Fstatus Tuint8_t
  5418. Fpad0 [5]Tuint8_t
  5419. Flength Tuint16_t
  5420. }
  5421. var _xcb_error_setup = Txcb_setup_t{}
  5422. // C documentation
  5423. //
  5424. // /* Keep this list in sync with is_static_error_conn()! */
  5425. var _xcb_con_error = int32(m_XCB_CONN_ERROR)
  5426. var _xcb_con_closed_mem_er = int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT)
  5427. var _xcb_con_closed_parse_er = int32(m_XCB_CONN_CLOSED_PARSE_ERR)
  5428. var _xcb_con_closed_screen_er = int32(m_XCB_CONN_CLOSED_INVALID_SCREEN)
  5429. func _is_static_error_conn(tls *libc.TLS, c uintptr) (r int32) {
  5430. 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)))
  5431. }
  5432. func _set_fd_flags(tls *libc.TLS, fd int32) (r int32) {
  5433. bp := tls.Alloc(16)
  5434. defer tls.Free(16)
  5435. var flags int32
  5436. _ = flags
  5437. /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
  5438. flags = libc.Xfcntl(tls, fd, int32(m_F_GETFL), libc.VaList(bp+8, 0))
  5439. if flags == -int32(1) {
  5440. return 0
  5441. }
  5442. flags |= int32(m_O_NONBLOCK)
  5443. if libc.Xfcntl(tls, fd, int32(m_F_SETFL), libc.VaList(bp+8, flags)) == -int32(1) {
  5444. return 0
  5445. }
  5446. if libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC))) == -int32(1) {
  5447. return 0
  5448. }
  5449. return int32(1)
  5450. }
  5451. func _write_setup(tls *libc.TLS, c uintptr, auth_info uintptr) (r int32) {
  5452. bp := tls.Alloc(112)
  5453. defer tls.Free(112)
  5454. var count, ret, v1, v2, v4, v5, v7, v8 int32
  5455. var v3, v6 Tuint16_t
  5456. var _ /* out at bp+0 */ Txcb_setup_request_t
  5457. var _ /* parts at bp+16 */ [6]Tiovec
  5458. _, _, _, _, _, _, _, _, _, _ = count, ret, v1, v2, v3, v4, v5, v6, v7, v8
  5459. count = 0
  5460. libc.Xmemset(tls, bp, 0, uint64(12))
  5461. /* B = 0x42 = MSB first, l = 0x6c = LSB first */
  5462. if libc.Xhtonl(tls, _endian) == _endian {
  5463. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x42)
  5464. } else {
  5465. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x6c)
  5466. }
  5467. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_major_version = uint16(m_X_PROTOCOL)
  5468. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_minor_version = uint16(m_X_PROTOCOL_REVISION)
  5469. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = uint16(0)
  5470. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = uint16(0)
  5471. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(12)
  5472. v1 = count
  5473. count++
  5474. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v1].Fiov_base = bp
  5475. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = -libc.Uint64FromInt64(12) & libc.Uint64FromInt32(3)
  5476. v2 = count
  5477. count++
  5478. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v2].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5479. if auth_info != 0 {
  5480. v3 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fnamelen)
  5481. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = v3
  5482. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v3)
  5483. v4 = count
  5484. count++
  5485. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v4].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fname
  5486. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = libc.Uint64FromInt32(-libc.Int32FromUint16((*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len) & libc.Int32FromInt32(3))
  5487. v5 = count
  5488. count++
  5489. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v5].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5490. v6 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdatalen)
  5491. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = v6
  5492. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v6)
  5493. v7 = count
  5494. count++
  5495. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v7].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdata
  5496. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = libc.Uint64FromInt32(-libc.Int32FromUint16((*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len) & libc.Int32FromInt32(3))
  5497. v8 = count
  5498. count++
  5499. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v8].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5500. }
  5501. libc.Xpthread_mutex_lock(tls, c+24)
  5502. ret = X_xcb_out_send(tls, c, bp+16, count)
  5503. libc.Xpthread_mutex_unlock(tls, c+24)
  5504. return ret
  5505. }
  5506. var _pad [3]int8
  5507. var _endian = uint32(0x01020304)
  5508. func _read_setup(tls *libc.TLS, c uintptr) (r int32) {
  5509. var setup, setup1, tmp uintptr
  5510. _, _, _ = setup, setup1, tmp
  5511. /* Read the server response */
  5512. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = libc.Xmalloc(tls, uint64(8))
  5513. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup != 0) {
  5514. return 0
  5515. }
  5516. if libc.Uint64FromInt32(X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, int32(8))) != uint64(8) {
  5517. return 0
  5518. }
  5519. tmp = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Flength)*int32(4))+uint64(8))
  5520. if !(tmp != 0) {
  5521. return 0
  5522. }
  5523. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = tmp
  5524. 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 {
  5525. return 0
  5526. }
  5527. /* 0 = failed, 2 = authenticate, 1 = success */
  5528. switch libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fstatus) {
  5529. case 0: /* failed */
  5530. setup = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5531. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_failed_reason(tls, setup), libc.Uint64FromInt32(Xxcb_setup_failed_reason_length(tls, setup)))
  5532. return 0
  5533. case int32(2): /* authenticate */
  5534. setup1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5535. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_authenticate_reason(tls, setup1), libc.Uint64FromInt32(Xxcb_setup_authenticate_reason_length(tls, setup1)))
  5536. return 0
  5537. }
  5538. return int32(1)
  5539. }
  5540. // C documentation
  5541. //
  5542. // /* precondition: there must be something for us to write. */
  5543. func _write_vec(tls *libc.TLS, c uintptr, vector uintptr, count uintptr) (r int32) {
  5544. bp := tls.Alloc(144)
  5545. defer tls.Free(144)
  5546. var cur, i, n int32
  5547. var hdr, v1 uintptr
  5548. var _ /* cmsgbuf at bp+0 */ struct {
  5549. Fbuf [0][80]int8
  5550. Fcmsghdr Tcmsghdr
  5551. F__ccgo_pad2 [64]byte
  5552. }
  5553. var _ /* msg at bp+80 */ Tmsghdr
  5554. _, _, _, _, _ = cur, hdr, i, n, v1
  5555. n = *(*int32)(unsafe.Pointer(count))
  5556. if n > int32(m_IOV_MAX) {
  5557. n = int32(m_IOV_MAX)
  5558. }
  5559. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd != 0 {
  5560. *(*Tmsghdr)(unsafe.Pointer(bp + 80)) = Tmsghdr{
  5561. Fmsg_iov: *(*uintptr)(unsafe.Pointer(vector)),
  5562. Fmsg_iovlen: n,
  5563. Fmsg_control: bp,
  5564. Fmsg_controllen: uint32((libc.Uint64FromInt64(16)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) + libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*libc.Uint64FromInt64(4)),
  5565. }
  5566. if uint64((*Tmsghdr)(unsafe.Pointer(bp+80)).Fmsg_controllen) >= uint64(16) {
  5567. v1 = (*Tmsghdr)(unsafe.Pointer(bp + 80)).Fmsg_control
  5568. } else {
  5569. v1 = libc.UintptrFromInt32(0)
  5570. }
  5571. hdr = v1
  5572. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len = (*(*Tmsghdr)(unsafe.Pointer(bp + 80))).Fmsg_controllen
  5573. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level = int32(m_SOL_SOCKET)
  5574. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type = int32(m_SCM_RIGHTS)
  5575. libc.Xmemcpy(tls, hdr+libc.UintptrFromInt32(1)*16, c+4400+16584, libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*uint64(4))
  5576. n = int32(libc.Xsendmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+80, 0))
  5577. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5578. return int32(1)
  5579. }
  5580. i = 0
  5581. for {
  5582. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd) {
  5583. break
  5584. }
  5585. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 4400 + 16584 + uintptr(i)*4)))
  5586. goto _2
  5587. _2:
  5588. ;
  5589. i++
  5590. }
  5591. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd = 0
  5592. } else {
  5593. n = int32(libc.Xwritev(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, *(*uintptr)(unsafe.Pointer(vector)), n))
  5594. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5595. return int32(1)
  5596. }
  5597. }
  5598. if n <= 0 {
  5599. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5600. return 0
  5601. }
  5602. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written += libc.Uint64FromInt32(n)
  5603. for {
  5604. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5605. break
  5606. }
  5607. cur = libc.Int32FromUint64((*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len)
  5608. if cur > n {
  5609. cur = n
  5610. }
  5611. *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)) + 8)) -= libc.Uint64FromInt32(cur)
  5612. (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base = (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base + uintptr(cur)
  5613. n -= cur
  5614. if (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len != 0 {
  5615. break
  5616. }
  5617. goto _3
  5618. _3:
  5619. ;
  5620. *(*int32)(unsafe.Pointer(count))--
  5621. *(*uintptr)(unsafe.Pointer(vector)) += 16
  5622. }
  5623. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5624. *(*uintptr)(unsafe.Pointer(vector)) = uintptr(0)
  5625. }
  5626. return int32(1)
  5627. }
  5628. /* Public interface */
  5629. func Xxcb_get_setup(tls *libc.TLS, c uintptr) (r uintptr) {
  5630. if _is_static_error_conn(tls, c) != 0 {
  5631. return uintptr(unsafe.Pointer(&_xcb_error_setup))
  5632. }
  5633. /* doesn't need locking because it's never written to. */
  5634. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5635. }
  5636. func Xxcb_get_file_descriptor(tls *libc.TLS, c uintptr) (r int32) {
  5637. if _is_static_error_conn(tls, c) != 0 {
  5638. return -int32(1)
  5639. }
  5640. /* doesn't need locking because it's never written to. */
  5641. return (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5642. }
  5643. func Xxcb_connection_has_error(tls *libc.TLS, c uintptr) (r int32) {
  5644. /* doesn't need locking because it's read and written atomically. */
  5645. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error
  5646. }
  5647. func Xxcb_connect_to_fd(tls *libc.TLS, fd int32, auth_info uintptr) (r uintptr) {
  5648. var c uintptr
  5649. _ = c
  5650. c = libc.Xcalloc(tls, uint64(1), uint64(21168))
  5651. if !(c != 0) {
  5652. libc.Xclose(tls, fd)
  5653. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  5654. }
  5655. (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd = fd
  5656. if !(_set_fd_flags(tls, fd) != 0 && libc.Xpthread_mutex_init(tls, c+24, uintptr(0)) == 0 && X_xcb_in_init(tls, c+64) != 0 && X_xcb_out_init(tls, c+4400) != 0 && _write_setup(tls, c, auth_info) != 0 && _read_setup(tls, c) != 0 && X_xcb_ext_init(tls, c) != 0 && X_xcb_xid_init(tls, c) != 0) {
  5657. Xxcb_disconnect(tls, c)
  5658. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  5659. }
  5660. return c
  5661. }
  5662. func Xxcb_disconnect(tls *libc.TLS, c uintptr) {
  5663. if c == libc.UintptrFromInt32(0) || _is_static_error_conn(tls, c) != 0 {
  5664. return
  5665. }
  5666. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)
  5667. /* disallow further sends and receives */
  5668. libc.Xshutdown(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, int32(m_SHUT_RDWR))
  5669. libc.Xclose(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd)
  5670. libc.Xpthread_mutex_destroy(tls, c+24)
  5671. X_xcb_in_destroy(tls, c+64)
  5672. X_xcb_out_destroy(tls, c+4400)
  5673. X_xcb_ext_destroy(tls, c)
  5674. X_xcb_xid_destroy(tls, c)
  5675. libc.Xfree(tls, c)
  5676. }
  5677. /* Private interface */
  5678. func X_xcb_conn_shutdown(tls *libc.TLS, c uintptr, err int32) {
  5679. (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error = err
  5680. }
  5681. // C documentation
  5682. //
  5683. // /* Return connection error state.
  5684. // * To make thread-safe, I need a seperate static
  5685. // * variable for every possible error.
  5686. // * has_error is the first field in xcb_connection_t, so just
  5687. // * return a casted int here; checking has_error (and only
  5688. // * has_error) will be safe.
  5689. // */
  5690. func X_xcb_conn_ret_error(tls *libc.TLS, err int32) (r uintptr) {
  5691. switch err {
  5692. case int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT):
  5693. return uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er))
  5694. case int32(m_XCB_CONN_CLOSED_PARSE_ERR):
  5695. return uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er))
  5696. case int32(m_XCB_CONN_CLOSED_INVALID_SCREEN):
  5697. return uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er))
  5698. case int32(m_XCB_CONN_ERROR):
  5699. fallthrough
  5700. default:
  5701. return uintptr(unsafe.Pointer(&_xcb_con_error))
  5702. }
  5703. return r
  5704. }
  5705. func X_xcb_conn_wait(tls *libc.TLS, c uintptr, cond uintptr, vector uintptr, count uintptr) (r int32) {
  5706. bp := tls.Alloc(16)
  5707. defer tls.Free(16)
  5708. var may_read, ret, v1 int32
  5709. var p2 uintptr
  5710. var _ /* fd at bp+0 */ Tpollfd
  5711. _, _, _, _ = may_read, ret, v1, p2
  5712. /* If the thing I should be doing is already being done, wait for it. */
  5713. if count != 0 {
  5714. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting
  5715. } else {
  5716. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading
  5717. }
  5718. if v1 != 0 {
  5719. libc.Xpthread_cond_wait(tls, cond, c+24)
  5720. return int32(1)
  5721. }
  5722. libc.Xmemset(tls, bp, 0, uint64(8))
  5723. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5724. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  5725. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading++
  5726. if count != 0 {
  5727. p2 = bp + 4
  5728. *(*int16)(unsafe.Pointer(p2)) = int16(int32(*(*int16)(unsafe.Pointer(p2))) | libc.Int32FromInt32(m_POLLOUT))
  5729. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting++
  5730. }
  5731. libc.Xpthread_mutex_unlock(tls, c+24)
  5732. for cond1 := true; cond1; cond1 = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  5733. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  5734. /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
  5735. * it as if it failed. */
  5736. if ret >= 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents) & ^int32((*(*Tpollfd)(unsafe.Pointer(bp))).Fevents) != 0 {
  5737. ret = -int32(1)
  5738. break
  5739. }
  5740. }
  5741. if ret < 0 {
  5742. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5743. ret = 0
  5744. }
  5745. libc.Xpthread_mutex_lock(tls, c+24)
  5746. if ret != 0 {
  5747. /* The code allows two threads to call select()/poll() at the same time.
  5748. * First thread just wants to read, a second thread wants to write, too.
  5749. * We have to make sure that we don't steal the reading thread's reply
  5750. * and let it get stuck in select()/poll().
  5751. * So a thread may read if either:
  5752. * - There is no other thread that wants to read (the above situation
  5753. * did not occur).
  5754. * - It is the reading thread (above situation occurred).
  5755. */
  5756. may_read = libc.BoolInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == int32(1) || !(count != 0))
  5757. if may_read != 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLIN) != 0 {
  5758. ret = libc.BoolInt32(ret != 0 && X_xcb_in_read(tls, c) != 0)
  5759. }
  5760. if int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLOUT) != 0 {
  5761. ret = libc.BoolInt32(ret != 0 && _write_vec(tls, c, vector, count) != 0)
  5762. }
  5763. }
  5764. if count != 0 {
  5765. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting--
  5766. }
  5767. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading--
  5768. return ret
  5769. }
  5770. func Xxcb_total_read(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5771. var n Tuint64_t
  5772. _ = n
  5773. if Xxcb_connection_has_error(tls, c) != 0 {
  5774. return uint64(0)
  5775. }
  5776. libc.Xpthread_mutex_lock(tls, c+24)
  5777. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read
  5778. libc.Xpthread_mutex_unlock(tls, c+24)
  5779. return n
  5780. }
  5781. func Xxcb_total_written(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5782. var n Tuint64_t
  5783. _ = n
  5784. if Xxcb_connection_has_error(tls, c) != 0 {
  5785. return uint64(0)
  5786. }
  5787. libc.Xpthread_mutex_lock(tls, c+24)
  5788. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written
  5789. libc.Xpthread_mutex_unlock(tls, c+24)
  5790. return n
  5791. }
  5792. const m_SEEK_CUR = 1
  5793. const m_SEEK_END = 2
  5794. const m_SEEK_SET = 0
  5795. type Txcb_extension_t = struct {
  5796. Fname uintptr
  5797. Fglobal_id int32
  5798. }
  5799. type Txcb_extension_t1 = struct {
  5800. Fname uintptr
  5801. Fglobal_id int32
  5802. }
  5803. type Txcb_protocol_request_t = struct {
  5804. Fcount Tsize_t
  5805. Fext uintptr
  5806. Fopcode Tuint8_t
  5807. Fisvoid Tuint8_t
  5808. }
  5809. type _xcb_send_request_flags_t = int32
  5810. const _XCB_REQUEST_CHECKED = 1
  5811. const _XCB_REQUEST_RAW = 2
  5812. const _XCB_REQUEST_DISCARD_REPLY = 4
  5813. const _XCB_REQUEST_REPLY_FDS = 8
  5814. /*
  5815. * This file generated automatically from bigreq.xml by c_client.py.
  5816. * Edit at your peril.
  5817. */
  5818. /**
  5819. * @defgroup XCB_BigRequests_API XCB BigRequests API
  5820. * @brief BigRequests XCB Protocol Implementation.
  5821. * @{
  5822. **/
  5823. /**
  5824. * @}
  5825. */
  5826. func _send_request(tls *libc.TLS, c uintptr, isvoid int32, workaround _workarounds, flags int32, vector uintptr, count int32) {
  5827. var p1 uintptr
  5828. _ = p1
  5829. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5830. return
  5831. }
  5832. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest++
  5833. if !(isvoid != 0) {
  5834. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  5835. }
  5836. if workaround != int32(_WORKAROUND_NONE) || flags != 0 {
  5837. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest, workaround, flags)
  5838. }
  5839. for count != 0 && libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)+(*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len <= uint64(16384) {
  5840. libc.Xmemcpy(tls, c+4400+124+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len), (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base, (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5841. p1 = c + 4400 + 16508
  5842. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5843. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5844. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(0)
  5845. vector += 16
  5846. count--
  5847. }
  5848. if !(count != 0) {
  5849. return
  5850. }
  5851. vector -= 16
  5852. count++
  5853. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = c + 4400 + 124
  5854. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  5855. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  5856. X_xcb_out_send(tls, c, vector, count)
  5857. }
  5858. func _send_sync(tls *libc.TLS, c uintptr) {
  5859. bp := tls.Alloc(32)
  5860. defer tls.Free(32)
  5861. var _ /* vector at bp+0 */ [2]Tiovec
  5862. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base = uintptr(unsafe.Pointer(&_sync_req))
  5863. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len = uint64(4)
  5864. _send_request(tls, c, 0, int32(_WORKAROUND_NONE), int32(_XCB_REQUEST_DISCARD_REPLY), bp+uintptr(1)*16, int32(1))
  5865. }
  5866. var _sync_req = *(*struct {
  5867. Fpacket [0]Tuint32_t
  5868. Ffields struct {
  5869. Fmajor Tuint8_t
  5870. Fpad Tuint8_t
  5871. Flen1 Tuint16_t
  5872. }
  5873. })(unsafe.Pointer(&struct {
  5874. Fmajor uint8
  5875. Fpad uint8
  5876. Flen1 uint16
  5877. }{
  5878. Fmajor: uint8(43),
  5879. Flen1: uint16(1),
  5880. }))
  5881. func _get_socket_back(tls *libc.TLS, c uintptr) {
  5882. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving != 0 {
  5883. libc.Xpthread_cond_wait(tls, c+4400+56, c+24)
  5884. }
  5885. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0) {
  5886. return
  5887. }
  5888. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = int32(1)
  5889. libc.Xpthread_mutex_unlock(tls, c+24)
  5890. (*(*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)
  5891. libc.Xpthread_mutex_lock(tls, c+24)
  5892. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = 0
  5893. libc.Xpthread_cond_broadcast(tls, c+4400+56)
  5894. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = uintptr(0)
  5895. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = uintptr(0)
  5896. X_xcb_in_replies_done(tls, c)
  5897. }
  5898. func _prepare_socket_request(tls *libc.TLS, c uintptr) {
  5899. /* We're about to append data to out.queue, so we need to
  5900. * atomically test for an external socket owner *and* some other
  5901. * thread currently writing.
  5902. *
  5903. * If we have an external socket owner, we have to get the socket back
  5904. * before we can use it again.
  5905. *
  5906. * If some other thread is writing to the socket, we assume it's
  5907. * writing from out.queue, and so we can't stick data there.
  5908. *
  5909. * We satisfy this condition by first calling get_socket_back
  5910. * (which may drop the lock, but will return when XCB owns the
  5911. * socket again) and then checking for another writing thread and
  5912. * escaping the loop if we're ready to go.
  5913. */
  5914. for {
  5915. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5916. return
  5917. }
  5918. _get_socket_back(tls, c)
  5919. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0) {
  5920. break
  5921. }
  5922. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  5923. goto _1
  5924. _1:
  5925. }
  5926. }
  5927. /* Public interface */
  5928. func Xxcb_prefetch_maximum_request_length(tls *libc.TLS, c uintptr) {
  5929. var ext uintptr
  5930. _ = ext
  5931. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5932. return
  5933. }
  5934. libc.Xpthread_mutex_lock(tls, c+4400+16536)
  5935. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_NONE) {
  5936. ext = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_big_requests_id)))
  5937. if ext != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext)).Fpresent != 0 {
  5938. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_COOKIE)
  5939. *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16580)) = Xxcb_big_requests_enable(tls, c)
  5940. } else {
  5941. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5942. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5943. }
  5944. }
  5945. libc.Xpthread_mutex_unlock(tls, c+4400+16536)
  5946. }
  5947. func Xxcb_get_maximum_request_length(tls *libc.TLS, c uintptr) (r1 Tuint32_t) {
  5948. var r uintptr
  5949. _ = r
  5950. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5951. return uint32(0)
  5952. }
  5953. Xxcb_prefetch_maximum_request_length(tls, c)
  5954. libc.Xpthread_mutex_lock(tls, c+4400+16536)
  5955. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_COOKIE) {
  5956. r = Xxcb_big_requests_enable_reply(tls, c, *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16580)), uintptr(0))
  5957. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5958. if r != 0 {
  5959. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = (*Txcb_big_requests_enable_reply_t)(unsafe.Pointer(r)).Fmaximum_request_length
  5960. libc.Xfree(tls, r)
  5961. } else {
  5962. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5963. }
  5964. }
  5965. libc.Xpthread_mutex_unlock(tls, c+4400+16536)
  5966. return *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580))
  5967. }
  5968. func _close_fds(tls *libc.TLS, fds uintptr, num_fds uint32) {
  5969. var index uint32
  5970. _ = index
  5971. index = uint32(0)
  5972. for {
  5973. if !(index < num_fds) {
  5974. break
  5975. }
  5976. libc.Xclose(tls, *(*int32)(unsafe.Pointer(fds + uintptr(index)*4)))
  5977. goto _1
  5978. _1:
  5979. ;
  5980. index++
  5981. }
  5982. }
  5983. func _send_fds(tls *libc.TLS, c uintptr, fds uintptr, num_fds uint32) {
  5984. var v1 int32
  5985. var v2 uintptr
  5986. _, _ = v1, v2
  5987. /* Calling _xcb_out_flush_to() can drop the iolock and wait on a condition
  5988. * variable if another thread is currently writing (c->out.writing > 0).
  5989. * This call waits for writers to be done and thus _xcb_out_flush_to() will
  5990. * do the work itself (in which case we are a writer and
  5991. * prepare_socket_request() will wait for us to be done if another threads
  5992. * tries to send fds, too). Thanks to this, we can atomically write out FDs.
  5993. */
  5994. _prepare_socket_request(tls, c)
  5995. for num_fds > uint32(0) {
  5996. 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) {
  5997. /* XXX: if c->out.writing > 0, this releases the iolock and
  5998. * potentially allows other threads to interfere with their own fds.
  5999. */
  6000. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6001. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) {
  6002. /* We need some request to send FDs with */
  6003. X_xcb_out_send_sync(tls, c)
  6004. }
  6005. }
  6006. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6007. break
  6008. }
  6009. v2 = c + 4400 + 16584 + 64
  6010. v1 = *(*int32)(unsafe.Pointer(v2))
  6011. *(*int32)(unsafe.Pointer(v2))++
  6012. *(*int32)(unsafe.Pointer(c + 4400 + 16584 + uintptr(v1)*4)) = *(*int32)(unsafe.Pointer(fds))
  6013. fds += 4
  6014. num_fds--
  6015. }
  6016. _close_fds(tls, fds, num_fds)
  6017. }
  6018. 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) {
  6019. bp := tls.Alloc(16)
  6020. defer tls.Free(16)
  6021. var extension uintptr
  6022. var i uint32
  6023. var longlen, v2 Tsize_t
  6024. var request Tuint64_t
  6025. var shortlen Tuint16_t
  6026. var veclen int32
  6027. var workaround _workarounds
  6028. var v3 uint64
  6029. var _ /* prefix at bp+0 */ [2]Tuint32_t
  6030. _, _, _, _, _, _, _, _, _ = extension, i, longlen, request, shortlen, veclen, workaround, v2, v3
  6031. veclen = libc.Int32FromUint64((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount)
  6032. workaround = int32(_WORKAROUND_NONE)
  6033. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6034. _close_fds(tls, fds, num_fds)
  6035. return uint64(0)
  6036. }
  6037. if !(flags&int32(_XCB_REQUEST_RAW) != 0) {
  6038. shortlen = uint16(0)
  6039. longlen = uint64(0)
  6040. /* set the major opcode, and the minor opcode for extensions */
  6041. if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 {
  6042. extension = Xxcb_get_extension_data(tls, c, (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)
  6043. if !(extension != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fpresent != 0) {
  6044. _close_fds(tls, fds, num_fds)
  6045. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED))
  6046. return uint64(0)
  6047. }
  6048. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fmajor_opcode
  6049. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  6050. } else {
  6051. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  6052. }
  6053. /* put together the length field, possibly using BIGREQUESTS */
  6054. i = uint32(0)
  6055. for {
  6056. if !(uint64(i) < (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount) {
  6057. break
  6058. }
  6059. longlen += (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_len
  6060. if !((*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base != 0) {
  6061. (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base = uintptr(unsafe.Pointer(&_pad1))
  6062. }
  6063. goto _1
  6064. _1:
  6065. ;
  6066. i++
  6067. }
  6068. longlen >>= uint64(2)
  6069. if longlen <= uint64((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length) {
  6070. /* we don't need BIGREQUESTS. */
  6071. shortlen = uint16(longlen)
  6072. longlen = uint64(0)
  6073. } else {
  6074. if longlen > uint64(Xxcb_get_maximum_request_length(tls, c)) {
  6075. _close_fds(tls, fds, num_fds)
  6076. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_REQ_LEN_EXCEED))
  6077. return uint64(0) /* server can't take this; maybe need BIGREQUESTS? */
  6078. }
  6079. }
  6080. /* set the length field. */
  6081. *(*Tuint16_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*2)) = shortlen
  6082. if !(shortlen != 0) {
  6083. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[0] = *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base))
  6084. longlen++
  6085. v2 = longlen
  6086. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] = uint32(v2)
  6087. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr(1)*4
  6088. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len -= uint64(4)
  6089. vector -= 16
  6090. veclen++
  6091. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = bp
  6092. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(8)
  6093. }
  6094. }
  6095. flags &= ^int32(_XCB_REQUEST_RAW)
  6096. /* do we need to work around the X server bug described in glx.xml? */
  6097. /* XXX: GetFBConfigs won't use BIG-REQUESTS in any sane
  6098. * configuration, but that should be handled here anyway. */
  6099. 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)) {
  6100. workaround = int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG)
  6101. }
  6102. /* get a sequence number and arrange for delivery. */
  6103. libc.Xpthread_mutex_lock(tls, c+24)
  6104. /* send FDs before establishing a good request number, because this might
  6105. * call send_sync(), too
  6106. */
  6107. _send_fds(tls, c, fds, num_fds)
  6108. _prepare_socket_request(tls, c)
  6109. /* send GetInputFocus (sync_req) when 64k-2 requests have been sent without
  6110. * a reply.
  6111. * Also send sync_req (could use NoOp) at 32-bit wrap to avoid having
  6112. * applications see sequence 0 as that is used to indicate
  6113. * an error in sending the request
  6114. */
  6115. 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) {
  6116. _send_sync(tls, c)
  6117. _prepare_socket_request(tls, c)
  6118. }
  6119. _send_request(tls, c, libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid), workaround, flags, vector, veclen)
  6120. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6121. v3 = uint64(0)
  6122. } else {
  6123. v3 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6124. }
  6125. request = v3
  6126. libc.Xpthread_mutex_unlock(tls, c+24)
  6127. return request
  6128. }
  6129. var _pad1 [3]int8
  6130. // C documentation
  6131. //
  6132. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6133. func Xxcb_send_request_with_fds(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r uint32) {
  6134. return uint32(Xxcb_send_request_with_fds64(tls, c, flags, vector, req, num_fds, fds))
  6135. }
  6136. func Xxcb_send_request64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r Tuint64_t) {
  6137. return Xxcb_send_request_with_fds64(tls, c, flags, vector, req, uint32(0), libc.UintptrFromInt32(0))
  6138. }
  6139. // C documentation
  6140. //
  6141. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6142. func Xxcb_send_request(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r uint32) {
  6143. return uint32(Xxcb_send_request64(tls, c, flags, vector, req))
  6144. }
  6145. func Xxcb_send_fd(tls *libc.TLS, c uintptr, fd int32) {
  6146. bp := tls.Alloc(16)
  6147. defer tls.Free(16)
  6148. var _ /* fds at bp+0 */ [1]int32
  6149. *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{
  6150. 0: fd,
  6151. }
  6152. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6153. libc.Xclose(tls, fd)
  6154. return
  6155. }
  6156. libc.Xpthread_mutex_lock(tls, c+24)
  6157. _send_fds(tls, c, bp, uint32(1))
  6158. libc.Xpthread_mutex_unlock(tls, c+24)
  6159. }
  6160. func Xxcb_take_socket(tls *libc.TLS, c uintptr, return_socket uintptr, closure uintptr, flags int32, sent uintptr) (r int32) {
  6161. var ret int32
  6162. _ = ret
  6163. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6164. return 0
  6165. }
  6166. libc.Xpthread_mutex_lock(tls, c+24)
  6167. _get_socket_back(tls, c)
  6168. /* _xcb_out_flush may drop the iolock allowing other threads to
  6169. * write requests, so keep flushing until we're done
  6170. */
  6171. for cond := true; cond; cond = ret != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest != (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written {
  6172. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6173. }
  6174. if ret != 0 {
  6175. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = return_socket
  6176. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = closure
  6177. if flags != 0 {
  6178. /* c->out.request + 1 will be the first request sent by the external
  6179. * socket owner. If the socket is returned before this request is sent
  6180. * it will be detected in _xcb_in_replies_done and this pending_reply
  6181. * will be discarded.
  6182. */
  6183. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+uint64(1), int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER), flags)
  6184. }
  6185. *(*Tuint64_t)(unsafe.Pointer(sent)) = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6186. }
  6187. libc.Xpthread_mutex_unlock(tls, c+24)
  6188. return ret
  6189. }
  6190. func Xxcb_writev(tls *libc.TLS, c uintptr, vector uintptr, count int32, requests Tuint64_t) (r int32) {
  6191. var ret int32
  6192. _ = ret
  6193. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6194. return 0
  6195. }
  6196. libc.Xpthread_mutex_lock(tls, c+24)
  6197. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest += requests
  6198. ret = X_xcb_out_send(tls, c, vector, count)
  6199. libc.Xpthread_mutex_unlock(tls, c+24)
  6200. return ret
  6201. }
  6202. func Xxcb_flush(tls *libc.TLS, c uintptr) (r int32) {
  6203. var ret int32
  6204. _ = ret
  6205. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6206. return 0
  6207. }
  6208. libc.Xpthread_mutex_lock(tls, c+24)
  6209. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6210. libc.Xpthread_mutex_unlock(tls, c+24)
  6211. return ret
  6212. }
  6213. /* Private interface */
  6214. func X_xcb_out_init(tls *libc.TLS, out uintptr) (r int32) {
  6215. if libc.Xpthread_cond_init(tls, out+56, uintptr(0)) != 0 {
  6216. return 0
  6217. }
  6218. (*T_xcb_out)(unsafe.Pointer(out)).Freturn_socket = uintptr(0)
  6219. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_closure = uintptr(0)
  6220. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_moving = 0
  6221. if libc.Xpthread_cond_init(tls, out, uintptr(0)) != 0 {
  6222. return 0
  6223. }
  6224. (*T_xcb_out)(unsafe.Pointer(out)).Fwriting = 0
  6225. (*T_xcb_out)(unsafe.Pointer(out)).Fqueue_len = 0
  6226. (*T_xcb_out)(unsafe.Pointer(out)).Frequest = uint64(0)
  6227. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_written = uint64(0)
  6228. if libc.Xpthread_mutex_init(tls, out+16536, uintptr(0)) != 0 {
  6229. return 0
  6230. }
  6231. (*T_xcb_out)(unsafe.Pointer(out)).Fmaximum_request_length_tag = int32(_LAZY_NONE)
  6232. return int32(1)
  6233. }
  6234. func X_xcb_out_destroy(tls *libc.TLS, out uintptr) {
  6235. libc.Xpthread_cond_destroy(tls, out)
  6236. libc.Xpthread_mutex_destroy(tls, out+16536)
  6237. }
  6238. func X_xcb_out_send(tls *libc.TLS, c uintptr, _vector uintptr, _count int32) (r int32) {
  6239. bp := tls.Alloc(16)
  6240. defer tls.Free(16)
  6241. *(*uintptr)(unsafe.Pointer(bp)) = _vector
  6242. *(*int32)(unsafe.Pointer(bp + 8)) = _count
  6243. var ret int32
  6244. _ = ret
  6245. ret = int32(1)
  6246. for ret != 0 && *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
  6247. ret = X_xcb_conn_wait(tls, c, c+4400, bp, bp+8)
  6248. }
  6249. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6250. libc.Xpthread_cond_broadcast(tls, c+4400)
  6251. X_xcb_in_wake_up_next_reader(tls, c)
  6252. return ret
  6253. }
  6254. func X_xcb_out_send_sync(tls *libc.TLS, c uintptr) {
  6255. _prepare_socket_request(tls, c)
  6256. _send_sync(tls, c)
  6257. }
  6258. func X_xcb_out_flush_to(tls *libc.TLS, c uintptr, request Tuint64_t) (r int32) {
  6259. bp := tls.Alloc(16)
  6260. defer tls.Free(16)
  6261. var _ /* vec at bp+0 */ Tiovec
  6262. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written-request) >= 0 {
  6263. return int32(1)
  6264. }
  6265. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len != 0 {
  6266. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_base = c + 4400 + 124
  6267. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  6268. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  6269. return X_xcb_out_send(tls, c, bp, int32(1))
  6270. }
  6271. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0 {
  6272. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  6273. }
  6274. return int32(1)
  6275. }
  6276. const m_INT32_MAX1 = 2147483647
  6277. const m_MSG_CTRUNC1 = 8
  6278. const m_MSG_TRUNC1 = 32
  6279. const m_POLLOUT1 = 0x004
  6280. const m_XCB_ERROR = 0
  6281. const m_XCB_REPLY = 1
  6282. const m_XCB_XGE_EVENT = 35
  6283. type Txcb_special_event_t = struct {
  6284. Fnext uintptr
  6285. Fextension Tuint8_t
  6286. Feid Tuint32_t
  6287. Fstamp uintptr
  6288. Fevents uintptr
  6289. Fevents_tail uintptr
  6290. Fspecial_event_cond Tpthread_cond_t
  6291. }
  6292. type Txcb_special_event = Txcb_special_event_t
  6293. type Tevent_list = struct {
  6294. Fevent uintptr
  6295. Fnext uintptr
  6296. }
  6297. type Treply_list = struct {
  6298. Freply uintptr
  6299. Fnext uintptr
  6300. }
  6301. type Tpending_reply = struct {
  6302. Ffirst_request Tuint64_t
  6303. Flast_request Tuint64_t
  6304. Fworkaround _workarounds
  6305. Fflags int32
  6306. Fnext uintptr
  6307. }
  6308. type Treader_list = struct {
  6309. Frequest Tuint64_t
  6310. Fdata uintptr
  6311. Fnext uintptr
  6312. }
  6313. type Tspecial_list = struct {
  6314. Fse uintptr
  6315. Fnext uintptr
  6316. }
  6317. func _remove_finished_readers(tls *libc.TLS, prev_reader uintptr, completed Tuint64_t) {
  6318. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-completed) <= 0 {
  6319. /* If you don't have what you're looking for now, you never
  6320. * will. Wake up and leave me alone. */
  6321. libc.Xpthread_cond_signal(tls, (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fdata)
  6322. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6323. }
  6324. }
  6325. func _read_fds(tls *libc.TLS, c uintptr, fds uintptr, nfd int32) (r int32) {
  6326. var ifds uintptr
  6327. var infd int32
  6328. _, _ = ifds, infd
  6329. ifds = c + 64 + 4256 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4
  6330. infd = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd - (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  6331. if nfd > infd {
  6332. return 0
  6333. }
  6334. libc.Xmemcpy(tls, fds, ifds, libc.Uint64FromInt32(nfd)*uint64(4))
  6335. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd += nfd
  6336. return int32(1)
  6337. }
  6338. type Txcb_ge_special_event_t = struct {
  6339. Fresponse_type Tuint8_t
  6340. Fextension Tuint8_t
  6341. Fsequence Tuint16_t
  6342. Flength Tuint32_t
  6343. Fevtype Tuint16_t
  6344. Fpad0 [2]Tuint8_t
  6345. Feid Tuint32_t
  6346. Fpad1 [16]Tuint8_t
  6347. }
  6348. func _event_special(tls *libc.TLS, c uintptr, event uintptr) (r int32) {
  6349. var ges, special_event uintptr
  6350. _, _ = ges, special_event
  6351. ges = (*Tevent_list)(unsafe.Pointer(event)).Fevent
  6352. /* Special events are always XGE events */
  6353. if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fresponse_type)&int32(0x7f) != int32(m_XCB_XGE_EVENT) {
  6354. return 0
  6355. }
  6356. special_event = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6357. for {
  6358. if !(special_event != 0) {
  6359. break
  6360. }
  6361. 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 {
  6362. *(*uintptr)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail)) = event
  6363. (*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail = event + 8
  6364. if (*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp != 0 {
  6365. *(*Tuint32_t)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp))++
  6366. }
  6367. libc.Xpthread_cond_signal(tls, special_event+40)
  6368. return int32(1)
  6369. }
  6370. goto _1
  6371. _1:
  6372. ;
  6373. special_event = (*Txcb_special_event)(unsafe.Pointer(special_event)).Fnext
  6374. }
  6375. return 0
  6376. }
  6377. func _read_packet(tls *libc.TLS, c uintptr) (r int32) {
  6378. bp := tls.Alloc(16)
  6379. defer tls.Free(16)
  6380. var buf, cur, event, oldpend, p, pend uintptr
  6381. var bufsize, eventlength, lastread, length Tuint64_t
  6382. var nfd int32
  6383. var v1 uint64
  6384. var _ /* genrep at bp+0 */ Txcb_generic_reply_t
  6385. _, _, _, _, _, _, _, _, _, _, _, _ = buf, bufsize, cur, event, eventlength, lastread, length, nfd, oldpend, p, pend, v1
  6386. length = uint64(32)
  6387. eventlength = uint64(0) /* length after first 32 bytes for GenericEvents */
  6388. nfd = 0
  6389. pend = uintptr(0)
  6390. /* Wait for there to be enough data for us to read a whole packet */
  6391. if libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len) < length {
  6392. return 0
  6393. }
  6394. /* Get the response type, length, and sequence number. */
  6395. libc.Xmemcpy(tls, bp, c+64+52, uint64(8))
  6396. /* Compute 32-bit sequence number of this packet. */
  6397. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) != int32(m_XCB_KEYMAP_NOTIFY) {
  6398. lastread = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6399. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read = lastread&uint64(0xffffffffffff0000) | uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fsequence)
  6400. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-lastread) < 0 {
  6401. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read += uint64(0x10000)
  6402. }
  6403. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) > 0 {
  6404. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6405. }
  6406. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read != lastread {
  6407. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6408. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(lastread), (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply)
  6409. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = uintptr(0)
  6410. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6411. }
  6412. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read - uint64(1)
  6413. }
  6414. 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 {
  6415. oldpend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6416. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies = (*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext
  6417. if !((*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext != 0) {
  6418. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = c + 64 + 4240
  6419. }
  6420. libc.Xfree(tls, oldpend)
  6421. }
  6422. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR {
  6423. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6424. }
  6425. _remove_finished_readers(tls, c+64+4224, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed)
  6426. }
  6427. 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) {
  6428. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6429. 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)) {
  6430. pend = uintptr(0)
  6431. }
  6432. }
  6433. /* For reply packets, check that the entire packet is available. */
  6434. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6435. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG) {
  6436. p = c + 64 + 52
  6437. (*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength = *(*Tuint32_t)(unsafe.Pointer(p + 2*4)) * *(*Tuint32_t)(unsafe.Pointer(p + 3*4)) * uint32(2)
  6438. }
  6439. length += uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength * uint32(4))
  6440. /* XXX a bit of a hack -- we "know" that all FD replys place
  6441. * the number of fds in the pad0 byte */
  6442. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_REPLY_FDS) != 0 {
  6443. nfd = libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fpad0)
  6444. }
  6445. }
  6446. /* XGE events may have sizes > 32 */
  6447. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) == int32(m_XCB_XGE_EVENT) {
  6448. eventlength = uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength * uint32(4))
  6449. }
  6450. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6451. v1 = uint64(0)
  6452. } else {
  6453. v1 = uint64(4)
  6454. }
  6455. bufsize = length + eventlength + libc.Uint64FromInt32(nfd)*uint64(4) + v1
  6456. if bufsize < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT32_MAX1)) {
  6457. buf = libc.Xmalloc(tls, bufsize)
  6458. } else {
  6459. buf = libc.UintptrFromInt32(0)
  6460. }
  6461. if !(buf != 0) {
  6462. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6463. return 0
  6464. }
  6465. if X_xcb_in_read_block(tls, c, buf, libc.Int32FromUint64(length)) <= 0 {
  6466. libc.Xfree(tls, buf)
  6467. return 0
  6468. }
  6469. /* pull in XGE event data if available, append after event struct */
  6470. if eventlength != 0 {
  6471. if X_xcb_in_read_block(tls, c, buf+1*36, libc.Int32FromUint64(eventlength)) <= 0 {
  6472. libc.Xfree(tls, buf)
  6473. return 0
  6474. }
  6475. }
  6476. if nfd != 0 {
  6477. if !(_read_fds(tls, c, buf+uintptr(length), nfd) != 0) {
  6478. libc.Xfree(tls, buf)
  6479. return 0
  6480. }
  6481. }
  6482. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_DISCARD_REPLY) != 0 {
  6483. libc.Xfree(tls, buf)
  6484. return int32(1)
  6485. }
  6486. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) != int32(m_XCB_REPLY) {
  6487. (*Txcb_generic_event_t)(unsafe.Pointer(buf)).Ffull_sequence = uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read)
  6488. }
  6489. /* reply, or checked error */
  6490. 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 {
  6491. cur = libc.Xmalloc(tls, uint64(16))
  6492. if !(cur != 0) {
  6493. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6494. libc.Xfree(tls, buf)
  6495. return 0
  6496. }
  6497. (*Treply_list)(unsafe.Pointer(cur)).Freply = buf
  6498. (*Treply_list)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  6499. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail)) = cur
  6500. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = cur + 8
  6501. 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 {
  6502. libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  6503. }
  6504. return int32(1)
  6505. }
  6506. /* event, or unchecked error */
  6507. event = libc.Xmalloc(tls, uint64(16))
  6508. if !(event != 0) {
  6509. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6510. libc.Xfree(tls, buf)
  6511. return 0
  6512. }
  6513. (*Tevent_list)(unsafe.Pointer(event)).Fevent = buf
  6514. (*Tevent_list)(unsafe.Pointer(event)).Fnext = uintptr(0)
  6515. if !(_event_special(tls, c, event) != 0) {
  6516. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail)) = event
  6517. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = event + 8
  6518. libc.Xpthread_cond_signal(tls, c+64)
  6519. }
  6520. return int32(1) /* I have something for you... */
  6521. }
  6522. func _get_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6523. var cur, ret uintptr
  6524. _, _ = cur, ret
  6525. cur = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents
  6526. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents != 0) {
  6527. return uintptr(0)
  6528. }
  6529. ret = (*Tevent_list)(unsafe.Pointer(cur)).Fevent
  6530. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents = (*Tevent_list)(unsafe.Pointer(cur)).Fnext
  6531. if !((*Tevent_list)(unsafe.Pointer(cur)).Fnext != 0) {
  6532. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = c + 64 + 4208
  6533. }
  6534. libc.Xfree(tls, cur)
  6535. return ret
  6536. }
  6537. func _free_reply_list(tls *libc.TLS, head uintptr) {
  6538. var cur uintptr
  6539. _ = cur
  6540. for head != 0 {
  6541. cur = head
  6542. head = (*Treply_list)(unsafe.Pointer(cur)).Fnext
  6543. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(cur)).Freply)
  6544. libc.Xfree(tls, cur)
  6545. }
  6546. }
  6547. func _read_block(tls *libc.TLS, fd int32, buf uintptr, len1 Tssize_t) (r int32) {
  6548. bp := tls.Alloc(16)
  6549. defer tls.Free(16)
  6550. var done, ret int32
  6551. var _ /* pfd at bp+0 */ Tpollfd
  6552. _, _ = done, ret
  6553. done = 0
  6554. for int64(done) < len1 {
  6555. ret = int32(libc.Xrecv(tls, fd, buf+uintptr(done), libc.Uint64FromInt64(len1-int64(done)), 0))
  6556. if ret > 0 {
  6557. done += ret
  6558. }
  6559. if ret < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  6560. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = fd
  6561. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  6562. (*(*Tpollfd)(unsafe.Pointer(bp))).Frevents = 0
  6563. for cond := true; cond; cond = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  6564. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  6565. }
  6566. }
  6567. if ret <= 0 {
  6568. return ret
  6569. }
  6570. }
  6571. return int32(len1)
  6572. }
  6573. func _poll_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6574. var head uintptr
  6575. _ = head
  6576. /* If an error occurred when issuing the request, fail immediately. */
  6577. if !(request != 0) {
  6578. head = uintptr(0)
  6579. } else {
  6580. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) < 0 {
  6581. head = X_xcb_map_remove(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(request))
  6582. if head != 0 && (*Treply_list)(unsafe.Pointer(head)).Fnext != 0 {
  6583. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(request), (*Treply_list)(unsafe.Pointer(head)).Fnext)
  6584. }
  6585. } else {
  6586. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6587. head = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply
  6588. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = (*Treply_list)(unsafe.Pointer(head)).Fnext
  6589. if !((*Treply_list)(unsafe.Pointer(head)).Fnext != 0) {
  6590. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6591. }
  6592. } else {
  6593. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed {
  6594. head = uintptr(0)
  6595. } else {
  6596. return 0
  6597. }
  6598. }
  6599. }
  6600. }
  6601. if error1 != 0 {
  6602. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6603. }
  6604. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6605. if head != 0 {
  6606. if libc.Int32FromUint8((*Txcb_generic_reply_t)(unsafe.Pointer((*Treply_list)(unsafe.Pointer(head)).Freply)).Fresponse_type) == m_XCB_ERROR {
  6607. if error1 != 0 {
  6608. *(*uintptr)(unsafe.Pointer(error1)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6609. } else {
  6610. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(head)).Freply)
  6611. }
  6612. } else {
  6613. *(*uintptr)(unsafe.Pointer(reply)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6614. }
  6615. libc.Xfree(tls, head)
  6616. }
  6617. return int32(1)
  6618. }
  6619. func _insert_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr, request Tuint64_t, cond uintptr) {
  6620. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-request) <= 0 {
  6621. prev_reader = *(*uintptr)(unsafe.Pointer(prev_reader)) + 16
  6622. }
  6623. (*Treader_list)(unsafe.Pointer(reader)).Frequest = request
  6624. (*Treader_list)(unsafe.Pointer(reader)).Fdata = cond
  6625. (*Treader_list)(unsafe.Pointer(reader)).Fnext = *(*uintptr)(unsafe.Pointer(prev_reader))
  6626. *(*uintptr)(unsafe.Pointer(prev_reader)) = reader
  6627. }
  6628. func _remove_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr) {
  6629. 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 {
  6630. if *(*uintptr)(unsafe.Pointer(prev_reader)) == reader {
  6631. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6632. break
  6633. }
  6634. }
  6635. }
  6636. func _insert_special(tls *libc.TLS, prev_special uintptr, special uintptr, se uintptr) {
  6637. (*Tspecial_list)(unsafe.Pointer(special)).Fse = se
  6638. (*Tspecial_list)(unsafe.Pointer(special)).Fnext = *(*uintptr)(unsafe.Pointer(prev_special))
  6639. *(*uintptr)(unsafe.Pointer(prev_special)) = special
  6640. }
  6641. func _remove_special(tls *libc.TLS, prev_special uintptr, special uintptr) {
  6642. for *(*uintptr)(unsafe.Pointer(prev_special)) != 0 {
  6643. if *(*uintptr)(unsafe.Pointer(prev_special)) == special {
  6644. *(*uintptr)(unsafe.Pointer(prev_special)) = (*Tspecial_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_special)))).Fnext
  6645. break
  6646. }
  6647. prev_special = *(*uintptr)(unsafe.Pointer(prev_special)) + 8
  6648. }
  6649. }
  6650. func _wait_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6651. bp := tls.Alloc(80)
  6652. defer tls.Free(80)
  6653. var _ /* cond at bp+8 */ Tpthread_cond_t
  6654. var _ /* reader at bp+56 */ Treader_list
  6655. var _ /* ret at bp+0 */ uintptr
  6656. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6657. /* If this request has not been written yet, write it. */
  6658. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 || X_xcb_out_flush_to(tls, c, request) != 0 {
  6659. *(*Tpthread_cond_t)(unsafe.Pointer(bp + 8)) = Tpthread_cond_t{}
  6660. *(*int32)(unsafe.Pointer(bp + 8)) = 0
  6661. _insert_reader(tls, c+64+4224, bp+56, request, bp+8)
  6662. for !(_poll_for_reply(tls, c, request, bp, e) != 0) {
  6663. if !(X_xcb_conn_wait(tls, c, bp+8, uintptr(0), uintptr(0)) != 0) {
  6664. break
  6665. }
  6666. }
  6667. _remove_reader(tls, c+64+4224, bp+56)
  6668. libc.Xpthread_cond_destroy(tls, bp+8)
  6669. }
  6670. X_xcb_in_wake_up_next_reader(tls, c)
  6671. return *(*uintptr)(unsafe.Pointer(bp))
  6672. }
  6673. func _widen(tls *libc.TLS, c uintptr, request uint32) (r Tuint64_t) {
  6674. var widened_request Tuint64_t
  6675. _ = widened_request
  6676. widened_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest&uint64(0xffffffff00000000) | uint64(request)
  6677. if widened_request > (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest {
  6678. widened_request -= libc.Uint64FromUint64(1) << libc.Int32FromInt32(32)
  6679. }
  6680. return widened_request
  6681. }
  6682. /* Public interface */
  6683. func Xxcb_wait_for_reply(tls *libc.TLS, c uintptr, request uint32, e uintptr) (r uintptr) {
  6684. var ret uintptr
  6685. _ = ret
  6686. if e != 0 {
  6687. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6688. }
  6689. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6690. return uintptr(0)
  6691. }
  6692. libc.Xpthread_mutex_lock(tls, c+24)
  6693. ret = _wait_for_reply(tls, c, _widen(tls, c, request), e)
  6694. libc.Xpthread_mutex_unlock(tls, c+24)
  6695. return ret
  6696. }
  6697. func Xxcb_wait_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6698. var ret uintptr
  6699. _ = ret
  6700. if e != 0 {
  6701. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6702. }
  6703. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6704. return uintptr(0)
  6705. }
  6706. libc.Xpthread_mutex_lock(tls, c+24)
  6707. ret = _wait_for_reply(tls, c, request, e)
  6708. libc.Xpthread_mutex_unlock(tls, c+24)
  6709. return ret
  6710. }
  6711. func Xxcb_get_reply_fds(tls *libc.TLS, c uintptr, reply uintptr, reply_size Tsize_t) (r uintptr) {
  6712. return reply + uintptr(reply_size)
  6713. }
  6714. func _insert_pending_discard(tls *libc.TLS, c uintptr, prev_next uintptr, seq Tuint64_t) {
  6715. var pend uintptr
  6716. _ = pend
  6717. pend = libc.Xmalloc(tls, uint64(32))
  6718. if !(pend != 0) {
  6719. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6720. return
  6721. }
  6722. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = seq
  6723. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = seq
  6724. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = 0
  6725. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = int32(_XCB_REQUEST_DISCARD_REPLY)
  6726. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = *(*uintptr)(unsafe.Pointer(prev_next))
  6727. *(*uintptr)(unsafe.Pointer(prev_next)) = pend
  6728. if !((*Tpending_reply)(unsafe.Pointer(pend)).Fnext != 0) {
  6729. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  6730. }
  6731. }
  6732. func _discard_reply(tls *libc.TLS, c uintptr, request Tuint64_t) {
  6733. bp := tls.Alloc(16)
  6734. defer tls.Free(16)
  6735. var prev_pend uintptr
  6736. var _ /* reply at bp+0 */ uintptr
  6737. _ = prev_pend
  6738. /* Free any replies or errors that we've already read. Stop if
  6739. * xcb_wait_for_reply would block or we've run out of replies. */
  6740. for _poll_for_reply(tls, c, request, bp, uintptr(0)) != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
  6741. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp)))
  6742. }
  6743. /* If we've proven there are no more responses coming, we're done. */
  6744. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
  6745. return
  6746. }
  6747. /* Walk the list of pending requests. Mark the first match for deletion. */
  6748. prev_pend = c + 64 + 4240
  6749. for {
  6750. if !(*(*uintptr)(unsafe.Pointer(prev_pend)) != 0) {
  6751. break
  6752. }
  6753. if libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request-request) > 0 {
  6754. break
  6755. }
  6756. if (*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request == request {
  6757. /* Pending reply found. Mark for discard: */
  6758. *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)) + 20)) |= int32(_XCB_REQUEST_DISCARD_REPLY)
  6759. return
  6760. }
  6761. goto _1
  6762. _1:
  6763. ;
  6764. prev_pend = *(*uintptr)(unsafe.Pointer(prev_pend)) + 24
  6765. }
  6766. /* Pending reply not found (likely due to _unchecked request). Create one: */
  6767. _insert_pending_discard(tls, c, prev_pend, request)
  6768. }
  6769. func Xxcb_discard_reply(tls *libc.TLS, c uintptr, sequence uint32) {
  6770. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6771. return
  6772. }
  6773. /* If an error occurred when issuing the request, fail immediately. */
  6774. if !(sequence != 0) {
  6775. return
  6776. }
  6777. libc.Xpthread_mutex_lock(tls, c+24)
  6778. _discard_reply(tls, c, _widen(tls, c, sequence))
  6779. libc.Xpthread_mutex_unlock(tls, c+24)
  6780. }
  6781. func Xxcb_discard_reply64(tls *libc.TLS, c uintptr, sequence Tuint64_t) {
  6782. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6783. return
  6784. }
  6785. /* If an error occurred when issuing the request, fail immediately. */
  6786. if !(sequence != 0) {
  6787. return
  6788. }
  6789. libc.Xpthread_mutex_lock(tls, c+24)
  6790. _discard_reply(tls, c, sequence)
  6791. libc.Xpthread_mutex_unlock(tls, c+24)
  6792. }
  6793. func Xxcb_poll_for_reply(tls *libc.TLS, c uintptr, request uint32, reply uintptr, error1 uintptr) (r int32) {
  6794. var ret int32
  6795. _ = ret
  6796. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6797. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6798. if error1 != 0 {
  6799. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6800. }
  6801. return int32(1) /* would not block */
  6802. }
  6803. libc.Xpthread_mutex_lock(tls, c+24)
  6804. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6805. 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 */
  6806. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6807. }
  6808. libc.Xpthread_mutex_unlock(tls, c+24)
  6809. return ret
  6810. }
  6811. func Xxcb_poll_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6812. var ret int32
  6813. _ = ret
  6814. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6815. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6816. if error1 != 0 {
  6817. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6818. }
  6819. return int32(1) /* would not block */
  6820. }
  6821. libc.Xpthread_mutex_lock(tls, c+24)
  6822. ret = _poll_for_reply(tls, c, request, reply, error1)
  6823. 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 */
  6824. ret = _poll_for_reply(tls, c, request, reply, error1)
  6825. }
  6826. libc.Xpthread_mutex_unlock(tls, c+24)
  6827. return ret
  6828. }
  6829. func Xxcb_wait_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6830. var ret, v1 uintptr
  6831. _, _ = ret, v1
  6832. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6833. return uintptr(0)
  6834. }
  6835. libc.Xpthread_mutex_lock(tls, c+24)
  6836. /* get_event returns 0 on empty list. */
  6837. for {
  6838. v1 = _get_event(tls, c)
  6839. ret = v1
  6840. if !!(v1 != 0) {
  6841. break
  6842. }
  6843. if !(X_xcb_conn_wait(tls, c, c+64, uintptr(0), uintptr(0)) != 0) {
  6844. break
  6845. }
  6846. }
  6847. X_xcb_in_wake_up_next_reader(tls, c)
  6848. libc.Xpthread_mutex_unlock(tls, c+24)
  6849. return ret
  6850. }
  6851. func _poll_for_next_event(tls *libc.TLS, c uintptr, queued int32) (r uintptr) {
  6852. var ret uintptr
  6853. _ = ret
  6854. ret = uintptr(0)
  6855. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
  6856. libc.Xpthread_mutex_lock(tls, c+24)
  6857. /* FIXME: follow X meets Z architecture changes. */
  6858. ret = _get_event(tls, c)
  6859. 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 */
  6860. ret = _get_event(tls, c)
  6861. }
  6862. libc.Xpthread_mutex_unlock(tls, c+24)
  6863. }
  6864. return ret
  6865. }
  6866. func Xxcb_poll_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6867. return _poll_for_next_event(tls, c, 0)
  6868. }
  6869. func Xxcb_poll_for_queued_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6870. return _poll_for_next_event(tls, c, int32(1))
  6871. }
  6872. func Xxcb_request_check(tls *libc.TLS, c uintptr, cookie Txcb_void_cookie_t) (r uintptr) {
  6873. bp := tls.Alloc(16)
  6874. defer tls.Free(16)
  6875. var reply uintptr
  6876. var request Tuint64_t
  6877. var _ /* ret at bp+0 */ uintptr
  6878. _, _ = reply, request
  6879. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6880. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6881. return uintptr(0)
  6882. }
  6883. libc.Xpthread_mutex_lock(tls, c+24)
  6884. request = _widen(tls, c, cookie.Fsequence)
  6885. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) >= 0 && libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) > 0 {
  6886. X_xcb_out_send_sync(tls, c)
  6887. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6888. }
  6889. reply = _wait_for_reply(tls, c, request, bp)
  6890. libc.Xpthread_mutex_unlock(tls, c+24)
  6891. return *(*uintptr)(unsafe.Pointer(bp))
  6892. }
  6893. func _get_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6894. var event, events, v1, v2 uintptr
  6895. _, _, _, _ = event, events, v1, v2
  6896. event = libc.UintptrFromInt32(0)
  6897. v1 = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6898. events = v1
  6899. if v1 != libc.UintptrFromInt32(0) {
  6900. event = (*Tevent_list)(unsafe.Pointer(events)).Fevent
  6901. v2 = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6902. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = v2
  6903. if !(v2 != 0) {
  6904. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6905. }
  6906. libc.Xfree(tls, events)
  6907. }
  6908. return event
  6909. }
  6910. func Xxcb_poll_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6911. var event uintptr
  6912. _ = event
  6913. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6914. return uintptr(0)
  6915. }
  6916. libc.Xpthread_mutex_lock(tls, c+24)
  6917. event = _get_special_event(tls, c, se)
  6918. 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 */
  6919. event = _get_special_event(tls, c, se)
  6920. }
  6921. libc.Xpthread_mutex_unlock(tls, c+24)
  6922. return event
  6923. }
  6924. func Xxcb_wait_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6925. bp := tls.Alloc(16)
  6926. defer tls.Free(16)
  6927. var event, v1 uintptr
  6928. var _ /* special at bp+0 */ Tspecial_list
  6929. _, _ = event, v1
  6930. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6931. return uintptr(0)
  6932. }
  6933. libc.Xpthread_mutex_lock(tls, c+24)
  6934. _insert_special(tls, c+64+4232, bp, se)
  6935. /* get_special_event returns 0 on empty list. */
  6936. for {
  6937. v1 = _get_special_event(tls, c, se)
  6938. event = v1
  6939. if !!(v1 != 0) {
  6940. break
  6941. }
  6942. if !(X_xcb_conn_wait(tls, c, se+40, uintptr(0), uintptr(0)) != 0) {
  6943. break
  6944. }
  6945. }
  6946. _remove_special(tls, c+64+4232, bp)
  6947. X_xcb_in_wake_up_next_reader(tls, c)
  6948. libc.Xpthread_mutex_unlock(tls, c+24)
  6949. return event
  6950. }
  6951. func Xxcb_register_for_special_xge(tls *libc.TLS, c uintptr, ext uintptr, eid Tuint32_t, stamp uintptr) (r uintptr) {
  6952. var ext_reply, se uintptr
  6953. _, _ = ext_reply, se
  6954. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6955. return libc.UintptrFromInt32(0)
  6956. }
  6957. ext_reply = Xxcb_get_extension_data(tls, c, ext)
  6958. if !(ext_reply != 0) {
  6959. return libc.UintptrFromInt32(0)
  6960. }
  6961. libc.Xpthread_mutex_lock(tls, c+24)
  6962. se = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6963. for {
  6964. if !(se != 0) {
  6965. break
  6966. }
  6967. 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 {
  6968. libc.Xpthread_mutex_unlock(tls, c+24)
  6969. return libc.UintptrFromInt32(0)
  6970. }
  6971. goto _1
  6972. _1:
  6973. ;
  6974. se = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6975. }
  6976. se = libc.Xcalloc(tls, uint64(1), uint64(88))
  6977. if !(se != 0) {
  6978. libc.Xpthread_mutex_unlock(tls, c+24)
  6979. return libc.UintptrFromInt32(0)
  6980. }
  6981. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension = (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode
  6982. (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid = eid
  6983. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = libc.UintptrFromInt32(0)
  6984. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6985. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fstamp = stamp
  6986. libc.Xpthread_cond_init(tls, se+40, uintptr(0))
  6987. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6988. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events = se
  6989. libc.Xpthread_mutex_unlock(tls, c+24)
  6990. return se
  6991. }
  6992. func Xxcb_unregister_for_special_event(tls *libc.TLS, c uintptr, se uintptr) {
  6993. var events, next, prev, s, v2 uintptr
  6994. _, _, _, _, _ = events, next, prev, s, v2
  6995. if !(se != 0) {
  6996. return
  6997. }
  6998. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6999. return
  7000. }
  7001. libc.Xpthread_mutex_lock(tls, c+24)
  7002. prev = c + 64 + 4328
  7003. for {
  7004. v2 = *(*uintptr)(unsafe.Pointer(prev))
  7005. s = v2
  7006. if !(v2 != libc.UintptrFromInt32(0)) {
  7007. break
  7008. }
  7009. if s == se {
  7010. *(*uintptr)(unsafe.Pointer(prev)) = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  7011. events = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  7012. for {
  7013. if !(events != 0) {
  7014. break
  7015. }
  7016. next = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  7017. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(events)).Fevent)
  7018. libc.Xfree(tls, events)
  7019. goto _3
  7020. _3:
  7021. ;
  7022. events = next
  7023. }
  7024. libc.Xpthread_cond_destroy(tls, se+40)
  7025. libc.Xfree(tls, se)
  7026. break
  7027. }
  7028. goto _1
  7029. _1:
  7030. ;
  7031. prev = s
  7032. }
  7033. libc.Xpthread_mutex_unlock(tls, c+24)
  7034. }
  7035. /* Private interface */
  7036. func X_xcb_in_init(tls *libc.TLS, in uintptr) (r int32) {
  7037. if libc.Xpthread_cond_init(tls, in, uintptr(0)) != 0 {
  7038. return 0
  7039. }
  7040. (*T_xcb_in)(unsafe.Pointer(in)).Freading = 0
  7041. (*T_xcb_in)(unsafe.Pointer(in)).Fqueue_len = 0
  7042. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_read = uint64(0)
  7043. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_completed = uint64(0)
  7044. (*T_xcb_in)(unsafe.Pointer(in)).Freplies = X_xcb_map_new(tls)
  7045. if !((*T_xcb_in)(unsafe.Pointer(in)).Freplies != 0) {
  7046. return 0
  7047. }
  7048. (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply_tail = in + 4184
  7049. (*T_xcb_in)(unsafe.Pointer(in)).Fevents_tail = in + 4208
  7050. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies_tail = in + 4240
  7051. return int32(1)
  7052. }
  7053. func X_xcb_in_destroy(tls *libc.TLS, in uintptr) {
  7054. var e, pend uintptr
  7055. _, _ = e, pend
  7056. libc.Xpthread_cond_destroy(tls, in)
  7057. _free_reply_list(tls, (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply)
  7058. X_xcb_map_delete(tls, (*T_xcb_in)(unsafe.Pointer(in)).Freplies, __ccgo_fp(_free_reply_list))
  7059. for (*T_xcb_in)(unsafe.Pointer(in)).Fevents != 0 {
  7060. e = (*T_xcb_in)(unsafe.Pointer(in)).Fevents
  7061. (*T_xcb_in)(unsafe.Pointer(in)).Fevents = (*Tevent_list)(unsafe.Pointer(e)).Fnext
  7062. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(e)).Fevent)
  7063. libc.Xfree(tls, e)
  7064. }
  7065. for (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies != 0 {
  7066. pend = (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies
  7067. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies = (*Tpending_reply)(unsafe.Pointer(pend)).Fnext
  7068. libc.Xfree(tls, pend)
  7069. }
  7070. }
  7071. func X_xcb_in_wake_up_next_reader(tls *libc.TLS, c uintptr) {
  7072. var pthreadret int32
  7073. _ = pthreadret
  7074. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 {
  7075. pthreadret = libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  7076. } else {
  7077. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters != 0 {
  7078. pthreadret = libc.Xpthread_cond_signal(tls, (*Tspecial_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters)).Fse+40)
  7079. } else {
  7080. pthreadret = libc.Xpthread_cond_signal(tls, c+64)
  7081. }
  7082. }
  7083. }
  7084. func X_xcb_in_expect_reply(tls *libc.TLS, c uintptr, request Tuint64_t, workaround _workarounds, flags int32) (r int32) {
  7085. var pend uintptr
  7086. var v1 Tuint64_t
  7087. _, _ = pend, v1
  7088. pend = libc.Xmalloc(tls, uint64(32))
  7089. if !(pend != 0) {
  7090. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  7091. return 0
  7092. }
  7093. v1 = request
  7094. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = v1
  7095. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = v1
  7096. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = workaround
  7097. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = flags
  7098. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = uintptr(0)
  7099. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail)) = pend
  7100. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  7101. return int32(1)
  7102. }
  7103. func X_xcb_in_replies_done(tls *libc.TLS, c uintptr) {
  7104. var pend, prev_next uintptr
  7105. _, _ = pend, prev_next
  7106. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail != c+64+4240 {
  7107. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail - uintptr(Tsize_t(libc.UintptrFromInt32(0)+24))
  7108. if (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) {
  7109. if libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest) <= 0 {
  7110. (*Tpending_reply1)(unsafe.Pointer(pend)).Flast_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  7111. (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround = int32(_WORKAROUND_NONE)
  7112. } else {
  7113. /* The socket was taken, but no requests were actually sent
  7114. * so just discard the pending_reply that was created.
  7115. */
  7116. prev_next = c + 64 + 4240
  7117. for *(*uintptr)(unsafe.Pointer(prev_next)) != pend {
  7118. prev_next = *(*uintptr)(unsafe.Pointer(prev_next)) + 24
  7119. }
  7120. *(*uintptr)(unsafe.Pointer(prev_next)) = libc.UintptrFromInt32(0)
  7121. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = prev_next
  7122. libc.Xfree(tls, pend)
  7123. }
  7124. }
  7125. }
  7126. }
  7127. func X_xcb_in_read(tls *libc.TLS, c uintptr) (r int32) {
  7128. bp := tls.Alloc(160)
  7129. defer tls.Free(160)
  7130. var hdr, v2, v3 uintptr
  7131. var i, n, nfd int32
  7132. var _ /* cmsgbuf at bp+16 */ struct {
  7133. Fbuf [0][80]int8
  7134. Fcmsghdr Tcmsghdr
  7135. F__ccgo_pad2 [64]byte
  7136. }
  7137. var _ /* iov at bp+0 */ Tiovec
  7138. var _ /* msg at bp+96 */ Tmsghdr
  7139. _, _, _, _, _, _ = hdr, i, n, nfd, v2, v3
  7140. *(*Tiovec)(unsafe.Pointer(bp)) = Tiovec{
  7141. Fiov_base: c + 64 + 52 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7142. Fiov_len: uint64(4096) - libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7143. }
  7144. *(*Tmsghdr)(unsafe.Pointer(bp + 96)) = Tmsghdr{
  7145. Fmsg_iov: bp,
  7146. Fmsg_iovlen: int32(1),
  7147. Fmsg_control: bp + 16,
  7148. Fmsg_controllen: uint32((libc.Uint64FromInt64(4)*libc.Uint64FromInt32(libc.Int32FromInt32(m_XCB_MAX_PASS_FD)-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) + (libc.Uint64FromInt64(16)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1))),
  7149. }
  7150. n = int32(libc.Xrecvmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+96, 0))
  7151. /* Check for truncation errors. Only MSG_CTRUNC is
  7152. * probably possible here, which would indicate that
  7153. * the sender tried to transmit more than XCB_MAX_PASS_FD
  7154. * file descriptors.
  7155. */
  7156. if (*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_flags&(libc.Int32FromInt32(m_MSG_TRUNC1)|libc.Int32FromInt32(m_MSG_CTRUNC1)) != 0 {
  7157. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7158. return 0
  7159. }
  7160. if n > 0 {
  7161. if uint64((*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_controllen) >= uint64(16) {
  7162. if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) {
  7163. v2 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control
  7164. } else {
  7165. v2 = libc.UintptrFromInt32(0)
  7166. }
  7167. hdr = v2
  7168. for {
  7169. if !(hdr != 0) {
  7170. break
  7171. }
  7172. if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level == int32(m_SOL_SOCKET) && (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type == int32(m_SCM_RIGHTS) {
  7173. nfd = libc.Int32FromUint64((uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len) - ((libc.Uint64FromInt64(16)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) & ^(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)) + libc.Uint64FromInt32(libc.Int32FromInt32(0)))) / uint64(4))
  7174. libc.Xmemcpy(tls, c+64+4256+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)*4, hdr+libc.UintptrFromInt32(1)*16, libc.Uint64FromInt32(nfd)*uint64(4))
  7175. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd += nfd
  7176. }
  7177. goto _1
  7178. _1:
  7179. ;
  7180. if uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len)+uint64(8)-uint64(1))&libc.Uint64FromInt64(^libc.Int64FromUint64(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1)))+uint64(16) >= libc.Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen))-int64(hdr)) {
  7181. v3 = uintptr(0)
  7182. } else {
  7183. v3 = hdr + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len)+libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1))&libc.Uint64FromInt64(^libc.Int64FromUint64(libc.Uint64FromInt64(8)-libc.Uint64FromInt32(1))))
  7184. }
  7185. hdr = v3
  7186. }
  7187. }
  7188. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read += libc.Uint64FromInt32(n)
  7189. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len += n
  7190. }
  7191. for _read_packet(tls, c) != 0 {
  7192. /* empty */
  7193. }
  7194. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7195. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd -= (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  7196. libc.Xmemmove(tls, c+64+4256, c+64+4256+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4, libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd)*uint64(4))
  7197. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd = 0
  7198. /* If we have any left-over file descriptors after emptying
  7199. * the input buffer, then the server sent some that we weren't
  7200. * expecting. Close them and mark the connection as broken;
  7201. */
  7202. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len == 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7203. i = 0
  7204. for {
  7205. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd) {
  7206. break
  7207. }
  7208. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 64 + 4256 + uintptr(i)*4)))
  7209. goto _4
  7210. _4:
  7211. ;
  7212. i++
  7213. }
  7214. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7215. return 0
  7216. }
  7217. }
  7218. 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)) {
  7219. return int32(1)
  7220. }
  7221. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7222. return 0
  7223. }
  7224. func X_xcb_in_read_block(tls *libc.TLS, c uintptr, buf uintptr, len1 int32) (r int32) {
  7225. var done, ret int32
  7226. _, _ = done, ret
  7227. done = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len
  7228. if len1 < done {
  7229. done = len1
  7230. }
  7231. libc.Xmemcpy(tls, buf, c+64+52, libc.Uint64FromInt32(done))
  7232. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len -= done
  7233. libc.Xmemmove(tls, c+64+52, c+64+52+uintptr(done), libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len))
  7234. if len1 > done {
  7235. ret = _read_block(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, buf+uintptr(done), int64(len1-done))
  7236. if ret <= 0 {
  7237. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7238. return ret
  7239. }
  7240. }
  7241. return len1
  7242. }
  7243. type Tpending_reply1 = struct {
  7244. Ffirst_request Tuint64_t
  7245. Flast_request Tuint64_t
  7246. Fworkaround _workarounds
  7247. Fflags int32
  7248. Fnext uintptr
  7249. }
  7250. type Treader_list1 = struct {
  7251. Frequest Tuint64_t
  7252. Fdata uintptr
  7253. Fnext uintptr
  7254. }
  7255. type Tspecial_list1 = struct {
  7256. Fse uintptr
  7257. Fnext uintptr
  7258. }
  7259. type Txcb_ge_special_event_t1 = struct {
  7260. Fresponse_type Tuint8_t
  7261. Fextension Tuint8_t
  7262. Fsequence Tuint16_t
  7263. Flength Tuint32_t
  7264. Fevtype Tuint16_t
  7265. Fpad0 [2]Tuint8_t
  7266. Feid Tuint32_t
  7267. Fpad1 [16]Tuint8_t
  7268. }
  7269. const m_INT32_MAX2 = 0x7fffffff
  7270. type Tlazyreply = struct {
  7271. Ftag _lazy_reply_tag
  7272. Fvalue struct {
  7273. Freply [0]uintptr
  7274. Fcookie Txcb_query_extension_cookie_t
  7275. F__ccgo_pad2 [4]byte
  7276. }
  7277. }
  7278. func _get_index(tls *libc.TLS, c uintptr, idx int32) (r uintptr) {
  7279. var new_extensions uintptr
  7280. var new_size int32
  7281. _, _ = new_extensions, new_size
  7282. if idx > (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size {
  7283. new_size = idx << int32(1)
  7284. new_extensions = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions, uint64(16)*libc.Uint64FromInt32(new_size))
  7285. if !(new_extensions != 0) {
  7286. return uintptr(0)
  7287. }
  7288. libc.Xmemset(tls, new_extensions+uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*16, 0, uint64(16)*libc.Uint64FromInt32(new_size-(*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size))
  7289. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions = new_extensions
  7290. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size = new_size
  7291. }
  7292. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr(idx)*16 - uintptr(1)*16
  7293. }
  7294. func _get_lazyreply(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7295. var data uintptr
  7296. var v1 int32
  7297. _, _ = data, v1
  7298. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7299. if !((*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id != 0) {
  7300. _next_global_id++
  7301. v1 = _next_global_id
  7302. (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id = v1
  7303. }
  7304. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7305. data = _get_index(tls, c, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id)
  7306. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_NONE) {
  7307. /* cache miss: query the server */
  7308. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_COOKIE)
  7309. (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie = Xxcb_query_extension(tls, c, uint16(libc.Xstrlen(tls, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fname)), (*Txcb_extension_t)(unsafe.Pointer(ext)).Fname)
  7310. }
  7311. return data
  7312. }
  7313. var _global_lock = Tpthread_mutex_t{}
  7314. var _next_global_id int32
  7315. /* Public interface */
  7316. // C documentation
  7317. //
  7318. // /* Do not free the returned xcb_query_extension_reply_t - on return, it's aliased
  7319. // * from the cache. */
  7320. func Xxcb_get_extension_data(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7321. var data, v1 uintptr
  7322. _, _ = data, v1
  7323. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7324. return uintptr(0)
  7325. }
  7326. libc.Xpthread_mutex_lock(tls, c+21056)
  7327. data = _get_lazyreply(tls, c, ext)
  7328. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_COOKIE) {
  7329. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_FORCED)
  7330. *(*uintptr)(unsafe.Pointer(data + 8)) = Xxcb_query_extension_reply(tls, c, (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie, uintptr(0))
  7331. }
  7332. libc.Xpthread_mutex_unlock(tls, c+21056)
  7333. if data != 0 {
  7334. v1 = *(*uintptr)(unsafe.Pointer(data + 8))
  7335. } else {
  7336. v1 = uintptr(0)
  7337. }
  7338. return v1
  7339. }
  7340. func Xxcb_prefetch_extension_data(tls *libc.TLS, c uintptr, ext uintptr) {
  7341. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7342. return
  7343. }
  7344. libc.Xpthread_mutex_lock(tls, c+21056)
  7345. _get_lazyreply(tls, c, ext)
  7346. libc.Xpthread_mutex_unlock(tls, c+21056)
  7347. }
  7348. /* Private interface */
  7349. func X_xcb_ext_init(tls *libc.TLS, c uintptr) (r int32) {
  7350. if libc.Xpthread_mutex_init(tls, c+21056, uintptr(0)) != 0 {
  7351. return 0
  7352. }
  7353. return int32(1)
  7354. }
  7355. func X_xcb_ext_destroy(tls *libc.TLS, c uintptr) {
  7356. var v1 int32
  7357. var v2 uintptr
  7358. _, _ = v1, v2
  7359. libc.Xpthread_mutex_destroy(tls, c+21056)
  7360. for {
  7361. v2 = c + 21056 + 48
  7362. v1 = *(*int32)(unsafe.Pointer(v2))
  7363. *(*int32)(unsafe.Pointer(v2))--
  7364. if !(v1 > 0) {
  7365. break
  7366. }
  7367. if (*(*Tlazyreply1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*16))).Ftag == int32(_LAZY_FORCED) {
  7368. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size)*16 + 8)))
  7369. }
  7370. }
  7371. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions)
  7372. }
  7373. type Tlazyreply1 = struct {
  7374. Ftag _lazy_reply_tag
  7375. Fvalue struct {
  7376. Freply [0]uintptr
  7377. Fcookie Txcb_query_extension_cookie_t
  7378. F__ccgo_pad2 [4]byte
  7379. }
  7380. }
  7381. const m_XCB_XCMISC_MAJOR_VERSION = 1
  7382. const m_XCB_XCMISC_MINOR_VERSION = 1
  7383. const m_XCB_XC_MISC_GET_VERSION = 0
  7384. const m_XCB_XC_MISC_GET_XID_LIST = 2
  7385. const m_XCB_XC_MISC_GET_XID_RANGE = 1
  7386. type Txcb_xc_misc_get_version_cookie_t = struct {
  7387. Fsequence uint32
  7388. }
  7389. type Txcb_xc_misc_get_version_request_t = struct {
  7390. Fmajor_opcode Tuint8_t
  7391. Fminor_opcode Tuint8_t
  7392. Flength Tuint16_t
  7393. Fclient_major_version Tuint16_t
  7394. Fclient_minor_version Tuint16_t
  7395. }
  7396. type Txcb_xc_misc_get_version_reply_t = struct {
  7397. Fresponse_type Tuint8_t
  7398. Fpad0 Tuint8_t
  7399. Fsequence Tuint16_t
  7400. Flength Tuint32_t
  7401. Fserver_major_version Tuint16_t
  7402. Fserver_minor_version Tuint16_t
  7403. }
  7404. type Txcb_xc_misc_get_xid_range_cookie_t = struct {
  7405. Fsequence uint32
  7406. }
  7407. type Txcb_xc_misc_get_xid_range_request_t = struct {
  7408. Fmajor_opcode Tuint8_t
  7409. Fminor_opcode Tuint8_t
  7410. Flength Tuint16_t
  7411. }
  7412. type Txcb_xc_misc_get_xid_range_reply_t = struct {
  7413. Fresponse_type Tuint8_t
  7414. Fpad0 Tuint8_t
  7415. Fsequence Tuint16_t
  7416. Flength Tuint32_t
  7417. Fstart_id Tuint32_t
  7418. Fcount Tuint32_t
  7419. }
  7420. type Txcb_xc_misc_get_xid_list_cookie_t = struct {
  7421. Fsequence uint32
  7422. }
  7423. type Txcb_xc_misc_get_xid_list_request_t = struct {
  7424. Fmajor_opcode Tuint8_t
  7425. Fminor_opcode Tuint8_t
  7426. Flength Tuint16_t
  7427. Fcount Tuint32_t
  7428. }
  7429. type Txcb_xc_misc_get_xid_list_reply_t = struct {
  7430. Fresponse_type Tuint8_t
  7431. Fpad0 Tuint8_t
  7432. Fsequence Tuint16_t
  7433. Flength Tuint32_t
  7434. Fids_len Tuint32_t
  7435. Fpad1 [20]Tuint8_t
  7436. }
  7437. /**
  7438. * @}
  7439. */
  7440. /* Public interface */
  7441. func Xxcb_generate_id(tls *libc.TLS, c uintptr) (r Tuint32_t) {
  7442. var range1, xc_misc_reply uintptr
  7443. var ret Tuint32_t
  7444. _, _, _ = range1, ret, xc_misc_reply
  7445. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7446. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7447. }
  7448. libc.Xpthread_mutex_lock(tls, c+21112)
  7449. 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) {
  7450. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast == uint32(0) {
  7451. /* finish setting up initial range */
  7452. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
  7453. } else {
  7454. /* check for extension */
  7455. xc_misc_reply = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)))
  7456. if !(xc_misc_reply != 0) {
  7457. libc.Xpthread_mutex_unlock(tls, c+21112)
  7458. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7459. }
  7460. /* get new range */
  7461. range1 = Xxcb_xc_misc_get_xid_range_reply(tls, c, Xxcb_xc_misc_get_xid_range(tls, c), uintptr(0))
  7462. /* XXX The latter disjunct is what the server returns
  7463. when it is out of XIDs. Sweet. */
  7464. 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) {
  7465. libc.Xpthread_mutex_unlock(tls, c+21112)
  7466. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7467. }
  7468. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id
  7469. (*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
  7470. libc.Xfree(tls, range1)
  7471. }
  7472. } else {
  7473. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast += (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
  7474. }
  7475. ret = (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast | (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase
  7476. libc.Xpthread_mutex_unlock(tls, c+21112)
  7477. return ret
  7478. }
  7479. /* Private interface */
  7480. func X_xcb_xid_init(tls *libc.TLS, c uintptr) (r int32) {
  7481. if libc.Xpthread_mutex_init(tls, c+21112, uintptr(0)) != 0 {
  7482. return 0
  7483. }
  7484. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = uint32(0)
  7485. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = uint32(0)
  7486. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_base
  7487. (*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
  7488. return int32(1)
  7489. }
  7490. func X_xcb_xid_destroy(tls *libc.TLS, c uintptr) {
  7491. libc.Xpthread_mutex_destroy(tls, c+21112)
  7492. }
  7493. type T_xcb_map = struct {
  7494. Fhead uintptr
  7495. Ftail uintptr
  7496. }
  7497. type Tnode = struct {
  7498. Fnext uintptr
  7499. Fkey uint32
  7500. Fdata uintptr
  7501. }
  7502. type T_xcb_map1 = struct {
  7503. Fhead uintptr
  7504. Ftail uintptr
  7505. }
  7506. /* Private interface */
  7507. func X_xcb_map_new(tls *libc.TLS) (r uintptr) {
  7508. var list uintptr
  7509. _ = list
  7510. list = libc.Xmalloc(tls, uint64(16))
  7511. if !(list != 0) {
  7512. return uintptr(0)
  7513. }
  7514. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = uintptr(0)
  7515. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = list
  7516. return list
  7517. }
  7518. func X_xcb_map_delete(tls *libc.TLS, list uintptr, do_free Txcb_list_free_func_t) {
  7519. var cur uintptr
  7520. _ = cur
  7521. if !(list != 0) {
  7522. return
  7523. }
  7524. for (*T_xcb_map)(unsafe.Pointer(list)).Fhead != 0 {
  7525. cur = (*T_xcb_map)(unsafe.Pointer(list)).Fhead
  7526. if do_free != 0 {
  7527. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{do_free})))(tls, (*Tnode)(unsafe.Pointer(cur)).Fdata)
  7528. }
  7529. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = (*Tnode)(unsafe.Pointer(cur)).Fnext
  7530. libc.Xfree(tls, cur)
  7531. }
  7532. libc.Xfree(tls, list)
  7533. }
  7534. func X_xcb_map_put(tls *libc.TLS, list uintptr, key uint32, data uintptr) (r int32) {
  7535. var cur uintptr
  7536. _ = cur
  7537. cur = libc.Xmalloc(tls, uint64(24))
  7538. if !(cur != 0) {
  7539. return 0
  7540. }
  7541. (*Tnode)(unsafe.Pointer(cur)).Fkey = key
  7542. (*Tnode)(unsafe.Pointer(cur)).Fdata = data
  7543. (*Tnode)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  7544. *(*uintptr)(unsafe.Pointer((*T_xcb_map)(unsafe.Pointer(list)).Ftail)) = cur
  7545. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7546. return int32(1)
  7547. }
  7548. func X_xcb_map_remove(tls *libc.TLS, list uintptr, key uint32) (r uintptr) {
  7549. var cur, ret, tmp uintptr
  7550. _, _, _ = cur, ret, tmp
  7551. cur = list
  7552. for {
  7553. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7554. break
  7555. }
  7556. if (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fkey == key {
  7557. tmp = *(*uintptr)(unsafe.Pointer(cur))
  7558. ret = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fdata
  7559. *(*uintptr)(unsafe.Pointer(cur)) = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fnext
  7560. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7561. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7562. }
  7563. libc.Xfree(tls, tmp)
  7564. return ret
  7565. }
  7566. goto _1
  7567. _1:
  7568. ;
  7569. cur = *(*uintptr)(unsafe.Pointer(cur))
  7570. }
  7571. return uintptr(0)
  7572. }
  7573. const m_AI_ADDRCONFIG = 0x20
  7574. const m_AI_ALL = 0x10
  7575. const m_AI_CANONNAME = 0x02
  7576. const m_AI_NUMERICHOST = 4
  7577. const m_AI_NUMERICSERV = 1024
  7578. const m_AI_PASSIVE = 0x01
  7579. const m_AI_V4MAPPED = 0x08
  7580. const m_HOST_NOT_FOUND = 1
  7581. const m_MSG_CTRUNC2 = 0x0008
  7582. const m_MSG_TRUNC2 = 0x0020
  7583. const m_NI_DGRAM = 0x10
  7584. const m_NI_MAXHOST = 255
  7585. const m_NI_MAXSERV = 32
  7586. const m_NI_NAMEREQD = 0x08
  7587. const m_NI_NOFQDN = 0x04
  7588. const m_NI_NUMERICHOST = 0x01
  7589. const m_NI_NUMERICSCOPE = 0x100
  7590. const m_NI_NUMERICSERV = 0x02
  7591. const m_NO_ADDRESS = "NO_DATA"
  7592. const m_NO_DATA = 4
  7593. const m_NO_RECOVERY = 3
  7594. const m_O_NONBLOCK1 = 04000
  7595. const m_SCM_RIGHTS1 = 0x01
  7596. const m_SOCK_CLOEXEC1 = 524288
  7597. const m_SOL_TCP = 6
  7598. const m_TCPI_OPT_ECN = 8
  7599. const m_TCPI_OPT_SACK = 2
  7600. const m_TCPI_OPT_TIMESTAMPS = 1
  7601. const m_TCPI_OPT_WSCALE = 4
  7602. const m_TCPOLEN_MAXSEG = 4
  7603. const m_TCPOLEN_SACK_PERMITTED = 2
  7604. const m_TCPOLEN_TIMESTAMP = 10
  7605. const m_TCPOLEN_WINDOW = 3
  7606. const m_TCPOPT_EOL = 0
  7607. const m_TCPOPT_MAXSEG = 2
  7608. const m_TCPOPT_NOP = 1
  7609. const m_TCPOPT_SACK = 5
  7610. const m_TCPOPT_SACK_PERMITTED = 4
  7611. const m_TCPOPT_TIMESTAMP = 8
  7612. const m_TCPOPT_WINDOW = 3
  7613. const m_TCP_CA_CWR = 2
  7614. const m_TCP_CA_Disorder = 1
  7615. const m_TCP_CA_Loss = 4
  7616. const m_TCP_CA_Open = 0
  7617. const m_TCP_CA_Recovery = 3
  7618. const m_TCP_CC_INFO = 26
  7619. const m_TCP_CLOSE = 7
  7620. const m_TCP_CLOSE_WAIT = 8
  7621. const m_TCP_CLOSING = 11
  7622. const m_TCP_CM_INQ = "TCP_INQ"
  7623. const m_TCP_CONGESTION = 13
  7624. const m_TCP_CORK = 3
  7625. const m_TCP_DEFER_ACCEPT = 9
  7626. const m_TCP_ESTABLISHED = 1
  7627. const m_TCP_FASTOPEN = 23
  7628. const m_TCP_FASTOPEN_CONNECT = 30
  7629. const m_TCP_FASTOPEN_KEY = 33
  7630. const m_TCP_FASTOPEN_NO_COOKIE = 34
  7631. const m_TCP_FIN_WAIT1 = 4
  7632. const m_TCP_FIN_WAIT2 = 5
  7633. const m_TCP_INFO = 11
  7634. const m_TCP_INQ = 36
  7635. const m_TCP_KEEPCNT = 6
  7636. const m_TCP_KEEPIDLE = 4
  7637. const m_TCP_KEEPINTVL = 5
  7638. const m_TCP_LAST_ACK = 9
  7639. const m_TCP_LINGER2 = 8
  7640. const m_TCP_LISTEN = 10
  7641. const m_TCP_MAXSEG = 2
  7642. const m_TCP_MD5SIG = 14
  7643. const m_TCP_MD5SIG_EXT = 32
  7644. const m_TCP_MD5SIG_FLAG_IFINDEX = 0x2
  7645. const m_TCP_MD5SIG_FLAG_PREFIX = 0x1
  7646. const m_TCP_MD5SIG_MAXKEYLEN = 80
  7647. const m_TCP_NODELAY = 1
  7648. const m_TCP_NOTSENT_LOWAT = 25
  7649. const m_TCP_QUEUE_SEQ = 21
  7650. const m_TCP_QUICKACK = 12
  7651. const m_TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT = 0x1
  7652. const m_TCP_REPAIR = 19
  7653. const m_TCP_REPAIR_OFF = 0
  7654. const m_TCP_REPAIR_ON = 1
  7655. const m_TCP_REPAIR_OPTIONS = 22
  7656. const m_TCP_REPAIR_QUEUE = 20
  7657. const m_TCP_REPAIR_WINDOW = 29
  7658. const m_TCP_SAVED_SYN = 28
  7659. const m_TCP_SAVE_SYN = 27
  7660. const m_TCP_SYNCNT = 7
  7661. const m_TCP_SYN_RECV = 3
  7662. const m_TCP_SYN_SENT = 2
  7663. const m_TCP_THIN_DUPACK = 17
  7664. const m_TCP_THIN_LINEAR_TIMEOUTS = 16
  7665. const m_TCP_TIMESTAMP = 24
  7666. const m_TCP_TIME_WAIT = 6
  7667. const m_TCP_TX_DELAY = 37
  7668. const m_TCP_ULP = 31
  7669. const m_TCP_USER_TIMEOUT = 18
  7670. const m_TCP_WINDOW_CLAMP = 10
  7671. const m_TCP_ZEROCOPY_RECEIVE = 35
  7672. const m_TH_ACK = 0x10
  7673. const m_TH_FIN = 0x01
  7674. const m_TH_PUSH = 0x08
  7675. const m_TH_RST = 0x04
  7676. const m_TH_SYN = 0x02
  7677. const m_TH_URG = 0x20
  7678. const m_TRY_AGAIN = 2
  7679. type Tmax_align_t = struct {
  7680. F__ll int64
  7681. F__ld float64
  7682. }
  7683. type Tptrdiff_t = int64
  7684. type Tsockaddr_un = struct {
  7685. Fsun_family Tsa_family_t
  7686. Fsun_path [108]int8
  7687. }
  7688. const _TCP_NLA_PAD = 0
  7689. const _TCP_NLA_BUSY = 1
  7690. const _TCP_NLA_RWND_LIMITED = 2
  7691. const _TCP_NLA_SNDBUF_LIMITED = 3
  7692. const _TCP_NLA_DATA_SEGS_OUT = 4
  7693. const _TCP_NLA_TOTAL_RETRANS = 5
  7694. const _TCP_NLA_PACING_RATE = 6
  7695. const _TCP_NLA_DELIVERY_RATE = 7
  7696. const _TCP_NLA_SND_CWND = 8
  7697. const _TCP_NLA_REORDERING = 9
  7698. const _TCP_NLA_MIN_RTT = 10
  7699. const _TCP_NLA_RECUR_RETRANS = 11
  7700. const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12
  7701. const _TCP_NLA_SNDQ_SIZE = 13
  7702. const _TCP_NLA_CA_STATE = 14
  7703. const _TCP_NLA_SND_SSTHRESH = 15
  7704. const _TCP_NLA_DELIVERED = 16
  7705. const _TCP_NLA_DELIVERED_CE = 17
  7706. const _TCP_NLA_BYTES_SENT = 18
  7707. const _TCP_NLA_BYTES_RETRANS = 19
  7708. const _TCP_NLA_DSACK_DUPS = 20
  7709. const _TCP_NLA_REORD_SEEN = 21
  7710. const _TCP_NLA_SRTT = 22
  7711. const _TCP_NLA_TIMEOUT_REHASH = 23
  7712. const _TCP_NLA_BYTES_NOTSENT = 24
  7713. const _TCP_NLA_EDT = 25
  7714. const _TCP_NLA_TTL = 26
  7715. type Ttcp_seq = uint32
  7716. type Ttcphdr = struct {
  7717. F__ccgo0_0 struct {
  7718. F__ccgo1_0 [0]struct {
  7719. Fth_sport Tuint16_t
  7720. Fth_dport Tuint16_t
  7721. Fth_seq Tuint32_t
  7722. Fth_ack Tuint32_t
  7723. F__ccgo12 uint8
  7724. Fth_flags Tuint8_t
  7725. Fth_win Tuint16_t
  7726. Fth_sum Tuint16_t
  7727. Fth_urp Tuint16_t
  7728. }
  7729. F__ccgo0_0 struct {
  7730. Fsource Tuint16_t
  7731. Fdest Tuint16_t
  7732. Fseq Tuint32_t
  7733. Fack_seq Tuint32_t
  7734. F__ccgo12 uint16
  7735. Fwindow Tuint16_t
  7736. Fcheck Tuint16_t
  7737. Furg_ptr Tuint16_t
  7738. }
  7739. }
  7740. }
  7741. type _tcp_fastopen_client_fail = int32
  7742. const _TFO_STATUS_UNSPEC = 0
  7743. const _TFO_COOKIE_UNAVAILABLE = 1
  7744. const _TFO_DATA_NOT_ACKED = 2
  7745. const _TFO_SYN_RETRANSMITTED = 3
  7746. type Ttcp_info = struct {
  7747. Ftcpi_state Tuint8_t
  7748. Ftcpi_ca_state Tuint8_t
  7749. Ftcpi_retransmits Tuint8_t
  7750. Ftcpi_probes Tuint8_t
  7751. Ftcpi_backoff Tuint8_t
  7752. Ftcpi_options Tuint8_t
  7753. F__ccgo6 uint8
  7754. F__ccgo7 uint8
  7755. Ftcpi_rto Tuint32_t
  7756. Ftcpi_ato Tuint32_t
  7757. Ftcpi_snd_mss Tuint32_t
  7758. Ftcpi_rcv_mss Tuint32_t
  7759. Ftcpi_unacked Tuint32_t
  7760. Ftcpi_sacked Tuint32_t
  7761. Ftcpi_lost Tuint32_t
  7762. Ftcpi_retrans Tuint32_t
  7763. Ftcpi_fackets Tuint32_t
  7764. Ftcpi_last_data_sent Tuint32_t
  7765. Ftcpi_last_ack_sent Tuint32_t
  7766. Ftcpi_last_data_recv Tuint32_t
  7767. Ftcpi_last_ack_recv Tuint32_t
  7768. Ftcpi_pmtu Tuint32_t
  7769. Ftcpi_rcv_ssthresh Tuint32_t
  7770. Ftcpi_rtt Tuint32_t
  7771. Ftcpi_rttvar Tuint32_t
  7772. Ftcpi_snd_ssthresh Tuint32_t
  7773. Ftcpi_snd_cwnd Tuint32_t
  7774. Ftcpi_advmss Tuint32_t
  7775. Ftcpi_reordering Tuint32_t
  7776. Ftcpi_rcv_rtt Tuint32_t
  7777. Ftcpi_rcv_space Tuint32_t
  7778. Ftcpi_total_retrans Tuint32_t
  7779. Ftcpi_pacing_rate Tuint64_t
  7780. Ftcpi_max_pacing_rate Tuint64_t
  7781. Ftcpi_bytes_acked Tuint64_t
  7782. Ftcpi_bytes_received Tuint64_t
  7783. Ftcpi_segs_out Tuint32_t
  7784. Ftcpi_segs_in Tuint32_t
  7785. Ftcpi_notsent_bytes Tuint32_t
  7786. Ftcpi_min_rtt Tuint32_t
  7787. Ftcpi_data_segs_in Tuint32_t
  7788. Ftcpi_data_segs_out Tuint32_t
  7789. Ftcpi_delivery_rate Tuint64_t
  7790. Ftcpi_busy_time Tuint64_t
  7791. Ftcpi_rwnd_limited Tuint64_t
  7792. Ftcpi_sndbuf_limited Tuint64_t
  7793. Ftcpi_delivered Tuint32_t
  7794. Ftcpi_delivered_ce Tuint32_t
  7795. Ftcpi_bytes_sent Tuint64_t
  7796. Ftcpi_bytes_retrans Tuint64_t
  7797. Ftcpi_dsack_dups Tuint32_t
  7798. Ftcpi_reord_seen Tuint32_t
  7799. Ftcpi_rcv_ooopack Tuint32_t
  7800. Ftcpi_snd_wnd Tuint32_t
  7801. }
  7802. type Ttcp_md5sig = struct {
  7803. Ftcpm_addr Tsockaddr_storage
  7804. Ftcpm_flags Tuint8_t
  7805. Ftcpm_prefixlen Tuint8_t
  7806. Ftcpm_keylen Tuint16_t
  7807. Ftcpm_ifindex int32
  7808. Ftcpm_key [80]Tuint8_t
  7809. }
  7810. type Ttcp_diag_md5sig = struct {
  7811. Ftcpm_family Tuint8_t
  7812. Ftcpm_prefixlen Tuint8_t
  7813. Ftcpm_keylen Tuint16_t
  7814. Ftcpm_addr [4]Tuint32_t
  7815. Ftcpm_key [80]Tuint8_t
  7816. }
  7817. type Ttcp_repair_window = struct {
  7818. Fsnd_wl1 Tuint32_t
  7819. Fsnd_wnd Tuint32_t
  7820. Fmax_window Tuint32_t
  7821. Frcv_wnd Tuint32_t
  7822. Frcv_wup Tuint32_t
  7823. }
  7824. type Ttcp_zerocopy_receive = struct {
  7825. Faddress Tuint64_t
  7826. Flength Tuint32_t
  7827. Frecv_skip_hint Tuint32_t
  7828. Finq Tuint32_t
  7829. Ferr Tint32_t
  7830. Fcopybuf_address Tuint64_t
  7831. Fcopybuf_len Tint32_t
  7832. Fflags Tuint32_t
  7833. Fmsg_control Tuint64_t
  7834. Fmsg_controllen Tuint64_t
  7835. Fmsg_flags Tuint32_t
  7836. Freserved Tuint32_t
  7837. }
  7838. type Taddrinfo = struct {
  7839. Fai_flags int32
  7840. Fai_family int32
  7841. Fai_socktype int32
  7842. Fai_protocol int32
  7843. Fai_addrlen Tsocklen_t
  7844. Fai_addr uintptr
  7845. Fai_canonname uintptr
  7846. Fai_next uintptr
  7847. }
  7848. type Tnetent = struct {
  7849. Fn_name uintptr
  7850. Fn_aliases uintptr
  7851. Fn_addrtype int32
  7852. Fn_net Tuint32_t
  7853. }
  7854. type Thostent = struct {
  7855. Fh_name uintptr
  7856. Fh_aliases uintptr
  7857. Fh_addrtype int32
  7858. Fh_length int32
  7859. Fh_addr_list uintptr
  7860. }
  7861. type Tservent = struct {
  7862. Fs_name uintptr
  7863. Fs_aliases uintptr
  7864. Fs_port int32
  7865. Fs_proto uintptr
  7866. }
  7867. type Tprotoent = struct {
  7868. Fp_name uintptr
  7869. Fp_aliases uintptr
  7870. Fp_proto int32
  7871. }
  7872. func Xxcb_popcount(tls *libc.TLS, mask Tuint32_t) (r int32) {
  7873. var y Tuint32_t
  7874. _ = y
  7875. y = mask >> libc.Int32FromInt32(1) & uint32(033333333333)
  7876. y = mask - y - y>>libc.Int32FromInt32(1)&uint32(033333333333)
  7877. return libc.Int32FromUint32((y + y>>libc.Int32FromInt32(3)) & uint32(030707070707) % uint32(077))
  7878. }
  7879. func Xxcb_sumof(tls *libc.TLS, list uintptr, len1 int32) (r int32) {
  7880. var i, s int32
  7881. _, _ = i, s
  7882. s = 0
  7883. i = 0
  7884. for {
  7885. if !(i < len1) {
  7886. break
  7887. }
  7888. s += libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(list)))
  7889. list++
  7890. goto _1
  7891. _1:
  7892. ;
  7893. i++
  7894. }
  7895. return s
  7896. }
  7897. func __xcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7898. bp := tls.Alloc(16)
  7899. defer tls.Free(16)
  7900. var colon, slash uintptr
  7901. var display, len1, screen int32
  7902. var _ /* dot at bp+0 */ uintptr
  7903. var _ /* end at bp+8 */ uintptr
  7904. _, _, _, _, _ = colon, display, len1, screen, slash
  7905. if !(name != 0) || !(*(*int8)(unsafe.Pointer(name)) != 0) {
  7906. name = libc.Xgetenv(tls, __ccgo_ts+4)
  7907. }
  7908. if !(name != 0) {
  7909. return 0
  7910. }
  7911. slash = libc.Xstrrchr(tls, name, int32('/'))
  7912. if slash != 0 {
  7913. len1 = int32(int64(slash) - int64(name))
  7914. if protocol != 0 {
  7915. *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7916. if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
  7917. return 0
  7918. }
  7919. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(protocol)), name, libc.Uint64FromInt32(len1))
  7920. *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(protocol)) + uintptr(len1))) = int8('\000')
  7921. }
  7922. name = slash + uintptr(1)
  7923. } else {
  7924. if protocol != 0 {
  7925. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7926. }
  7927. }
  7928. colon = libc.Xstrrchr(tls, name, int32(':'))
  7929. if !(colon != 0) {
  7930. goto error_out
  7931. }
  7932. len1 = int32(int64(colon) - int64(name))
  7933. colon++
  7934. display = libc.Int32FromUint64(libc.Xstrtoul(tls, colon, bp, int32(10)))
  7935. if *(*uintptr)(unsafe.Pointer(bp)) == colon {
  7936. goto error_out
  7937. }
  7938. if int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('\000') {
  7939. screen = 0
  7940. } else {
  7941. if int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('.') {
  7942. goto error_out
  7943. }
  7944. *(*uintptr)(unsafe.Pointer(bp))++
  7945. screen = libc.Int32FromUint64(libc.Xstrtoul(tls, *(*uintptr)(unsafe.Pointer(bp)), bp+8, int32(10)))
  7946. if *(*uintptr)(unsafe.Pointer(bp + 8)) == *(*uintptr)(unsafe.Pointer(bp)) || int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))) != int32('\000') {
  7947. goto error_out
  7948. }
  7949. }
  7950. /* At this point, the display string is fully parsed and valid, but
  7951. * the caller's memory is untouched. */
  7952. *(*uintptr)(unsafe.Pointer(host)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7953. if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
  7954. goto error_out
  7955. }
  7956. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(host)), name, libc.Uint64FromInt32(len1))
  7957. *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(host)) + uintptr(len1))) = int8('\000')
  7958. *(*int32)(unsafe.Pointer(displayp)) = display
  7959. if screenp != 0 {
  7960. *(*int32)(unsafe.Pointer(screenp)) = screen
  7961. }
  7962. return int32(1)
  7963. goto error_out
  7964. error_out:
  7965. ;
  7966. if protocol != 0 {
  7967. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(protocol)))
  7968. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7969. }
  7970. return 0
  7971. }
  7972. func Xxcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7973. return __xcb_parse_display(tls, name, host, libc.UintptrFromInt32(0), displayp, screenp)
  7974. }
  7975. func __xcb_open(tls *libc.TLS, host uintptr, protocol uintptr, display int32) (r int32) {
  7976. bp := tls.Alloc(32)
  7977. defer tls.Free(32)
  7978. var actual_filelen, fd int32
  7979. var base, file uintptr
  7980. var filelen Tsize_t
  7981. var port, port1 uint16
  7982. var v1 uint64
  7983. _, _, _, _, _, _, _, _ = actual_filelen, base, fd, file, filelen, port, port1, v1
  7984. base = uintptr(unsafe.Pointer(&_unix_base))
  7985. file = libc.UintptrFromInt32(0)
  7986. /* If protocol or host is "unix", fall through to Unix socket code below */
  7987. if (!(protocol != 0) || libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0) && int32(*(*int8)(unsafe.Pointer(host))) != int32('\000') && libc.Xstrcmp(tls, __ccgo_ts+12, host) != 0 {
  7988. /* display specifies TCP */
  7989. port = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  7990. return __xcb_open_tcp(tls, host, protocol, port)
  7991. }
  7992. filelen = libc.Xstrlen(tls, base) + uint64(1) + libc.Uint64FromInt64(4)*libc.Uint64FromInt32(3) + uint64(1)
  7993. file = libc.Xmalloc(tls, filelen)
  7994. if file == libc.UintptrFromInt32(0) {
  7995. return -int32(1)
  7996. }
  7997. /* display specifies Unix socket */
  7998. actual_filelen = libc.X__builtin_snprintf(tls, file, filelen, __ccgo_ts+17, libc.VaList(bp+8, base, display))
  7999. if actual_filelen < 0 {
  8000. libc.Xfree(tls, file)
  8001. return -int32(1)
  8002. }
  8003. /* snprintf may truncate the file */
  8004. if libc.Uint64FromInt32(actual_filelen) < filelen-uint64(1) {
  8005. v1 = libc.Uint64FromInt32(actual_filelen)
  8006. } else {
  8007. v1 = filelen - uint64(1)
  8008. }
  8009. filelen = v1
  8010. fd = __xcb_open_abstract(tls, protocol, file, filelen)
  8011. 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) {
  8012. libc.Xfree(tls, file)
  8013. return fd
  8014. }
  8015. fd = __xcb_open_unix(tls, protocol, file)
  8016. libc.Xfree(tls, file)
  8017. if fd < 0 && !(protocol != 0) && int32(*(*int8)(unsafe.Pointer(host))) == int32('\000') {
  8018. port1 = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  8019. fd = __xcb_open_tcp(tls, host, protocol, port1)
  8020. }
  8021. return fd
  8022. return -int32(1) /* if control reaches here then something has gone wrong */
  8023. }
  8024. var _unix_base = [17]int8{'/', 't', 'm', 'p', '/', '.', 'X', '1', '1', '-', 'u', 'n', 'i', 'x', '/', 'X'}
  8025. func __xcb_socket(tls *libc.TLS, family int32, type1 int32, proto int32) (r int32) {
  8026. bp := tls.Alloc(16)
  8027. defer tls.Free(16)
  8028. var fd int32
  8029. _ = fd
  8030. fd = libc.Xsocket(tls, family, type1|int32(m_SOCK_CLOEXEC1), proto)
  8031. if fd == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINVAL) {
  8032. fd = libc.Xsocket(tls, family, type1, proto)
  8033. if fd >= 0 {
  8034. libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
  8035. }
  8036. }
  8037. return fd
  8038. }
  8039. func __xcb_do_connect(tls *libc.TLS, fd int32, addr uintptr, addrlen int32) (r int32) {
  8040. bp := tls.Alloc(16)
  8041. defer tls.Free(16)
  8042. var _ /* on at bp+0 */ int32
  8043. *(*int32)(unsafe.Pointer(bp)) = int32(1)
  8044. if fd < 0 {
  8045. return -int32(1)
  8046. }
  8047. libc.Xsetsockopt(tls, fd, int32(m_IPPROTO_TCP), int32(m_TCP_NODELAY), bp, uint32(4))
  8048. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_KEEPALIVE), bp, uint32(4))
  8049. return libc.Xconnect(tls, fd, addr, libc.Uint32FromInt32(addrlen))
  8050. }
  8051. func __xcb_open_tcp(tls *libc.TLS, host uintptr, protocol uintptr, port uint16) (r int32) {
  8052. bp := tls.Alloc(80)
  8053. defer tls.Free(80)
  8054. var addr, bracket, v1 uintptr
  8055. var fd int32
  8056. var v2 bool
  8057. var _ /* hints at bp+0 */ Taddrinfo
  8058. var _ /* results at bp+56 */ uintptr
  8059. var _ /* service at bp+48 */ [6]int8
  8060. _, _, _, _, _ = addr, bracket, fd, v1, v2
  8061. fd = -int32(1)
  8062. 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 {
  8063. return -int32(1)
  8064. }
  8065. if int32(*(*int8)(unsafe.Pointer(host))) == int32('\000') {
  8066. host = __ccgo_ts + 37
  8067. }
  8068. libc.Xmemset(tls, bp, 0, uint64(48))
  8069. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICSERV)
  8070. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = m_PF_UNSPEC
  8071. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_socktype = int32(m_SOCK_STREAM)
  8072. /* Allow IPv6 addresses enclosed in brackets. */
  8073. if v2 = int32(*(*int8)(unsafe.Pointer(host))) == int32('['); v2 {
  8074. v1 = libc.Xstrrchr(tls, host, int32(']'))
  8075. bracket = v1
  8076. }
  8077. if v2 && v1 != 0 && int32(*(*int8)(unsafe.Pointer(bracket + 1))) == int32('\000') {
  8078. *(*int8)(unsafe.Pointer(bracket)) = int8('\000')
  8079. host++
  8080. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICHOST)
  8081. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = int32(m_PF_INET6)
  8082. }
  8083. libc.X__builtin_snprintf(tls, bp+48, uint64(6), __ccgo_ts+47, libc.VaList(bp+72, libc.Int32FromUint16(port)))
  8084. if libc.Xgetaddrinfo(tls, host, bp+48, bp, bp+56) != 0 {
  8085. /* FIXME: use gai_strerror, and fill in error connection */
  8086. return -int32(1)
  8087. }
  8088. addr = *(*uintptr)(unsafe.Pointer(bp + 56))
  8089. for {
  8090. if !(addr != 0) {
  8091. break
  8092. }
  8093. fd = __xcb_socket(tls, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_family, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_socktype, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_protocol)
  8094. if __xcb_do_connect(tls, fd, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_addr, libc.Int32FromUint32((*Taddrinfo)(unsafe.Pointer(addr)).Fai_addrlen)) >= 0 {
  8095. break
  8096. }
  8097. libc.Xclose(tls, fd)
  8098. fd = -int32(1)
  8099. goto _3
  8100. _3:
  8101. ;
  8102. addr = (*Taddrinfo)(unsafe.Pointer(addr)).Fai_next
  8103. }
  8104. libc.Xfreeaddrinfo(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
  8105. return fd
  8106. }
  8107. func __xcb_open_unix(tls *libc.TLS, protocol uintptr, file uintptr) (r int32) {
  8108. bp := tls.Alloc(128)
  8109. defer tls.Free(128)
  8110. var fd int32
  8111. var _ /* addr at bp+0 */ Tsockaddr_un
  8112. var _ /* len at bp+112 */ Tsocklen_t
  8113. var _ /* val at bp+116 */ int32
  8114. _ = fd
  8115. *(*Tsocklen_t)(unsafe.Pointer(bp + 112)) = uint32(4)
  8116. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8117. return -int32(1)
  8118. }
  8119. libc.Xstrcpy(tls, bp+2, file)
  8120. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8121. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8122. if fd == -int32(1) {
  8123. return -int32(1)
  8124. }
  8125. 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) {
  8126. *(*int32)(unsafe.Pointer(bp + 116)) = libc.Int32FromInt32(64) * libc.Int32FromInt32(1024)
  8127. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, uint32(4))
  8128. }
  8129. if libc.Xconnect(tls, fd, bp, uint32(110)) == -int32(1) {
  8130. libc.Xclose(tls, fd)
  8131. return -int32(1)
  8132. }
  8133. return fd
  8134. }
  8135. func __xcb_open_abstract(tls *libc.TLS, protocol uintptr, file uintptr, filelen Tsize_t) (r int32) {
  8136. bp := tls.Alloc(112)
  8137. defer tls.Free(112)
  8138. var fd int32
  8139. var namelen Tsocklen_t
  8140. var _ /* addr at bp+0 */ Tsockaddr_un
  8141. _, _ = fd, namelen
  8142. *(*Tsockaddr_un)(unsafe.Pointer(bp)) = Tsockaddr_un{}
  8143. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8144. return -int32(1)
  8145. }
  8146. libc.Xstrcpy(tls, bp+2+uintptr(1), file)
  8147. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8148. namelen = uint32(uint64(libc.UintptrFromInt32(0)+2) + libc.Uint64FromInt32(1) + filelen)
  8149. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8150. if fd == -int32(1) {
  8151. return -int32(1)
  8152. }
  8153. if libc.Xconnect(tls, fd, bp, namelen) == -int32(1) {
  8154. libc.Xclose(tls, fd)
  8155. return -int32(1)
  8156. }
  8157. return fd
  8158. }
  8159. func Xxcb_connect(tls *libc.TLS, displayname uintptr, screenp uintptr) (r uintptr) {
  8160. return Xxcb_connect_to_display_with_auth_info(tls, displayname, libc.UintptrFromInt32(0), screenp)
  8161. }
  8162. func Xxcb_connect_to_display_with_auth_info(tls *libc.TLS, displayname uintptr, auth uintptr, screenp uintptr) (r uintptr) {
  8163. bp := tls.Alloc(64)
  8164. defer tls.Free(64)
  8165. var c uintptr
  8166. var fd, parsed int32
  8167. var _ /* display at bp+0 */ int32
  8168. var _ /* host at bp+8 */ uintptr
  8169. var _ /* ourauth at bp+24 */ Txcb_auth_info_t
  8170. var _ /* protocol at bp+16 */ uintptr
  8171. _, _, _ = c, fd, parsed
  8172. *(*int32)(unsafe.Pointer(bp)) = 0
  8173. *(*uintptr)(unsafe.Pointer(bp + 8)) = libc.UintptrFromInt32(0)
  8174. *(*uintptr)(unsafe.Pointer(bp + 16)) = libc.UintptrFromInt32(0)
  8175. parsed = __xcb_parse_display(tls, displayname, bp+8, bp+16, bp, screenp)
  8176. if !(parsed != 0) {
  8177. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_PARSE_ERR))
  8178. goto out
  8179. }
  8180. fd = __xcb_open(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), *(*uintptr)(unsafe.Pointer(bp + 16)), *(*int32)(unsafe.Pointer(bp)))
  8181. if fd == -int32(1) {
  8182. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  8183. goto out
  8184. }
  8185. if auth != 0 {
  8186. c = Xxcb_connect_to_fd(tls, fd, auth)
  8187. goto out
  8188. }
  8189. if X_xcb_get_auth_info(tls, fd, bp+24, *(*int32)(unsafe.Pointer(bp))) != 0 {
  8190. c = Xxcb_connect_to_fd(tls, fd, bp+24)
  8191. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fname)
  8192. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fdata)
  8193. } else {
  8194. c = Xxcb_connect_to_fd(tls, fd, uintptr(0))
  8195. }
  8196. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  8197. goto out
  8198. }
  8199. /* Make sure requested screen number is in bounds for this server */
  8200. 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) {
  8201. Xxcb_disconnect(tls, c)
  8202. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_INVALID_SCREEN))
  8203. goto out
  8204. }
  8205. goto out
  8206. out:
  8207. ;
  8208. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
  8209. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
  8210. return c
  8211. }
  8212. const m_AUTH_PROTO_MIT_MAGIC_COOKIE = "MIT-MAGIC-COOKIE-1"
  8213. const m_AUTH_PROTO_XDM_AUTHORIZATION = "XDM-AUTHORIZATION-1"
  8214. const m_CANBSIZ = 255
  8215. const m_DEV_BSIZE = 512
  8216. const m_FALSE = 0
  8217. const m_FUNCPROTO = 15
  8218. const m_FamilyKrb5Principal = 253
  8219. const m_FamilyLocal = 256
  8220. const m_FamilyLocalHost = 252
  8221. const m_FamilyNetname = 254
  8222. const m_FamilyWild = 65535
  8223. const m_INITIAL_SOCKNAME_SLACK = 108
  8224. const m_ITIMER_PROF = 2
  8225. const m_ITIMER_REAL = 0
  8226. const m_ITIMER_VIRTUAL = 1
  8227. const m_LOCK_ERROR = 1
  8228. const m_LOCK_SUCCESS = 0
  8229. const m_LOCK_TIMEOUT = 2
  8230. const m_MAXHOSTNAMELEN = 64
  8231. const m_MAXNAMLEN = 255
  8232. const m_MAXPATHLEN = 4096
  8233. const m_MAXSYMLINKS = 20
  8234. const m_NBBY = 8
  8235. const m_NCARGS = 131072
  8236. const m_NGROUPS = 32
  8237. const m_NOFILE = 256
  8238. const m_NeedFunctionPrototypes = 1
  8239. const m_NeedNestedPrototypes = 1
  8240. const m_NeedVarargsPrototypes = 1
  8241. const m_NeedWidePrototypes = 0
  8242. const m_PRIO_MAX = 20
  8243. const m_PRIO_PGRP = 1
  8244. const m_PRIO_PROCESS = 0
  8245. const m_PRIO_USER = 2
  8246. const m_RLIMIT_AS = 9
  8247. const m_RLIMIT_CORE = 4
  8248. const m_RLIMIT_CPU = 0
  8249. const m_RLIMIT_DATA = 2
  8250. const m_RLIMIT_FSIZE = 1
  8251. const m_RLIMIT_LOCKS = 10
  8252. const m_RLIMIT_MEMLOCK = 8
  8253. const m_RLIMIT_MSGQUEUE = 12
  8254. const m_RLIMIT_NICE = 13
  8255. const m_RLIMIT_NLIMITS = 16
  8256. const m_RLIMIT_NOFILE = 7
  8257. const m_RLIMIT_NPROC = 6
  8258. const m_RLIMIT_RSS = 5
  8259. const m_RLIMIT_RTPRIO = 14
  8260. const m_RLIMIT_RTTIME = 15
  8261. const m_RLIMIT_SIGPENDING = 11
  8262. const m_RLIMIT_STACK = 3
  8263. const m_RLIM_NLIMITS = "RLIMIT_NLIMITS"
  8264. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  8265. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  8266. const m_RUSAGE_SELF = 0
  8267. const m_RUSAGE_THREAD = 1
  8268. const m_SOCK_CLOEXEC2 = 02000000
  8269. const m_TRUE = 1
  8270. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  8271. const m_XDM_KA_RTX_LIMIT = 4
  8272. const m_XDM_MAX_MSGLEN = 8192
  8273. const m_XDM_MAX_RTX = 32
  8274. const m_XDM_MIN_RTX = 2
  8275. const m_XDM_PROTOCOL_VERSION = 1
  8276. const m_XDM_RTX_LIMIT = 7
  8277. const m_XDM_UDP_PORT = 177
  8278. const m_XMD_H = 1
  8279. const m__X_INLINE = "inline"
  8280. const m__X_RESTRICT_KYWD = "restrict"
  8281. const m__Xconst = "const"
  8282. const m_prlimit64 = "prlimit"
  8283. type TXauth = struct {
  8284. Ffamily uint16
  8285. Faddress_length uint16
  8286. Faddress uintptr
  8287. Fnumber_length uint16
  8288. Fnumber uintptr
  8289. Fname_length uint16
  8290. Fname uintptr
  8291. Fdata_length uint16
  8292. Fdata uintptr
  8293. }
  8294. type Txauth = TXauth
  8295. type Titimerval = struct {
  8296. Fit_interval Ttimeval
  8297. Fit_value Ttimeval
  8298. }
  8299. type Ttimezone = struct {
  8300. Ftz_minuteswest int32
  8301. Ftz_dsttime int32
  8302. }
  8303. type Trlim_t = uint64
  8304. type Trlimit = struct {
  8305. Frlim_cur Trlim_t
  8306. Frlim_max Trlim_t
  8307. }
  8308. type Trusage = struct {
  8309. Fru_utime Ttimeval
  8310. Fru_stime Ttimeval
  8311. Fru_maxrss int64
  8312. Fru_ixrss int64
  8313. Fru_idrss int64
  8314. Fru_isrss int64
  8315. Fru_minflt int64
  8316. Fru_majflt int64
  8317. Fru_nswap int64
  8318. Fru_inblock int64
  8319. Fru_oublock int64
  8320. Fru_msgsnd int64
  8321. Fru_msgrcv int64
  8322. Fru_nsignals int64
  8323. Fru_nvcsw int64
  8324. Fru_nivcsw int64
  8325. F__reserved [16]int64
  8326. }
  8327. type TINT64 = int64
  8328. type TINT32 = int32
  8329. type TINT16 = int16
  8330. type TINT8 = int8
  8331. type TCARD64 = uint64
  8332. type TCARD32 = uint32
  8333. type TCARD16 = uint16
  8334. type TCARD8 = uint8
  8335. type TBITS32 = uint32
  8336. type TBITS16 = uint16
  8337. type TBYTE = uint8
  8338. type TBOOL = uint8
  8339. type TxdmOpCode = int32
  8340. const _BROADCAST_QUERY = 1
  8341. const _QUERY = 2
  8342. const _INDIRECT_QUERY = 3
  8343. const _FORWARD_QUERY = 4
  8344. const _WILLING = 5
  8345. const _UNWILLING = 6
  8346. const _REQUEST = 7
  8347. const _ACCEPT = 8
  8348. const _DECLINE = 9
  8349. const _MANAGE = 10
  8350. const _REFUSE = 11
  8351. const _FAILED = 12
  8352. const _KEEPALIVE = 13
  8353. const _ALIVE = 14
  8354. type Txdmcp_states = int32
  8355. const _XDM_QUERY = 0
  8356. const _XDM_BROADCAST = 1
  8357. const _XDM_INDIRECT = 2
  8358. const _XDM_COLLECT_QUERY = 3
  8359. const _XDM_COLLECT_BROADCAST_QUERY = 4
  8360. const _XDM_COLLECT_INDIRECT_QUERY = 5
  8361. const _XDM_START_CONNECTION = 6
  8362. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  8363. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  8364. const _XDM_MANAGE = 9
  8365. const _XDM_RUN_SESSION = 10
  8366. const _XDM_OFF = 11
  8367. const _XDM_AWAIT_USER_INPUT = 12
  8368. const _XDM_KEEPALIVE = 13
  8369. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  8370. const _XDM_KEEP_ME_LAST = 15
  8371. type TCARD8Ptr = uintptr
  8372. type TCARD16Ptr = uintptr
  8373. type TCARD32Ptr = uintptr
  8374. type TARRAY8 = struct {
  8375. Flength TCARD16
  8376. Fdata TCARD8Ptr
  8377. }
  8378. type T_ARRAY8 = TARRAY8
  8379. type TARRAY8Ptr = uintptr
  8380. type TARRAY16 = struct {
  8381. Flength TCARD8
  8382. Fdata TCARD16Ptr
  8383. }
  8384. type T_ARRAY16 = TARRAY16
  8385. type TARRAY16Ptr = uintptr
  8386. type TARRAY32 = struct {
  8387. Flength TCARD8
  8388. Fdata TCARD32Ptr
  8389. }
  8390. type T_ARRAY32 = TARRAY32
  8391. type TARRAY32Ptr = uintptr
  8392. type TARRAYofARRAY8 = struct {
  8393. Flength TCARD8
  8394. Fdata TARRAY8Ptr
  8395. }
  8396. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  8397. type TARRAYofARRAY8Ptr = uintptr
  8398. type TXdmcpHeader = struct {
  8399. Fversion TCARD16
  8400. Fopcode TCARD16
  8401. Flength TCARD16
  8402. }
  8403. type T_XdmcpHeader = TXdmcpHeader
  8404. type TXdmcpHeaderPtr = uintptr
  8405. type TXdmcpBuffer = struct {
  8406. Fdata uintptr
  8407. Fsize int32
  8408. Fpointer int32
  8409. Fcount int32
  8410. }
  8411. type T_XdmcpBuffer = TXdmcpBuffer
  8412. type TXdmcpBufferPtr = uintptr
  8413. type TXdmAuthKeyRec = struct {
  8414. Fdata [8]TBYTE
  8415. }
  8416. type T_XdmAuthKey = TXdmAuthKeyRec
  8417. type TXdmAuthKeyPtr = uintptr
  8418. type TXdmcpNetaddr = uintptr
  8419. type _auth_protos = int32
  8420. const _AUTH_XA1 = 0
  8421. const _AUTH_MC1 = 1
  8422. const _N_AUTH_PROTOS = 2
  8423. var _authnames = [2]uintptr{
  8424. 0: __ccgo_ts + 51,
  8425. 1: __ccgo_ts + 71,
  8426. }
  8427. var _authnameslen = [2]int32{
  8428. 0: libc.Int32FromUint64(libc.Uint64FromInt64(20) - libc.Uint64FromInt32(1)),
  8429. 1: libc.Int32FromUint64(libc.Uint64FromInt64(19) - libc.Uint64FromInt32(1)),
  8430. }
  8431. func _memdup(tls *libc.TLS, dst uintptr, src uintptr, len1 Tsize_t) (r Tsize_t) {
  8432. if len1 != 0 {
  8433. *(*uintptr)(unsafe.Pointer(dst)) = libc.Xmalloc(tls, len1)
  8434. } else {
  8435. *(*uintptr)(unsafe.Pointer(dst)) = uintptr(0)
  8436. }
  8437. if !(*(*uintptr)(unsafe.Pointer(dst)) != 0) {
  8438. return uint64(0)
  8439. }
  8440. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(dst)), src, len1)
  8441. return len1
  8442. }
  8443. func _authname_match(tls *libc.TLS, kind _auth_protos, name uintptr, namelen Tsize_t) (r int32) {
  8444. if libc.Uint64FromInt32(_authnameslen[kind]) != namelen {
  8445. return 0
  8446. }
  8447. if libc.Xmemcmp(tls, _authnames[kind], name, namelen) != 0 {
  8448. return 0
  8449. }
  8450. return int32(1)
  8451. }
  8452. func _get_authptr(tls *libc.TLS, sockname uintptr, display int32) (r uintptr) {
  8453. bp := tls.Alloc(320)
  8454. defer tls.Free(320)
  8455. var addr uintptr
  8456. var addrlen, dispbuflen int32
  8457. var family uint16
  8458. var v1 uint64
  8459. var _ /* dispbuf at bp+256 */ [40]int8
  8460. var _ /* hostnamebuf at bp+0 */ [256]int8
  8461. _, _, _, _, _ = addr, addrlen, dispbuflen, family, v1
  8462. addr = uintptr(0)
  8463. addrlen = 0
  8464. family = libc.Uint16FromInt32(libc.Int32FromInt32(m_FamilyLocal)) /* 256 */
  8465. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8466. case int32(m_PF_INET6):
  8467. addr = sockname + 8
  8468. addrlen = int32(16)
  8469. 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)) {
  8470. 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)) {
  8471. family = uint16(_XCB_FAMILY_INTERNET_6)
  8472. }
  8473. break
  8474. }
  8475. addr += uintptr(12)
  8476. /* if v4-mapped, fall through. */
  8477. fallthrough
  8478. case int32(m_PF_INET):
  8479. if !(addr != 0) {
  8480. addr = sockname + 4
  8481. }
  8482. addrlen = int32(4)
  8483. if *(*Tin_addr_t)(unsafe.Pointer(addr)) != libc.Xhtonl(tls, libc.Uint32FromInt32(0x7f000001)) {
  8484. family = uint16(_XCB_FAMILY_INTERNET)
  8485. }
  8486. case int32(m_PF_LOCAL):
  8487. default:
  8488. return uintptr(0) /* cannot authenticate this family */
  8489. }
  8490. dispbuflen = libc.X__builtin_snprintf(tls, bp+256, uint64(40), __ccgo_ts+90, libc.VaList(bp+304, display))
  8491. if dispbuflen < 0 {
  8492. return uintptr(0)
  8493. }
  8494. /* snprintf may have truncate our text */
  8495. if libc.Uint64FromInt32(dispbuflen) < libc.Uint64FromInt64(40)-libc.Uint64FromInt32(1) {
  8496. v1 = libc.Uint64FromInt32(dispbuflen)
  8497. } else {
  8498. v1 = libc.Uint64FromInt64(40) - libc.Uint64FromInt32(1)
  8499. }
  8500. dispbuflen = libc.Int32FromUint64(v1)
  8501. if libc.Int32FromUint16(family) == int32(m_FamilyLocal) {
  8502. if libc.Xgethostname(tls, bp, uint64(256)) == -int32(1) {
  8503. return uintptr(0)
  8504. } /* do not know own hostname */
  8505. addr = bp
  8506. addrlen = libc.Int32FromUint64(libc.Xstrlen(tls, addr))
  8507. }
  8508. 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)))
  8509. }
  8510. func _next_nonce(tls *libc.TLS) (r int32) {
  8511. var ret, v1 int32
  8512. _, _ = ret, v1
  8513. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8514. v1 = _nonce
  8515. _nonce++
  8516. ret = v1
  8517. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8518. return ret
  8519. }
  8520. var _nonce int32
  8521. var _nonce_mutex = Tpthread_mutex_t{}
  8522. func _do_append(tls *libc.TLS, buf uintptr, idxp uintptr, val uintptr, valsize Tsize_t) {
  8523. var p1 uintptr
  8524. _ = p1
  8525. libc.Xmemcpy(tls, buf+uintptr(*(*int32)(unsafe.Pointer(idxp))), val, valsize)
  8526. p1 = idxp
  8527. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + valsize)
  8528. }
  8529. func _compute_auth(tls *libc.TLS, info uintptr, authptr uintptr, sockname uintptr) (r int32) {
  8530. bp := tls.Alloc(32)
  8531. defer tls.Free(32)
  8532. var si, si6 uintptr
  8533. var v2 int32
  8534. var _ /* fakeaddr at bp+12 */ Tuint32_t
  8535. var _ /* fakeaddr at bp+4 */ Tuint32_t
  8536. var _ /* fakeport at bp+16 */ Tuint16_t
  8537. var _ /* fakeport at bp+8 */ Tuint16_t
  8538. var _ /* j at bp+0 */ int32
  8539. var _ /* now at bp+20 */ Tuint32_t
  8540. _, _, _ = si, si6, v2
  8541. if _authname_match(tls, int32(_AUTH_MC1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8542. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = libc.Int32FromUint64(_memdup(tls, info+24, (*TXauth)(unsafe.Pointer(authptr)).Fdata, uint64((*TXauth)(unsafe.Pointer(authptr)).Fdata_length)))
  8543. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen != 0) {
  8544. return 0
  8545. }
  8546. return int32(1)
  8547. }
  8548. if _authname_match(tls, int32(_AUTH_XA1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8549. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(192)/libc.Int32FromInt32(8)))
  8550. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata != 0) {
  8551. return 0
  8552. }
  8553. *(*int32)(unsafe.Pointer(bp)) = 0
  8554. for {
  8555. if !(*(*int32)(unsafe.Pointer(bp)) < int32(8)) {
  8556. break
  8557. }
  8558. *(*int8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(*(*int32)(unsafe.Pointer(bp))))) = *(*int8)(unsafe.Pointer((*TXauth)(unsafe.Pointer(authptr)).Fdata + uintptr(*(*int32)(unsafe.Pointer(bp)))))
  8559. goto _1
  8560. _1:
  8561. ;
  8562. *(*int32)(unsafe.Pointer(bp))++
  8563. }
  8564. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8565. case int32(m_PF_INET):
  8566. /*block*/
  8567. si = sockname
  8568. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+4, uint64(4))
  8569. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+2, uint64(2))
  8570. case int32(m_PF_INET6):
  8571. /*block*/
  8572. si6 = sockname
  8573. 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) {
  8574. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+8+12, uint64(4))
  8575. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+2, uint64(2))
  8576. } else {
  8577. /* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
  8578. same thing Xlib does: use all zeroes for the 4-byte address
  8579. and 2-byte port number. */
  8580. *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uint32(0)
  8581. *(*Tuint16_t)(unsafe.Pointer(bp + 8)) = uint16(0)
  8582. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+4, uint64(4))
  8583. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+8, uint64(2))
  8584. }
  8585. case int32(m_PF_LOCAL):
  8586. /*block*/
  8587. *(*Tuint32_t)(unsafe.Pointer(bp + 12)) = libc.Xhtonl(tls, uint32(0xffffffff)-libc.Uint32FromInt32(_next_nonce(tls)))
  8588. *(*Tuint16_t)(unsafe.Pointer(bp + 16)) = libc.Xhtons(tls, libc.Uint16FromInt32(libc.Xgetpid(tls)))
  8589. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+12, uint64(4))
  8590. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+16, uint64(2))
  8591. default:
  8592. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata)
  8593. return 0 /* do not know how to build this */
  8594. }
  8595. *(*Tuint32_t)(unsafe.Pointer(bp + 20)) = libc.Xhtonl(tls, libc.Uint32FromInt64(libc.Xtime(tls, uintptr(0))))
  8596. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+20, uint64(4))
  8597. for *(*int32)(unsafe.Pointer(bp)) < libc.Int32FromInt32(192)/libc.Int32FromInt32(8) {
  8598. v2 = *(*int32)(unsafe.Pointer(bp))
  8599. *(*int32)(unsafe.Pointer(bp))++
  8600. *(*int8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(v2))) = 0
  8601. }
  8602. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = *(*int32)(unsafe.Pointer(bp))
  8603. 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)
  8604. return int32(1)
  8605. }
  8606. return 0 /* Unknown authorization type */
  8607. }
  8608. /* `sockaddr_un.sun_path' typical size usually ranges between 92 and 108 */
  8609. // C documentation
  8610. //
  8611. // /* Return a dynamically allocated socket address structure according
  8612. // to the value returned by either getpeername() or getsockname()
  8613. // (according to POSIX, applications should not assume a particular
  8614. // length for `sockaddr_un.sun_path') */
  8615. func _get_peer_sock_name(tls *libc.TLS, socket_func uintptr, fd int32) (r uintptr) {
  8616. bp := tls.Alloc(16)
  8617. defer tls.Free(16)
  8618. var new_sockname, sockname, v1 uintptr
  8619. var socknamelen Tsocklen_t
  8620. var _ /* actual_socknamelen at bp+0 */ Tsocklen_t
  8621. _, _, _, _ = new_sockname, sockname, socknamelen, v1
  8622. socknamelen = uint32(libc.Uint64FromInt64(16) + libc.Uint64FromInt32(m_INITIAL_SOCKNAME_SLACK))
  8623. *(*Tsocklen_t)(unsafe.Pointer(bp)) = socknamelen
  8624. sockname = libc.Xmalloc(tls, uint64(socknamelen))
  8625. if sockname == libc.UintptrFromInt32(0) {
  8626. return libc.UintptrFromInt32(0)
  8627. }
  8628. /* Both getpeername() and getsockname() truncates sockname if
  8629. there is not enough space and set the required length in
  8630. actual_socknamelen */
  8631. if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) {
  8632. goto sock_or_realloc_error
  8633. }
  8634. if *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
  8635. new_sockname = libc.UintptrFromInt32(0)
  8636. socknamelen = *(*Tsocklen_t)(unsafe.Pointer(bp))
  8637. v1 = libc.Xrealloc(tls, sockname, uint64(*(*Tsocklen_t)(unsafe.Pointer(bp))))
  8638. new_sockname = v1
  8639. if v1 == libc.UintptrFromInt32(0) {
  8640. goto sock_or_realloc_error
  8641. }
  8642. sockname = new_sockname
  8643. 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 {
  8644. goto sock_or_realloc_error
  8645. }
  8646. }
  8647. return sockname
  8648. goto sock_or_realloc_error
  8649. sock_or_realloc_error:
  8650. ;
  8651. libc.Xfree(tls, sockname)
  8652. return libc.UintptrFromInt32(0)
  8653. }
  8654. func X_xcb_get_auth_info(tls *libc.TLS, fd int32, info uintptr, display int32) (r int32) {
  8655. var authptr, sockname, v1, v2, v3 uintptr
  8656. var gotsockname, ret int32
  8657. _, _, _, _, _, _, _ = authptr, gotsockname, ret, sockname, v1, v2, v3
  8658. /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
  8659. xtrans/Xtransutils.c */
  8660. sockname = libc.UintptrFromInt32(0)
  8661. gotsockname = 0
  8662. authptr = uintptr(0)
  8663. ret = int32(1)
  8664. /* Some systems like hpux or Hurd do not expose peer names
  8665. * for UNIX Domain Sockets, but this is irrelevant,
  8666. * since compute_auth() ignores the peer name in this
  8667. * case anyway.*/
  8668. v1 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetpeername), fd)
  8669. sockname = v1
  8670. if v1 == libc.UintptrFromInt32(0) {
  8671. v2 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8672. sockname = v2
  8673. if v2 == libc.UintptrFromInt32(0) {
  8674. return 0
  8675. } /* can only authenticate sockets */
  8676. if libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) != int32(m_PF_LOCAL) {
  8677. libc.Xfree(tls, sockname)
  8678. return 0 /* except for AF_UNIX, sockets should have peernames */
  8679. }
  8680. gotsockname = int32(1)
  8681. }
  8682. authptr = _get_authptr(tls, sockname, display)
  8683. if authptr == uintptr(0) {
  8684. libc.Xfree(tls, sockname)
  8685. return 0 /* cannot find good auth data */
  8686. }
  8687. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = libc.Int32FromUint64(_memdup(tls, info+8, (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)))
  8688. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen != 0) {
  8689. goto no_auth
  8690. } /* out of memory */
  8691. if !(gotsockname != 0) {
  8692. libc.Xfree(tls, sockname)
  8693. v3 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8694. sockname = v3
  8695. if v3 == libc.UintptrFromInt32(0) {
  8696. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8697. goto no_auth /* can only authenticate sockets */
  8698. }
  8699. }
  8700. ret = _compute_auth(tls, info, authptr, sockname)
  8701. if !(ret != 0) {
  8702. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8703. goto no_auth /* cannot build auth record */
  8704. }
  8705. libc.Xfree(tls, sockname)
  8706. sockname = libc.UintptrFromInt32(0)
  8707. libxau.XXauDisposeAuth(tls, authptr)
  8708. return ret
  8709. goto no_auth
  8710. no_auth:
  8711. ;
  8712. libc.Xfree(tls, sockname)
  8713. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname = uintptr(0)
  8714. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = 0
  8715. libxau.XXauDisposeAuth(tls, authptr)
  8716. return 0
  8717. }
  8718. /*
  8719. * This file generated automatically from xproto.xml by c_client.py.
  8720. * Edit at your peril.
  8721. */
  8722. /**
  8723. * @defgroup XCB__API XCB API
  8724. * @brief XCB Protocol Implementation.
  8725. * @{
  8726. **/
  8727. /**
  8728. * @}
  8729. */
  8730. func Xxcb_char2b_next(tls *libc.TLS, i uintptr) {
  8731. var p1 uintptr
  8732. _ = p1
  8733. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Frem--
  8734. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Fdata += 2
  8735. p1 = i + 12
  8736. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(2))
  8737. }
  8738. func Xxcb_char2b_end(tls *libc.TLS, i Txcb_char2b_iterator_t) (r Txcb_generic_iterator_t) {
  8739. var ret Txcb_generic_iterator_t
  8740. _ = ret
  8741. ret.Fdata = i.Fdata + uintptr(i.Frem)*2
  8742. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8743. ret.Frem = 0
  8744. return ret
  8745. }
  8746. func Xxcb_window_next(tls *libc.TLS, i uintptr) {
  8747. var p1 uintptr
  8748. _ = p1
  8749. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Frem--
  8750. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8751. p1 = i + 12
  8752. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8753. }
  8754. func Xxcb_window_end(tls *libc.TLS, i Txcb_window_iterator_t) (r Txcb_generic_iterator_t) {
  8755. var ret Txcb_generic_iterator_t
  8756. _ = ret
  8757. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8758. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8759. ret.Frem = 0
  8760. return ret
  8761. }
  8762. func Xxcb_pixmap_next(tls *libc.TLS, i uintptr) {
  8763. var p1 uintptr
  8764. _ = p1
  8765. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Frem--
  8766. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8767. p1 = i + 12
  8768. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8769. }
  8770. func Xxcb_pixmap_end(tls *libc.TLS, i Txcb_pixmap_iterator_t) (r Txcb_generic_iterator_t) {
  8771. var ret Txcb_generic_iterator_t
  8772. _ = ret
  8773. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8774. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8775. ret.Frem = 0
  8776. return ret
  8777. }
  8778. func Xxcb_cursor_next(tls *libc.TLS, i uintptr) {
  8779. var p1 uintptr
  8780. _ = p1
  8781. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Frem--
  8782. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8783. p1 = i + 12
  8784. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8785. }
  8786. func Xxcb_cursor_end(tls *libc.TLS, i Txcb_cursor_iterator_t) (r Txcb_generic_iterator_t) {
  8787. var ret Txcb_generic_iterator_t
  8788. _ = ret
  8789. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8790. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8791. ret.Frem = 0
  8792. return ret
  8793. }
  8794. func Xxcb_font_next(tls *libc.TLS, i uintptr) {
  8795. var p1 uintptr
  8796. _ = p1
  8797. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Frem--
  8798. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8799. p1 = i + 12
  8800. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8801. }
  8802. func Xxcb_font_end(tls *libc.TLS, i Txcb_font_iterator_t) (r Txcb_generic_iterator_t) {
  8803. var ret Txcb_generic_iterator_t
  8804. _ = ret
  8805. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8806. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8807. ret.Frem = 0
  8808. return ret
  8809. }
  8810. func Xxcb_gcontext_next(tls *libc.TLS, i uintptr) {
  8811. var p1 uintptr
  8812. _ = p1
  8813. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Frem--
  8814. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8815. p1 = i + 12
  8816. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8817. }
  8818. func Xxcb_gcontext_end(tls *libc.TLS, i Txcb_gcontext_iterator_t) (r Txcb_generic_iterator_t) {
  8819. var ret Txcb_generic_iterator_t
  8820. _ = ret
  8821. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8822. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8823. ret.Frem = 0
  8824. return ret
  8825. }
  8826. func Xxcb_colormap_next(tls *libc.TLS, i uintptr) {
  8827. var p1 uintptr
  8828. _ = p1
  8829. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Frem--
  8830. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8831. p1 = i + 12
  8832. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8833. }
  8834. func Xxcb_colormap_end(tls *libc.TLS, i Txcb_colormap_iterator_t) (r Txcb_generic_iterator_t) {
  8835. var ret Txcb_generic_iterator_t
  8836. _ = ret
  8837. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8838. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8839. ret.Frem = 0
  8840. return ret
  8841. }
  8842. func Xxcb_atom_next(tls *libc.TLS, i uintptr) {
  8843. var p1 uintptr
  8844. _ = p1
  8845. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Frem--
  8846. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8847. p1 = i + 12
  8848. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8849. }
  8850. func Xxcb_atom_end(tls *libc.TLS, i Txcb_atom_iterator_t) (r Txcb_generic_iterator_t) {
  8851. var ret Txcb_generic_iterator_t
  8852. _ = ret
  8853. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8854. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8855. ret.Frem = 0
  8856. return ret
  8857. }
  8858. func Xxcb_drawable_next(tls *libc.TLS, i uintptr) {
  8859. var p1 uintptr
  8860. _ = p1
  8861. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Frem--
  8862. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8863. p1 = i + 12
  8864. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8865. }
  8866. func Xxcb_drawable_end(tls *libc.TLS, i Txcb_drawable_iterator_t) (r Txcb_generic_iterator_t) {
  8867. var ret Txcb_generic_iterator_t
  8868. _ = ret
  8869. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8870. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8871. ret.Frem = 0
  8872. return ret
  8873. }
  8874. func Xxcb_fontable_next(tls *libc.TLS, i uintptr) {
  8875. var p1 uintptr
  8876. _ = p1
  8877. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Frem--
  8878. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8879. p1 = i + 12
  8880. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8881. }
  8882. func Xxcb_fontable_end(tls *libc.TLS, i Txcb_fontable_iterator_t) (r Txcb_generic_iterator_t) {
  8883. var ret Txcb_generic_iterator_t
  8884. _ = ret
  8885. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8886. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8887. ret.Frem = 0
  8888. return ret
  8889. }
  8890. func Xxcb_bool32_next(tls *libc.TLS, i uintptr) {
  8891. var p1 uintptr
  8892. _ = p1
  8893. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Frem--
  8894. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8895. p1 = i + 12
  8896. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8897. }
  8898. func Xxcb_bool32_end(tls *libc.TLS, i Txcb_bool32_iterator_t) (r Txcb_generic_iterator_t) {
  8899. var ret Txcb_generic_iterator_t
  8900. _ = ret
  8901. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8902. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8903. ret.Frem = 0
  8904. return ret
  8905. }
  8906. func Xxcb_visualid_next(tls *libc.TLS, i uintptr) {
  8907. var p1 uintptr
  8908. _ = p1
  8909. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Frem--
  8910. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8911. p1 = i + 12
  8912. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8913. }
  8914. func Xxcb_visualid_end(tls *libc.TLS, i Txcb_visualid_iterator_t) (r Txcb_generic_iterator_t) {
  8915. var ret Txcb_generic_iterator_t
  8916. _ = ret
  8917. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8918. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8919. ret.Frem = 0
  8920. return ret
  8921. }
  8922. func Xxcb_timestamp_next(tls *libc.TLS, i uintptr) {
  8923. var p1 uintptr
  8924. _ = p1
  8925. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Frem--
  8926. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8927. p1 = i + 12
  8928. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8929. }
  8930. func Xxcb_timestamp_end(tls *libc.TLS, i Txcb_timestamp_iterator_t) (r Txcb_generic_iterator_t) {
  8931. var ret Txcb_generic_iterator_t
  8932. _ = ret
  8933. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8934. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8935. ret.Frem = 0
  8936. return ret
  8937. }
  8938. func Xxcb_keysym_next(tls *libc.TLS, i uintptr) {
  8939. var p1 uintptr
  8940. _ = p1
  8941. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Frem--
  8942. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8943. p1 = i + 12
  8944. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8945. }
  8946. func Xxcb_keysym_end(tls *libc.TLS, i Txcb_keysym_iterator_t) (r Txcb_generic_iterator_t) {
  8947. var ret Txcb_generic_iterator_t
  8948. _ = ret
  8949. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8950. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8951. ret.Frem = 0
  8952. return ret
  8953. }
  8954. func Xxcb_keycode_next(tls *libc.TLS, i uintptr) {
  8955. var p1 uintptr
  8956. _ = p1
  8957. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Frem--
  8958. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Fdata++
  8959. p1 = i + 12
  8960. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8961. }
  8962. func Xxcb_keycode_end(tls *libc.TLS, i Txcb_keycode_iterator_t) (r Txcb_generic_iterator_t) {
  8963. var ret Txcb_generic_iterator_t
  8964. _ = ret
  8965. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8966. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8967. ret.Frem = 0
  8968. return ret
  8969. }
  8970. func Xxcb_keycode32_next(tls *libc.TLS, i uintptr) {
  8971. var p1 uintptr
  8972. _ = p1
  8973. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Frem--
  8974. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8975. p1 = i + 12
  8976. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8977. }
  8978. func Xxcb_keycode32_end(tls *libc.TLS, i Txcb_keycode32_iterator_t) (r Txcb_generic_iterator_t) {
  8979. var ret Txcb_generic_iterator_t
  8980. _ = ret
  8981. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8982. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8983. ret.Frem = 0
  8984. return ret
  8985. }
  8986. func Xxcb_button_next(tls *libc.TLS, i uintptr) {
  8987. var p1 uintptr
  8988. _ = p1
  8989. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Frem--
  8990. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Fdata++
  8991. p1 = i + 12
  8992. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8993. }
  8994. func Xxcb_button_end(tls *libc.TLS, i Txcb_button_iterator_t) (r Txcb_generic_iterator_t) {
  8995. var ret Txcb_generic_iterator_t
  8996. _ = ret
  8997. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8998. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8999. ret.Frem = 0
  9000. return ret
  9001. }
  9002. func Xxcb_point_next(tls *libc.TLS, i uintptr) {
  9003. var p1 uintptr
  9004. _ = p1
  9005. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Frem--
  9006. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  9007. p1 = i + 12
  9008. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  9009. }
  9010. func Xxcb_point_end(tls *libc.TLS, i Txcb_point_iterator_t) (r Txcb_generic_iterator_t) {
  9011. var ret Txcb_generic_iterator_t
  9012. _ = ret
  9013. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9014. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9015. ret.Frem = 0
  9016. return ret
  9017. }
  9018. func Xxcb_rectangle_next(tls *libc.TLS, i uintptr) {
  9019. var p1 uintptr
  9020. _ = p1
  9021. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Frem--
  9022. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  9023. p1 = i + 12
  9024. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  9025. }
  9026. func Xxcb_rectangle_end(tls *libc.TLS, i Txcb_rectangle_iterator_t) (r Txcb_generic_iterator_t) {
  9027. var ret Txcb_generic_iterator_t
  9028. _ = ret
  9029. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9030. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9031. ret.Frem = 0
  9032. return ret
  9033. }
  9034. func Xxcb_arc_next(tls *libc.TLS, i uintptr) {
  9035. var p1 uintptr
  9036. _ = p1
  9037. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Frem--
  9038. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  9039. p1 = i + 12
  9040. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  9041. }
  9042. func Xxcb_arc_end(tls *libc.TLS, i Txcb_arc_iterator_t) (r Txcb_generic_iterator_t) {
  9043. var ret Txcb_generic_iterator_t
  9044. _ = ret
  9045. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  9046. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9047. ret.Frem = 0
  9048. return ret
  9049. }
  9050. func Xxcb_format_next(tls *libc.TLS, i uintptr) {
  9051. var p1 uintptr
  9052. _ = p1
  9053. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Frem--
  9054. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  9055. p1 = i + 12
  9056. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  9057. }
  9058. func Xxcb_format_end(tls *libc.TLS, i Txcb_format_iterator_t) (r Txcb_generic_iterator_t) {
  9059. var ret Txcb_generic_iterator_t
  9060. _ = ret
  9061. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9062. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9063. ret.Frem = 0
  9064. return ret
  9065. }
  9066. func Xxcb_visualtype_next(tls *libc.TLS, i uintptr) {
  9067. var p1 uintptr
  9068. _ = p1
  9069. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Frem--
  9070. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Fdata += 24
  9071. p1 = i + 12
  9072. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(24))
  9073. }
  9074. func Xxcb_visualtype_end(tls *libc.TLS, i Txcb_visualtype_iterator_t) (r Txcb_generic_iterator_t) {
  9075. var ret Txcb_generic_iterator_t
  9076. _ = ret
  9077. ret.Fdata = i.Fdata + uintptr(i.Frem)*24
  9078. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9079. ret.Frem = 0
  9080. return ret
  9081. }
  9082. func Xxcb_depth_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9083. var _aux, xcb_tmp uintptr
  9084. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9085. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9086. xcb_tmp = _buffer
  9087. _aux = _buffer
  9088. xcb_buffer_len = uint32(0)
  9089. xcb_block_len = uint32(0)
  9090. xcb_pad = uint32(0)
  9091. xcb_align_to = uint32(0)
  9092. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9093. xcb_tmp += uintptr(xcb_block_len)
  9094. xcb_buffer_len += xcb_block_len
  9095. xcb_block_len = uint32(0)
  9096. /* visuals */
  9097. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_depth_t)(unsafe.Pointer(_aux)).Fvisuals_len)*libc.Uint64FromInt64(24))
  9098. xcb_tmp += uintptr(xcb_block_len)
  9099. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9100. /* insert padding */
  9101. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9102. xcb_buffer_len += xcb_block_len + xcb_pad
  9103. if uint32(0) != xcb_pad {
  9104. xcb_tmp += uintptr(xcb_pad)
  9105. xcb_pad = uint32(0)
  9106. }
  9107. xcb_block_len = uint32(0)
  9108. return libc.Int32FromUint32(xcb_buffer_len)
  9109. }
  9110. func Xxcb_depth_visuals(tls *libc.TLS, R uintptr) (r uintptr) {
  9111. return R + libc.UintptrFromInt32(1)*8
  9112. }
  9113. func Xxcb_depth_visuals_length(tls *libc.TLS, R uintptr) (r int32) {
  9114. return libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9115. }
  9116. func Xxcb_depth_visuals_iterator(tls *libc.TLS, R uintptr) (r Txcb_visualtype_iterator_t) {
  9117. var i Txcb_visualtype_iterator_t
  9118. _ = i
  9119. i.Fdata = R + libc.UintptrFromInt32(1)*8
  9120. i.Frem = libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9121. i.Findex = int32(int64(i.Fdata) - int64(R))
  9122. return i
  9123. }
  9124. func Xxcb_depth_next(tls *libc.TLS, i uintptr) {
  9125. var R uintptr
  9126. var child Txcb_generic_iterator_t
  9127. _, _ = R, child
  9128. R = (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata
  9129. child.Fdata = R + uintptr(Xxcb_depth_sizeof(tls, R))
  9130. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata))
  9131. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Frem--
  9132. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9133. }
  9134. func Xxcb_depth_end(tls *libc.TLS, _i Txcb_depth_iterator_t) (r Txcb_generic_iterator_t) {
  9135. bp := tls.Alloc(16)
  9136. defer tls.Free(16)
  9137. *(*Txcb_depth_iterator_t)(unsafe.Pointer(bp)) = _i
  9138. var ret Txcb_generic_iterator_t
  9139. _ = ret
  9140. for (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9141. Xxcb_depth_next(tls, bp)
  9142. }
  9143. ret.Fdata = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Fdata
  9144. ret.Frem = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem
  9145. ret.Findex = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Findex
  9146. return ret
  9147. }
  9148. func Xxcb_screen_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9149. var _aux, xcb_tmp uintptr
  9150. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9151. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9152. xcb_tmp = _buffer
  9153. _aux = _buffer
  9154. xcb_buffer_len = uint32(0)
  9155. xcb_block_len = uint32(0)
  9156. xcb_pad = uint32(0)
  9157. xcb_align_to = uint32(0)
  9158. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9159. xcb_tmp += uintptr(xcb_block_len)
  9160. xcb_buffer_len += xcb_block_len
  9161. xcb_block_len = uint32(0)
  9162. /* allowed_depths */
  9163. i = uint32(0)
  9164. for {
  9165. if !(i < uint32((*Txcb_screen_t)(unsafe.Pointer(_aux)).Fallowed_depths_len)) {
  9166. break
  9167. }
  9168. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_depth_sizeof(tls, xcb_tmp))
  9169. xcb_block_len += xcb_tmp_len
  9170. xcb_tmp += uintptr(xcb_tmp_len)
  9171. goto _1
  9172. _1:
  9173. ;
  9174. i++
  9175. }
  9176. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  9177. /* insert padding */
  9178. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9179. xcb_buffer_len += xcb_block_len + xcb_pad
  9180. if uint32(0) != xcb_pad {
  9181. xcb_tmp += uintptr(xcb_pad)
  9182. xcb_pad = uint32(0)
  9183. }
  9184. xcb_block_len = uint32(0)
  9185. return libc.Int32FromUint32(xcb_buffer_len)
  9186. }
  9187. func Xxcb_screen_allowed_depths_length(tls *libc.TLS, R uintptr) (r int32) {
  9188. return libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9189. }
  9190. func Xxcb_screen_allowed_depths_iterator(tls *libc.TLS, R uintptr) (r Txcb_depth_iterator_t) {
  9191. var i Txcb_depth_iterator_t
  9192. _ = i
  9193. i.Fdata = R + libc.UintptrFromInt32(1)*40
  9194. i.Frem = libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9195. i.Findex = int32(int64(i.Fdata) - int64(R))
  9196. return i
  9197. }
  9198. func Xxcb_screen_next(tls *libc.TLS, i uintptr) {
  9199. var R uintptr
  9200. var child Txcb_generic_iterator_t
  9201. _, _ = R, child
  9202. R = (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata
  9203. child.Fdata = R + uintptr(Xxcb_screen_sizeof(tls, R))
  9204. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata))
  9205. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Frem--
  9206. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9207. }
  9208. func Xxcb_screen_end(tls *libc.TLS, _i Txcb_screen_iterator_t) (r Txcb_generic_iterator_t) {
  9209. bp := tls.Alloc(16)
  9210. defer tls.Free(16)
  9211. *(*Txcb_screen_iterator_t)(unsafe.Pointer(bp)) = _i
  9212. var ret Txcb_generic_iterator_t
  9213. _ = ret
  9214. for (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9215. Xxcb_screen_next(tls, bp)
  9216. }
  9217. ret.Fdata = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Fdata
  9218. ret.Frem = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem
  9219. ret.Findex = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Findex
  9220. return ret
  9221. }
  9222. func Xxcb_setup_request_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9223. var _aux, xcb_tmp uintptr
  9224. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9225. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9226. xcb_tmp = _buffer
  9227. _aux = _buffer
  9228. xcb_buffer_len = uint32(0)
  9229. xcb_block_len = uint32(0)
  9230. xcb_pad = uint32(0)
  9231. xcb_align_to = uint32(0)
  9232. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  9233. xcb_tmp += uintptr(xcb_block_len)
  9234. xcb_buffer_len += xcb_block_len
  9235. xcb_block_len = uint32(0)
  9236. /* authorization_protocol_name */
  9237. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_name_len)*libc.Uint64FromInt64(1))
  9238. xcb_tmp += uintptr(xcb_block_len)
  9239. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9240. xcb_align_to = uint32(4)
  9241. /* insert padding */
  9242. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9243. xcb_buffer_len += xcb_block_len + xcb_pad
  9244. if uint32(0) != xcb_pad {
  9245. xcb_tmp += uintptr(xcb_pad)
  9246. xcb_pad = uint32(0)
  9247. }
  9248. xcb_block_len = uint32(0)
  9249. /* insert padding */
  9250. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9251. xcb_buffer_len += xcb_block_len + xcb_pad
  9252. if uint32(0) != xcb_pad {
  9253. xcb_tmp += uintptr(xcb_pad)
  9254. xcb_pad = uint32(0)
  9255. }
  9256. xcb_block_len = uint32(0)
  9257. /* authorization_protocol_data */
  9258. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_data_len)*libc.Uint64FromInt64(1))
  9259. xcb_tmp += uintptr(xcb_block_len)
  9260. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9261. xcb_align_to = uint32(4)
  9262. /* insert padding */
  9263. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9264. xcb_buffer_len += xcb_block_len + xcb_pad
  9265. if uint32(0) != xcb_pad {
  9266. xcb_tmp += uintptr(xcb_pad)
  9267. xcb_pad = uint32(0)
  9268. }
  9269. xcb_block_len = uint32(0)
  9270. /* insert padding */
  9271. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9272. xcb_buffer_len += xcb_block_len + xcb_pad
  9273. if uint32(0) != xcb_pad {
  9274. xcb_tmp += uintptr(xcb_pad)
  9275. xcb_pad = uint32(0)
  9276. }
  9277. xcb_block_len = uint32(0)
  9278. return libc.Int32FromUint32(xcb_buffer_len)
  9279. }
  9280. func Xxcb_setup_request_authorization_protocol_name(tls *libc.TLS, R uintptr) (r uintptr) {
  9281. return R + libc.UintptrFromInt32(1)*12
  9282. }
  9283. func Xxcb_setup_request_authorization_protocol_name_length(tls *libc.TLS, R uintptr) (r int32) {
  9284. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9285. }
  9286. func Xxcb_setup_request_authorization_protocol_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9287. var i Txcb_generic_iterator_t
  9288. _ = i
  9289. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9290. i.Frem = 0
  9291. i.Findex = int32(int64(i.Fdata) - int64(R))
  9292. return i
  9293. }
  9294. func Xxcb_setup_request_authorization_protocol_data(tls *libc.TLS, R uintptr) (r uintptr) {
  9295. var prev Txcb_generic_iterator_t
  9296. _ = prev
  9297. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9298. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9299. }
  9300. func Xxcb_setup_request_authorization_protocol_data_length(tls *libc.TLS, R uintptr) (r int32) {
  9301. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
  9302. }
  9303. func Xxcb_setup_request_authorization_protocol_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9304. var i, prev Txcb_generic_iterator_t
  9305. _, _ = i, prev
  9306. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9307. 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)
  9308. i.Frem = 0
  9309. i.Findex = int32(int64(i.Fdata) - int64(R))
  9310. return i
  9311. }
  9312. func Xxcb_setup_request_next(tls *libc.TLS, i uintptr) {
  9313. var R uintptr
  9314. var child Txcb_generic_iterator_t
  9315. _, _ = R, child
  9316. R = (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata
  9317. child.Fdata = R + uintptr(Xxcb_setup_request_sizeof(tls, R))
  9318. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata))
  9319. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Frem--
  9320. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9321. }
  9322. func Xxcb_setup_request_end(tls *libc.TLS, _i Txcb_setup_request_iterator_t) (r Txcb_generic_iterator_t) {
  9323. bp := tls.Alloc(16)
  9324. defer tls.Free(16)
  9325. *(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp)) = _i
  9326. var ret Txcb_generic_iterator_t
  9327. _ = ret
  9328. for (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9329. Xxcb_setup_request_next(tls, bp)
  9330. }
  9331. ret.Fdata = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Fdata
  9332. ret.Frem = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem
  9333. ret.Findex = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Findex
  9334. return ret
  9335. }
  9336. func Xxcb_setup_failed_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9337. var _aux, xcb_tmp uintptr
  9338. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9339. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9340. xcb_tmp = _buffer
  9341. _aux = _buffer
  9342. xcb_buffer_len = uint32(0)
  9343. xcb_block_len = uint32(0)
  9344. xcb_pad = uint32(0)
  9345. xcb_align_to = uint32(0)
  9346. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9347. xcb_tmp += uintptr(xcb_block_len)
  9348. xcb_buffer_len += xcb_block_len
  9349. xcb_block_len = uint32(0)
  9350. /* reason */
  9351. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_failed_t)(unsafe.Pointer(_aux)).Freason_len)*libc.Uint64FromInt64(1))
  9352. xcb_tmp += uintptr(xcb_block_len)
  9353. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9354. /* insert padding */
  9355. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9356. xcb_buffer_len += xcb_block_len + xcb_pad
  9357. if uint32(0) != xcb_pad {
  9358. xcb_tmp += uintptr(xcb_pad)
  9359. xcb_pad = uint32(0)
  9360. }
  9361. xcb_block_len = uint32(0)
  9362. return libc.Int32FromUint32(xcb_buffer_len)
  9363. }
  9364. func Xxcb_setup_failed_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9365. return R + libc.UintptrFromInt32(1)*8
  9366. }
  9367. func Xxcb_setup_failed_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9368. return libc.Int32FromUint8((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9369. }
  9370. func Xxcb_setup_failed_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9371. var i Txcb_generic_iterator_t
  9372. _ = i
  9373. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9374. i.Frem = 0
  9375. i.Findex = int32(int64(i.Fdata) - int64(R))
  9376. return i
  9377. }
  9378. func Xxcb_setup_failed_next(tls *libc.TLS, i uintptr) {
  9379. var R uintptr
  9380. var child Txcb_generic_iterator_t
  9381. _, _ = R, child
  9382. R = (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata
  9383. child.Fdata = R + uintptr(Xxcb_setup_failed_sizeof(tls, R))
  9384. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata))
  9385. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Frem--
  9386. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9387. }
  9388. func Xxcb_setup_failed_end(tls *libc.TLS, _i Txcb_setup_failed_iterator_t) (r Txcb_generic_iterator_t) {
  9389. bp := tls.Alloc(16)
  9390. defer tls.Free(16)
  9391. *(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp)) = _i
  9392. var ret Txcb_generic_iterator_t
  9393. _ = ret
  9394. for (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9395. Xxcb_setup_failed_next(tls, bp)
  9396. }
  9397. ret.Fdata = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Fdata
  9398. ret.Frem = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem
  9399. ret.Findex = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Findex
  9400. return ret
  9401. }
  9402. func Xxcb_setup_authenticate_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9403. var _aux, xcb_tmp uintptr
  9404. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9405. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9406. xcb_tmp = _buffer
  9407. _aux = _buffer
  9408. xcb_buffer_len = uint32(0)
  9409. xcb_block_len = uint32(0)
  9410. xcb_pad = uint32(0)
  9411. xcb_align_to = uint32(0)
  9412. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9413. xcb_tmp += uintptr(xcb_block_len)
  9414. xcb_buffer_len += xcb_block_len
  9415. xcb_block_len = uint32(0)
  9416. /* reason */
  9417. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(_aux)).Flength)*libc.Int32FromInt32(4))*libc.Uint64FromInt64(1))
  9418. xcb_tmp += uintptr(xcb_block_len)
  9419. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9420. /* insert padding */
  9421. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9422. xcb_buffer_len += xcb_block_len + xcb_pad
  9423. if uint32(0) != xcb_pad {
  9424. xcb_tmp += uintptr(xcb_pad)
  9425. xcb_pad = uint32(0)
  9426. }
  9427. xcb_block_len = uint32(0)
  9428. return libc.Int32FromUint32(xcb_buffer_len)
  9429. }
  9430. func Xxcb_setup_authenticate_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9431. return R + libc.UintptrFromInt32(1)*8
  9432. }
  9433. func Xxcb_setup_authenticate_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9434. return libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength) * int32(4)
  9435. }
  9436. func Xxcb_setup_authenticate_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9437. var i Txcb_generic_iterator_t
  9438. _ = i
  9439. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))
  9440. i.Frem = 0
  9441. i.Findex = int32(int64(i.Fdata) - int64(R))
  9442. return i
  9443. }
  9444. func Xxcb_setup_authenticate_next(tls *libc.TLS, i uintptr) {
  9445. var R uintptr
  9446. var child Txcb_generic_iterator_t
  9447. _, _ = R, child
  9448. R = (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata
  9449. child.Fdata = R + uintptr(Xxcb_setup_authenticate_sizeof(tls, R))
  9450. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata))
  9451. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Frem--
  9452. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9453. }
  9454. func Xxcb_setup_authenticate_end(tls *libc.TLS, _i Txcb_setup_authenticate_iterator_t) (r Txcb_generic_iterator_t) {
  9455. bp := tls.Alloc(16)
  9456. defer tls.Free(16)
  9457. *(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp)) = _i
  9458. var ret Txcb_generic_iterator_t
  9459. _ = ret
  9460. for (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9461. Xxcb_setup_authenticate_next(tls, bp)
  9462. }
  9463. ret.Fdata = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Fdata
  9464. ret.Frem = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem
  9465. ret.Findex = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Findex
  9466. return ret
  9467. }
  9468. func Xxcb_setup_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9469. var _aux, xcb_tmp uintptr
  9470. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9471. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9472. xcb_tmp = _buffer
  9473. _aux = _buffer
  9474. xcb_buffer_len = uint32(0)
  9475. xcb_block_len = uint32(0)
  9476. xcb_pad = uint32(0)
  9477. xcb_align_to = uint32(0)
  9478. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9479. xcb_tmp += uintptr(xcb_block_len)
  9480. xcb_buffer_len += xcb_block_len
  9481. xcb_block_len = uint32(0)
  9482. /* vendor */
  9483. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fvendor_len)*libc.Uint64FromInt64(1))
  9484. xcb_tmp += uintptr(xcb_block_len)
  9485. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9486. xcb_align_to = uint32(4)
  9487. /* insert padding */
  9488. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9489. xcb_buffer_len += xcb_block_len + xcb_pad
  9490. if uint32(0) != xcb_pad {
  9491. xcb_tmp += uintptr(xcb_pad)
  9492. xcb_pad = uint32(0)
  9493. }
  9494. xcb_block_len = uint32(0)
  9495. /* insert padding */
  9496. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9497. xcb_buffer_len += xcb_block_len + xcb_pad
  9498. if uint32(0) != xcb_pad {
  9499. xcb_tmp += uintptr(xcb_pad)
  9500. xcb_pad = uint32(0)
  9501. }
  9502. xcb_block_len = uint32(0)
  9503. /* pixmap_formats */
  9504. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fpixmap_formats_len)*libc.Uint64FromInt64(8))
  9505. xcb_tmp += uintptr(xcb_block_len)
  9506. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9507. /* insert padding */
  9508. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9509. xcb_buffer_len += xcb_block_len + xcb_pad
  9510. if uint32(0) != xcb_pad {
  9511. xcb_tmp += uintptr(xcb_pad)
  9512. xcb_pad = uint32(0)
  9513. }
  9514. xcb_block_len = uint32(0)
  9515. /* roots */
  9516. i = uint32(0)
  9517. for {
  9518. if !(i < uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Froots_len)) {
  9519. break
  9520. }
  9521. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_screen_sizeof(tls, xcb_tmp))
  9522. xcb_block_len += xcb_tmp_len
  9523. xcb_tmp += uintptr(xcb_tmp_len)
  9524. goto _1
  9525. _1:
  9526. ;
  9527. i++
  9528. }
  9529. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9530. /* insert padding */
  9531. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9532. xcb_buffer_len += xcb_block_len + xcb_pad
  9533. if uint32(0) != xcb_pad {
  9534. xcb_tmp += uintptr(xcb_pad)
  9535. xcb_pad = uint32(0)
  9536. }
  9537. xcb_block_len = uint32(0)
  9538. return libc.Int32FromUint32(xcb_buffer_len)
  9539. }
  9540. func Xxcb_setup_vendor(tls *libc.TLS, R uintptr) (r uintptr) {
  9541. return R + libc.UintptrFromInt32(1)*40
  9542. }
  9543. func Xxcb_setup_vendor_length(tls *libc.TLS, R uintptr) (r int32) {
  9544. return libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9545. }
  9546. func Xxcb_setup_vendor_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9547. var i Txcb_generic_iterator_t
  9548. _ = i
  9549. i.Fdata = R + libc.UintptrFromInt32(1)*40 + uintptr((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9550. i.Frem = 0
  9551. i.Findex = int32(int64(i.Fdata) - int64(R))
  9552. return i
  9553. }
  9554. func Xxcb_setup_pixmap_formats(tls *libc.TLS, R uintptr) (r uintptr) {
  9555. var prev Txcb_generic_iterator_t
  9556. _ = prev
  9557. prev = Xxcb_setup_vendor_end(tls, R)
  9558. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9559. }
  9560. func Xxcb_setup_pixmap_formats_length(tls *libc.TLS, R uintptr) (r int32) {
  9561. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9562. }
  9563. func Xxcb_setup_pixmap_formats_iterator(tls *libc.TLS, R uintptr) (r Txcb_format_iterator_t) {
  9564. var i Txcb_format_iterator_t
  9565. var prev Txcb_generic_iterator_t
  9566. _, _ = i, prev
  9567. prev = Xxcb_setup_vendor_end(tls, R)
  9568. i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)))
  9569. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9570. i.Findex = int32(int64(i.Fdata) - int64(R))
  9571. return i
  9572. }
  9573. func Xxcb_setup_roots_length(tls *libc.TLS, R uintptr) (r int32) {
  9574. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9575. }
  9576. func Xxcb_setup_roots_iterator(tls *libc.TLS, R uintptr) (r Txcb_screen_iterator_t) {
  9577. var i Txcb_screen_iterator_t
  9578. var prev Txcb_generic_iterator_t
  9579. _, _ = i, prev
  9580. prev = Xxcb_format_end(tls, Xxcb_setup_pixmap_formats_iterator(tls, R))
  9581. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  9582. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9583. i.Findex = int32(int64(i.Fdata) - int64(R))
  9584. return i
  9585. }
  9586. func Xxcb_setup_next(tls *libc.TLS, i uintptr) {
  9587. var R uintptr
  9588. var child Txcb_generic_iterator_t
  9589. _, _ = R, child
  9590. R = (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata
  9591. child.Fdata = R + uintptr(Xxcb_setup_sizeof(tls, R))
  9592. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata))
  9593. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Frem--
  9594. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9595. }
  9596. func Xxcb_setup_end(tls *libc.TLS, _i Txcb_setup_iterator_t) (r Txcb_generic_iterator_t) {
  9597. bp := tls.Alloc(16)
  9598. defer tls.Free(16)
  9599. *(*Txcb_setup_iterator_t)(unsafe.Pointer(bp)) = _i
  9600. var ret Txcb_generic_iterator_t
  9601. _ = ret
  9602. for (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9603. Xxcb_setup_next(tls, bp)
  9604. }
  9605. ret.Fdata = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Fdata
  9606. ret.Frem = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem
  9607. ret.Findex = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Findex
  9608. return ret
  9609. }
  9610. func Xxcb_client_message_data_next(tls *libc.TLS, i uintptr) {
  9611. var p1 uintptr
  9612. _ = p1
  9613. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Frem--
  9614. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Fdata += 20
  9615. p1 = i + 12
  9616. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(20))
  9617. }
  9618. func Xxcb_client_message_data_end(tls *libc.TLS, i Txcb_client_message_data_iterator_t) (r Txcb_generic_iterator_t) {
  9619. var ret Txcb_generic_iterator_t
  9620. _ = ret
  9621. ret.Fdata = i.Fdata + uintptr(i.Frem)*20
  9622. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9623. ret.Frem = 0
  9624. return ret
  9625. }
  9626. func Xxcb_create_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9627. bp := tls.Alloc(16)
  9628. defer tls.Free(16)
  9629. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  9630. var xcb_out, xcb_tmp uintptr
  9631. var xcb_parts [16]Tiovec
  9632. var _ /* xcb_pad0 at bp+0 */ [3]int8
  9633. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  9634. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  9635. xcb_buffer_len = uint32(0)
  9636. xcb_align_to = uint32(0)
  9637. xcb_padding_offset = uint32(0)
  9638. xcb_pad = uint32(0)
  9639. *(*[3]int8)(unsafe.Pointer(bp)) = [3]int8{}
  9640. xcb_parts_idx = uint32(0)
  9641. xcb_block_len = uint32(0)
  9642. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9643. /* xcb_create_window_value_list_t.background_pixmap */
  9644. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  9645. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9646. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9647. xcb_parts_idx++
  9648. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9649. }
  9650. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9651. /* xcb_create_window_value_list_t.background_pixel */
  9652. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  9653. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9654. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9655. xcb_parts_idx++
  9656. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9657. }
  9658. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9659. /* xcb_create_window_value_list_t.border_pixmap */
  9660. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  9661. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9662. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9663. xcb_parts_idx++
  9664. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9665. }
  9666. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9667. /* xcb_create_window_value_list_t.border_pixel */
  9668. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  9669. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9670. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9671. xcb_parts_idx++
  9672. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9673. }
  9674. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9675. /* xcb_create_window_value_list_t.bit_gravity */
  9676. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  9677. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9678. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9679. xcb_parts_idx++
  9680. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9681. }
  9682. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9683. /* xcb_create_window_value_list_t.win_gravity */
  9684. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  9685. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9686. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9687. xcb_parts_idx++
  9688. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9689. }
  9690. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9691. /* xcb_create_window_value_list_t.backing_store */
  9692. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  9693. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9694. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9695. xcb_parts_idx++
  9696. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9697. }
  9698. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9699. /* xcb_create_window_value_list_t.backing_planes */
  9700. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  9701. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9702. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9703. xcb_parts_idx++
  9704. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9705. }
  9706. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9707. /* xcb_create_window_value_list_t.backing_pixel */
  9708. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  9709. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9710. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9711. xcb_parts_idx++
  9712. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9713. }
  9714. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9715. /* xcb_create_window_value_list_t.override_redirect */
  9716. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  9717. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9718. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9719. xcb_parts_idx++
  9720. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9721. }
  9722. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9723. /* xcb_create_window_value_list_t.save_under */
  9724. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  9725. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9726. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9727. xcb_parts_idx++
  9728. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9729. }
  9730. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9731. /* xcb_create_window_value_list_t.event_mask */
  9732. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  9733. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9734. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9735. xcb_parts_idx++
  9736. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9737. }
  9738. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9739. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9740. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  9741. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9742. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9743. xcb_parts_idx++
  9744. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9745. }
  9746. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9747. /* xcb_create_window_value_list_t.colormap */
  9748. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  9749. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9750. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9751. xcb_parts_idx++
  9752. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9753. }
  9754. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9755. /* xcb_create_window_value_list_t.cursor */
  9756. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  9757. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9758. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9759. xcb_parts_idx++
  9760. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9761. }
  9762. /* insert padding */
  9763. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9764. xcb_buffer_len += xcb_block_len + xcb_pad
  9765. if uint32(0) != xcb_pad {
  9766. xcb_parts[xcb_parts_idx].Fiov_base = bp
  9767. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  9768. xcb_parts_idx++
  9769. xcb_pad = uint32(0)
  9770. }
  9771. xcb_block_len = uint32(0)
  9772. xcb_padding_offset = uint32(0)
  9773. if libc.UintptrFromInt32(0) == xcb_out {
  9774. /* allocate memory */
  9775. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  9776. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  9777. }
  9778. xcb_tmp = xcb_out
  9779. i = uint32(0)
  9780. for {
  9781. if !(i < xcb_parts_idx) {
  9782. break
  9783. }
  9784. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  9785. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  9786. }
  9787. if uint64(0) != xcb_parts[i].Fiov_len {
  9788. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  9789. }
  9790. goto _1
  9791. _1:
  9792. ;
  9793. i++
  9794. }
  9795. return libc.Int32FromUint32(xcb_buffer_len)
  9796. }
  9797. func Xxcb_create_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9798. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  9799. var xcb_tmp uintptr
  9800. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  9801. xcb_tmp = _buffer
  9802. xcb_buffer_len = uint32(0)
  9803. xcb_block_len = uint32(0)
  9804. xcb_pad = uint32(0)
  9805. xcb_align_to = uint32(0)
  9806. xcb_padding_offset = uint32(0)
  9807. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9808. /* xcb_create_window_value_list_t.background_pixmap */
  9809. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9810. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9811. xcb_tmp += uintptr(4)
  9812. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9813. }
  9814. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9815. /* xcb_create_window_value_list_t.background_pixel */
  9816. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9817. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9818. xcb_tmp += uintptr(4)
  9819. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9820. }
  9821. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9822. /* xcb_create_window_value_list_t.border_pixmap */
  9823. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9824. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9825. xcb_tmp += uintptr(4)
  9826. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9827. }
  9828. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9829. /* xcb_create_window_value_list_t.border_pixel */
  9830. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9831. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9832. xcb_tmp += uintptr(4)
  9833. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9834. }
  9835. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9836. /* xcb_create_window_value_list_t.bit_gravity */
  9837. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9838. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9839. xcb_tmp += uintptr(4)
  9840. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9841. }
  9842. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9843. /* xcb_create_window_value_list_t.win_gravity */
  9844. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9845. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9846. xcb_tmp += uintptr(4)
  9847. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9848. }
  9849. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9850. /* xcb_create_window_value_list_t.backing_store */
  9851. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9852. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9853. xcb_tmp += uintptr(4)
  9854. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9855. }
  9856. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9857. /* xcb_create_window_value_list_t.backing_planes */
  9858. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9859. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9860. xcb_tmp += uintptr(4)
  9861. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9862. }
  9863. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9864. /* xcb_create_window_value_list_t.backing_pixel */
  9865. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9866. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9867. xcb_tmp += uintptr(4)
  9868. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9869. }
  9870. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9871. /* xcb_create_window_value_list_t.override_redirect */
  9872. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9873. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9874. xcb_tmp += uintptr(4)
  9875. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9876. }
  9877. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9878. /* xcb_create_window_value_list_t.save_under */
  9879. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9880. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9881. xcb_tmp += uintptr(4)
  9882. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9883. }
  9884. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9885. /* xcb_create_window_value_list_t.event_mask */
  9886. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9887. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9888. xcb_tmp += uintptr(4)
  9889. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9890. }
  9891. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9892. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9893. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9894. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9895. xcb_tmp += uintptr(4)
  9896. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9897. }
  9898. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9899. /* xcb_create_window_value_list_t.colormap */
  9900. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  9901. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9902. xcb_tmp += uintptr(4)
  9903. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9904. }
  9905. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9906. /* xcb_create_window_value_list_t.cursor */
  9907. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  9908. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9909. xcb_tmp += uintptr(4)
  9910. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9911. }
  9912. /* insert padding */
  9913. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9914. xcb_buffer_len += xcb_block_len + xcb_pad
  9915. if uint32(0) != xcb_pad {
  9916. xcb_tmp += uintptr(xcb_pad)
  9917. xcb_pad = uint32(0)
  9918. }
  9919. xcb_block_len = uint32(0)
  9920. xcb_padding_offset = uint32(0)
  9921. return libc.Int32FromUint32(xcb_buffer_len)
  9922. }
  9923. func Xxcb_create_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  9924. bp := tls.Alloc(64)
  9925. defer tls.Free(64)
  9926. var _ /* _aux at bp+0 */ Txcb_create_window_value_list_t
  9927. return Xxcb_create_window_value_list_unpack(tls, _buffer, value_mask, bp)
  9928. }
  9929. func Xxcb_create_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9930. var _aux, xcb_tmp uintptr
  9931. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9932. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9933. xcb_tmp = _buffer
  9934. _aux = _buffer
  9935. xcb_buffer_len = uint32(0)
  9936. xcb_block_len = uint32(0)
  9937. xcb_pad = uint32(0)
  9938. xcb_align_to = uint32(0)
  9939. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  9940. xcb_tmp += uintptr(xcb_block_len)
  9941. xcb_buffer_len += xcb_block_len
  9942. xcb_block_len = uint32(0)
  9943. /* value_list */
  9944. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  9945. xcb_tmp += uintptr(xcb_block_len)
  9946. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9947. /* insert padding */
  9948. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9949. xcb_buffer_len += xcb_block_len + xcb_pad
  9950. if uint32(0) != xcb_pad {
  9951. xcb_tmp += uintptr(xcb_pad)
  9952. xcb_pad = uint32(0)
  9953. }
  9954. xcb_block_len = uint32(0)
  9955. return libc.Int32FromUint32(xcb_buffer_len)
  9956. }
  9957. 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) {
  9958. bp := tls.Alloc(112)
  9959. defer tls.Free(112)
  9960. var xcb_ret Txcb_void_cookie_t
  9961. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9962. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9963. _ = xcb_ret
  9964. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9965. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9966. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9967. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9968. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9969. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9970. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9971. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9972. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9973. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9974. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9975. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9976. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9977. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9978. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9979. /* xcb_create_window_value_list_t value_list */
  9980. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9981. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  9982. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req)))
  9983. return xcb_ret
  9984. }
  9985. var _xcb_req = Txcb_protocol_request_t{
  9986. Fcount: uint64(3),
  9987. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9988. Fisvoid: uint8(1),
  9989. }
  9990. 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) {
  9991. bp := tls.Alloc(112)
  9992. defer tls.Free(112)
  9993. var xcb_ret Txcb_void_cookie_t
  9994. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9995. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9996. _ = xcb_ret
  9997. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9998. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9999. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10000. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10001. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10002. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10003. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10004. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10005. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10006. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10007. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10008. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10009. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10010. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10011. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10012. /* xcb_create_window_value_list_t value_list */
  10013. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10014. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  10015. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req1)))
  10016. return xcb_ret
  10017. }
  10018. var _xcb_req1 = Txcb_protocol_request_t{
  10019. Fcount: uint64(3),
  10020. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10021. Fisvoid: uint8(1),
  10022. }
  10023. 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) {
  10024. bp := tls.Alloc(128)
  10025. defer tls.Free(128)
  10026. var xcb_ret Txcb_void_cookie_t
  10027. var _ /* xcb_aux0 at bp+112 */ uintptr
  10028. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10029. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10030. _ = xcb_ret
  10031. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  10032. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10033. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10034. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10035. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10036. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10037. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10038. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10039. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10040. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10041. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10042. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10043. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10044. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10045. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10046. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10047. /* xcb_create_window_value_list_t value_list */
  10048. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  10049. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  10050. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req2)))
  10051. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  10052. return xcb_ret
  10053. }
  10054. var _xcb_req2 = Txcb_protocol_request_t{
  10055. Fcount: uint64(3),
  10056. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10057. Fisvoid: uint8(1),
  10058. }
  10059. 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) {
  10060. bp := tls.Alloc(128)
  10061. defer tls.Free(128)
  10062. var xcb_ret Txcb_void_cookie_t
  10063. var _ /* xcb_aux0 at bp+112 */ uintptr
  10064. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10065. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10066. _ = xcb_ret
  10067. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  10068. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10069. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10070. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10071. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10072. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10073. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10074. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10075. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10076. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10077. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10078. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10079. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10080. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10081. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10082. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10083. /* xcb_create_window_value_list_t value_list */
  10084. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  10085. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  10086. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req3)))
  10087. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  10088. return xcb_ret
  10089. }
  10090. var _xcb_req3 = Txcb_protocol_request_t{
  10091. Fcount: uint64(3),
  10092. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10093. Fisvoid: uint8(1),
  10094. }
  10095. func Xxcb_create_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10096. return R + libc.UintptrFromInt32(1)*32
  10097. }
  10098. func Xxcb_change_window_attributes_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10099. bp := tls.Alloc(16)
  10100. defer tls.Free(16)
  10101. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10102. var xcb_out, xcb_tmp uintptr
  10103. var xcb_parts [16]Tiovec
  10104. var _ /* xcb_pad0 at bp+0 */ [3]int8
  10105. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10106. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10107. xcb_buffer_len = uint32(0)
  10108. xcb_align_to = uint32(0)
  10109. xcb_padding_offset = uint32(0)
  10110. xcb_pad = uint32(0)
  10111. *(*[3]int8)(unsafe.Pointer(bp)) = [3]int8{}
  10112. xcb_parts_idx = uint32(0)
  10113. xcb_block_len = uint32(0)
  10114. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10115. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10116. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10117. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10118. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10119. xcb_parts_idx++
  10120. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10121. }
  10122. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10123. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10124. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10125. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10126. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10127. xcb_parts_idx++
  10128. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10129. }
  10130. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10131. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10132. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10133. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10134. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10135. xcb_parts_idx++
  10136. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10137. }
  10138. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10139. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10140. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10141. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10142. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10143. xcb_parts_idx++
  10144. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10145. }
  10146. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10147. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10148. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10149. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10150. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10151. xcb_parts_idx++
  10152. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10153. }
  10154. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10155. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10156. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10157. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10158. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10159. xcb_parts_idx++
  10160. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10161. }
  10162. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10163. /* xcb_change_window_attributes_value_list_t.backing_store */
  10164. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10165. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10166. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10167. xcb_parts_idx++
  10168. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10169. }
  10170. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10171. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10172. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  10173. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10174. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10175. xcb_parts_idx++
  10176. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10177. }
  10178. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10179. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10180. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  10181. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10182. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10183. xcb_parts_idx++
  10184. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10185. }
  10186. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10187. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10188. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  10189. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10190. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10191. xcb_parts_idx++
  10192. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10193. }
  10194. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10195. /* xcb_change_window_attributes_value_list_t.save_under */
  10196. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  10197. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10198. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10199. xcb_parts_idx++
  10200. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10201. }
  10202. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10203. /* xcb_change_window_attributes_value_list_t.event_mask */
  10204. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  10205. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10206. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10207. xcb_parts_idx++
  10208. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10209. }
  10210. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10211. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10212. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  10213. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10214. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10215. xcb_parts_idx++
  10216. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10217. }
  10218. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10219. /* xcb_change_window_attributes_value_list_t.colormap */
  10220. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  10221. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10222. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10223. xcb_parts_idx++
  10224. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10225. }
  10226. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10227. /* xcb_change_window_attributes_value_list_t.cursor */
  10228. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  10229. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10230. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10231. xcb_parts_idx++
  10232. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10233. }
  10234. /* insert padding */
  10235. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10236. xcb_buffer_len += xcb_block_len + xcb_pad
  10237. if uint32(0) != xcb_pad {
  10238. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10239. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10240. xcb_parts_idx++
  10241. xcb_pad = uint32(0)
  10242. }
  10243. xcb_block_len = uint32(0)
  10244. xcb_padding_offset = uint32(0)
  10245. if libc.UintptrFromInt32(0) == xcb_out {
  10246. /* allocate memory */
  10247. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10248. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10249. }
  10250. xcb_tmp = xcb_out
  10251. i = uint32(0)
  10252. for {
  10253. if !(i < xcb_parts_idx) {
  10254. break
  10255. }
  10256. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10257. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10258. }
  10259. if uint64(0) != xcb_parts[i].Fiov_len {
  10260. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10261. }
  10262. goto _1
  10263. _1:
  10264. ;
  10265. i++
  10266. }
  10267. return libc.Int32FromUint32(xcb_buffer_len)
  10268. }
  10269. func Xxcb_change_window_attributes_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10270. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10271. var xcb_tmp uintptr
  10272. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10273. xcb_tmp = _buffer
  10274. xcb_buffer_len = uint32(0)
  10275. xcb_block_len = uint32(0)
  10276. xcb_pad = uint32(0)
  10277. xcb_align_to = uint32(0)
  10278. xcb_padding_offset = uint32(0)
  10279. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10280. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10281. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10282. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10283. xcb_tmp += uintptr(4)
  10284. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10285. }
  10286. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10287. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10288. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10289. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10290. xcb_tmp += uintptr(4)
  10291. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10292. }
  10293. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10294. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10295. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10296. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10297. xcb_tmp += uintptr(4)
  10298. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10299. }
  10300. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10301. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10302. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10303. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10304. xcb_tmp += uintptr(4)
  10305. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10306. }
  10307. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10308. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10309. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10310. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10311. xcb_tmp += uintptr(4)
  10312. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10313. }
  10314. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10315. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10316. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10317. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10318. xcb_tmp += uintptr(4)
  10319. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10320. }
  10321. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10322. /* xcb_change_window_attributes_value_list_t.backing_store */
  10323. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10324. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10325. xcb_tmp += uintptr(4)
  10326. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10327. }
  10328. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10329. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10330. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10331. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10332. xcb_tmp += uintptr(4)
  10333. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10334. }
  10335. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10336. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10337. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10338. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10339. xcb_tmp += uintptr(4)
  10340. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10341. }
  10342. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10343. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10344. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10345. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10346. xcb_tmp += uintptr(4)
  10347. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10348. }
  10349. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10350. /* xcb_change_window_attributes_value_list_t.save_under */
  10351. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10352. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10353. xcb_tmp += uintptr(4)
  10354. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10355. }
  10356. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10357. /* xcb_change_window_attributes_value_list_t.event_mask */
  10358. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10359. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10360. xcb_tmp += uintptr(4)
  10361. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10362. }
  10363. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10364. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10365. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10366. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10367. xcb_tmp += uintptr(4)
  10368. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10369. }
  10370. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10371. /* xcb_change_window_attributes_value_list_t.colormap */
  10372. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  10373. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10374. xcb_tmp += uintptr(4)
  10375. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10376. }
  10377. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10378. /* xcb_change_window_attributes_value_list_t.cursor */
  10379. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  10380. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10381. xcb_tmp += uintptr(4)
  10382. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10383. }
  10384. /* insert padding */
  10385. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10386. xcb_buffer_len += xcb_block_len + xcb_pad
  10387. if uint32(0) != xcb_pad {
  10388. xcb_tmp += uintptr(xcb_pad)
  10389. xcb_pad = uint32(0)
  10390. }
  10391. xcb_block_len = uint32(0)
  10392. xcb_padding_offset = uint32(0)
  10393. return libc.Int32FromUint32(xcb_buffer_len)
  10394. }
  10395. func Xxcb_change_window_attributes_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  10396. bp := tls.Alloc(64)
  10397. defer tls.Free(64)
  10398. var _ /* _aux at bp+0 */ Txcb_change_window_attributes_value_list_t
  10399. return Xxcb_change_window_attributes_value_list_unpack(tls, _buffer, value_mask, bp)
  10400. }
  10401. func Xxcb_change_window_attributes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10402. var _aux, xcb_tmp uintptr
  10403. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10404. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10405. xcb_tmp = _buffer
  10406. _aux = _buffer
  10407. xcb_buffer_len = uint32(0)
  10408. xcb_block_len = uint32(0)
  10409. xcb_pad = uint32(0)
  10410. xcb_align_to = uint32(0)
  10411. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  10412. xcb_tmp += uintptr(xcb_block_len)
  10413. xcb_buffer_len += xcb_block_len
  10414. xcb_block_len = uint32(0)
  10415. /* value_list */
  10416. 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))
  10417. xcb_tmp += uintptr(xcb_block_len)
  10418. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  10419. /* insert padding */
  10420. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10421. xcb_buffer_len += xcb_block_len + xcb_pad
  10422. if uint32(0) != xcb_pad {
  10423. xcb_tmp += uintptr(xcb_pad)
  10424. xcb_pad = uint32(0)
  10425. }
  10426. xcb_block_len = uint32(0)
  10427. return libc.Int32FromUint32(xcb_buffer_len)
  10428. }
  10429. 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) {
  10430. bp := tls.Alloc(96)
  10431. defer tls.Free(96)
  10432. var xcb_ret Txcb_void_cookie_t
  10433. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10434. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10435. _ = xcb_ret
  10436. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10437. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10438. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10439. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10440. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10441. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10442. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10443. /* xcb_change_window_attributes_value_list_t value_list */
  10444. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10445. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10446. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req4)))
  10447. return xcb_ret
  10448. }
  10449. var _xcb_req4 = Txcb_protocol_request_t{
  10450. Fcount: uint64(3),
  10451. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10452. Fisvoid: uint8(1),
  10453. }
  10454. 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) {
  10455. bp := tls.Alloc(96)
  10456. defer tls.Free(96)
  10457. var xcb_ret Txcb_void_cookie_t
  10458. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10459. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10460. _ = xcb_ret
  10461. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10462. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10463. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10464. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10465. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10466. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10467. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10468. /* xcb_change_window_attributes_value_list_t value_list */
  10469. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10470. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10471. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req5)))
  10472. return xcb_ret
  10473. }
  10474. var _xcb_req5 = Txcb_protocol_request_t{
  10475. Fcount: uint64(3),
  10476. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10477. Fisvoid: uint8(1),
  10478. }
  10479. 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) {
  10480. bp := tls.Alloc(112)
  10481. defer tls.Free(112)
  10482. var xcb_ret Txcb_void_cookie_t
  10483. var _ /* xcb_aux0 at bp+96 */ uintptr
  10484. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10485. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10486. _ = xcb_ret
  10487. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10488. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10489. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10490. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10491. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10492. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10493. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10494. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10495. /* xcb_change_window_attributes_value_list_t value_list */
  10496. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_serialize(tls, bp+96, value_mask, value_list))
  10497. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10498. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req6)))
  10499. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10500. return xcb_ret
  10501. }
  10502. var _xcb_req6 = Txcb_protocol_request_t{
  10503. Fcount: uint64(3),
  10504. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10505. Fisvoid: uint8(1),
  10506. }
  10507. 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) {
  10508. bp := tls.Alloc(112)
  10509. defer tls.Free(112)
  10510. var xcb_ret Txcb_void_cookie_t
  10511. var _ /* xcb_aux0 at bp+96 */ uintptr
  10512. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10513. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10514. _ = xcb_ret
  10515. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10516. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10517. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10518. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10519. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10520. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10521. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10522. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10523. /* xcb_change_window_attributes_value_list_t value_list */
  10524. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_serialize(tls, bp+96, value_mask, value_list))
  10525. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10526. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req7)))
  10527. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10528. return xcb_ret
  10529. }
  10530. var _xcb_req7 = Txcb_protocol_request_t{
  10531. Fcount: uint64(3),
  10532. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10533. Fisvoid: uint8(1),
  10534. }
  10535. func Xxcb_change_window_attributes_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10536. return R + libc.UintptrFromInt32(1)*12
  10537. }
  10538. func Xxcb_get_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10539. bp := tls.Alloc(80)
  10540. defer tls.Free(80)
  10541. var xcb_ret Txcb_get_window_attributes_cookie_t
  10542. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10543. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10544. _ = xcb_ret
  10545. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10546. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10547. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10548. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10549. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10550. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10551. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req8)))
  10552. return xcb_ret
  10553. }
  10554. var _xcb_req8 = Txcb_protocol_request_t{
  10555. Fcount: uint64(2),
  10556. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10557. }
  10558. func Xxcb_get_window_attributes_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10559. bp := tls.Alloc(80)
  10560. defer tls.Free(80)
  10561. var xcb_ret Txcb_get_window_attributes_cookie_t
  10562. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10563. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10564. _ = xcb_ret
  10565. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10566. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10567. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10568. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10569. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10570. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10571. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req9)))
  10572. return xcb_ret
  10573. }
  10574. var _xcb_req9 = Txcb_protocol_request_t{
  10575. Fcount: uint64(2),
  10576. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10577. }
  10578. func Xxcb_get_window_attributes_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_window_attributes_cookie_t, e uintptr) (r uintptr) {
  10579. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  10580. }
  10581. func Xxcb_destroy_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10582. bp := tls.Alloc(80)
  10583. defer tls.Free(80)
  10584. var xcb_ret Txcb_void_cookie_t
  10585. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10586. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10587. _ = xcb_ret
  10588. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10589. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10590. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10591. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10592. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10593. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10594. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req10)))
  10595. return xcb_ret
  10596. }
  10597. var _xcb_req10 = Txcb_protocol_request_t{
  10598. Fcount: uint64(2),
  10599. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10600. Fisvoid: uint8(1),
  10601. }
  10602. func Xxcb_destroy_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10603. bp := tls.Alloc(80)
  10604. defer tls.Free(80)
  10605. var xcb_ret Txcb_void_cookie_t
  10606. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10607. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10608. _ = xcb_ret
  10609. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10610. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10611. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10612. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10613. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10614. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10615. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req11)))
  10616. return xcb_ret
  10617. }
  10618. var _xcb_req11 = Txcb_protocol_request_t{
  10619. Fcount: uint64(2),
  10620. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10621. Fisvoid: uint8(1),
  10622. }
  10623. func Xxcb_destroy_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10624. bp := tls.Alloc(80)
  10625. defer tls.Free(80)
  10626. var xcb_ret Txcb_void_cookie_t
  10627. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10628. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10629. _ = xcb_ret
  10630. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10631. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10632. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10633. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10634. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10635. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10636. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req12)))
  10637. return xcb_ret
  10638. }
  10639. var _xcb_req12 = Txcb_protocol_request_t{
  10640. Fcount: uint64(2),
  10641. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10642. Fisvoid: uint8(1),
  10643. }
  10644. func Xxcb_destroy_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10645. bp := tls.Alloc(80)
  10646. defer tls.Free(80)
  10647. var xcb_ret Txcb_void_cookie_t
  10648. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10649. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10650. _ = xcb_ret
  10651. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10652. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10653. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10654. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10655. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10656. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10657. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req13)))
  10658. return xcb_ret
  10659. }
  10660. var _xcb_req13 = Txcb_protocol_request_t{
  10661. Fcount: uint64(2),
  10662. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10663. Fisvoid: uint8(1),
  10664. }
  10665. func Xxcb_change_save_set_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10666. bp := tls.Alloc(80)
  10667. defer tls.Free(80)
  10668. var xcb_ret Txcb_void_cookie_t
  10669. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10670. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10671. _ = xcb_ret
  10672. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10673. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10674. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10675. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10676. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10677. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10678. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req14)))
  10679. return xcb_ret
  10680. }
  10681. var _xcb_req14 = Txcb_protocol_request_t{
  10682. Fcount: uint64(2),
  10683. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10684. Fisvoid: uint8(1),
  10685. }
  10686. func Xxcb_change_save_set(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10687. bp := tls.Alloc(80)
  10688. defer tls.Free(80)
  10689. var xcb_ret Txcb_void_cookie_t
  10690. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10691. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10692. _ = xcb_ret
  10693. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10694. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10695. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10696. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10697. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10698. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10699. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req15)))
  10700. return xcb_ret
  10701. }
  10702. var _xcb_req15 = Txcb_protocol_request_t{
  10703. Fcount: uint64(2),
  10704. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10705. Fisvoid: uint8(1),
  10706. }
  10707. 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) {
  10708. bp := tls.Alloc(80)
  10709. defer tls.Free(80)
  10710. var xcb_ret Txcb_void_cookie_t
  10711. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10712. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10713. _ = xcb_ret
  10714. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10715. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10716. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10717. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10718. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10719. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10720. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10721. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10722. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10723. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req16)))
  10724. return xcb_ret
  10725. }
  10726. var _xcb_req16 = Txcb_protocol_request_t{
  10727. Fcount: uint64(2),
  10728. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10729. Fisvoid: uint8(1),
  10730. }
  10731. 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) {
  10732. bp := tls.Alloc(80)
  10733. defer tls.Free(80)
  10734. var xcb_ret Txcb_void_cookie_t
  10735. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10736. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10737. _ = xcb_ret
  10738. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10739. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10740. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10741. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10742. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10743. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10744. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10745. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10746. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10747. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req17)))
  10748. return xcb_ret
  10749. }
  10750. var _xcb_req17 = Txcb_protocol_request_t{
  10751. Fcount: uint64(2),
  10752. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10753. Fisvoid: uint8(1),
  10754. }
  10755. func Xxcb_map_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10756. bp := tls.Alloc(80)
  10757. defer tls.Free(80)
  10758. var xcb_ret Txcb_void_cookie_t
  10759. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10760. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10761. _ = xcb_ret
  10762. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10763. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10764. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10765. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10766. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10767. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10768. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req18)))
  10769. return xcb_ret
  10770. }
  10771. var _xcb_req18 = Txcb_protocol_request_t{
  10772. Fcount: uint64(2),
  10773. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10774. Fisvoid: uint8(1),
  10775. }
  10776. func Xxcb_map_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10777. bp := tls.Alloc(80)
  10778. defer tls.Free(80)
  10779. var xcb_ret Txcb_void_cookie_t
  10780. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10781. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10782. _ = xcb_ret
  10783. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10784. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10785. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10786. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10787. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10788. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10789. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req19)))
  10790. return xcb_ret
  10791. }
  10792. var _xcb_req19 = Txcb_protocol_request_t{
  10793. Fcount: uint64(2),
  10794. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10795. Fisvoid: uint8(1),
  10796. }
  10797. func Xxcb_map_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10798. bp := tls.Alloc(80)
  10799. defer tls.Free(80)
  10800. var xcb_ret Txcb_void_cookie_t
  10801. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10802. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10803. _ = xcb_ret
  10804. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10805. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10806. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10807. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10808. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10809. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10810. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req20)))
  10811. return xcb_ret
  10812. }
  10813. var _xcb_req20 = Txcb_protocol_request_t{
  10814. Fcount: uint64(2),
  10815. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10816. Fisvoid: uint8(1),
  10817. }
  10818. func Xxcb_map_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10819. bp := tls.Alloc(80)
  10820. defer tls.Free(80)
  10821. var xcb_ret Txcb_void_cookie_t
  10822. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10823. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10824. _ = xcb_ret
  10825. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10826. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10827. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10828. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10829. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10830. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10831. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req21)))
  10832. return xcb_ret
  10833. }
  10834. var _xcb_req21 = Txcb_protocol_request_t{
  10835. Fcount: uint64(2),
  10836. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10837. Fisvoid: uint8(1),
  10838. }
  10839. func Xxcb_unmap_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10840. bp := tls.Alloc(80)
  10841. defer tls.Free(80)
  10842. var xcb_ret Txcb_void_cookie_t
  10843. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10844. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10845. _ = xcb_ret
  10846. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10847. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10848. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10849. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10850. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10851. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10852. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req22)))
  10853. return xcb_ret
  10854. }
  10855. var _xcb_req22 = Txcb_protocol_request_t{
  10856. Fcount: uint64(2),
  10857. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10858. Fisvoid: uint8(1),
  10859. }
  10860. func Xxcb_unmap_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10861. bp := tls.Alloc(80)
  10862. defer tls.Free(80)
  10863. var xcb_ret Txcb_void_cookie_t
  10864. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10865. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10866. _ = xcb_ret
  10867. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10868. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10869. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10870. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10871. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10872. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10873. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req23)))
  10874. return xcb_ret
  10875. }
  10876. var _xcb_req23 = Txcb_protocol_request_t{
  10877. Fcount: uint64(2),
  10878. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10879. Fisvoid: uint8(1),
  10880. }
  10881. func Xxcb_unmap_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10882. bp := tls.Alloc(80)
  10883. defer tls.Free(80)
  10884. var xcb_ret Txcb_void_cookie_t
  10885. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10886. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10887. _ = xcb_ret
  10888. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10889. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10890. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10891. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10892. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10893. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10894. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req24)))
  10895. return xcb_ret
  10896. }
  10897. var _xcb_req24 = Txcb_protocol_request_t{
  10898. Fcount: uint64(2),
  10899. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10900. Fisvoid: uint8(1),
  10901. }
  10902. func Xxcb_unmap_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10903. bp := tls.Alloc(80)
  10904. defer tls.Free(80)
  10905. var xcb_ret Txcb_void_cookie_t
  10906. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10907. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10908. _ = xcb_ret
  10909. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10910. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10911. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10912. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10913. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10914. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10915. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req25)))
  10916. return xcb_ret
  10917. }
  10918. var _xcb_req25 = Txcb_protocol_request_t{
  10919. Fcount: uint64(2),
  10920. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10921. Fisvoid: uint8(1),
  10922. }
  10923. func Xxcb_configure_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10924. bp := tls.Alloc(16)
  10925. defer tls.Free(16)
  10926. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10927. var xcb_out, xcb_tmp uintptr
  10928. var xcb_parts [8]Tiovec
  10929. var _ /* xcb_pad0 at bp+0 */ [3]int8
  10930. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10931. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10932. xcb_buffer_len = uint32(0)
  10933. xcb_align_to = uint32(0)
  10934. xcb_padding_offset = uint32(0)
  10935. xcb_pad = uint32(0)
  10936. *(*[3]int8)(unsafe.Pointer(bp)) = [3]int8{}
  10937. xcb_parts_idx = uint32(0)
  10938. xcb_block_len = uint32(0)
  10939. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10940. /* xcb_configure_window_value_list_t.x */
  10941. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10942. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10943. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10944. xcb_parts_idx++
  10945. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10946. }
  10947. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10948. /* xcb_configure_window_value_list_t.y */
  10949. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10950. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10951. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10952. xcb_parts_idx++
  10953. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10954. }
  10955. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10956. /* xcb_configure_window_value_list_t.width */
  10957. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10958. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10959. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10960. xcb_parts_idx++
  10961. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10962. }
  10963. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  10964. /* xcb_configure_window_value_list_t.height */
  10965. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10966. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10967. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10968. xcb_parts_idx++
  10969. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10970. }
  10971. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  10972. /* xcb_configure_window_value_list_t.border_width */
  10973. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10974. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10975. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10976. xcb_parts_idx++
  10977. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10978. }
  10979. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  10980. /* xcb_configure_window_value_list_t.sibling */
  10981. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10982. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10983. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10984. xcb_parts_idx++
  10985. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10986. }
  10987. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  10988. /* xcb_configure_window_value_list_t.stack_mode */
  10989. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10990. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10991. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10992. xcb_parts_idx++
  10993. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10994. }
  10995. /* insert padding */
  10996. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10997. xcb_buffer_len += xcb_block_len + xcb_pad
  10998. if uint32(0) != xcb_pad {
  10999. xcb_parts[xcb_parts_idx].Fiov_base = bp
  11000. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  11001. xcb_parts_idx++
  11002. xcb_pad = uint32(0)
  11003. }
  11004. xcb_block_len = uint32(0)
  11005. xcb_padding_offset = uint32(0)
  11006. if libc.UintptrFromInt32(0) == xcb_out {
  11007. /* allocate memory */
  11008. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  11009. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  11010. }
  11011. xcb_tmp = xcb_out
  11012. i = uint32(0)
  11013. for {
  11014. if !(i < xcb_parts_idx) {
  11015. break
  11016. }
  11017. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  11018. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  11019. }
  11020. if uint64(0) != xcb_parts[i].Fiov_len {
  11021. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  11022. }
  11023. goto _1
  11024. _1:
  11025. ;
  11026. i++
  11027. }
  11028. return libc.Int32FromUint32(xcb_buffer_len)
  11029. }
  11030. func Xxcb_configure_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  11031. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  11032. var xcb_tmp uintptr
  11033. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  11034. xcb_tmp = _buffer
  11035. xcb_buffer_len = uint32(0)
  11036. xcb_block_len = uint32(0)
  11037. xcb_pad = uint32(0)
  11038. xcb_align_to = uint32(0)
  11039. xcb_padding_offset = uint32(0)
  11040. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  11041. /* xcb_configure_window_value_list_t.x */
  11042. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fx = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  11043. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11044. xcb_tmp += uintptr(4)
  11045. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11046. }
  11047. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  11048. /* xcb_configure_window_value_list_t.y */
  11049. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fy = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  11050. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11051. xcb_tmp += uintptr(4)
  11052. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11053. }
  11054. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  11055. /* xcb_configure_window_value_list_t.width */
  11056. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fwidth = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11057. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11058. xcb_tmp += uintptr(4)
  11059. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11060. }
  11061. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  11062. /* xcb_configure_window_value_list_t.height */
  11063. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fheight = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11064. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11065. xcb_tmp += uintptr(4)
  11066. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11067. }
  11068. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  11069. /* xcb_configure_window_value_list_t.border_width */
  11070. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11071. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11072. xcb_tmp += uintptr(4)
  11073. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11074. }
  11075. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  11076. /* xcb_configure_window_value_list_t.sibling */
  11077. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fsibling = *(*Txcb_window_t)(unsafe.Pointer(xcb_tmp))
  11078. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11079. xcb_tmp += uintptr(4)
  11080. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11081. }
  11082. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  11083. /* xcb_configure_window_value_list_t.stack_mode */
  11084. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fstack_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11085. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11086. xcb_tmp += uintptr(4)
  11087. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11088. }
  11089. /* insert padding */
  11090. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  11091. xcb_buffer_len += xcb_block_len + xcb_pad
  11092. if uint32(0) != xcb_pad {
  11093. xcb_tmp += uintptr(xcb_pad)
  11094. xcb_pad = uint32(0)
  11095. }
  11096. xcb_block_len = uint32(0)
  11097. xcb_padding_offset = uint32(0)
  11098. return libc.Int32FromUint32(xcb_buffer_len)
  11099. }
  11100. func Xxcb_configure_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t) (r int32) {
  11101. bp := tls.Alloc(32)
  11102. defer tls.Free(32)
  11103. var _ /* _aux at bp+0 */ Txcb_configure_window_value_list_t
  11104. return Xxcb_configure_window_value_list_unpack(tls, _buffer, value_mask, bp)
  11105. }
  11106. func Xxcb_configure_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11107. var _aux, xcb_tmp uintptr
  11108. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11109. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11110. xcb_tmp = _buffer
  11111. _aux = _buffer
  11112. xcb_buffer_len = uint32(0)
  11113. xcb_block_len = uint32(0)
  11114. xcb_pad = uint32(0)
  11115. xcb_align_to = uint32(0)
  11116. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  11117. xcb_tmp += uintptr(xcb_block_len)
  11118. xcb_buffer_len += xcb_block_len
  11119. xcb_block_len = uint32(0)
  11120. /* value_list */
  11121. xcb_block_len += libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_configure_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  11122. xcb_tmp += uintptr(xcb_block_len)
  11123. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11124. /* insert padding */
  11125. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11126. xcb_buffer_len += xcb_block_len + xcb_pad
  11127. if uint32(0) != xcb_pad {
  11128. xcb_tmp += uintptr(xcb_pad)
  11129. xcb_pad = uint32(0)
  11130. }
  11131. xcb_block_len = uint32(0)
  11132. return libc.Int32FromUint32(xcb_buffer_len)
  11133. }
  11134. 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) {
  11135. bp := tls.Alloc(96)
  11136. defer tls.Free(96)
  11137. var xcb_ret Txcb_void_cookie_t
  11138. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11139. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11140. _ = xcb_ret
  11141. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11142. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11143. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11144. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11145. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11146. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11147. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11148. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11149. /* xcb_configure_window_value_list_t value_list */
  11150. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11151. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11152. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req26)))
  11153. return xcb_ret
  11154. }
  11155. var _xcb_req26 = Txcb_protocol_request_t{
  11156. Fcount: uint64(3),
  11157. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11158. Fisvoid: uint8(1),
  11159. }
  11160. 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) {
  11161. bp := tls.Alloc(96)
  11162. defer tls.Free(96)
  11163. var xcb_ret Txcb_void_cookie_t
  11164. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11165. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11166. _ = xcb_ret
  11167. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11168. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11169. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11170. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11171. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11172. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11173. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11174. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11175. /* xcb_configure_window_value_list_t value_list */
  11176. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11177. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11178. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req27)))
  11179. return xcb_ret
  11180. }
  11181. var _xcb_req27 = Txcb_protocol_request_t{
  11182. Fcount: uint64(3),
  11183. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11184. Fisvoid: uint8(1),
  11185. }
  11186. 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) {
  11187. bp := tls.Alloc(112)
  11188. defer tls.Free(112)
  11189. var xcb_ret Txcb_void_cookie_t
  11190. var _ /* xcb_aux0 at bp+96 */ uintptr
  11191. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11192. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11193. _ = xcb_ret
  11194. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11195. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11196. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11197. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11198. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11199. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11200. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11201. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11202. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11203. /* xcb_configure_window_value_list_t value_list */
  11204. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11205. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11206. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req28)))
  11207. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11208. return xcb_ret
  11209. }
  11210. var _xcb_req28 = Txcb_protocol_request_t{
  11211. Fcount: uint64(3),
  11212. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11213. Fisvoid: uint8(1),
  11214. }
  11215. 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) {
  11216. bp := tls.Alloc(112)
  11217. defer tls.Free(112)
  11218. var xcb_ret Txcb_void_cookie_t
  11219. var _ /* xcb_aux0 at bp+96 */ uintptr
  11220. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11221. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11222. _ = xcb_ret
  11223. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11224. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11225. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11226. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11227. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11228. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11229. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11230. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11231. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11232. /* xcb_configure_window_value_list_t value_list */
  11233. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11234. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11235. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req29)))
  11236. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11237. return xcb_ret
  11238. }
  11239. var _xcb_req29 = Txcb_protocol_request_t{
  11240. Fcount: uint64(3),
  11241. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11242. Fisvoid: uint8(1),
  11243. }
  11244. func Xxcb_configure_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  11245. return R + libc.UintptrFromInt32(1)*12
  11246. }
  11247. func Xxcb_circulate_window_checked(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11248. bp := tls.Alloc(80)
  11249. defer tls.Free(80)
  11250. var xcb_ret Txcb_void_cookie_t
  11251. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11252. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11253. _ = xcb_ret
  11254. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11255. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11256. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11260. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req30)))
  11261. return xcb_ret
  11262. }
  11263. var _xcb_req30 = Txcb_protocol_request_t{
  11264. Fcount: uint64(2),
  11265. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11266. Fisvoid: uint8(1),
  11267. }
  11268. func Xxcb_circulate_window(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11269. bp := tls.Alloc(80)
  11270. defer tls.Free(80)
  11271. var xcb_ret Txcb_void_cookie_t
  11272. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11273. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11274. _ = xcb_ret
  11275. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11276. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11281. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req31)))
  11282. return xcb_ret
  11283. }
  11284. var _xcb_req31 = Txcb_protocol_request_t{
  11285. Fcount: uint64(2),
  11286. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11287. Fisvoid: uint8(1),
  11288. }
  11289. func Xxcb_get_geometry(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11290. bp := tls.Alloc(80)
  11291. defer tls.Free(80)
  11292. var xcb_ret Txcb_get_geometry_cookie_t
  11293. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11294. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11295. _ = xcb_ret
  11296. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11297. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11301. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11302. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req32)))
  11303. return xcb_ret
  11304. }
  11305. var _xcb_req32 = Txcb_protocol_request_t{
  11306. Fcount: uint64(2),
  11307. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11308. }
  11309. func Xxcb_get_geometry_unchecked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11310. bp := tls.Alloc(80)
  11311. defer tls.Free(80)
  11312. var xcb_ret Txcb_get_geometry_cookie_t
  11313. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11314. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11315. _ = xcb_ret
  11316. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11317. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11318. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11320. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11321. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11322. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req33)))
  11323. return xcb_ret
  11324. }
  11325. var _xcb_req33 = Txcb_protocol_request_t{
  11326. Fcount: uint64(2),
  11327. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11328. }
  11329. func Xxcb_get_geometry_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_geometry_cookie_t, e uintptr) (r uintptr) {
  11330. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11331. }
  11332. func Xxcb_query_tree_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11333. var _aux, xcb_tmp uintptr
  11334. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11335. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11336. xcb_tmp = _buffer
  11337. _aux = _buffer
  11338. xcb_buffer_len = uint32(0)
  11339. xcb_block_len = uint32(0)
  11340. xcb_pad = uint32(0)
  11341. xcb_align_to = uint32(0)
  11342. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11343. xcb_tmp += uintptr(xcb_block_len)
  11344. xcb_buffer_len += xcb_block_len
  11345. xcb_block_len = uint32(0)
  11346. /* children */
  11347. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_tree_reply_t)(unsafe.Pointer(_aux)).Fchildren_len)*libc.Uint64FromInt64(4))
  11348. xcb_tmp += uintptr(xcb_block_len)
  11349. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11350. /* insert padding */
  11351. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11352. xcb_buffer_len += xcb_block_len + xcb_pad
  11353. if uint32(0) != xcb_pad {
  11354. xcb_tmp += uintptr(xcb_pad)
  11355. xcb_pad = uint32(0)
  11356. }
  11357. xcb_block_len = uint32(0)
  11358. return libc.Int32FromUint32(xcb_buffer_len)
  11359. }
  11360. func Xxcb_query_tree(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11361. bp := tls.Alloc(80)
  11362. defer tls.Free(80)
  11363. var xcb_ret Txcb_query_tree_cookie_t
  11364. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11365. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11366. _ = xcb_ret
  11367. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11368. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11369. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11370. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11371. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11372. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11373. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req34)))
  11374. return xcb_ret
  11375. }
  11376. var _xcb_req34 = Txcb_protocol_request_t{
  11377. Fcount: uint64(2),
  11378. Fopcode: uint8(m_XCB_QUERY_TREE),
  11379. }
  11380. func Xxcb_query_tree_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11381. bp := tls.Alloc(80)
  11382. defer tls.Free(80)
  11383. var xcb_ret Txcb_query_tree_cookie_t
  11384. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11385. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11386. _ = xcb_ret
  11387. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11388. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11389. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11390. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11391. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11392. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11393. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req35)))
  11394. return xcb_ret
  11395. }
  11396. var _xcb_req35 = Txcb_protocol_request_t{
  11397. Fcount: uint64(2),
  11398. Fopcode: uint8(m_XCB_QUERY_TREE),
  11399. }
  11400. func Xxcb_query_tree_children(tls *libc.TLS, R uintptr) (r uintptr) {
  11401. return R + libc.UintptrFromInt32(1)*32
  11402. }
  11403. func Xxcb_query_tree_children_length(tls *libc.TLS, R uintptr) (r int32) {
  11404. return libc.Int32FromUint16((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)
  11405. }
  11406. func Xxcb_query_tree_children_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11407. var i Txcb_generic_iterator_t
  11408. _ = i
  11409. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)*4
  11410. i.Frem = 0
  11411. i.Findex = int32(int64(i.Fdata) - int64(R))
  11412. return i
  11413. }
  11414. func Xxcb_query_tree_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_tree_cookie_t, e uintptr) (r uintptr) {
  11415. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11416. }
  11417. func Xxcb_intern_atom_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11418. var _aux, xcb_tmp uintptr
  11419. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11420. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11421. xcb_tmp = _buffer
  11422. _aux = _buffer
  11423. xcb_buffer_len = uint32(0)
  11424. xcb_block_len = uint32(0)
  11425. xcb_pad = uint32(0)
  11426. xcb_align_to = uint32(0)
  11427. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  11428. xcb_tmp += uintptr(xcb_block_len)
  11429. xcb_buffer_len += xcb_block_len
  11430. xcb_block_len = uint32(0)
  11431. /* name */
  11432. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_intern_atom_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11433. xcb_tmp += uintptr(xcb_block_len)
  11434. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11435. /* insert padding */
  11436. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11437. xcb_buffer_len += xcb_block_len + xcb_pad
  11438. if uint32(0) != xcb_pad {
  11439. xcb_tmp += uintptr(xcb_pad)
  11440. xcb_pad = uint32(0)
  11441. }
  11442. xcb_block_len = uint32(0)
  11443. return libc.Int32FromUint32(xcb_buffer_len)
  11444. }
  11445. 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) {
  11446. bp := tls.Alloc(112)
  11447. defer tls.Free(112)
  11448. var xcb_ret Txcb_intern_atom_cookie_t
  11449. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11450. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11451. _ = xcb_ret
  11452. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11453. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11454. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11455. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11456. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11457. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11458. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11459. /* char name */
  11460. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11461. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11462. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11463. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11464. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req36)))
  11465. return xcb_ret
  11466. }
  11467. var _xcb_req36 = Txcb_protocol_request_t{
  11468. Fcount: uint64(4),
  11469. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11470. }
  11471. 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) {
  11472. bp := tls.Alloc(112)
  11473. defer tls.Free(112)
  11474. var xcb_ret Txcb_intern_atom_cookie_t
  11475. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11476. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11477. _ = xcb_ret
  11478. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11479. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11480. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11481. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11482. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11483. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11484. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11485. /* char name */
  11486. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11487. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11488. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11489. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11490. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req37)))
  11491. return xcb_ret
  11492. }
  11493. var _xcb_req37 = Txcb_protocol_request_t{
  11494. Fcount: uint64(4),
  11495. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11496. }
  11497. func Xxcb_intern_atom_reply(tls *libc.TLS, c uintptr, cookie Txcb_intern_atom_cookie_t, e uintptr) (r uintptr) {
  11498. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11499. }
  11500. func Xxcb_get_atom_name_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11501. var _aux, xcb_tmp uintptr
  11502. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11503. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11504. xcb_tmp = _buffer
  11505. _aux = _buffer
  11506. xcb_buffer_len = uint32(0)
  11507. xcb_block_len = uint32(0)
  11508. xcb_pad = uint32(0)
  11509. xcb_align_to = uint32(0)
  11510. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11511. xcb_tmp += uintptr(xcb_block_len)
  11512. xcb_buffer_len += xcb_block_len
  11513. xcb_block_len = uint32(0)
  11514. /* name */
  11515. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11516. xcb_tmp += uintptr(xcb_block_len)
  11517. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11518. /* insert padding */
  11519. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11520. xcb_buffer_len += xcb_block_len + xcb_pad
  11521. if uint32(0) != xcb_pad {
  11522. xcb_tmp += uintptr(xcb_pad)
  11523. xcb_pad = uint32(0)
  11524. }
  11525. xcb_block_len = uint32(0)
  11526. return libc.Int32FromUint32(xcb_buffer_len)
  11527. }
  11528. func Xxcb_get_atom_name(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11529. bp := tls.Alloc(80)
  11530. defer tls.Free(80)
  11531. var xcb_ret Txcb_get_atom_name_cookie_t
  11532. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11533. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11534. _ = xcb_ret
  11535. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11536. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11537. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11538. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11539. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11540. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11541. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req38)))
  11542. return xcb_ret
  11543. }
  11544. var _xcb_req38 = Txcb_protocol_request_t{
  11545. Fcount: uint64(2),
  11546. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11547. }
  11548. func Xxcb_get_atom_name_unchecked(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11549. bp := tls.Alloc(80)
  11550. defer tls.Free(80)
  11551. var xcb_ret Txcb_get_atom_name_cookie_t
  11552. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11553. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11554. _ = xcb_ret
  11555. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11556. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11557. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11558. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11559. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11560. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11561. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req39)))
  11562. return xcb_ret
  11563. }
  11564. var _xcb_req39 = Txcb_protocol_request_t{
  11565. Fcount: uint64(2),
  11566. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11567. }
  11568. func Xxcb_get_atom_name_name(tls *libc.TLS, R uintptr) (r uintptr) {
  11569. return R + libc.UintptrFromInt32(1)*32
  11570. }
  11571. func Xxcb_get_atom_name_name_length(tls *libc.TLS, R uintptr) (r int32) {
  11572. return libc.Int32FromUint16((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11573. }
  11574. func Xxcb_get_atom_name_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11575. var i Txcb_generic_iterator_t
  11576. _ = i
  11577. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11578. i.Frem = 0
  11579. i.Findex = int32(int64(i.Fdata) - int64(R))
  11580. return i
  11581. }
  11582. func Xxcb_get_atom_name_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_atom_name_cookie_t, e uintptr) (r uintptr) {
  11583. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11584. }
  11585. func Xxcb_change_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11586. var _aux, xcb_tmp uintptr
  11587. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11588. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11589. xcb_tmp = _buffer
  11590. _aux = _buffer
  11591. xcb_buffer_len = uint32(0)
  11592. xcb_block_len = uint32(0)
  11593. xcb_pad = uint32(0)
  11594. xcb_align_to = uint32(0)
  11595. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  11596. xcb_tmp += uintptr(xcb_block_len)
  11597. xcb_buffer_len += xcb_block_len
  11598. xcb_block_len = uint32(0)
  11599. /* data */
  11600. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_property_request_t)(unsafe.Pointer(_aux)).Fdata_len*uint32((*Txcb_change_property_request_t)(unsafe.Pointer(_aux)).Fformat)/libc.Uint32FromInt32(8))*libc.Uint64FromInt64(1))
  11601. xcb_tmp += uintptr(xcb_block_len)
  11602. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11603. /* insert padding */
  11604. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11605. xcb_buffer_len += xcb_block_len + xcb_pad
  11606. if uint32(0) != xcb_pad {
  11607. xcb_tmp += uintptr(xcb_pad)
  11608. xcb_pad = uint32(0)
  11609. }
  11610. xcb_block_len = uint32(0)
  11611. return libc.Int32FromUint32(xcb_buffer_len)
  11612. }
  11613. 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) {
  11614. bp := tls.Alloc(128)
  11615. defer tls.Free(128)
  11616. var xcb_ret Txcb_void_cookie_t
  11617. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11618. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11619. _ = xcb_ret
  11620. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11621. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11622. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11623. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11624. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11625. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11626. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11627. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11628. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11629. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11630. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11631. /* void data */
  11632. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11633. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11634. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11635. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11636. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req40)))
  11637. return xcb_ret
  11638. }
  11639. var _xcb_req40 = Txcb_protocol_request_t{
  11640. Fcount: uint64(4),
  11641. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11642. Fisvoid: uint8(1),
  11643. }
  11644. 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) {
  11645. bp := tls.Alloc(128)
  11646. defer tls.Free(128)
  11647. var xcb_ret Txcb_void_cookie_t
  11648. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11649. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11650. _ = xcb_ret
  11651. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11652. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11653. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11654. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11655. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11656. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11657. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11658. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11659. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11660. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11661. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11662. /* void data */
  11663. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11664. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11665. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11666. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11667. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req41)))
  11668. return xcb_ret
  11669. }
  11670. var _xcb_req41 = Txcb_protocol_request_t{
  11671. Fcount: uint64(4),
  11672. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11673. Fisvoid: uint8(1),
  11674. }
  11675. func Xxcb_change_property_data(tls *libc.TLS, R uintptr) (r uintptr) {
  11676. return R + libc.UintptrFromInt32(1)*24
  11677. }
  11678. func Xxcb_change_property_data_length(tls *libc.TLS, R uintptr) (r int32) {
  11679. 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))
  11680. }
  11681. func Xxcb_change_property_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11682. var i Txcb_generic_iterator_t
  11683. _ = i
  11684. 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))
  11685. i.Frem = 0
  11686. i.Findex = int32(int64(i.Fdata) - int64(R))
  11687. return i
  11688. }
  11689. func Xxcb_delete_property_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11690. bp := tls.Alloc(80)
  11691. defer tls.Free(80)
  11692. var xcb_ret Txcb_void_cookie_t
  11693. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11694. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11695. _ = xcb_ret
  11696. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11697. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11698. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11699. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11700. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11701. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11702. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11703. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req42)))
  11704. return xcb_ret
  11705. }
  11706. var _xcb_req42 = Txcb_protocol_request_t{
  11707. Fcount: uint64(2),
  11708. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11709. Fisvoid: uint8(1),
  11710. }
  11711. func Xxcb_delete_property(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11712. bp := tls.Alloc(80)
  11713. defer tls.Free(80)
  11714. var xcb_ret Txcb_void_cookie_t
  11715. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11716. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11717. _ = xcb_ret
  11718. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11719. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11720. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11721. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11722. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11723. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11724. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11725. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req43)))
  11726. return xcb_ret
  11727. }
  11728. var _xcb_req43 = Txcb_protocol_request_t{
  11729. Fcount: uint64(2),
  11730. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11731. Fisvoid: uint8(1),
  11732. }
  11733. func Xxcb_get_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11734. var _aux, xcb_tmp uintptr
  11735. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11736. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11737. xcb_tmp = _buffer
  11738. _aux = _buffer
  11739. xcb_buffer_len = uint32(0)
  11740. xcb_block_len = uint32(0)
  11741. xcb_pad = uint32(0)
  11742. xcb_align_to = uint32(0)
  11743. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11744. xcb_tmp += uintptr(xcb_block_len)
  11745. xcb_buffer_len += xcb_block_len
  11746. xcb_block_len = uint32(0)
  11747. /* value */
  11748. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_property_reply_t)(unsafe.Pointer(_aux)).Fvalue_len*libc.Uint32FromInt32(libc.Int32FromUint8((*Txcb_get_property_reply_t)(unsafe.Pointer(_aux)).Fformat)/libc.Int32FromInt32(8)))*libc.Uint64FromInt64(1))
  11749. xcb_tmp += uintptr(xcb_block_len)
  11750. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11751. /* insert padding */
  11752. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11753. xcb_buffer_len += xcb_block_len + xcb_pad
  11754. if uint32(0) != xcb_pad {
  11755. xcb_tmp += uintptr(xcb_pad)
  11756. xcb_pad = uint32(0)
  11757. }
  11758. xcb_block_len = uint32(0)
  11759. return libc.Int32FromUint32(xcb_buffer_len)
  11760. }
  11761. 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) {
  11762. bp := tls.Alloc(96)
  11763. defer tls.Free(96)
  11764. var xcb_ret Txcb_get_property_cookie_t
  11765. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11766. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11767. _ = xcb_ret
  11768. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11769. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11770. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11771. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11772. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11773. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11774. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11777. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11778. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req44)))
  11779. return xcb_ret
  11780. }
  11781. var _xcb_req44 = Txcb_protocol_request_t{
  11782. Fcount: uint64(2),
  11783. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11784. }
  11785. 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) {
  11786. bp := tls.Alloc(96)
  11787. defer tls.Free(96)
  11788. var xcb_ret Txcb_get_property_cookie_t
  11789. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11790. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11791. _ = xcb_ret
  11792. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11793. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11794. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11795. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11796. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11797. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11798. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11799. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11800. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11801. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11802. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req45)))
  11803. return xcb_ret
  11804. }
  11805. var _xcb_req45 = Txcb_protocol_request_t{
  11806. Fcount: uint64(2),
  11807. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11808. }
  11809. func Xxcb_get_property_value(tls *libc.TLS, R uintptr) (r uintptr) {
  11810. return R + libc.UintptrFromInt32(1)*32
  11811. }
  11812. func Xxcb_get_property_value_length(tls *libc.TLS, R uintptr) (r int32) {
  11813. 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)))
  11814. }
  11815. func Xxcb_get_property_value_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11816. var i Txcb_generic_iterator_t
  11817. _ = i
  11818. 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)))
  11819. i.Frem = 0
  11820. i.Findex = int32(int64(i.Fdata) - int64(R))
  11821. return i
  11822. }
  11823. func Xxcb_get_property_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_property_cookie_t, e uintptr) (r uintptr) {
  11824. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11825. }
  11826. func Xxcb_list_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11827. var _aux, xcb_tmp uintptr
  11828. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11829. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11830. xcb_tmp = _buffer
  11831. _aux = _buffer
  11832. xcb_buffer_len = uint32(0)
  11833. xcb_block_len = uint32(0)
  11834. xcb_pad = uint32(0)
  11835. xcb_align_to = uint32(0)
  11836. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11837. xcb_tmp += uintptr(xcb_block_len)
  11838. xcb_buffer_len += xcb_block_len
  11839. xcb_block_len = uint32(0)
  11840. /* atoms */
  11841. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_properties_reply_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  11842. xcb_tmp += uintptr(xcb_block_len)
  11843. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11844. /* insert padding */
  11845. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11846. xcb_buffer_len += xcb_block_len + xcb_pad
  11847. if uint32(0) != xcb_pad {
  11848. xcb_tmp += uintptr(xcb_pad)
  11849. xcb_pad = uint32(0)
  11850. }
  11851. xcb_block_len = uint32(0)
  11852. return libc.Int32FromUint32(xcb_buffer_len)
  11853. }
  11854. func Xxcb_list_properties(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11855. bp := tls.Alloc(80)
  11856. defer tls.Free(80)
  11857. var xcb_ret Txcb_list_properties_cookie_t
  11858. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11859. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11860. _ = xcb_ret
  11861. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11862. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11863. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11865. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11867. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req46)))
  11868. return xcb_ret
  11869. }
  11870. var _xcb_req46 = Txcb_protocol_request_t{
  11871. Fcount: uint64(2),
  11872. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11873. }
  11874. func Xxcb_list_properties_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11875. bp := tls.Alloc(80)
  11876. defer tls.Free(80)
  11877. var xcb_ret Txcb_list_properties_cookie_t
  11878. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11879. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11880. _ = xcb_ret
  11881. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11882. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11883. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11884. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11886. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11887. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req47)))
  11888. return xcb_ret
  11889. }
  11890. var _xcb_req47 = Txcb_protocol_request_t{
  11891. Fcount: uint64(2),
  11892. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11893. }
  11894. func Xxcb_list_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  11895. return R + libc.UintptrFromInt32(1)*32
  11896. }
  11897. func Xxcb_list_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  11898. return libc.Int32FromUint16((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)
  11899. }
  11900. func Xxcb_list_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11901. var i Txcb_generic_iterator_t
  11902. _ = i
  11903. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)*4
  11904. i.Frem = 0
  11905. i.Findex = int32(int64(i.Fdata) - int64(R))
  11906. return i
  11907. }
  11908. func Xxcb_list_properties_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_properties_cookie_t, e uintptr) (r uintptr) {
  11909. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11910. }
  11911. 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) {
  11912. bp := tls.Alloc(80)
  11913. defer tls.Free(80)
  11914. var xcb_ret Txcb_void_cookie_t
  11915. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11916. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11917. _ = xcb_ret
  11918. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11919. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11920. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11921. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11922. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11923. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11924. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11925. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11926. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req48)))
  11927. return xcb_ret
  11928. }
  11929. var _xcb_req48 = Txcb_protocol_request_t{
  11930. Fcount: uint64(2),
  11931. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11932. Fisvoid: uint8(1),
  11933. }
  11934. 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) {
  11935. bp := tls.Alloc(80)
  11936. defer tls.Free(80)
  11937. var xcb_ret Txcb_void_cookie_t
  11938. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11939. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11940. _ = xcb_ret
  11941. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11942. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11943. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11944. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11945. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11946. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11947. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11948. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11949. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req49)))
  11950. return xcb_ret
  11951. }
  11952. var _xcb_req49 = Txcb_protocol_request_t{
  11953. Fcount: uint64(2),
  11954. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11955. Fisvoid: uint8(1),
  11956. }
  11957. func Xxcb_get_selection_owner(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11958. bp := tls.Alloc(80)
  11959. defer tls.Free(80)
  11960. var xcb_ret Txcb_get_selection_owner_cookie_t
  11961. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11962. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11963. _ = xcb_ret
  11964. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11965. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11967. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11968. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11969. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11970. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req50)))
  11971. return xcb_ret
  11972. }
  11973. var _xcb_req50 = Txcb_protocol_request_t{
  11974. Fcount: uint64(2),
  11975. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11976. }
  11977. func Xxcb_get_selection_owner_unchecked(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11978. bp := tls.Alloc(80)
  11979. defer tls.Free(80)
  11980. var xcb_ret Txcb_get_selection_owner_cookie_t
  11981. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11982. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11983. _ = xcb_ret
  11984. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11985. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11986. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11987. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11988. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11989. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11990. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req51)))
  11991. return xcb_ret
  11992. }
  11993. var _xcb_req51 = Txcb_protocol_request_t{
  11994. Fcount: uint64(2),
  11995. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11996. }
  11997. func Xxcb_get_selection_owner_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_selection_owner_cookie_t, e uintptr) (r uintptr) {
  11998. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11999. }
  12000. 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) {
  12001. bp := tls.Alloc(96)
  12002. defer tls.Free(96)
  12003. var xcb_ret Txcb_void_cookie_t
  12004. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  12005. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12006. _ = xcb_ret
  12007. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12008. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  12009. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12010. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  12011. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  12012. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12013. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12014. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12015. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12016. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12017. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req52)))
  12018. return xcb_ret
  12019. }
  12020. var _xcb_req52 = Txcb_protocol_request_t{
  12021. Fcount: uint64(2),
  12022. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  12023. Fisvoid: uint8(1),
  12024. }
  12025. 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) {
  12026. bp := tls.Alloc(96)
  12027. defer tls.Free(96)
  12028. var xcb_ret Txcb_void_cookie_t
  12029. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  12030. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12031. _ = xcb_ret
  12032. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12033. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  12034. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12035. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  12036. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  12037. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12038. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12039. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12040. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12041. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12042. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req53)))
  12043. return xcb_ret
  12044. }
  12045. var _xcb_req53 = Txcb_protocol_request_t{
  12046. Fcount: uint64(2),
  12047. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  12048. Fisvoid: uint8(1),
  12049. }
  12050. 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) {
  12051. bp := tls.Alloc(112)
  12052. defer tls.Free(112)
  12053. var xcb_ret Txcb_void_cookie_t
  12054. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  12055. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12056. _ = xcb_ret
  12057. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  12058. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  12059. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12060. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12061. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12062. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12065. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req54)))
  12066. return xcb_ret
  12067. }
  12068. var _xcb_req54 = Txcb_protocol_request_t{
  12069. Fcount: uint64(2),
  12070. Fopcode: uint8(m_XCB_SEND_EVENT),
  12071. Fisvoid: uint8(1),
  12072. }
  12073. 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) {
  12074. bp := tls.Alloc(112)
  12075. defer tls.Free(112)
  12076. var xcb_ret Txcb_void_cookie_t
  12077. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  12078. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12079. _ = xcb_ret
  12080. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  12081. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  12082. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12083. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12084. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12085. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12086. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12087. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12088. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req55)))
  12089. return xcb_ret
  12090. }
  12091. var _xcb_req55 = Txcb_protocol_request_t{
  12092. Fcount: uint64(2),
  12093. Fopcode: uint8(m_XCB_SEND_EVENT),
  12094. Fisvoid: uint8(1),
  12095. }
  12096. 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) {
  12097. bp := tls.Alloc(96)
  12098. defer tls.Free(96)
  12099. var xcb_ret Txcb_grab_pointer_cookie_t
  12100. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12101. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12102. _ = xcb_ret
  12103. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12104. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12105. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12106. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12107. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12108. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12109. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12110. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12111. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12112. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12113. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12114. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12115. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req56)))
  12116. return xcb_ret
  12117. }
  12118. var _xcb_req56 = Txcb_protocol_request_t{
  12119. Fcount: uint64(2),
  12120. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12121. }
  12122. 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) {
  12123. bp := tls.Alloc(96)
  12124. defer tls.Free(96)
  12125. var xcb_ret Txcb_grab_pointer_cookie_t
  12126. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12127. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12128. _ = xcb_ret
  12129. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12130. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12131. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12132. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12133. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12134. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12135. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12136. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12137. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12138. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12141. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req57)))
  12142. return xcb_ret
  12143. }
  12144. var _xcb_req57 = Txcb_protocol_request_t{
  12145. Fcount: uint64(2),
  12146. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12147. }
  12148. func Xxcb_grab_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_pointer_cookie_t, e uintptr) (r uintptr) {
  12149. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12150. }
  12151. func Xxcb_ungrab_pointer_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12152. bp := tls.Alloc(80)
  12153. defer tls.Free(80)
  12154. var xcb_ret Txcb_void_cookie_t
  12155. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12156. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12157. _ = xcb_ret
  12158. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12159. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12160. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12164. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req58)))
  12165. return xcb_ret
  12166. }
  12167. var _xcb_req58 = Txcb_protocol_request_t{
  12168. Fcount: uint64(2),
  12169. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12170. Fisvoid: uint8(1),
  12171. }
  12172. func Xxcb_ungrab_pointer(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12173. bp := tls.Alloc(80)
  12174. defer tls.Free(80)
  12175. var xcb_ret Txcb_void_cookie_t
  12176. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12177. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12178. _ = xcb_ret
  12179. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12180. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12181. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12182. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12183. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12184. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12185. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req59)))
  12186. return xcb_ret
  12187. }
  12188. var _xcb_req59 = Txcb_protocol_request_t{
  12189. Fcount: uint64(2),
  12190. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12191. Fisvoid: uint8(1),
  12192. }
  12193. 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) {
  12194. bp := tls.Alloc(96)
  12195. defer tls.Free(96)
  12196. var xcb_ret Txcb_void_cookie_t
  12197. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12198. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12199. _ = xcb_ret
  12200. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12201. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12202. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12203. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12204. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12205. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12206. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12207. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12208. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12209. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12210. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12213. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12214. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req60)))
  12215. return xcb_ret
  12216. }
  12217. var _xcb_req60 = Txcb_protocol_request_t{
  12218. Fcount: uint64(2),
  12219. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12220. Fisvoid: uint8(1),
  12221. }
  12222. 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) {
  12223. bp := tls.Alloc(96)
  12224. defer tls.Free(96)
  12225. var xcb_ret Txcb_void_cookie_t
  12226. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12227. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12228. _ = xcb_ret
  12229. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12230. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12231. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12232. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12233. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12234. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12235. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12236. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12237. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12238. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12241. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12242. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12243. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req61)))
  12244. return xcb_ret
  12245. }
  12246. var _xcb_req61 = Txcb_protocol_request_t{
  12247. Fcount: uint64(2),
  12248. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12249. Fisvoid: uint8(1),
  12250. }
  12251. 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) {
  12252. bp := tls.Alloc(80)
  12253. defer tls.Free(80)
  12254. var xcb_ret Txcb_void_cookie_t
  12255. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12256. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12257. _ = xcb_ret
  12258. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12259. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12260. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12261. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12262. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12263. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12264. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12265. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12266. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req62)))
  12267. return xcb_ret
  12268. }
  12269. var _xcb_req62 = Txcb_protocol_request_t{
  12270. Fcount: uint64(2),
  12271. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12272. Fisvoid: uint8(1),
  12273. }
  12274. 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) {
  12275. bp := tls.Alloc(80)
  12276. defer tls.Free(80)
  12277. var xcb_ret Txcb_void_cookie_t
  12278. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12279. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12280. _ = xcb_ret
  12281. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12282. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12283. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12284. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12285. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12286. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12287. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12288. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12289. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req63)))
  12290. return xcb_ret
  12291. }
  12292. var _xcb_req63 = Txcb_protocol_request_t{
  12293. Fcount: uint64(2),
  12294. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12295. Fisvoid: uint8(1),
  12296. }
  12297. 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) {
  12298. bp := tls.Alloc(80)
  12299. defer tls.Free(80)
  12300. var xcb_ret Txcb_void_cookie_t
  12301. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12302. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12303. _ = xcb_ret
  12304. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12305. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12306. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12307. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12308. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12309. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12313. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req64)))
  12314. return xcb_ret
  12315. }
  12316. var _xcb_req64 = Txcb_protocol_request_t{
  12317. Fcount: uint64(2),
  12318. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12319. Fisvoid: uint8(1),
  12320. }
  12321. 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) {
  12322. bp := tls.Alloc(80)
  12323. defer tls.Free(80)
  12324. var xcb_ret Txcb_void_cookie_t
  12325. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12326. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12327. _ = xcb_ret
  12328. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12329. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12330. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12331. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12332. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12333. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12334. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12335. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12336. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12337. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req65)))
  12338. return xcb_ret
  12339. }
  12340. var _xcb_req65 = Txcb_protocol_request_t{
  12341. Fcount: uint64(2),
  12342. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12343. Fisvoid: uint8(1),
  12344. }
  12345. 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) {
  12346. bp := tls.Alloc(80)
  12347. defer tls.Free(80)
  12348. var xcb_ret Txcb_grab_keyboard_cookie_t
  12349. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12350. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12351. _ = xcb_ret
  12352. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12353. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12354. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12355. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12356. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12357. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12360. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12361. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12362. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req66)))
  12363. return xcb_ret
  12364. }
  12365. var _xcb_req66 = Txcb_protocol_request_t{
  12366. Fcount: uint64(2),
  12367. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12368. }
  12369. 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) {
  12370. bp := tls.Alloc(80)
  12371. defer tls.Free(80)
  12372. var xcb_ret Txcb_grab_keyboard_cookie_t
  12373. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12374. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12375. _ = xcb_ret
  12376. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12377. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12378. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12379. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12380. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12381. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12382. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12383. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12384. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12385. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12386. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req67)))
  12387. return xcb_ret
  12388. }
  12389. var _xcb_req67 = Txcb_protocol_request_t{
  12390. Fcount: uint64(2),
  12391. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12392. }
  12393. func Xxcb_grab_keyboard_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_keyboard_cookie_t, e uintptr) (r uintptr) {
  12394. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12395. }
  12396. func Xxcb_ungrab_keyboard_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12397. bp := tls.Alloc(80)
  12398. defer tls.Free(80)
  12399. var xcb_ret Txcb_void_cookie_t
  12400. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12401. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12402. _ = xcb_ret
  12403. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12404. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12405. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12406. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12407. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12408. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12409. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req68)))
  12410. return xcb_ret
  12411. }
  12412. var _xcb_req68 = Txcb_protocol_request_t{
  12413. Fcount: uint64(2),
  12414. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12415. Fisvoid: uint8(1),
  12416. }
  12417. func Xxcb_ungrab_keyboard(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12418. bp := tls.Alloc(80)
  12419. defer tls.Free(80)
  12420. var xcb_ret Txcb_void_cookie_t
  12421. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12422. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12423. _ = xcb_ret
  12424. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12425. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12426. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12427. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12428. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12429. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12430. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req69)))
  12431. return xcb_ret
  12432. }
  12433. var _xcb_req69 = Txcb_protocol_request_t{
  12434. Fcount: uint64(2),
  12435. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12436. Fisvoid: uint8(1),
  12437. }
  12438. 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) {
  12439. bp := tls.Alloc(80)
  12440. defer tls.Free(80)
  12441. var xcb_ret Txcb_void_cookie_t
  12442. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12443. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12444. _ = xcb_ret
  12445. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12446. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12447. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12448. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12449. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12450. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12451. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12452. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12453. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12454. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12455. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12456. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req70)))
  12457. return xcb_ret
  12458. }
  12459. var _xcb_req70 = Txcb_protocol_request_t{
  12460. Fcount: uint64(2),
  12461. Fopcode: uint8(m_XCB_GRAB_KEY),
  12462. Fisvoid: uint8(1),
  12463. }
  12464. 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) {
  12465. bp := tls.Alloc(80)
  12466. defer tls.Free(80)
  12467. var xcb_ret Txcb_void_cookie_t
  12468. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12469. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12470. _ = xcb_ret
  12471. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12472. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12473. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12474. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12475. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12476. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12477. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12478. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12479. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12480. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12481. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12482. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req71)))
  12483. return xcb_ret
  12484. }
  12485. var _xcb_req71 = Txcb_protocol_request_t{
  12486. Fcount: uint64(2),
  12487. Fopcode: uint8(m_XCB_GRAB_KEY),
  12488. Fisvoid: uint8(1),
  12489. }
  12490. 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) {
  12491. bp := tls.Alloc(80)
  12492. defer tls.Free(80)
  12493. var xcb_ret Txcb_void_cookie_t
  12494. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12495. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12496. _ = xcb_ret
  12497. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12498. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12499. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12500. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12501. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12503. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12504. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12505. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req72)))
  12506. return xcb_ret
  12507. }
  12508. var _xcb_req72 = Txcb_protocol_request_t{
  12509. Fcount: uint64(2),
  12510. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12511. Fisvoid: uint8(1),
  12512. }
  12513. 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) {
  12514. bp := tls.Alloc(80)
  12515. defer tls.Free(80)
  12516. var xcb_ret Txcb_void_cookie_t
  12517. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12518. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12519. _ = xcb_ret
  12520. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12521. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12522. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12523. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12524. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12525. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12526. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12527. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12528. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req73)))
  12529. return xcb_ret
  12530. }
  12531. var _xcb_req73 = Txcb_protocol_request_t{
  12532. Fcount: uint64(2),
  12533. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12534. Fisvoid: uint8(1),
  12535. }
  12536. func Xxcb_allow_events_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12537. bp := tls.Alloc(80)
  12538. defer tls.Free(80)
  12539. var xcb_ret Txcb_void_cookie_t
  12540. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12541. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12542. _ = xcb_ret
  12543. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12544. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12545. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12546. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12547. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12548. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12549. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req74)))
  12550. return xcb_ret
  12551. }
  12552. var _xcb_req74 = Txcb_protocol_request_t{
  12553. Fcount: uint64(2),
  12554. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12555. Fisvoid: uint8(1),
  12556. }
  12557. func Xxcb_allow_events(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12558. bp := tls.Alloc(80)
  12559. defer tls.Free(80)
  12560. var xcb_ret Txcb_void_cookie_t
  12561. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12562. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12563. _ = xcb_ret
  12564. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12565. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12566. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12567. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12568. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12569. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12570. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req75)))
  12571. return xcb_ret
  12572. }
  12573. var _xcb_req75 = Txcb_protocol_request_t{
  12574. Fcount: uint64(2),
  12575. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12576. Fisvoid: uint8(1),
  12577. }
  12578. func Xxcb_grab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12579. bp := tls.Alloc(80)
  12580. defer tls.Free(80)
  12581. var xcb_ret Txcb_void_cookie_t
  12582. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12583. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12584. _ = xcb_ret
  12585. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12586. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12587. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12588. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12589. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12590. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req76)))
  12591. return xcb_ret
  12592. }
  12593. var _xcb_req76 = Txcb_protocol_request_t{
  12594. Fcount: uint64(2),
  12595. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12596. Fisvoid: uint8(1),
  12597. }
  12598. func Xxcb_grab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12599. bp := tls.Alloc(80)
  12600. defer tls.Free(80)
  12601. var xcb_ret Txcb_void_cookie_t
  12602. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12603. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12604. _ = xcb_ret
  12605. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12606. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12607. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12608. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12609. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12610. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req77)))
  12611. return xcb_ret
  12612. }
  12613. var _xcb_req77 = Txcb_protocol_request_t{
  12614. Fcount: uint64(2),
  12615. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12616. Fisvoid: uint8(1),
  12617. }
  12618. func Xxcb_ungrab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12619. bp := tls.Alloc(80)
  12620. defer tls.Free(80)
  12621. var xcb_ret Txcb_void_cookie_t
  12622. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12623. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12624. _ = xcb_ret
  12625. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12626. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12627. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12628. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12629. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12630. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req78)))
  12631. return xcb_ret
  12632. }
  12633. var _xcb_req78 = Txcb_protocol_request_t{
  12634. Fcount: uint64(2),
  12635. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12636. Fisvoid: uint8(1),
  12637. }
  12638. func Xxcb_ungrab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12639. bp := tls.Alloc(80)
  12640. defer tls.Free(80)
  12641. var xcb_ret Txcb_void_cookie_t
  12642. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12643. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12644. _ = xcb_ret
  12645. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12646. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12647. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12648. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12649. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12650. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req79)))
  12651. return xcb_ret
  12652. }
  12653. var _xcb_req79 = Txcb_protocol_request_t{
  12654. Fcount: uint64(2),
  12655. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12656. Fisvoid: uint8(1),
  12657. }
  12658. func Xxcb_query_pointer(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12659. bp := tls.Alloc(80)
  12660. defer tls.Free(80)
  12661. var xcb_ret Txcb_query_pointer_cookie_t
  12662. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12663. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12664. _ = xcb_ret
  12665. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12666. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12667. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12668. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12669. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12670. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12671. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req80)))
  12672. return xcb_ret
  12673. }
  12674. var _xcb_req80 = Txcb_protocol_request_t{
  12675. Fcount: uint64(2),
  12676. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12677. }
  12678. func Xxcb_query_pointer_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12679. bp := tls.Alloc(80)
  12680. defer tls.Free(80)
  12681. var xcb_ret Txcb_query_pointer_cookie_t
  12682. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12683. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12684. _ = xcb_ret
  12685. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12686. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12687. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12688. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12689. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12690. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12691. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req81)))
  12692. return xcb_ret
  12693. }
  12694. var _xcb_req81 = Txcb_protocol_request_t{
  12695. Fcount: uint64(2),
  12696. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12697. }
  12698. func Xxcb_query_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_pointer_cookie_t, e uintptr) (r uintptr) {
  12699. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12700. }
  12701. func Xxcb_timecoord_next(tls *libc.TLS, i uintptr) {
  12702. var p1 uintptr
  12703. _ = p1
  12704. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Frem--
  12705. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  12706. p1 = i + 12
  12707. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  12708. }
  12709. func Xxcb_timecoord_end(tls *libc.TLS, i Txcb_timecoord_iterator_t) (r Txcb_generic_iterator_t) {
  12710. var ret Txcb_generic_iterator_t
  12711. _ = ret
  12712. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  12713. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  12714. ret.Frem = 0
  12715. return ret
  12716. }
  12717. func Xxcb_get_motion_events_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12718. var _aux, xcb_tmp uintptr
  12719. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12720. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12721. xcb_tmp = _buffer
  12722. _aux = _buffer
  12723. xcb_buffer_len = uint32(0)
  12724. xcb_block_len = uint32(0)
  12725. xcb_pad = uint32(0)
  12726. xcb_align_to = uint32(0)
  12727. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  12728. xcb_tmp += uintptr(xcb_block_len)
  12729. xcb_buffer_len += xcb_block_len
  12730. xcb_block_len = uint32(0)
  12731. /* events */
  12732. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(_aux)).Fevents_len)*libc.Uint64FromInt64(8))
  12733. xcb_tmp += uintptr(xcb_block_len)
  12734. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  12735. /* insert padding */
  12736. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12737. xcb_buffer_len += xcb_block_len + xcb_pad
  12738. if uint32(0) != xcb_pad {
  12739. xcb_tmp += uintptr(xcb_pad)
  12740. xcb_pad = uint32(0)
  12741. }
  12742. xcb_block_len = uint32(0)
  12743. return libc.Int32FromUint32(xcb_buffer_len)
  12744. }
  12745. 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) {
  12746. bp := tls.Alloc(80)
  12747. defer tls.Free(80)
  12748. var xcb_ret Txcb_get_motion_events_cookie_t
  12749. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12750. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12751. _ = xcb_ret
  12752. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12753. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12754. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12755. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12756. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12757. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12758. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12759. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12760. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req82)))
  12761. return xcb_ret
  12762. }
  12763. var _xcb_req82 = Txcb_protocol_request_t{
  12764. Fcount: uint64(2),
  12765. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12766. }
  12767. 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) {
  12768. bp := tls.Alloc(80)
  12769. defer tls.Free(80)
  12770. var xcb_ret Txcb_get_motion_events_cookie_t
  12771. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12772. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12773. _ = xcb_ret
  12774. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12775. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12776. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12777. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12778. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12779. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12780. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12781. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12782. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req83)))
  12783. return xcb_ret
  12784. }
  12785. var _xcb_req83 = Txcb_protocol_request_t{
  12786. Fcount: uint64(2),
  12787. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12788. }
  12789. func Xxcb_get_motion_events_events(tls *libc.TLS, R uintptr) (r uintptr) {
  12790. return R + libc.UintptrFromInt32(1)*32
  12791. }
  12792. func Xxcb_get_motion_events_events_length(tls *libc.TLS, R uintptr) (r int32) {
  12793. return libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12794. }
  12795. func Xxcb_get_motion_events_events_iterator(tls *libc.TLS, R uintptr) (r Txcb_timecoord_iterator_t) {
  12796. var i Txcb_timecoord_iterator_t
  12797. _ = i
  12798. i.Fdata = R + libc.UintptrFromInt32(1)*32
  12799. i.Frem = libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12800. i.Findex = int32(int64(i.Fdata) - int64(R))
  12801. return i
  12802. }
  12803. func Xxcb_get_motion_events_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_motion_events_cookie_t, e uintptr) (r uintptr) {
  12804. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12805. }
  12806. 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) {
  12807. bp := tls.Alloc(80)
  12808. defer tls.Free(80)
  12809. var xcb_ret Txcb_translate_coordinates_cookie_t
  12810. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12811. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12812. _ = xcb_ret
  12813. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12814. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12815. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12816. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12817. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12818. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12819. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12820. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12821. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12822. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req84)))
  12823. return xcb_ret
  12824. }
  12825. var _xcb_req84 = Txcb_protocol_request_t{
  12826. Fcount: uint64(2),
  12827. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12828. }
  12829. 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) {
  12830. bp := tls.Alloc(80)
  12831. defer tls.Free(80)
  12832. var xcb_ret Txcb_translate_coordinates_cookie_t
  12833. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12834. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12835. _ = xcb_ret
  12836. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12837. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12838. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12839. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12840. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12841. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12842. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12843. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12844. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12845. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req85)))
  12846. return xcb_ret
  12847. }
  12848. var _xcb_req85 = Txcb_protocol_request_t{
  12849. Fcount: uint64(2),
  12850. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12851. }
  12852. func Xxcb_translate_coordinates_reply(tls *libc.TLS, c uintptr, cookie Txcb_translate_coordinates_cookie_t, e uintptr) (r uintptr) {
  12853. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12854. }
  12855. 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) {
  12856. bp := tls.Alloc(96)
  12857. defer tls.Free(96)
  12858. var xcb_ret Txcb_void_cookie_t
  12859. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12860. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12861. _ = xcb_ret
  12862. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12863. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12864. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12865. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12866. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12867. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12868. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12869. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12870. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12871. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12872. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12873. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12874. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12875. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req86)))
  12876. return xcb_ret
  12877. }
  12878. var _xcb_req86 = Txcb_protocol_request_t{
  12879. Fcount: uint64(2),
  12880. Fopcode: uint8(m_XCB_WARP_POINTER),
  12881. Fisvoid: uint8(1),
  12882. }
  12883. 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) {
  12884. bp := tls.Alloc(96)
  12885. defer tls.Free(96)
  12886. var xcb_ret Txcb_void_cookie_t
  12887. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12888. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12889. _ = xcb_ret
  12890. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12891. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12892. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12893. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12894. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12895. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12896. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12897. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12898. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12899. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12900. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12901. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12902. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12903. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req87)))
  12904. return xcb_ret
  12905. }
  12906. var _xcb_req87 = Txcb_protocol_request_t{
  12907. Fcount: uint64(2),
  12908. Fopcode: uint8(m_XCB_WARP_POINTER),
  12909. Fisvoid: uint8(1),
  12910. }
  12911. 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) {
  12912. bp := tls.Alloc(80)
  12913. defer tls.Free(80)
  12914. var xcb_ret Txcb_void_cookie_t
  12915. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12916. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12917. _ = xcb_ret
  12918. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12919. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12920. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12921. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12922. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12923. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12924. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12925. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req88)))
  12926. return xcb_ret
  12927. }
  12928. var _xcb_req88 = Txcb_protocol_request_t{
  12929. Fcount: uint64(2),
  12930. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12931. Fisvoid: uint8(1),
  12932. }
  12933. 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) {
  12934. bp := tls.Alloc(80)
  12935. defer tls.Free(80)
  12936. var xcb_ret Txcb_void_cookie_t
  12937. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12938. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12939. _ = xcb_ret
  12940. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12941. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12942. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12943. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12944. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12945. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12946. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12947. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req89)))
  12948. return xcb_ret
  12949. }
  12950. var _xcb_req89 = Txcb_protocol_request_t{
  12951. Fcount: uint64(2),
  12952. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12953. Fisvoid: uint8(1),
  12954. }
  12955. func Xxcb_get_input_focus(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12956. bp := tls.Alloc(80)
  12957. defer tls.Free(80)
  12958. var xcb_ret Txcb_get_input_focus_cookie_t
  12959. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12960. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12961. _ = xcb_ret
  12962. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12967. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req90)))
  12968. return xcb_ret
  12969. }
  12970. var _xcb_req90 = Txcb_protocol_request_t{
  12971. Fcount: uint64(2),
  12972. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12973. }
  12974. func Xxcb_get_input_focus_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12975. bp := tls.Alloc(80)
  12976. defer tls.Free(80)
  12977. var xcb_ret Txcb_get_input_focus_cookie_t
  12978. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12979. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12980. _ = xcb_ret
  12981. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12982. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12984. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12986. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req91)))
  12987. return xcb_ret
  12988. }
  12989. var _xcb_req91 = Txcb_protocol_request_t{
  12990. Fcount: uint64(2),
  12991. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12992. }
  12993. func Xxcb_get_input_focus_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_input_focus_cookie_t, e uintptr) (r uintptr) {
  12994. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12995. }
  12996. func Xxcb_query_keymap(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  12997. bp := tls.Alloc(80)
  12998. defer tls.Free(80)
  12999. var xcb_ret Txcb_query_keymap_cookie_t
  13000. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  13001. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13002. _ = xcb_ret
  13003. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13004. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13005. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13006. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13007. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13008. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req92)))
  13009. return xcb_ret
  13010. }
  13011. var _xcb_req92 = Txcb_protocol_request_t{
  13012. Fcount: uint64(2),
  13013. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  13014. }
  13015. func Xxcb_query_keymap_unchecked(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  13016. bp := tls.Alloc(80)
  13017. defer tls.Free(80)
  13018. var xcb_ret Txcb_query_keymap_cookie_t
  13019. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  13020. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13021. _ = xcb_ret
  13022. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13023. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13024. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13025. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13026. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13027. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req93)))
  13028. return xcb_ret
  13029. }
  13030. var _xcb_req93 = Txcb_protocol_request_t{
  13031. Fcount: uint64(2),
  13032. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  13033. }
  13034. func Xxcb_query_keymap_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_keymap_cookie_t, e uintptr) (r uintptr) {
  13035. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13036. }
  13037. func Xxcb_open_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13038. var _aux, xcb_tmp uintptr
  13039. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13040. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13041. xcb_tmp = _buffer
  13042. _aux = _buffer
  13043. xcb_buffer_len = uint32(0)
  13044. xcb_block_len = uint32(0)
  13045. xcb_pad = uint32(0)
  13046. xcb_align_to = uint32(0)
  13047. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  13048. xcb_tmp += uintptr(xcb_block_len)
  13049. xcb_buffer_len += xcb_block_len
  13050. xcb_block_len = uint32(0)
  13051. /* name */
  13052. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_open_font_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  13053. xcb_tmp += uintptr(xcb_block_len)
  13054. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13055. /* insert padding */
  13056. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13057. xcb_buffer_len += xcb_block_len + xcb_pad
  13058. if uint32(0) != xcb_pad {
  13059. xcb_tmp += uintptr(xcb_pad)
  13060. xcb_pad = uint32(0)
  13061. }
  13062. xcb_block_len = uint32(0)
  13063. return libc.Int32FromUint32(xcb_buffer_len)
  13064. }
  13065. 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) {
  13066. bp := tls.Alloc(112)
  13067. defer tls.Free(112)
  13068. var xcb_ret Txcb_void_cookie_t
  13069. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13070. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13071. _ = xcb_ret
  13072. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13073. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13074. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13075. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13076. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13077. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13078. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13079. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13080. /* char name */
  13081. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13082. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13083. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13084. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13085. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req94)))
  13086. return xcb_ret
  13087. }
  13088. var _xcb_req94 = Txcb_protocol_request_t{
  13089. Fcount: uint64(4),
  13090. Fopcode: uint8(m_XCB_OPEN_FONT),
  13091. Fisvoid: uint8(1),
  13092. }
  13093. func Xxcb_open_font(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
  13094. bp := tls.Alloc(112)
  13095. defer tls.Free(112)
  13096. var xcb_ret Txcb_void_cookie_t
  13097. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13098. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13099. _ = xcb_ret
  13100. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13101. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13102. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13103. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13104. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13105. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13106. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13107. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13108. /* char name */
  13109. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13110. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13111. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13112. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13113. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req95)))
  13114. return xcb_ret
  13115. }
  13116. var _xcb_req95 = Txcb_protocol_request_t{
  13117. Fcount: uint64(4),
  13118. Fopcode: uint8(m_XCB_OPEN_FONT),
  13119. Fisvoid: uint8(1),
  13120. }
  13121. func Xxcb_open_font_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13122. return R + libc.UintptrFromInt32(1)*12
  13123. }
  13124. func Xxcb_open_font_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13125. return libc.Int32FromUint16((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13126. }
  13127. func Xxcb_open_font_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13128. var i Txcb_generic_iterator_t
  13129. _ = i
  13130. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13131. i.Frem = 0
  13132. i.Findex = int32(int64(i.Fdata) - int64(R))
  13133. return i
  13134. }
  13135. func Xxcb_close_font_checked(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13136. bp := tls.Alloc(80)
  13137. defer tls.Free(80)
  13138. var xcb_ret Txcb_void_cookie_t
  13139. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13140. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13141. _ = xcb_ret
  13142. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13143. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13144. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13145. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13146. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13147. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13148. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req96)))
  13149. return xcb_ret
  13150. }
  13151. var _xcb_req96 = Txcb_protocol_request_t{
  13152. Fcount: uint64(2),
  13153. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13154. Fisvoid: uint8(1),
  13155. }
  13156. func Xxcb_close_font(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13157. bp := tls.Alloc(80)
  13158. defer tls.Free(80)
  13159. var xcb_ret Txcb_void_cookie_t
  13160. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13161. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13162. _ = xcb_ret
  13163. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13164. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13165. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13166. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13167. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13168. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13169. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req97)))
  13170. return xcb_ret
  13171. }
  13172. var _xcb_req97 = Txcb_protocol_request_t{
  13173. Fcount: uint64(2),
  13174. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13175. Fisvoid: uint8(1),
  13176. }
  13177. func Xxcb_fontprop_next(tls *libc.TLS, i uintptr) {
  13178. var p1 uintptr
  13179. _ = p1
  13180. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Frem--
  13181. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  13182. p1 = i + 12
  13183. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  13184. }
  13185. func Xxcb_fontprop_end(tls *libc.TLS, i Txcb_fontprop_iterator_t) (r Txcb_generic_iterator_t) {
  13186. var ret Txcb_generic_iterator_t
  13187. _ = ret
  13188. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  13189. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13190. ret.Frem = 0
  13191. return ret
  13192. }
  13193. func Xxcb_charinfo_next(tls *libc.TLS, i uintptr) {
  13194. var p1 uintptr
  13195. _ = p1
  13196. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Frem--
  13197. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  13198. p1 = i + 12
  13199. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  13200. }
  13201. func Xxcb_charinfo_end(tls *libc.TLS, i Txcb_charinfo_iterator_t) (r Txcb_generic_iterator_t) {
  13202. var ret Txcb_generic_iterator_t
  13203. _ = ret
  13204. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  13205. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13206. ret.Frem = 0
  13207. return ret
  13208. }
  13209. func Xxcb_query_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13210. var _aux, xcb_tmp uintptr
  13211. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13212. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13213. xcb_tmp = _buffer
  13214. _aux = _buffer
  13215. xcb_buffer_len = uint32(0)
  13216. xcb_block_len = uint32(0)
  13217. xcb_pad = uint32(0)
  13218. xcb_align_to = uint32(0)
  13219. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(60))
  13220. xcb_tmp += uintptr(xcb_block_len)
  13221. xcb_buffer_len += xcb_block_len
  13222. xcb_block_len = uint32(0)
  13223. /* properties */
  13224. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fproperties_len)*libc.Uint64FromInt64(8))
  13225. xcb_tmp += uintptr(xcb_block_len)
  13226. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13227. /* insert padding */
  13228. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13229. xcb_buffer_len += xcb_block_len + xcb_pad
  13230. if uint32(0) != xcb_pad {
  13231. xcb_tmp += uintptr(xcb_pad)
  13232. xcb_pad = uint32(0)
  13233. }
  13234. xcb_block_len = uint32(0)
  13235. /* char_infos */
  13236. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fchar_infos_len)*libc.Uint64FromInt64(12))
  13237. xcb_tmp += uintptr(xcb_block_len)
  13238. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  13239. /* insert padding */
  13240. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13241. xcb_buffer_len += xcb_block_len + xcb_pad
  13242. if uint32(0) != xcb_pad {
  13243. xcb_tmp += uintptr(xcb_pad)
  13244. xcb_pad = uint32(0)
  13245. }
  13246. xcb_block_len = uint32(0)
  13247. return libc.Int32FromUint32(xcb_buffer_len)
  13248. }
  13249. func Xxcb_query_font(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13250. bp := tls.Alloc(80)
  13251. defer tls.Free(80)
  13252. var xcb_ret Txcb_query_font_cookie_t
  13253. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13254. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13255. _ = xcb_ret
  13256. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13257. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13262. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req98)))
  13263. return xcb_ret
  13264. }
  13265. var _xcb_req98 = Txcb_protocol_request_t{
  13266. Fcount: uint64(2),
  13267. Fopcode: uint8(m_XCB_QUERY_FONT),
  13268. }
  13269. func Xxcb_query_font_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13270. bp := tls.Alloc(80)
  13271. defer tls.Free(80)
  13272. var xcb_ret Txcb_query_font_cookie_t
  13273. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13274. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13275. _ = xcb_ret
  13276. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13277. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13281. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13282. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req99)))
  13283. return xcb_ret
  13284. }
  13285. var _xcb_req99 = Txcb_protocol_request_t{
  13286. Fcount: uint64(2),
  13287. Fopcode: uint8(m_XCB_QUERY_FONT),
  13288. }
  13289. func Xxcb_query_font_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13290. return R + libc.UintptrFromInt32(1)*60
  13291. }
  13292. func Xxcb_query_font_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13293. return libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13294. }
  13295. func Xxcb_query_font_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13296. var i Txcb_fontprop_iterator_t
  13297. _ = i
  13298. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13299. i.Frem = libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13300. i.Findex = int32(int64(i.Fdata) - int64(R))
  13301. return i
  13302. }
  13303. func Xxcb_query_font_char_infos(tls *libc.TLS, R uintptr) (r uintptr) {
  13304. var prev Txcb_generic_iterator_t
  13305. _ = prev
  13306. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13307. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3)) + libc.UintptrFromInt32(0)
  13308. }
  13309. func Xxcb_query_font_char_infos_length(tls *libc.TLS, R uintptr) (r int32) {
  13310. return libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13311. }
  13312. func Xxcb_query_font_char_infos_iterator(tls *libc.TLS, R uintptr) (r Txcb_charinfo_iterator_t) {
  13313. var i Txcb_charinfo_iterator_t
  13314. var prev Txcb_generic_iterator_t
  13315. _, _ = i, prev
  13316. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13317. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  13318. i.Frem = libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13319. i.Findex = int32(int64(i.Fdata) - int64(R))
  13320. return i
  13321. }
  13322. func Xxcb_query_font_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_font_cookie_t, e uintptr) (r uintptr) {
  13323. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13324. }
  13325. func Xxcb_query_text_extents_sizeof(tls *libc.TLS, _buffer uintptr, string_len Tuint32_t) (r int32) {
  13326. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13327. var xcb_tmp uintptr
  13328. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13329. xcb_tmp = _buffer
  13330. xcb_buffer_len = uint32(0)
  13331. xcb_block_len = uint32(0)
  13332. xcb_pad = uint32(0)
  13333. xcb_align_to = uint32(0)
  13334. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13335. xcb_tmp += uintptr(xcb_block_len)
  13336. xcb_buffer_len += xcb_block_len
  13337. xcb_block_len = uint32(0)
  13338. /* string */
  13339. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(string_len)*libc.Uint64FromInt64(2))
  13340. xcb_tmp += uintptr(xcb_block_len)
  13341. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13342. /* insert padding */
  13343. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13344. xcb_buffer_len += xcb_block_len + xcb_pad
  13345. if uint32(0) != xcb_pad {
  13346. xcb_tmp += uintptr(xcb_pad)
  13347. xcb_pad = uint32(0)
  13348. }
  13349. xcb_block_len = uint32(0)
  13350. return libc.Int32FromUint32(xcb_buffer_len)
  13351. }
  13352. func Xxcb_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) {
  13353. bp := tls.Alloc(112)
  13354. defer tls.Free(112)
  13355. var xcb_ret Txcb_query_text_extents_cookie_t
  13356. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13357. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13358. _ = xcb_ret
  13359. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13360. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13361. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13362. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13363. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13364. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13365. /* xcb_char2b_t string */
  13366. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13367. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13368. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13369. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13370. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req100)))
  13371. return xcb_ret
  13372. }
  13373. var _xcb_req100 = Txcb_protocol_request_t{
  13374. Fcount: uint64(4),
  13375. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13376. }
  13377. 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) {
  13378. bp := tls.Alloc(112)
  13379. defer tls.Free(112)
  13380. var xcb_ret Txcb_query_text_extents_cookie_t
  13381. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13382. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13383. _ = xcb_ret
  13384. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13385. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13386. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13387. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13388. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13389. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13390. /* xcb_char2b_t string */
  13391. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13392. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13393. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13394. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13395. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req101)))
  13396. return xcb_ret
  13397. }
  13398. var _xcb_req101 = Txcb_protocol_request_t{
  13399. Fcount: uint64(4),
  13400. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13401. }
  13402. func Xxcb_query_text_extents_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_text_extents_cookie_t, e uintptr) (r uintptr) {
  13403. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13404. }
  13405. func Xxcb_str_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13406. var _aux, xcb_tmp uintptr
  13407. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13408. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13409. xcb_tmp = _buffer
  13410. _aux = _buffer
  13411. xcb_buffer_len = uint32(0)
  13412. xcb_block_len = uint32(0)
  13413. xcb_pad = uint32(0)
  13414. xcb_align_to = uint32(0)
  13415. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(1))
  13416. xcb_tmp += uintptr(xcb_block_len)
  13417. xcb_buffer_len += xcb_block_len
  13418. xcb_block_len = uint32(0)
  13419. /* name */
  13420. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_str_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  13421. xcb_tmp += uintptr(xcb_block_len)
  13422. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13423. /* insert padding */
  13424. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13425. xcb_buffer_len += xcb_block_len + xcb_pad
  13426. if uint32(0) != xcb_pad {
  13427. xcb_tmp += uintptr(xcb_pad)
  13428. xcb_pad = uint32(0)
  13429. }
  13430. xcb_block_len = uint32(0)
  13431. return libc.Int32FromUint32(xcb_buffer_len)
  13432. }
  13433. func Xxcb_str_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13434. return R + libc.UintptrFromInt32(1)
  13435. }
  13436. func Xxcb_str_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13437. return libc.Int32FromUint8((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13438. }
  13439. func Xxcb_str_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13440. var i Txcb_generic_iterator_t
  13441. _ = i
  13442. i.Fdata = R + libc.UintptrFromInt32(1) + uintptr((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13443. i.Frem = 0
  13444. i.Findex = int32(int64(i.Fdata) - int64(R))
  13445. return i
  13446. }
  13447. func Xxcb_str_next(tls *libc.TLS, i uintptr) {
  13448. var R uintptr
  13449. var child Txcb_generic_iterator_t
  13450. _, _ = R, child
  13451. R = (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata
  13452. child.Fdata = R + uintptr(Xxcb_str_sizeof(tls, R))
  13453. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata))
  13454. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Frem--
  13455. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  13456. }
  13457. func Xxcb_str_end(tls *libc.TLS, _i Txcb_str_iterator_t) (r Txcb_generic_iterator_t) {
  13458. bp := tls.Alloc(16)
  13459. defer tls.Free(16)
  13460. *(*Txcb_str_iterator_t)(unsafe.Pointer(bp)) = _i
  13461. var ret Txcb_generic_iterator_t
  13462. _ = ret
  13463. for (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  13464. Xxcb_str_next(tls, bp)
  13465. }
  13466. ret.Fdata = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Fdata
  13467. ret.Frem = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem
  13468. ret.Findex = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Findex
  13469. return ret
  13470. }
  13471. func Xxcb_list_fonts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13472. var _aux, xcb_tmp uintptr
  13473. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13474. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13475. xcb_tmp = _buffer
  13476. _aux = _buffer
  13477. xcb_buffer_len = uint32(0)
  13478. xcb_block_len = uint32(0)
  13479. xcb_pad = uint32(0)
  13480. xcb_align_to = uint32(0)
  13481. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13482. xcb_tmp += uintptr(xcb_block_len)
  13483. xcb_buffer_len += xcb_block_len
  13484. xcb_block_len = uint32(0)
  13485. /* pattern */
  13486. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13487. xcb_tmp += uintptr(xcb_block_len)
  13488. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13489. /* insert padding */
  13490. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13491. xcb_buffer_len += xcb_block_len + xcb_pad
  13492. if uint32(0) != xcb_pad {
  13493. xcb_tmp += uintptr(xcb_pad)
  13494. xcb_pad = uint32(0)
  13495. }
  13496. xcb_block_len = uint32(0)
  13497. return libc.Int32FromUint32(xcb_buffer_len)
  13498. }
  13499. 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) {
  13500. bp := tls.Alloc(112)
  13501. defer tls.Free(112)
  13502. var xcb_ret Txcb_list_fonts_cookie_t
  13503. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13504. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13505. _ = xcb_ret
  13506. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13507. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13508. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13509. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13510. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13511. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13512. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13513. /* char pattern */
  13514. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13515. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13516. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13517. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13518. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req102)))
  13519. return xcb_ret
  13520. }
  13521. var _xcb_req102 = Txcb_protocol_request_t{
  13522. Fcount: uint64(4),
  13523. Fopcode: uint8(m_XCB_LIST_FONTS),
  13524. }
  13525. 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) {
  13526. bp := tls.Alloc(112)
  13527. defer tls.Free(112)
  13528. var xcb_ret Txcb_list_fonts_cookie_t
  13529. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13530. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13531. _ = xcb_ret
  13532. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13533. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13534. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13535. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13536. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13537. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13538. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13539. /* char pattern */
  13540. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13541. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13542. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13543. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13544. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req103)))
  13545. return xcb_ret
  13546. }
  13547. var _xcb_req103 = Txcb_protocol_request_t{
  13548. Fcount: uint64(4),
  13549. Fopcode: uint8(m_XCB_LIST_FONTS),
  13550. }
  13551. func Xxcb_list_fonts_names_length(tls *libc.TLS, R uintptr) (r int32) {
  13552. return libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13553. }
  13554. func Xxcb_list_fonts_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13555. var i Txcb_str_iterator_t
  13556. _ = i
  13557. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13558. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13559. i.Findex = int32(int64(i.Fdata) - int64(R))
  13560. return i
  13561. }
  13562. func Xxcb_list_fonts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_cookie_t, e uintptr) (r uintptr) {
  13563. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13564. }
  13565. func Xxcb_list_fonts_with_info_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13566. var _aux, xcb_tmp uintptr
  13567. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13568. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13569. xcb_tmp = _buffer
  13570. _aux = _buffer
  13571. xcb_buffer_len = uint32(0)
  13572. xcb_block_len = uint32(0)
  13573. xcb_pad = uint32(0)
  13574. xcb_align_to = uint32(0)
  13575. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13576. xcb_tmp += uintptr(xcb_block_len)
  13577. xcb_buffer_len += xcb_block_len
  13578. xcb_block_len = uint32(0)
  13579. /* pattern */
  13580. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13581. xcb_tmp += uintptr(xcb_block_len)
  13582. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13583. /* insert padding */
  13584. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13585. xcb_buffer_len += xcb_block_len + xcb_pad
  13586. if uint32(0) != xcb_pad {
  13587. xcb_tmp += uintptr(xcb_pad)
  13588. xcb_pad = uint32(0)
  13589. }
  13590. xcb_block_len = uint32(0)
  13591. return libc.Int32FromUint32(xcb_buffer_len)
  13592. }
  13593. 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) {
  13594. bp := tls.Alloc(112)
  13595. defer tls.Free(112)
  13596. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13597. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13598. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13599. _ = xcb_ret
  13600. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13601. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13602. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13603. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13604. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13606. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13607. /* char pattern */
  13608. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13609. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13610. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13611. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13612. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req104)))
  13613. return xcb_ret
  13614. }
  13615. var _xcb_req104 = Txcb_protocol_request_t{
  13616. Fcount: uint64(4),
  13617. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13618. }
  13619. 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) {
  13620. bp := tls.Alloc(112)
  13621. defer tls.Free(112)
  13622. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13623. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13624. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13625. _ = xcb_ret
  13626. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13627. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13628. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13629. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13630. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13631. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13632. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13633. /* char pattern */
  13634. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13635. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13636. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13637. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13638. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req105)))
  13639. return xcb_ret
  13640. }
  13641. var _xcb_req105 = Txcb_protocol_request_t{
  13642. Fcount: uint64(4),
  13643. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13644. }
  13645. func Xxcb_list_fonts_with_info_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13646. return R + libc.UintptrFromInt32(1)*60
  13647. }
  13648. func Xxcb_list_fonts_with_info_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13649. return libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13650. }
  13651. func Xxcb_list_fonts_with_info_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13652. var i Txcb_fontprop_iterator_t
  13653. _ = i
  13654. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13655. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13656. i.Findex = int32(int64(i.Fdata) - int64(R))
  13657. return i
  13658. }
  13659. func Xxcb_list_fonts_with_info_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13660. var prev Txcb_generic_iterator_t
  13661. _ = prev
  13662. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13663. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  13664. }
  13665. func Xxcb_list_fonts_with_info_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13666. return libc.Int32FromUint8((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13667. }
  13668. func Xxcb_list_fonts_with_info_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13669. var i, prev Txcb_generic_iterator_t
  13670. _, _ = i, prev
  13671. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13672. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + uintptr((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13673. i.Frem = 0
  13674. i.Findex = int32(int64(i.Fdata) - int64(R))
  13675. return i
  13676. }
  13677. func Xxcb_list_fonts_with_info_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_with_info_cookie_t, e uintptr) (r uintptr) {
  13678. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13679. }
  13680. func Xxcb_set_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13681. var _aux, xcb_tmp uintptr
  13682. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13683. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13684. xcb_tmp = _buffer
  13685. _aux = _buffer
  13686. xcb_buffer_len = uint32(0)
  13687. xcb_block_len = uint32(0)
  13688. xcb_pad = uint32(0)
  13689. xcb_align_to = uint32(0)
  13690. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13691. xcb_tmp += uintptr(xcb_block_len)
  13692. xcb_buffer_len += xcb_block_len
  13693. xcb_block_len = uint32(0)
  13694. /* font */
  13695. i = uint32(0)
  13696. for {
  13697. if !(i < uint32((*Txcb_set_font_path_request_t)(unsafe.Pointer(_aux)).Ffont_qty)) {
  13698. break
  13699. }
  13700. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13701. xcb_block_len += xcb_tmp_len
  13702. xcb_tmp += uintptr(xcb_tmp_len)
  13703. goto _1
  13704. _1:
  13705. ;
  13706. i++
  13707. }
  13708. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13709. /* insert padding */
  13710. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13711. xcb_buffer_len += xcb_block_len + xcb_pad
  13712. if uint32(0) != xcb_pad {
  13713. xcb_tmp += uintptr(xcb_pad)
  13714. xcb_pad = uint32(0)
  13715. }
  13716. xcb_block_len = uint32(0)
  13717. return libc.Int32FromUint32(xcb_buffer_len)
  13718. }
  13719. func Xxcb_set_font_path_checked(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13720. bp := tls.Alloc(112)
  13721. defer tls.Free(112)
  13722. var i, xcb_tmp_len uint32
  13723. var xcb_ret Txcb_void_cookie_t
  13724. var xcb_tmp uintptr
  13725. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13726. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13727. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13728. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13729. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13730. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13731. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13732. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13733. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13734. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13735. /* xcb_str_t font */
  13736. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13738. xcb_tmp = font
  13739. i = uint32(0)
  13740. for {
  13741. if !(i < uint32(font_qty)) {
  13742. break
  13743. }
  13744. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13745. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13746. xcb_tmp += uintptr(xcb_tmp_len)
  13747. goto _1
  13748. _1:
  13749. ;
  13750. i++
  13751. }
  13752. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13753. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13754. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req106)))
  13755. return xcb_ret
  13756. }
  13757. var _xcb_req106 = Txcb_protocol_request_t{
  13758. Fcount: uint64(4),
  13759. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13760. Fisvoid: uint8(1),
  13761. }
  13762. func Xxcb_set_font_path(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13763. bp := tls.Alloc(112)
  13764. defer tls.Free(112)
  13765. var i, xcb_tmp_len uint32
  13766. var xcb_ret Txcb_void_cookie_t
  13767. var xcb_tmp uintptr
  13768. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13769. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13770. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13771. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13772. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13773. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13774. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13775. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13776. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13777. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13778. /* xcb_str_t font */
  13779. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13780. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13781. xcb_tmp = font
  13782. i = uint32(0)
  13783. for {
  13784. if !(i < uint32(font_qty)) {
  13785. break
  13786. }
  13787. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13788. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13789. xcb_tmp += uintptr(xcb_tmp_len)
  13790. goto _1
  13791. _1:
  13792. ;
  13793. i++
  13794. }
  13795. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13797. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req107)))
  13798. return xcb_ret
  13799. }
  13800. var _xcb_req107 = Txcb_protocol_request_t{
  13801. Fcount: uint64(4),
  13802. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13803. Fisvoid: uint8(1),
  13804. }
  13805. func Xxcb_set_font_path_font_length(tls *libc.TLS, R uintptr) (r int32) {
  13806. return libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13807. }
  13808. func Xxcb_set_font_path_font_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13809. var i Txcb_str_iterator_t
  13810. _ = i
  13811. i.Fdata = R + libc.UintptrFromInt32(1)*8
  13812. i.Frem = libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13813. i.Findex = int32(int64(i.Fdata) - int64(R))
  13814. return i
  13815. }
  13816. func Xxcb_get_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13817. var _aux, xcb_tmp uintptr
  13818. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13819. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13820. xcb_tmp = _buffer
  13821. _aux = _buffer
  13822. xcb_buffer_len = uint32(0)
  13823. xcb_block_len = uint32(0)
  13824. xcb_pad = uint32(0)
  13825. xcb_align_to = uint32(0)
  13826. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  13827. xcb_tmp += uintptr(xcb_block_len)
  13828. xcb_buffer_len += xcb_block_len
  13829. xcb_block_len = uint32(0)
  13830. /* path */
  13831. i = uint32(0)
  13832. for {
  13833. if !(i < uint32((*Txcb_get_font_path_reply_t)(unsafe.Pointer(_aux)).Fpath_len)) {
  13834. break
  13835. }
  13836. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13837. xcb_block_len += xcb_tmp_len
  13838. xcb_tmp += uintptr(xcb_tmp_len)
  13839. goto _1
  13840. _1:
  13841. ;
  13842. i++
  13843. }
  13844. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13845. /* insert padding */
  13846. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13847. xcb_buffer_len += xcb_block_len + xcb_pad
  13848. if uint32(0) != xcb_pad {
  13849. xcb_tmp += uintptr(xcb_pad)
  13850. xcb_pad = uint32(0)
  13851. }
  13852. xcb_block_len = uint32(0)
  13853. return libc.Int32FromUint32(xcb_buffer_len)
  13854. }
  13855. func Xxcb_get_font_path(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13856. bp := tls.Alloc(80)
  13857. defer tls.Free(80)
  13858. var xcb_ret Txcb_get_font_path_cookie_t
  13859. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13860. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13861. _ = xcb_ret
  13862. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13863. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13865. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13867. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req108)))
  13868. return xcb_ret
  13869. }
  13870. var _xcb_req108 = Txcb_protocol_request_t{
  13871. Fcount: uint64(2),
  13872. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13873. }
  13874. func Xxcb_get_font_path_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13875. bp := tls.Alloc(80)
  13876. defer tls.Free(80)
  13877. var xcb_ret Txcb_get_font_path_cookie_t
  13878. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13879. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13880. _ = xcb_ret
  13881. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13882. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13883. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13884. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13886. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req109)))
  13887. return xcb_ret
  13888. }
  13889. var _xcb_req109 = Txcb_protocol_request_t{
  13890. Fcount: uint64(2),
  13891. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13892. }
  13893. func Xxcb_get_font_path_path_length(tls *libc.TLS, R uintptr) (r int32) {
  13894. return libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13895. }
  13896. func Xxcb_get_font_path_path_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13897. var i Txcb_str_iterator_t
  13898. _ = i
  13899. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13900. i.Frem = libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13901. i.Findex = int32(int64(i.Fdata) - int64(R))
  13902. return i
  13903. }
  13904. func Xxcb_get_font_path_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_font_path_cookie_t, e uintptr) (r uintptr) {
  13905. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13906. }
  13907. 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) {
  13908. bp := tls.Alloc(80)
  13909. defer tls.Free(80)
  13910. var xcb_ret Txcb_void_cookie_t
  13911. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13912. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13913. _ = xcb_ret
  13914. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13915. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13916. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13917. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13918. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13919. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13920. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13921. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13922. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13923. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req110)))
  13924. return xcb_ret
  13925. }
  13926. var _xcb_req110 = Txcb_protocol_request_t{
  13927. Fcount: uint64(2),
  13928. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13929. Fisvoid: uint8(1),
  13930. }
  13931. 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) {
  13932. bp := tls.Alloc(80)
  13933. defer tls.Free(80)
  13934. var xcb_ret Txcb_void_cookie_t
  13935. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13936. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13937. _ = xcb_ret
  13938. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13939. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13940. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13941. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13942. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13943. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13944. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13945. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13946. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13947. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req111)))
  13948. return xcb_ret
  13949. }
  13950. var _xcb_req111 = Txcb_protocol_request_t{
  13951. Fcount: uint64(2),
  13952. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13953. Fisvoid: uint8(1),
  13954. }
  13955. func Xxcb_free_pixmap_checked(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13956. bp := tls.Alloc(80)
  13957. defer tls.Free(80)
  13958. var xcb_ret Txcb_void_cookie_t
  13959. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13960. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13961. _ = xcb_ret
  13962. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13963. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13967. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13968. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req112)))
  13969. return xcb_ret
  13970. }
  13971. var _xcb_req112 = Txcb_protocol_request_t{
  13972. Fcount: uint64(2),
  13973. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13974. Fisvoid: uint8(1),
  13975. }
  13976. func Xxcb_free_pixmap(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13977. bp := tls.Alloc(80)
  13978. defer tls.Free(80)
  13979. var xcb_ret Txcb_void_cookie_t
  13980. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13981. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13982. _ = xcb_ret
  13983. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13984. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13986. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13987. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13988. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13989. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req113)))
  13990. return xcb_ret
  13991. }
  13992. var _xcb_req113 = Txcb_protocol_request_t{
  13993. Fcount: uint64(2),
  13994. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13995. Fisvoid: uint8(1),
  13996. }
  13997. func Xxcb_create_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  13998. bp := tls.Alloc(16)
  13999. defer tls.Free(16)
  14000. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14001. var xcb_out, xcb_tmp uintptr
  14002. var xcb_parts [24]Tiovec
  14003. var _ /* xcb_pad0 at bp+0 */ [3]int8
  14004. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14005. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14006. xcb_buffer_len = uint32(0)
  14007. xcb_align_to = uint32(0)
  14008. xcb_padding_offset = uint32(0)
  14009. xcb_pad = uint32(0)
  14010. *(*[3]int8)(unsafe.Pointer(bp)) = [3]int8{}
  14011. xcb_parts_idx = uint32(0)
  14012. xcb_block_len = uint32(0)
  14013. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14014. /* xcb_create_gc_value_list_t.function */
  14015. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14016. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14017. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14018. xcb_parts_idx++
  14019. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14020. }
  14021. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14022. /* xcb_create_gc_value_list_t.plane_mask */
  14023. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14024. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14025. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14026. xcb_parts_idx++
  14027. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14028. }
  14029. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14030. /* xcb_create_gc_value_list_t.foreground */
  14031. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14032. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14033. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14034. xcb_parts_idx++
  14035. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14036. }
  14037. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14038. /* xcb_create_gc_value_list_t.background */
  14039. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14040. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14041. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14042. xcb_parts_idx++
  14043. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14044. }
  14045. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14046. /* xcb_create_gc_value_list_t.line_width */
  14047. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14048. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14049. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14050. xcb_parts_idx++
  14051. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14052. }
  14053. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14054. /* xcb_create_gc_value_list_t.line_style */
  14055. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14056. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14057. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14058. xcb_parts_idx++
  14059. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14060. }
  14061. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14062. /* xcb_create_gc_value_list_t.cap_style */
  14063. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14064. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14065. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14066. xcb_parts_idx++
  14067. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14068. }
  14069. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14070. /* xcb_create_gc_value_list_t.join_style */
  14071. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14072. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14073. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14074. xcb_parts_idx++
  14075. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14076. }
  14077. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14078. /* xcb_create_gc_value_list_t.fill_style */
  14079. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14080. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14081. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14082. xcb_parts_idx++
  14083. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14084. }
  14085. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14086. /* xcb_create_gc_value_list_t.fill_rule */
  14087. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14088. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14089. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14090. xcb_parts_idx++
  14091. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14092. }
  14093. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14094. /* xcb_create_gc_value_list_t.tile */
  14095. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14096. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14097. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14098. xcb_parts_idx++
  14099. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14100. }
  14101. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14102. /* xcb_create_gc_value_list_t.stipple */
  14103. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14104. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14105. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14106. xcb_parts_idx++
  14107. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14108. }
  14109. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14110. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14111. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14112. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14113. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14114. xcb_parts_idx++
  14115. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14116. }
  14117. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14118. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14119. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14120. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14121. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14122. xcb_parts_idx++
  14123. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14124. }
  14125. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14126. /* xcb_create_gc_value_list_t.font */
  14127. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14128. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14129. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14130. xcb_parts_idx++
  14131. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14132. }
  14133. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14134. /* xcb_create_gc_value_list_t.subwindow_mode */
  14135. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14136. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14137. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14138. xcb_parts_idx++
  14139. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14140. }
  14141. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14142. /* xcb_create_gc_value_list_t.graphics_exposures */
  14143. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14144. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14145. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14146. xcb_parts_idx++
  14147. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14148. }
  14149. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14150. /* xcb_create_gc_value_list_t.clip_x_origin */
  14151. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14152. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14153. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14154. xcb_parts_idx++
  14155. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14156. }
  14157. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14158. /* xcb_create_gc_value_list_t.clip_y_origin */
  14159. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14160. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14161. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14162. xcb_parts_idx++
  14163. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14164. }
  14165. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14166. /* xcb_create_gc_value_list_t.clip_mask */
  14167. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14168. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14169. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14170. xcb_parts_idx++
  14171. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14172. }
  14173. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14174. /* xcb_create_gc_value_list_t.dash_offset */
  14175. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14176. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14177. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14178. xcb_parts_idx++
  14179. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14180. }
  14181. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14182. /* xcb_create_gc_value_list_t.dashes */
  14183. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14184. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14185. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14186. xcb_parts_idx++
  14187. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14188. }
  14189. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14190. /* xcb_create_gc_value_list_t.arc_mode */
  14191. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14192. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14193. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14194. xcb_parts_idx++
  14195. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14196. }
  14197. /* insert padding */
  14198. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14199. xcb_buffer_len += xcb_block_len + xcb_pad
  14200. if uint32(0) != xcb_pad {
  14201. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14202. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14203. xcb_parts_idx++
  14204. xcb_pad = uint32(0)
  14205. }
  14206. xcb_block_len = uint32(0)
  14207. xcb_padding_offset = uint32(0)
  14208. if libc.UintptrFromInt32(0) == xcb_out {
  14209. /* allocate memory */
  14210. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14211. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14212. }
  14213. xcb_tmp = xcb_out
  14214. i = uint32(0)
  14215. for {
  14216. if !(i < xcb_parts_idx) {
  14217. break
  14218. }
  14219. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14220. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14221. }
  14222. if uint64(0) != xcb_parts[i].Fiov_len {
  14223. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14224. }
  14225. goto _1
  14226. _1:
  14227. ;
  14228. i++
  14229. }
  14230. return libc.Int32FromUint32(xcb_buffer_len)
  14231. }
  14232. func Xxcb_create_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14233. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14234. var xcb_tmp uintptr
  14235. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14236. xcb_tmp = _buffer
  14237. xcb_buffer_len = uint32(0)
  14238. xcb_block_len = uint32(0)
  14239. xcb_pad = uint32(0)
  14240. xcb_align_to = uint32(0)
  14241. xcb_padding_offset = uint32(0)
  14242. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14243. /* xcb_create_gc_value_list_t.function */
  14244. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14245. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14246. xcb_tmp += uintptr(4)
  14247. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14248. }
  14249. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14250. /* xcb_create_gc_value_list_t.plane_mask */
  14251. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14252. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14253. xcb_tmp += uintptr(4)
  14254. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14255. }
  14256. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14257. /* xcb_create_gc_value_list_t.foreground */
  14258. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14259. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14260. xcb_tmp += uintptr(4)
  14261. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14262. }
  14263. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14264. /* xcb_create_gc_value_list_t.background */
  14265. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14266. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14267. xcb_tmp += uintptr(4)
  14268. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14269. }
  14270. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14271. /* xcb_create_gc_value_list_t.line_width */
  14272. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14273. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14274. xcb_tmp += uintptr(4)
  14275. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14276. }
  14277. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14278. /* xcb_create_gc_value_list_t.line_style */
  14279. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14280. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14281. xcb_tmp += uintptr(4)
  14282. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14283. }
  14284. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14285. /* xcb_create_gc_value_list_t.cap_style */
  14286. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14287. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14288. xcb_tmp += uintptr(4)
  14289. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14290. }
  14291. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14292. /* xcb_create_gc_value_list_t.join_style */
  14293. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14294. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14295. xcb_tmp += uintptr(4)
  14296. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14297. }
  14298. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14299. /* xcb_create_gc_value_list_t.fill_style */
  14300. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14301. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14302. xcb_tmp += uintptr(4)
  14303. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14304. }
  14305. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14306. /* xcb_create_gc_value_list_t.fill_rule */
  14307. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14308. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14309. xcb_tmp += uintptr(4)
  14310. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14311. }
  14312. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14313. /* xcb_create_gc_value_list_t.tile */
  14314. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14315. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14316. xcb_tmp += uintptr(4)
  14317. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14318. }
  14319. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14320. /* xcb_create_gc_value_list_t.stipple */
  14321. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14322. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14323. xcb_tmp += uintptr(4)
  14324. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14325. }
  14326. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14327. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14328. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14329. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14330. xcb_tmp += uintptr(4)
  14331. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14332. }
  14333. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14334. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14335. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14336. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14337. xcb_tmp += uintptr(4)
  14338. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14339. }
  14340. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14341. /* xcb_create_gc_value_list_t.font */
  14342. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14343. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14344. xcb_tmp += uintptr(4)
  14345. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14346. }
  14347. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14348. /* xcb_create_gc_value_list_t.subwindow_mode */
  14349. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14350. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14351. xcb_tmp += uintptr(4)
  14352. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14353. }
  14354. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14355. /* xcb_create_gc_value_list_t.graphics_exposures */
  14356. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14357. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14358. xcb_tmp += uintptr(4)
  14359. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14360. }
  14361. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14362. /* xcb_create_gc_value_list_t.clip_x_origin */
  14363. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14364. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14365. xcb_tmp += uintptr(4)
  14366. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14367. }
  14368. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14369. /* xcb_create_gc_value_list_t.clip_y_origin */
  14370. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14371. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14372. xcb_tmp += uintptr(4)
  14373. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14374. }
  14375. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14376. /* xcb_create_gc_value_list_t.clip_mask */
  14377. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14378. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14379. xcb_tmp += uintptr(4)
  14380. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14381. }
  14382. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14383. /* xcb_create_gc_value_list_t.dash_offset */
  14384. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14385. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14386. xcb_tmp += uintptr(4)
  14387. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14388. }
  14389. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14390. /* xcb_create_gc_value_list_t.dashes */
  14391. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14392. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14393. xcb_tmp += uintptr(4)
  14394. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14395. }
  14396. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14397. /* xcb_create_gc_value_list_t.arc_mode */
  14398. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14399. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14400. xcb_tmp += uintptr(4)
  14401. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14402. }
  14403. /* insert padding */
  14404. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14405. xcb_buffer_len += xcb_block_len + xcb_pad
  14406. if uint32(0) != xcb_pad {
  14407. xcb_tmp += uintptr(xcb_pad)
  14408. xcb_pad = uint32(0)
  14409. }
  14410. xcb_block_len = uint32(0)
  14411. xcb_padding_offset = uint32(0)
  14412. return libc.Int32FromUint32(xcb_buffer_len)
  14413. }
  14414. func Xxcb_create_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14415. bp := tls.Alloc(96)
  14416. defer tls.Free(96)
  14417. var _ /* _aux at bp+0 */ Txcb_create_gc_value_list_t
  14418. return Xxcb_create_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14419. }
  14420. func Xxcb_create_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14421. var _aux, xcb_tmp uintptr
  14422. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14423. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14424. xcb_tmp = _buffer
  14425. _aux = _buffer
  14426. xcb_buffer_len = uint32(0)
  14427. xcb_block_len = uint32(0)
  14428. xcb_pad = uint32(0)
  14429. xcb_align_to = uint32(0)
  14430. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  14431. xcb_tmp += uintptr(xcb_block_len)
  14432. xcb_buffer_len += xcb_block_len
  14433. xcb_block_len = uint32(0)
  14434. /* value_list */
  14435. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14436. xcb_tmp += uintptr(xcb_block_len)
  14437. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14438. /* insert padding */
  14439. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14440. xcb_buffer_len += xcb_block_len + xcb_pad
  14441. if uint32(0) != xcb_pad {
  14442. xcb_tmp += uintptr(xcb_pad)
  14443. xcb_pad = uint32(0)
  14444. }
  14445. xcb_block_len = uint32(0)
  14446. return libc.Int32FromUint32(xcb_buffer_len)
  14447. }
  14448. 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) {
  14449. bp := tls.Alloc(96)
  14450. defer tls.Free(96)
  14451. var xcb_ret Txcb_void_cookie_t
  14452. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14453. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14454. _ = xcb_ret
  14455. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14456. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14457. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14458. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14459. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14460. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14461. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14462. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14463. /* xcb_create_gc_value_list_t value_list */
  14464. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14465. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14466. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req114)))
  14467. return xcb_ret
  14468. }
  14469. var _xcb_req114 = Txcb_protocol_request_t{
  14470. Fcount: uint64(3),
  14471. Fopcode: uint8(m_XCB_CREATE_GC),
  14472. Fisvoid: uint8(1),
  14473. }
  14474. 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) {
  14475. bp := tls.Alloc(96)
  14476. defer tls.Free(96)
  14477. var xcb_ret Txcb_void_cookie_t
  14478. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14479. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14480. _ = xcb_ret
  14481. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14482. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14483. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14484. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14485. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14486. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14487. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14488. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14489. /* xcb_create_gc_value_list_t value_list */
  14490. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14491. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14492. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req115)))
  14493. return xcb_ret
  14494. }
  14495. var _xcb_req115 = Txcb_protocol_request_t{
  14496. Fcount: uint64(3),
  14497. Fopcode: uint8(m_XCB_CREATE_GC),
  14498. Fisvoid: uint8(1),
  14499. }
  14500. 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) {
  14501. bp := tls.Alloc(112)
  14502. defer tls.Free(112)
  14503. var xcb_ret Txcb_void_cookie_t
  14504. var _ /* xcb_aux0 at bp+96 */ uintptr
  14505. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14506. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14507. _ = xcb_ret
  14508. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14509. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14510. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14511. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14512. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14513. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14514. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14515. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14516. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14517. /* xcb_create_gc_value_list_t value_list */
  14518. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14519. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14520. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req116)))
  14521. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14522. return xcb_ret
  14523. }
  14524. var _xcb_req116 = Txcb_protocol_request_t{
  14525. Fcount: uint64(3),
  14526. Fopcode: uint8(m_XCB_CREATE_GC),
  14527. Fisvoid: uint8(1),
  14528. }
  14529. 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) {
  14530. bp := tls.Alloc(112)
  14531. defer tls.Free(112)
  14532. var xcb_ret Txcb_void_cookie_t
  14533. var _ /* xcb_aux0 at bp+96 */ uintptr
  14534. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14535. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14536. _ = xcb_ret
  14537. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14538. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14539. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14540. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14541. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14542. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14543. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14544. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14545. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14546. /* xcb_create_gc_value_list_t value_list */
  14547. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14548. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14549. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req117)))
  14550. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14551. return xcb_ret
  14552. }
  14553. var _xcb_req117 = Txcb_protocol_request_t{
  14554. Fcount: uint64(3),
  14555. Fopcode: uint8(m_XCB_CREATE_GC),
  14556. Fisvoid: uint8(1),
  14557. }
  14558. func Xxcb_create_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  14559. return R + libc.UintptrFromInt32(1)*16
  14560. }
  14561. func Xxcb_change_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14562. bp := tls.Alloc(16)
  14563. defer tls.Free(16)
  14564. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14565. var xcb_out, xcb_tmp uintptr
  14566. var xcb_parts [24]Tiovec
  14567. var _ /* xcb_pad0 at bp+0 */ [3]int8
  14568. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14569. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14570. xcb_buffer_len = uint32(0)
  14571. xcb_align_to = uint32(0)
  14572. xcb_padding_offset = uint32(0)
  14573. xcb_pad = uint32(0)
  14574. *(*[3]int8)(unsafe.Pointer(bp)) = [3]int8{}
  14575. xcb_parts_idx = uint32(0)
  14576. xcb_block_len = uint32(0)
  14577. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14578. /* xcb_change_gc_value_list_t.function */
  14579. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14580. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14581. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14582. xcb_parts_idx++
  14583. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14584. }
  14585. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14586. /* xcb_change_gc_value_list_t.plane_mask */
  14587. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14588. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14589. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14590. xcb_parts_idx++
  14591. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14592. }
  14593. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14594. /* xcb_change_gc_value_list_t.foreground */
  14595. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14596. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14597. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14598. xcb_parts_idx++
  14599. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14600. }
  14601. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14602. /* xcb_change_gc_value_list_t.background */
  14603. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14604. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14605. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14606. xcb_parts_idx++
  14607. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14608. }
  14609. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14610. /* xcb_change_gc_value_list_t.line_width */
  14611. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14612. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14613. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14614. xcb_parts_idx++
  14615. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14616. }
  14617. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14618. /* xcb_change_gc_value_list_t.line_style */
  14619. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14620. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14621. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14622. xcb_parts_idx++
  14623. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14624. }
  14625. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14626. /* xcb_change_gc_value_list_t.cap_style */
  14627. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14628. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14629. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14630. xcb_parts_idx++
  14631. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14632. }
  14633. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14634. /* xcb_change_gc_value_list_t.join_style */
  14635. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14636. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14637. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14638. xcb_parts_idx++
  14639. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14640. }
  14641. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14642. /* xcb_change_gc_value_list_t.fill_style */
  14643. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14644. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14645. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14646. xcb_parts_idx++
  14647. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14648. }
  14649. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14650. /* xcb_change_gc_value_list_t.fill_rule */
  14651. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14652. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14653. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14654. xcb_parts_idx++
  14655. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14656. }
  14657. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14658. /* xcb_change_gc_value_list_t.tile */
  14659. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14660. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14661. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14662. xcb_parts_idx++
  14663. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14664. }
  14665. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14666. /* xcb_change_gc_value_list_t.stipple */
  14667. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14668. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14669. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14670. xcb_parts_idx++
  14671. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14672. }
  14673. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14674. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14675. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14676. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14677. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14678. xcb_parts_idx++
  14679. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14680. }
  14681. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14682. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14683. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14684. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14685. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14686. xcb_parts_idx++
  14687. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14688. }
  14689. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14690. /* xcb_change_gc_value_list_t.font */
  14691. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14692. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14693. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14694. xcb_parts_idx++
  14695. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14696. }
  14697. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14698. /* xcb_change_gc_value_list_t.subwindow_mode */
  14699. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14700. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14701. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14702. xcb_parts_idx++
  14703. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14704. }
  14705. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14706. /* xcb_change_gc_value_list_t.graphics_exposures */
  14707. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14708. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14709. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14710. xcb_parts_idx++
  14711. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14712. }
  14713. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14714. /* xcb_change_gc_value_list_t.clip_x_origin */
  14715. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14716. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14717. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14718. xcb_parts_idx++
  14719. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14720. }
  14721. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14722. /* xcb_change_gc_value_list_t.clip_y_origin */
  14723. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14724. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14725. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14726. xcb_parts_idx++
  14727. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14728. }
  14729. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14730. /* xcb_change_gc_value_list_t.clip_mask */
  14731. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14732. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14733. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14734. xcb_parts_idx++
  14735. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14736. }
  14737. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14738. /* xcb_change_gc_value_list_t.dash_offset */
  14739. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14740. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14741. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14742. xcb_parts_idx++
  14743. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14744. }
  14745. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14746. /* xcb_change_gc_value_list_t.dashes */
  14747. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14748. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14749. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14750. xcb_parts_idx++
  14751. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14752. }
  14753. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14754. /* xcb_change_gc_value_list_t.arc_mode */
  14755. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14756. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14757. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14758. xcb_parts_idx++
  14759. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14760. }
  14761. /* insert padding */
  14762. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14763. xcb_buffer_len += xcb_block_len + xcb_pad
  14764. if uint32(0) != xcb_pad {
  14765. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14766. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14767. xcb_parts_idx++
  14768. xcb_pad = uint32(0)
  14769. }
  14770. xcb_block_len = uint32(0)
  14771. xcb_padding_offset = uint32(0)
  14772. if libc.UintptrFromInt32(0) == xcb_out {
  14773. /* allocate memory */
  14774. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14775. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14776. }
  14777. xcb_tmp = xcb_out
  14778. i = uint32(0)
  14779. for {
  14780. if !(i < xcb_parts_idx) {
  14781. break
  14782. }
  14783. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14784. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14785. }
  14786. if uint64(0) != xcb_parts[i].Fiov_len {
  14787. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14788. }
  14789. goto _1
  14790. _1:
  14791. ;
  14792. i++
  14793. }
  14794. return libc.Int32FromUint32(xcb_buffer_len)
  14795. }
  14796. func Xxcb_change_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14797. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14798. var xcb_tmp uintptr
  14799. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14800. xcb_tmp = _buffer
  14801. xcb_buffer_len = uint32(0)
  14802. xcb_block_len = uint32(0)
  14803. xcb_pad = uint32(0)
  14804. xcb_align_to = uint32(0)
  14805. xcb_padding_offset = uint32(0)
  14806. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14807. /* xcb_change_gc_value_list_t.function */
  14808. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14809. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14810. xcb_tmp += uintptr(4)
  14811. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14812. }
  14813. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14814. /* xcb_change_gc_value_list_t.plane_mask */
  14815. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14816. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14817. xcb_tmp += uintptr(4)
  14818. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14819. }
  14820. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14821. /* xcb_change_gc_value_list_t.foreground */
  14822. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14823. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14824. xcb_tmp += uintptr(4)
  14825. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14826. }
  14827. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14828. /* xcb_change_gc_value_list_t.background */
  14829. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14830. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14831. xcb_tmp += uintptr(4)
  14832. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14833. }
  14834. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14835. /* xcb_change_gc_value_list_t.line_width */
  14836. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14837. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14838. xcb_tmp += uintptr(4)
  14839. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14840. }
  14841. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14842. /* xcb_change_gc_value_list_t.line_style */
  14843. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14844. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14845. xcb_tmp += uintptr(4)
  14846. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14847. }
  14848. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14849. /* xcb_change_gc_value_list_t.cap_style */
  14850. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14851. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14852. xcb_tmp += uintptr(4)
  14853. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14854. }
  14855. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14856. /* xcb_change_gc_value_list_t.join_style */
  14857. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14858. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14859. xcb_tmp += uintptr(4)
  14860. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14861. }
  14862. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14863. /* xcb_change_gc_value_list_t.fill_style */
  14864. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14865. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14866. xcb_tmp += uintptr(4)
  14867. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14868. }
  14869. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14870. /* xcb_change_gc_value_list_t.fill_rule */
  14871. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14872. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14873. xcb_tmp += uintptr(4)
  14874. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14875. }
  14876. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14877. /* xcb_change_gc_value_list_t.tile */
  14878. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14879. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14880. xcb_tmp += uintptr(4)
  14881. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14882. }
  14883. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14884. /* xcb_change_gc_value_list_t.stipple */
  14885. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14886. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14887. xcb_tmp += uintptr(4)
  14888. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14889. }
  14890. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14891. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14892. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14893. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14894. xcb_tmp += uintptr(4)
  14895. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14896. }
  14897. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14898. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14899. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14900. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14901. xcb_tmp += uintptr(4)
  14902. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14903. }
  14904. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14905. /* xcb_change_gc_value_list_t.font */
  14906. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14907. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14908. xcb_tmp += uintptr(4)
  14909. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14910. }
  14911. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14912. /* xcb_change_gc_value_list_t.subwindow_mode */
  14913. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14914. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14915. xcb_tmp += uintptr(4)
  14916. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14917. }
  14918. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14919. /* xcb_change_gc_value_list_t.graphics_exposures */
  14920. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14921. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14922. xcb_tmp += uintptr(4)
  14923. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14924. }
  14925. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14926. /* xcb_change_gc_value_list_t.clip_x_origin */
  14927. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14928. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14929. xcb_tmp += uintptr(4)
  14930. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14931. }
  14932. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14933. /* xcb_change_gc_value_list_t.clip_y_origin */
  14934. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14935. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14936. xcb_tmp += uintptr(4)
  14937. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14938. }
  14939. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14940. /* xcb_change_gc_value_list_t.clip_mask */
  14941. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14942. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14943. xcb_tmp += uintptr(4)
  14944. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14945. }
  14946. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14947. /* xcb_change_gc_value_list_t.dash_offset */
  14948. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14949. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14950. xcb_tmp += uintptr(4)
  14951. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14952. }
  14953. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14954. /* xcb_change_gc_value_list_t.dashes */
  14955. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14956. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14957. xcb_tmp += uintptr(4)
  14958. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14959. }
  14960. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14961. /* xcb_change_gc_value_list_t.arc_mode */
  14962. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14963. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14964. xcb_tmp += uintptr(4)
  14965. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14966. }
  14967. /* insert padding */
  14968. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14969. xcb_buffer_len += xcb_block_len + xcb_pad
  14970. if uint32(0) != xcb_pad {
  14971. xcb_tmp += uintptr(xcb_pad)
  14972. xcb_pad = uint32(0)
  14973. }
  14974. xcb_block_len = uint32(0)
  14975. xcb_padding_offset = uint32(0)
  14976. return libc.Int32FromUint32(xcb_buffer_len)
  14977. }
  14978. func Xxcb_change_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14979. bp := tls.Alloc(96)
  14980. defer tls.Free(96)
  14981. var _ /* _aux at bp+0 */ Txcb_change_gc_value_list_t
  14982. return Xxcb_change_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14983. }
  14984. func Xxcb_change_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14985. var _aux, xcb_tmp uintptr
  14986. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14987. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14988. xcb_tmp = _buffer
  14989. _aux = _buffer
  14990. xcb_buffer_len = uint32(0)
  14991. xcb_block_len = uint32(0)
  14992. xcb_pad = uint32(0)
  14993. xcb_align_to = uint32(0)
  14994. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  14995. xcb_tmp += uintptr(xcb_block_len)
  14996. xcb_buffer_len += xcb_block_len
  14997. xcb_block_len = uint32(0)
  14998. /* value_list */
  14999. xcb_block_len += libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  15000. xcb_tmp += uintptr(xcb_block_len)
  15001. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  15002. /* insert padding */
  15003. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15004. xcb_buffer_len += xcb_block_len + xcb_pad
  15005. if uint32(0) != xcb_pad {
  15006. xcb_tmp += uintptr(xcb_pad)
  15007. xcb_pad = uint32(0)
  15008. }
  15009. xcb_block_len = uint32(0)
  15010. return libc.Int32FromUint32(xcb_buffer_len)
  15011. }
  15012. 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) {
  15013. bp := tls.Alloc(96)
  15014. defer tls.Free(96)
  15015. var xcb_ret Txcb_void_cookie_t
  15016. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15017. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15018. _ = xcb_ret
  15019. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15020. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15021. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15022. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15023. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15024. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15025. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15026. /* xcb_change_gc_value_list_t value_list */
  15027. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  15028. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  15029. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req118)))
  15030. return xcb_ret
  15031. }
  15032. var _xcb_req118 = Txcb_protocol_request_t{
  15033. Fcount: uint64(3),
  15034. Fopcode: uint8(m_XCB_CHANGE_GC),
  15035. Fisvoid: uint8(1),
  15036. }
  15037. 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) {
  15038. bp := tls.Alloc(96)
  15039. defer tls.Free(96)
  15040. var xcb_ret Txcb_void_cookie_t
  15041. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15042. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15043. _ = xcb_ret
  15044. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15045. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15046. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15047. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15048. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15049. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15050. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15051. /* xcb_change_gc_value_list_t value_list */
  15052. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  15053. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  15054. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req119)))
  15055. return xcb_ret
  15056. }
  15057. var _xcb_req119 = Txcb_protocol_request_t{
  15058. Fcount: uint64(3),
  15059. Fopcode: uint8(m_XCB_CHANGE_GC),
  15060. Fisvoid: uint8(1),
  15061. }
  15062. 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) {
  15063. bp := tls.Alloc(112)
  15064. defer tls.Free(112)
  15065. var xcb_ret Txcb_void_cookie_t
  15066. var _ /* xcb_aux0 at bp+96 */ uintptr
  15067. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15068. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15069. _ = xcb_ret
  15070. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15071. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15072. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15073. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15074. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15075. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15076. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15077. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15078. /* xcb_change_gc_value_list_t value_list */
  15079. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15080. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15081. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req120)))
  15082. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15083. return xcb_ret
  15084. }
  15085. var _xcb_req120 = Txcb_protocol_request_t{
  15086. Fcount: uint64(3),
  15087. Fopcode: uint8(m_XCB_CHANGE_GC),
  15088. Fisvoid: uint8(1),
  15089. }
  15090. 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) {
  15091. bp := tls.Alloc(112)
  15092. defer tls.Free(112)
  15093. var xcb_ret Txcb_void_cookie_t
  15094. var _ /* xcb_aux0 at bp+96 */ uintptr
  15095. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15096. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15097. _ = xcb_ret
  15098. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15099. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15100. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15101. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15102. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15103. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15104. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15105. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15106. /* xcb_change_gc_value_list_t value_list */
  15107. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15108. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15109. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req121)))
  15110. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15111. return xcb_ret
  15112. }
  15113. var _xcb_req121 = Txcb_protocol_request_t{
  15114. Fcount: uint64(3),
  15115. Fopcode: uint8(m_XCB_CHANGE_GC),
  15116. Fisvoid: uint8(1),
  15117. }
  15118. func Xxcb_change_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  15119. return R + libc.UintptrFromInt32(1)*12
  15120. }
  15121. 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) {
  15122. bp := tls.Alloc(80)
  15123. defer tls.Free(80)
  15124. var xcb_ret Txcb_void_cookie_t
  15125. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15126. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15127. _ = xcb_ret
  15128. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15129. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15130. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15131. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15132. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15133. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15134. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15135. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15136. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req122)))
  15137. return xcb_ret
  15138. }
  15139. var _xcb_req122 = Txcb_protocol_request_t{
  15140. Fcount: uint64(2),
  15141. Fopcode: uint8(m_XCB_COPY_GC),
  15142. Fisvoid: uint8(1),
  15143. }
  15144. 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) {
  15145. bp := tls.Alloc(80)
  15146. defer tls.Free(80)
  15147. var xcb_ret Txcb_void_cookie_t
  15148. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15149. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15150. _ = xcb_ret
  15151. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15152. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15153. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15154. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15156. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15159. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req123)))
  15160. return xcb_ret
  15161. }
  15162. var _xcb_req123 = Txcb_protocol_request_t{
  15163. Fcount: uint64(2),
  15164. Fopcode: uint8(m_XCB_COPY_GC),
  15165. Fisvoid: uint8(1),
  15166. }
  15167. func Xxcb_set_dashes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15168. var _aux, xcb_tmp uintptr
  15169. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15170. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15171. xcb_tmp = _buffer
  15172. _aux = _buffer
  15173. xcb_buffer_len = uint32(0)
  15174. xcb_block_len = uint32(0)
  15175. xcb_pad = uint32(0)
  15176. xcb_align_to = uint32(0)
  15177. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15178. xcb_tmp += uintptr(xcb_block_len)
  15179. xcb_buffer_len += xcb_block_len
  15180. xcb_block_len = uint32(0)
  15181. /* dashes */
  15182. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_dashes_request_t)(unsafe.Pointer(_aux)).Fdashes_len)*libc.Uint64FromInt64(1))
  15183. xcb_tmp += uintptr(xcb_block_len)
  15184. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  15185. /* insert padding */
  15186. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15187. xcb_buffer_len += xcb_block_len + xcb_pad
  15188. if uint32(0) != xcb_pad {
  15189. xcb_tmp += uintptr(xcb_pad)
  15190. xcb_pad = uint32(0)
  15191. }
  15192. xcb_block_len = uint32(0)
  15193. return libc.Int32FromUint32(xcb_buffer_len)
  15194. }
  15195. 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) {
  15196. bp := tls.Alloc(112)
  15197. defer tls.Free(112)
  15198. var xcb_ret Txcb_void_cookie_t
  15199. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15200. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15201. _ = xcb_ret
  15202. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15203. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15204. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15205. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15206. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15207. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15208. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15209. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15210. /* uint8_t dashes */
  15211. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15212. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15213. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15214. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15215. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req124)))
  15216. return xcb_ret
  15217. }
  15218. var _xcb_req124 = Txcb_protocol_request_t{
  15219. Fcount: uint64(4),
  15220. Fopcode: uint8(m_XCB_SET_DASHES),
  15221. Fisvoid: uint8(1),
  15222. }
  15223. 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) {
  15224. bp := tls.Alloc(112)
  15225. defer tls.Free(112)
  15226. var xcb_ret Txcb_void_cookie_t
  15227. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15228. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15229. _ = xcb_ret
  15230. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15231. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15232. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15233. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15234. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15235. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15236. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15237. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15238. /* uint8_t dashes */
  15239. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15240. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15241. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15242. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15243. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req125)))
  15244. return xcb_ret
  15245. }
  15246. var _xcb_req125 = Txcb_protocol_request_t{
  15247. Fcount: uint64(4),
  15248. Fopcode: uint8(m_XCB_SET_DASHES),
  15249. Fisvoid: uint8(1),
  15250. }
  15251. func Xxcb_set_dashes_dashes(tls *libc.TLS, R uintptr) (r uintptr) {
  15252. return R + libc.UintptrFromInt32(1)*12
  15253. }
  15254. func Xxcb_set_dashes_dashes_length(tls *libc.TLS, R uintptr) (r int32) {
  15255. return libc.Int32FromUint16((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15256. }
  15257. func Xxcb_set_dashes_dashes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  15258. var i Txcb_generic_iterator_t
  15259. _ = i
  15260. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15261. i.Frem = 0
  15262. i.Findex = int32(int64(i.Fdata) - int64(R))
  15263. return i
  15264. }
  15265. func Xxcb_set_clip_rectangles_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15266. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15267. var xcb_tmp uintptr
  15268. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15269. xcb_tmp = _buffer
  15270. xcb_buffer_len = uint32(0)
  15271. xcb_block_len = uint32(0)
  15272. xcb_pad = uint32(0)
  15273. xcb_align_to = uint32(0)
  15274. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15275. xcb_tmp += uintptr(xcb_block_len)
  15276. xcb_buffer_len += xcb_block_len
  15277. xcb_block_len = uint32(0)
  15278. /* rectangles */
  15279. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15280. xcb_tmp += uintptr(xcb_block_len)
  15281. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15282. /* insert padding */
  15283. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15284. xcb_buffer_len += xcb_block_len + xcb_pad
  15285. if uint32(0) != xcb_pad {
  15286. xcb_tmp += uintptr(xcb_pad)
  15287. xcb_pad = uint32(0)
  15288. }
  15289. xcb_block_len = uint32(0)
  15290. return libc.Int32FromUint32(xcb_buffer_len)
  15291. }
  15292. 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) {
  15293. bp := tls.Alloc(112)
  15294. defer tls.Free(112)
  15295. var xcb_ret Txcb_void_cookie_t
  15296. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15297. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15298. _ = xcb_ret
  15299. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15300. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15301. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15302. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15303. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15304. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15305. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15306. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15307. /* xcb_rectangle_t rectangles */
  15308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15309. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15310. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15311. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15312. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req126)))
  15313. return xcb_ret
  15314. }
  15315. var _xcb_req126 = Txcb_protocol_request_t{
  15316. Fcount: uint64(4),
  15317. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15318. Fisvoid: uint8(1),
  15319. }
  15320. 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) {
  15321. bp := tls.Alloc(112)
  15322. defer tls.Free(112)
  15323. var xcb_ret Txcb_void_cookie_t
  15324. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15325. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15326. _ = xcb_ret
  15327. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15328. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15329. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15330. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15331. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15332. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15333. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15334. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15335. /* xcb_rectangle_t rectangles */
  15336. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15337. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15338. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15339. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15340. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req127)))
  15341. return xcb_ret
  15342. }
  15343. var _xcb_req127 = Txcb_protocol_request_t{
  15344. Fcount: uint64(4),
  15345. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15346. Fisvoid: uint8(1),
  15347. }
  15348. func Xxcb_set_clip_rectangles_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15349. return R + libc.UintptrFromInt32(1)*12
  15350. }
  15351. func Xxcb_set_clip_rectangles_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15352. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  15353. }
  15354. func Xxcb_set_clip_rectangles_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15355. var i Txcb_rectangle_iterator_t
  15356. _ = i
  15357. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15358. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  15359. i.Findex = int32(int64(i.Fdata) - int64(R))
  15360. return i
  15361. }
  15362. func Xxcb_free_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15363. bp := tls.Alloc(80)
  15364. defer tls.Free(80)
  15365. var xcb_ret Txcb_void_cookie_t
  15366. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15367. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15368. _ = xcb_ret
  15369. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15370. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15371. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15372. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15373. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15374. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15375. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req128)))
  15376. return xcb_ret
  15377. }
  15378. var _xcb_req128 = Txcb_protocol_request_t{
  15379. Fcount: uint64(2),
  15380. Fopcode: uint8(m_XCB_FREE_GC),
  15381. Fisvoid: uint8(1),
  15382. }
  15383. func Xxcb_free_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15384. bp := tls.Alloc(80)
  15385. defer tls.Free(80)
  15386. var xcb_ret Txcb_void_cookie_t
  15387. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15388. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15389. _ = xcb_ret
  15390. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15391. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15392. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15393. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15394. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15395. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15396. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req129)))
  15397. return xcb_ret
  15398. }
  15399. var _xcb_req129 = Txcb_protocol_request_t{
  15400. Fcount: uint64(2),
  15401. Fopcode: uint8(m_XCB_FREE_GC),
  15402. Fisvoid: uint8(1),
  15403. }
  15404. 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) {
  15405. bp := tls.Alloc(80)
  15406. defer tls.Free(80)
  15407. var xcb_ret Txcb_void_cookie_t
  15408. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15409. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15410. _ = xcb_ret
  15411. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15412. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15413. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15414. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15415. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15416. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15417. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15418. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15419. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15420. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15421. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req130)))
  15422. return xcb_ret
  15423. }
  15424. var _xcb_req130 = Txcb_protocol_request_t{
  15425. Fcount: uint64(2),
  15426. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15427. Fisvoid: uint8(1),
  15428. }
  15429. 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) {
  15430. bp := tls.Alloc(80)
  15431. defer tls.Free(80)
  15432. var xcb_ret Txcb_void_cookie_t
  15433. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15434. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15435. _ = xcb_ret
  15436. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15437. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15438. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15439. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15440. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15441. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15442. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15443. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15444. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15445. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15446. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req131)))
  15447. return xcb_ret
  15448. }
  15449. var _xcb_req131 = Txcb_protocol_request_t{
  15450. Fcount: uint64(2),
  15451. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15452. Fisvoid: uint8(1),
  15453. }
  15454. 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) {
  15455. bp := tls.Alloc(96)
  15456. defer tls.Free(96)
  15457. var xcb_ret Txcb_void_cookie_t
  15458. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15459. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15460. _ = xcb_ret
  15461. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15462. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15463. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15464. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15465. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15466. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15467. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15468. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15469. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15470. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15471. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15473. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15474. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15475. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req132)))
  15476. return xcb_ret
  15477. }
  15478. var _xcb_req132 = Txcb_protocol_request_t{
  15479. Fcount: uint64(2),
  15480. Fopcode: uint8(m_XCB_COPY_AREA),
  15481. Fisvoid: uint8(1),
  15482. }
  15483. 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) {
  15484. bp := tls.Alloc(96)
  15485. defer tls.Free(96)
  15486. var xcb_ret Txcb_void_cookie_t
  15487. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15488. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15489. _ = xcb_ret
  15490. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15491. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15492. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15493. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15494. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15495. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15496. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15497. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15498. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15499. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15500. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15501. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15503. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15504. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req133)))
  15505. return xcb_ret
  15506. }
  15507. var _xcb_req133 = Txcb_protocol_request_t{
  15508. Fcount: uint64(2),
  15509. Fopcode: uint8(m_XCB_COPY_AREA),
  15510. Fisvoid: uint8(1),
  15511. }
  15512. 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) {
  15513. bp := tls.Alloc(96)
  15514. defer tls.Free(96)
  15515. var xcb_ret Txcb_void_cookie_t
  15516. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15517. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15518. _ = xcb_ret
  15519. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15520. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15521. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15522. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15523. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15524. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15525. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15526. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15527. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15528. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15529. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15530. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15531. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15532. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15533. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15534. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req134)))
  15535. return xcb_ret
  15536. }
  15537. var _xcb_req134 = Txcb_protocol_request_t{
  15538. Fcount: uint64(2),
  15539. Fopcode: uint8(m_XCB_COPY_PLANE),
  15540. Fisvoid: uint8(1),
  15541. }
  15542. 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) {
  15543. bp := tls.Alloc(96)
  15544. defer tls.Free(96)
  15545. var xcb_ret Txcb_void_cookie_t
  15546. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15547. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15548. _ = xcb_ret
  15549. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15550. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15551. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15552. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15553. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15554. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15555. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15556. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15557. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15558. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15559. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15560. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15561. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15562. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15563. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15564. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req135)))
  15565. return xcb_ret
  15566. }
  15567. var _xcb_req135 = Txcb_protocol_request_t{
  15568. Fcount: uint64(2),
  15569. Fopcode: uint8(m_XCB_COPY_PLANE),
  15570. Fisvoid: uint8(1),
  15571. }
  15572. func Xxcb_poly_point_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15573. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15574. var xcb_tmp uintptr
  15575. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15576. xcb_tmp = _buffer
  15577. xcb_buffer_len = uint32(0)
  15578. xcb_block_len = uint32(0)
  15579. xcb_pad = uint32(0)
  15580. xcb_align_to = uint32(0)
  15581. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15582. xcb_tmp += uintptr(xcb_block_len)
  15583. xcb_buffer_len += xcb_block_len
  15584. xcb_block_len = uint32(0)
  15585. /* points */
  15586. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15587. xcb_tmp += uintptr(xcb_block_len)
  15588. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15589. /* insert padding */
  15590. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15591. xcb_buffer_len += xcb_block_len + xcb_pad
  15592. if uint32(0) != xcb_pad {
  15593. xcb_tmp += uintptr(xcb_pad)
  15594. xcb_pad = uint32(0)
  15595. }
  15596. xcb_block_len = uint32(0)
  15597. return libc.Int32FromUint32(xcb_buffer_len)
  15598. }
  15599. 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) {
  15600. bp := tls.Alloc(112)
  15601. defer tls.Free(112)
  15602. var xcb_ret Txcb_void_cookie_t
  15603. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15604. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15605. _ = xcb_ret
  15606. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15607. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15608. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15609. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15610. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15611. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15612. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15613. /* xcb_point_t points */
  15614. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15615. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15616. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15617. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15618. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req136)))
  15619. return xcb_ret
  15620. }
  15621. var _xcb_req136 = Txcb_protocol_request_t{
  15622. Fcount: uint64(4),
  15623. Fopcode: uint8(m_XCB_POLY_POINT),
  15624. Fisvoid: uint8(1),
  15625. }
  15626. 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) {
  15627. bp := tls.Alloc(112)
  15628. defer tls.Free(112)
  15629. var xcb_ret Txcb_void_cookie_t
  15630. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15631. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15632. _ = xcb_ret
  15633. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15634. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15635. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15636. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15637. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15638. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15639. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15640. /* xcb_point_t points */
  15641. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15642. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15643. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15644. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15645. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req137)))
  15646. return xcb_ret
  15647. }
  15648. var _xcb_req137 = Txcb_protocol_request_t{
  15649. Fcount: uint64(4),
  15650. Fopcode: uint8(m_XCB_POLY_POINT),
  15651. Fisvoid: uint8(1),
  15652. }
  15653. func Xxcb_poly_point_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15654. return R + libc.UintptrFromInt32(1)*12
  15655. }
  15656. func Xxcb_poly_point_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15657. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_point_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
  15658. }
  15659. func Xxcb_poly_point_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15660. var i Txcb_point_iterator_t
  15661. _ = i
  15662. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15663. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_point_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
  15664. i.Findex = int32(int64(i.Fdata) - int64(R))
  15665. return i
  15666. }
  15667. func Xxcb_poly_line_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15668. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15669. var xcb_tmp uintptr
  15670. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15671. xcb_tmp = _buffer
  15672. xcb_buffer_len = uint32(0)
  15673. xcb_block_len = uint32(0)
  15674. xcb_pad = uint32(0)
  15675. xcb_align_to = uint32(0)
  15676. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15677. xcb_tmp += uintptr(xcb_block_len)
  15678. xcb_buffer_len += xcb_block_len
  15679. xcb_block_len = uint32(0)
  15680. /* points */
  15681. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15682. xcb_tmp += uintptr(xcb_block_len)
  15683. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15684. /* insert padding */
  15685. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15686. xcb_buffer_len += xcb_block_len + xcb_pad
  15687. if uint32(0) != xcb_pad {
  15688. xcb_tmp += uintptr(xcb_pad)
  15689. xcb_pad = uint32(0)
  15690. }
  15691. xcb_block_len = uint32(0)
  15692. return libc.Int32FromUint32(xcb_buffer_len)
  15693. }
  15694. 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) {
  15695. bp := tls.Alloc(112)
  15696. defer tls.Free(112)
  15697. var xcb_ret Txcb_void_cookie_t
  15698. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15699. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15700. _ = xcb_ret
  15701. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15702. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15703. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15704. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15705. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15706. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15707. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15708. /* xcb_point_t points */
  15709. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15710. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15711. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15712. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15713. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req138)))
  15714. return xcb_ret
  15715. }
  15716. var _xcb_req138 = Txcb_protocol_request_t{
  15717. Fcount: uint64(4),
  15718. Fopcode: uint8(m_XCB_POLY_LINE),
  15719. Fisvoid: uint8(1),
  15720. }
  15721. 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) {
  15722. bp := tls.Alloc(112)
  15723. defer tls.Free(112)
  15724. var xcb_ret Txcb_void_cookie_t
  15725. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15726. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15727. _ = xcb_ret
  15728. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15729. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15730. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15731. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15732. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15733. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15734. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15735. /* xcb_point_t points */
  15736. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15738. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15739. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15740. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req139)))
  15741. return xcb_ret
  15742. }
  15743. var _xcb_req139 = Txcb_protocol_request_t{
  15744. Fcount: uint64(4),
  15745. Fopcode: uint8(m_XCB_POLY_LINE),
  15746. Fisvoid: uint8(1),
  15747. }
  15748. func Xxcb_poly_line_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15749. return R + libc.UintptrFromInt32(1)*12
  15750. }
  15751. func Xxcb_poly_line_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15752. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_line_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
  15753. }
  15754. func Xxcb_poly_line_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15755. var i Txcb_point_iterator_t
  15756. _ = i
  15757. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15758. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_line_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
  15759. i.Findex = int32(int64(i.Fdata) - int64(R))
  15760. return i
  15761. }
  15762. func Xxcb_segment_next(tls *libc.TLS, i uintptr) {
  15763. var p1 uintptr
  15764. _ = p1
  15765. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Frem--
  15766. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  15767. p1 = i + 12
  15768. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  15769. }
  15770. func Xxcb_segment_end(tls *libc.TLS, i Txcb_segment_iterator_t) (r Txcb_generic_iterator_t) {
  15771. var ret Txcb_generic_iterator_t
  15772. _ = ret
  15773. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  15774. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  15775. ret.Frem = 0
  15776. return ret
  15777. }
  15778. func Xxcb_poly_segment_sizeof(tls *libc.TLS, _buffer uintptr, segments_len Tuint32_t) (r int32) {
  15779. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15780. var xcb_tmp uintptr
  15781. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15782. xcb_tmp = _buffer
  15783. xcb_buffer_len = uint32(0)
  15784. xcb_block_len = uint32(0)
  15785. xcb_pad = uint32(0)
  15786. xcb_align_to = uint32(0)
  15787. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15788. xcb_tmp += uintptr(xcb_block_len)
  15789. xcb_buffer_len += xcb_block_len
  15790. xcb_block_len = uint32(0)
  15791. /* segments */
  15792. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(segments_len)*libc.Uint64FromInt64(8))
  15793. xcb_tmp += uintptr(xcb_block_len)
  15794. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15795. /* insert padding */
  15796. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15797. xcb_buffer_len += xcb_block_len + xcb_pad
  15798. if uint32(0) != xcb_pad {
  15799. xcb_tmp += uintptr(xcb_pad)
  15800. xcb_pad = uint32(0)
  15801. }
  15802. xcb_block_len = uint32(0)
  15803. return libc.Int32FromUint32(xcb_buffer_len)
  15804. }
  15805. 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) {
  15806. bp := tls.Alloc(112)
  15807. defer tls.Free(112)
  15808. var xcb_ret Txcb_void_cookie_t
  15809. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15810. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15811. _ = xcb_ret
  15812. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15813. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15814. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15815. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15816. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15817. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15818. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15819. /* xcb_segment_t segments */
  15820. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15821. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15822. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15823. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15824. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req140)))
  15825. return xcb_ret
  15826. }
  15827. var _xcb_req140 = Txcb_protocol_request_t{
  15828. Fcount: uint64(4),
  15829. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15830. Fisvoid: uint8(1),
  15831. }
  15832. 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) {
  15833. bp := tls.Alloc(112)
  15834. defer tls.Free(112)
  15835. var xcb_ret Txcb_void_cookie_t
  15836. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15837. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15838. _ = xcb_ret
  15839. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15840. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15841. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15842. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15843. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15844. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15845. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15846. /* xcb_segment_t segments */
  15847. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15848. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15849. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15850. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15851. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req141)))
  15852. return xcb_ret
  15853. }
  15854. var _xcb_req141 = Txcb_protocol_request_t{
  15855. Fcount: uint64(4),
  15856. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15857. Fisvoid: uint8(1),
  15858. }
  15859. func Xxcb_poly_segment_segments(tls *libc.TLS, R uintptr) (r uintptr) {
  15860. return R + libc.UintptrFromInt32(1)*12
  15861. }
  15862. func Xxcb_poly_segment_segments_length(tls *libc.TLS, R uintptr) (r int32) {
  15863. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_segment_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  15864. }
  15865. func Xxcb_poly_segment_segments_iterator(tls *libc.TLS, R uintptr) (r Txcb_segment_iterator_t) {
  15866. var i Txcb_segment_iterator_t
  15867. _ = i
  15868. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15869. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_segment_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  15870. i.Findex = int32(int64(i.Fdata) - int64(R))
  15871. return i
  15872. }
  15873. func Xxcb_poly_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15874. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15875. var xcb_tmp uintptr
  15876. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15877. xcb_tmp = _buffer
  15878. xcb_buffer_len = uint32(0)
  15879. xcb_block_len = uint32(0)
  15880. xcb_pad = uint32(0)
  15881. xcb_align_to = uint32(0)
  15882. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15883. xcb_tmp += uintptr(xcb_block_len)
  15884. xcb_buffer_len += xcb_block_len
  15885. xcb_block_len = uint32(0)
  15886. /* rectangles */
  15887. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15888. xcb_tmp += uintptr(xcb_block_len)
  15889. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15890. /* insert padding */
  15891. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15892. xcb_buffer_len += xcb_block_len + xcb_pad
  15893. if uint32(0) != xcb_pad {
  15894. xcb_tmp += uintptr(xcb_pad)
  15895. xcb_pad = uint32(0)
  15896. }
  15897. xcb_block_len = uint32(0)
  15898. return libc.Int32FromUint32(xcb_buffer_len)
  15899. }
  15900. 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) {
  15901. bp := tls.Alloc(112)
  15902. defer tls.Free(112)
  15903. var xcb_ret Txcb_void_cookie_t
  15904. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15905. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15906. _ = xcb_ret
  15907. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15908. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15909. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15910. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15911. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15912. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15913. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15914. /* xcb_rectangle_t rectangles */
  15915. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15916. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15917. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15918. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15919. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req142)))
  15920. return xcb_ret
  15921. }
  15922. var _xcb_req142 = Txcb_protocol_request_t{
  15923. Fcount: uint64(4),
  15924. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15925. Fisvoid: uint8(1),
  15926. }
  15927. 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) {
  15928. bp := tls.Alloc(112)
  15929. defer tls.Free(112)
  15930. var xcb_ret Txcb_void_cookie_t
  15931. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15932. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15933. _ = xcb_ret
  15934. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15935. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15936. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15937. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15938. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15939. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15940. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15941. /* xcb_rectangle_t rectangles */
  15942. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15943. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15944. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15945. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15946. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req143)))
  15947. return xcb_ret
  15948. }
  15949. var _xcb_req143 = Txcb_protocol_request_t{
  15950. Fcount: uint64(4),
  15951. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15952. Fisvoid: uint8(1),
  15953. }
  15954. func Xxcb_poly_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15955. return R + libc.UintptrFromInt32(1)*12
  15956. }
  15957. func Xxcb_poly_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15958. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  15959. }
  15960. func Xxcb_poly_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15961. var i Txcb_rectangle_iterator_t
  15962. _ = i
  15963. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15964. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  15965. i.Findex = int32(int64(i.Fdata) - int64(R))
  15966. return i
  15967. }
  15968. func Xxcb_poly_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  15969. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15970. var xcb_tmp uintptr
  15971. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15972. xcb_tmp = _buffer
  15973. xcb_buffer_len = uint32(0)
  15974. xcb_block_len = uint32(0)
  15975. xcb_pad = uint32(0)
  15976. xcb_align_to = uint32(0)
  15977. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15978. xcb_tmp += uintptr(xcb_block_len)
  15979. xcb_buffer_len += xcb_block_len
  15980. xcb_block_len = uint32(0)
  15981. /* arcs */
  15982. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  15983. xcb_tmp += uintptr(xcb_block_len)
  15984. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15985. /* insert padding */
  15986. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15987. xcb_buffer_len += xcb_block_len + xcb_pad
  15988. if uint32(0) != xcb_pad {
  15989. xcb_tmp += uintptr(xcb_pad)
  15990. xcb_pad = uint32(0)
  15991. }
  15992. xcb_block_len = uint32(0)
  15993. return libc.Int32FromUint32(xcb_buffer_len)
  15994. }
  15995. 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) {
  15996. bp := tls.Alloc(112)
  15997. defer tls.Free(112)
  15998. var xcb_ret Txcb_void_cookie_t
  15999. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  16000. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16001. _ = xcb_ret
  16002. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16003. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16004. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16005. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16006. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16007. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16008. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16009. /* xcb_arc_t arcs */
  16010. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16011. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16012. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16013. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16014. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req144)))
  16015. return xcb_ret
  16016. }
  16017. var _xcb_req144 = Txcb_protocol_request_t{
  16018. Fcount: uint64(4),
  16019. Fopcode: uint8(m_XCB_POLY_ARC),
  16020. Fisvoid: uint8(1),
  16021. }
  16022. 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) {
  16023. bp := tls.Alloc(112)
  16024. defer tls.Free(112)
  16025. var xcb_ret Txcb_void_cookie_t
  16026. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  16027. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16028. _ = xcb_ret
  16029. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16030. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16031. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16032. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16033. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16034. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16035. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16036. /* xcb_arc_t arcs */
  16037. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16038. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16039. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16040. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16041. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req145)))
  16042. return xcb_ret
  16043. }
  16044. var _xcb_req145 = Txcb_protocol_request_t{
  16045. Fcount: uint64(4),
  16046. Fopcode: uint8(m_XCB_POLY_ARC),
  16047. Fisvoid: uint8(1),
  16048. }
  16049. func Xxcb_poly_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16050. return R + libc.UintptrFromInt32(1)*12
  16051. }
  16052. func Xxcb_poly_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16053. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
  16054. }
  16055. func Xxcb_poly_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16056. var i Txcb_arc_iterator_t
  16057. _ = i
  16058. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16059. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
  16060. i.Findex = int32(int64(i.Fdata) - int64(R))
  16061. return i
  16062. }
  16063. func Xxcb_fill_poly_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  16064. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16065. var xcb_tmp uintptr
  16066. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16067. xcb_tmp = _buffer
  16068. xcb_buffer_len = uint32(0)
  16069. xcb_block_len = uint32(0)
  16070. xcb_pad = uint32(0)
  16071. xcb_align_to = uint32(0)
  16072. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16073. xcb_tmp += uintptr(xcb_block_len)
  16074. xcb_buffer_len += xcb_block_len
  16075. xcb_block_len = uint32(0)
  16076. /* points */
  16077. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  16078. xcb_tmp += uintptr(xcb_block_len)
  16079. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16080. /* insert padding */
  16081. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16082. xcb_buffer_len += xcb_block_len + xcb_pad
  16083. if uint32(0) != xcb_pad {
  16084. xcb_tmp += uintptr(xcb_pad)
  16085. xcb_pad = uint32(0)
  16086. }
  16087. xcb_block_len = uint32(0)
  16088. return libc.Int32FromUint32(xcb_buffer_len)
  16089. }
  16090. 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) {
  16091. bp := tls.Alloc(112)
  16092. defer tls.Free(112)
  16093. var xcb_ret Txcb_void_cookie_t
  16094. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16095. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16096. _ = xcb_ret
  16097. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16098. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16099. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16100. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16101. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16102. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16103. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16104. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16105. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16106. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16107. /* xcb_point_t points */
  16108. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16109. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16110. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16111. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16112. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req146)))
  16113. return xcb_ret
  16114. }
  16115. var _xcb_req146 = Txcb_protocol_request_t{
  16116. Fcount: uint64(4),
  16117. Fopcode: uint8(m_XCB_FILL_POLY),
  16118. Fisvoid: uint8(1),
  16119. }
  16120. 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) {
  16121. bp := tls.Alloc(112)
  16122. defer tls.Free(112)
  16123. var xcb_ret Txcb_void_cookie_t
  16124. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16125. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16126. _ = xcb_ret
  16127. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16128. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16129. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16130. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16131. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16132. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16133. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16134. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16135. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16136. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16137. /* xcb_point_t points */
  16138. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16139. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16140. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16141. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16142. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req147)))
  16143. return xcb_ret
  16144. }
  16145. var _xcb_req147 = Txcb_protocol_request_t{
  16146. Fcount: uint64(4),
  16147. Fopcode: uint8(m_XCB_FILL_POLY),
  16148. Fisvoid: uint8(1),
  16149. }
  16150. func Xxcb_fill_poly_points(tls *libc.TLS, R uintptr) (r uintptr) {
  16151. return R + libc.UintptrFromInt32(1)*16
  16152. }
  16153. func Xxcb_fill_poly_points_length(tls *libc.TLS, R uintptr) (r int32) {
  16154. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_fill_poly_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(4))
  16155. }
  16156. func Xxcb_fill_poly_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  16157. var i Txcb_point_iterator_t
  16158. _ = i
  16159. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16160. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_fill_poly_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(4))
  16161. i.Findex = int32(int64(i.Fdata) - int64(R))
  16162. return i
  16163. }
  16164. func Xxcb_poly_fill_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  16165. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16166. var xcb_tmp uintptr
  16167. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16168. xcb_tmp = _buffer
  16169. xcb_buffer_len = uint32(0)
  16170. xcb_block_len = uint32(0)
  16171. xcb_pad = uint32(0)
  16172. xcb_align_to = uint32(0)
  16173. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16174. xcb_tmp += uintptr(xcb_block_len)
  16175. xcb_buffer_len += xcb_block_len
  16176. xcb_block_len = uint32(0)
  16177. /* rectangles */
  16178. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  16179. xcb_tmp += uintptr(xcb_block_len)
  16180. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16181. /* insert padding */
  16182. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16183. xcb_buffer_len += xcb_block_len + xcb_pad
  16184. if uint32(0) != xcb_pad {
  16185. xcb_tmp += uintptr(xcb_pad)
  16186. xcb_pad = uint32(0)
  16187. }
  16188. xcb_block_len = uint32(0)
  16189. return libc.Int32FromUint32(xcb_buffer_len)
  16190. }
  16191. 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) {
  16192. bp := tls.Alloc(112)
  16193. defer tls.Free(112)
  16194. var xcb_ret Txcb_void_cookie_t
  16195. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16196. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16197. _ = xcb_ret
  16198. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16199. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16200. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16201. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16202. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16203. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16204. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16205. /* xcb_rectangle_t rectangles */
  16206. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16207. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16208. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16209. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16210. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req148)))
  16211. return xcb_ret
  16212. }
  16213. var _xcb_req148 = Txcb_protocol_request_t{
  16214. Fcount: uint64(4),
  16215. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16216. Fisvoid: uint8(1),
  16217. }
  16218. 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) {
  16219. bp := tls.Alloc(112)
  16220. defer tls.Free(112)
  16221. var xcb_ret Txcb_void_cookie_t
  16222. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16223. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16224. _ = xcb_ret
  16225. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16226. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16227. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16228. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16229. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16230. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16231. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16232. /* xcb_rectangle_t rectangles */
  16233. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16234. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16235. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16236. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16237. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req149)))
  16238. return xcb_ret
  16239. }
  16240. var _xcb_req149 = Txcb_protocol_request_t{
  16241. Fcount: uint64(4),
  16242. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16243. Fisvoid: uint8(1),
  16244. }
  16245. func Xxcb_poly_fill_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  16246. return R + libc.UintptrFromInt32(1)*12
  16247. }
  16248. func Xxcb_poly_fill_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  16249. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  16250. }
  16251. func Xxcb_poly_fill_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  16252. var i Txcb_rectangle_iterator_t
  16253. _ = i
  16254. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16255. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(8))
  16256. i.Findex = int32(int64(i.Fdata) - int64(R))
  16257. return i
  16258. }
  16259. func Xxcb_poly_fill_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  16260. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16261. var xcb_tmp uintptr
  16262. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16263. xcb_tmp = _buffer
  16264. xcb_buffer_len = uint32(0)
  16265. xcb_block_len = uint32(0)
  16266. xcb_pad = uint32(0)
  16267. xcb_align_to = uint32(0)
  16268. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16269. xcb_tmp += uintptr(xcb_block_len)
  16270. xcb_buffer_len += xcb_block_len
  16271. xcb_block_len = uint32(0)
  16272. /* arcs */
  16273. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  16274. xcb_tmp += uintptr(xcb_block_len)
  16275. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16276. /* insert padding */
  16277. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16278. xcb_buffer_len += xcb_block_len + xcb_pad
  16279. if uint32(0) != xcb_pad {
  16280. xcb_tmp += uintptr(xcb_pad)
  16281. xcb_pad = uint32(0)
  16282. }
  16283. xcb_block_len = uint32(0)
  16284. return libc.Int32FromUint32(xcb_buffer_len)
  16285. }
  16286. 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) {
  16287. bp := tls.Alloc(112)
  16288. defer tls.Free(112)
  16289. var xcb_ret Txcb_void_cookie_t
  16290. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16291. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16292. _ = xcb_ret
  16293. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16294. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16295. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16296. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16297. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16298. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16299. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16300. /* xcb_arc_t arcs */
  16301. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16302. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16303. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16304. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16305. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req150)))
  16306. return xcb_ret
  16307. }
  16308. var _xcb_req150 = Txcb_protocol_request_t{
  16309. Fcount: uint64(4),
  16310. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16311. Fisvoid: uint8(1),
  16312. }
  16313. 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) {
  16314. bp := tls.Alloc(112)
  16315. defer tls.Free(112)
  16316. var xcb_ret Txcb_void_cookie_t
  16317. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16318. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16319. _ = xcb_ret
  16320. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16321. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16322. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16323. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16324. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16325. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16326. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16327. /* xcb_arc_t arcs */
  16328. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16329. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16330. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16331. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16332. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req151)))
  16333. return xcb_ret
  16334. }
  16335. var _xcb_req151 = Txcb_protocol_request_t{
  16336. Fcount: uint64(4),
  16337. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16338. Fisvoid: uint8(1),
  16339. }
  16340. func Xxcb_poly_fill_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16341. return R + libc.UintptrFromInt32(1)*12
  16342. }
  16343. func Xxcb_poly_fill_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16344. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
  16345. }
  16346. func Xxcb_poly_fill_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16347. var i Txcb_arc_iterator_t
  16348. _ = i
  16349. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16350. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(12))
  16351. i.Findex = int32(int64(i.Fdata) - int64(R))
  16352. return i
  16353. }
  16354. func Xxcb_put_image_sizeof(tls *libc.TLS, _buffer uintptr, data_len Tuint32_t) (r int32) {
  16355. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16356. var xcb_tmp uintptr
  16357. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16358. xcb_tmp = _buffer
  16359. xcb_buffer_len = uint32(0)
  16360. xcb_block_len = uint32(0)
  16361. xcb_pad = uint32(0)
  16362. xcb_align_to = uint32(0)
  16363. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  16364. xcb_tmp += uintptr(xcb_block_len)
  16365. xcb_buffer_len += xcb_block_len
  16366. xcb_block_len = uint32(0)
  16367. /* data */
  16368. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(data_len)*libc.Uint64FromInt64(1))
  16369. xcb_tmp += uintptr(xcb_block_len)
  16370. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16371. /* insert padding */
  16372. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16373. xcb_buffer_len += xcb_block_len + xcb_pad
  16374. if uint32(0) != xcb_pad {
  16375. xcb_tmp += uintptr(xcb_pad)
  16376. xcb_pad = uint32(0)
  16377. }
  16378. xcb_block_len = uint32(0)
  16379. return libc.Int32FromUint32(xcb_buffer_len)
  16380. }
  16381. 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) {
  16382. bp := tls.Alloc(128)
  16383. defer tls.Free(128)
  16384. var xcb_ret Txcb_void_cookie_t
  16385. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16386. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16387. _ = xcb_ret
  16388. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16389. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16390. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16391. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16392. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16393. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16394. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16395. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16396. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16397. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16398. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16399. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16400. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16401. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16402. /* uint8_t data */
  16403. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16404. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16405. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16406. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16407. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req152)))
  16408. return xcb_ret
  16409. }
  16410. var _xcb_req152 = Txcb_protocol_request_t{
  16411. Fcount: uint64(4),
  16412. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16413. Fisvoid: uint8(1),
  16414. }
  16415. 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) {
  16416. bp := tls.Alloc(128)
  16417. defer tls.Free(128)
  16418. var xcb_ret Txcb_void_cookie_t
  16419. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16420. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16421. _ = xcb_ret
  16422. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16423. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16424. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16425. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16426. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16427. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16428. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16429. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16430. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16431. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16432. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16433. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16434. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16435. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16436. /* uint8_t data */
  16437. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16438. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16439. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16440. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16441. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req153)))
  16442. return xcb_ret
  16443. }
  16444. var _xcb_req153 = Txcb_protocol_request_t{
  16445. Fcount: uint64(4),
  16446. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16447. Fisvoid: uint8(1),
  16448. }
  16449. func Xxcb_put_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16450. return R + libc.UintptrFromInt32(1)*24
  16451. }
  16452. func Xxcb_put_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16453. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_put_image_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(24)) / libc.Uint64FromInt64(1))
  16454. }
  16455. func Xxcb_put_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16456. var i Txcb_generic_iterator_t
  16457. _ = i
  16458. i.Fdata = R + libc.UintptrFromInt32(1)*24 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_put_image_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(24))/libc.Uint64FromInt64(1))
  16459. i.Frem = 0
  16460. i.Findex = int32(int64(i.Fdata) - int64(R))
  16461. return i
  16462. }
  16463. func Xxcb_get_image_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16464. var _aux, xcb_tmp uintptr
  16465. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16466. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16467. xcb_tmp = _buffer
  16468. _aux = _buffer
  16469. xcb_buffer_len = uint32(0)
  16470. xcb_block_len = uint32(0)
  16471. xcb_pad = uint32(0)
  16472. xcb_align_to = uint32(0)
  16473. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  16474. xcb_tmp += uintptr(xcb_block_len)
  16475. xcb_buffer_len += xcb_block_len
  16476. xcb_block_len = uint32(0)
  16477. /* data */
  16478. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_image_reply_t)(unsafe.Pointer(_aux)).Flength*libc.Uint32FromInt32(4))*libc.Uint64FromInt64(1))
  16479. xcb_tmp += uintptr(xcb_block_len)
  16480. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16481. /* insert padding */
  16482. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16483. xcb_buffer_len += xcb_block_len + xcb_pad
  16484. if uint32(0) != xcb_pad {
  16485. xcb_tmp += uintptr(xcb_pad)
  16486. xcb_pad = uint32(0)
  16487. }
  16488. xcb_block_len = uint32(0)
  16489. return libc.Int32FromUint32(xcb_buffer_len)
  16490. }
  16491. 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) {
  16492. bp := tls.Alloc(96)
  16493. defer tls.Free(96)
  16494. var xcb_ret Txcb_get_image_cookie_t
  16495. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16496. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16497. _ = xcb_ret
  16498. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16499. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16500. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16501. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16502. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16503. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16504. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16505. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16506. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16507. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16508. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16509. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req154)))
  16510. return xcb_ret
  16511. }
  16512. var _xcb_req154 = Txcb_protocol_request_t{
  16513. Fcount: uint64(2),
  16514. Fopcode: uint8(m_XCB_GET_IMAGE),
  16515. }
  16516. 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) {
  16517. bp := tls.Alloc(96)
  16518. defer tls.Free(96)
  16519. var xcb_ret Txcb_get_image_cookie_t
  16520. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16521. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16522. _ = xcb_ret
  16523. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16524. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16525. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16526. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16527. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16528. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16529. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16530. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16531. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16532. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16533. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16534. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req155)))
  16535. return xcb_ret
  16536. }
  16537. var _xcb_req155 = Txcb_protocol_request_t{
  16538. Fcount: uint64(2),
  16539. Fopcode: uint8(m_XCB_GET_IMAGE),
  16540. }
  16541. func Xxcb_get_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16542. return R + libc.UintptrFromInt32(1)*32
  16543. }
  16544. func Xxcb_get_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16545. return libc.Int32FromUint32((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength * libc.Uint32FromInt32(4))
  16546. }
  16547. func Xxcb_get_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16548. var i Txcb_generic_iterator_t
  16549. _ = i
  16550. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength*libc.Uint32FromInt32(4))
  16551. i.Frem = 0
  16552. i.Findex = int32(int64(i.Fdata) - int64(R))
  16553. return i
  16554. }
  16555. func Xxcb_get_image_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_image_cookie_t, e uintptr) (r uintptr) {
  16556. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  16557. }
  16558. func Xxcb_poly_text_8_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16559. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16560. var xcb_tmp uintptr
  16561. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16562. xcb_tmp = _buffer
  16563. xcb_buffer_len = uint32(0)
  16564. xcb_block_len = uint32(0)
  16565. xcb_pad = uint32(0)
  16566. xcb_align_to = uint32(0)
  16567. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16568. xcb_tmp += uintptr(xcb_block_len)
  16569. xcb_buffer_len += xcb_block_len
  16570. xcb_block_len = uint32(0)
  16571. /* items */
  16572. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16573. xcb_tmp += uintptr(xcb_block_len)
  16574. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16575. /* insert padding */
  16576. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16577. xcb_buffer_len += xcb_block_len + xcb_pad
  16578. if uint32(0) != xcb_pad {
  16579. xcb_tmp += uintptr(xcb_pad)
  16580. xcb_pad = uint32(0)
  16581. }
  16582. xcb_block_len = uint32(0)
  16583. return libc.Int32FromUint32(xcb_buffer_len)
  16584. }
  16585. 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) {
  16586. bp := tls.Alloc(112)
  16587. defer tls.Free(112)
  16588. var xcb_ret Txcb_void_cookie_t
  16589. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16590. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16591. _ = xcb_ret
  16592. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16593. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16594. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16595. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16596. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16597. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16598. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16599. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16600. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16601. /* uint8_t items */
  16602. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16603. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16604. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16606. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req156)))
  16607. return xcb_ret
  16608. }
  16609. var _xcb_req156 = Txcb_protocol_request_t{
  16610. Fcount: uint64(4),
  16611. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16612. Fisvoid: uint8(1),
  16613. }
  16614. 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) {
  16615. bp := tls.Alloc(112)
  16616. defer tls.Free(112)
  16617. var xcb_ret Txcb_void_cookie_t
  16618. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16619. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16620. _ = xcb_ret
  16621. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16622. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16623. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16624. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16625. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16626. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16627. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16628. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16629. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16630. /* uint8_t items */
  16631. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16632. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16633. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16634. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16635. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req157)))
  16636. return xcb_ret
  16637. }
  16638. var _xcb_req157 = Txcb_protocol_request_t{
  16639. Fcount: uint64(4),
  16640. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16641. Fisvoid: uint8(1),
  16642. }
  16643. func Xxcb_poly_text_8_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16644. return R + libc.UintptrFromInt32(1)*16
  16645. }
  16646. func Xxcb_poly_text_8_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16647. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_8_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(1))
  16648. }
  16649. func Xxcb_poly_text_8_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16650. var i Txcb_generic_iterator_t
  16651. _ = i
  16652. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_8_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(16))/libc.Uint64FromInt64(1))
  16653. i.Frem = 0
  16654. i.Findex = int32(int64(i.Fdata) - int64(R))
  16655. return i
  16656. }
  16657. func Xxcb_poly_text_16_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16658. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16659. var xcb_tmp uintptr
  16660. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16661. xcb_tmp = _buffer
  16662. xcb_buffer_len = uint32(0)
  16663. xcb_block_len = uint32(0)
  16664. xcb_pad = uint32(0)
  16665. xcb_align_to = uint32(0)
  16666. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16667. xcb_tmp += uintptr(xcb_block_len)
  16668. xcb_buffer_len += xcb_block_len
  16669. xcb_block_len = uint32(0)
  16670. /* items */
  16671. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16672. xcb_tmp += uintptr(xcb_block_len)
  16673. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16674. /* insert padding */
  16675. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16676. xcb_buffer_len += xcb_block_len + xcb_pad
  16677. if uint32(0) != xcb_pad {
  16678. xcb_tmp += uintptr(xcb_pad)
  16679. xcb_pad = uint32(0)
  16680. }
  16681. xcb_block_len = uint32(0)
  16682. return libc.Int32FromUint32(xcb_buffer_len)
  16683. }
  16684. 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) {
  16685. bp := tls.Alloc(112)
  16686. defer tls.Free(112)
  16687. var xcb_ret Txcb_void_cookie_t
  16688. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16689. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16690. _ = xcb_ret
  16691. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16692. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16693. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16694. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16695. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16696. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16697. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16698. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16699. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16700. /* uint8_t items */
  16701. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16702. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16703. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16704. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16705. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req158)))
  16706. return xcb_ret
  16707. }
  16708. var _xcb_req158 = Txcb_protocol_request_t{
  16709. Fcount: uint64(4),
  16710. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16711. Fisvoid: uint8(1),
  16712. }
  16713. 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) {
  16714. bp := tls.Alloc(112)
  16715. defer tls.Free(112)
  16716. var xcb_ret Txcb_void_cookie_t
  16717. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16718. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16719. _ = xcb_ret
  16720. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16721. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16722. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16723. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16724. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16725. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16726. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16727. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16728. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16729. /* uint8_t items */
  16730. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16731. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16732. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16733. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16734. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req159)))
  16735. return xcb_ret
  16736. }
  16737. var _xcb_req159 = Txcb_protocol_request_t{
  16738. Fcount: uint64(4),
  16739. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16740. Fisvoid: uint8(1),
  16741. }
  16742. func Xxcb_poly_text_16_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16743. return R + libc.UintptrFromInt32(1)*16
  16744. }
  16745. func Xxcb_poly_text_16_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16746. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_16_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(16)) / libc.Uint64FromInt64(1))
  16747. }
  16748. func Xxcb_poly_text_16_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16749. var i Txcb_generic_iterator_t
  16750. _ = i
  16751. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_16_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(16))/libc.Uint64FromInt64(1))
  16752. i.Frem = 0
  16753. i.Findex = int32(int64(i.Fdata) - int64(R))
  16754. return i
  16755. }
  16756. func Xxcb_image_text_8_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16757. var _aux, xcb_tmp uintptr
  16758. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16759. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16760. xcb_tmp = _buffer
  16761. _aux = _buffer
  16762. xcb_buffer_len = uint32(0)
  16763. xcb_block_len = uint32(0)
  16764. xcb_pad = uint32(0)
  16765. xcb_align_to = uint32(0)
  16766. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16767. xcb_tmp += uintptr(xcb_block_len)
  16768. xcb_buffer_len += xcb_block_len
  16769. xcb_block_len = uint32(0)
  16770. /* string */
  16771. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_8_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(1))
  16772. xcb_tmp += uintptr(xcb_block_len)
  16773. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16774. /* insert padding */
  16775. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16776. xcb_buffer_len += xcb_block_len + xcb_pad
  16777. if uint32(0) != xcb_pad {
  16778. xcb_tmp += uintptr(xcb_pad)
  16779. xcb_pad = uint32(0)
  16780. }
  16781. xcb_block_len = uint32(0)
  16782. return libc.Int32FromUint32(xcb_buffer_len)
  16783. }
  16784. 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) {
  16785. bp := tls.Alloc(112)
  16786. defer tls.Free(112)
  16787. var xcb_ret Txcb_void_cookie_t
  16788. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16789. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16790. _ = xcb_ret
  16791. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16792. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16793. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16794. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16795. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16797. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16798. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16799. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16800. /* char string */
  16801. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16802. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16803. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16804. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16805. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req160)))
  16806. return xcb_ret
  16807. }
  16808. var _xcb_req160 = Txcb_protocol_request_t{
  16809. Fcount: uint64(4),
  16810. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16811. Fisvoid: uint8(1),
  16812. }
  16813. 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) {
  16814. bp := tls.Alloc(112)
  16815. defer tls.Free(112)
  16816. var xcb_ret Txcb_void_cookie_t
  16817. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16818. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16819. _ = xcb_ret
  16820. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16821. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16822. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16823. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16824. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16825. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16826. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16827. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16828. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16829. /* char string */
  16830. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16831. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16832. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16833. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16834. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req161)))
  16835. return xcb_ret
  16836. }
  16837. var _xcb_req161 = Txcb_protocol_request_t{
  16838. Fcount: uint64(4),
  16839. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16840. Fisvoid: uint8(1),
  16841. }
  16842. func Xxcb_image_text_8_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16843. return R + libc.UintptrFromInt32(1)*16
  16844. }
  16845. func Xxcb_image_text_8_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16846. return libc.Int32FromUint8((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16847. }
  16848. func Xxcb_image_text_8_string_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16849. var i Txcb_generic_iterator_t
  16850. _ = i
  16851. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16852. i.Frem = 0
  16853. i.Findex = int32(int64(i.Fdata) - int64(R))
  16854. return i
  16855. }
  16856. func Xxcb_image_text_16_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16857. var _aux, xcb_tmp uintptr
  16858. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16859. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16860. xcb_tmp = _buffer
  16861. _aux = _buffer
  16862. xcb_buffer_len = uint32(0)
  16863. xcb_block_len = uint32(0)
  16864. xcb_pad = uint32(0)
  16865. xcb_align_to = uint32(0)
  16866. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16867. xcb_tmp += uintptr(xcb_block_len)
  16868. xcb_buffer_len += xcb_block_len
  16869. xcb_block_len = uint32(0)
  16870. /* string */
  16871. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_16_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(2))
  16872. xcb_tmp += uintptr(xcb_block_len)
  16873. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16874. /* insert padding */
  16875. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16876. xcb_buffer_len += xcb_block_len + xcb_pad
  16877. if uint32(0) != xcb_pad {
  16878. xcb_tmp += uintptr(xcb_pad)
  16879. xcb_pad = uint32(0)
  16880. }
  16881. xcb_block_len = uint32(0)
  16882. return libc.Int32FromUint32(xcb_buffer_len)
  16883. }
  16884. 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) {
  16885. bp := tls.Alloc(112)
  16886. defer tls.Free(112)
  16887. var xcb_ret Txcb_void_cookie_t
  16888. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16889. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16890. _ = xcb_ret
  16891. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16892. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16893. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16894. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16895. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16896. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16897. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16898. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16899. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16900. /* xcb_char2b_t string */
  16901. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16902. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16903. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16904. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16905. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req162)))
  16906. return xcb_ret
  16907. }
  16908. var _xcb_req162 = Txcb_protocol_request_t{
  16909. Fcount: uint64(4),
  16910. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16911. Fisvoid: uint8(1),
  16912. }
  16913. 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) {
  16914. bp := tls.Alloc(112)
  16915. defer tls.Free(112)
  16916. var xcb_ret Txcb_void_cookie_t
  16917. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16918. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16919. _ = xcb_ret
  16920. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16921. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16922. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16923. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16924. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16925. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16926. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16927. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16928. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16929. /* xcb_char2b_t string */
  16930. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16931. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16932. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16933. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16934. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req163)))
  16935. return xcb_ret
  16936. }
  16937. var _xcb_req163 = Txcb_protocol_request_t{
  16938. Fcount: uint64(4),
  16939. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16940. Fisvoid: uint8(1),
  16941. }
  16942. func Xxcb_image_text_16_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16943. return R + libc.UintptrFromInt32(1)*16
  16944. }
  16945. func Xxcb_image_text_16_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16946. return libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16947. }
  16948. func Xxcb_image_text_16_string_iterator(tls *libc.TLS, R uintptr) (r Txcb_char2b_iterator_t) {
  16949. var i Txcb_char2b_iterator_t
  16950. _ = i
  16951. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16952. i.Frem = libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16953. i.Findex = int32(int64(i.Fdata) - int64(R))
  16954. return i
  16955. }
  16956. 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) {
  16957. bp := tls.Alloc(80)
  16958. defer tls.Free(80)
  16959. var xcb_ret Txcb_void_cookie_t
  16960. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16961. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16962. _ = xcb_ret
  16963. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16964. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16965. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16966. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16967. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16968. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16969. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16970. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16971. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req164)))
  16972. return xcb_ret
  16973. }
  16974. var _xcb_req164 = Txcb_protocol_request_t{
  16975. Fcount: uint64(2),
  16976. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16977. Fisvoid: uint8(1),
  16978. }
  16979. 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) {
  16980. bp := tls.Alloc(80)
  16981. defer tls.Free(80)
  16982. var xcb_ret Txcb_void_cookie_t
  16983. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16984. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16985. _ = xcb_ret
  16986. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16987. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16988. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16989. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16990. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16991. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16992. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16993. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16994. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req165)))
  16995. return xcb_ret
  16996. }
  16997. var _xcb_req165 = Txcb_protocol_request_t{
  16998. Fcount: uint64(2),
  16999. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  17000. Fisvoid: uint8(1),
  17001. }
  17002. func Xxcb_free_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17003. bp := tls.Alloc(80)
  17004. defer tls.Free(80)
  17005. var xcb_ret Txcb_void_cookie_t
  17006. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  17007. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17008. _ = xcb_ret
  17009. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17010. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17011. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17012. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17013. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17014. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17015. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req166)))
  17016. return xcb_ret
  17017. }
  17018. var _xcb_req166 = Txcb_protocol_request_t{
  17019. Fcount: uint64(2),
  17020. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  17021. Fisvoid: uint8(1),
  17022. }
  17023. func Xxcb_free_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17024. bp := tls.Alloc(80)
  17025. defer tls.Free(80)
  17026. var xcb_ret Txcb_void_cookie_t
  17027. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  17028. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17029. _ = xcb_ret
  17030. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17031. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17032. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17033. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17034. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17035. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17036. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req167)))
  17037. return xcb_ret
  17038. }
  17039. var _xcb_req167 = Txcb_protocol_request_t{
  17040. Fcount: uint64(2),
  17041. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  17042. Fisvoid: uint8(1),
  17043. }
  17044. 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) {
  17045. bp := tls.Alloc(80)
  17046. defer tls.Free(80)
  17047. var xcb_ret Txcb_void_cookie_t
  17048. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  17049. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17050. _ = xcb_ret
  17051. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17052. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17053. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  17054. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17055. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17056. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17057. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17058. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req168)))
  17059. return xcb_ret
  17060. }
  17061. var _xcb_req168 = Txcb_protocol_request_t{
  17062. Fcount: uint64(2),
  17063. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17064. Fisvoid: uint8(1),
  17065. }
  17066. 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) {
  17067. bp := tls.Alloc(80)
  17068. defer tls.Free(80)
  17069. var xcb_ret Txcb_void_cookie_t
  17070. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  17071. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17072. _ = xcb_ret
  17073. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17074. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17075. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  17076. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17077. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17078. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17079. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17080. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req169)))
  17081. return xcb_ret
  17082. }
  17083. var _xcb_req169 = Txcb_protocol_request_t{
  17084. Fcount: uint64(2),
  17085. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17086. Fisvoid: uint8(1),
  17087. }
  17088. func Xxcb_install_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17089. bp := tls.Alloc(80)
  17090. defer tls.Free(80)
  17091. var xcb_ret Txcb_void_cookie_t
  17092. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17093. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17094. _ = xcb_ret
  17095. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17096. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17097. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17098. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17099. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17100. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17101. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req170)))
  17102. return xcb_ret
  17103. }
  17104. var _xcb_req170 = Txcb_protocol_request_t{
  17105. Fcount: uint64(2),
  17106. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17107. Fisvoid: uint8(1),
  17108. }
  17109. func Xxcb_install_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17110. bp := tls.Alloc(80)
  17111. defer tls.Free(80)
  17112. var xcb_ret Txcb_void_cookie_t
  17113. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17114. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17115. _ = xcb_ret
  17116. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17117. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17118. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17119. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17120. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17121. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17122. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req171)))
  17123. return xcb_ret
  17124. }
  17125. var _xcb_req171 = Txcb_protocol_request_t{
  17126. Fcount: uint64(2),
  17127. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17128. Fisvoid: uint8(1),
  17129. }
  17130. func Xxcb_uninstall_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17131. bp := tls.Alloc(80)
  17132. defer tls.Free(80)
  17133. var xcb_ret Txcb_void_cookie_t
  17134. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17135. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17136. _ = xcb_ret
  17137. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17138. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17143. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req172)))
  17144. return xcb_ret
  17145. }
  17146. var _xcb_req172 = Txcb_protocol_request_t{
  17147. Fcount: uint64(2),
  17148. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17149. Fisvoid: uint8(1),
  17150. }
  17151. func Xxcb_uninstall_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17152. bp := tls.Alloc(80)
  17153. defer tls.Free(80)
  17154. var xcb_ret Txcb_void_cookie_t
  17155. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17156. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17157. _ = xcb_ret
  17158. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17159. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17160. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17164. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req173)))
  17165. return xcb_ret
  17166. }
  17167. var _xcb_req173 = Txcb_protocol_request_t{
  17168. Fcount: uint64(2),
  17169. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17170. Fisvoid: uint8(1),
  17171. }
  17172. func Xxcb_list_installed_colormaps_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17173. var _aux, xcb_tmp uintptr
  17174. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17175. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17176. xcb_tmp = _buffer
  17177. _aux = _buffer
  17178. xcb_buffer_len = uint32(0)
  17179. xcb_block_len = uint32(0)
  17180. xcb_pad = uint32(0)
  17181. xcb_align_to = uint32(0)
  17182. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17183. xcb_tmp += uintptr(xcb_block_len)
  17184. xcb_buffer_len += xcb_block_len
  17185. xcb_block_len = uint32(0)
  17186. /* cmaps */
  17187. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(_aux)).Fcmaps_len)*libc.Uint64FromInt64(4))
  17188. xcb_tmp += uintptr(xcb_block_len)
  17189. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17190. /* insert padding */
  17191. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17192. xcb_buffer_len += xcb_block_len + xcb_pad
  17193. if uint32(0) != xcb_pad {
  17194. xcb_tmp += uintptr(xcb_pad)
  17195. xcb_pad = uint32(0)
  17196. }
  17197. xcb_block_len = uint32(0)
  17198. return libc.Int32FromUint32(xcb_buffer_len)
  17199. }
  17200. func Xxcb_list_installed_colormaps(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17201. bp := tls.Alloc(80)
  17202. defer tls.Free(80)
  17203. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17204. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17205. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17206. _ = xcb_ret
  17207. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17208. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17209. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17210. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17213. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req174)))
  17214. return xcb_ret
  17215. }
  17216. var _xcb_req174 = Txcb_protocol_request_t{
  17217. Fcount: uint64(2),
  17218. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17219. }
  17220. func Xxcb_list_installed_colormaps_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17221. bp := tls.Alloc(80)
  17222. defer tls.Free(80)
  17223. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17224. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17225. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17226. _ = xcb_ret
  17227. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17228. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17229. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17230. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17231. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17232. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17233. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req175)))
  17234. return xcb_ret
  17235. }
  17236. var _xcb_req175 = Txcb_protocol_request_t{
  17237. Fcount: uint64(2),
  17238. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17239. }
  17240. func Xxcb_list_installed_colormaps_cmaps(tls *libc.TLS, R uintptr) (r uintptr) {
  17241. return R + libc.UintptrFromInt32(1)*32
  17242. }
  17243. func Xxcb_list_installed_colormaps_cmaps_length(tls *libc.TLS, R uintptr) (r int32) {
  17244. return libc.Int32FromUint16((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)
  17245. }
  17246. func Xxcb_list_installed_colormaps_cmaps_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17247. var i Txcb_generic_iterator_t
  17248. _ = i
  17249. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)*4
  17250. i.Frem = 0
  17251. i.Findex = int32(int64(i.Fdata) - int64(R))
  17252. return i
  17253. }
  17254. func Xxcb_list_installed_colormaps_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_installed_colormaps_cookie_t, e uintptr) (r uintptr) {
  17255. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17256. }
  17257. 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) {
  17258. bp := tls.Alloc(80)
  17259. defer tls.Free(80)
  17260. var xcb_ret Txcb_alloc_color_cookie_t
  17261. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17262. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17263. _ = xcb_ret
  17264. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17265. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17266. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17267. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17268. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17269. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17270. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17271. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17272. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17273. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17274. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req176)))
  17275. return xcb_ret
  17276. }
  17277. var _xcb_req176 = Txcb_protocol_request_t{
  17278. Fcount: uint64(2),
  17279. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17280. }
  17281. 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) {
  17282. bp := tls.Alloc(80)
  17283. defer tls.Free(80)
  17284. var xcb_ret Txcb_alloc_color_cookie_t
  17285. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17286. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17287. _ = xcb_ret
  17288. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17289. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17290. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17291. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17292. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17293. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17294. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17295. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17296. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17297. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17298. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req177)))
  17299. return xcb_ret
  17300. }
  17301. var _xcb_req177 = Txcb_protocol_request_t{
  17302. Fcount: uint64(2),
  17303. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17304. }
  17305. func Xxcb_alloc_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cookie_t, e uintptr) (r uintptr) {
  17306. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17307. }
  17308. func Xxcb_alloc_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17309. var _aux, xcb_tmp uintptr
  17310. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17311. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17312. xcb_tmp = _buffer
  17313. _aux = _buffer
  17314. xcb_buffer_len = uint32(0)
  17315. xcb_block_len = uint32(0)
  17316. xcb_pad = uint32(0)
  17317. xcb_align_to = uint32(0)
  17318. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17319. xcb_tmp += uintptr(xcb_block_len)
  17320. xcb_buffer_len += xcb_block_len
  17321. xcb_block_len = uint32(0)
  17322. /* name */
  17323. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17324. xcb_tmp += uintptr(xcb_block_len)
  17325. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17326. /* insert padding */
  17327. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17328. xcb_buffer_len += xcb_block_len + xcb_pad
  17329. if uint32(0) != xcb_pad {
  17330. xcb_tmp += uintptr(xcb_pad)
  17331. xcb_pad = uint32(0)
  17332. }
  17333. xcb_block_len = uint32(0)
  17334. return libc.Int32FromUint32(xcb_buffer_len)
  17335. }
  17336. 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) {
  17337. bp := tls.Alloc(112)
  17338. defer tls.Free(112)
  17339. var xcb_ret Txcb_alloc_named_color_cookie_t
  17340. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17341. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17342. _ = xcb_ret
  17343. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17344. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17345. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17346. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17347. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17348. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17349. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17350. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17351. /* char name */
  17352. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17353. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17354. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17355. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17356. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req178)))
  17357. return xcb_ret
  17358. }
  17359. var _xcb_req178 = Txcb_protocol_request_t{
  17360. Fcount: uint64(4),
  17361. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17362. }
  17363. 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) {
  17364. bp := tls.Alloc(112)
  17365. defer tls.Free(112)
  17366. var xcb_ret Txcb_alloc_named_color_cookie_t
  17367. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17368. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17369. _ = xcb_ret
  17370. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17371. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17372. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17373. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17374. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17375. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17376. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17377. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17378. /* char name */
  17379. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17380. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17381. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17382. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17383. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req179)))
  17384. return xcb_ret
  17385. }
  17386. var _xcb_req179 = Txcb_protocol_request_t{
  17387. Fcount: uint64(4),
  17388. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17389. }
  17390. func Xxcb_alloc_named_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_named_color_cookie_t, e uintptr) (r uintptr) {
  17391. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17392. }
  17393. func Xxcb_alloc_color_cells_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17394. var _aux, xcb_tmp uintptr
  17395. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17396. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17397. xcb_tmp = _buffer
  17398. _aux = _buffer
  17399. xcb_buffer_len = uint32(0)
  17400. xcb_block_len = uint32(0)
  17401. xcb_pad = uint32(0)
  17402. xcb_align_to = uint32(0)
  17403. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17404. xcb_tmp += uintptr(xcb_block_len)
  17405. xcb_buffer_len += xcb_block_len
  17406. xcb_block_len = uint32(0)
  17407. /* pixels */
  17408. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17409. xcb_tmp += uintptr(xcb_block_len)
  17410. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17411. /* insert padding */
  17412. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17413. xcb_buffer_len += xcb_block_len + xcb_pad
  17414. if uint32(0) != xcb_pad {
  17415. xcb_tmp += uintptr(xcb_pad)
  17416. xcb_pad = uint32(0)
  17417. }
  17418. xcb_block_len = uint32(0)
  17419. /* masks */
  17420. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fmasks_len)*libc.Uint64FromInt64(4))
  17421. xcb_tmp += uintptr(xcb_block_len)
  17422. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17423. /* insert padding */
  17424. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17425. xcb_buffer_len += xcb_block_len + xcb_pad
  17426. if uint32(0) != xcb_pad {
  17427. xcb_tmp += uintptr(xcb_pad)
  17428. xcb_pad = uint32(0)
  17429. }
  17430. xcb_block_len = uint32(0)
  17431. return libc.Int32FromUint32(xcb_buffer_len)
  17432. }
  17433. 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) {
  17434. bp := tls.Alloc(80)
  17435. defer tls.Free(80)
  17436. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17437. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17438. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17439. _ = xcb_ret
  17440. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17441. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17442. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17443. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17444. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17445. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17446. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17447. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17448. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req180)))
  17449. return xcb_ret
  17450. }
  17451. var _xcb_req180 = Txcb_protocol_request_t{
  17452. Fcount: uint64(2),
  17453. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17454. }
  17455. 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) {
  17456. bp := tls.Alloc(80)
  17457. defer tls.Free(80)
  17458. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17459. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17460. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17461. _ = xcb_ret
  17462. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17463. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17464. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17465. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17466. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17467. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17468. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17469. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17470. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req181)))
  17471. return xcb_ret
  17472. }
  17473. var _xcb_req181 = Txcb_protocol_request_t{
  17474. Fcount: uint64(2),
  17475. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17476. }
  17477. func Xxcb_alloc_color_cells_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17478. return R + libc.UintptrFromInt32(1)*32
  17479. }
  17480. func Xxcb_alloc_color_cells_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17481. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17482. }
  17483. func Xxcb_alloc_color_cells_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17484. var i Txcb_generic_iterator_t
  17485. _ = i
  17486. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17487. i.Frem = 0
  17488. i.Findex = int32(int64(i.Fdata) - int64(R))
  17489. return i
  17490. }
  17491. func Xxcb_alloc_color_cells_masks(tls *libc.TLS, R uintptr) (r uintptr) {
  17492. var prev Txcb_generic_iterator_t
  17493. _ = prev
  17494. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17495. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  17496. }
  17497. func Xxcb_alloc_color_cells_masks_length(tls *libc.TLS, R uintptr) (r int32) {
  17498. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)
  17499. }
  17500. func Xxcb_alloc_color_cells_masks_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17501. var i, prev Txcb_generic_iterator_t
  17502. _, _ = i, prev
  17503. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17504. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)*4
  17505. i.Frem = 0
  17506. i.Findex = int32(int64(i.Fdata) - int64(R))
  17507. return i
  17508. }
  17509. func Xxcb_alloc_color_cells_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cells_cookie_t, e uintptr) (r uintptr) {
  17510. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17511. }
  17512. func Xxcb_alloc_color_planes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17513. var _aux, xcb_tmp uintptr
  17514. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17515. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17516. xcb_tmp = _buffer
  17517. _aux = _buffer
  17518. xcb_buffer_len = uint32(0)
  17519. xcb_block_len = uint32(0)
  17520. xcb_pad = uint32(0)
  17521. xcb_align_to = uint32(0)
  17522. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17523. xcb_tmp += uintptr(xcb_block_len)
  17524. xcb_buffer_len += xcb_block_len
  17525. xcb_block_len = uint32(0)
  17526. /* pixels */
  17527. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17528. xcb_tmp += uintptr(xcb_block_len)
  17529. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17530. /* insert padding */
  17531. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17532. xcb_buffer_len += xcb_block_len + xcb_pad
  17533. if uint32(0) != xcb_pad {
  17534. xcb_tmp += uintptr(xcb_pad)
  17535. xcb_pad = uint32(0)
  17536. }
  17537. xcb_block_len = uint32(0)
  17538. return libc.Int32FromUint32(xcb_buffer_len)
  17539. }
  17540. 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) {
  17541. bp := tls.Alloc(80)
  17542. defer tls.Free(80)
  17543. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17544. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17545. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17546. _ = xcb_ret
  17547. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17548. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17549. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17550. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17551. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17552. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17553. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17554. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17555. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17556. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17557. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req182)))
  17558. return xcb_ret
  17559. }
  17560. var _xcb_req182 = Txcb_protocol_request_t{
  17561. Fcount: uint64(2),
  17562. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17563. }
  17564. 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) {
  17565. bp := tls.Alloc(80)
  17566. defer tls.Free(80)
  17567. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17568. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17569. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17570. _ = xcb_ret
  17571. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17572. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17573. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17574. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17575. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17576. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17577. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17578. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17579. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17580. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17581. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req183)))
  17582. return xcb_ret
  17583. }
  17584. var _xcb_req183 = Txcb_protocol_request_t{
  17585. Fcount: uint64(2),
  17586. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17587. }
  17588. func Xxcb_alloc_color_planes_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17589. return R + libc.UintptrFromInt32(1)*32
  17590. }
  17591. func Xxcb_alloc_color_planes_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17592. return libc.Int32FromUint16((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17593. }
  17594. func Xxcb_alloc_color_planes_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17595. var i Txcb_generic_iterator_t
  17596. _ = i
  17597. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17598. i.Frem = 0
  17599. i.Findex = int32(int64(i.Fdata) - int64(R))
  17600. return i
  17601. }
  17602. func Xxcb_alloc_color_planes_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_planes_cookie_t, e uintptr) (r uintptr) {
  17603. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17604. }
  17605. func Xxcb_free_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17606. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17607. var xcb_tmp uintptr
  17608. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17609. xcb_tmp = _buffer
  17610. xcb_buffer_len = uint32(0)
  17611. xcb_block_len = uint32(0)
  17612. xcb_pad = uint32(0)
  17613. xcb_align_to = uint32(0)
  17614. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17615. xcb_tmp += uintptr(xcb_block_len)
  17616. xcb_buffer_len += xcb_block_len
  17617. xcb_block_len = uint32(0)
  17618. /* pixels */
  17619. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17620. xcb_tmp += uintptr(xcb_block_len)
  17621. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17622. /* insert padding */
  17623. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17624. xcb_buffer_len += xcb_block_len + xcb_pad
  17625. if uint32(0) != xcb_pad {
  17626. xcb_tmp += uintptr(xcb_pad)
  17627. xcb_pad = uint32(0)
  17628. }
  17629. xcb_block_len = uint32(0)
  17630. return libc.Int32FromUint32(xcb_buffer_len)
  17631. }
  17632. 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) {
  17633. bp := tls.Alloc(112)
  17634. defer tls.Free(112)
  17635. var xcb_ret Txcb_void_cookie_t
  17636. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17637. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17638. _ = xcb_ret
  17639. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17640. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17641. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17642. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17643. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17644. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17645. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17646. /* uint32_t pixels */
  17647. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17648. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17649. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17650. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17651. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req184)))
  17652. return xcb_ret
  17653. }
  17654. var _xcb_req184 = Txcb_protocol_request_t{
  17655. Fcount: uint64(4),
  17656. Fopcode: uint8(m_XCB_FREE_COLORS),
  17657. Fisvoid: uint8(1),
  17658. }
  17659. 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) {
  17660. bp := tls.Alloc(112)
  17661. defer tls.Free(112)
  17662. var xcb_ret Txcb_void_cookie_t
  17663. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17664. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17665. _ = xcb_ret
  17666. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17667. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17668. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17669. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17670. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17671. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17672. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17673. /* uint32_t pixels */
  17674. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17675. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17676. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17677. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17678. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req185)))
  17679. return xcb_ret
  17680. }
  17681. var _xcb_req185 = Txcb_protocol_request_t{
  17682. Fcount: uint64(4),
  17683. Fopcode: uint8(m_XCB_FREE_COLORS),
  17684. Fisvoid: uint8(1),
  17685. }
  17686. func Xxcb_free_colors_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17687. return R + libc.UintptrFromInt32(1)*12
  17688. }
  17689. func Xxcb_free_colors_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17690. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_free_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(12)) / libc.Uint64FromInt64(4))
  17691. }
  17692. func Xxcb_free_colors_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17693. var i Txcb_generic_iterator_t
  17694. _ = i
  17695. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_free_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(12))/libc.Uint64FromInt64(4))*4
  17696. i.Frem = 0
  17697. i.Findex = int32(int64(i.Fdata) - int64(R))
  17698. return i
  17699. }
  17700. func Xxcb_coloritem_next(tls *libc.TLS, i uintptr) {
  17701. var p1 uintptr
  17702. _ = p1
  17703. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Frem--
  17704. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  17705. p1 = i + 12
  17706. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  17707. }
  17708. func Xxcb_coloritem_end(tls *libc.TLS, i Txcb_coloritem_iterator_t) (r Txcb_generic_iterator_t) {
  17709. var ret Txcb_generic_iterator_t
  17710. _ = ret
  17711. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  17712. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17713. ret.Frem = 0
  17714. return ret
  17715. }
  17716. func Xxcb_store_colors_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  17717. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17718. var xcb_tmp uintptr
  17719. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17720. xcb_tmp = _buffer
  17721. xcb_buffer_len = uint32(0)
  17722. xcb_block_len = uint32(0)
  17723. xcb_pad = uint32(0)
  17724. xcb_align_to = uint32(0)
  17725. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17726. xcb_tmp += uintptr(xcb_block_len)
  17727. xcb_buffer_len += xcb_block_len
  17728. xcb_block_len = uint32(0)
  17729. /* items */
  17730. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(12))
  17731. xcb_tmp += uintptr(xcb_block_len)
  17732. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17733. /* insert padding */
  17734. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17735. xcb_buffer_len += xcb_block_len + xcb_pad
  17736. if uint32(0) != xcb_pad {
  17737. xcb_tmp += uintptr(xcb_pad)
  17738. xcb_pad = uint32(0)
  17739. }
  17740. xcb_block_len = uint32(0)
  17741. return libc.Int32FromUint32(xcb_buffer_len)
  17742. }
  17743. 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) {
  17744. bp := tls.Alloc(112)
  17745. defer tls.Free(112)
  17746. var xcb_ret Txcb_void_cookie_t
  17747. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17748. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17749. _ = xcb_ret
  17750. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17751. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17752. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17753. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17754. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17755. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17756. /* xcb_coloritem_t items */
  17757. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17758. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17759. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17760. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17761. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req186)))
  17762. return xcb_ret
  17763. }
  17764. var _xcb_req186 = Txcb_protocol_request_t{
  17765. Fcount: uint64(4),
  17766. Fopcode: uint8(m_XCB_STORE_COLORS),
  17767. Fisvoid: uint8(1),
  17768. }
  17769. func Xxcb_store_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
  17770. bp := tls.Alloc(112)
  17771. defer tls.Free(112)
  17772. var xcb_ret Txcb_void_cookie_t
  17773. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17774. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17775. _ = xcb_ret
  17776. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17777. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17778. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17779. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17780. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17781. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17782. /* xcb_coloritem_t items */
  17783. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17784. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17785. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17786. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17787. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req187)))
  17788. return xcb_ret
  17789. }
  17790. var _xcb_req187 = Txcb_protocol_request_t{
  17791. Fcount: uint64(4),
  17792. Fopcode: uint8(m_XCB_STORE_COLORS),
  17793. Fisvoid: uint8(1),
  17794. }
  17795. func Xxcb_store_colors_items(tls *libc.TLS, R uintptr) (r uintptr) {
  17796. return R + libc.UintptrFromInt32(1)*8
  17797. }
  17798. func Xxcb_store_colors_items_length(tls *libc.TLS, R uintptr) (r int32) {
  17799. return libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_store_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(8)) / libc.Uint64FromInt64(12))
  17800. }
  17801. func Xxcb_store_colors_items_iterator(tls *libc.TLS, R uintptr) (r Txcb_coloritem_iterator_t) {
  17802. var i Txcb_coloritem_iterator_t
  17803. _ = i
  17804. i.Fdata = R + libc.UintptrFromInt32(1)*8
  17805. i.Frem = libc.Int32FromUint64((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_store_colors_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4)) - libc.Uint64FromInt64(8)) / libc.Uint64FromInt64(12))
  17806. i.Findex = int32(int64(i.Fdata) - int64(R))
  17807. return i
  17808. }
  17809. func Xxcb_store_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17810. var _aux, xcb_tmp uintptr
  17811. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17812. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17813. xcb_tmp = _buffer
  17814. _aux = _buffer
  17815. xcb_buffer_len = uint32(0)
  17816. xcb_block_len = uint32(0)
  17817. xcb_pad = uint32(0)
  17818. xcb_align_to = uint32(0)
  17819. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  17820. xcb_tmp += uintptr(xcb_block_len)
  17821. xcb_buffer_len += xcb_block_len
  17822. xcb_block_len = uint32(0)
  17823. /* name */
  17824. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_store_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17825. xcb_tmp += uintptr(xcb_block_len)
  17826. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17827. /* insert padding */
  17828. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17829. xcb_buffer_len += xcb_block_len + xcb_pad
  17830. if uint32(0) != xcb_pad {
  17831. xcb_tmp += uintptr(xcb_pad)
  17832. xcb_pad = uint32(0)
  17833. }
  17834. xcb_block_len = uint32(0)
  17835. return libc.Int32FromUint32(xcb_buffer_len)
  17836. }
  17837. 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) {
  17838. bp := tls.Alloc(112)
  17839. defer tls.Free(112)
  17840. var xcb_ret Txcb_void_cookie_t
  17841. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17842. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17843. _ = xcb_ret
  17844. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17845. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17846. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17847. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17848. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17849. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17850. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17851. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17852. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17853. /* char name */
  17854. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17855. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17856. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17857. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17858. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req188)))
  17859. return xcb_ret
  17860. }
  17861. var _xcb_req188 = Txcb_protocol_request_t{
  17862. Fcount: uint64(4),
  17863. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17864. Fisvoid: uint8(1),
  17865. }
  17866. 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) {
  17867. bp := tls.Alloc(112)
  17868. defer tls.Free(112)
  17869. var xcb_ret Txcb_void_cookie_t
  17870. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17871. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17872. _ = xcb_ret
  17873. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17874. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17875. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17876. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17877. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17878. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17879. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17880. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17881. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17882. /* char name */
  17883. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17884. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17885. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17886. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17887. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req189)))
  17888. return xcb_ret
  17889. }
  17890. var _xcb_req189 = Txcb_protocol_request_t{
  17891. Fcount: uint64(4),
  17892. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17893. Fisvoid: uint8(1),
  17894. }
  17895. func Xxcb_store_named_color_name(tls *libc.TLS, R uintptr) (r uintptr) {
  17896. return R + libc.UintptrFromInt32(1)*16
  17897. }
  17898. func Xxcb_store_named_color_name_length(tls *libc.TLS, R uintptr) (r int32) {
  17899. return libc.Int32FromUint16((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17900. }
  17901. func Xxcb_store_named_color_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17902. var i Txcb_generic_iterator_t
  17903. _ = i
  17904. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17905. i.Frem = 0
  17906. i.Findex = int32(int64(i.Fdata) - int64(R))
  17907. return i
  17908. }
  17909. func Xxcb_rgb_next(tls *libc.TLS, i uintptr) {
  17910. var p1 uintptr
  17911. _ = p1
  17912. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Frem--
  17913. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  17914. p1 = i + 12
  17915. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  17916. }
  17917. func Xxcb_rgb_end(tls *libc.TLS, i Txcb_rgb_iterator_t) (r Txcb_generic_iterator_t) {
  17918. var ret Txcb_generic_iterator_t
  17919. _ = ret
  17920. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  17921. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17922. ret.Frem = 0
  17923. return ret
  17924. }
  17925. func Xxcb_query_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17926. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17927. var xcb_tmp uintptr
  17928. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17929. xcb_tmp = _buffer
  17930. xcb_buffer_len = uint32(0)
  17931. xcb_block_len = uint32(0)
  17932. xcb_pad = uint32(0)
  17933. xcb_align_to = uint32(0)
  17934. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17935. xcb_tmp += uintptr(xcb_block_len)
  17936. xcb_buffer_len += xcb_block_len
  17937. xcb_block_len = uint32(0)
  17938. /* pixels */
  17939. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17940. xcb_tmp += uintptr(xcb_block_len)
  17941. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17942. /* insert padding */
  17943. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17944. xcb_buffer_len += xcb_block_len + xcb_pad
  17945. if uint32(0) != xcb_pad {
  17946. xcb_tmp += uintptr(xcb_pad)
  17947. xcb_pad = uint32(0)
  17948. }
  17949. xcb_block_len = uint32(0)
  17950. return libc.Int32FromUint32(xcb_buffer_len)
  17951. }
  17952. 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) {
  17953. bp := tls.Alloc(112)
  17954. defer tls.Free(112)
  17955. var xcb_ret Txcb_query_colors_cookie_t
  17956. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17957. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17958. _ = xcb_ret
  17959. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17960. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17961. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17962. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17963. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17964. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17965. /* uint32_t pixels */
  17966. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17967. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17968. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17969. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17970. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req190)))
  17971. return xcb_ret
  17972. }
  17973. var _xcb_req190 = Txcb_protocol_request_t{
  17974. Fcount: uint64(4),
  17975. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17976. }
  17977. 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) {
  17978. bp := tls.Alloc(112)
  17979. defer tls.Free(112)
  17980. var xcb_ret Txcb_query_colors_cookie_t
  17981. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17982. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17983. _ = xcb_ret
  17984. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17985. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17986. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17987. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17988. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17989. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17990. /* uint32_t pixels */
  17991. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17992. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17993. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17994. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17995. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req191)))
  17996. return xcb_ret
  17997. }
  17998. var _xcb_req191 = Txcb_protocol_request_t{
  17999. Fcount: uint64(4),
  18000. Fopcode: uint8(m_XCB_QUERY_COLORS),
  18001. }
  18002. func Xxcb_query_colors_colors(tls *libc.TLS, R uintptr) (r uintptr) {
  18003. return R + libc.UintptrFromInt32(1)*32
  18004. }
  18005. func Xxcb_query_colors_colors_length(tls *libc.TLS, R uintptr) (r int32) {
  18006. return libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  18007. }
  18008. func Xxcb_query_colors_colors_iterator(tls *libc.TLS, R uintptr) (r Txcb_rgb_iterator_t) {
  18009. var i Txcb_rgb_iterator_t
  18010. _ = i
  18011. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18012. i.Frem = libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  18013. i.Findex = int32(int64(i.Fdata) - int64(R))
  18014. return i
  18015. }
  18016. func Xxcb_query_colors_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_colors_cookie_t, e uintptr) (r uintptr) {
  18017. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18018. }
  18019. func Xxcb_lookup_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18020. var _aux, xcb_tmp uintptr
  18021. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18022. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18023. xcb_tmp = _buffer
  18024. _aux = _buffer
  18025. xcb_buffer_len = uint32(0)
  18026. xcb_block_len = uint32(0)
  18027. xcb_pad = uint32(0)
  18028. xcb_align_to = uint32(0)
  18029. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  18030. xcb_tmp += uintptr(xcb_block_len)
  18031. xcb_buffer_len += xcb_block_len
  18032. xcb_block_len = uint32(0)
  18033. /* name */
  18034. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_lookup_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  18035. xcb_tmp += uintptr(xcb_block_len)
  18036. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18037. /* insert padding */
  18038. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18039. xcb_buffer_len += xcb_block_len + xcb_pad
  18040. if uint32(0) != xcb_pad {
  18041. xcb_tmp += uintptr(xcb_pad)
  18042. xcb_pad = uint32(0)
  18043. }
  18044. xcb_block_len = uint32(0)
  18045. return libc.Int32FromUint32(xcb_buffer_len)
  18046. }
  18047. 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) {
  18048. bp := tls.Alloc(112)
  18049. defer tls.Free(112)
  18050. var xcb_ret Txcb_lookup_color_cookie_t
  18051. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  18052. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18053. _ = xcb_ret
  18054. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18055. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18056. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18057. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  18058. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18059. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18060. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18061. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18062. /* char name */
  18063. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18064. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18065. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18066. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18067. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req192)))
  18068. return xcb_ret
  18069. }
  18070. var _xcb_req192 = Txcb_protocol_request_t{
  18071. Fcount: uint64(4),
  18072. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18073. }
  18074. 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) {
  18075. bp := tls.Alloc(112)
  18076. defer tls.Free(112)
  18077. var xcb_ret Txcb_lookup_color_cookie_t
  18078. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  18079. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18080. _ = xcb_ret
  18081. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18082. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18083. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18084. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  18085. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18086. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18087. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18088. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18089. /* char name */
  18090. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18091. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18092. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18093. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18094. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req193)))
  18095. return xcb_ret
  18096. }
  18097. var _xcb_req193 = Txcb_protocol_request_t{
  18098. Fcount: uint64(4),
  18099. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18100. }
  18101. func Xxcb_lookup_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_lookup_color_cookie_t, e uintptr) (r uintptr) {
  18102. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18103. }
  18104. 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) {
  18105. bp := tls.Alloc(96)
  18106. defer tls.Free(96)
  18107. var xcb_ret Txcb_void_cookie_t
  18108. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18109. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18110. _ = xcb_ret
  18111. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18112. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18113. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18114. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18115. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18116. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18117. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18118. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18119. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18120. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18121. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18122. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18126. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18127. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req194)))
  18128. return xcb_ret
  18129. }
  18130. var _xcb_req194 = Txcb_protocol_request_t{
  18131. Fcount: uint64(2),
  18132. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18133. Fisvoid: uint8(1),
  18134. }
  18135. 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) {
  18136. bp := tls.Alloc(96)
  18137. defer tls.Free(96)
  18138. var xcb_ret Txcb_void_cookie_t
  18139. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18140. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18141. _ = xcb_ret
  18142. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18143. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18144. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18145. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18146. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18147. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18148. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18149. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18150. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18151. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18152. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18153. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18154. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18156. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18158. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req195)))
  18159. return xcb_ret
  18160. }
  18161. var _xcb_req195 = Txcb_protocol_request_t{
  18162. Fcount: uint64(2),
  18163. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18164. Fisvoid: uint8(1),
  18165. }
  18166. 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) {
  18167. bp := tls.Alloc(96)
  18168. defer tls.Free(96)
  18169. var xcb_ret Txcb_void_cookie_t
  18170. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18171. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18172. _ = xcb_ret
  18173. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18174. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18175. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18176. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18177. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18178. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18179. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18180. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18181. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18182. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18183. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18184. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18185. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18186. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18187. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18188. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18189. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req196)))
  18190. return xcb_ret
  18191. }
  18192. var _xcb_req196 = Txcb_protocol_request_t{
  18193. Fcount: uint64(2),
  18194. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18195. Fisvoid: uint8(1),
  18196. }
  18197. 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) {
  18198. bp := tls.Alloc(96)
  18199. defer tls.Free(96)
  18200. var xcb_ret Txcb_void_cookie_t
  18201. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18202. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18203. _ = xcb_ret
  18204. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18205. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18206. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18207. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18208. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18209. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18210. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18211. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18212. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18213. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18214. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18215. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18216. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18217. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18220. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req197)))
  18221. return xcb_ret
  18222. }
  18223. var _xcb_req197 = Txcb_protocol_request_t{
  18224. Fcount: uint64(2),
  18225. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18226. Fisvoid: uint8(1),
  18227. }
  18228. func Xxcb_free_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18229. bp := tls.Alloc(80)
  18230. defer tls.Free(80)
  18231. var xcb_ret Txcb_void_cookie_t
  18232. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18233. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18234. _ = xcb_ret
  18235. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18236. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18241. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req198)))
  18242. return xcb_ret
  18243. }
  18244. var _xcb_req198 = Txcb_protocol_request_t{
  18245. Fcount: uint64(2),
  18246. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18247. Fisvoid: uint8(1),
  18248. }
  18249. func Xxcb_free_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18250. bp := tls.Alloc(80)
  18251. defer tls.Free(80)
  18252. var xcb_ret Txcb_void_cookie_t
  18253. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18254. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18255. _ = xcb_ret
  18256. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18257. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18262. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req199)))
  18263. return xcb_ret
  18264. }
  18265. var _xcb_req199 = Txcb_protocol_request_t{
  18266. Fcount: uint64(2),
  18267. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18268. Fisvoid: uint8(1),
  18269. }
  18270. 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) {
  18271. bp := tls.Alloc(96)
  18272. defer tls.Free(96)
  18273. var xcb_ret Txcb_void_cookie_t
  18274. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18275. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18276. _ = xcb_ret
  18277. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18278. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18279. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18280. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18281. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18282. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18283. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18284. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18285. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18286. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18287. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18288. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18289. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req200)))
  18290. return xcb_ret
  18291. }
  18292. var _xcb_req200 = Txcb_protocol_request_t{
  18293. Fcount: uint64(2),
  18294. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18295. Fisvoid: uint8(1),
  18296. }
  18297. 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) {
  18298. bp := tls.Alloc(96)
  18299. defer tls.Free(96)
  18300. var xcb_ret Txcb_void_cookie_t
  18301. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18302. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18303. _ = xcb_ret
  18304. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18305. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18306. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18307. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18308. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18309. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18310. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18311. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18313. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18314. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18315. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18316. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req201)))
  18317. return xcb_ret
  18318. }
  18319. var _xcb_req201 = Txcb_protocol_request_t{
  18320. Fcount: uint64(2),
  18321. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18322. Fisvoid: uint8(1),
  18323. }
  18324. 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) {
  18325. bp := tls.Alloc(80)
  18326. defer tls.Free(80)
  18327. var xcb_ret Txcb_query_best_size_cookie_t
  18328. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18329. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18330. _ = xcb_ret
  18331. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18332. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18333. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18334. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18335. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18336. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18337. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18338. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18339. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req202)))
  18340. return xcb_ret
  18341. }
  18342. var _xcb_req202 = Txcb_protocol_request_t{
  18343. Fcount: uint64(2),
  18344. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18345. }
  18346. 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) {
  18347. bp := tls.Alloc(80)
  18348. defer tls.Free(80)
  18349. var xcb_ret Txcb_query_best_size_cookie_t
  18350. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18351. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18352. _ = xcb_ret
  18353. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18354. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18355. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18356. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18357. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18360. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18361. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req203)))
  18362. return xcb_ret
  18363. }
  18364. var _xcb_req203 = Txcb_protocol_request_t{
  18365. Fcount: uint64(2),
  18366. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18367. }
  18368. func Xxcb_query_best_size_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_best_size_cookie_t, e uintptr) (r uintptr) {
  18369. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18370. }
  18371. func Xxcb_query_extension_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18372. var _aux, xcb_tmp uintptr
  18373. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18374. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18375. xcb_tmp = _buffer
  18376. _aux = _buffer
  18377. xcb_buffer_len = uint32(0)
  18378. xcb_block_len = uint32(0)
  18379. xcb_pad = uint32(0)
  18380. xcb_align_to = uint32(0)
  18381. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18382. xcb_tmp += uintptr(xcb_block_len)
  18383. xcb_buffer_len += xcb_block_len
  18384. xcb_block_len = uint32(0)
  18385. /* name */
  18386. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_extension_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  18387. xcb_tmp += uintptr(xcb_block_len)
  18388. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18389. /* insert padding */
  18390. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18391. xcb_buffer_len += xcb_block_len + xcb_pad
  18392. if uint32(0) != xcb_pad {
  18393. xcb_tmp += uintptr(xcb_pad)
  18394. xcb_pad = uint32(0)
  18395. }
  18396. xcb_block_len = uint32(0)
  18397. return libc.Int32FromUint32(xcb_buffer_len)
  18398. }
  18399. func Xxcb_query_extension(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18400. bp := tls.Alloc(112)
  18401. defer tls.Free(112)
  18402. var xcb_ret Txcb_query_extension_cookie_t
  18403. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18404. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18405. _ = xcb_ret
  18406. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18407. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18408. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18409. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18410. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18411. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18412. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18413. /* char name */
  18414. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18415. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18416. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18417. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18418. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req204)))
  18419. return xcb_ret
  18420. }
  18421. var _xcb_req204 = Txcb_protocol_request_t{
  18422. Fcount: uint64(4),
  18423. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18424. }
  18425. func Xxcb_query_extension_unchecked(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18426. bp := tls.Alloc(112)
  18427. defer tls.Free(112)
  18428. var xcb_ret Txcb_query_extension_cookie_t
  18429. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18430. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18431. _ = xcb_ret
  18432. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18433. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18434. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18435. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18436. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18437. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18438. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18439. /* char name */
  18440. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18441. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18442. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18443. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18444. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req205)))
  18445. return xcb_ret
  18446. }
  18447. var _xcb_req205 = Txcb_protocol_request_t{
  18448. Fcount: uint64(4),
  18449. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18450. }
  18451. func Xxcb_query_extension_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_extension_cookie_t, e uintptr) (r uintptr) {
  18452. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18453. }
  18454. func Xxcb_list_extensions_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18455. var _aux, xcb_tmp uintptr
  18456. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  18457. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  18458. xcb_tmp = _buffer
  18459. _aux = _buffer
  18460. xcb_buffer_len = uint32(0)
  18461. xcb_block_len = uint32(0)
  18462. xcb_pad = uint32(0)
  18463. xcb_align_to = uint32(0)
  18464. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18465. xcb_tmp += uintptr(xcb_block_len)
  18466. xcb_buffer_len += xcb_block_len
  18467. xcb_block_len = uint32(0)
  18468. /* names */
  18469. i = uint32(0)
  18470. for {
  18471. if !(i < uint32((*Txcb_list_extensions_reply_t)(unsafe.Pointer(_aux)).Fnames_len)) {
  18472. break
  18473. }
  18474. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  18475. xcb_block_len += xcb_tmp_len
  18476. xcb_tmp += uintptr(xcb_tmp_len)
  18477. goto _1
  18478. _1:
  18479. ;
  18480. i++
  18481. }
  18482. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18483. /* insert padding */
  18484. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18485. xcb_buffer_len += xcb_block_len + xcb_pad
  18486. if uint32(0) != xcb_pad {
  18487. xcb_tmp += uintptr(xcb_pad)
  18488. xcb_pad = uint32(0)
  18489. }
  18490. xcb_block_len = uint32(0)
  18491. return libc.Int32FromUint32(xcb_buffer_len)
  18492. }
  18493. func Xxcb_list_extensions(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18494. bp := tls.Alloc(80)
  18495. defer tls.Free(80)
  18496. var xcb_ret Txcb_list_extensions_cookie_t
  18497. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18498. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18499. _ = xcb_ret
  18500. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18501. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18503. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18504. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18505. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req206)))
  18506. return xcb_ret
  18507. }
  18508. var _xcb_req206 = Txcb_protocol_request_t{
  18509. Fcount: uint64(2),
  18510. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18511. }
  18512. func Xxcb_list_extensions_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18513. bp := tls.Alloc(80)
  18514. defer tls.Free(80)
  18515. var xcb_ret Txcb_list_extensions_cookie_t
  18516. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18517. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18518. _ = xcb_ret
  18519. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18520. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18521. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18522. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18523. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18524. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req207)))
  18525. return xcb_ret
  18526. }
  18527. var _xcb_req207 = Txcb_protocol_request_t{
  18528. Fcount: uint64(2),
  18529. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18530. }
  18531. func Xxcb_list_extensions_names_length(tls *libc.TLS, R uintptr) (r int32) {
  18532. return libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18533. }
  18534. func Xxcb_list_extensions_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  18535. var i Txcb_str_iterator_t
  18536. _ = i
  18537. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18538. i.Frem = libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18539. i.Findex = int32(int64(i.Fdata) - int64(R))
  18540. return i
  18541. }
  18542. func Xxcb_list_extensions_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_extensions_cookie_t, e uintptr) (r uintptr) {
  18543. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18544. }
  18545. func Xxcb_change_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18546. var _aux, xcb_tmp uintptr
  18547. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18548. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18549. xcb_tmp = _buffer
  18550. _aux = _buffer
  18551. xcb_buffer_len = uint32(0)
  18552. xcb_block_len = uint32(0)
  18553. xcb_pad = uint32(0)
  18554. xcb_align_to = uint32(0)
  18555. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18556. xcb_tmp += uintptr(xcb_block_len)
  18557. xcb_buffer_len += xcb_block_len
  18558. xcb_block_len = uint32(0)
  18559. /* keysyms */
  18560. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(_aux)).Fkeycode_count)*libc.Int32FromUint8((*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(_aux)).Fkeysyms_per_keycode))*libc.Uint64FromInt64(4))
  18561. xcb_tmp += uintptr(xcb_block_len)
  18562. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18563. /* insert padding */
  18564. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18565. xcb_buffer_len += xcb_block_len + xcb_pad
  18566. if uint32(0) != xcb_pad {
  18567. xcb_tmp += uintptr(xcb_pad)
  18568. xcb_pad = uint32(0)
  18569. }
  18570. xcb_block_len = uint32(0)
  18571. return libc.Int32FromUint32(xcb_buffer_len)
  18572. }
  18573. 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) {
  18574. bp := tls.Alloc(112)
  18575. defer tls.Free(112)
  18576. var xcb_ret Txcb_void_cookie_t
  18577. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18578. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18579. _ = xcb_ret
  18580. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18581. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18582. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18583. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18585. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18587. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18588. /* xcb_keysym_t keysyms */
  18589. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18590. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18591. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18592. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18593. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req208)))
  18594. return xcb_ret
  18595. }
  18596. var _xcb_req208 = Txcb_protocol_request_t{
  18597. Fcount: uint64(4),
  18598. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18599. Fisvoid: uint8(1),
  18600. }
  18601. 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) {
  18602. bp := tls.Alloc(112)
  18603. defer tls.Free(112)
  18604. var xcb_ret Txcb_void_cookie_t
  18605. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18606. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18607. _ = xcb_ret
  18608. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18609. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18610. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18611. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18612. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18613. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18614. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18615. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18616. /* xcb_keysym_t keysyms */
  18617. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18618. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18619. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18620. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18621. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req209)))
  18622. return xcb_ret
  18623. }
  18624. var _xcb_req209 = Txcb_protocol_request_t{
  18625. Fcount: uint64(4),
  18626. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18627. Fisvoid: uint8(1),
  18628. }
  18629. func Xxcb_change_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18630. return R + libc.UintptrFromInt32(1)*8
  18631. }
  18632. func Xxcb_change_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18633. 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)
  18634. }
  18635. func Xxcb_change_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18636. var i Txcb_generic_iterator_t
  18637. _ = i
  18638. 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
  18639. i.Frem = 0
  18640. i.Findex = int32(int64(i.Fdata) - int64(R))
  18641. return i
  18642. }
  18643. func Xxcb_get_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18644. var _aux, xcb_tmp uintptr
  18645. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18646. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18647. xcb_tmp = _buffer
  18648. _aux = _buffer
  18649. xcb_buffer_len = uint32(0)
  18650. xcb_block_len = uint32(0)
  18651. xcb_pad = uint32(0)
  18652. xcb_align_to = uint32(0)
  18653. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18654. xcb_tmp += uintptr(xcb_block_len)
  18655. xcb_buffer_len += xcb_block_len
  18656. xcb_block_len = uint32(0)
  18657. /* keysyms */
  18658. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(_aux)).Flength)*libc.Uint64FromInt64(4))
  18659. xcb_tmp += uintptr(xcb_block_len)
  18660. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18661. /* insert padding */
  18662. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18663. xcb_buffer_len += xcb_block_len + xcb_pad
  18664. if uint32(0) != xcb_pad {
  18665. xcb_tmp += uintptr(xcb_pad)
  18666. xcb_pad = uint32(0)
  18667. }
  18668. xcb_block_len = uint32(0)
  18669. return libc.Int32FromUint32(xcb_buffer_len)
  18670. }
  18671. 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) {
  18672. bp := tls.Alloc(80)
  18673. defer tls.Free(80)
  18674. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18675. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18676. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18677. _ = xcb_ret
  18678. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18679. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18680. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18681. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18682. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18683. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18684. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18685. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req210)))
  18686. return xcb_ret
  18687. }
  18688. var _xcb_req210 = Txcb_protocol_request_t{
  18689. Fcount: uint64(2),
  18690. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18691. }
  18692. 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) {
  18693. bp := tls.Alloc(80)
  18694. defer tls.Free(80)
  18695. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18696. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18697. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18698. _ = xcb_ret
  18699. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18700. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18701. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18702. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18703. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18704. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18705. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18706. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req211)))
  18707. return xcb_ret
  18708. }
  18709. var _xcb_req211 = Txcb_protocol_request_t{
  18710. Fcount: uint64(2),
  18711. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18712. }
  18713. func Xxcb_get_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18714. return R + libc.UintptrFromInt32(1)*32
  18715. }
  18716. func Xxcb_get_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18717. return libc.Int32FromUint32((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)
  18718. }
  18719. func Xxcb_get_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18720. var i Txcb_generic_iterator_t
  18721. _ = i
  18722. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)*4
  18723. i.Frem = 0
  18724. i.Findex = int32(int64(i.Fdata) - int64(R))
  18725. return i
  18726. }
  18727. func Xxcb_get_keyboard_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_mapping_cookie_t, e uintptr) (r uintptr) {
  18728. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18729. }
  18730. func Xxcb_change_keyboard_control_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18731. bp := tls.Alloc(16)
  18732. defer tls.Free(16)
  18733. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  18734. var xcb_out, xcb_tmp uintptr
  18735. var xcb_parts [9]Tiovec
  18736. var _ /* xcb_pad0 at bp+0 */ [3]int8
  18737. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  18738. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  18739. xcb_buffer_len = uint32(0)
  18740. xcb_align_to = uint32(0)
  18741. xcb_padding_offset = uint32(0)
  18742. xcb_pad = uint32(0)
  18743. *(*[3]int8)(unsafe.Pointer(bp)) = [3]int8{}
  18744. xcb_parts_idx = uint32(0)
  18745. xcb_block_len = uint32(0)
  18746. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18747. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18748. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  18749. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18750. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18751. xcb_parts_idx++
  18752. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18753. }
  18754. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18755. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18756. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  18757. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18758. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18759. xcb_parts_idx++
  18760. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18761. }
  18762. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18763. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18764. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  18765. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18766. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18767. xcb_parts_idx++
  18768. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18769. }
  18770. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18771. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18772. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  18773. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18774. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18775. xcb_parts_idx++
  18776. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18777. }
  18778. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18779. /* xcb_change_keyboard_control_value_list_t.led */
  18780. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  18781. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18782. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18783. xcb_parts_idx++
  18784. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18785. }
  18786. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18787. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18788. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  18789. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18790. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18791. xcb_parts_idx++
  18792. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18793. }
  18794. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18795. /* xcb_change_keyboard_control_value_list_t.key */
  18796. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  18797. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18798. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18799. xcb_parts_idx++
  18800. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18801. }
  18802. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18803. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18804. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  18805. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18806. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18807. xcb_parts_idx++
  18808. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18809. }
  18810. /* insert padding */
  18811. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18812. xcb_buffer_len += xcb_block_len + xcb_pad
  18813. if uint32(0) != xcb_pad {
  18814. xcb_parts[xcb_parts_idx].Fiov_base = bp
  18815. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  18816. xcb_parts_idx++
  18817. xcb_pad = uint32(0)
  18818. }
  18819. xcb_block_len = uint32(0)
  18820. xcb_padding_offset = uint32(0)
  18821. if libc.UintptrFromInt32(0) == xcb_out {
  18822. /* allocate memory */
  18823. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  18824. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  18825. }
  18826. xcb_tmp = xcb_out
  18827. i = uint32(0)
  18828. for {
  18829. if !(i < xcb_parts_idx) {
  18830. break
  18831. }
  18832. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  18833. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  18834. }
  18835. if uint64(0) != xcb_parts[i].Fiov_len {
  18836. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  18837. }
  18838. goto _1
  18839. _1:
  18840. ;
  18841. i++
  18842. }
  18843. return libc.Int32FromUint32(xcb_buffer_len)
  18844. }
  18845. func Xxcb_change_keyboard_control_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18846. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  18847. var xcb_tmp uintptr
  18848. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  18849. xcb_tmp = _buffer
  18850. xcb_buffer_len = uint32(0)
  18851. xcb_block_len = uint32(0)
  18852. xcb_pad = uint32(0)
  18853. xcb_align_to = uint32(0)
  18854. xcb_padding_offset = uint32(0)
  18855. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18856. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18857. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey_click_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18858. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18859. xcb_tmp += uintptr(4)
  18860. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18861. }
  18862. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18863. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18864. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18865. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18866. xcb_tmp += uintptr(4)
  18867. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18868. }
  18869. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18870. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18871. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_pitch = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18872. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18873. xcb_tmp += uintptr(4)
  18874. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18875. }
  18876. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18877. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18878. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_duration = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18879. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18880. xcb_tmp += uintptr(4)
  18881. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18882. }
  18883. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18884. /* xcb_change_keyboard_control_value_list_t.led */
  18885. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18886. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18887. xcb_tmp += uintptr(4)
  18888. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18889. }
  18890. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18891. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18892. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18893. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18894. xcb_tmp += uintptr(4)
  18895. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18896. }
  18897. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18898. /* xcb_change_keyboard_control_value_list_t.key */
  18899. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey = *(*Txcb_keycode32_t)(unsafe.Pointer(xcb_tmp))
  18900. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18901. xcb_tmp += uintptr(4)
  18902. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18903. }
  18904. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18905. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18906. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fauto_repeat_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18907. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18908. xcb_tmp += uintptr(4)
  18909. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18910. }
  18911. /* insert padding */
  18912. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18913. xcb_buffer_len += xcb_block_len + xcb_pad
  18914. if uint32(0) != xcb_pad {
  18915. xcb_tmp += uintptr(xcb_pad)
  18916. xcb_pad = uint32(0)
  18917. }
  18918. xcb_block_len = uint32(0)
  18919. xcb_padding_offset = uint32(0)
  18920. return libc.Int32FromUint32(xcb_buffer_len)
  18921. }
  18922. func Xxcb_change_keyboard_control_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  18923. bp := tls.Alloc(32)
  18924. defer tls.Free(32)
  18925. var _ /* _aux at bp+0 */ Txcb_change_keyboard_control_value_list_t
  18926. return Xxcb_change_keyboard_control_value_list_unpack(tls, _buffer, value_mask, bp)
  18927. }
  18928. func Xxcb_change_keyboard_control_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18929. var _aux, xcb_tmp uintptr
  18930. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18931. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18932. xcb_tmp = _buffer
  18933. _aux = _buffer
  18934. xcb_buffer_len = uint32(0)
  18935. xcb_block_len = uint32(0)
  18936. xcb_pad = uint32(0)
  18937. xcb_align_to = uint32(0)
  18938. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18939. xcb_tmp += uintptr(xcb_block_len)
  18940. xcb_buffer_len += xcb_block_len
  18941. xcb_block_len = uint32(0)
  18942. /* value_list */
  18943. 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))
  18944. xcb_tmp += uintptr(xcb_block_len)
  18945. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18946. /* insert padding */
  18947. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18948. xcb_buffer_len += xcb_block_len + xcb_pad
  18949. if uint32(0) != xcb_pad {
  18950. xcb_tmp += uintptr(xcb_pad)
  18951. xcb_pad = uint32(0)
  18952. }
  18953. xcb_block_len = uint32(0)
  18954. return libc.Int32FromUint32(xcb_buffer_len)
  18955. }
  18956. func Xxcb_change_keyboard_control_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18957. bp := tls.Alloc(96)
  18958. defer tls.Free(96)
  18959. var xcb_ret Txcb_void_cookie_t
  18960. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18961. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18962. _ = xcb_ret
  18963. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18964. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18965. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18966. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18967. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18968. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18969. /* xcb_change_keyboard_control_value_list_t value_list */
  18970. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18971. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18972. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req212)))
  18973. return xcb_ret
  18974. }
  18975. var _xcb_req212 = Txcb_protocol_request_t{
  18976. Fcount: uint64(3),
  18977. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18978. Fisvoid: uint8(1),
  18979. }
  18980. func Xxcb_change_keyboard_control(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18981. bp := tls.Alloc(96)
  18982. defer tls.Free(96)
  18983. var xcb_ret Txcb_void_cookie_t
  18984. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18985. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18986. _ = xcb_ret
  18987. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18988. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18989. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18990. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18991. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18992. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18993. /* xcb_change_keyboard_control_value_list_t value_list */
  18994. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18995. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18996. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req213)))
  18997. return xcb_ret
  18998. }
  18999. var _xcb_req213 = Txcb_protocol_request_t{
  19000. Fcount: uint64(3),
  19001. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19002. Fisvoid: uint8(1),
  19003. }
  19004. func Xxcb_change_keyboard_control_aux_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19005. bp := tls.Alloc(96)
  19006. defer tls.Free(96)
  19007. var xcb_ret Txcb_void_cookie_t
  19008. var _ /* xcb_aux0 at bp+88 */ uintptr
  19009. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  19010. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19011. _ = xcb_ret
  19012. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  19013. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  19014. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  19015. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  19016. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19017. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19018. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19019. /* xcb_change_keyboard_control_value_list_t value_list */
  19020. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_serialize(tls, bp+88, value_mask, value_list))
  19021. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  19022. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req214)))
  19023. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  19024. return xcb_ret
  19025. }
  19026. var _xcb_req214 = Txcb_protocol_request_t{
  19027. Fcount: uint64(3),
  19028. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19029. Fisvoid: uint8(1),
  19030. }
  19031. func Xxcb_change_keyboard_control_aux(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19032. bp := tls.Alloc(96)
  19033. defer tls.Free(96)
  19034. var xcb_ret Txcb_void_cookie_t
  19035. var _ /* xcb_aux0 at bp+88 */ uintptr
  19036. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  19037. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19038. _ = xcb_ret
  19039. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  19040. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  19041. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  19042. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  19043. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19044. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19045. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19046. /* xcb_change_keyboard_control_value_list_t value_list */
  19047. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_serialize(tls, bp+88, value_mask, value_list))
  19048. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  19049. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req215)))
  19050. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  19051. return xcb_ret
  19052. }
  19053. var _xcb_req215 = Txcb_protocol_request_t{
  19054. Fcount: uint64(3),
  19055. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19056. Fisvoid: uint8(1),
  19057. }
  19058. func Xxcb_change_keyboard_control_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  19059. return R + libc.UintptrFromInt32(1)*8
  19060. }
  19061. func Xxcb_get_keyboard_control(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19062. bp := tls.Alloc(80)
  19063. defer tls.Free(80)
  19064. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19065. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19066. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19067. _ = xcb_ret
  19068. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19069. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19070. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19071. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19073. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req216)))
  19074. return xcb_ret
  19075. }
  19076. var _xcb_req216 = Txcb_protocol_request_t{
  19077. Fcount: uint64(2),
  19078. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19079. }
  19080. func Xxcb_get_keyboard_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19081. bp := tls.Alloc(80)
  19082. defer tls.Free(80)
  19083. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19084. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19085. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19086. _ = xcb_ret
  19087. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19088. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19089. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19090. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19091. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19092. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req217)))
  19093. return xcb_ret
  19094. }
  19095. var _xcb_req217 = Txcb_protocol_request_t{
  19096. Fcount: uint64(2),
  19097. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19098. }
  19099. func Xxcb_get_keyboard_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_control_cookie_t, e uintptr) (r uintptr) {
  19100. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19101. }
  19102. func Xxcb_bell_checked(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19103. bp := tls.Alloc(80)
  19104. defer tls.Free(80)
  19105. var xcb_ret Txcb_void_cookie_t
  19106. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19107. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19108. _ = xcb_ret
  19109. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19110. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19111. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19112. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19113. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19114. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req218)))
  19115. return xcb_ret
  19116. }
  19117. var _xcb_req218 = Txcb_protocol_request_t{
  19118. Fcount: uint64(2),
  19119. Fopcode: uint8(m_XCB_BELL),
  19120. Fisvoid: uint8(1),
  19121. }
  19122. func Xxcb_bell(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19123. bp := tls.Alloc(80)
  19124. defer tls.Free(80)
  19125. var xcb_ret Txcb_void_cookie_t
  19126. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19127. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19128. _ = xcb_ret
  19129. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19130. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19131. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19132. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19133. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19134. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req219)))
  19135. return xcb_ret
  19136. }
  19137. var _xcb_req219 = Txcb_protocol_request_t{
  19138. Fcount: uint64(2),
  19139. Fopcode: uint8(m_XCB_BELL),
  19140. Fisvoid: uint8(1),
  19141. }
  19142. 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) {
  19143. bp := tls.Alloc(80)
  19144. defer tls.Free(80)
  19145. var xcb_ret Txcb_void_cookie_t
  19146. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19147. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19148. _ = xcb_ret
  19149. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19150. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19151. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19152. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19153. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19154. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19156. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19159. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req220)))
  19160. return xcb_ret
  19161. }
  19162. var _xcb_req220 = Txcb_protocol_request_t{
  19163. Fcount: uint64(2),
  19164. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19165. Fisvoid: uint8(1),
  19166. }
  19167. 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) {
  19168. bp := tls.Alloc(80)
  19169. defer tls.Free(80)
  19170. var xcb_ret Txcb_void_cookie_t
  19171. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19172. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19173. _ = xcb_ret
  19174. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19175. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19176. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19177. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19178. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19179. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19180. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19181. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19182. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19183. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19184. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req221)))
  19185. return xcb_ret
  19186. }
  19187. var _xcb_req221 = Txcb_protocol_request_t{
  19188. Fcount: uint64(2),
  19189. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19190. Fisvoid: uint8(1),
  19191. }
  19192. func Xxcb_get_pointer_control(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19193. bp := tls.Alloc(80)
  19194. defer tls.Free(80)
  19195. var xcb_ret Txcb_get_pointer_control_cookie_t
  19196. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19197. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19198. _ = xcb_ret
  19199. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19202. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19203. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19204. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req222)))
  19205. return xcb_ret
  19206. }
  19207. var _xcb_req222 = Txcb_protocol_request_t{
  19208. Fcount: uint64(2),
  19209. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19210. }
  19211. func Xxcb_get_pointer_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19212. bp := tls.Alloc(80)
  19213. defer tls.Free(80)
  19214. var xcb_ret Txcb_get_pointer_control_cookie_t
  19215. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19216. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19217. _ = xcb_ret
  19218. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19221. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19222. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19223. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req223)))
  19224. return xcb_ret
  19225. }
  19226. var _xcb_req223 = Txcb_protocol_request_t{
  19227. Fcount: uint64(2),
  19228. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19229. }
  19230. func Xxcb_get_pointer_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_control_cookie_t, e uintptr) (r uintptr) {
  19231. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19232. }
  19233. 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) {
  19234. bp := tls.Alloc(80)
  19235. defer tls.Free(80)
  19236. var xcb_ret Txcb_void_cookie_t
  19237. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19238. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19239. _ = xcb_ret
  19240. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19241. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19242. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19243. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19244. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19245. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19246. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19247. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19248. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19249. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req224)))
  19250. return xcb_ret
  19251. }
  19252. var _xcb_req224 = Txcb_protocol_request_t{
  19253. Fcount: uint64(2),
  19254. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19255. Fisvoid: uint8(1),
  19256. }
  19257. 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) {
  19258. bp := tls.Alloc(80)
  19259. defer tls.Free(80)
  19260. var xcb_ret Txcb_void_cookie_t
  19261. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19262. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19263. _ = xcb_ret
  19264. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19265. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19266. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19267. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19268. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19269. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19270. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19271. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19272. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19273. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req225)))
  19274. return xcb_ret
  19275. }
  19276. var _xcb_req225 = Txcb_protocol_request_t{
  19277. Fcount: uint64(2),
  19278. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19279. Fisvoid: uint8(1),
  19280. }
  19281. func Xxcb_get_screen_saver(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19282. bp := tls.Alloc(80)
  19283. defer tls.Free(80)
  19284. var xcb_ret Txcb_get_screen_saver_cookie_t
  19285. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19286. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19287. _ = xcb_ret
  19288. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19289. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19290. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19291. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19292. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19293. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req226)))
  19294. return xcb_ret
  19295. }
  19296. var _xcb_req226 = Txcb_protocol_request_t{
  19297. Fcount: uint64(2),
  19298. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19299. }
  19300. func Xxcb_get_screen_saver_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19301. bp := tls.Alloc(80)
  19302. defer tls.Free(80)
  19303. var xcb_ret Txcb_get_screen_saver_cookie_t
  19304. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19305. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19306. _ = xcb_ret
  19307. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19308. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19309. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19312. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req227)))
  19313. return xcb_ret
  19314. }
  19315. var _xcb_req227 = Txcb_protocol_request_t{
  19316. Fcount: uint64(2),
  19317. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19318. }
  19319. func Xxcb_get_screen_saver_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_screen_saver_cookie_t, e uintptr) (r uintptr) {
  19320. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19321. }
  19322. func Xxcb_change_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19323. var _aux, xcb_tmp uintptr
  19324. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19325. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19326. xcb_tmp = _buffer
  19327. _aux = _buffer
  19328. xcb_buffer_len = uint32(0)
  19329. xcb_block_len = uint32(0)
  19330. xcb_pad = uint32(0)
  19331. xcb_align_to = uint32(0)
  19332. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  19333. xcb_tmp += uintptr(xcb_block_len)
  19334. xcb_buffer_len += xcb_block_len
  19335. xcb_block_len = uint32(0)
  19336. /* address */
  19337. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_hosts_request_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19338. xcb_tmp += uintptr(xcb_block_len)
  19339. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19340. /* insert padding */
  19341. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19342. xcb_buffer_len += xcb_block_len + xcb_pad
  19343. if uint32(0) != xcb_pad {
  19344. xcb_tmp += uintptr(xcb_pad)
  19345. xcb_pad = uint32(0)
  19346. }
  19347. xcb_block_len = uint32(0)
  19348. return libc.Int32FromUint32(xcb_buffer_len)
  19349. }
  19350. 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) {
  19351. bp := tls.Alloc(112)
  19352. defer tls.Free(112)
  19353. var xcb_ret Txcb_void_cookie_t
  19354. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19355. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19356. _ = xcb_ret
  19357. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19358. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19359. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19360. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19361. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19362. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19363. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19364. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19365. /* uint8_t address */
  19366. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19367. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19368. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19369. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19370. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req228)))
  19371. return xcb_ret
  19372. }
  19373. var _xcb_req228 = Txcb_protocol_request_t{
  19374. Fcount: uint64(4),
  19375. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19376. Fisvoid: uint8(1),
  19377. }
  19378. 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) {
  19379. bp := tls.Alloc(112)
  19380. defer tls.Free(112)
  19381. var xcb_ret Txcb_void_cookie_t
  19382. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19383. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19384. _ = xcb_ret
  19385. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19386. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19387. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19388. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19389. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19390. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19391. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19392. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19393. /* uint8_t address */
  19394. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19395. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19396. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19397. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19398. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req229)))
  19399. return xcb_ret
  19400. }
  19401. var _xcb_req229 = Txcb_protocol_request_t{
  19402. Fcount: uint64(4),
  19403. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19404. Fisvoid: uint8(1),
  19405. }
  19406. func Xxcb_change_hosts_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19407. return R + libc.UintptrFromInt32(1)*8
  19408. }
  19409. func Xxcb_change_hosts_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19410. return libc.Int32FromUint16((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19411. }
  19412. func Xxcb_change_hosts_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19413. var i Txcb_generic_iterator_t
  19414. _ = i
  19415. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19416. i.Frem = 0
  19417. i.Findex = int32(int64(i.Fdata) - int64(R))
  19418. return i
  19419. }
  19420. func Xxcb_host_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19421. var _aux, xcb_tmp uintptr
  19422. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19423. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19424. xcb_tmp = _buffer
  19425. _aux = _buffer
  19426. xcb_buffer_len = uint32(0)
  19427. xcb_block_len = uint32(0)
  19428. xcb_pad = uint32(0)
  19429. xcb_align_to = uint32(0)
  19430. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19431. xcb_tmp += uintptr(xcb_block_len)
  19432. xcb_buffer_len += xcb_block_len
  19433. xcb_block_len = uint32(0)
  19434. /* address */
  19435. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_host_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19436. xcb_tmp += uintptr(xcb_block_len)
  19437. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19438. xcb_align_to = uint32(4)
  19439. /* insert padding */
  19440. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19441. xcb_buffer_len += xcb_block_len + xcb_pad
  19442. if uint32(0) != xcb_pad {
  19443. xcb_tmp += uintptr(xcb_pad)
  19444. xcb_pad = uint32(0)
  19445. }
  19446. xcb_block_len = uint32(0)
  19447. /* insert padding */
  19448. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19449. xcb_buffer_len += xcb_block_len + xcb_pad
  19450. if uint32(0) != xcb_pad {
  19451. xcb_tmp += uintptr(xcb_pad)
  19452. xcb_pad = uint32(0)
  19453. }
  19454. xcb_block_len = uint32(0)
  19455. return libc.Int32FromUint32(xcb_buffer_len)
  19456. }
  19457. func Xxcb_host_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19458. return R + libc.UintptrFromInt32(1)*4
  19459. }
  19460. func Xxcb_host_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19461. return libc.Int32FromUint16((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19462. }
  19463. func Xxcb_host_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19464. var i Txcb_generic_iterator_t
  19465. _ = i
  19466. i.Fdata = R + libc.UintptrFromInt32(1)*4 + uintptr((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19467. i.Frem = 0
  19468. i.Findex = int32(int64(i.Fdata) - int64(R))
  19469. return i
  19470. }
  19471. func Xxcb_host_next(tls *libc.TLS, i uintptr) {
  19472. var R uintptr
  19473. var child Txcb_generic_iterator_t
  19474. _, _ = R, child
  19475. R = (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata
  19476. child.Fdata = R + uintptr(Xxcb_host_sizeof(tls, R))
  19477. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata))
  19478. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Frem--
  19479. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  19480. }
  19481. func Xxcb_host_end(tls *libc.TLS, _i Txcb_host_iterator_t) (r Txcb_generic_iterator_t) {
  19482. bp := tls.Alloc(16)
  19483. defer tls.Free(16)
  19484. *(*Txcb_host_iterator_t)(unsafe.Pointer(bp)) = _i
  19485. var ret Txcb_generic_iterator_t
  19486. _ = ret
  19487. for (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  19488. Xxcb_host_next(tls, bp)
  19489. }
  19490. ret.Fdata = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Fdata
  19491. ret.Frem = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem
  19492. ret.Findex = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Findex
  19493. return ret
  19494. }
  19495. func Xxcb_list_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19496. var _aux, xcb_tmp uintptr
  19497. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  19498. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  19499. xcb_tmp = _buffer
  19500. _aux = _buffer
  19501. xcb_buffer_len = uint32(0)
  19502. xcb_block_len = uint32(0)
  19503. xcb_pad = uint32(0)
  19504. xcb_align_to = uint32(0)
  19505. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19506. xcb_tmp += uintptr(xcb_block_len)
  19507. xcb_buffer_len += xcb_block_len
  19508. xcb_block_len = uint32(0)
  19509. /* hosts */
  19510. i = uint32(0)
  19511. for {
  19512. if !(i < uint32((*Txcb_list_hosts_reply_t)(unsafe.Pointer(_aux)).Fhosts_len)) {
  19513. break
  19514. }
  19515. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_host_sizeof(tls, xcb_tmp))
  19516. xcb_block_len += xcb_tmp_len
  19517. xcb_tmp += uintptr(xcb_tmp_len)
  19518. goto _1
  19519. _1:
  19520. ;
  19521. i++
  19522. }
  19523. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  19524. /* insert padding */
  19525. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19526. xcb_buffer_len += xcb_block_len + xcb_pad
  19527. if uint32(0) != xcb_pad {
  19528. xcb_tmp += uintptr(xcb_pad)
  19529. xcb_pad = uint32(0)
  19530. }
  19531. xcb_block_len = uint32(0)
  19532. return libc.Int32FromUint32(xcb_buffer_len)
  19533. }
  19534. func Xxcb_list_hosts(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19535. bp := tls.Alloc(80)
  19536. defer tls.Free(80)
  19537. var xcb_ret Txcb_list_hosts_cookie_t
  19538. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19539. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19540. _ = xcb_ret
  19541. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19542. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19543. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19544. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19545. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19546. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req230)))
  19547. return xcb_ret
  19548. }
  19549. var _xcb_req230 = Txcb_protocol_request_t{
  19550. Fcount: uint64(2),
  19551. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19552. }
  19553. func Xxcb_list_hosts_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19554. bp := tls.Alloc(80)
  19555. defer tls.Free(80)
  19556. var xcb_ret Txcb_list_hosts_cookie_t
  19557. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19558. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19559. _ = xcb_ret
  19560. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19561. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19562. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19563. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19564. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19565. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req231)))
  19566. return xcb_ret
  19567. }
  19568. var _xcb_req231 = Txcb_protocol_request_t{
  19569. Fcount: uint64(2),
  19570. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19571. }
  19572. func Xxcb_list_hosts_hosts_length(tls *libc.TLS, R uintptr) (r int32) {
  19573. return libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19574. }
  19575. func Xxcb_list_hosts_hosts_iterator(tls *libc.TLS, R uintptr) (r Txcb_host_iterator_t) {
  19576. var i Txcb_host_iterator_t
  19577. _ = i
  19578. i.Fdata = R + libc.UintptrFromInt32(1)*32
  19579. i.Frem = libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19580. i.Findex = int32(int64(i.Fdata) - int64(R))
  19581. return i
  19582. }
  19583. func Xxcb_list_hosts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_hosts_cookie_t, e uintptr) (r uintptr) {
  19584. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19585. }
  19586. func Xxcb_set_access_control_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19587. bp := tls.Alloc(80)
  19588. defer tls.Free(80)
  19589. var xcb_ret Txcb_void_cookie_t
  19590. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19591. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19592. _ = xcb_ret
  19593. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19594. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19595. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19596. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19597. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19598. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req232)))
  19599. return xcb_ret
  19600. }
  19601. var _xcb_req232 = Txcb_protocol_request_t{
  19602. Fcount: uint64(2),
  19603. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19604. Fisvoid: uint8(1),
  19605. }
  19606. func Xxcb_set_access_control(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19607. bp := tls.Alloc(80)
  19608. defer tls.Free(80)
  19609. var xcb_ret Txcb_void_cookie_t
  19610. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19611. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19612. _ = xcb_ret
  19613. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19614. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19615. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19616. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19617. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19618. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req233)))
  19619. return xcb_ret
  19620. }
  19621. var _xcb_req233 = Txcb_protocol_request_t{
  19622. Fcount: uint64(2),
  19623. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19624. Fisvoid: uint8(1),
  19625. }
  19626. func Xxcb_set_close_down_mode_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19627. bp := tls.Alloc(80)
  19628. defer tls.Free(80)
  19629. var xcb_ret Txcb_void_cookie_t
  19630. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19631. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19632. _ = xcb_ret
  19633. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19634. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19635. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19636. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19637. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19638. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req234)))
  19639. return xcb_ret
  19640. }
  19641. var _xcb_req234 = Txcb_protocol_request_t{
  19642. Fcount: uint64(2),
  19643. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19644. Fisvoid: uint8(1),
  19645. }
  19646. func Xxcb_set_close_down_mode(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19647. bp := tls.Alloc(80)
  19648. defer tls.Free(80)
  19649. var xcb_ret Txcb_void_cookie_t
  19650. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19651. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19652. _ = xcb_ret
  19653. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19654. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19655. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19656. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19657. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19658. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req235)))
  19659. return xcb_ret
  19660. }
  19661. var _xcb_req235 = Txcb_protocol_request_t{
  19662. Fcount: uint64(2),
  19663. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19664. Fisvoid: uint8(1),
  19665. }
  19666. func Xxcb_kill_client_checked(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19667. bp := tls.Alloc(80)
  19668. defer tls.Free(80)
  19669. var xcb_ret Txcb_void_cookie_t
  19670. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19671. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19672. _ = xcb_ret
  19673. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19674. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19675. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19676. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19677. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19678. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19679. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req236)))
  19680. return xcb_ret
  19681. }
  19682. var _xcb_req236 = Txcb_protocol_request_t{
  19683. Fcount: uint64(2),
  19684. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19685. Fisvoid: uint8(1),
  19686. }
  19687. func Xxcb_kill_client(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19688. bp := tls.Alloc(80)
  19689. defer tls.Free(80)
  19690. var xcb_ret Txcb_void_cookie_t
  19691. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19692. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19693. _ = xcb_ret
  19694. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19695. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19696. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19697. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19698. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19699. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19700. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req237)))
  19701. return xcb_ret
  19702. }
  19703. var _xcb_req237 = Txcb_protocol_request_t{
  19704. Fcount: uint64(2),
  19705. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19706. Fisvoid: uint8(1),
  19707. }
  19708. func Xxcb_rotate_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19709. var _aux, xcb_tmp uintptr
  19710. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19711. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19712. xcb_tmp = _buffer
  19713. _aux = _buffer
  19714. xcb_buffer_len = uint32(0)
  19715. xcb_block_len = uint32(0)
  19716. xcb_pad = uint32(0)
  19717. xcb_align_to = uint32(0)
  19718. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  19719. xcb_tmp += uintptr(xcb_block_len)
  19720. xcb_buffer_len += xcb_block_len
  19721. xcb_block_len = uint32(0)
  19722. /* atoms */
  19723. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_rotate_properties_request_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  19724. xcb_tmp += uintptr(xcb_block_len)
  19725. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  19726. /* insert padding */
  19727. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19728. xcb_buffer_len += xcb_block_len + xcb_pad
  19729. if uint32(0) != xcb_pad {
  19730. xcb_tmp += uintptr(xcb_pad)
  19731. xcb_pad = uint32(0)
  19732. }
  19733. xcb_block_len = uint32(0)
  19734. return libc.Int32FromUint32(xcb_buffer_len)
  19735. }
  19736. 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) {
  19737. bp := tls.Alloc(112)
  19738. defer tls.Free(112)
  19739. var xcb_ret Txcb_void_cookie_t
  19740. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19741. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19742. _ = xcb_ret
  19743. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19744. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19745. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19746. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19747. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19748. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19749. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19750. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19751. /* xcb_atom_t atoms */
  19752. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19753. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19754. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19755. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19756. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req238)))
  19757. return xcb_ret
  19758. }
  19759. var _xcb_req238 = Txcb_protocol_request_t{
  19760. Fcount: uint64(4),
  19761. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19762. Fisvoid: uint8(1),
  19763. }
  19764. 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) {
  19765. bp := tls.Alloc(112)
  19766. defer tls.Free(112)
  19767. var xcb_ret Txcb_void_cookie_t
  19768. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19769. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19770. _ = xcb_ret
  19771. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19772. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19773. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19774. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19775. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19776. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19777. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19778. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19779. /* xcb_atom_t atoms */
  19780. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19781. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19782. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19783. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19784. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req239)))
  19785. return xcb_ret
  19786. }
  19787. var _xcb_req239 = Txcb_protocol_request_t{
  19788. Fcount: uint64(4),
  19789. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19790. Fisvoid: uint8(1),
  19791. }
  19792. func Xxcb_rotate_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  19793. return R + libc.UintptrFromInt32(1)*12
  19794. }
  19795. func Xxcb_rotate_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  19796. return libc.Int32FromUint16((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)
  19797. }
  19798. func Xxcb_rotate_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19799. var i Txcb_generic_iterator_t
  19800. _ = i
  19801. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)*4
  19802. i.Frem = 0
  19803. i.Findex = int32(int64(i.Fdata) - int64(R))
  19804. return i
  19805. }
  19806. func Xxcb_force_screen_saver_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19807. bp := tls.Alloc(80)
  19808. defer tls.Free(80)
  19809. var xcb_ret Txcb_void_cookie_t
  19810. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19811. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19812. _ = xcb_ret
  19813. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19814. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19815. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19816. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19817. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19818. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req240)))
  19819. return xcb_ret
  19820. }
  19821. var _xcb_req240 = Txcb_protocol_request_t{
  19822. Fcount: uint64(2),
  19823. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19824. Fisvoid: uint8(1),
  19825. }
  19826. func Xxcb_force_screen_saver(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19827. bp := tls.Alloc(80)
  19828. defer tls.Free(80)
  19829. var xcb_ret Txcb_void_cookie_t
  19830. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19831. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19832. _ = xcb_ret
  19833. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19834. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19835. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19836. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19837. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19838. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req241)))
  19839. return xcb_ret
  19840. }
  19841. var _xcb_req241 = Txcb_protocol_request_t{
  19842. Fcount: uint64(2),
  19843. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19844. Fisvoid: uint8(1),
  19845. }
  19846. func Xxcb_set_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19847. var _aux, xcb_tmp uintptr
  19848. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19849. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19850. xcb_tmp = _buffer
  19851. _aux = _buffer
  19852. xcb_buffer_len = uint32(0)
  19853. xcb_block_len = uint32(0)
  19854. xcb_pad = uint32(0)
  19855. xcb_align_to = uint32(0)
  19856. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19857. xcb_tmp += uintptr(xcb_block_len)
  19858. xcb_buffer_len += xcb_block_len
  19859. xcb_block_len = uint32(0)
  19860. /* map */
  19861. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19862. xcb_tmp += uintptr(xcb_block_len)
  19863. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19864. /* insert padding */
  19865. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19866. xcb_buffer_len += xcb_block_len + xcb_pad
  19867. if uint32(0) != xcb_pad {
  19868. xcb_tmp += uintptr(xcb_pad)
  19869. xcb_pad = uint32(0)
  19870. }
  19871. xcb_block_len = uint32(0)
  19872. return libc.Int32FromUint32(xcb_buffer_len)
  19873. }
  19874. func Xxcb_set_pointer_mapping(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19875. bp := tls.Alloc(112)
  19876. defer tls.Free(112)
  19877. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19878. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19879. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19880. _ = xcb_ret
  19881. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19882. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19883. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19884. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19885. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19886. /* uint8_t map */
  19887. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19888. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19889. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19890. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19891. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req242)))
  19892. return xcb_ret
  19893. }
  19894. var _xcb_req242 = Txcb_protocol_request_t{
  19895. Fcount: uint64(4),
  19896. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19897. }
  19898. func Xxcb_set_pointer_mapping_unchecked(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19899. bp := tls.Alloc(112)
  19900. defer tls.Free(112)
  19901. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19902. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19903. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19904. _ = xcb_ret
  19905. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19906. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19907. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19908. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19909. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19910. /* uint8_t map */
  19911. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19912. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19913. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19914. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19915. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req243)))
  19916. return xcb_ret
  19917. }
  19918. var _xcb_req243 = Txcb_protocol_request_t{
  19919. Fcount: uint64(4),
  19920. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19921. }
  19922. func Xxcb_set_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19923. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19924. }
  19925. func Xxcb_get_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19926. var _aux, xcb_tmp uintptr
  19927. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19928. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19929. xcb_tmp = _buffer
  19930. _aux = _buffer
  19931. xcb_buffer_len = uint32(0)
  19932. xcb_block_len = uint32(0)
  19933. xcb_pad = uint32(0)
  19934. xcb_align_to = uint32(0)
  19935. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19936. xcb_tmp += uintptr(xcb_block_len)
  19937. xcb_buffer_len += xcb_block_len
  19938. xcb_block_len = uint32(0)
  19939. /* map */
  19940. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19941. xcb_tmp += uintptr(xcb_block_len)
  19942. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19943. /* insert padding */
  19944. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19945. xcb_buffer_len += xcb_block_len + xcb_pad
  19946. if uint32(0) != xcb_pad {
  19947. xcb_tmp += uintptr(xcb_pad)
  19948. xcb_pad = uint32(0)
  19949. }
  19950. xcb_block_len = uint32(0)
  19951. return libc.Int32FromUint32(xcb_buffer_len)
  19952. }
  19953. func Xxcb_get_pointer_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19954. bp := tls.Alloc(80)
  19955. defer tls.Free(80)
  19956. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19957. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19958. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19959. _ = xcb_ret
  19960. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19961. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19962. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19965. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req244)))
  19966. return xcb_ret
  19967. }
  19968. var _xcb_req244 = Txcb_protocol_request_t{
  19969. Fcount: uint64(2),
  19970. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19971. }
  19972. func Xxcb_get_pointer_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19973. bp := tls.Alloc(80)
  19974. defer tls.Free(80)
  19975. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19976. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19977. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19978. _ = xcb_ret
  19979. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19980. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19981. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19982. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19984. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req245)))
  19985. return xcb_ret
  19986. }
  19987. var _xcb_req245 = Txcb_protocol_request_t{
  19988. Fcount: uint64(2),
  19989. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19990. }
  19991. func Xxcb_get_pointer_mapping_map(tls *libc.TLS, R uintptr) (r uintptr) {
  19992. return R + libc.UintptrFromInt32(1)*32
  19993. }
  19994. func Xxcb_get_pointer_mapping_map_length(tls *libc.TLS, R uintptr) (r int32) {
  19995. return libc.Int32FromUint8((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  19996. }
  19997. func Xxcb_get_pointer_mapping_map_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19998. var i Txcb_generic_iterator_t
  19999. _ = i
  20000. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  20001. i.Frem = 0
  20002. i.Findex = int32(int64(i.Fdata) - int64(R))
  20003. return i
  20004. }
  20005. func Xxcb_get_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  20006. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20007. }
  20008. func Xxcb_set_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20009. var _aux, xcb_tmp uintptr
  20010. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20011. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20012. xcb_tmp = _buffer
  20013. _aux = _buffer
  20014. xcb_buffer_len = uint32(0)
  20015. xcb_block_len = uint32(0)
  20016. xcb_pad = uint32(0)
  20017. xcb_align_to = uint32(0)
  20018. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  20019. xcb_tmp += uintptr(xcb_block_len)
  20020. xcb_buffer_len += xcb_block_len
  20021. xcb_block_len = uint32(0)
  20022. /* keycodes */
  20023. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint8((*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(_aux)).Fkeycodes_per_modifier)*libc.Int32FromInt32(8))*libc.Uint64FromInt64(1))
  20024. xcb_tmp += uintptr(xcb_block_len)
  20025. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  20026. /* insert padding */
  20027. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20028. xcb_buffer_len += xcb_block_len + xcb_pad
  20029. if uint32(0) != xcb_pad {
  20030. xcb_tmp += uintptr(xcb_pad)
  20031. xcb_pad = uint32(0)
  20032. }
  20033. xcb_block_len = uint32(0)
  20034. return libc.Int32FromUint32(xcb_buffer_len)
  20035. }
  20036. func Xxcb_set_modifier_mapping(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
  20037. bp := tls.Alloc(112)
  20038. defer tls.Free(112)
  20039. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20040. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  20041. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20042. _ = xcb_ret
  20043. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  20044. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  20045. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20046. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20047. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20048. /* xcb_keycode_t keycodes */
  20049. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20050. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  20051. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20052. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  20053. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req246)))
  20054. return xcb_ret
  20055. }
  20056. var _xcb_req246 = Txcb_protocol_request_t{
  20057. Fcount: uint64(4),
  20058. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20059. }
  20060. 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) {
  20061. bp := tls.Alloc(112)
  20062. defer tls.Free(112)
  20063. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20064. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  20065. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20066. _ = xcb_ret
  20067. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  20068. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  20069. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20070. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20071. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20072. /* xcb_keycode_t keycodes */
  20073. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20074. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  20075. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20076. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  20077. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req247)))
  20078. return xcb_ret
  20079. }
  20080. var _xcb_req247 = Txcb_protocol_request_t{
  20081. Fcount: uint64(4),
  20082. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20083. }
  20084. func Xxcb_set_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20085. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20086. }
  20087. func Xxcb_get_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20088. var _aux, xcb_tmp uintptr
  20089. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20090. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20091. xcb_tmp = _buffer
  20092. _aux = _buffer
  20093. xcb_buffer_len = uint32(0)
  20094. xcb_block_len = uint32(0)
  20095. xcb_pad = uint32(0)
  20096. xcb_align_to = uint32(0)
  20097. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20098. xcb_tmp += uintptr(xcb_block_len)
  20099. xcb_buffer_len += xcb_block_len
  20100. xcb_block_len = uint32(0)
  20101. /* keycodes */
  20102. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt32(libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(_aux)).Fkeycodes_per_modifier)*libc.Int32FromInt32(8))*libc.Uint64FromInt64(1))
  20103. xcb_tmp += uintptr(xcb_block_len)
  20104. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  20105. /* insert padding */
  20106. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20107. xcb_buffer_len += xcb_block_len + xcb_pad
  20108. if uint32(0) != xcb_pad {
  20109. xcb_tmp += uintptr(xcb_pad)
  20110. xcb_pad = uint32(0)
  20111. }
  20112. xcb_block_len = uint32(0)
  20113. return libc.Int32FromUint32(xcb_buffer_len)
  20114. }
  20115. func Xxcb_get_modifier_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20116. bp := tls.Alloc(80)
  20117. defer tls.Free(80)
  20118. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20119. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20120. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20121. _ = xcb_ret
  20122. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20126. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20127. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req248)))
  20128. return xcb_ret
  20129. }
  20130. var _xcb_req248 = Txcb_protocol_request_t{
  20131. Fcount: uint64(2),
  20132. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20133. }
  20134. func Xxcb_get_modifier_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20135. bp := tls.Alloc(80)
  20136. defer tls.Free(80)
  20137. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20138. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20139. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20140. _ = xcb_ret
  20141. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20143. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20144. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20145. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20146. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req249)))
  20147. return xcb_ret
  20148. }
  20149. var _xcb_req249 = Txcb_protocol_request_t{
  20150. Fcount: uint64(2),
  20151. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20152. }
  20153. func Xxcb_get_modifier_mapping_keycodes(tls *libc.TLS, R uintptr) (r uintptr) {
  20154. return R + libc.UintptrFromInt32(1)*32
  20155. }
  20156. func Xxcb_get_modifier_mapping_keycodes_length(tls *libc.TLS, R uintptr) (r int32) {
  20157. return libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier) * int32(8)
  20158. }
  20159. func Xxcb_get_modifier_mapping_keycodes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20160. var i Txcb_generic_iterator_t
  20161. _ = i
  20162. 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))
  20163. i.Frem = 0
  20164. i.Findex = int32(int64(i.Fdata) - int64(R))
  20165. return i
  20166. }
  20167. func Xxcb_get_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20168. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20169. }
  20170. func Xxcb_no_operation_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20171. bp := tls.Alloc(80)
  20172. defer tls.Free(80)
  20173. var xcb_ret Txcb_void_cookie_t
  20174. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20175. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20176. _ = xcb_ret
  20177. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20178. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20180. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20181. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20182. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req250)))
  20183. return xcb_ret
  20184. }
  20185. var _xcb_req250 = Txcb_protocol_request_t{
  20186. Fcount: uint64(2),
  20187. Fopcode: uint8(m_XCB_NO_OPERATION),
  20188. Fisvoid: uint8(1),
  20189. }
  20190. func Xxcb_no_operation(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20191. bp := tls.Alloc(80)
  20192. defer tls.Free(80)
  20193. var xcb_ret Txcb_void_cookie_t
  20194. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20195. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20196. _ = xcb_ret
  20197. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20202. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req251)))
  20203. return xcb_ret
  20204. }
  20205. var _xcb_req251 = Txcb_protocol_request_t{
  20206. Fcount: uint64(2),
  20207. Fopcode: uint8(m_XCB_NO_OPERATION),
  20208. Fisvoid: uint8(1),
  20209. }
  20210. func Xxcb_big_requests_enable(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20211. bp := tls.Alloc(80)
  20212. defer tls.Free(80)
  20213. var xcb_ret Txcb_big_requests_enable_cookie_t
  20214. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20215. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20216. _ = xcb_ret
  20217. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20221. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req252)))
  20222. return xcb_ret
  20223. }
  20224. var _xcb_req252 = Txcb_protocol_request_t{
  20225. Fcount: uint64(2),
  20226. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20227. }
  20228. func Xxcb_big_requests_enable_unchecked(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20229. bp := tls.Alloc(80)
  20230. defer tls.Free(80)
  20231. var xcb_ret Txcb_big_requests_enable_cookie_t
  20232. var _ /* xcb_out at bp+64 */ 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 + 64
  20236. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(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 & uint64(3)
  20239. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req253)))
  20240. return xcb_ret
  20241. }
  20242. var _xcb_req253 = Txcb_protocol_request_t{
  20243. Fcount: uint64(2),
  20244. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20245. }
  20246. func Xxcb_big_requests_enable_reply(tls *libc.TLS, c uintptr, cookie Txcb_big_requests_enable_cookie_t, e uintptr) (r uintptr) {
  20247. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20248. }
  20249. 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) {
  20250. bp := tls.Alloc(80)
  20251. defer tls.Free(80)
  20252. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20253. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20254. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20255. _ = xcb_ret
  20256. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20257. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20259. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20262. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req254)))
  20263. return xcb_ret
  20264. }
  20265. var _xcb_req254 = Txcb_protocol_request_t{
  20266. Fcount: uint64(2),
  20267. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20268. }
  20269. 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) {
  20270. bp := tls.Alloc(80)
  20271. defer tls.Free(80)
  20272. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20273. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20274. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20275. _ = xcb_ret
  20276. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20277. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20281. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20282. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req255)))
  20283. return xcb_ret
  20284. }
  20285. var _xcb_req255 = Txcb_protocol_request_t{
  20286. Fcount: uint64(2),
  20287. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20288. }
  20289. func Xxcb_xc_misc_get_version_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_version_cookie_t, e uintptr) (r uintptr) {
  20290. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20291. }
  20292. func Xxcb_xc_misc_get_xid_range(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20293. bp := tls.Alloc(80)
  20294. defer tls.Free(80)
  20295. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20296. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20297. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20298. _ = xcb_ret
  20299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20301. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20302. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20303. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req256)))
  20304. return xcb_ret
  20305. }
  20306. var _xcb_req256 = Txcb_protocol_request_t{
  20307. Fcount: uint64(2),
  20308. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20309. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20310. }
  20311. func Xxcb_xc_misc_get_xid_range_unchecked(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20312. bp := tls.Alloc(80)
  20313. defer tls.Free(80)
  20314. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20315. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20316. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20317. _ = xcb_ret
  20318. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20320. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20321. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20322. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req257)))
  20323. return xcb_ret
  20324. }
  20325. var _xcb_req257 = Txcb_protocol_request_t{
  20326. Fcount: uint64(2),
  20327. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20328. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20329. }
  20330. 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) {
  20331. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20332. }
  20333. func Xxcb_xc_misc_get_xid_list_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20334. var _aux, xcb_tmp uintptr
  20335. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20336. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20337. xcb_tmp = _buffer
  20338. _aux = _buffer
  20339. xcb_buffer_len = uint32(0)
  20340. xcb_block_len = uint32(0)
  20341. xcb_pad = uint32(0)
  20342. xcb_align_to = uint32(0)
  20343. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20344. xcb_tmp += uintptr(xcb_block_len)
  20345. xcb_buffer_len += xcb_block_len
  20346. xcb_block_len = uint32(0)
  20347. /* ids */
  20348. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(_aux)).Fids_len)*libc.Uint64FromInt64(4))
  20349. xcb_tmp += uintptr(xcb_block_len)
  20350. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  20351. /* insert padding */
  20352. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20353. xcb_buffer_len += xcb_block_len + xcb_pad
  20354. if uint32(0) != xcb_pad {
  20355. xcb_tmp += uintptr(xcb_pad)
  20356. xcb_pad = uint32(0)
  20357. }
  20358. xcb_block_len = uint32(0)
  20359. return libc.Int32FromUint32(xcb_buffer_len)
  20360. }
  20361. func Xxcb_xc_misc_get_xid_list(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
  20362. bp := tls.Alloc(80)
  20363. defer tls.Free(80)
  20364. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20365. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20366. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20367. _ = xcb_ret
  20368. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20369. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20370. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20371. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20372. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20373. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req258)))
  20374. return xcb_ret
  20375. }
  20376. var _xcb_req258 = Txcb_protocol_request_t{
  20377. Fcount: uint64(2),
  20378. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20379. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20380. }
  20381. 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) {
  20382. bp := tls.Alloc(80)
  20383. defer tls.Free(80)
  20384. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20385. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20386. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20387. _ = xcb_ret
  20388. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20389. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20390. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20391. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20392. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20393. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req259)))
  20394. return xcb_ret
  20395. }
  20396. var _xcb_req259 = Txcb_protocol_request_t{
  20397. Fcount: uint64(2),
  20398. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20399. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20400. }
  20401. func Xxcb_xc_misc_get_xid_list_ids(tls *libc.TLS, R uintptr) (r uintptr) {
  20402. return R + libc.UintptrFromInt32(1)*32
  20403. }
  20404. func Xxcb_xc_misc_get_xid_list_ids_length(tls *libc.TLS, R uintptr) (r int32) {
  20405. return libc.Int32FromUint32((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)
  20406. }
  20407. func Xxcb_xc_misc_get_xid_list_ids_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20408. var i Txcb_generic_iterator_t
  20409. _ = i
  20410. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)*4
  20411. i.Frem = 0
  20412. i.Findex = int32(int64(i.Fdata) - int64(R))
  20413. return i
  20414. }
  20415. 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) {
  20416. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20417. }
  20418. func __ccgo_fp(f interface{}) uintptr {
  20419. type iface [2]uintptr
  20420. return (*iface)(unsafe.Pointer(&f))[1]
  20421. }
  20422. /**
  20423. * @}
  20424. */
  20425. var Xxcb_big_requests_id = Txcb_extension_t{
  20426. Fname: __ccgo_ts + 93,
  20427. }
  20428. /**
  20429. * @}
  20430. */
  20431. var Xxcb_xc_misc_id = Txcb_extension_t{
  20432. Fname: __ccgo_ts + 106,
  20433. }
  20434. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  20435. 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"