ccgo_linux_ppc64le.go 845 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242
  1. // Code generated for linux/ppc64le 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/debian/src/modernc.org/builder/.exclude/modernc.org/libXau/include/linux/ppc64le -I /home/debian/src/modernc.org/builder/.exclude/modernc.org/libXdmcp/include/linux/ppc64le -lXau -lXdmcp -o libxcb.go --package-name libxcb src/.libs/libxcb.a', DO NOT EDIT.
  2. //go:build linux && ppc64le
  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 = 58
  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 = 0400000
  604. const m_O_DIRECTORY = 040000
  605. const m_O_DSYNC = 010000
  606. const m_O_EXCL = 0200
  607. const m_O_EXEC = "O_PATH"
  608. const m_O_LARGEFILE = 0200000
  609. const m_O_NDELAY = "O_NONBLOCK"
  610. const m_O_NOATIME = 01000000
  611. const m_O_NOCTTY = 0400
  612. const m_O_NOFOLLOW = 0100000
  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 = 020040000
  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 = 20
  947. const m_SO_PASSSEC = 34
  948. const m_SO_PEEK_OFF = 42
  949. const m_SO_PEERCRED = 21
  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 = 16
  959. const m_SO_RCVTIMEO = 18
  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 = 17
  970. const m_SO_SNDTIMEO = 19
  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__ALL_SOURCE = 1
  1229. const m__ARCH_PPC = 1
  1230. const m__ARCH_PPC64 = 1
  1231. const m__ARCH_PPCGR = 1
  1232. const m__ARCH_PPCSQ = 1
  1233. const m__ARCH_PWR4 = 1
  1234. const m__ARCH_PWR5 = 1
  1235. const m__ARCH_PWR5X = 1
  1236. const m__ARCH_PWR6 = 1
  1237. const m__ARCH_PWR7 = 1
  1238. const m__ARCH_PWR8 = 1
  1239. const m__CALL_ELF = 2
  1240. const m__CALL_LINUX = 1
  1241. const m__CS_GNU_LIBC_VERSION = 2
  1242. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  1243. const m__CS_PATH = 0
  1244. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  1245. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  1246. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  1247. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  1248. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  1249. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  1250. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  1251. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  1252. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  1253. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  1254. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  1255. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  1256. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  1257. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  1258. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  1259. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  1260. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  1261. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  1262. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  1263. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  1264. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  1265. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  1266. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  1267. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  1268. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  1269. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  1270. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  1271. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  1272. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  1273. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  1274. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  1275. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  1276. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  1277. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  1278. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  1279. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  1280. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  1281. const m__CS_V6_ENV = 1148
  1282. const m__CS_V7_ENV = 1149
  1283. const m__GNU_SOURCE = 1
  1284. const m__IOFBF = 0
  1285. const m__IOLBF = 1
  1286. const m__IONBF = 2
  1287. const m__LITTLE_ENDIAN = 1
  1288. const m__LP64 = 1
  1289. const m__PC_2_SYMLINKS = 20
  1290. const m__PC_ALLOC_SIZE_MIN = 18
  1291. const m__PC_ASYNC_IO = 10
  1292. const m__PC_CHOWN_RESTRICTED = 6
  1293. const m__PC_FILESIZEBITS = 13
  1294. const m__PC_LINK_MAX = 0
  1295. const m__PC_MAX_CANON = 1
  1296. const m__PC_MAX_INPUT = 2
  1297. const m__PC_NAME_MAX = 3
  1298. const m__PC_NO_TRUNC = 7
  1299. const m__PC_PATH_MAX = 4
  1300. const m__PC_PIPE_BUF = 5
  1301. const m__PC_PRIO_IO = 11
  1302. const m__PC_REC_INCR_XFER_SIZE = 14
  1303. const m__PC_REC_MAX_XFER_SIZE = 15
  1304. const m__PC_REC_MIN_XFER_SIZE = 16
  1305. const m__PC_REC_XFER_ALIGN = 17
  1306. const m__PC_SOCK_MAXBUF = 12
  1307. const m__PC_SYMLINK_MAX = 19
  1308. const m__PC_SYNC_IO = 9
  1309. const m__PC_VDISABLE = 8
  1310. const m__POSIX2_BC_BASE_MAX = 99
  1311. const m__POSIX2_BC_DIM_MAX = 2048
  1312. const m__POSIX2_BC_SCALE_MAX = 99
  1313. const m__POSIX2_BC_STRING_MAX = 1000
  1314. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  1315. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  1316. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  1317. const m__POSIX2_EXPR_NEST_MAX = 32
  1318. const m__POSIX2_LINE_MAX = 2048
  1319. const m__POSIX2_RE_DUP_MAX = 255
  1320. const m__POSIX2_VERSION = "_POSIX_VERSION"
  1321. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  1322. const m__POSIX_AIO_LISTIO_MAX = 2
  1323. const m__POSIX_AIO_MAX = 1
  1324. const m__POSIX_ARG_MAX = 4096
  1325. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  1326. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  1327. const m__POSIX_CHILD_MAX = 25
  1328. const m__POSIX_CHOWN_RESTRICTED = 1
  1329. const m__POSIX_CLOCKRES_MIN = 20000000
  1330. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  1331. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  1332. const m__POSIX_DELAYTIMER_MAX = 32
  1333. const m__POSIX_FSYNC = "_POSIX_VERSION"
  1334. const m__POSIX_HOST_NAME_MAX = 255
  1335. const m__POSIX_IPV6 = "_POSIX_VERSION"
  1336. const m__POSIX_JOB_CONTROL = 1
  1337. const m__POSIX_LINK_MAX = 8
  1338. const m__POSIX_LOGIN_NAME_MAX = 9
  1339. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  1340. const m__POSIX_MAX_CANON = 255
  1341. const m__POSIX_MAX_INPUT = 255
  1342. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  1343. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  1344. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  1345. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  1346. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  1347. const m__POSIX_MQ_OPEN_MAX = 8
  1348. const m__POSIX_MQ_PRIO_MAX = 32
  1349. const m__POSIX_NAME_MAX = 14
  1350. const m__POSIX_NGROUPS_MAX = 8
  1351. const m__POSIX_NO_TRUNC = 1
  1352. const m__POSIX_OPEN_MAX = 20
  1353. const m__POSIX_PATH_MAX = 256
  1354. const m__POSIX_PIPE_BUF = 512
  1355. const m__POSIX_PTHREAD_SEMANTICS = 1
  1356. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  1357. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  1358. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  1359. const m__POSIX_REGEXP = 1
  1360. const m__POSIX_RE_DUP_MAX = 255
  1361. const m__POSIX_RTSIG_MAX = 8
  1362. const m__POSIX_SAVED_IDS = 1
  1363. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  1364. const m__POSIX_SEM_NSEMS_MAX = 256
  1365. const m__POSIX_SEM_VALUE_MAX = 32767
  1366. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  1367. const m__POSIX_SHELL = 1
  1368. const m__POSIX_SIGQUEUE_MAX = 32
  1369. const m__POSIX_SPAWN = "_POSIX_VERSION"
  1370. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  1371. const m__POSIX_SSIZE_MAX = 32767
  1372. const m__POSIX_SS_REPL_MAX = 4
  1373. const m__POSIX_STREAM_MAX = 8
  1374. const m__POSIX_SYMLINK_MAX = 255
  1375. const m__POSIX_SYMLOOP_MAX = 8
  1376. const m__POSIX_THREADS = "_POSIX_VERSION"
  1377. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  1378. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  1379. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  1380. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  1381. const m__POSIX_THREAD_KEYS_MAX = 128
  1382. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  1383. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  1384. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  1385. const m__POSIX_THREAD_THREADS_MAX = 64
  1386. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  1387. const m__POSIX_TIMERS = "_POSIX_VERSION"
  1388. const m__POSIX_TIMER_MAX = 32
  1389. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  1390. const m__POSIX_TRACE_NAME_MAX = 8
  1391. const m__POSIX_TRACE_SYS_MAX = 8
  1392. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  1393. const m__POSIX_TTY_NAME_MAX = 9
  1394. const m__POSIX_TZNAME_MAX = 6
  1395. const m__POSIX_V6_LP64_OFF64 = 1
  1396. const m__POSIX_V7_LP64_OFF64 = 1
  1397. const m__POSIX_VDISABLE = 0
  1398. const m__POSIX_VERSION = 200809
  1399. const m__SC_2_CHAR_TERM = 95
  1400. const m__SC_2_C_BIND = 47
  1401. const m__SC_2_C_DEV = 48
  1402. const m__SC_2_FORT_DEV = 49
  1403. const m__SC_2_FORT_RUN = 50
  1404. const m__SC_2_LOCALEDEF = 52
  1405. const m__SC_2_PBS = 168
  1406. const m__SC_2_PBS_ACCOUNTING = 169
  1407. const m__SC_2_PBS_CHECKPOINT = 175
  1408. const m__SC_2_PBS_LOCATE = 170
  1409. const m__SC_2_PBS_MESSAGE = 171
  1410. const m__SC_2_PBS_TRACK = 172
  1411. const m__SC_2_SW_DEV = 51
  1412. const m__SC_2_UPE = 97
  1413. const m__SC_2_VERSION = 46
  1414. const m__SC_ADVISORY_INFO = 132
  1415. const m__SC_AIO_LISTIO_MAX = 23
  1416. const m__SC_AIO_MAX = 24
  1417. const m__SC_AIO_PRIO_DELTA_MAX = 25
  1418. const m__SC_ARG_MAX = 0
  1419. const m__SC_ASYNCHRONOUS_IO = 12
  1420. const m__SC_ATEXIT_MAX = 87
  1421. const m__SC_AVPHYS_PAGES = 86
  1422. const m__SC_BARRIERS = 133
  1423. const m__SC_BC_BASE_MAX = 36
  1424. const m__SC_BC_DIM_MAX = 37
  1425. const m__SC_BC_SCALE_MAX = 38
  1426. const m__SC_BC_STRING_MAX = 39
  1427. const m__SC_CHILD_MAX = 1
  1428. const m__SC_CLK_TCK = 2
  1429. const m__SC_CLOCK_SELECTION = 137
  1430. const m__SC_COLL_WEIGHTS_MAX = 40
  1431. const m__SC_CPUTIME = 138
  1432. const m__SC_DELAYTIMER_MAX = 26
  1433. const m__SC_EXPR_NEST_MAX = 42
  1434. const m__SC_FSYNC = 15
  1435. const m__SC_GETGR_R_SIZE_MAX = 69
  1436. const m__SC_GETPW_R_SIZE_MAX = 70
  1437. const m__SC_HOST_NAME_MAX = 180
  1438. const m__SC_IOV_MAX = 60
  1439. const m__SC_IPV6 = 235
  1440. const m__SC_JOB_CONTROL = 7
  1441. const m__SC_LINE_MAX = 43
  1442. const m__SC_LOGIN_NAME_MAX = 71
  1443. const m__SC_MAPPED_FILES = 16
  1444. const m__SC_MEMLOCK = 17
  1445. const m__SC_MEMLOCK_RANGE = 18
  1446. const m__SC_MEMORY_PROTECTION = 19
  1447. const m__SC_MESSAGE_PASSING = 20
  1448. const m__SC_MINSIGSTKSZ = 249
  1449. const m__SC_MONOTONIC_CLOCK = 149
  1450. const m__SC_MQ_OPEN_MAX = 27
  1451. const m__SC_MQ_PRIO_MAX = 28
  1452. const m__SC_NGROUPS_MAX = 3
  1453. const m__SC_NPROCESSORS_CONF = 83
  1454. const m__SC_NPROCESSORS_ONLN = 84
  1455. const m__SC_NZERO = 109
  1456. const m__SC_OPEN_MAX = 4
  1457. const m__SC_PAGESIZE = 30
  1458. const m__SC_PAGE_SIZE = 30
  1459. const m__SC_PASS_MAX = 88
  1460. const m__SC_PHYS_PAGES = 85
  1461. const m__SC_PRIORITIZED_IO = 13
  1462. const m__SC_PRIORITY_SCHEDULING = 10
  1463. const m__SC_RAW_SOCKETS = 236
  1464. const m__SC_READER_WRITER_LOCKS = 153
  1465. const m__SC_REALTIME_SIGNALS = 9
  1466. const m__SC_REGEXP = 155
  1467. const m__SC_RE_DUP_MAX = 44
  1468. const m__SC_RTSIG_MAX = 31
  1469. const m__SC_SAVED_IDS = 8
  1470. const m__SC_SEMAPHORES = 21
  1471. const m__SC_SEM_NSEMS_MAX = 32
  1472. const m__SC_SEM_VALUE_MAX = 33
  1473. const m__SC_SHARED_MEMORY_OBJECTS = 22
  1474. const m__SC_SHELL = 157
  1475. const m__SC_SIGQUEUE_MAX = 34
  1476. const m__SC_SIGSTKSZ = 250
  1477. const m__SC_SPAWN = 159
  1478. const m__SC_SPIN_LOCKS = 154
  1479. const m__SC_SPORADIC_SERVER = 160
  1480. const m__SC_SS_REPL_MAX = 241
  1481. const m__SC_STREAMS = 174
  1482. const m__SC_STREAM_MAX = 5
  1483. const m__SC_SYMLOOP_MAX = 173
  1484. const m__SC_SYNCHRONIZED_IO = 14
  1485. const m__SC_THREADS = 67
  1486. const m__SC_THREAD_ATTR_STACKADDR = 77
  1487. const m__SC_THREAD_ATTR_STACKSIZE = 78
  1488. const m__SC_THREAD_CPUTIME = 139
  1489. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  1490. const m__SC_THREAD_KEYS_MAX = 74
  1491. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  1492. const m__SC_THREAD_PRIO_INHERIT = 80
  1493. const m__SC_THREAD_PRIO_PROTECT = 81
  1494. const m__SC_THREAD_PROCESS_SHARED = 82
  1495. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  1496. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  1497. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  1498. const m__SC_THREAD_SPORADIC_SERVER = 161
  1499. const m__SC_THREAD_STACK_MIN = 75
  1500. const m__SC_THREAD_THREADS_MAX = 76
  1501. const m__SC_TIMEOUTS = 164
  1502. const m__SC_TIMERS = 11
  1503. const m__SC_TIMER_MAX = 35
  1504. const m__SC_TRACE = 181
  1505. const m__SC_TRACE_EVENT_FILTER = 182
  1506. const m__SC_TRACE_EVENT_NAME_MAX = 242
  1507. const m__SC_TRACE_INHERIT = 183
  1508. const m__SC_TRACE_LOG = 184
  1509. const m__SC_TRACE_NAME_MAX = 243
  1510. const m__SC_TRACE_SYS_MAX = 244
  1511. const m__SC_TRACE_USER_EVENT_MAX = 245
  1512. const m__SC_TTY_NAME_MAX = 72
  1513. const m__SC_TYPED_MEMORY_OBJECTS = 165
  1514. const m__SC_TZNAME_MAX = 6
  1515. const m__SC_UIO_MAXIOV = 60
  1516. const m__SC_V6_ILP32_OFF32 = 176
  1517. const m__SC_V6_ILP32_OFFBIG = 177
  1518. const m__SC_V6_LP64_OFF64 = 178
  1519. const m__SC_V6_LPBIG_OFFBIG = 179
  1520. const m__SC_V7_ILP32_OFF32 = 237
  1521. const m__SC_V7_ILP32_OFFBIG = 238
  1522. const m__SC_V7_LP64_OFF64 = 239
  1523. const m__SC_V7_LPBIG_OFFBIG = 240
  1524. const m__SC_VERSION = 29
  1525. const m__SC_XBS5_ILP32_OFF32 = 125
  1526. const m__SC_XBS5_ILP32_OFFBIG = 126
  1527. const m__SC_XBS5_LP64_OFF64 = 127
  1528. const m__SC_XBS5_LPBIG_OFFBIG = 128
  1529. const m__SC_XOPEN_CRYPT = 92
  1530. const m__SC_XOPEN_ENH_I18N = 93
  1531. const m__SC_XOPEN_LEGACY = 129
  1532. const m__SC_XOPEN_REALTIME = 130
  1533. const m__SC_XOPEN_REALTIME_THREADS = 131
  1534. const m__SC_XOPEN_SHM = 94
  1535. const m__SC_XOPEN_STREAMS = 246
  1536. const m__SC_XOPEN_UNIX = 91
  1537. const m__SC_XOPEN_VERSION = 89
  1538. const m__SC_XOPEN_XCU_VERSION = 90
  1539. const m__SC_XOPEN_XPG2 = 98
  1540. const m__SC_XOPEN_XPG3 = 99
  1541. const m__SC_XOPEN_XPG4 = 100
  1542. const m__STDC_PREDEF_H = 1
  1543. const m__TANDEM_SOURCE = 1
  1544. const m__XOPEN_ENH_I18N = 1
  1545. const m__XOPEN_IOV_MAX = 16
  1546. const m__XOPEN_NAME_MAX = 255
  1547. const m__XOPEN_PATH_MAX = 1024
  1548. const m__XOPEN_UNIX = 1
  1549. const m__XOPEN_VERSION = 700
  1550. const m___ALTIVEC__ = 1
  1551. const m___APPLE_ALTIVEC__ = 1
  1552. const m___ATOMIC_ACQUIRE = 2
  1553. const m___ATOMIC_ACQ_REL = 4
  1554. const m___ATOMIC_CONSUME = 1
  1555. const m___ATOMIC_RELAXED = 0
  1556. const m___ATOMIC_RELEASE = 3
  1557. const m___ATOMIC_SEQ_CST = 5
  1558. const m___BIGGEST_ALIGNMENT__ = 16
  1559. const m___BIG_ENDIAN = 4321
  1560. const m___BUILTIN_CPU_SUPPORTS__ = 1
  1561. const m___BYTE_ORDER = 1234
  1562. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1563. const m___CCGO__ = 1
  1564. const m___CHAR_BIT__ = 8
  1565. const m___CHAR_UNSIGNED__ = 1
  1566. const m___CMODEL_MEDIUM__ = 1
  1567. const m___CRYPTO__ = 1
  1568. const m___DBL_DECIMAL_DIG__ = 17
  1569. const m___DBL_DIG__ = 15
  1570. const m___DBL_HAS_DENORM__ = 1
  1571. const m___DBL_HAS_INFINITY__ = 1
  1572. const m___DBL_HAS_QUIET_NAN__ = 1
  1573. const m___DBL_MANT_DIG__ = 53
  1574. const m___DBL_MAX_10_EXP__ = 308
  1575. const m___DBL_MAX_EXP__ = 1024
  1576. const m___DEC128_EPSILON__ = 1e-33
  1577. const m___DEC128_MANT_DIG__ = 34
  1578. const m___DEC128_MAX_EXP__ = 6145
  1579. const m___DEC128_MAX__ = "9.999999999999999999999999999999999E6144"
  1580. const m___DEC128_MIN__ = 1e-6143
  1581. const m___DEC128_SUBNORMAL_MIN__ = 0.000000000000000000000000000000001e-6143
  1582. const m___DEC32_EPSILON__ = 1e-6
  1583. const m___DEC32_MANT_DIG__ = 7
  1584. const m___DEC32_MAX_EXP__ = 97
  1585. const m___DEC32_MAX__ = 9.999999e96
  1586. const m___DEC32_MIN__ = 1e-95
  1587. const m___DEC32_SUBNORMAL_MIN__ = 0.000001e-95
  1588. const m___DEC64_EPSILON__ = 1e-15
  1589. const m___DEC64_MANT_DIG__ = 16
  1590. const m___DEC64_MAX_EXP__ = 385
  1591. const m___DEC64_MAX__ = "9.999999999999999E384"
  1592. const m___DEC64_MIN__ = 1e-383
  1593. const m___DEC64_SUBNORMAL_MIN__ = 0.000000000000001e-383
  1594. const m___DECIMAL_DIG__ = 17
  1595. const m___DEC_EVAL_METHOD__ = 2
  1596. const m___ELF__ = 1
  1597. const m___EXTENSIONS__ = 1
  1598. const m___FINITE_MATH_ONLY__ = 0
  1599. const m___FLOAT128_TYPE__ = 1
  1600. const m___FLOAT128__ = 1
  1601. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1602. const m___FLT128_DECIMAL_DIG__ = 36
  1603. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1604. const m___FLT128_DIG__ = 33
  1605. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1606. const m___FLT128_HAS_DENORM__ = 1
  1607. const m___FLT128_HAS_INFINITY__ = 1
  1608. const m___FLT128_HAS_QUIET_NAN__ = 1
  1609. const m___FLT128_MANT_DIG__ = 113
  1610. const m___FLT128_MAX_10_EXP__ = 4932
  1611. const m___FLT128_MAX_EXP__ = 16384
  1612. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1613. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  1614. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1615. const m___FLT32X_DECIMAL_DIG__ = 17
  1616. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1617. const m___FLT32X_DIG__ = 15
  1618. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1619. const m___FLT32X_HAS_DENORM__ = 1
  1620. const m___FLT32X_HAS_INFINITY__ = 1
  1621. const m___FLT32X_HAS_QUIET_NAN__ = 1
  1622. const m___FLT32X_MANT_DIG__ = 53
  1623. const m___FLT32X_MAX_10_EXP__ = 308
  1624. const m___FLT32X_MAX_EXP__ = 1024
  1625. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  1626. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  1627. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1628. const m___FLT32_DECIMAL_DIG__ = 9
  1629. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1630. const m___FLT32_DIG__ = 6
  1631. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1632. const m___FLT32_HAS_DENORM__ = 1
  1633. const m___FLT32_HAS_INFINITY__ = 1
  1634. const m___FLT32_HAS_QUIET_NAN__ = 1
  1635. const m___FLT32_MANT_DIG__ = 24
  1636. const m___FLT32_MAX_10_EXP__ = 38
  1637. const m___FLT32_MAX_EXP__ = 128
  1638. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  1639. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  1640. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1641. const m___FLT64X_DECIMAL_DIG__ = 36
  1642. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1643. const m___FLT64X_DIG__ = 33
  1644. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1645. const m___FLT64X_HAS_DENORM__ = 1
  1646. const m___FLT64X_HAS_INFINITY__ = 1
  1647. const m___FLT64X_HAS_QUIET_NAN__ = 1
  1648. const m___FLT64X_MANT_DIG__ = 113
  1649. const m___FLT64X_MAX_10_EXP__ = 4932
  1650. const m___FLT64X_MAX_EXP__ = 16384
  1651. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1652. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  1653. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1654. const m___FLT64_DECIMAL_DIG__ = 17
  1655. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1656. const m___FLT64_DIG__ = 15
  1657. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1658. const m___FLT64_HAS_DENORM__ = 1
  1659. const m___FLT64_HAS_INFINITY__ = 1
  1660. const m___FLT64_HAS_QUIET_NAN__ = 1
  1661. const m___FLT64_MANT_DIG__ = 53
  1662. const m___FLT64_MAX_10_EXP__ = 308
  1663. const m___FLT64_MAX_EXP__ = 1024
  1664. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  1665. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  1666. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1667. const m___FLT_DECIMAL_DIG__ = 9
  1668. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1669. const m___FLT_DIG__ = 6
  1670. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1671. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  1672. const m___FLT_EVAL_METHOD__ = 0
  1673. const m___FLT_HAS_DENORM__ = 1
  1674. const m___FLT_HAS_INFINITY__ = 1
  1675. const m___FLT_HAS_QUIET_NAN__ = 1
  1676. const m___FLT_MANT_DIG__ = 24
  1677. const m___FLT_MAX_10_EXP__ = 38
  1678. const m___FLT_MAX_EXP__ = 128
  1679. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  1680. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  1681. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1682. const m___FLT_RADIX__ = 2
  1683. const m___FP_FAST_FMA = 1
  1684. const m___FP_FAST_FMAF = 1
  1685. const m___FP_FAST_FMAF32 = 1
  1686. const m___FP_FAST_FMAF32x = 1
  1687. const m___FP_FAST_FMAF64 = 1
  1688. const m___FP_FAST_FMAL = 1
  1689. const m___FUNCTION__ = "__func__"
  1690. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  1691. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1692. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1693. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  1694. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1695. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  1696. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1697. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1698. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  1699. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1700. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1701. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  1702. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  1703. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  1704. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  1705. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1706. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  1707. const m___GCC_IEC_559 = 2
  1708. const m___GCC_IEC_559_COMPLEX = 2
  1709. const m___GNUC_MINOR__ = 2
  1710. const m___GNUC_PATCHLEVEL__ = 1
  1711. const m___GNUC_STDC_INLINE__ = 1
  1712. const m___GNUC__ = 10
  1713. const m___GXX_ABI_VERSION = 1014
  1714. const m___HAVE_BSWAP__ = 1
  1715. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  1716. const m___HTM__ = 1
  1717. const m___INT16_MAX__ = 0x7fff
  1718. const m___INT32_MAX__ = 0x7fffffff
  1719. const m___INT32_TYPE__ = "int"
  1720. const m___INT64_MAX__ = 0x7fffffffffffffff
  1721. const m___INT8_MAX__ = 0x7f
  1722. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  1723. const m___INTMAX_WIDTH__ = 64
  1724. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  1725. const m___INTPTR_WIDTH__ = 64
  1726. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  1727. const m___INT_FAST16_WIDTH__ = 64
  1728. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  1729. const m___INT_FAST32_WIDTH__ = 64
  1730. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  1731. const m___INT_FAST64_WIDTH__ = 64
  1732. const m___INT_FAST8_MAX__ = 0x7f
  1733. const m___INT_FAST8_WIDTH__ = 8
  1734. const m___INT_LEAST16_MAX__ = 0x7fff
  1735. const m___INT_LEAST16_WIDTH__ = 16
  1736. const m___INT_LEAST32_MAX__ = 0x7fffffff
  1737. const m___INT_LEAST32_TYPE__ = "int"
  1738. const m___INT_LEAST32_WIDTH__ = 32
  1739. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  1740. const m___INT_LEAST64_WIDTH__ = 64
  1741. const m___INT_LEAST8_MAX__ = 0x7f
  1742. const m___INT_LEAST8_WIDTH__ = 8
  1743. const m___INT_MAX__ = 0x7fffffff
  1744. const m___INT_WIDTH__ = 32
  1745. const m___LDBL_DECIMAL_DIG__ = 17
  1746. const m___LDBL_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1747. const m___LDBL_DIG__ = 15
  1748. const m___LDBL_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1749. const m___LDBL_HAS_DENORM__ = 1
  1750. const m___LDBL_HAS_INFINITY__ = 1
  1751. const m___LDBL_HAS_QUIET_NAN__ = 1
  1752. const m___LDBL_MANT_DIG__ = 53
  1753. const m___LDBL_MAX_10_EXP__ = 308
  1754. const m___LDBL_MAX_EXP__ = 1024
  1755. const m___LDBL_MAX__ = 1.79769313486231570814527423731704357e+308
  1756. const m___LDBL_MIN__ = 2.22507385850720138309023271733240406e-308
  1757. const m___LDBL_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1758. const m___LITTLE_ENDIAN = 1234
  1759. const m___LITTLE_ENDIAN__ = 1
  1760. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1761. const m___LONG_LONG_WIDTH__ = 64
  1762. const m___LONG_MAX = 0x7fffffffffffffff
  1763. const m___LONG_MAX__ = 0x7fffffffffffffff
  1764. const m___LONG_WIDTH__ = 64
  1765. const m___LP64__ = 1
  1766. const m___NO_INLINE__ = 1
  1767. const m___ORDER_BIG_ENDIAN__ = 4321
  1768. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1769. const m___ORDER_PDP_ENDIAN__ = 3412
  1770. const m___PDP_ENDIAN = 3412
  1771. const m___PIC__ = 2
  1772. const m___PIE__ = 2
  1773. const m___POWER8_VECTOR__ = 1
  1774. const m___PPC64__ = 1
  1775. const m___PPC__ = 1
  1776. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1777. const m___PRETTY_FUNCTION__ = "__func__"
  1778. const m___PRI64 = "l"
  1779. const m___PRIPTR = "l"
  1780. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  1781. const m___PTRDIFF_WIDTH__ = 64
  1782. const m___QUAD_MEMORY_ATOMIC__ = 1
  1783. const m___RECIPF__ = 1
  1784. const m___RECIP_PRECISION__ = 1
  1785. const m___RECIP__ = 1
  1786. const m___RSQRTEF__ = 1
  1787. const m___RSQRTE__ = 1
  1788. const m___SCHAR_MAX__ = 0x7f
  1789. const m___SCHAR_WIDTH__ = 8
  1790. const m___SHRT_MAX__ = 0x7fff
  1791. const m___SHRT_WIDTH__ = 16
  1792. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1793. const m___SIG_ATOMIC_TYPE__ = "int"
  1794. const m___SIG_ATOMIC_WIDTH__ = 32
  1795. const m___SIZEOF_DOUBLE__ = 8
  1796. const m___SIZEOF_FLOAT__ = 4
  1797. const m___SIZEOF_INT128__ = 16
  1798. const m___SIZEOF_INT__ = 4
  1799. const m___SIZEOF_LONG_DOUBLE__ = 8
  1800. const m___SIZEOF_LONG_LONG__ = 8
  1801. const m___SIZEOF_LONG__ = 8
  1802. const m___SIZEOF_POINTER__ = 8
  1803. const m___SIZEOF_PTRDIFF_T__ = 8
  1804. const m___SIZEOF_SHORT__ = 2
  1805. const m___SIZEOF_SIZE_T__ = 8
  1806. const m___SIZEOF_WCHAR_T__ = 4
  1807. const m___SIZEOF_WINT_T__ = 4
  1808. const m___SIZE_MAX__ = 0xffffffffffffffff
  1809. const m___SIZE_WIDTH__ = 64
  1810. const m___STDC_HOSTED__ = 1
  1811. const m___STDC_IEC_559_COMPLEX__ = 1
  1812. const m___STDC_IEC_559__ = 1
  1813. const m___STDC_ISO_10646__ = 201706
  1814. const m___STDC_UTF_16__ = 1
  1815. const m___STDC_UTF_32__ = 1
  1816. const m___STDC_VERSION__ = 201710
  1817. const m___STDC__ = 1
  1818. const m___STRUCT_PARM_ALIGN__ = 16
  1819. const m___TM_FENCE__ = 1
  1820. const m___UAPI_DEF_IN6_ADDR = 0
  1821. const m___UAPI_DEF_IN6_ADDR_ALT = 0
  1822. const m___UAPI_DEF_IN6_PKTINFO = 0
  1823. const m___UAPI_DEF_IN_ADDR = 0
  1824. const m___UAPI_DEF_IN_CLASS = 0
  1825. const m___UAPI_DEF_IN_IPPROTO = 0
  1826. const m___UAPI_DEF_IN_PKTINFO = 0
  1827. const m___UAPI_DEF_IP6_MTUINFO = 0
  1828. const m___UAPI_DEF_IPPROTO_V6 = 0
  1829. const m___UAPI_DEF_IPV6_MREQ = 0
  1830. const m___UAPI_DEF_IPV6_OPTIONS = 0
  1831. const m___UAPI_DEF_IP_MREQ = 0
  1832. const m___UAPI_DEF_SOCKADDR_IN = 0
  1833. const m___UAPI_DEF_SOCKADDR_IN6 = 0
  1834. const m___UINT16_MAX__ = 0xffff
  1835. const m___UINT32_MAX__ = 0xffffffff
  1836. const m___UINT64_MAX__ = 0xffffffffffffffff
  1837. const m___UINT8_MAX__ = 0xff
  1838. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  1839. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  1840. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  1841. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  1842. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  1843. const m___UINT_FAST8_MAX__ = 0xff
  1844. const m___UINT_LEAST16_MAX__ = 0xffff
  1845. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1846. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  1847. const m___UINT_LEAST8_MAX__ = 0xff
  1848. const m___USE_TIME_BITS64 = 1
  1849. const m___VEC_ELEMENT_REG_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1850. const m___VEC__ = 10206
  1851. const m___VERSION__ = "10.2.1 20210110"
  1852. const m___VSX__ = 1
  1853. const m___WCHAR_MAX__ = 0x7fffffff
  1854. const m___WCHAR_TYPE__ = "int"
  1855. const m___WCHAR_WIDTH__ = 32
  1856. const m___WINT_MAX__ = 0xffffffff
  1857. const m___WINT_MIN__ = 0
  1858. const m___WINT_WIDTH__ = 32
  1859. const m___builtin_copysignq = "__builtin_copysignf128"
  1860. const m___builtin_fabsq = "__builtin_fabsf128"
  1861. const m___builtin_huge_valq = "__builtin_huge_valf128"
  1862. const m___builtin_infq = "__builtin_inff128"
  1863. const m___builtin_nanq = "__builtin_nanf128"
  1864. const m___builtin_nansq = "__builtin_nansf128"
  1865. const m___builtin_vsx_vperm = "__builtin_vec_perm"
  1866. const m___builtin_vsx_xvmaddadp = "__builtin_vsx_xvmadddp"
  1867. const m___builtin_vsx_xvmaddasp = "__builtin_vsx_xvmaddsp"
  1868. const m___builtin_vsx_xvmaddmdp = "__builtin_vsx_xvmadddp"
  1869. const m___builtin_vsx_xvmaddmsp = "__builtin_vsx_xvmaddsp"
  1870. const m___builtin_vsx_xvmsubadp = "__builtin_vsx_xvmsubdp"
  1871. const m___builtin_vsx_xvmsubasp = "__builtin_vsx_xvmsubsp"
  1872. const m___builtin_vsx_xvmsubmdp = "__builtin_vsx_xvmsubdp"
  1873. const m___builtin_vsx_xvmsubmsp = "__builtin_vsx_xvmsubsp"
  1874. const m___builtin_vsx_xvnmaddadp = "__builtin_vsx_xvnmadddp"
  1875. const m___builtin_vsx_xvnmaddasp = "__builtin_vsx_xvnmaddsp"
  1876. const m___builtin_vsx_xvnmaddmdp = "__builtin_vsx_xvnmadddp"
  1877. const m___builtin_vsx_xvnmaddmsp = "__builtin_vsx_xvnmaddsp"
  1878. const m___builtin_vsx_xvnmsubadp = "__builtin_vsx_xvnmsubdp"
  1879. const m___builtin_vsx_xvnmsubasp = "__builtin_vsx_xvnmsubsp"
  1880. const m___builtin_vsx_xvnmsubmdp = "__builtin_vsx_xvnmsubdp"
  1881. const m___builtin_vsx_xvnmsubmsp = "__builtin_vsx_xvnmsubsp"
  1882. const m___builtin_vsx_xxland = "__builtin_vec_and"
  1883. const m___builtin_vsx_xxlandc = "__builtin_vec_andc"
  1884. const m___builtin_vsx_xxlnor = "__builtin_vec_nor"
  1885. const m___builtin_vsx_xxlor = "__builtin_vec_or"
  1886. const m___builtin_vsx_xxlxor = "__builtin_vec_xor"
  1887. const m___builtin_vsx_xxsel = "__builtin_vec_sel"
  1888. const m___float128 = "__ieee128"
  1889. const m___gnu_linux__ = 1
  1890. const m___inline = "inline"
  1891. const m___linux = 1
  1892. const m___linux__ = 1
  1893. const m___pic__ = 2
  1894. const m___pie__ = 2
  1895. const m___powerpc64__ = 1
  1896. const m___powerpc__ = 1
  1897. const m___restrict = "restrict"
  1898. const m___restrict_arr = "restrict"
  1899. const m___tm_gmtoff = "tm_gmtoff"
  1900. const m___tm_zone = "tm_zone"
  1901. const m___unix = 1
  1902. const m___unix__ = 1
  1903. const m_alloca = "__builtin_alloca"
  1904. const m_linux = 1
  1905. const m_loff_t = "off_t"
  1906. const m_static_assert = "_Static_assert"
  1907. const m_unix = 1
  1908. type t__builtin_va_list = uintptr
  1909. type t__predefined_size_t = uint64
  1910. type t__predefined_wchar_t = int32
  1911. type t__predefined_ptrdiff_t = int64
  1912. type Tsize_t = uint64
  1913. type Tlocale_t = uintptr
  1914. type Tssize_t = int64
  1915. type Toff_t = int64
  1916. type Tva_list = uintptr
  1917. type t__isoc_va_list = uintptr
  1918. type Tfpos_t = struct {
  1919. F__lldata [0]int64
  1920. F__align [0]float64
  1921. F__opaque [16]uint8
  1922. }
  1923. type T_G_fpos64_t = Tfpos_t
  1924. type Tcookie_io_functions_t = struct {
  1925. Fread uintptr
  1926. Fwrite uintptr
  1927. Fseek uintptr
  1928. Fclose1 uintptr
  1929. }
  1930. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  1931. type Tintptr_t = int64
  1932. type Tpid_t = int32
  1933. type Tuid_t = uint32
  1934. type Tgid_t = uint32
  1935. type Tuseconds_t = uint32
  1936. type Twchar_t = int32
  1937. type Tdiv_t = struct {
  1938. Fquot int32
  1939. Frem int32
  1940. }
  1941. type Tldiv_t = struct {
  1942. Fquot int64
  1943. Frem int64
  1944. }
  1945. type Tlldiv_t = struct {
  1946. Fquot int64
  1947. Frem int64
  1948. }
  1949. type Tmode_t = uint32
  1950. type Tiovec = struct {
  1951. Fiov_base uintptr
  1952. Fiov_len Tsize_t
  1953. }
  1954. type Tflock = struct {
  1955. Fl_type int16
  1956. Fl_whence int16
  1957. Fl_start Toff_t
  1958. Fl_len Toff_t
  1959. Fl_pid Tpid_t
  1960. }
  1961. type Tfile_handle = struct {
  1962. Fhandle_bytes uint32
  1963. Fhandle_type int32
  1964. }
  1965. type Tf_owner_ex = struct {
  1966. Ftype1 int32
  1967. Fpid Tpid_t
  1968. }
  1969. type Tregister_t = int64
  1970. type Ttime_t = int64
  1971. type Tsuseconds_t = int64
  1972. type Tint8_t = int8
  1973. type Tint16_t = int16
  1974. type Tint32_t = int32
  1975. type Tint64_t = int64
  1976. type Tu_int64_t = uint64
  1977. type Tnlink_t = uint64
  1978. type Tino_t = uint64
  1979. type Tdev_t = uint64
  1980. type Tblksize_t = int64
  1981. type Tblkcnt_t = int64
  1982. type Tfsblkcnt_t = uint64
  1983. type Tfsfilcnt_t = uint64
  1984. type Ttimer_t = uintptr
  1985. type Tclockid_t = int32
  1986. type Tclock_t = int64
  1987. type Tid_t = uint32
  1988. type Tkey_t = int32
  1989. type Tpthread_t = uintptr
  1990. type Tpthread_once_t = int32
  1991. type Tpthread_key_t = uint32
  1992. type Tpthread_spinlock_t = int32
  1993. type Tpthread_mutexattr_t = struct {
  1994. F__attr uint32
  1995. }
  1996. type Tpthread_condattr_t = struct {
  1997. F__attr uint32
  1998. }
  1999. type Tpthread_barrierattr_t = struct {
  2000. F__attr uint32
  2001. }
  2002. type Tpthread_rwlockattr_t = struct {
  2003. F__attr [2]uint32
  2004. }
  2005. type Tpthread_attr_t = struct {
  2006. F__u struct {
  2007. F__vi [0][14]int32
  2008. F__s [0][7]uint64
  2009. F__i [14]int32
  2010. }
  2011. }
  2012. type Tpthread_mutex_t = struct {
  2013. F__u struct {
  2014. F__vi [0][10]int32
  2015. F__p [0][5]uintptr
  2016. F__i [10]int32
  2017. }
  2018. }
  2019. type Tpthread_cond_t = struct {
  2020. F__u struct {
  2021. F__vi [0][12]int32
  2022. F__p [0][6]uintptr
  2023. F__i [12]int32
  2024. }
  2025. }
  2026. type Tpthread_rwlock_t = struct {
  2027. F__u struct {
  2028. F__vi [0][14]int32
  2029. F__p [0][7]uintptr
  2030. F__i [14]int32
  2031. }
  2032. }
  2033. type Tpthread_barrier_t = struct {
  2034. F__u struct {
  2035. F__vi [0][8]int32
  2036. F__p [0][4]uintptr
  2037. F__i [8]int32
  2038. }
  2039. }
  2040. type Tu_int8_t = uint8
  2041. type Tu_int16_t = uint16
  2042. type Tu_int32_t = uint32
  2043. type Tcaddr_t = uintptr
  2044. type Tu_char = uint8
  2045. type Tu_short = uint16
  2046. type Tushort = uint16
  2047. type Tu_int = uint32
  2048. type Tuint = uint32
  2049. type Tu_long = uint64
  2050. type Tulong = uint64
  2051. type Tquad_t = int64
  2052. type Tu_quad_t = uint64
  2053. type Tuint16_t = uint16
  2054. type Tuint32_t = uint32
  2055. type Tuint64_t = uint64
  2056. type Ttimeval = struct {
  2057. Ftv_sec Ttime_t
  2058. Ftv_usec Tsuseconds_t
  2059. }
  2060. type Ttimespec = struct {
  2061. Ftv_sec Ttime_t
  2062. Ftv_nsec int64
  2063. }
  2064. type Tsigset_t = struct {
  2065. F__bits [16]uint64
  2066. }
  2067. type t__sigset_t = Tsigset_t
  2068. type Tfd_mask = uint64
  2069. type Tfd_set = struct {
  2070. Ffds_bits [16]uint64
  2071. }
  2072. type Tuintptr_t = uint64
  2073. type Tintmax_t = int64
  2074. type Tuint8_t = uint8
  2075. type Tuintmax_t = uint64
  2076. type Tint_fast8_t = int8
  2077. type Tint_fast64_t = int64
  2078. type Tint_least8_t = int8
  2079. type Tint_least16_t = int16
  2080. type Tint_least32_t = int32
  2081. type Tint_least64_t = int64
  2082. type Tuint_fast8_t = uint8
  2083. type Tuint_fast64_t = uint64
  2084. type Tuint_least8_t = uint8
  2085. type Tuint_least16_t = uint16
  2086. type Tuint_least32_t = uint32
  2087. type Tuint_least64_t = uint64
  2088. type Tint_fast16_t = int32
  2089. type Tint_fast32_t = int32
  2090. type Tuint_fast16_t = uint32
  2091. type Tuint_fast32_t = uint32
  2092. type Tsched_param = struct {
  2093. Fsched_priority int32
  2094. F__reserved1 int32
  2095. F__reserved2 [2]struct {
  2096. F__reserved1 Ttime_t
  2097. F__reserved2 int64
  2098. }
  2099. F__reserved3 int32
  2100. }
  2101. type Tcpu_set_t = struct {
  2102. F__bits [16]uint64
  2103. }
  2104. type Ttm = struct {
  2105. Ftm_sec int32
  2106. Ftm_min int32
  2107. Ftm_hour int32
  2108. Ftm_mday int32
  2109. Ftm_mon int32
  2110. Ftm_year int32
  2111. Ftm_wday int32
  2112. Ftm_yday int32
  2113. Ftm_isdst int32
  2114. Ftm_gmtoff int64
  2115. Ftm_zone uintptr
  2116. }
  2117. type Titimerspec = struct {
  2118. Fit_interval Ttimespec
  2119. Fit_value Ttimespec
  2120. }
  2121. type t__ptcb = struct {
  2122. F__f uintptr
  2123. F__x uintptr
  2124. F__next uintptr
  2125. }
  2126. type Tcpu_set_t1 = struct {
  2127. F__bits [16]uint64
  2128. }
  2129. type Txcb_connection_t = struct {
  2130. Fhas_error int32
  2131. Fsetup uintptr
  2132. Ffd int32
  2133. Fiolock Tpthread_mutex_t
  2134. Fin T_xcb_in
  2135. Fout T_xcb_out
  2136. Fext T_xcb_ext
  2137. Fxid T_xcb_xid
  2138. }
  2139. type Txcb_generic_iterator_t = struct {
  2140. Fdata uintptr
  2141. Frem int32
  2142. Findex int32
  2143. }
  2144. type Txcb_generic_reply_t = struct {
  2145. Fresponse_type Tuint8_t
  2146. Fpad0 Tuint8_t
  2147. Fsequence Tuint16_t
  2148. Flength Tuint32_t
  2149. }
  2150. type Txcb_generic_event_t = struct {
  2151. Fresponse_type Tuint8_t
  2152. Fpad0 Tuint8_t
  2153. Fsequence Tuint16_t
  2154. Fpad [7]Tuint32_t
  2155. Ffull_sequence Tuint32_t
  2156. }
  2157. type Txcb_raw_generic_event_t = struct {
  2158. Fresponse_type Tuint8_t
  2159. Fpad0 Tuint8_t
  2160. Fsequence Tuint16_t
  2161. Fpad [7]Tuint32_t
  2162. }
  2163. type Txcb_ge_event_t = struct {
  2164. Fresponse_type Tuint8_t
  2165. Fpad0 Tuint8_t
  2166. Fsequence Tuint16_t
  2167. Flength Tuint32_t
  2168. Fevent_type Tuint16_t
  2169. Fpad1 Tuint16_t
  2170. Fpad [5]Tuint32_t
  2171. Ffull_sequence Tuint32_t
  2172. }
  2173. type Txcb_generic_error_t = struct {
  2174. Fresponse_type Tuint8_t
  2175. Ferror_code Tuint8_t
  2176. Fsequence Tuint16_t
  2177. Fresource_id Tuint32_t
  2178. Fminor_code Tuint16_t
  2179. Fmajor_code Tuint8_t
  2180. Fpad0 Tuint8_t
  2181. Fpad [5]Tuint32_t
  2182. Ffull_sequence Tuint32_t
  2183. }
  2184. type Txcb_void_cookie_t = struct {
  2185. Fsequence uint32
  2186. }
  2187. type Txcb_char2b_t = struct {
  2188. Fbyte1 Tuint8_t
  2189. Fbyte2 Tuint8_t
  2190. }
  2191. type Txcb_char2b_iterator_t = struct {
  2192. Fdata uintptr
  2193. Frem int32
  2194. Findex int32
  2195. }
  2196. type Txcb_window_t = uint32
  2197. type Txcb_window_iterator_t = struct {
  2198. Fdata uintptr
  2199. Frem int32
  2200. Findex int32
  2201. }
  2202. type Txcb_pixmap_t = uint32
  2203. type Txcb_pixmap_iterator_t = struct {
  2204. Fdata uintptr
  2205. Frem int32
  2206. Findex int32
  2207. }
  2208. type Txcb_cursor_t = uint32
  2209. type Txcb_cursor_iterator_t = struct {
  2210. Fdata uintptr
  2211. Frem int32
  2212. Findex int32
  2213. }
  2214. type Txcb_font_t = uint32
  2215. type Txcb_font_iterator_t = struct {
  2216. Fdata uintptr
  2217. Frem int32
  2218. Findex int32
  2219. }
  2220. type Txcb_gcontext_t = uint32
  2221. type Txcb_gcontext_iterator_t = struct {
  2222. Fdata uintptr
  2223. Frem int32
  2224. Findex int32
  2225. }
  2226. type Txcb_colormap_t = uint32
  2227. type Txcb_colormap_iterator_t = struct {
  2228. Fdata uintptr
  2229. Frem int32
  2230. Findex int32
  2231. }
  2232. type Txcb_atom_t = uint32
  2233. type Txcb_atom_iterator_t = struct {
  2234. Fdata uintptr
  2235. Frem int32
  2236. Findex int32
  2237. }
  2238. type Txcb_drawable_t = uint32
  2239. type Txcb_drawable_iterator_t = struct {
  2240. Fdata uintptr
  2241. Frem int32
  2242. Findex int32
  2243. }
  2244. type Txcb_fontable_t = uint32
  2245. type Txcb_fontable_iterator_t = struct {
  2246. Fdata uintptr
  2247. Frem int32
  2248. Findex int32
  2249. }
  2250. type Txcb_bool32_t = uint32
  2251. type Txcb_bool32_iterator_t = struct {
  2252. Fdata uintptr
  2253. Frem int32
  2254. Findex int32
  2255. }
  2256. type Txcb_visualid_t = uint32
  2257. type Txcb_visualid_iterator_t = struct {
  2258. Fdata uintptr
  2259. Frem int32
  2260. Findex int32
  2261. }
  2262. type Txcb_timestamp_t = uint32
  2263. type Txcb_timestamp_iterator_t = struct {
  2264. Fdata uintptr
  2265. Frem int32
  2266. Findex int32
  2267. }
  2268. type Txcb_keysym_t = uint32
  2269. type Txcb_keysym_iterator_t = struct {
  2270. Fdata uintptr
  2271. Frem int32
  2272. Findex int32
  2273. }
  2274. type Txcb_keycode_t = uint8
  2275. type Txcb_keycode_iterator_t = struct {
  2276. Fdata uintptr
  2277. Frem int32
  2278. Findex int32
  2279. }
  2280. type Txcb_keycode32_t = uint32
  2281. type Txcb_keycode32_iterator_t = struct {
  2282. Fdata uintptr
  2283. Frem int32
  2284. Findex int32
  2285. }
  2286. type Txcb_button_t = uint8
  2287. type Txcb_button_iterator_t = struct {
  2288. Fdata uintptr
  2289. Frem int32
  2290. Findex int32
  2291. }
  2292. type Txcb_point_t = struct {
  2293. Fx Tint16_t
  2294. Fy Tint16_t
  2295. }
  2296. type Txcb_point_iterator_t = struct {
  2297. Fdata uintptr
  2298. Frem int32
  2299. Findex int32
  2300. }
  2301. type Txcb_rectangle_t = struct {
  2302. Fx Tint16_t
  2303. Fy Tint16_t
  2304. Fwidth Tuint16_t
  2305. Fheight Tuint16_t
  2306. }
  2307. type Txcb_rectangle_iterator_t = struct {
  2308. Fdata uintptr
  2309. Frem int32
  2310. Findex int32
  2311. }
  2312. type Txcb_arc_t = struct {
  2313. Fx Tint16_t
  2314. Fy Tint16_t
  2315. Fwidth Tuint16_t
  2316. Fheight Tuint16_t
  2317. Fangle1 Tint16_t
  2318. Fangle2 Tint16_t
  2319. }
  2320. type Txcb_arc_iterator_t = struct {
  2321. Fdata uintptr
  2322. Frem int32
  2323. Findex int32
  2324. }
  2325. type Txcb_format_t = struct {
  2326. Fdepth Tuint8_t
  2327. Fbits_per_pixel Tuint8_t
  2328. Fscanline_pad Tuint8_t
  2329. Fpad0 [5]Tuint8_t
  2330. }
  2331. type Txcb_format_iterator_t = struct {
  2332. Fdata uintptr
  2333. Frem int32
  2334. Findex int32
  2335. }
  2336. type Txcb_visual_class_t = int32
  2337. type _xcb_visual_class_t = int32
  2338. const _XCB_VISUAL_CLASS_STATIC_GRAY = 0
  2339. const _XCB_VISUAL_CLASS_GRAY_SCALE = 1
  2340. const _XCB_VISUAL_CLASS_STATIC_COLOR = 2
  2341. const _XCB_VISUAL_CLASS_PSEUDO_COLOR = 3
  2342. const _XCB_VISUAL_CLASS_TRUE_COLOR = 4
  2343. const _XCB_VISUAL_CLASS_DIRECT_COLOR = 5
  2344. type Txcb_visualtype_t = struct {
  2345. Fvisual_id Txcb_visualid_t
  2346. F_class Tuint8_t
  2347. Fbits_per_rgb_value Tuint8_t
  2348. Fcolormap_entries Tuint16_t
  2349. Fred_mask Tuint32_t
  2350. Fgreen_mask Tuint32_t
  2351. Fblue_mask Tuint32_t
  2352. Fpad0 [4]Tuint8_t
  2353. }
  2354. type Txcb_visualtype_iterator_t = struct {
  2355. Fdata uintptr
  2356. Frem int32
  2357. Findex int32
  2358. }
  2359. type Txcb_depth_t = struct {
  2360. Fdepth Tuint8_t
  2361. Fpad0 Tuint8_t
  2362. Fvisuals_len Tuint16_t
  2363. Fpad1 [4]Tuint8_t
  2364. }
  2365. type Txcb_depth_iterator_t = struct {
  2366. Fdata uintptr
  2367. Frem int32
  2368. Findex int32
  2369. }
  2370. type Txcb_event_mask_t = int32
  2371. type _xcb_event_mask_t = int32
  2372. const _XCB_EVENT_MASK_NO_EVENT = 0
  2373. const _XCB_EVENT_MASK_KEY_PRESS = 1
  2374. const _XCB_EVENT_MASK_KEY_RELEASE = 2
  2375. const _XCB_EVENT_MASK_BUTTON_PRESS = 4
  2376. const _XCB_EVENT_MASK_BUTTON_RELEASE = 8
  2377. const _XCB_EVENT_MASK_ENTER_WINDOW = 16
  2378. const _XCB_EVENT_MASK_LEAVE_WINDOW = 32
  2379. const _XCB_EVENT_MASK_POINTER_MOTION = 64
  2380. const _XCB_EVENT_MASK_POINTER_MOTION_HINT = 128
  2381. const _XCB_EVENT_MASK_BUTTON_1_MOTION = 256
  2382. const _XCB_EVENT_MASK_BUTTON_2_MOTION = 512
  2383. const _XCB_EVENT_MASK_BUTTON_3_MOTION = 1024
  2384. const _XCB_EVENT_MASK_BUTTON_4_MOTION = 2048
  2385. const _XCB_EVENT_MASK_BUTTON_5_MOTION = 4096
  2386. const _XCB_EVENT_MASK_BUTTON_MOTION = 8192
  2387. const _XCB_EVENT_MASK_KEYMAP_STATE = 16384
  2388. const _XCB_EVENT_MASK_EXPOSURE = 32768
  2389. const _XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536
  2390. const _XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072
  2391. const _XCB_EVENT_MASK_RESIZE_REDIRECT = 262144
  2392. const _XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288
  2393. const _XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576
  2394. const _XCB_EVENT_MASK_FOCUS_CHANGE = 2097152
  2395. const _XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304
  2396. const _XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608
  2397. const _XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
  2398. type Txcb_backing_store_t = int32
  2399. type _xcb_backing_store_t = int32
  2400. const _XCB_BACKING_STORE_NOT_USEFUL = 0
  2401. const _XCB_BACKING_STORE_WHEN_MAPPED = 1
  2402. const _XCB_BACKING_STORE_ALWAYS = 2
  2403. type Txcb_screen_t = struct {
  2404. Froot Txcb_window_t
  2405. Fdefault_colormap Txcb_colormap_t
  2406. Fwhite_pixel Tuint32_t
  2407. Fblack_pixel Tuint32_t
  2408. Fcurrent_input_masks Tuint32_t
  2409. Fwidth_in_pixels Tuint16_t
  2410. Fheight_in_pixels Tuint16_t
  2411. Fwidth_in_millimeters Tuint16_t
  2412. Fheight_in_millimeters Tuint16_t
  2413. Fmin_installed_maps Tuint16_t
  2414. Fmax_installed_maps Tuint16_t
  2415. Froot_visual Txcb_visualid_t
  2416. Fbacking_stores Tuint8_t
  2417. Fsave_unders Tuint8_t
  2418. Froot_depth Tuint8_t
  2419. Fallowed_depths_len Tuint8_t
  2420. }
  2421. type Txcb_screen_iterator_t = struct {
  2422. Fdata uintptr
  2423. Frem int32
  2424. Findex int32
  2425. }
  2426. type Txcb_setup_request_t = struct {
  2427. Fbyte_order Tuint8_t
  2428. Fpad0 Tuint8_t
  2429. Fprotocol_major_version Tuint16_t
  2430. Fprotocol_minor_version Tuint16_t
  2431. Fauthorization_protocol_name_len Tuint16_t
  2432. Fauthorization_protocol_data_len Tuint16_t
  2433. Fpad1 [2]Tuint8_t
  2434. }
  2435. type Txcb_setup_request_iterator_t = struct {
  2436. Fdata uintptr
  2437. Frem int32
  2438. Findex int32
  2439. }
  2440. type Txcb_setup_failed_t = struct {
  2441. Fstatus Tuint8_t
  2442. Freason_len Tuint8_t
  2443. Fprotocol_major_version Tuint16_t
  2444. Fprotocol_minor_version Tuint16_t
  2445. Flength Tuint16_t
  2446. }
  2447. type Txcb_setup_failed_iterator_t = struct {
  2448. Fdata uintptr
  2449. Frem int32
  2450. Findex int32
  2451. }
  2452. type Txcb_setup_authenticate_t = struct {
  2453. Fstatus Tuint8_t
  2454. Fpad0 [5]Tuint8_t
  2455. Flength Tuint16_t
  2456. }
  2457. type Txcb_setup_authenticate_iterator_t = struct {
  2458. Fdata uintptr
  2459. Frem int32
  2460. Findex int32
  2461. }
  2462. type Txcb_image_order_t = int32
  2463. type _xcb_image_order_t = int32
  2464. const _XCB_IMAGE_ORDER_LSB_FIRST = 0
  2465. const _XCB_IMAGE_ORDER_MSB_FIRST = 1
  2466. type Txcb_setup_t = struct {
  2467. Fstatus Tuint8_t
  2468. Fpad0 Tuint8_t
  2469. Fprotocol_major_version Tuint16_t
  2470. Fprotocol_minor_version Tuint16_t
  2471. Flength Tuint16_t
  2472. Frelease_number Tuint32_t
  2473. Fresource_id_base Tuint32_t
  2474. Fresource_id_mask Tuint32_t
  2475. Fmotion_buffer_size Tuint32_t
  2476. Fvendor_len Tuint16_t
  2477. Fmaximum_request_length Tuint16_t
  2478. Froots_len Tuint8_t
  2479. Fpixmap_formats_len Tuint8_t
  2480. Fimage_byte_order Tuint8_t
  2481. Fbitmap_format_bit_order Tuint8_t
  2482. Fbitmap_format_scanline_unit Tuint8_t
  2483. Fbitmap_format_scanline_pad Tuint8_t
  2484. Fmin_keycode Txcb_keycode_t
  2485. Fmax_keycode Txcb_keycode_t
  2486. Fpad1 [4]Tuint8_t
  2487. }
  2488. type Txcb_setup_iterator_t = struct {
  2489. Fdata uintptr
  2490. Frem int32
  2491. Findex int32
  2492. }
  2493. type Txcb_mod_mask_t = int32
  2494. type _xcb_mod_mask_t = int32
  2495. const _XCB_MOD_MASK_SHIFT = 1
  2496. const _XCB_MOD_MASK_LOCK = 2
  2497. const _XCB_MOD_MASK_CONTROL = 4
  2498. const _XCB_MOD_MASK_1 = 8
  2499. const _XCB_MOD_MASK_2 = 16
  2500. const _XCB_MOD_MASK_3 = 32
  2501. const _XCB_MOD_MASK_4 = 64
  2502. const _XCB_MOD_MASK_5 = 128
  2503. const _XCB_MOD_MASK_ANY = 32768
  2504. type Txcb_key_but_mask_t = int32
  2505. type _xcb_key_but_mask_t = int32
  2506. const _XCB_KEY_BUT_MASK_SHIFT = 1
  2507. const _XCB_KEY_BUT_MASK_LOCK = 2
  2508. const _XCB_KEY_BUT_MASK_CONTROL = 4
  2509. const _XCB_KEY_BUT_MASK_MOD_1 = 8
  2510. const _XCB_KEY_BUT_MASK_MOD_2 = 16
  2511. const _XCB_KEY_BUT_MASK_MOD_3 = 32
  2512. const _XCB_KEY_BUT_MASK_MOD_4 = 64
  2513. const _XCB_KEY_BUT_MASK_MOD_5 = 128
  2514. const _XCB_KEY_BUT_MASK_BUTTON_1 = 256
  2515. const _XCB_KEY_BUT_MASK_BUTTON_2 = 512
  2516. const _XCB_KEY_BUT_MASK_BUTTON_3 = 1024
  2517. const _XCB_KEY_BUT_MASK_BUTTON_4 = 2048
  2518. const _XCB_KEY_BUT_MASK_BUTTON_5 = 4096
  2519. type Txcb_window_enum_t = int32
  2520. type _xcb_window_enum_t = int32
  2521. const _XCB_WINDOW_NONE = 0
  2522. type Txcb_key_press_event_t = struct {
  2523. Fresponse_type Tuint8_t
  2524. Fdetail Txcb_keycode_t
  2525. Fsequence Tuint16_t
  2526. Ftime Txcb_timestamp_t
  2527. Froot Txcb_window_t
  2528. Fevent Txcb_window_t
  2529. Fchild Txcb_window_t
  2530. Froot_x Tint16_t
  2531. Froot_y Tint16_t
  2532. Fevent_x Tint16_t
  2533. Fevent_y Tint16_t
  2534. Fstate Tuint16_t
  2535. Fsame_screen Tuint8_t
  2536. Fpad0 Tuint8_t
  2537. }
  2538. type Txcb_key_release_event_t = struct {
  2539. Fresponse_type Tuint8_t
  2540. Fdetail Txcb_keycode_t
  2541. Fsequence Tuint16_t
  2542. Ftime Txcb_timestamp_t
  2543. Froot Txcb_window_t
  2544. Fevent Txcb_window_t
  2545. Fchild Txcb_window_t
  2546. Froot_x Tint16_t
  2547. Froot_y Tint16_t
  2548. Fevent_x Tint16_t
  2549. Fevent_y Tint16_t
  2550. Fstate Tuint16_t
  2551. Fsame_screen Tuint8_t
  2552. Fpad0 Tuint8_t
  2553. }
  2554. type Txcb_key_press_event_t1 = Txcb_key_release_event_t
  2555. type Txcb_button_mask_t = int32
  2556. type _xcb_button_mask_t = int32
  2557. const _XCB_BUTTON_MASK_1 = 256
  2558. const _XCB_BUTTON_MASK_2 = 512
  2559. const _XCB_BUTTON_MASK_3 = 1024
  2560. const _XCB_BUTTON_MASK_4 = 2048
  2561. const _XCB_BUTTON_MASK_5 = 4096
  2562. const _XCB_BUTTON_MASK_ANY = 32768
  2563. type Txcb_button_press_event_t = struct {
  2564. Fresponse_type Tuint8_t
  2565. Fdetail Txcb_button_t
  2566. Fsequence Tuint16_t
  2567. Ftime Txcb_timestamp_t
  2568. Froot Txcb_window_t
  2569. Fevent Txcb_window_t
  2570. Fchild Txcb_window_t
  2571. Froot_x Tint16_t
  2572. Froot_y Tint16_t
  2573. Fevent_x Tint16_t
  2574. Fevent_y Tint16_t
  2575. Fstate Tuint16_t
  2576. Fsame_screen Tuint8_t
  2577. Fpad0 Tuint8_t
  2578. }
  2579. type Txcb_button_release_event_t = struct {
  2580. Fresponse_type Tuint8_t
  2581. Fdetail Txcb_button_t
  2582. Fsequence Tuint16_t
  2583. Ftime Txcb_timestamp_t
  2584. Froot Txcb_window_t
  2585. Fevent Txcb_window_t
  2586. Fchild Txcb_window_t
  2587. Froot_x Tint16_t
  2588. Froot_y Tint16_t
  2589. Fevent_x Tint16_t
  2590. Fevent_y Tint16_t
  2591. Fstate Tuint16_t
  2592. Fsame_screen Tuint8_t
  2593. Fpad0 Tuint8_t
  2594. }
  2595. type Txcb_button_press_event_t1 = Txcb_button_release_event_t
  2596. type Txcb_motion_t = int32
  2597. type _xcb_motion_t = int32
  2598. const _XCB_MOTION_NORMAL = 0
  2599. const _XCB_MOTION_HINT = 1
  2600. type Txcb_motion_notify_event_t = struct {
  2601. Fresponse_type Tuint8_t
  2602. Fdetail Tuint8_t
  2603. Fsequence Tuint16_t
  2604. Ftime Txcb_timestamp_t
  2605. Froot Txcb_window_t
  2606. Fevent Txcb_window_t
  2607. Fchild Txcb_window_t
  2608. Froot_x Tint16_t
  2609. Froot_y Tint16_t
  2610. Fevent_x Tint16_t
  2611. Fevent_y Tint16_t
  2612. Fstate Tuint16_t
  2613. Fsame_screen Tuint8_t
  2614. Fpad0 Tuint8_t
  2615. }
  2616. type Txcb_notify_detail_t = int32
  2617. type _xcb_notify_detail_t = int32
  2618. const _XCB_NOTIFY_DETAIL_ANCESTOR = 0
  2619. const _XCB_NOTIFY_DETAIL_VIRTUAL = 1
  2620. const _XCB_NOTIFY_DETAIL_INFERIOR = 2
  2621. const _XCB_NOTIFY_DETAIL_NONLINEAR = 3
  2622. const _XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4
  2623. const _XCB_NOTIFY_DETAIL_POINTER = 5
  2624. const _XCB_NOTIFY_DETAIL_POINTER_ROOT = 6
  2625. const _XCB_NOTIFY_DETAIL_NONE = 7
  2626. type Txcb_notify_mode_t = int32
  2627. type _xcb_notify_mode_t = int32
  2628. const _XCB_NOTIFY_MODE_NORMAL = 0
  2629. const _XCB_NOTIFY_MODE_GRAB = 1
  2630. const _XCB_NOTIFY_MODE_UNGRAB = 2
  2631. const _XCB_NOTIFY_MODE_WHILE_GRABBED = 3
  2632. type Txcb_enter_notify_event_t = struct {
  2633. Fresponse_type Tuint8_t
  2634. Fdetail Tuint8_t
  2635. Fsequence Tuint16_t
  2636. Ftime Txcb_timestamp_t
  2637. Froot Txcb_window_t
  2638. Fevent Txcb_window_t
  2639. Fchild Txcb_window_t
  2640. Froot_x Tint16_t
  2641. Froot_y Tint16_t
  2642. Fevent_x Tint16_t
  2643. Fevent_y Tint16_t
  2644. Fstate Tuint16_t
  2645. Fmode Tuint8_t
  2646. Fsame_screen_focus Tuint8_t
  2647. }
  2648. type Txcb_leave_notify_event_t = struct {
  2649. Fresponse_type Tuint8_t
  2650. Fdetail Tuint8_t
  2651. Fsequence Tuint16_t
  2652. Ftime Txcb_timestamp_t
  2653. Froot Txcb_window_t
  2654. Fevent Txcb_window_t
  2655. Fchild Txcb_window_t
  2656. Froot_x Tint16_t
  2657. Froot_y Tint16_t
  2658. Fevent_x Tint16_t
  2659. Fevent_y Tint16_t
  2660. Fstate Tuint16_t
  2661. Fmode Tuint8_t
  2662. Fsame_screen_focus Tuint8_t
  2663. }
  2664. type Txcb_enter_notify_event_t1 = Txcb_leave_notify_event_t
  2665. type Txcb_focus_in_event_t = struct {
  2666. Fresponse_type Tuint8_t
  2667. Fdetail Tuint8_t
  2668. Fsequence Tuint16_t
  2669. Fevent Txcb_window_t
  2670. Fmode Tuint8_t
  2671. Fpad0 [3]Tuint8_t
  2672. }
  2673. type Txcb_focus_out_event_t = struct {
  2674. Fresponse_type Tuint8_t
  2675. Fdetail Tuint8_t
  2676. Fsequence Tuint16_t
  2677. Fevent Txcb_window_t
  2678. Fmode Tuint8_t
  2679. Fpad0 [3]Tuint8_t
  2680. }
  2681. type Txcb_focus_in_event_t1 = Txcb_focus_out_event_t
  2682. type Txcb_keymap_notify_event_t = struct {
  2683. Fresponse_type Tuint8_t
  2684. Fkeys [31]Tuint8_t
  2685. }
  2686. type Txcb_expose_event_t = struct {
  2687. Fresponse_type Tuint8_t
  2688. Fpad0 Tuint8_t
  2689. Fsequence Tuint16_t
  2690. Fwindow Txcb_window_t
  2691. Fx Tuint16_t
  2692. Fy Tuint16_t
  2693. Fwidth Tuint16_t
  2694. Fheight Tuint16_t
  2695. Fcount Tuint16_t
  2696. Fpad1 [2]Tuint8_t
  2697. }
  2698. type Txcb_graphics_exposure_event_t = struct {
  2699. Fresponse_type Tuint8_t
  2700. Fpad0 Tuint8_t
  2701. Fsequence Tuint16_t
  2702. Fdrawable Txcb_drawable_t
  2703. Fx Tuint16_t
  2704. Fy Tuint16_t
  2705. Fwidth Tuint16_t
  2706. Fheight Tuint16_t
  2707. Fminor_opcode Tuint16_t
  2708. Fcount Tuint16_t
  2709. Fmajor_opcode Tuint8_t
  2710. Fpad1 [3]Tuint8_t
  2711. }
  2712. type Txcb_no_exposure_event_t = struct {
  2713. Fresponse_type Tuint8_t
  2714. Fpad0 Tuint8_t
  2715. Fsequence Tuint16_t
  2716. Fdrawable Txcb_drawable_t
  2717. Fminor_opcode Tuint16_t
  2718. Fmajor_opcode Tuint8_t
  2719. Fpad1 Tuint8_t
  2720. }
  2721. type Txcb_visibility_t = int32
  2722. type _xcb_visibility_t = int32
  2723. const _XCB_VISIBILITY_UNOBSCURED = 0
  2724. const _XCB_VISIBILITY_PARTIALLY_OBSCURED = 1
  2725. const _XCB_VISIBILITY_FULLY_OBSCURED = 2
  2726. type Txcb_visibility_notify_event_t = struct {
  2727. Fresponse_type Tuint8_t
  2728. Fpad0 Tuint8_t
  2729. Fsequence Tuint16_t
  2730. Fwindow Txcb_window_t
  2731. Fstate Tuint8_t
  2732. Fpad1 [3]Tuint8_t
  2733. }
  2734. type Txcb_create_notify_event_t = struct {
  2735. Fresponse_type Tuint8_t
  2736. Fpad0 Tuint8_t
  2737. Fsequence Tuint16_t
  2738. Fparent Txcb_window_t
  2739. Fwindow Txcb_window_t
  2740. Fx Tint16_t
  2741. Fy Tint16_t
  2742. Fwidth Tuint16_t
  2743. Fheight Tuint16_t
  2744. Fborder_width Tuint16_t
  2745. Foverride_redirect Tuint8_t
  2746. Fpad1 Tuint8_t
  2747. }
  2748. type Txcb_destroy_notify_event_t = struct {
  2749. Fresponse_type Tuint8_t
  2750. Fpad0 Tuint8_t
  2751. Fsequence Tuint16_t
  2752. Fevent Txcb_window_t
  2753. Fwindow Txcb_window_t
  2754. }
  2755. type Txcb_unmap_notify_event_t = struct {
  2756. Fresponse_type Tuint8_t
  2757. Fpad0 Tuint8_t
  2758. Fsequence Tuint16_t
  2759. Fevent Txcb_window_t
  2760. Fwindow Txcb_window_t
  2761. Ffrom_configure Tuint8_t
  2762. Fpad1 [3]Tuint8_t
  2763. }
  2764. type Txcb_map_notify_event_t = struct {
  2765. Fresponse_type Tuint8_t
  2766. Fpad0 Tuint8_t
  2767. Fsequence Tuint16_t
  2768. Fevent Txcb_window_t
  2769. Fwindow Txcb_window_t
  2770. Foverride_redirect Tuint8_t
  2771. Fpad1 [3]Tuint8_t
  2772. }
  2773. type Txcb_map_request_event_t = struct {
  2774. Fresponse_type Tuint8_t
  2775. Fpad0 Tuint8_t
  2776. Fsequence Tuint16_t
  2777. Fparent Txcb_window_t
  2778. Fwindow Txcb_window_t
  2779. }
  2780. type Txcb_reparent_notify_event_t = struct {
  2781. Fresponse_type Tuint8_t
  2782. Fpad0 Tuint8_t
  2783. Fsequence Tuint16_t
  2784. Fevent Txcb_window_t
  2785. Fwindow Txcb_window_t
  2786. Fparent Txcb_window_t
  2787. Fx Tint16_t
  2788. Fy Tint16_t
  2789. Foverride_redirect Tuint8_t
  2790. Fpad1 [3]Tuint8_t
  2791. }
  2792. type Txcb_configure_notify_event_t = struct {
  2793. Fresponse_type Tuint8_t
  2794. Fpad0 Tuint8_t
  2795. Fsequence Tuint16_t
  2796. Fevent Txcb_window_t
  2797. Fwindow Txcb_window_t
  2798. Fabove_sibling Txcb_window_t
  2799. Fx Tint16_t
  2800. Fy Tint16_t
  2801. Fwidth Tuint16_t
  2802. Fheight Tuint16_t
  2803. Fborder_width Tuint16_t
  2804. Foverride_redirect Tuint8_t
  2805. Fpad1 Tuint8_t
  2806. }
  2807. type Txcb_configure_request_event_t = struct {
  2808. Fresponse_type Tuint8_t
  2809. Fstack_mode Tuint8_t
  2810. Fsequence Tuint16_t
  2811. Fparent Txcb_window_t
  2812. Fwindow Txcb_window_t
  2813. Fsibling Txcb_window_t
  2814. Fx Tint16_t
  2815. Fy Tint16_t
  2816. Fwidth Tuint16_t
  2817. Fheight Tuint16_t
  2818. Fborder_width Tuint16_t
  2819. Fvalue_mask Tuint16_t
  2820. }
  2821. type Txcb_gravity_notify_event_t = struct {
  2822. Fresponse_type Tuint8_t
  2823. Fpad0 Tuint8_t
  2824. Fsequence Tuint16_t
  2825. Fevent Txcb_window_t
  2826. Fwindow Txcb_window_t
  2827. Fx Tint16_t
  2828. Fy Tint16_t
  2829. }
  2830. type Txcb_resize_request_event_t = struct {
  2831. Fresponse_type Tuint8_t
  2832. Fpad0 Tuint8_t
  2833. Fsequence Tuint16_t
  2834. Fwindow Txcb_window_t
  2835. Fwidth Tuint16_t
  2836. Fheight Tuint16_t
  2837. }
  2838. type Txcb_place_t = int32
  2839. type _xcb_place_t = int32
  2840. const _XCB_PLACE_ON_TOP = 0
  2841. const _XCB_PLACE_ON_BOTTOM = 1
  2842. type Txcb_circulate_notify_event_t = struct {
  2843. Fresponse_type Tuint8_t
  2844. Fpad0 Tuint8_t
  2845. Fsequence Tuint16_t
  2846. Fevent Txcb_window_t
  2847. Fwindow Txcb_window_t
  2848. Fpad1 [4]Tuint8_t
  2849. Fplace Tuint8_t
  2850. Fpad2 [3]Tuint8_t
  2851. }
  2852. type Txcb_circulate_request_event_t = struct {
  2853. Fresponse_type Tuint8_t
  2854. Fpad0 Tuint8_t
  2855. Fsequence Tuint16_t
  2856. Fevent Txcb_window_t
  2857. Fwindow Txcb_window_t
  2858. Fpad1 [4]Tuint8_t
  2859. Fplace Tuint8_t
  2860. Fpad2 [3]Tuint8_t
  2861. }
  2862. type Txcb_circulate_notify_event_t1 = Txcb_circulate_request_event_t
  2863. type Txcb_property_t = int32
  2864. type _xcb_property_t = int32
  2865. const _XCB_PROPERTY_NEW_VALUE = 0
  2866. const _XCB_PROPERTY_DELETE = 1
  2867. type Txcb_property_notify_event_t = struct {
  2868. Fresponse_type Tuint8_t
  2869. Fpad0 Tuint8_t
  2870. Fsequence Tuint16_t
  2871. Fwindow Txcb_window_t
  2872. Fatom Txcb_atom_t
  2873. Ftime Txcb_timestamp_t
  2874. Fstate Tuint8_t
  2875. Fpad1 [3]Tuint8_t
  2876. }
  2877. type Txcb_selection_clear_event_t = struct {
  2878. Fresponse_type Tuint8_t
  2879. Fpad0 Tuint8_t
  2880. Fsequence Tuint16_t
  2881. Ftime Txcb_timestamp_t
  2882. Fowner Txcb_window_t
  2883. Fselection Txcb_atom_t
  2884. }
  2885. type Txcb_time_t = int32
  2886. type _xcb_time_t = int32
  2887. const _XCB_TIME_CURRENT_TIME = 0
  2888. type Txcb_atom_enum_t = int32
  2889. type _xcb_atom_enum_t = int32
  2890. const _XCB_ATOM_NONE = 0
  2891. const _XCB_ATOM_ANY = 0
  2892. const _XCB_ATOM_PRIMARY = 1
  2893. const _XCB_ATOM_SECONDARY = 2
  2894. const _XCB_ATOM_ARC = 3
  2895. const _XCB_ATOM_ATOM = 4
  2896. const _XCB_ATOM_BITMAP = 5
  2897. const _XCB_ATOM_CARDINAL = 6
  2898. const _XCB_ATOM_COLORMAP = 7
  2899. const _XCB_ATOM_CURSOR = 8
  2900. const _XCB_ATOM_CUT_BUFFER0 = 9
  2901. const _XCB_ATOM_CUT_BUFFER1 = 10
  2902. const _XCB_ATOM_CUT_BUFFER2 = 11
  2903. const _XCB_ATOM_CUT_BUFFER3 = 12
  2904. const _XCB_ATOM_CUT_BUFFER4 = 13
  2905. const _XCB_ATOM_CUT_BUFFER5 = 14
  2906. const _XCB_ATOM_CUT_BUFFER6 = 15
  2907. const _XCB_ATOM_CUT_BUFFER7 = 16
  2908. const _XCB_ATOM_DRAWABLE = 17
  2909. const _XCB_ATOM_FONT = 18
  2910. const _XCB_ATOM_INTEGER = 19
  2911. const _XCB_ATOM_PIXMAP = 20
  2912. const _XCB_ATOM_POINT = 21
  2913. const _XCB_ATOM_RECTANGLE = 22
  2914. const _XCB_ATOM_RESOURCE_MANAGER = 23
  2915. const _XCB_ATOM_RGB_COLOR_MAP = 24
  2916. const _XCB_ATOM_RGB_BEST_MAP = 25
  2917. const _XCB_ATOM_RGB_BLUE_MAP = 26
  2918. const _XCB_ATOM_RGB_DEFAULT_MAP = 27
  2919. const _XCB_ATOM_RGB_GRAY_MAP = 28
  2920. const _XCB_ATOM_RGB_GREEN_MAP = 29
  2921. const _XCB_ATOM_RGB_RED_MAP = 30
  2922. const _XCB_ATOM_STRING = 31
  2923. const _XCB_ATOM_VISUALID = 32
  2924. const _XCB_ATOM_WINDOW = 33
  2925. const _XCB_ATOM_WM_COMMAND = 34
  2926. const _XCB_ATOM_WM_HINTS = 35
  2927. const _XCB_ATOM_WM_CLIENT_MACHINE = 36
  2928. const _XCB_ATOM_WM_ICON_NAME = 37
  2929. const _XCB_ATOM_WM_ICON_SIZE = 38
  2930. const _XCB_ATOM_WM_NAME = 39
  2931. const _XCB_ATOM_WM_NORMAL_HINTS = 40
  2932. const _XCB_ATOM_WM_SIZE_HINTS = 41
  2933. const _XCB_ATOM_WM_ZOOM_HINTS = 42
  2934. const _XCB_ATOM_MIN_SPACE = 43
  2935. const _XCB_ATOM_NORM_SPACE = 44
  2936. const _XCB_ATOM_MAX_SPACE = 45
  2937. const _XCB_ATOM_END_SPACE = 46
  2938. const _XCB_ATOM_SUPERSCRIPT_X = 47
  2939. const _XCB_ATOM_SUPERSCRIPT_Y = 48
  2940. const _XCB_ATOM_SUBSCRIPT_X = 49
  2941. const _XCB_ATOM_SUBSCRIPT_Y = 50
  2942. const _XCB_ATOM_UNDERLINE_POSITION = 51
  2943. const _XCB_ATOM_UNDERLINE_THICKNESS = 52
  2944. const _XCB_ATOM_STRIKEOUT_ASCENT = 53
  2945. const _XCB_ATOM_STRIKEOUT_DESCENT = 54
  2946. const _XCB_ATOM_ITALIC_ANGLE = 55
  2947. const _XCB_ATOM_X_HEIGHT = 56
  2948. const _XCB_ATOM_QUAD_WIDTH = 57
  2949. const _XCB_ATOM_WEIGHT = 58
  2950. const _XCB_ATOM_POINT_SIZE = 59
  2951. const _XCB_ATOM_RESOLUTION = 60
  2952. const _XCB_ATOM_COPYRIGHT = 61
  2953. const _XCB_ATOM_NOTICE = 62
  2954. const _XCB_ATOM_FONT_NAME = 63
  2955. const _XCB_ATOM_FAMILY_NAME = 64
  2956. const _XCB_ATOM_FULL_NAME = 65
  2957. const _XCB_ATOM_CAP_HEIGHT = 66
  2958. const _XCB_ATOM_WM_CLASS = 67
  2959. const _XCB_ATOM_WM_TRANSIENT_FOR = 68
  2960. type Txcb_selection_request_event_t = struct {
  2961. Fresponse_type Tuint8_t
  2962. Fpad0 Tuint8_t
  2963. Fsequence Tuint16_t
  2964. Ftime Txcb_timestamp_t
  2965. Fowner Txcb_window_t
  2966. Frequestor Txcb_window_t
  2967. Fselection Txcb_atom_t
  2968. Ftarget Txcb_atom_t
  2969. Fproperty Txcb_atom_t
  2970. }
  2971. type Txcb_selection_notify_event_t = struct {
  2972. Fresponse_type Tuint8_t
  2973. Fpad0 Tuint8_t
  2974. Fsequence Tuint16_t
  2975. Ftime Txcb_timestamp_t
  2976. Frequestor Txcb_window_t
  2977. Fselection Txcb_atom_t
  2978. Ftarget Txcb_atom_t
  2979. Fproperty Txcb_atom_t
  2980. }
  2981. type Txcb_colormap_state_t = int32
  2982. type _xcb_colormap_state_t = int32
  2983. const _XCB_COLORMAP_STATE_UNINSTALLED = 0
  2984. const _XCB_COLORMAP_STATE_INSTALLED = 1
  2985. type Txcb_colormap_enum_t = int32
  2986. type _xcb_colormap_enum_t = int32
  2987. const _XCB_COLORMAP_NONE = 0
  2988. type Txcb_colormap_notify_event_t = struct {
  2989. Fresponse_type Tuint8_t
  2990. Fpad0 Tuint8_t
  2991. Fsequence Tuint16_t
  2992. Fwindow Txcb_window_t
  2993. Fcolormap Txcb_colormap_t
  2994. F_new Tuint8_t
  2995. Fstate Tuint8_t
  2996. Fpad1 [2]Tuint8_t
  2997. }
  2998. type Txcb_client_message_data_t = struct {
  2999. Fdata16 [0][10]Tuint16_t
  3000. Fdata32 [0][5]Tuint32_t
  3001. Fdata8 [20]Tuint8_t
  3002. }
  3003. type Txcb_client_message_data_iterator_t = struct {
  3004. Fdata uintptr
  3005. Frem int32
  3006. Findex int32
  3007. }
  3008. type Txcb_client_message_event_t = struct {
  3009. Fresponse_type Tuint8_t
  3010. Fformat Tuint8_t
  3011. Fsequence Tuint16_t
  3012. Fwindow Txcb_window_t
  3013. Ftype1 Txcb_atom_t
  3014. Fdata Txcb_client_message_data_t
  3015. }
  3016. type Txcb_mapping_t = int32
  3017. type _xcb_mapping_t = int32
  3018. const _XCB_MAPPING_MODIFIER = 0
  3019. const _XCB_MAPPING_KEYBOARD = 1
  3020. const _XCB_MAPPING_POINTER = 2
  3021. type Txcb_mapping_notify_event_t = struct {
  3022. Fresponse_type Tuint8_t
  3023. Fpad0 Tuint8_t
  3024. Fsequence Tuint16_t
  3025. Frequest Tuint8_t
  3026. Ffirst_keycode Txcb_keycode_t
  3027. Fcount Tuint8_t
  3028. Fpad1 Tuint8_t
  3029. }
  3030. type Txcb_ge_generic_event_t = struct {
  3031. Fresponse_type Tuint8_t
  3032. Fextension Tuint8_t
  3033. Fsequence Tuint16_t
  3034. Flength Tuint32_t
  3035. Fevent_type Tuint16_t
  3036. Fpad0 [22]Tuint8_t
  3037. Ffull_sequence Tuint32_t
  3038. }
  3039. type Txcb_request_error_t = struct {
  3040. Fresponse_type Tuint8_t
  3041. Ferror_code Tuint8_t
  3042. Fsequence Tuint16_t
  3043. Fbad_value Tuint32_t
  3044. Fminor_opcode Tuint16_t
  3045. Fmajor_opcode Tuint8_t
  3046. Fpad0 Tuint8_t
  3047. }
  3048. type Txcb_value_error_t = struct {
  3049. Fresponse_type Tuint8_t
  3050. Ferror_code Tuint8_t
  3051. Fsequence Tuint16_t
  3052. Fbad_value Tuint32_t
  3053. Fminor_opcode Tuint16_t
  3054. Fmajor_opcode Tuint8_t
  3055. Fpad0 Tuint8_t
  3056. }
  3057. type Txcb_window_error_t = struct {
  3058. Fresponse_type Tuint8_t
  3059. Ferror_code Tuint8_t
  3060. Fsequence Tuint16_t
  3061. Fbad_value Tuint32_t
  3062. Fminor_opcode Tuint16_t
  3063. Fmajor_opcode Tuint8_t
  3064. Fpad0 Tuint8_t
  3065. }
  3066. type Txcb_value_error_t1 = Txcb_window_error_t
  3067. type Txcb_pixmap_error_t = struct {
  3068. Fresponse_type Tuint8_t
  3069. Ferror_code Tuint8_t
  3070. Fsequence Tuint16_t
  3071. Fbad_value Tuint32_t
  3072. Fminor_opcode Tuint16_t
  3073. Fmajor_opcode Tuint8_t
  3074. Fpad0 Tuint8_t
  3075. }
  3076. type Txcb_atom_error_t = struct {
  3077. Fresponse_type Tuint8_t
  3078. Ferror_code Tuint8_t
  3079. Fsequence Tuint16_t
  3080. Fbad_value Tuint32_t
  3081. Fminor_opcode Tuint16_t
  3082. Fmajor_opcode Tuint8_t
  3083. Fpad0 Tuint8_t
  3084. }
  3085. type Txcb_cursor_error_t = struct {
  3086. Fresponse_type Tuint8_t
  3087. Ferror_code Tuint8_t
  3088. Fsequence Tuint16_t
  3089. Fbad_value Tuint32_t
  3090. Fminor_opcode Tuint16_t
  3091. Fmajor_opcode Tuint8_t
  3092. Fpad0 Tuint8_t
  3093. }
  3094. type Txcb_font_error_t = struct {
  3095. Fresponse_type Tuint8_t
  3096. Ferror_code Tuint8_t
  3097. Fsequence Tuint16_t
  3098. Fbad_value Tuint32_t
  3099. Fminor_opcode Tuint16_t
  3100. Fmajor_opcode Tuint8_t
  3101. Fpad0 Tuint8_t
  3102. }
  3103. type Txcb_match_error_t = struct {
  3104. Fresponse_type Tuint8_t
  3105. Ferror_code Tuint8_t
  3106. Fsequence Tuint16_t
  3107. Fbad_value Tuint32_t
  3108. Fminor_opcode Tuint16_t
  3109. Fmajor_opcode Tuint8_t
  3110. Fpad0 Tuint8_t
  3111. }
  3112. type Txcb_request_error_t1 = Txcb_match_error_t
  3113. type Txcb_drawable_error_t = struct {
  3114. Fresponse_type Tuint8_t
  3115. Ferror_code Tuint8_t
  3116. Fsequence Tuint16_t
  3117. Fbad_value Tuint32_t
  3118. Fminor_opcode Tuint16_t
  3119. Fmajor_opcode Tuint8_t
  3120. Fpad0 Tuint8_t
  3121. }
  3122. type Txcb_access_error_t = struct {
  3123. Fresponse_type Tuint8_t
  3124. Ferror_code Tuint8_t
  3125. Fsequence Tuint16_t
  3126. Fbad_value Tuint32_t
  3127. Fminor_opcode Tuint16_t
  3128. Fmajor_opcode Tuint8_t
  3129. Fpad0 Tuint8_t
  3130. }
  3131. type Txcb_alloc_error_t = struct {
  3132. Fresponse_type Tuint8_t
  3133. Ferror_code Tuint8_t
  3134. Fsequence Tuint16_t
  3135. Fbad_value Tuint32_t
  3136. Fminor_opcode Tuint16_t
  3137. Fmajor_opcode Tuint8_t
  3138. Fpad0 Tuint8_t
  3139. }
  3140. type Txcb_colormap_error_t = struct {
  3141. Fresponse_type Tuint8_t
  3142. Ferror_code Tuint8_t
  3143. Fsequence Tuint16_t
  3144. Fbad_value Tuint32_t
  3145. Fminor_opcode Tuint16_t
  3146. Fmajor_opcode Tuint8_t
  3147. Fpad0 Tuint8_t
  3148. }
  3149. type Txcb_g_context_error_t = struct {
  3150. Fresponse_type Tuint8_t
  3151. Ferror_code Tuint8_t
  3152. Fsequence Tuint16_t
  3153. Fbad_value Tuint32_t
  3154. Fminor_opcode Tuint16_t
  3155. Fmajor_opcode Tuint8_t
  3156. Fpad0 Tuint8_t
  3157. }
  3158. type Txcb_id_choice_error_t = struct {
  3159. Fresponse_type Tuint8_t
  3160. Ferror_code Tuint8_t
  3161. Fsequence Tuint16_t
  3162. Fbad_value Tuint32_t
  3163. Fminor_opcode Tuint16_t
  3164. Fmajor_opcode Tuint8_t
  3165. Fpad0 Tuint8_t
  3166. }
  3167. type Txcb_name_error_t = struct {
  3168. Fresponse_type Tuint8_t
  3169. Ferror_code Tuint8_t
  3170. Fsequence Tuint16_t
  3171. Fbad_value Tuint32_t
  3172. Fminor_opcode Tuint16_t
  3173. Fmajor_opcode Tuint8_t
  3174. Fpad0 Tuint8_t
  3175. }
  3176. type Txcb_length_error_t = struct {
  3177. Fresponse_type Tuint8_t
  3178. Ferror_code Tuint8_t
  3179. Fsequence Tuint16_t
  3180. Fbad_value Tuint32_t
  3181. Fminor_opcode Tuint16_t
  3182. Fmajor_opcode Tuint8_t
  3183. Fpad0 Tuint8_t
  3184. }
  3185. type Txcb_implementation_error_t = struct {
  3186. Fresponse_type Tuint8_t
  3187. Ferror_code Tuint8_t
  3188. Fsequence Tuint16_t
  3189. Fbad_value Tuint32_t
  3190. Fminor_opcode Tuint16_t
  3191. Fmajor_opcode Tuint8_t
  3192. Fpad0 Tuint8_t
  3193. }
  3194. type Txcb_window_class_t = int32
  3195. type _xcb_window_class_t = int32
  3196. const _XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0
  3197. const _XCB_WINDOW_CLASS_INPUT_OUTPUT = 1
  3198. const _XCB_WINDOW_CLASS_INPUT_ONLY = 2
  3199. type Txcb_cw_t = int32
  3200. type _xcb_cw_t = int32
  3201. const _XCB_CW_BACK_PIXMAP = 1
  3202. const _XCB_CW_BACK_PIXEL = 2
  3203. const _XCB_CW_BORDER_PIXMAP = 4
  3204. const _XCB_CW_BORDER_PIXEL = 8
  3205. const _XCB_CW_BIT_GRAVITY = 16
  3206. const _XCB_CW_WIN_GRAVITY = 32
  3207. const _XCB_CW_BACKING_STORE = 64
  3208. const _XCB_CW_BACKING_PLANES = 128
  3209. const _XCB_CW_BACKING_PIXEL = 256
  3210. const _XCB_CW_OVERRIDE_REDIRECT = 512
  3211. const _XCB_CW_SAVE_UNDER = 1024
  3212. const _XCB_CW_EVENT_MASK = 2048
  3213. const _XCB_CW_DONT_PROPAGATE = 4096
  3214. const _XCB_CW_COLORMAP = 8192
  3215. const _XCB_CW_CURSOR = 16384
  3216. type Txcb_back_pixmap_t = int32
  3217. type _xcb_back_pixmap_t = int32
  3218. const _XCB_BACK_PIXMAP_NONE = 0
  3219. const _XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
  3220. type Txcb_gravity_t = int32
  3221. type _xcb_gravity_t = int32
  3222. const _XCB_GRAVITY_BIT_FORGET = 0
  3223. const _XCB_GRAVITY_WIN_UNMAP = 0
  3224. const _XCB_GRAVITY_NORTH_WEST = 1
  3225. const _XCB_GRAVITY_NORTH = 2
  3226. const _XCB_GRAVITY_NORTH_EAST = 3
  3227. const _XCB_GRAVITY_WEST = 4
  3228. const _XCB_GRAVITY_CENTER = 5
  3229. const _XCB_GRAVITY_EAST = 6
  3230. const _XCB_GRAVITY_SOUTH_WEST = 7
  3231. const _XCB_GRAVITY_SOUTH = 8
  3232. const _XCB_GRAVITY_SOUTH_EAST = 9
  3233. const _XCB_GRAVITY_STATIC = 10
  3234. type Txcb_create_window_value_list_t = struct {
  3235. Fbackground_pixmap Txcb_pixmap_t
  3236. Fbackground_pixel Tuint32_t
  3237. Fborder_pixmap Txcb_pixmap_t
  3238. Fborder_pixel Tuint32_t
  3239. Fbit_gravity Tuint32_t
  3240. Fwin_gravity Tuint32_t
  3241. Fbacking_store Tuint32_t
  3242. Fbacking_planes Tuint32_t
  3243. Fbacking_pixel Tuint32_t
  3244. Foverride_redirect Txcb_bool32_t
  3245. Fsave_under Txcb_bool32_t
  3246. Fevent_mask Tuint32_t
  3247. Fdo_not_propogate_mask Tuint32_t
  3248. Fcolormap Txcb_colormap_t
  3249. Fcursor Txcb_cursor_t
  3250. }
  3251. type Txcb_create_window_request_t = struct {
  3252. Fmajor_opcode Tuint8_t
  3253. Fdepth Tuint8_t
  3254. Flength Tuint16_t
  3255. Fwid Txcb_window_t
  3256. Fparent Txcb_window_t
  3257. Fx Tint16_t
  3258. Fy Tint16_t
  3259. Fwidth Tuint16_t
  3260. Fheight Tuint16_t
  3261. Fborder_width Tuint16_t
  3262. F_class Tuint16_t
  3263. Fvisual Txcb_visualid_t
  3264. Fvalue_mask Tuint32_t
  3265. }
  3266. type Txcb_change_window_attributes_value_list_t = struct {
  3267. Fbackground_pixmap Txcb_pixmap_t
  3268. Fbackground_pixel Tuint32_t
  3269. Fborder_pixmap Txcb_pixmap_t
  3270. Fborder_pixel Tuint32_t
  3271. Fbit_gravity Tuint32_t
  3272. Fwin_gravity Tuint32_t
  3273. Fbacking_store Tuint32_t
  3274. Fbacking_planes Tuint32_t
  3275. Fbacking_pixel Tuint32_t
  3276. Foverride_redirect Txcb_bool32_t
  3277. Fsave_under Txcb_bool32_t
  3278. Fevent_mask Tuint32_t
  3279. Fdo_not_propogate_mask Tuint32_t
  3280. Fcolormap Txcb_colormap_t
  3281. Fcursor Txcb_cursor_t
  3282. }
  3283. type Txcb_change_window_attributes_request_t = struct {
  3284. Fmajor_opcode Tuint8_t
  3285. Fpad0 Tuint8_t
  3286. Flength Tuint16_t
  3287. Fwindow Txcb_window_t
  3288. Fvalue_mask Tuint32_t
  3289. }
  3290. type Txcb_map_state_t = int32
  3291. type _xcb_map_state_t = int32
  3292. const _XCB_MAP_STATE_UNMAPPED = 0
  3293. const _XCB_MAP_STATE_UNVIEWABLE = 1
  3294. const _XCB_MAP_STATE_VIEWABLE = 2
  3295. type Txcb_get_window_attributes_cookie_t = struct {
  3296. Fsequence uint32
  3297. }
  3298. type Txcb_get_window_attributes_request_t = struct {
  3299. Fmajor_opcode Tuint8_t
  3300. Fpad0 Tuint8_t
  3301. Flength Tuint16_t
  3302. Fwindow Txcb_window_t
  3303. }
  3304. type Txcb_get_window_attributes_reply_t = struct {
  3305. Fresponse_type Tuint8_t
  3306. Fbacking_store Tuint8_t
  3307. Fsequence Tuint16_t
  3308. Flength Tuint32_t
  3309. Fvisual Txcb_visualid_t
  3310. F_class Tuint16_t
  3311. Fbit_gravity Tuint8_t
  3312. Fwin_gravity Tuint8_t
  3313. Fbacking_planes Tuint32_t
  3314. Fbacking_pixel Tuint32_t
  3315. Fsave_under Tuint8_t
  3316. Fmap_is_installed Tuint8_t
  3317. Fmap_state Tuint8_t
  3318. Foverride_redirect Tuint8_t
  3319. Fcolormap Txcb_colormap_t
  3320. Fall_event_masks Tuint32_t
  3321. Fyour_event_mask Tuint32_t
  3322. Fdo_not_propagate_mask Tuint16_t
  3323. Fpad0 [2]Tuint8_t
  3324. }
  3325. type Txcb_destroy_window_request_t = struct {
  3326. Fmajor_opcode Tuint8_t
  3327. Fpad0 Tuint8_t
  3328. Flength Tuint16_t
  3329. Fwindow Txcb_window_t
  3330. }
  3331. type Txcb_destroy_subwindows_request_t = struct {
  3332. Fmajor_opcode Tuint8_t
  3333. Fpad0 Tuint8_t
  3334. Flength Tuint16_t
  3335. Fwindow Txcb_window_t
  3336. }
  3337. type Txcb_set_mode_t = int32
  3338. type _xcb_set_mode_t = int32
  3339. const _XCB_SET_MODE_INSERT = 0
  3340. const _XCB_SET_MODE_DELETE = 1
  3341. type Txcb_change_save_set_request_t = struct {
  3342. Fmajor_opcode Tuint8_t
  3343. Fmode Tuint8_t
  3344. Flength Tuint16_t
  3345. Fwindow Txcb_window_t
  3346. }
  3347. type Txcb_reparent_window_request_t = struct {
  3348. Fmajor_opcode Tuint8_t
  3349. Fpad0 Tuint8_t
  3350. Flength Tuint16_t
  3351. Fwindow Txcb_window_t
  3352. Fparent Txcb_window_t
  3353. Fx Tint16_t
  3354. Fy Tint16_t
  3355. }
  3356. type Txcb_map_window_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_map_subwindows_request_t = struct {
  3363. Fmajor_opcode Tuint8_t
  3364. Fpad0 Tuint8_t
  3365. Flength Tuint16_t
  3366. Fwindow Txcb_window_t
  3367. }
  3368. type Txcb_unmap_window_request_t = struct {
  3369. Fmajor_opcode Tuint8_t
  3370. Fpad0 Tuint8_t
  3371. Flength Tuint16_t
  3372. Fwindow Txcb_window_t
  3373. }
  3374. type Txcb_unmap_subwindows_request_t = struct {
  3375. Fmajor_opcode Tuint8_t
  3376. Fpad0 Tuint8_t
  3377. Flength Tuint16_t
  3378. Fwindow Txcb_window_t
  3379. }
  3380. type Txcb_config_window_t = int32
  3381. type _xcb_config_window_t = int32
  3382. const _XCB_CONFIG_WINDOW_X = 1
  3383. const _XCB_CONFIG_WINDOW_Y = 2
  3384. const _XCB_CONFIG_WINDOW_WIDTH = 4
  3385. const _XCB_CONFIG_WINDOW_HEIGHT = 8
  3386. const _XCB_CONFIG_WINDOW_BORDER_WIDTH = 16
  3387. const _XCB_CONFIG_WINDOW_SIBLING = 32
  3388. const _XCB_CONFIG_WINDOW_STACK_MODE = 64
  3389. type Txcb_stack_mode_t = int32
  3390. type _xcb_stack_mode_t = int32
  3391. const _XCB_STACK_MODE_ABOVE = 0
  3392. const _XCB_STACK_MODE_BELOW = 1
  3393. const _XCB_STACK_MODE_TOP_IF = 2
  3394. const _XCB_STACK_MODE_BOTTOM_IF = 3
  3395. const _XCB_STACK_MODE_OPPOSITE = 4
  3396. type Txcb_configure_window_value_list_t = struct {
  3397. Fx Tint32_t
  3398. Fy Tint32_t
  3399. Fwidth Tuint32_t
  3400. Fheight Tuint32_t
  3401. Fborder_width Tuint32_t
  3402. Fsibling Txcb_window_t
  3403. Fstack_mode Tuint32_t
  3404. }
  3405. type Txcb_configure_window_request_t = struct {
  3406. Fmajor_opcode Tuint8_t
  3407. Fpad0 Tuint8_t
  3408. Flength Tuint16_t
  3409. Fwindow Txcb_window_t
  3410. Fvalue_mask Tuint16_t
  3411. Fpad1 [2]Tuint8_t
  3412. }
  3413. type Txcb_circulate_t = int32
  3414. type _xcb_circulate_t = int32
  3415. const _XCB_CIRCULATE_RAISE_LOWEST = 0
  3416. const _XCB_CIRCULATE_LOWER_HIGHEST = 1
  3417. type Txcb_circulate_window_request_t = struct {
  3418. Fmajor_opcode Tuint8_t
  3419. Fdirection Tuint8_t
  3420. Flength Tuint16_t
  3421. Fwindow Txcb_window_t
  3422. }
  3423. type Txcb_get_geometry_cookie_t = struct {
  3424. Fsequence uint32
  3425. }
  3426. type Txcb_get_geometry_request_t = struct {
  3427. Fmajor_opcode Tuint8_t
  3428. Fpad0 Tuint8_t
  3429. Flength Tuint16_t
  3430. Fdrawable Txcb_drawable_t
  3431. }
  3432. type Txcb_get_geometry_reply_t = struct {
  3433. Fresponse_type Tuint8_t
  3434. Fdepth Tuint8_t
  3435. Fsequence Tuint16_t
  3436. Flength Tuint32_t
  3437. Froot Txcb_window_t
  3438. Fx Tint16_t
  3439. Fy Tint16_t
  3440. Fwidth Tuint16_t
  3441. Fheight Tuint16_t
  3442. Fborder_width Tuint16_t
  3443. Fpad0 [2]Tuint8_t
  3444. }
  3445. type Txcb_query_tree_cookie_t = struct {
  3446. Fsequence uint32
  3447. }
  3448. type Txcb_query_tree_request_t = struct {
  3449. Fmajor_opcode Tuint8_t
  3450. Fpad0 Tuint8_t
  3451. Flength Tuint16_t
  3452. Fwindow Txcb_window_t
  3453. }
  3454. type Txcb_query_tree_reply_t = struct {
  3455. Fresponse_type Tuint8_t
  3456. Fpad0 Tuint8_t
  3457. Fsequence Tuint16_t
  3458. Flength Tuint32_t
  3459. Froot Txcb_window_t
  3460. Fparent Txcb_window_t
  3461. Fchildren_len Tuint16_t
  3462. Fpad1 [14]Tuint8_t
  3463. }
  3464. type Txcb_intern_atom_cookie_t = struct {
  3465. Fsequence uint32
  3466. }
  3467. type Txcb_intern_atom_request_t = struct {
  3468. Fmajor_opcode Tuint8_t
  3469. Fonly_if_exists Tuint8_t
  3470. Flength Tuint16_t
  3471. Fname_len Tuint16_t
  3472. Fpad0 [2]Tuint8_t
  3473. }
  3474. type Txcb_intern_atom_reply_t = struct {
  3475. Fresponse_type Tuint8_t
  3476. Fpad0 Tuint8_t
  3477. Fsequence Tuint16_t
  3478. Flength Tuint32_t
  3479. Fatom Txcb_atom_t
  3480. }
  3481. type Txcb_get_atom_name_cookie_t = struct {
  3482. Fsequence uint32
  3483. }
  3484. type Txcb_get_atom_name_request_t = struct {
  3485. Fmajor_opcode Tuint8_t
  3486. Fpad0 Tuint8_t
  3487. Flength Tuint16_t
  3488. Fatom Txcb_atom_t
  3489. }
  3490. type Txcb_get_atom_name_reply_t = struct {
  3491. Fresponse_type Tuint8_t
  3492. Fpad0 Tuint8_t
  3493. Fsequence Tuint16_t
  3494. Flength Tuint32_t
  3495. Fname_len Tuint16_t
  3496. Fpad1 [22]Tuint8_t
  3497. }
  3498. type Txcb_prop_mode_t = int32
  3499. type _xcb_prop_mode_t = int32
  3500. const _XCB_PROP_MODE_REPLACE = 0
  3501. const _XCB_PROP_MODE_PREPEND = 1
  3502. const _XCB_PROP_MODE_APPEND = 2
  3503. type Txcb_change_property_request_t = struct {
  3504. Fmajor_opcode Tuint8_t
  3505. Fmode Tuint8_t
  3506. Flength Tuint16_t
  3507. Fwindow Txcb_window_t
  3508. Fproperty Txcb_atom_t
  3509. Ftype1 Txcb_atom_t
  3510. Fformat Tuint8_t
  3511. Fpad0 [3]Tuint8_t
  3512. Fdata_len Tuint32_t
  3513. }
  3514. type Txcb_delete_property_request_t = struct {
  3515. Fmajor_opcode Tuint8_t
  3516. Fpad0 Tuint8_t
  3517. Flength Tuint16_t
  3518. Fwindow Txcb_window_t
  3519. Fproperty Txcb_atom_t
  3520. }
  3521. type Txcb_get_property_type_t = int32
  3522. type _xcb_get_property_type_t = int32
  3523. const _XCB_GET_PROPERTY_TYPE_ANY = 0
  3524. type Txcb_get_property_cookie_t = struct {
  3525. Fsequence uint32
  3526. }
  3527. type Txcb_get_property_request_t = struct {
  3528. Fmajor_opcode Tuint8_t
  3529. F_delete Tuint8_t
  3530. Flength Tuint16_t
  3531. Fwindow Txcb_window_t
  3532. Fproperty Txcb_atom_t
  3533. Ftype1 Txcb_atom_t
  3534. Flong_offset Tuint32_t
  3535. Flong_length Tuint32_t
  3536. }
  3537. type Txcb_get_property_reply_t = struct {
  3538. Fresponse_type Tuint8_t
  3539. Fformat Tuint8_t
  3540. Fsequence Tuint16_t
  3541. Flength Tuint32_t
  3542. Ftype1 Txcb_atom_t
  3543. Fbytes_after Tuint32_t
  3544. Fvalue_len Tuint32_t
  3545. Fpad0 [12]Tuint8_t
  3546. }
  3547. type Txcb_list_properties_cookie_t = struct {
  3548. Fsequence uint32
  3549. }
  3550. type Txcb_list_properties_request_t = struct {
  3551. Fmajor_opcode Tuint8_t
  3552. Fpad0 Tuint8_t
  3553. Flength Tuint16_t
  3554. Fwindow Txcb_window_t
  3555. }
  3556. type Txcb_list_properties_reply_t = struct {
  3557. Fresponse_type Tuint8_t
  3558. Fpad0 Tuint8_t
  3559. Fsequence Tuint16_t
  3560. Flength Tuint32_t
  3561. Fatoms_len Tuint16_t
  3562. Fpad1 [22]Tuint8_t
  3563. }
  3564. type Txcb_set_selection_owner_request_t = struct {
  3565. Fmajor_opcode Tuint8_t
  3566. Fpad0 Tuint8_t
  3567. Flength Tuint16_t
  3568. Fowner Txcb_window_t
  3569. Fselection Txcb_atom_t
  3570. Ftime Txcb_timestamp_t
  3571. }
  3572. type Txcb_get_selection_owner_cookie_t = struct {
  3573. Fsequence uint32
  3574. }
  3575. type Txcb_get_selection_owner_request_t = struct {
  3576. Fmajor_opcode Tuint8_t
  3577. Fpad0 Tuint8_t
  3578. Flength Tuint16_t
  3579. Fselection Txcb_atom_t
  3580. }
  3581. type Txcb_get_selection_owner_reply_t = struct {
  3582. Fresponse_type Tuint8_t
  3583. Fpad0 Tuint8_t
  3584. Fsequence Tuint16_t
  3585. Flength Tuint32_t
  3586. Fowner Txcb_window_t
  3587. }
  3588. type Txcb_convert_selection_request_t = struct {
  3589. Fmajor_opcode Tuint8_t
  3590. Fpad0 Tuint8_t
  3591. Flength Tuint16_t
  3592. Frequestor Txcb_window_t
  3593. Fselection Txcb_atom_t
  3594. Ftarget Txcb_atom_t
  3595. Fproperty Txcb_atom_t
  3596. Ftime Txcb_timestamp_t
  3597. }
  3598. type Txcb_send_event_dest_t = int32
  3599. type _xcb_send_event_dest_t = int32
  3600. const _XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0
  3601. const _XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
  3602. type Txcb_send_event_request_t = struct {
  3603. Fmajor_opcode Tuint8_t
  3604. Fpropagate Tuint8_t
  3605. Flength Tuint16_t
  3606. Fdestination Txcb_window_t
  3607. Fevent_mask Tuint32_t
  3608. Fevent [32]uint8
  3609. }
  3610. type Txcb_grab_mode_t = int32
  3611. type _xcb_grab_mode_t = int32
  3612. const _XCB_GRAB_MODE_SYNC = 0
  3613. const _XCB_GRAB_MODE_ASYNC = 1
  3614. type Txcb_grab_status_t = int32
  3615. type _xcb_grab_status_t = int32
  3616. const _XCB_GRAB_STATUS_SUCCESS = 0
  3617. const _XCB_GRAB_STATUS_ALREADY_GRABBED = 1
  3618. const _XCB_GRAB_STATUS_INVALID_TIME = 2
  3619. const _XCB_GRAB_STATUS_NOT_VIEWABLE = 3
  3620. const _XCB_GRAB_STATUS_FROZEN = 4
  3621. type Txcb_cursor_enum_t = int32
  3622. type _xcb_cursor_enum_t = int32
  3623. const _XCB_CURSOR_NONE = 0
  3624. type Txcb_grab_pointer_cookie_t = struct {
  3625. Fsequence uint32
  3626. }
  3627. type Txcb_grab_pointer_request_t = struct {
  3628. Fmajor_opcode Tuint8_t
  3629. Fowner_events Tuint8_t
  3630. Flength Tuint16_t
  3631. Fgrab_window Txcb_window_t
  3632. Fevent_mask Tuint16_t
  3633. Fpointer_mode Tuint8_t
  3634. Fkeyboard_mode Tuint8_t
  3635. Fconfine_to Txcb_window_t
  3636. Fcursor Txcb_cursor_t
  3637. Ftime Txcb_timestamp_t
  3638. }
  3639. type Txcb_grab_pointer_reply_t = struct {
  3640. Fresponse_type Tuint8_t
  3641. Fstatus Tuint8_t
  3642. Fsequence Tuint16_t
  3643. Flength Tuint32_t
  3644. }
  3645. type Txcb_ungrab_pointer_request_t = struct {
  3646. Fmajor_opcode Tuint8_t
  3647. Fpad0 Tuint8_t
  3648. Flength Tuint16_t
  3649. Ftime Txcb_timestamp_t
  3650. }
  3651. type Txcb_button_index_t = int32
  3652. type _xcb_button_index_t = int32
  3653. const _XCB_BUTTON_INDEX_ANY = 0
  3654. const _XCB_BUTTON_INDEX_1 = 1
  3655. const _XCB_BUTTON_INDEX_2 = 2
  3656. const _XCB_BUTTON_INDEX_3 = 3
  3657. const _XCB_BUTTON_INDEX_4 = 4
  3658. const _XCB_BUTTON_INDEX_5 = 5
  3659. type Txcb_grab_button_request_t = struct {
  3660. Fmajor_opcode Tuint8_t
  3661. Fowner_events Tuint8_t
  3662. Flength Tuint16_t
  3663. Fgrab_window Txcb_window_t
  3664. Fevent_mask Tuint16_t
  3665. Fpointer_mode Tuint8_t
  3666. Fkeyboard_mode Tuint8_t
  3667. Fconfine_to Txcb_window_t
  3668. Fcursor Txcb_cursor_t
  3669. Fbutton Tuint8_t
  3670. Fpad0 Tuint8_t
  3671. Fmodifiers Tuint16_t
  3672. }
  3673. type Txcb_ungrab_button_request_t = struct {
  3674. Fmajor_opcode Tuint8_t
  3675. Fbutton Tuint8_t
  3676. Flength Tuint16_t
  3677. Fgrab_window Txcb_window_t
  3678. Fmodifiers Tuint16_t
  3679. Fpad0 [2]Tuint8_t
  3680. }
  3681. type Txcb_change_active_pointer_grab_request_t = struct {
  3682. Fmajor_opcode Tuint8_t
  3683. Fpad0 Tuint8_t
  3684. Flength Tuint16_t
  3685. Fcursor Txcb_cursor_t
  3686. Ftime Txcb_timestamp_t
  3687. Fevent_mask Tuint16_t
  3688. Fpad1 [2]Tuint8_t
  3689. }
  3690. type Txcb_grab_keyboard_cookie_t = struct {
  3691. Fsequence uint32
  3692. }
  3693. type Txcb_grab_keyboard_request_t = struct {
  3694. Fmajor_opcode Tuint8_t
  3695. Fowner_events Tuint8_t
  3696. Flength Tuint16_t
  3697. Fgrab_window Txcb_window_t
  3698. Ftime Txcb_timestamp_t
  3699. Fpointer_mode Tuint8_t
  3700. Fkeyboard_mode Tuint8_t
  3701. Fpad0 [2]Tuint8_t
  3702. }
  3703. type Txcb_grab_keyboard_reply_t = struct {
  3704. Fresponse_type Tuint8_t
  3705. Fstatus Tuint8_t
  3706. Fsequence Tuint16_t
  3707. Flength Tuint32_t
  3708. }
  3709. type Txcb_ungrab_keyboard_request_t = struct {
  3710. Fmajor_opcode Tuint8_t
  3711. Fpad0 Tuint8_t
  3712. Flength Tuint16_t
  3713. Ftime Txcb_timestamp_t
  3714. }
  3715. type Txcb_grab_t = int32
  3716. type _xcb_grab_t = int32
  3717. const _XCB_GRAB_ANY = 0
  3718. type Txcb_grab_key_request_t = struct {
  3719. Fmajor_opcode Tuint8_t
  3720. Fowner_events Tuint8_t
  3721. Flength Tuint16_t
  3722. Fgrab_window Txcb_window_t
  3723. Fmodifiers Tuint16_t
  3724. Fkey Txcb_keycode_t
  3725. Fpointer_mode Tuint8_t
  3726. Fkeyboard_mode Tuint8_t
  3727. Fpad0 [3]Tuint8_t
  3728. }
  3729. type Txcb_ungrab_key_request_t = struct {
  3730. Fmajor_opcode Tuint8_t
  3731. Fkey Txcb_keycode_t
  3732. Flength Tuint16_t
  3733. Fgrab_window Txcb_window_t
  3734. Fmodifiers Tuint16_t
  3735. Fpad0 [2]Tuint8_t
  3736. }
  3737. type Txcb_allow_t = int32
  3738. type _xcb_allow_t = int32
  3739. const _XCB_ALLOW_ASYNC_POINTER = 0
  3740. const _XCB_ALLOW_SYNC_POINTER = 1
  3741. const _XCB_ALLOW_REPLAY_POINTER = 2
  3742. const _XCB_ALLOW_ASYNC_KEYBOARD = 3
  3743. const _XCB_ALLOW_SYNC_KEYBOARD = 4
  3744. const _XCB_ALLOW_REPLAY_KEYBOARD = 5
  3745. const _XCB_ALLOW_ASYNC_BOTH = 6
  3746. const _XCB_ALLOW_SYNC_BOTH = 7
  3747. type Txcb_allow_events_request_t = struct {
  3748. Fmajor_opcode Tuint8_t
  3749. Fmode Tuint8_t
  3750. Flength Tuint16_t
  3751. Ftime Txcb_timestamp_t
  3752. }
  3753. type Txcb_grab_server_request_t = struct {
  3754. Fmajor_opcode Tuint8_t
  3755. Fpad0 Tuint8_t
  3756. Flength Tuint16_t
  3757. }
  3758. type Txcb_ungrab_server_request_t = struct {
  3759. Fmajor_opcode Tuint8_t
  3760. Fpad0 Tuint8_t
  3761. Flength Tuint16_t
  3762. }
  3763. type Txcb_query_pointer_cookie_t = struct {
  3764. Fsequence uint32
  3765. }
  3766. type Txcb_query_pointer_request_t = struct {
  3767. Fmajor_opcode Tuint8_t
  3768. Fpad0 Tuint8_t
  3769. Flength Tuint16_t
  3770. Fwindow Txcb_window_t
  3771. }
  3772. type Txcb_query_pointer_reply_t = struct {
  3773. Fresponse_type Tuint8_t
  3774. Fsame_screen Tuint8_t
  3775. Fsequence Tuint16_t
  3776. Flength Tuint32_t
  3777. Froot Txcb_window_t
  3778. Fchild Txcb_window_t
  3779. Froot_x Tint16_t
  3780. Froot_y Tint16_t
  3781. Fwin_x Tint16_t
  3782. Fwin_y Tint16_t
  3783. Fmask Tuint16_t
  3784. Fpad0 [2]Tuint8_t
  3785. }
  3786. type Txcb_timecoord_t = struct {
  3787. Ftime Txcb_timestamp_t
  3788. Fx Tint16_t
  3789. Fy Tint16_t
  3790. }
  3791. type Txcb_timecoord_iterator_t = struct {
  3792. Fdata uintptr
  3793. Frem int32
  3794. Findex int32
  3795. }
  3796. type Txcb_get_motion_events_cookie_t = struct {
  3797. Fsequence uint32
  3798. }
  3799. type Txcb_get_motion_events_request_t = struct {
  3800. Fmajor_opcode Tuint8_t
  3801. Fpad0 Tuint8_t
  3802. Flength Tuint16_t
  3803. Fwindow Txcb_window_t
  3804. Fstart Txcb_timestamp_t
  3805. Fstop Txcb_timestamp_t
  3806. }
  3807. type Txcb_get_motion_events_reply_t = struct {
  3808. Fresponse_type Tuint8_t
  3809. Fpad0 Tuint8_t
  3810. Fsequence Tuint16_t
  3811. Flength Tuint32_t
  3812. Fevents_len Tuint32_t
  3813. Fpad1 [20]Tuint8_t
  3814. }
  3815. type Txcb_translate_coordinates_cookie_t = struct {
  3816. Fsequence uint32
  3817. }
  3818. type Txcb_translate_coordinates_request_t = struct {
  3819. Fmajor_opcode Tuint8_t
  3820. Fpad0 Tuint8_t
  3821. Flength Tuint16_t
  3822. Fsrc_window Txcb_window_t
  3823. Fdst_window Txcb_window_t
  3824. Fsrc_x Tint16_t
  3825. Fsrc_y Tint16_t
  3826. }
  3827. type Txcb_translate_coordinates_reply_t = struct {
  3828. Fresponse_type Tuint8_t
  3829. Fsame_screen Tuint8_t
  3830. Fsequence Tuint16_t
  3831. Flength Tuint32_t
  3832. Fchild Txcb_window_t
  3833. Fdst_x Tint16_t
  3834. Fdst_y Tint16_t
  3835. }
  3836. type Txcb_warp_pointer_request_t = struct {
  3837. Fmajor_opcode Tuint8_t
  3838. Fpad0 Tuint8_t
  3839. Flength Tuint16_t
  3840. Fsrc_window Txcb_window_t
  3841. Fdst_window Txcb_window_t
  3842. Fsrc_x Tint16_t
  3843. Fsrc_y Tint16_t
  3844. Fsrc_width Tuint16_t
  3845. Fsrc_height Tuint16_t
  3846. Fdst_x Tint16_t
  3847. Fdst_y Tint16_t
  3848. }
  3849. type Txcb_input_focus_t = int32
  3850. type _xcb_input_focus_t = int32
  3851. const _XCB_INPUT_FOCUS_NONE = 0
  3852. const _XCB_INPUT_FOCUS_POINTER_ROOT = 1
  3853. const _XCB_INPUT_FOCUS_PARENT = 2
  3854. const _XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
  3855. type Txcb_set_input_focus_request_t = struct {
  3856. Fmajor_opcode Tuint8_t
  3857. Frevert_to Tuint8_t
  3858. Flength Tuint16_t
  3859. Ffocus Txcb_window_t
  3860. Ftime Txcb_timestamp_t
  3861. }
  3862. type Txcb_get_input_focus_cookie_t = struct {
  3863. Fsequence uint32
  3864. }
  3865. type Txcb_get_input_focus_request_t = struct {
  3866. Fmajor_opcode Tuint8_t
  3867. Fpad0 Tuint8_t
  3868. Flength Tuint16_t
  3869. }
  3870. type Txcb_get_input_focus_reply_t = struct {
  3871. Fresponse_type Tuint8_t
  3872. Frevert_to Tuint8_t
  3873. Fsequence Tuint16_t
  3874. Flength Tuint32_t
  3875. Ffocus Txcb_window_t
  3876. }
  3877. type Txcb_query_keymap_cookie_t = struct {
  3878. Fsequence uint32
  3879. }
  3880. type Txcb_query_keymap_request_t = struct {
  3881. Fmajor_opcode Tuint8_t
  3882. Fpad0 Tuint8_t
  3883. Flength Tuint16_t
  3884. }
  3885. type Txcb_query_keymap_reply_t = struct {
  3886. Fresponse_type Tuint8_t
  3887. Fpad0 Tuint8_t
  3888. Fsequence Tuint16_t
  3889. Flength Tuint32_t
  3890. Fkeys [32]Tuint8_t
  3891. }
  3892. type Txcb_open_font_request_t = struct {
  3893. Fmajor_opcode Tuint8_t
  3894. Fpad0 Tuint8_t
  3895. Flength Tuint16_t
  3896. Ffid Txcb_font_t
  3897. Fname_len Tuint16_t
  3898. Fpad1 [2]Tuint8_t
  3899. }
  3900. type Txcb_close_font_request_t = struct {
  3901. Fmajor_opcode Tuint8_t
  3902. Fpad0 Tuint8_t
  3903. Flength Tuint16_t
  3904. Ffont Txcb_font_t
  3905. }
  3906. type Txcb_font_draw_t = int32
  3907. type _xcb_font_draw_t = int32
  3908. const _XCB_FONT_DRAW_LEFT_TO_RIGHT = 0
  3909. const _XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
  3910. type Txcb_fontprop_t = struct {
  3911. Fname Txcb_atom_t
  3912. Fvalue Tuint32_t
  3913. }
  3914. type Txcb_fontprop_iterator_t = struct {
  3915. Fdata uintptr
  3916. Frem int32
  3917. Findex int32
  3918. }
  3919. type Txcb_charinfo_t = struct {
  3920. Fleft_side_bearing Tint16_t
  3921. Fright_side_bearing Tint16_t
  3922. Fcharacter_width Tint16_t
  3923. Fascent Tint16_t
  3924. Fdescent Tint16_t
  3925. Fattributes Tuint16_t
  3926. }
  3927. type Txcb_charinfo_iterator_t = struct {
  3928. Fdata uintptr
  3929. Frem int32
  3930. Findex int32
  3931. }
  3932. type Txcb_query_font_cookie_t = struct {
  3933. Fsequence uint32
  3934. }
  3935. type Txcb_query_font_request_t = struct {
  3936. Fmajor_opcode Tuint8_t
  3937. Fpad0 Tuint8_t
  3938. Flength Tuint16_t
  3939. Ffont Txcb_fontable_t
  3940. }
  3941. type Txcb_query_font_reply_t = struct {
  3942. Fresponse_type Tuint8_t
  3943. Fpad0 Tuint8_t
  3944. Fsequence Tuint16_t
  3945. Flength Tuint32_t
  3946. Fmin_bounds Txcb_charinfo_t
  3947. Fpad1 [4]Tuint8_t
  3948. Fmax_bounds Txcb_charinfo_t
  3949. Fpad2 [4]Tuint8_t
  3950. Fmin_char_or_byte2 Tuint16_t
  3951. Fmax_char_or_byte2 Tuint16_t
  3952. Fdefault_char Tuint16_t
  3953. Fproperties_len Tuint16_t
  3954. Fdraw_direction Tuint8_t
  3955. Fmin_byte1 Tuint8_t
  3956. Fmax_byte1 Tuint8_t
  3957. Fall_chars_exist Tuint8_t
  3958. Ffont_ascent Tint16_t
  3959. Ffont_descent Tint16_t
  3960. Fchar_infos_len Tuint32_t
  3961. }
  3962. type Txcb_query_text_extents_cookie_t = struct {
  3963. Fsequence uint32
  3964. }
  3965. type Txcb_query_text_extents_request_t = struct {
  3966. Fmajor_opcode Tuint8_t
  3967. Fodd_length Tuint8_t
  3968. Flength Tuint16_t
  3969. Ffont Txcb_fontable_t
  3970. }
  3971. type Txcb_query_text_extents_reply_t = struct {
  3972. Fresponse_type Tuint8_t
  3973. Fdraw_direction Tuint8_t
  3974. Fsequence Tuint16_t
  3975. Flength Tuint32_t
  3976. Ffont_ascent Tint16_t
  3977. Ffont_descent Tint16_t
  3978. Foverall_ascent Tint16_t
  3979. Foverall_descent Tint16_t
  3980. Foverall_width Tint32_t
  3981. Foverall_left Tint32_t
  3982. Foverall_right Tint32_t
  3983. }
  3984. type Txcb_str_t = struct {
  3985. Fname_len Tuint8_t
  3986. }
  3987. type Txcb_str_iterator_t = struct {
  3988. Fdata uintptr
  3989. Frem int32
  3990. Findex int32
  3991. }
  3992. type Txcb_list_fonts_cookie_t = struct {
  3993. Fsequence uint32
  3994. }
  3995. type Txcb_list_fonts_request_t = struct {
  3996. Fmajor_opcode Tuint8_t
  3997. Fpad0 Tuint8_t
  3998. Flength Tuint16_t
  3999. Fmax_names Tuint16_t
  4000. Fpattern_len Tuint16_t
  4001. }
  4002. type Txcb_list_fonts_reply_t = struct {
  4003. Fresponse_type Tuint8_t
  4004. Fpad0 Tuint8_t
  4005. Fsequence Tuint16_t
  4006. Flength Tuint32_t
  4007. Fnames_len Tuint16_t
  4008. Fpad1 [22]Tuint8_t
  4009. }
  4010. type Txcb_list_fonts_with_info_cookie_t = struct {
  4011. Fsequence uint32
  4012. }
  4013. type Txcb_list_fonts_with_info_request_t = struct {
  4014. Fmajor_opcode Tuint8_t
  4015. Fpad0 Tuint8_t
  4016. Flength Tuint16_t
  4017. Fmax_names Tuint16_t
  4018. Fpattern_len Tuint16_t
  4019. }
  4020. type Txcb_list_fonts_with_info_reply_t = struct {
  4021. Fresponse_type Tuint8_t
  4022. Fname_len Tuint8_t
  4023. Fsequence Tuint16_t
  4024. Flength Tuint32_t
  4025. Fmin_bounds Txcb_charinfo_t
  4026. Fpad0 [4]Tuint8_t
  4027. Fmax_bounds Txcb_charinfo_t
  4028. Fpad1 [4]Tuint8_t
  4029. Fmin_char_or_byte2 Tuint16_t
  4030. Fmax_char_or_byte2 Tuint16_t
  4031. Fdefault_char Tuint16_t
  4032. Fproperties_len Tuint16_t
  4033. Fdraw_direction Tuint8_t
  4034. Fmin_byte1 Tuint8_t
  4035. Fmax_byte1 Tuint8_t
  4036. Fall_chars_exist Tuint8_t
  4037. Ffont_ascent Tint16_t
  4038. Ffont_descent Tint16_t
  4039. Freplies_hint Tuint32_t
  4040. }
  4041. type Txcb_set_font_path_request_t = struct {
  4042. Fmajor_opcode Tuint8_t
  4043. Fpad0 Tuint8_t
  4044. Flength Tuint16_t
  4045. Ffont_qty Tuint16_t
  4046. Fpad1 [2]Tuint8_t
  4047. }
  4048. type Txcb_get_font_path_cookie_t = struct {
  4049. Fsequence uint32
  4050. }
  4051. type Txcb_get_font_path_request_t = struct {
  4052. Fmajor_opcode Tuint8_t
  4053. Fpad0 Tuint8_t
  4054. Flength Tuint16_t
  4055. }
  4056. type Txcb_get_font_path_reply_t = struct {
  4057. Fresponse_type Tuint8_t
  4058. Fpad0 Tuint8_t
  4059. Fsequence Tuint16_t
  4060. Flength Tuint32_t
  4061. Fpath_len Tuint16_t
  4062. Fpad1 [22]Tuint8_t
  4063. }
  4064. type Txcb_create_pixmap_request_t = struct {
  4065. Fmajor_opcode Tuint8_t
  4066. Fdepth Tuint8_t
  4067. Flength Tuint16_t
  4068. Fpid Txcb_pixmap_t
  4069. Fdrawable Txcb_drawable_t
  4070. Fwidth Tuint16_t
  4071. Fheight Tuint16_t
  4072. }
  4073. type Txcb_free_pixmap_request_t = struct {
  4074. Fmajor_opcode Tuint8_t
  4075. Fpad0 Tuint8_t
  4076. Flength Tuint16_t
  4077. Fpixmap Txcb_pixmap_t
  4078. }
  4079. type Txcb_gc_t = int32
  4080. type _xcb_gc_t = int32
  4081. const _XCB_GC_FUNCTION = 1
  4082. const _XCB_GC_PLANE_MASK = 2
  4083. const _XCB_GC_FOREGROUND = 4
  4084. const _XCB_GC_BACKGROUND = 8
  4085. const _XCB_GC_LINE_WIDTH = 16
  4086. const _XCB_GC_LINE_STYLE = 32
  4087. const _XCB_GC_CAP_STYLE = 64
  4088. const _XCB_GC_JOIN_STYLE = 128
  4089. const _XCB_GC_FILL_STYLE = 256
  4090. const _XCB_GC_FILL_RULE = 512
  4091. const _XCB_GC_TILE = 1024
  4092. const _XCB_GC_STIPPLE = 2048
  4093. const _XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096
  4094. const _XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192
  4095. const _XCB_GC_FONT = 16384
  4096. const _XCB_GC_SUBWINDOW_MODE = 32768
  4097. const _XCB_GC_GRAPHICS_EXPOSURES = 65536
  4098. const _XCB_GC_CLIP_ORIGIN_X = 131072
  4099. const _XCB_GC_CLIP_ORIGIN_Y = 262144
  4100. const _XCB_GC_CLIP_MASK = 524288
  4101. const _XCB_GC_DASH_OFFSET = 1048576
  4102. const _XCB_GC_DASH_LIST = 2097152
  4103. const _XCB_GC_ARC_MODE = 4194304
  4104. type Txcb_gx_t = int32
  4105. type _xcb_gx_t = int32
  4106. const _XCB_GX_CLEAR = 0
  4107. const _XCB_GX_AND = 1
  4108. const _XCB_GX_AND_REVERSE = 2
  4109. const _XCB_GX_COPY = 3
  4110. const _XCB_GX_AND_INVERTED = 4
  4111. const _XCB_GX_NOOP = 5
  4112. const _XCB_GX_XOR = 6
  4113. const _XCB_GX_OR = 7
  4114. const _XCB_GX_NOR = 8
  4115. const _XCB_GX_EQUIV = 9
  4116. const _XCB_GX_INVERT = 10
  4117. const _XCB_GX_OR_REVERSE = 11
  4118. const _XCB_GX_COPY_INVERTED = 12
  4119. const _XCB_GX_OR_INVERTED = 13
  4120. const _XCB_GX_NAND = 14
  4121. const _XCB_GX_SET = 15
  4122. type Txcb_line_style_t = int32
  4123. type _xcb_line_style_t = int32
  4124. const _XCB_LINE_STYLE_SOLID = 0
  4125. const _XCB_LINE_STYLE_ON_OFF_DASH = 1
  4126. const _XCB_LINE_STYLE_DOUBLE_DASH = 2
  4127. type Txcb_cap_style_t = int32
  4128. type _xcb_cap_style_t = int32
  4129. const _XCB_CAP_STYLE_NOT_LAST = 0
  4130. const _XCB_CAP_STYLE_BUTT = 1
  4131. const _XCB_CAP_STYLE_ROUND = 2
  4132. const _XCB_CAP_STYLE_PROJECTING = 3
  4133. type Txcb_join_style_t = int32
  4134. type _xcb_join_style_t = int32
  4135. const _XCB_JOIN_STYLE_MITER = 0
  4136. const _XCB_JOIN_STYLE_ROUND = 1
  4137. const _XCB_JOIN_STYLE_BEVEL = 2
  4138. type Txcb_fill_style_t = int32
  4139. type _xcb_fill_style_t = int32
  4140. const _XCB_FILL_STYLE_SOLID = 0
  4141. const _XCB_FILL_STYLE_TILED = 1
  4142. const _XCB_FILL_STYLE_STIPPLED = 2
  4143. const _XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
  4144. type Txcb_fill_rule_t = int32
  4145. type _xcb_fill_rule_t = int32
  4146. const _XCB_FILL_RULE_EVEN_ODD = 0
  4147. const _XCB_FILL_RULE_WINDING = 1
  4148. type Txcb_subwindow_mode_t = int32
  4149. type _xcb_subwindow_mode_t = int32
  4150. const _XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0
  4151. const _XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
  4152. type Txcb_arc_mode_t = int32
  4153. type _xcb_arc_mode_t = int32
  4154. const _XCB_ARC_MODE_CHORD = 0
  4155. const _XCB_ARC_MODE_PIE_SLICE = 1
  4156. type Txcb_create_gc_value_list_t = struct {
  4157. Ffunction Tuint32_t
  4158. Fplane_mask Tuint32_t
  4159. Fforeground Tuint32_t
  4160. Fbackground Tuint32_t
  4161. Fline_width Tuint32_t
  4162. Fline_style Tuint32_t
  4163. Fcap_style Tuint32_t
  4164. Fjoin_style Tuint32_t
  4165. Ffill_style Tuint32_t
  4166. Ffill_rule Tuint32_t
  4167. Ftile Txcb_pixmap_t
  4168. Fstipple Txcb_pixmap_t
  4169. Ftile_stipple_x_origin Tint32_t
  4170. Ftile_stipple_y_origin Tint32_t
  4171. Ffont Txcb_font_t
  4172. Fsubwindow_mode Tuint32_t
  4173. Fgraphics_exposures Txcb_bool32_t
  4174. Fclip_x_origin Tint32_t
  4175. Fclip_y_origin Tint32_t
  4176. Fclip_mask Txcb_pixmap_t
  4177. Fdash_offset Tuint32_t
  4178. Fdashes Tuint32_t
  4179. Farc_mode Tuint32_t
  4180. }
  4181. type Txcb_create_gc_request_t = struct {
  4182. Fmajor_opcode Tuint8_t
  4183. Fpad0 Tuint8_t
  4184. Flength Tuint16_t
  4185. Fcid Txcb_gcontext_t
  4186. Fdrawable Txcb_drawable_t
  4187. Fvalue_mask Tuint32_t
  4188. }
  4189. type Txcb_change_gc_value_list_t = struct {
  4190. Ffunction Tuint32_t
  4191. Fplane_mask Tuint32_t
  4192. Fforeground Tuint32_t
  4193. Fbackground Tuint32_t
  4194. Fline_width Tuint32_t
  4195. Fline_style Tuint32_t
  4196. Fcap_style Tuint32_t
  4197. Fjoin_style Tuint32_t
  4198. Ffill_style Tuint32_t
  4199. Ffill_rule Tuint32_t
  4200. Ftile Txcb_pixmap_t
  4201. Fstipple Txcb_pixmap_t
  4202. Ftile_stipple_x_origin Tint32_t
  4203. Ftile_stipple_y_origin Tint32_t
  4204. Ffont Txcb_font_t
  4205. Fsubwindow_mode Tuint32_t
  4206. Fgraphics_exposures Txcb_bool32_t
  4207. Fclip_x_origin Tint32_t
  4208. Fclip_y_origin Tint32_t
  4209. Fclip_mask Txcb_pixmap_t
  4210. Fdash_offset Tuint32_t
  4211. Fdashes Tuint32_t
  4212. Farc_mode Tuint32_t
  4213. }
  4214. type Txcb_change_gc_request_t = struct {
  4215. Fmajor_opcode Tuint8_t
  4216. Fpad0 Tuint8_t
  4217. Flength Tuint16_t
  4218. Fgc Txcb_gcontext_t
  4219. Fvalue_mask Tuint32_t
  4220. }
  4221. type Txcb_copy_gc_request_t = struct {
  4222. Fmajor_opcode Tuint8_t
  4223. Fpad0 Tuint8_t
  4224. Flength Tuint16_t
  4225. Fsrc_gc Txcb_gcontext_t
  4226. Fdst_gc Txcb_gcontext_t
  4227. Fvalue_mask Tuint32_t
  4228. }
  4229. type Txcb_set_dashes_request_t = struct {
  4230. Fmajor_opcode Tuint8_t
  4231. Fpad0 Tuint8_t
  4232. Flength Tuint16_t
  4233. Fgc Txcb_gcontext_t
  4234. Fdash_offset Tuint16_t
  4235. Fdashes_len Tuint16_t
  4236. }
  4237. type Txcb_clip_ordering_t = int32
  4238. type _xcb_clip_ordering_t = int32
  4239. const _XCB_CLIP_ORDERING_UNSORTED = 0
  4240. const _XCB_CLIP_ORDERING_Y_SORTED = 1
  4241. const _XCB_CLIP_ORDERING_YX_SORTED = 2
  4242. const _XCB_CLIP_ORDERING_YX_BANDED = 3
  4243. type Txcb_set_clip_rectangles_request_t = struct {
  4244. Fmajor_opcode Tuint8_t
  4245. Fordering Tuint8_t
  4246. Flength Tuint16_t
  4247. Fgc Txcb_gcontext_t
  4248. Fclip_x_origin Tint16_t
  4249. Fclip_y_origin Tint16_t
  4250. }
  4251. type Txcb_free_gc_request_t = struct {
  4252. Fmajor_opcode Tuint8_t
  4253. Fpad0 Tuint8_t
  4254. Flength Tuint16_t
  4255. Fgc Txcb_gcontext_t
  4256. }
  4257. type Txcb_clear_area_request_t = struct {
  4258. Fmajor_opcode Tuint8_t
  4259. Fexposures Tuint8_t
  4260. Flength Tuint16_t
  4261. Fwindow Txcb_window_t
  4262. Fx Tint16_t
  4263. Fy Tint16_t
  4264. Fwidth Tuint16_t
  4265. Fheight Tuint16_t
  4266. }
  4267. type Txcb_copy_area_request_t = struct {
  4268. Fmajor_opcode Tuint8_t
  4269. Fpad0 Tuint8_t
  4270. Flength Tuint16_t
  4271. Fsrc_drawable Txcb_drawable_t
  4272. Fdst_drawable Txcb_drawable_t
  4273. Fgc Txcb_gcontext_t
  4274. Fsrc_x Tint16_t
  4275. Fsrc_y Tint16_t
  4276. Fdst_x Tint16_t
  4277. Fdst_y Tint16_t
  4278. Fwidth Tuint16_t
  4279. Fheight Tuint16_t
  4280. }
  4281. type Txcb_copy_plane_request_t = struct {
  4282. Fmajor_opcode Tuint8_t
  4283. Fpad0 Tuint8_t
  4284. Flength Tuint16_t
  4285. Fsrc_drawable Txcb_drawable_t
  4286. Fdst_drawable Txcb_drawable_t
  4287. Fgc Txcb_gcontext_t
  4288. Fsrc_x Tint16_t
  4289. Fsrc_y Tint16_t
  4290. Fdst_x Tint16_t
  4291. Fdst_y Tint16_t
  4292. Fwidth Tuint16_t
  4293. Fheight Tuint16_t
  4294. Fbit_plane Tuint32_t
  4295. }
  4296. type Txcb_coord_mode_t = int32
  4297. type _xcb_coord_mode_t = int32
  4298. const _XCB_COORD_MODE_ORIGIN = 0
  4299. const _XCB_COORD_MODE_PREVIOUS = 1
  4300. type Txcb_poly_point_request_t = struct {
  4301. Fmajor_opcode Tuint8_t
  4302. Fcoordinate_mode Tuint8_t
  4303. Flength Tuint16_t
  4304. Fdrawable Txcb_drawable_t
  4305. Fgc Txcb_gcontext_t
  4306. }
  4307. type Txcb_poly_line_request_t = struct {
  4308. Fmajor_opcode Tuint8_t
  4309. Fcoordinate_mode Tuint8_t
  4310. Flength Tuint16_t
  4311. Fdrawable Txcb_drawable_t
  4312. Fgc Txcb_gcontext_t
  4313. }
  4314. type Txcb_segment_t = struct {
  4315. Fx1 Tint16_t
  4316. Fy1 Tint16_t
  4317. Fx2 Tint16_t
  4318. Fy2 Tint16_t
  4319. }
  4320. type Txcb_segment_iterator_t = struct {
  4321. Fdata uintptr
  4322. Frem int32
  4323. Findex int32
  4324. }
  4325. type Txcb_poly_segment_request_t = struct {
  4326. Fmajor_opcode Tuint8_t
  4327. Fpad0 Tuint8_t
  4328. Flength Tuint16_t
  4329. Fdrawable Txcb_drawable_t
  4330. Fgc Txcb_gcontext_t
  4331. }
  4332. type Txcb_poly_rectangle_request_t = struct {
  4333. Fmajor_opcode Tuint8_t
  4334. Fpad0 Tuint8_t
  4335. Flength Tuint16_t
  4336. Fdrawable Txcb_drawable_t
  4337. Fgc Txcb_gcontext_t
  4338. }
  4339. type Txcb_poly_arc_request_t = struct {
  4340. Fmajor_opcode Tuint8_t
  4341. Fpad0 Tuint8_t
  4342. Flength Tuint16_t
  4343. Fdrawable Txcb_drawable_t
  4344. Fgc Txcb_gcontext_t
  4345. }
  4346. type Txcb_poly_shape_t = int32
  4347. type _xcb_poly_shape_t = int32
  4348. const _XCB_POLY_SHAPE_COMPLEX = 0
  4349. const _XCB_POLY_SHAPE_NONCONVEX = 1
  4350. const _XCB_POLY_SHAPE_CONVEX = 2
  4351. type Txcb_fill_poly_request_t = struct {
  4352. Fmajor_opcode Tuint8_t
  4353. Fpad0 Tuint8_t
  4354. Flength Tuint16_t
  4355. Fdrawable Txcb_drawable_t
  4356. Fgc Txcb_gcontext_t
  4357. Fshape Tuint8_t
  4358. Fcoordinate_mode Tuint8_t
  4359. Fpad1 [2]Tuint8_t
  4360. }
  4361. type Txcb_poly_fill_rectangle_request_t = struct {
  4362. Fmajor_opcode Tuint8_t
  4363. Fpad0 Tuint8_t
  4364. Flength Tuint16_t
  4365. Fdrawable Txcb_drawable_t
  4366. Fgc Txcb_gcontext_t
  4367. }
  4368. type Txcb_poly_fill_arc_request_t = struct {
  4369. Fmajor_opcode Tuint8_t
  4370. Fpad0 Tuint8_t
  4371. Flength Tuint16_t
  4372. Fdrawable Txcb_drawable_t
  4373. Fgc Txcb_gcontext_t
  4374. }
  4375. type Txcb_image_format_t = int32
  4376. type _xcb_image_format_t = int32
  4377. const _XCB_IMAGE_FORMAT_XY_BITMAP = 0
  4378. const _XCB_IMAGE_FORMAT_XY_PIXMAP = 1
  4379. const _XCB_IMAGE_FORMAT_Z_PIXMAP = 2
  4380. type Txcb_put_image_request_t = struct {
  4381. Fmajor_opcode Tuint8_t
  4382. Fformat Tuint8_t
  4383. Flength Tuint16_t
  4384. Fdrawable Txcb_drawable_t
  4385. Fgc Txcb_gcontext_t
  4386. Fwidth Tuint16_t
  4387. Fheight Tuint16_t
  4388. Fdst_x Tint16_t
  4389. Fdst_y Tint16_t
  4390. Fleft_pad Tuint8_t
  4391. Fdepth Tuint8_t
  4392. Fpad0 [2]Tuint8_t
  4393. }
  4394. type Txcb_get_image_cookie_t = struct {
  4395. Fsequence uint32
  4396. }
  4397. type Txcb_get_image_request_t = struct {
  4398. Fmajor_opcode Tuint8_t
  4399. Fformat Tuint8_t
  4400. Flength Tuint16_t
  4401. Fdrawable Txcb_drawable_t
  4402. Fx Tint16_t
  4403. Fy Tint16_t
  4404. Fwidth Tuint16_t
  4405. Fheight Tuint16_t
  4406. Fplane_mask Tuint32_t
  4407. }
  4408. type Txcb_get_image_reply_t = struct {
  4409. Fresponse_type Tuint8_t
  4410. Fdepth Tuint8_t
  4411. Fsequence Tuint16_t
  4412. Flength Tuint32_t
  4413. Fvisual Txcb_visualid_t
  4414. Fpad0 [20]Tuint8_t
  4415. }
  4416. type Txcb_poly_text_8_request_t = struct {
  4417. Fmajor_opcode Tuint8_t
  4418. Fpad0 Tuint8_t
  4419. Flength Tuint16_t
  4420. Fdrawable Txcb_drawable_t
  4421. Fgc Txcb_gcontext_t
  4422. Fx Tint16_t
  4423. Fy Tint16_t
  4424. }
  4425. type Txcb_poly_text_16_request_t = struct {
  4426. Fmajor_opcode Tuint8_t
  4427. Fpad0 Tuint8_t
  4428. Flength Tuint16_t
  4429. Fdrawable Txcb_drawable_t
  4430. Fgc Txcb_gcontext_t
  4431. Fx Tint16_t
  4432. Fy Tint16_t
  4433. }
  4434. type Txcb_image_text_8_request_t = struct {
  4435. Fmajor_opcode Tuint8_t
  4436. Fstring_len Tuint8_t
  4437. Flength Tuint16_t
  4438. Fdrawable Txcb_drawable_t
  4439. Fgc Txcb_gcontext_t
  4440. Fx Tint16_t
  4441. Fy Tint16_t
  4442. }
  4443. type Txcb_image_text_16_request_t = struct {
  4444. Fmajor_opcode Tuint8_t
  4445. Fstring_len Tuint8_t
  4446. Flength Tuint16_t
  4447. Fdrawable Txcb_drawable_t
  4448. Fgc Txcb_gcontext_t
  4449. Fx Tint16_t
  4450. Fy Tint16_t
  4451. }
  4452. type Txcb_colormap_alloc_t = int32
  4453. type _xcb_colormap_alloc_t = int32
  4454. const _XCB_COLORMAP_ALLOC_NONE = 0
  4455. const _XCB_COLORMAP_ALLOC_ALL = 1
  4456. type Txcb_create_colormap_request_t = struct {
  4457. Fmajor_opcode Tuint8_t
  4458. Falloc Tuint8_t
  4459. Flength Tuint16_t
  4460. Fmid Txcb_colormap_t
  4461. Fwindow Txcb_window_t
  4462. Fvisual Txcb_visualid_t
  4463. }
  4464. type Txcb_free_colormap_request_t = struct {
  4465. Fmajor_opcode Tuint8_t
  4466. Fpad0 Tuint8_t
  4467. Flength Tuint16_t
  4468. Fcmap Txcb_colormap_t
  4469. }
  4470. type Txcb_copy_colormap_and_free_request_t = struct {
  4471. Fmajor_opcode Tuint8_t
  4472. Fpad0 Tuint8_t
  4473. Flength Tuint16_t
  4474. Fmid Txcb_colormap_t
  4475. Fsrc_cmap Txcb_colormap_t
  4476. }
  4477. type Txcb_install_colormap_request_t = struct {
  4478. Fmajor_opcode Tuint8_t
  4479. Fpad0 Tuint8_t
  4480. Flength Tuint16_t
  4481. Fcmap Txcb_colormap_t
  4482. }
  4483. type Txcb_uninstall_colormap_request_t = struct {
  4484. Fmajor_opcode Tuint8_t
  4485. Fpad0 Tuint8_t
  4486. Flength Tuint16_t
  4487. Fcmap Txcb_colormap_t
  4488. }
  4489. type Txcb_list_installed_colormaps_cookie_t = struct {
  4490. Fsequence uint32
  4491. }
  4492. type Txcb_list_installed_colormaps_request_t = struct {
  4493. Fmajor_opcode Tuint8_t
  4494. Fpad0 Tuint8_t
  4495. Flength Tuint16_t
  4496. Fwindow Txcb_window_t
  4497. }
  4498. type Txcb_list_installed_colormaps_reply_t = struct {
  4499. Fresponse_type Tuint8_t
  4500. Fpad0 Tuint8_t
  4501. Fsequence Tuint16_t
  4502. Flength Tuint32_t
  4503. Fcmaps_len Tuint16_t
  4504. Fpad1 [22]Tuint8_t
  4505. }
  4506. type Txcb_alloc_color_cookie_t = struct {
  4507. Fsequence uint32
  4508. }
  4509. type Txcb_alloc_color_request_t = struct {
  4510. Fmajor_opcode Tuint8_t
  4511. Fpad0 Tuint8_t
  4512. Flength Tuint16_t
  4513. Fcmap Txcb_colormap_t
  4514. Fred Tuint16_t
  4515. Fgreen Tuint16_t
  4516. Fblue Tuint16_t
  4517. Fpad1 [2]Tuint8_t
  4518. }
  4519. type Txcb_alloc_color_reply_t = struct {
  4520. Fresponse_type Tuint8_t
  4521. Fpad0 Tuint8_t
  4522. Fsequence Tuint16_t
  4523. Flength Tuint32_t
  4524. Fred Tuint16_t
  4525. Fgreen Tuint16_t
  4526. Fblue Tuint16_t
  4527. Fpad1 [2]Tuint8_t
  4528. Fpixel Tuint32_t
  4529. }
  4530. type Txcb_alloc_named_color_cookie_t = struct {
  4531. Fsequence uint32
  4532. }
  4533. type Txcb_alloc_named_color_request_t = struct {
  4534. Fmajor_opcode Tuint8_t
  4535. Fpad0 Tuint8_t
  4536. Flength Tuint16_t
  4537. Fcmap Txcb_colormap_t
  4538. Fname_len Tuint16_t
  4539. Fpad1 [2]Tuint8_t
  4540. }
  4541. type Txcb_alloc_named_color_reply_t = struct {
  4542. Fresponse_type Tuint8_t
  4543. Fpad0 Tuint8_t
  4544. Fsequence Tuint16_t
  4545. Flength Tuint32_t
  4546. Fpixel Tuint32_t
  4547. Fexact_red Tuint16_t
  4548. Fexact_green Tuint16_t
  4549. Fexact_blue Tuint16_t
  4550. Fvisual_red Tuint16_t
  4551. Fvisual_green Tuint16_t
  4552. Fvisual_blue Tuint16_t
  4553. }
  4554. type Txcb_alloc_color_cells_cookie_t = struct {
  4555. Fsequence uint32
  4556. }
  4557. type Txcb_alloc_color_cells_request_t = struct {
  4558. Fmajor_opcode Tuint8_t
  4559. Fcontiguous Tuint8_t
  4560. Flength Tuint16_t
  4561. Fcmap Txcb_colormap_t
  4562. Fcolors Tuint16_t
  4563. Fplanes Tuint16_t
  4564. }
  4565. type Txcb_alloc_color_cells_reply_t = struct {
  4566. Fresponse_type Tuint8_t
  4567. Fpad0 Tuint8_t
  4568. Fsequence Tuint16_t
  4569. Flength Tuint32_t
  4570. Fpixels_len Tuint16_t
  4571. Fmasks_len Tuint16_t
  4572. Fpad1 [20]Tuint8_t
  4573. }
  4574. type Txcb_alloc_color_planes_cookie_t = struct {
  4575. Fsequence uint32
  4576. }
  4577. type Txcb_alloc_color_planes_request_t = struct {
  4578. Fmajor_opcode Tuint8_t
  4579. Fcontiguous Tuint8_t
  4580. Flength Tuint16_t
  4581. Fcmap Txcb_colormap_t
  4582. Fcolors Tuint16_t
  4583. Freds Tuint16_t
  4584. Fgreens Tuint16_t
  4585. Fblues Tuint16_t
  4586. }
  4587. type Txcb_alloc_color_planes_reply_t = struct {
  4588. Fresponse_type Tuint8_t
  4589. Fpad0 Tuint8_t
  4590. Fsequence Tuint16_t
  4591. Flength Tuint32_t
  4592. Fpixels_len Tuint16_t
  4593. Fpad1 [2]Tuint8_t
  4594. Fred_mask Tuint32_t
  4595. Fgreen_mask Tuint32_t
  4596. Fblue_mask Tuint32_t
  4597. Fpad2 [8]Tuint8_t
  4598. }
  4599. type Txcb_free_colors_request_t = struct {
  4600. Fmajor_opcode Tuint8_t
  4601. Fpad0 Tuint8_t
  4602. Flength Tuint16_t
  4603. Fcmap Txcb_colormap_t
  4604. Fplane_mask Tuint32_t
  4605. }
  4606. type Txcb_color_flag_t = int32
  4607. type _xcb_color_flag_t = int32
  4608. const _XCB_COLOR_FLAG_RED = 1
  4609. const _XCB_COLOR_FLAG_GREEN = 2
  4610. const _XCB_COLOR_FLAG_BLUE = 4
  4611. type Txcb_coloritem_t = struct {
  4612. Fpixel Tuint32_t
  4613. Fred Tuint16_t
  4614. Fgreen Tuint16_t
  4615. Fblue Tuint16_t
  4616. Fflags Tuint8_t
  4617. Fpad0 Tuint8_t
  4618. }
  4619. type Txcb_coloritem_iterator_t = struct {
  4620. Fdata uintptr
  4621. Frem int32
  4622. Findex int32
  4623. }
  4624. type Txcb_store_colors_request_t = struct {
  4625. Fmajor_opcode Tuint8_t
  4626. Fpad0 Tuint8_t
  4627. Flength Tuint16_t
  4628. Fcmap Txcb_colormap_t
  4629. }
  4630. type Txcb_store_named_color_request_t = struct {
  4631. Fmajor_opcode Tuint8_t
  4632. Fflags Tuint8_t
  4633. Flength Tuint16_t
  4634. Fcmap Txcb_colormap_t
  4635. Fpixel Tuint32_t
  4636. Fname_len Tuint16_t
  4637. Fpad0 [2]Tuint8_t
  4638. }
  4639. type Txcb_rgb_t = struct {
  4640. Fred Tuint16_t
  4641. Fgreen Tuint16_t
  4642. Fblue Tuint16_t
  4643. Fpad0 [2]Tuint8_t
  4644. }
  4645. type Txcb_rgb_iterator_t = struct {
  4646. Fdata uintptr
  4647. Frem int32
  4648. Findex int32
  4649. }
  4650. type Txcb_query_colors_cookie_t = struct {
  4651. Fsequence uint32
  4652. }
  4653. type Txcb_query_colors_request_t = struct {
  4654. Fmajor_opcode Tuint8_t
  4655. Fpad0 Tuint8_t
  4656. Flength Tuint16_t
  4657. Fcmap Txcb_colormap_t
  4658. }
  4659. type Txcb_query_colors_reply_t = struct {
  4660. Fresponse_type Tuint8_t
  4661. Fpad0 Tuint8_t
  4662. Fsequence Tuint16_t
  4663. Flength Tuint32_t
  4664. Fcolors_len Tuint16_t
  4665. Fpad1 [22]Tuint8_t
  4666. }
  4667. type Txcb_lookup_color_cookie_t = struct {
  4668. Fsequence uint32
  4669. }
  4670. type Txcb_lookup_color_request_t = struct {
  4671. Fmajor_opcode Tuint8_t
  4672. Fpad0 Tuint8_t
  4673. Flength Tuint16_t
  4674. Fcmap Txcb_colormap_t
  4675. Fname_len Tuint16_t
  4676. Fpad1 [2]Tuint8_t
  4677. }
  4678. type Txcb_lookup_color_reply_t = struct {
  4679. Fresponse_type Tuint8_t
  4680. Fpad0 Tuint8_t
  4681. Fsequence Tuint16_t
  4682. Flength Tuint32_t
  4683. Fexact_red Tuint16_t
  4684. Fexact_green Tuint16_t
  4685. Fexact_blue Tuint16_t
  4686. Fvisual_red Tuint16_t
  4687. Fvisual_green Tuint16_t
  4688. Fvisual_blue Tuint16_t
  4689. }
  4690. type Txcb_pixmap_enum_t = int32
  4691. type _xcb_pixmap_enum_t = int32
  4692. const _XCB_PIXMAP_NONE = 0
  4693. type Txcb_create_cursor_request_t = struct {
  4694. Fmajor_opcode Tuint8_t
  4695. Fpad0 Tuint8_t
  4696. Flength Tuint16_t
  4697. Fcid Txcb_cursor_t
  4698. Fsource Txcb_pixmap_t
  4699. Fmask Txcb_pixmap_t
  4700. Ffore_red Tuint16_t
  4701. Ffore_green Tuint16_t
  4702. Ffore_blue Tuint16_t
  4703. Fback_red Tuint16_t
  4704. Fback_green Tuint16_t
  4705. Fback_blue Tuint16_t
  4706. Fx Tuint16_t
  4707. Fy Tuint16_t
  4708. }
  4709. type Txcb_font_enum_t = int32
  4710. type _xcb_font_enum_t = int32
  4711. const _XCB_FONT_NONE = 0
  4712. type Txcb_create_glyph_cursor_request_t = struct {
  4713. Fmajor_opcode Tuint8_t
  4714. Fpad0 Tuint8_t
  4715. Flength Tuint16_t
  4716. Fcid Txcb_cursor_t
  4717. Fsource_font Txcb_font_t
  4718. Fmask_font Txcb_font_t
  4719. Fsource_char Tuint16_t
  4720. Fmask_char Tuint16_t
  4721. Ffore_red Tuint16_t
  4722. Ffore_green Tuint16_t
  4723. Ffore_blue Tuint16_t
  4724. Fback_red Tuint16_t
  4725. Fback_green Tuint16_t
  4726. Fback_blue Tuint16_t
  4727. }
  4728. type Txcb_free_cursor_request_t = struct {
  4729. Fmajor_opcode Tuint8_t
  4730. Fpad0 Tuint8_t
  4731. Flength Tuint16_t
  4732. Fcursor Txcb_cursor_t
  4733. }
  4734. type Txcb_recolor_cursor_request_t = struct {
  4735. Fmajor_opcode Tuint8_t
  4736. Fpad0 Tuint8_t
  4737. Flength Tuint16_t
  4738. Fcursor Txcb_cursor_t
  4739. Ffore_red Tuint16_t
  4740. Ffore_green Tuint16_t
  4741. Ffore_blue Tuint16_t
  4742. Fback_red Tuint16_t
  4743. Fback_green Tuint16_t
  4744. Fback_blue Tuint16_t
  4745. }
  4746. type Txcb_query_shape_of_t = int32
  4747. type _xcb_query_shape_of_t = int32
  4748. const _XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0
  4749. const _XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1
  4750. const _XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
  4751. type Txcb_query_best_size_cookie_t = struct {
  4752. Fsequence uint32
  4753. }
  4754. type Txcb_query_best_size_request_t = struct {
  4755. Fmajor_opcode Tuint8_t
  4756. F_class Tuint8_t
  4757. Flength Tuint16_t
  4758. Fdrawable Txcb_drawable_t
  4759. Fwidth Tuint16_t
  4760. Fheight Tuint16_t
  4761. }
  4762. type Txcb_query_best_size_reply_t = struct {
  4763. Fresponse_type Tuint8_t
  4764. Fpad0 Tuint8_t
  4765. Fsequence Tuint16_t
  4766. Flength Tuint32_t
  4767. Fwidth Tuint16_t
  4768. Fheight Tuint16_t
  4769. }
  4770. type Txcb_query_extension_cookie_t = struct {
  4771. Fsequence uint32
  4772. }
  4773. type Txcb_query_extension_request_t = struct {
  4774. Fmajor_opcode Tuint8_t
  4775. Fpad0 Tuint8_t
  4776. Flength Tuint16_t
  4777. Fname_len Tuint16_t
  4778. Fpad1 [2]Tuint8_t
  4779. }
  4780. type Txcb_query_extension_reply_t = struct {
  4781. Fresponse_type Tuint8_t
  4782. Fpad0 Tuint8_t
  4783. Fsequence Tuint16_t
  4784. Flength Tuint32_t
  4785. Fpresent Tuint8_t
  4786. Fmajor_opcode Tuint8_t
  4787. Ffirst_event Tuint8_t
  4788. Ffirst_error Tuint8_t
  4789. }
  4790. type Txcb_list_extensions_cookie_t = struct {
  4791. Fsequence uint32
  4792. }
  4793. type Txcb_list_extensions_request_t = struct {
  4794. Fmajor_opcode Tuint8_t
  4795. Fpad0 Tuint8_t
  4796. Flength Tuint16_t
  4797. }
  4798. type Txcb_list_extensions_reply_t = struct {
  4799. Fresponse_type Tuint8_t
  4800. Fnames_len Tuint8_t
  4801. Fsequence Tuint16_t
  4802. Flength Tuint32_t
  4803. Fpad0 [24]Tuint8_t
  4804. }
  4805. type Txcb_change_keyboard_mapping_request_t = struct {
  4806. Fmajor_opcode Tuint8_t
  4807. Fkeycode_count Tuint8_t
  4808. Flength Tuint16_t
  4809. Ffirst_keycode Txcb_keycode_t
  4810. Fkeysyms_per_keycode Tuint8_t
  4811. Fpad0 [2]Tuint8_t
  4812. }
  4813. type Txcb_get_keyboard_mapping_cookie_t = struct {
  4814. Fsequence uint32
  4815. }
  4816. type Txcb_get_keyboard_mapping_request_t = struct {
  4817. Fmajor_opcode Tuint8_t
  4818. Fpad0 Tuint8_t
  4819. Flength Tuint16_t
  4820. Ffirst_keycode Txcb_keycode_t
  4821. Fcount Tuint8_t
  4822. }
  4823. type Txcb_get_keyboard_mapping_reply_t = struct {
  4824. Fresponse_type Tuint8_t
  4825. Fkeysyms_per_keycode Tuint8_t
  4826. Fsequence Tuint16_t
  4827. Flength Tuint32_t
  4828. Fpad0 [24]Tuint8_t
  4829. }
  4830. type Txcb_kb_t = int32
  4831. type _xcb_kb_t = int32
  4832. const _XCB_KB_KEY_CLICK_PERCENT = 1
  4833. const _XCB_KB_BELL_PERCENT = 2
  4834. const _XCB_KB_BELL_PITCH = 4
  4835. const _XCB_KB_BELL_DURATION = 8
  4836. const _XCB_KB_LED = 16
  4837. const _XCB_KB_LED_MODE = 32
  4838. const _XCB_KB_KEY = 64
  4839. const _XCB_KB_AUTO_REPEAT_MODE = 128
  4840. type Txcb_led_mode_t = int32
  4841. type _xcb_led_mode_t = int32
  4842. const _XCB_LED_MODE_OFF = 0
  4843. const _XCB_LED_MODE_ON = 1
  4844. type Txcb_auto_repeat_mode_t = int32
  4845. type _xcb_auto_repeat_mode_t = int32
  4846. const _XCB_AUTO_REPEAT_MODE_OFF = 0
  4847. const _XCB_AUTO_REPEAT_MODE_ON = 1
  4848. const _XCB_AUTO_REPEAT_MODE_DEFAULT = 2
  4849. type Txcb_change_keyboard_control_value_list_t = struct {
  4850. Fkey_click_percent Tint32_t
  4851. Fbell_percent Tint32_t
  4852. Fbell_pitch Tint32_t
  4853. Fbell_duration Tint32_t
  4854. Fled Tuint32_t
  4855. Fled_mode Tuint32_t
  4856. Fkey Txcb_keycode32_t
  4857. Fauto_repeat_mode Tuint32_t
  4858. }
  4859. type Txcb_change_keyboard_control_request_t = struct {
  4860. Fmajor_opcode Tuint8_t
  4861. Fpad0 Tuint8_t
  4862. Flength Tuint16_t
  4863. Fvalue_mask Tuint32_t
  4864. }
  4865. type Txcb_get_keyboard_control_cookie_t = struct {
  4866. Fsequence uint32
  4867. }
  4868. type Txcb_get_keyboard_control_request_t = struct {
  4869. Fmajor_opcode Tuint8_t
  4870. Fpad0 Tuint8_t
  4871. Flength Tuint16_t
  4872. }
  4873. type Txcb_get_keyboard_control_reply_t = struct {
  4874. Fresponse_type Tuint8_t
  4875. Fglobal_auto_repeat Tuint8_t
  4876. Fsequence Tuint16_t
  4877. Flength Tuint32_t
  4878. Fled_mask Tuint32_t
  4879. Fkey_click_percent Tuint8_t
  4880. Fbell_percent Tuint8_t
  4881. Fbell_pitch Tuint16_t
  4882. Fbell_duration Tuint16_t
  4883. Fpad0 [2]Tuint8_t
  4884. Fauto_repeats [32]Tuint8_t
  4885. }
  4886. type Txcb_bell_request_t = struct {
  4887. Fmajor_opcode Tuint8_t
  4888. Fpercent Tint8_t
  4889. Flength Tuint16_t
  4890. }
  4891. type Txcb_change_pointer_control_request_t = struct {
  4892. Fmajor_opcode Tuint8_t
  4893. Fpad0 Tuint8_t
  4894. Flength Tuint16_t
  4895. Facceleration_numerator Tint16_t
  4896. Facceleration_denominator Tint16_t
  4897. Fthreshold Tint16_t
  4898. Fdo_acceleration Tuint8_t
  4899. Fdo_threshold Tuint8_t
  4900. }
  4901. type Txcb_get_pointer_control_cookie_t = struct {
  4902. Fsequence uint32
  4903. }
  4904. type Txcb_get_pointer_control_request_t = struct {
  4905. Fmajor_opcode Tuint8_t
  4906. Fpad0 Tuint8_t
  4907. Flength Tuint16_t
  4908. }
  4909. type Txcb_get_pointer_control_reply_t = struct {
  4910. Fresponse_type Tuint8_t
  4911. Fpad0 Tuint8_t
  4912. Fsequence Tuint16_t
  4913. Flength Tuint32_t
  4914. Facceleration_numerator Tuint16_t
  4915. Facceleration_denominator Tuint16_t
  4916. Fthreshold Tuint16_t
  4917. Fpad1 [18]Tuint8_t
  4918. }
  4919. type Txcb_blanking_t = int32
  4920. type _xcb_blanking_t = int32
  4921. const _XCB_BLANKING_NOT_PREFERRED = 0
  4922. const _XCB_BLANKING_PREFERRED = 1
  4923. const _XCB_BLANKING_DEFAULT = 2
  4924. type Txcb_exposures_t = int32
  4925. type _xcb_exposures_t = int32
  4926. const _XCB_EXPOSURES_NOT_ALLOWED = 0
  4927. const _XCB_EXPOSURES_ALLOWED = 1
  4928. const _XCB_EXPOSURES_DEFAULT = 2
  4929. type Txcb_set_screen_saver_request_t = struct {
  4930. Fmajor_opcode Tuint8_t
  4931. Fpad0 Tuint8_t
  4932. Flength Tuint16_t
  4933. Ftimeout Tint16_t
  4934. Finterval Tint16_t
  4935. Fprefer_blanking Tuint8_t
  4936. Fallow_exposures Tuint8_t
  4937. }
  4938. type Txcb_get_screen_saver_cookie_t = struct {
  4939. Fsequence uint32
  4940. }
  4941. type Txcb_get_screen_saver_request_t = struct {
  4942. Fmajor_opcode Tuint8_t
  4943. Fpad0 Tuint8_t
  4944. Flength Tuint16_t
  4945. }
  4946. type Txcb_get_screen_saver_reply_t = struct {
  4947. Fresponse_type Tuint8_t
  4948. Fpad0 Tuint8_t
  4949. Fsequence Tuint16_t
  4950. Flength Tuint32_t
  4951. Ftimeout Tuint16_t
  4952. Finterval Tuint16_t
  4953. Fprefer_blanking Tuint8_t
  4954. Fallow_exposures Tuint8_t
  4955. Fpad1 [18]Tuint8_t
  4956. }
  4957. type Txcb_host_mode_t = int32
  4958. type _xcb_host_mode_t = int32
  4959. const _XCB_HOST_MODE_INSERT = 0
  4960. const _XCB_HOST_MODE_DELETE = 1
  4961. type Txcb_family_t = int32
  4962. type _xcb_family_t = int32
  4963. const _XCB_FAMILY_INTERNET = 0
  4964. const _XCB_FAMILY_DECNET = 1
  4965. const _XCB_FAMILY_CHAOS = 2
  4966. const _XCB_FAMILY_SERVER_INTERPRETED = 5
  4967. const _XCB_FAMILY_INTERNET_6 = 6
  4968. type Txcb_change_hosts_request_t = struct {
  4969. Fmajor_opcode Tuint8_t
  4970. Fmode Tuint8_t
  4971. Flength Tuint16_t
  4972. Ffamily Tuint8_t
  4973. Fpad0 Tuint8_t
  4974. Faddress_len Tuint16_t
  4975. }
  4976. type Txcb_host_t = struct {
  4977. Ffamily Tuint8_t
  4978. Fpad0 Tuint8_t
  4979. Faddress_len Tuint16_t
  4980. }
  4981. type Txcb_host_iterator_t = struct {
  4982. Fdata uintptr
  4983. Frem int32
  4984. Findex int32
  4985. }
  4986. type Txcb_list_hosts_cookie_t = struct {
  4987. Fsequence uint32
  4988. }
  4989. type Txcb_list_hosts_request_t = struct {
  4990. Fmajor_opcode Tuint8_t
  4991. Fpad0 Tuint8_t
  4992. Flength Tuint16_t
  4993. }
  4994. type Txcb_list_hosts_reply_t = struct {
  4995. Fresponse_type Tuint8_t
  4996. Fmode Tuint8_t
  4997. Fsequence Tuint16_t
  4998. Flength Tuint32_t
  4999. Fhosts_len Tuint16_t
  5000. Fpad0 [22]Tuint8_t
  5001. }
  5002. type Txcb_access_control_t = int32
  5003. type _xcb_access_control_t = int32
  5004. const _XCB_ACCESS_CONTROL_DISABLE = 0
  5005. const _XCB_ACCESS_CONTROL_ENABLE = 1
  5006. type Txcb_set_access_control_request_t = struct {
  5007. Fmajor_opcode Tuint8_t
  5008. Fmode Tuint8_t
  5009. Flength Tuint16_t
  5010. }
  5011. type Txcb_close_down_t = int32
  5012. type _xcb_close_down_t = int32
  5013. const _XCB_CLOSE_DOWN_DESTROY_ALL = 0
  5014. const _XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1
  5015. const _XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
  5016. type Txcb_set_close_down_mode_request_t = struct {
  5017. Fmajor_opcode Tuint8_t
  5018. Fmode Tuint8_t
  5019. Flength Tuint16_t
  5020. }
  5021. type Txcb_kill_t = int32
  5022. type _xcb_kill_t = int32
  5023. const _XCB_KILL_ALL_TEMPORARY = 0
  5024. type Txcb_kill_client_request_t = struct {
  5025. Fmajor_opcode Tuint8_t
  5026. Fpad0 Tuint8_t
  5027. Flength Tuint16_t
  5028. Fresource Tuint32_t
  5029. }
  5030. type Txcb_rotate_properties_request_t = struct {
  5031. Fmajor_opcode Tuint8_t
  5032. Fpad0 Tuint8_t
  5033. Flength Tuint16_t
  5034. Fwindow Txcb_window_t
  5035. Fatoms_len Tuint16_t
  5036. Fdelta Tint16_t
  5037. }
  5038. type Txcb_screen_saver_t = int32
  5039. type _xcb_screen_saver_t = int32
  5040. const _XCB_SCREEN_SAVER_RESET = 0
  5041. const _XCB_SCREEN_SAVER_ACTIVE = 1
  5042. type Txcb_force_screen_saver_request_t = struct {
  5043. Fmajor_opcode Tuint8_t
  5044. Fmode Tuint8_t
  5045. Flength Tuint16_t
  5046. }
  5047. type Txcb_mapping_status_t = int32
  5048. type _xcb_mapping_status_t = int32
  5049. const _XCB_MAPPING_STATUS_SUCCESS = 0
  5050. const _XCB_MAPPING_STATUS_BUSY = 1
  5051. const _XCB_MAPPING_STATUS_FAILURE = 2
  5052. type Txcb_set_pointer_mapping_cookie_t = struct {
  5053. Fsequence uint32
  5054. }
  5055. type Txcb_set_pointer_mapping_request_t = struct {
  5056. Fmajor_opcode Tuint8_t
  5057. Fmap_len Tuint8_t
  5058. Flength Tuint16_t
  5059. }
  5060. type Txcb_set_pointer_mapping_reply_t = struct {
  5061. Fresponse_type Tuint8_t
  5062. Fstatus Tuint8_t
  5063. Fsequence Tuint16_t
  5064. Flength Tuint32_t
  5065. }
  5066. type Txcb_get_pointer_mapping_cookie_t = struct {
  5067. Fsequence uint32
  5068. }
  5069. type Txcb_get_pointer_mapping_request_t = struct {
  5070. Fmajor_opcode Tuint8_t
  5071. Fpad0 Tuint8_t
  5072. Flength Tuint16_t
  5073. }
  5074. type Txcb_get_pointer_mapping_reply_t = struct {
  5075. Fresponse_type Tuint8_t
  5076. Fmap_len Tuint8_t
  5077. Fsequence Tuint16_t
  5078. Flength Tuint32_t
  5079. Fpad0 [24]Tuint8_t
  5080. }
  5081. type Txcb_map_index_t = int32
  5082. type _xcb_map_index_t = int32
  5083. const _XCB_MAP_INDEX_SHIFT = 0
  5084. const _XCB_MAP_INDEX_LOCK = 1
  5085. const _XCB_MAP_INDEX_CONTROL = 2
  5086. const _XCB_MAP_INDEX_1 = 3
  5087. const _XCB_MAP_INDEX_2 = 4
  5088. const _XCB_MAP_INDEX_3 = 5
  5089. const _XCB_MAP_INDEX_4 = 6
  5090. const _XCB_MAP_INDEX_5 = 7
  5091. type Txcb_set_modifier_mapping_cookie_t = struct {
  5092. Fsequence uint32
  5093. }
  5094. type Txcb_set_modifier_mapping_request_t = struct {
  5095. Fmajor_opcode Tuint8_t
  5096. Fkeycodes_per_modifier Tuint8_t
  5097. Flength Tuint16_t
  5098. }
  5099. type Txcb_set_modifier_mapping_reply_t = struct {
  5100. Fresponse_type Tuint8_t
  5101. Fstatus Tuint8_t
  5102. Fsequence Tuint16_t
  5103. Flength Tuint32_t
  5104. }
  5105. type Txcb_get_modifier_mapping_cookie_t = struct {
  5106. Fsequence uint32
  5107. }
  5108. type Txcb_get_modifier_mapping_request_t = struct {
  5109. Fmajor_opcode Tuint8_t
  5110. Fpad0 Tuint8_t
  5111. Flength Tuint16_t
  5112. }
  5113. type Txcb_get_modifier_mapping_reply_t = struct {
  5114. Fresponse_type Tuint8_t
  5115. Fkeycodes_per_modifier Tuint8_t
  5116. Fsequence Tuint16_t
  5117. Flength Tuint32_t
  5118. Fpad0 [24]Tuint8_t
  5119. }
  5120. type Txcb_no_operation_request_t = struct {
  5121. Fmajor_opcode Tuint8_t
  5122. Fpad0 Tuint8_t
  5123. Flength Tuint16_t
  5124. }
  5125. type Txcb_auth_info_t = struct {
  5126. Fnamelen int32
  5127. Fname uintptr
  5128. Fdatalen int32
  5129. Fdata uintptr
  5130. }
  5131. type Txcb_big_requests_enable_cookie_t = struct {
  5132. Fsequence uint32
  5133. }
  5134. type Txcb_big_requests_enable_request_t = struct {
  5135. Fmajor_opcode Tuint8_t
  5136. Fminor_opcode Tuint8_t
  5137. Flength Tuint16_t
  5138. }
  5139. type Txcb_big_requests_enable_reply_t = struct {
  5140. Fresponse_type Tuint8_t
  5141. Fpad0 Tuint8_t
  5142. Fsequence Tuint16_t
  5143. Flength Tuint32_t
  5144. Fmaximum_request_length Tuint32_t
  5145. }
  5146. type _workarounds = int32
  5147. const _WORKAROUND_NONE = 0
  5148. const _WORKAROUND_GLX_GET_FB_CONFIGS_BUG = 1
  5149. const _WORKAROUND_EXTERNAL_SOCKET_OWNER = 2
  5150. type _lazy_reply_tag = int32
  5151. const _LAZY_NONE = 0
  5152. const _LAZY_COOKIE = 1
  5153. const _LAZY_FORCED = 2
  5154. type Txcb_list_free_func_t = uintptr
  5155. type T_xcb_fd = struct {
  5156. Ffd [16]int32
  5157. Fnfd int32
  5158. Fifd int32
  5159. }
  5160. type T_xcb_out = struct {
  5161. Fcond Tpthread_cond_t
  5162. Fwriting int32
  5163. Fsocket_cond Tpthread_cond_t
  5164. Freturn_socket uintptr
  5165. Fsocket_closure uintptr
  5166. Fsocket_moving int32
  5167. Fqueue [16384]uint8
  5168. Fqueue_len int32
  5169. Frequest Tuint64_t
  5170. Frequest_written Tuint64_t
  5171. Ftotal_written Tuint64_t
  5172. Freqlenlock Tpthread_mutex_t
  5173. Fmaximum_request_length_tag _lazy_reply_tag
  5174. Fmaximum_request_length struct {
  5175. Fvalue [0]Tuint32_t
  5176. Fcookie Txcb_big_requests_enable_cookie_t
  5177. }
  5178. Fout_fd T_xcb_fd
  5179. }
  5180. type T_xcb_in = struct {
  5181. Fevent_cond Tpthread_cond_t
  5182. Freading int32
  5183. Fqueue [4096]uint8
  5184. Fqueue_len int32
  5185. Frequest_expected Tuint64_t
  5186. Frequest_read Tuint64_t
  5187. Frequest_completed Tuint64_t
  5188. Ftotal_read Tuint64_t
  5189. Fcurrent_reply uintptr
  5190. Fcurrent_reply_tail uintptr
  5191. Freplies uintptr
  5192. Fevents uintptr
  5193. Fevents_tail uintptr
  5194. Freaders uintptr
  5195. Fspecial_waiters uintptr
  5196. Fpending_replies uintptr
  5197. Fpending_replies_tail uintptr
  5198. Fin_fd T_xcb_fd
  5199. Fspecial_events uintptr
  5200. }
  5201. type T_xcb_xid = struct {
  5202. Flock Tpthread_mutex_t
  5203. Flast Tuint32_t
  5204. Fbase Tuint32_t
  5205. Fmax Tuint32_t
  5206. Finc Tuint32_t
  5207. }
  5208. type T_xcb_ext = struct {
  5209. Flock Tpthread_mutex_t
  5210. Fextensions uintptr
  5211. Fextensions_size int32
  5212. }
  5213. type Txcb_connection_t1 = struct {
  5214. Fhas_error int32
  5215. Fsetup uintptr
  5216. Ffd int32
  5217. Fiolock Tpthread_mutex_t
  5218. Fin T_xcb_in
  5219. Fout T_xcb_out
  5220. Fext T_xcb_ext
  5221. Fxid T_xcb_xid
  5222. }
  5223. type Tnfds_t = uint64
  5224. type Tpollfd = struct {
  5225. Ffd int32
  5226. Fevents int16
  5227. Frevents int16
  5228. }
  5229. type Tsocklen_t = uint32
  5230. type Tsa_family_t = uint16
  5231. type Tmsghdr = struct {
  5232. Fmsg_name uintptr
  5233. Fmsg_namelen Tsocklen_t
  5234. Fmsg_iov uintptr
  5235. Fmsg_iovlen int32
  5236. F__pad1 int32
  5237. Fmsg_control uintptr
  5238. Fmsg_controllen Tsocklen_t
  5239. F__pad2 int32
  5240. Fmsg_flags int32
  5241. }
  5242. type Tcmsghdr = struct {
  5243. Fcmsg_len Tsocklen_t
  5244. F__pad1 int32
  5245. Fcmsg_level int32
  5246. Fcmsg_type int32
  5247. }
  5248. type Tucred = struct {
  5249. Fpid Tpid_t
  5250. Fuid Tuid_t
  5251. Fgid Tgid_t
  5252. }
  5253. type Tmmsghdr = struct {
  5254. Fmsg_hdr Tmsghdr
  5255. Fmsg_len uint32
  5256. }
  5257. type Tlinger = struct {
  5258. Fl_onoff int32
  5259. Fl_linger int32
  5260. }
  5261. type Tsockaddr = struct {
  5262. Fsa_family Tsa_family_t
  5263. Fsa_data [14]uint8
  5264. }
  5265. type Tsockaddr_storage = struct {
  5266. Fss_family Tsa_family_t
  5267. F__ss_padding [118]uint8
  5268. F__ss_align uint64
  5269. }
  5270. type Timaxdiv_t = struct {
  5271. Fquot Tintmax_t
  5272. Frem Tintmax_t
  5273. }
  5274. type Tin_port_t = uint16
  5275. type Tin_addr_t = uint32
  5276. type Tin_addr = struct {
  5277. Fs_addr Tin_addr_t
  5278. }
  5279. type Tsockaddr_in = struct {
  5280. Fsin_family Tsa_family_t
  5281. Fsin_port Tin_port_t
  5282. Fsin_addr Tin_addr
  5283. Fsin_zero [8]Tuint8_t
  5284. }
  5285. type Tin6_addr = struct {
  5286. F__in6_union struct {
  5287. F__s6_addr16 [0][8]Tuint16_t
  5288. F__s6_addr32 [0][4]Tuint32_t
  5289. F__s6_addr [16]Tuint8_t
  5290. }
  5291. }
  5292. type Tsockaddr_in6 = struct {
  5293. Fsin6_family Tsa_family_t
  5294. Fsin6_port Tin_port_t
  5295. Fsin6_flowinfo Tuint32_t
  5296. Fsin6_addr Tin6_addr
  5297. Fsin6_scope_id Tuint32_t
  5298. }
  5299. type Tipv6_mreq = struct {
  5300. Fipv6mr_multiaddr Tin6_addr
  5301. Fipv6mr_interface uint32
  5302. }
  5303. type Tip_opts = struct {
  5304. Fip_dst Tin_addr
  5305. Fip_opts [40]uint8
  5306. }
  5307. type Tip_mreq = struct {
  5308. Fimr_multiaddr Tin_addr
  5309. Fimr_interface Tin_addr
  5310. }
  5311. type Tip_mreqn = struct {
  5312. Fimr_multiaddr Tin_addr
  5313. Fimr_address Tin_addr
  5314. Fimr_ifindex int32
  5315. }
  5316. type Tip_mreq_source = struct {
  5317. Fimr_multiaddr Tin_addr
  5318. Fimr_interface Tin_addr
  5319. Fimr_sourceaddr Tin_addr
  5320. }
  5321. type Tip_msfilter = struct {
  5322. Fimsf_multiaddr Tin_addr
  5323. Fimsf_interface Tin_addr
  5324. Fimsf_fmode Tuint32_t
  5325. Fimsf_numsrc Tuint32_t
  5326. Fimsf_slist [1]Tin_addr
  5327. }
  5328. type Tgroup_req = struct {
  5329. Fgr_interface Tuint32_t
  5330. Fgr_group Tsockaddr_storage
  5331. }
  5332. type Tgroup_source_req = struct {
  5333. Fgsr_interface Tuint32_t
  5334. Fgsr_group Tsockaddr_storage
  5335. Fgsr_source Tsockaddr_storage
  5336. }
  5337. type Tgroup_filter = struct {
  5338. Fgf_interface Tuint32_t
  5339. Fgf_group Tsockaddr_storage
  5340. Fgf_fmode Tuint32_t
  5341. Fgf_numsrc Tuint32_t
  5342. Fgf_slist [1]Tsockaddr_storage
  5343. }
  5344. type Tin_pktinfo = struct {
  5345. Fipi_ifindex int32
  5346. Fipi_spec_dst Tin_addr
  5347. Fipi_addr Tin_addr
  5348. }
  5349. type Tin6_pktinfo = struct {
  5350. Fipi6_addr Tin6_addr
  5351. Fipi6_ifindex uint32
  5352. }
  5353. type Tip6_mtuinfo = struct {
  5354. Fip6m_addr Tsockaddr_in6
  5355. Fip6m_mtu Tuint32_t
  5356. }
  5357. /* SHUT_RDWR is fairly recent and is not available on all platforms */
  5358. type Txcb_setup_generic_t = struct {
  5359. Fstatus Tuint8_t
  5360. Fpad0 [5]Tuint8_t
  5361. Flength Tuint16_t
  5362. }
  5363. var _xcb_error_setup = Txcb_setup_t{}
  5364. // C documentation
  5365. //
  5366. // /* Keep this list in sync with is_static_error_conn()! */
  5367. var _xcb_con_error = int32(m_XCB_CONN_ERROR)
  5368. var _xcb_con_closed_mem_er = int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT)
  5369. var _xcb_con_closed_parse_er = int32(m_XCB_CONN_CLOSED_PARSE_ERR)
  5370. var _xcb_con_closed_screen_er = int32(m_XCB_CONN_CLOSED_INVALID_SCREEN)
  5371. func _is_static_error_conn(tls *libc.TLS, c uintptr) (r int32) {
  5372. 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)))
  5373. }
  5374. func _set_fd_flags(tls *libc.TLS, fd int32) (r int32) {
  5375. bp := tls.Alloc(16)
  5376. defer tls.Free(16)
  5377. var flags int32
  5378. _ = flags
  5379. /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
  5380. flags = libc.Xfcntl(tls, fd, int32(m_F_GETFL), libc.VaList(bp+8, 0))
  5381. if flags == -int32(1) {
  5382. return 0
  5383. }
  5384. flags |= int32(m_O_NONBLOCK)
  5385. if libc.Xfcntl(tls, fd, int32(m_F_SETFL), libc.VaList(bp+8, flags)) == -int32(1) {
  5386. return 0
  5387. }
  5388. if libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC))) == -int32(1) {
  5389. return 0
  5390. }
  5391. return int32(1)
  5392. }
  5393. func _write_setup(tls *libc.TLS, c uintptr, auth_info uintptr) (r int32) {
  5394. bp := tls.Alloc(112)
  5395. defer tls.Free(112)
  5396. var count, ret, v1, v2, v4, v5, v7, v8 int32
  5397. var v3, v6 Tuint16_t
  5398. var _ /* out at bp+0 */ Txcb_setup_request_t
  5399. var _ /* parts at bp+16 */ [6]Tiovec
  5400. _, _, _, _, _, _, _, _, _, _ = count, ret, v1, v2, v3, v4, v5, v6, v7, v8
  5401. count = 0
  5402. libc.Xmemset(tls, bp, 0, uint64(12))
  5403. /* B = 0x42 = MSB first, l = 0x6c = LSB first */
  5404. if libc.Xhtonl(tls, _endian) == _endian {
  5405. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x42)
  5406. } else {
  5407. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x6c)
  5408. }
  5409. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_major_version = uint16(m_X_PROTOCOL)
  5410. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_minor_version = uint16(m_X_PROTOCOL_REVISION)
  5411. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = uint16(0)
  5412. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = uint16(0)
  5413. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(12)
  5414. v1 = count
  5415. count++
  5416. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v1].Fiov_base = bp
  5417. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = -libc.Uint64FromInt64(12) & libc.Uint64FromInt32(3)
  5418. v2 = count
  5419. count++
  5420. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v2].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5421. if auth_info != 0 {
  5422. v3 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fnamelen)
  5423. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = v3
  5424. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v3)
  5425. v4 = count
  5426. count++
  5427. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v4].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fname
  5428. (*(*[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))
  5429. v5 = count
  5430. count++
  5431. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v5].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5432. v6 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdatalen)
  5433. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = v6
  5434. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v6)
  5435. v7 = count
  5436. count++
  5437. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v7].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdata
  5438. (*(*[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))
  5439. v8 = count
  5440. count++
  5441. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v8].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5442. }
  5443. libc.Xpthread_mutex_lock(tls, c+24)
  5444. ret = X_xcb_out_send(tls, c, bp+16, count)
  5445. libc.Xpthread_mutex_unlock(tls, c+24)
  5446. return ret
  5447. }
  5448. var _pad [3]uint8
  5449. var _endian = uint32(0x01020304)
  5450. func _read_setup(tls *libc.TLS, c uintptr) (r int32) {
  5451. var setup, setup1, tmp uintptr
  5452. _, _, _ = setup, setup1, tmp
  5453. /* Read the server response */
  5454. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = libc.Xmalloc(tls, uint64(8))
  5455. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup != 0) {
  5456. return 0
  5457. }
  5458. if libc.Uint64FromInt32(X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, int32(8))) != uint64(8) {
  5459. return 0
  5460. }
  5461. 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))
  5462. if !(tmp != 0) {
  5463. return 0
  5464. }
  5465. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = tmp
  5466. 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 {
  5467. return 0
  5468. }
  5469. /* 0 = failed, 2 = authenticate, 1 = success */
  5470. switch libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fstatus) {
  5471. case 0: /* failed */
  5472. setup = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5473. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_failed_reason(tls, setup), libc.Uint64FromInt32(Xxcb_setup_failed_reason_length(tls, setup)))
  5474. return 0
  5475. case int32(2): /* authenticate */
  5476. setup1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5477. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_authenticate_reason(tls, setup1), libc.Uint64FromInt32(Xxcb_setup_authenticate_reason_length(tls, setup1)))
  5478. return 0
  5479. }
  5480. return int32(1)
  5481. }
  5482. // C documentation
  5483. //
  5484. // /* precondition: there must be something for us to write. */
  5485. func _write_vec(tls *libc.TLS, c uintptr, vector uintptr, count uintptr) (r int32) {
  5486. bp := tls.Alloc(144)
  5487. defer tls.Free(144)
  5488. var cur, i, n int32
  5489. var hdr, v1 uintptr
  5490. var _ /* cmsgbuf at bp+0 */ struct {
  5491. Fbuf [0][80]uint8
  5492. Fcmsghdr Tcmsghdr
  5493. F__ccgo_pad2 [64]byte
  5494. }
  5495. var _ /* msg at bp+80 */ Tmsghdr
  5496. _, _, _, _, _ = cur, hdr, i, n, v1
  5497. n = *(*int32)(unsafe.Pointer(count))
  5498. if n > int32(m_IOV_MAX) {
  5499. n = int32(m_IOV_MAX)
  5500. }
  5501. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd != 0 {
  5502. *(*Tmsghdr)(unsafe.Pointer(bp + 80)) = Tmsghdr{
  5503. Fmsg_iov: *(*uintptr)(unsafe.Pointer(vector)),
  5504. Fmsg_iovlen: n,
  5505. Fmsg_control: bp,
  5506. 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)),
  5507. }
  5508. if uint64((*Tmsghdr)(unsafe.Pointer(bp+80)).Fmsg_controllen) >= uint64(16) {
  5509. v1 = (*Tmsghdr)(unsafe.Pointer(bp + 80)).Fmsg_control
  5510. } else {
  5511. v1 = libc.UintptrFromInt32(0)
  5512. }
  5513. hdr = v1
  5514. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len = (*(*Tmsghdr)(unsafe.Pointer(bp + 80))).Fmsg_controllen
  5515. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level = int32(m_SOL_SOCKET)
  5516. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type = int32(m_SCM_RIGHTS)
  5517. 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))
  5518. n = int32(libc.Xsendmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+80, 0))
  5519. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5520. return int32(1)
  5521. }
  5522. i = 0
  5523. for {
  5524. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd) {
  5525. break
  5526. }
  5527. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 4400 + 16584 + uintptr(i)*4)))
  5528. goto _2
  5529. _2:
  5530. ;
  5531. i++
  5532. }
  5533. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd = 0
  5534. } else {
  5535. n = int32(libc.Xwritev(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, *(*uintptr)(unsafe.Pointer(vector)), n))
  5536. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5537. return int32(1)
  5538. }
  5539. }
  5540. if n <= 0 {
  5541. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5542. return 0
  5543. }
  5544. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written += libc.Uint64FromInt32(n)
  5545. for {
  5546. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5547. break
  5548. }
  5549. cur = libc.Int32FromUint64((*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len)
  5550. if cur > n {
  5551. cur = n
  5552. }
  5553. *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)) + 8)) -= libc.Uint64FromInt32(cur)
  5554. (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base = (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base + uintptr(cur)
  5555. n -= cur
  5556. if (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len != 0 {
  5557. break
  5558. }
  5559. goto _3
  5560. _3:
  5561. ;
  5562. *(*int32)(unsafe.Pointer(count))--
  5563. *(*uintptr)(unsafe.Pointer(vector)) += 16
  5564. }
  5565. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5566. *(*uintptr)(unsafe.Pointer(vector)) = uintptr(0)
  5567. }
  5568. return int32(1)
  5569. }
  5570. /* Public interface */
  5571. func Xxcb_get_setup(tls *libc.TLS, c uintptr) (r uintptr) {
  5572. if _is_static_error_conn(tls, c) != 0 {
  5573. return uintptr(unsafe.Pointer(&_xcb_error_setup))
  5574. }
  5575. /* doesn't need locking because it's never written to. */
  5576. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5577. }
  5578. func Xxcb_get_file_descriptor(tls *libc.TLS, c uintptr) (r int32) {
  5579. if _is_static_error_conn(tls, c) != 0 {
  5580. return -int32(1)
  5581. }
  5582. /* doesn't need locking because it's never written to. */
  5583. return (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5584. }
  5585. func Xxcb_connection_has_error(tls *libc.TLS, c uintptr) (r int32) {
  5586. /* doesn't need locking because it's read and written atomically. */
  5587. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error
  5588. }
  5589. func Xxcb_connect_to_fd(tls *libc.TLS, fd int32, auth_info uintptr) (r uintptr) {
  5590. var c uintptr
  5591. _ = c
  5592. c = libc.Xcalloc(tls, uint64(1), uint64(21168))
  5593. if !(c != 0) {
  5594. libc.Xclose(tls, fd)
  5595. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  5596. }
  5597. (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd = fd
  5598. 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) {
  5599. Xxcb_disconnect(tls, c)
  5600. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  5601. }
  5602. return c
  5603. }
  5604. func Xxcb_disconnect(tls *libc.TLS, c uintptr) {
  5605. if c == libc.UintptrFromInt32(0) || _is_static_error_conn(tls, c) != 0 {
  5606. return
  5607. }
  5608. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)
  5609. /* disallow further sends and receives */
  5610. libc.Xshutdown(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, int32(m_SHUT_RDWR))
  5611. libc.Xclose(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd)
  5612. libc.Xpthread_mutex_destroy(tls, c+24)
  5613. X_xcb_in_destroy(tls, c+64)
  5614. X_xcb_out_destroy(tls, c+4400)
  5615. X_xcb_ext_destroy(tls, c)
  5616. X_xcb_xid_destroy(tls, c)
  5617. libc.Xfree(tls, c)
  5618. }
  5619. /* Private interface */
  5620. func X_xcb_conn_shutdown(tls *libc.TLS, c uintptr, err int32) {
  5621. (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error = err
  5622. }
  5623. // C documentation
  5624. //
  5625. // /* Return connection error state.
  5626. // * To make thread-safe, I need a seperate static
  5627. // * variable for every possible error.
  5628. // * has_error is the first field in xcb_connection_t, so just
  5629. // * return a casted int here; checking has_error (and only
  5630. // * has_error) will be safe.
  5631. // */
  5632. func X_xcb_conn_ret_error(tls *libc.TLS, err int32) (r uintptr) {
  5633. switch err {
  5634. case int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT):
  5635. return uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er))
  5636. case int32(m_XCB_CONN_CLOSED_PARSE_ERR):
  5637. return uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er))
  5638. case int32(m_XCB_CONN_CLOSED_INVALID_SCREEN):
  5639. return uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er))
  5640. case int32(m_XCB_CONN_ERROR):
  5641. fallthrough
  5642. default:
  5643. return uintptr(unsafe.Pointer(&_xcb_con_error))
  5644. }
  5645. return r
  5646. }
  5647. func X_xcb_conn_wait(tls *libc.TLS, c uintptr, cond uintptr, vector uintptr, count uintptr) (r int32) {
  5648. bp := tls.Alloc(16)
  5649. defer tls.Free(16)
  5650. var may_read, ret, v1 int32
  5651. var p2 uintptr
  5652. var _ /* fd at bp+0 */ Tpollfd
  5653. _, _, _, _ = may_read, ret, v1, p2
  5654. /* If the thing I should be doing is already being done, wait for it. */
  5655. if count != 0 {
  5656. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting
  5657. } else {
  5658. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading
  5659. }
  5660. if v1 != 0 {
  5661. libc.Xpthread_cond_wait(tls, cond, c+24)
  5662. return int32(1)
  5663. }
  5664. libc.Xmemset(tls, bp, 0, uint64(8))
  5665. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5666. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  5667. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading++
  5668. if count != 0 {
  5669. p2 = bp + 4
  5670. *(*int16)(unsafe.Pointer(p2)) = int16(int32(*(*int16)(unsafe.Pointer(p2))) | libc.Int32FromInt32(m_POLLOUT))
  5671. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting++
  5672. }
  5673. libc.Xpthread_mutex_unlock(tls, c+24)
  5674. for cond1 := true; cond1; cond1 = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  5675. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  5676. /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
  5677. * it as if it failed. */
  5678. if ret >= 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents) & ^int32((*(*Tpollfd)(unsafe.Pointer(bp))).Fevents) != 0 {
  5679. ret = -int32(1)
  5680. break
  5681. }
  5682. }
  5683. if ret < 0 {
  5684. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5685. ret = 0
  5686. }
  5687. libc.Xpthread_mutex_lock(tls, c+24)
  5688. if ret != 0 {
  5689. /* The code allows two threads to call select()/poll() at the same time.
  5690. * First thread just wants to read, a second thread wants to write, too.
  5691. * We have to make sure that we don't steal the reading thread's reply
  5692. * and let it get stuck in select()/poll().
  5693. * So a thread may read if either:
  5694. * - There is no other thread that wants to read (the above situation
  5695. * did not occur).
  5696. * - It is the reading thread (above situation occurred).
  5697. */
  5698. may_read = libc.BoolInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == int32(1) || !(count != 0))
  5699. if may_read != 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLIN) != 0 {
  5700. ret = libc.BoolInt32(ret != 0 && X_xcb_in_read(tls, c) != 0)
  5701. }
  5702. if int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLOUT) != 0 {
  5703. ret = libc.BoolInt32(ret != 0 && _write_vec(tls, c, vector, count) != 0)
  5704. }
  5705. }
  5706. if count != 0 {
  5707. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting--
  5708. }
  5709. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading--
  5710. return ret
  5711. }
  5712. func Xxcb_total_read(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5713. var n Tuint64_t
  5714. _ = n
  5715. if Xxcb_connection_has_error(tls, c) != 0 {
  5716. return uint64(0)
  5717. }
  5718. libc.Xpthread_mutex_lock(tls, c+24)
  5719. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read
  5720. libc.Xpthread_mutex_unlock(tls, c+24)
  5721. return n
  5722. }
  5723. func Xxcb_total_written(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5724. var n Tuint64_t
  5725. _ = n
  5726. if Xxcb_connection_has_error(tls, c) != 0 {
  5727. return uint64(0)
  5728. }
  5729. libc.Xpthread_mutex_lock(tls, c+24)
  5730. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written
  5731. libc.Xpthread_mutex_unlock(tls, c+24)
  5732. return n
  5733. }
  5734. const m_SEEK_CUR = 1
  5735. const m_SEEK_END = 2
  5736. const m_SEEK_SET = 0
  5737. type Txcb_extension_t = struct {
  5738. Fname uintptr
  5739. Fglobal_id int32
  5740. }
  5741. type Txcb_extension_t1 = struct {
  5742. Fname uintptr
  5743. Fglobal_id int32
  5744. }
  5745. type Txcb_protocol_request_t = struct {
  5746. Fcount Tsize_t
  5747. Fext uintptr
  5748. Fopcode Tuint8_t
  5749. Fisvoid Tuint8_t
  5750. }
  5751. type _xcb_send_request_flags_t = int32
  5752. const _XCB_REQUEST_CHECKED = 1
  5753. const _XCB_REQUEST_RAW = 2
  5754. const _XCB_REQUEST_DISCARD_REPLY = 4
  5755. const _XCB_REQUEST_REPLY_FDS = 8
  5756. /*
  5757. * This file generated automatically from bigreq.xml by c_client.py.
  5758. * Edit at your peril.
  5759. */
  5760. /**
  5761. * @defgroup XCB_BigRequests_API XCB BigRequests API
  5762. * @brief BigRequests XCB Protocol Implementation.
  5763. * @{
  5764. **/
  5765. /**
  5766. * @}
  5767. */
  5768. func _send_request(tls *libc.TLS, c uintptr, isvoid int32, workaround _workarounds, flags int32, vector uintptr, count int32) {
  5769. var p1 uintptr
  5770. _ = p1
  5771. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5772. return
  5773. }
  5774. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest++
  5775. if !(isvoid != 0) {
  5776. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  5777. }
  5778. if workaround != int32(_WORKAROUND_NONE) || flags != 0 {
  5779. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest, workaround, flags)
  5780. }
  5781. for count != 0 && libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)+(*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len <= uint64(16384) {
  5782. 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)
  5783. p1 = c + 4400 + 16508
  5784. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5785. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5786. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(0)
  5787. vector += 16
  5788. count--
  5789. }
  5790. if !(count != 0) {
  5791. return
  5792. }
  5793. vector -= 16
  5794. count++
  5795. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = c + 4400 + 124
  5796. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  5797. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  5798. X_xcb_out_send(tls, c, vector, count)
  5799. }
  5800. func _send_sync(tls *libc.TLS, c uintptr) {
  5801. bp := tls.Alloc(32)
  5802. defer tls.Free(32)
  5803. var _ /* vector at bp+0 */ [2]Tiovec
  5804. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base = uintptr(unsafe.Pointer(&_sync_req))
  5805. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len = uint64(4)
  5806. _send_request(tls, c, 0, int32(_WORKAROUND_NONE), int32(_XCB_REQUEST_DISCARD_REPLY), bp+uintptr(1)*16, int32(1))
  5807. }
  5808. var _sync_req = *(*struct {
  5809. Fpacket [0]Tuint32_t
  5810. Ffields struct {
  5811. Fmajor Tuint8_t
  5812. Fpad Tuint8_t
  5813. Flen1 Tuint16_t
  5814. }
  5815. })(unsafe.Pointer(&struct {
  5816. Fmajor uint8
  5817. Fpad uint8
  5818. Flen1 uint16
  5819. }{
  5820. Fmajor: uint8(43),
  5821. Flen1: uint16(1),
  5822. }))
  5823. func _get_socket_back(tls *libc.TLS, c uintptr) {
  5824. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving != 0 {
  5825. libc.Xpthread_cond_wait(tls, c+4400+56, c+24)
  5826. }
  5827. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0) {
  5828. return
  5829. }
  5830. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = int32(1)
  5831. libc.Xpthread_mutex_unlock(tls, c+24)
  5832. (*(*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)
  5833. libc.Xpthread_mutex_lock(tls, c+24)
  5834. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = 0
  5835. libc.Xpthread_cond_broadcast(tls, c+4400+56)
  5836. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = uintptr(0)
  5837. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = uintptr(0)
  5838. X_xcb_in_replies_done(tls, c)
  5839. }
  5840. func _prepare_socket_request(tls *libc.TLS, c uintptr) {
  5841. /* We're about to append data to out.queue, so we need to
  5842. * atomically test for an external socket owner *and* some other
  5843. * thread currently writing.
  5844. *
  5845. * If we have an external socket owner, we have to get the socket back
  5846. * before we can use it again.
  5847. *
  5848. * If some other thread is writing to the socket, we assume it's
  5849. * writing from out.queue, and so we can't stick data there.
  5850. *
  5851. * We satisfy this condition by first calling get_socket_back
  5852. * (which may drop the lock, but will return when XCB owns the
  5853. * socket again) and then checking for another writing thread and
  5854. * escaping the loop if we're ready to go.
  5855. */
  5856. for {
  5857. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5858. return
  5859. }
  5860. _get_socket_back(tls, c)
  5861. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0) {
  5862. break
  5863. }
  5864. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  5865. goto _1
  5866. _1:
  5867. }
  5868. }
  5869. /* Public interface */
  5870. func Xxcb_prefetch_maximum_request_length(tls *libc.TLS, c uintptr) {
  5871. var ext uintptr
  5872. _ = ext
  5873. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5874. return
  5875. }
  5876. libc.Xpthread_mutex_lock(tls, c+4400+16536)
  5877. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_NONE) {
  5878. ext = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_big_requests_id)))
  5879. if ext != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext)).Fpresent != 0 {
  5880. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_COOKIE)
  5881. *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16580)) = Xxcb_big_requests_enable(tls, c)
  5882. } else {
  5883. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5884. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5885. }
  5886. }
  5887. libc.Xpthread_mutex_unlock(tls, c+4400+16536)
  5888. }
  5889. func Xxcb_get_maximum_request_length(tls *libc.TLS, c uintptr) (r1 Tuint32_t) {
  5890. var r uintptr
  5891. _ = r
  5892. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5893. return uint32(0)
  5894. }
  5895. Xxcb_prefetch_maximum_request_length(tls, c)
  5896. libc.Xpthread_mutex_lock(tls, c+4400+16536)
  5897. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_COOKIE) {
  5898. r = Xxcb_big_requests_enable_reply(tls, c, *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16580)), uintptr(0))
  5899. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5900. if r != 0 {
  5901. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = (*Txcb_big_requests_enable_reply_t)(unsafe.Pointer(r)).Fmaximum_request_length
  5902. libc.Xfree(tls, r)
  5903. } else {
  5904. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5905. }
  5906. }
  5907. libc.Xpthread_mutex_unlock(tls, c+4400+16536)
  5908. return *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16580))
  5909. }
  5910. func _close_fds(tls *libc.TLS, fds uintptr, num_fds uint32) {
  5911. var index uint32
  5912. _ = index
  5913. index = uint32(0)
  5914. for {
  5915. if !(index < num_fds) {
  5916. break
  5917. }
  5918. libc.Xclose(tls, *(*int32)(unsafe.Pointer(fds + uintptr(index)*4)))
  5919. goto _1
  5920. _1:
  5921. ;
  5922. index++
  5923. }
  5924. }
  5925. func _send_fds(tls *libc.TLS, c uintptr, fds uintptr, num_fds uint32) {
  5926. var v1 int32
  5927. var v2 uintptr
  5928. _, _ = v1, v2
  5929. /* Calling _xcb_out_flush_to() can drop the iolock and wait on a condition
  5930. * variable if another thread is currently writing (c->out.writing > 0).
  5931. * This call waits for writers to be done and thus _xcb_out_flush_to() will
  5932. * do the work itself (in which case we are a writer and
  5933. * prepare_socket_request() will wait for us to be done if another threads
  5934. * tries to send fds, too). Thanks to this, we can atomically write out FDs.
  5935. */
  5936. _prepare_socket_request(tls, c)
  5937. for num_fds > uint32(0) {
  5938. 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) {
  5939. /* XXX: if c->out.writing > 0, this releases the iolock and
  5940. * potentially allows other threads to interfere with their own fds.
  5941. */
  5942. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  5943. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) {
  5944. /* We need some request to send FDs with */
  5945. X_xcb_out_send_sync(tls, c)
  5946. }
  5947. }
  5948. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5949. break
  5950. }
  5951. v2 = c + 4400 + 16584 + 64
  5952. v1 = *(*int32)(unsafe.Pointer(v2))
  5953. *(*int32)(unsafe.Pointer(v2))++
  5954. *(*int32)(unsafe.Pointer(c + 4400 + 16584 + uintptr(v1)*4)) = *(*int32)(unsafe.Pointer(fds))
  5955. fds += 4
  5956. num_fds--
  5957. }
  5958. _close_fds(tls, fds, num_fds)
  5959. }
  5960. 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) {
  5961. bp := tls.Alloc(16)
  5962. defer tls.Free(16)
  5963. var extension uintptr
  5964. var i uint32
  5965. var longlen, v2 Tsize_t
  5966. var request Tuint64_t
  5967. var shortlen Tuint16_t
  5968. var veclen int32
  5969. var workaround _workarounds
  5970. var v3 uint64
  5971. var _ /* prefix at bp+0 */ [2]Tuint32_t
  5972. _, _, _, _, _, _, _, _, _ = extension, i, longlen, request, shortlen, veclen, workaround, v2, v3
  5973. veclen = libc.Int32FromUint64((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount)
  5974. workaround = int32(_WORKAROUND_NONE)
  5975. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5976. _close_fds(tls, fds, num_fds)
  5977. return uint64(0)
  5978. }
  5979. if !(flags&int32(_XCB_REQUEST_RAW) != 0) {
  5980. shortlen = uint16(0)
  5981. longlen = uint64(0)
  5982. /* set the major opcode, and the minor opcode for extensions */
  5983. if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 {
  5984. extension = Xxcb_get_extension_data(tls, c, (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)
  5985. if !(extension != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fpresent != 0) {
  5986. _close_fds(tls, fds, num_fds)
  5987. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED))
  5988. return uint64(0)
  5989. }
  5990. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fmajor_opcode
  5991. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5992. } else {
  5993. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5994. }
  5995. /* put together the length field, possibly using BIGREQUESTS */
  5996. i = uint32(0)
  5997. for {
  5998. if !(uint64(i) < (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount) {
  5999. break
  6000. }
  6001. longlen += (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_len
  6002. if !((*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base != 0) {
  6003. (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base = uintptr(unsafe.Pointer(&_pad1))
  6004. }
  6005. goto _1
  6006. _1:
  6007. ;
  6008. i++
  6009. }
  6010. longlen >>= uint64(2)
  6011. if longlen <= uint64((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length) {
  6012. /* we don't need BIGREQUESTS. */
  6013. shortlen = uint16(longlen)
  6014. longlen = uint64(0)
  6015. } else {
  6016. if longlen > uint64(Xxcb_get_maximum_request_length(tls, c)) {
  6017. _close_fds(tls, fds, num_fds)
  6018. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_REQ_LEN_EXCEED))
  6019. return uint64(0) /* server can't take this; maybe need BIGREQUESTS? */
  6020. }
  6021. }
  6022. /* set the length field. */
  6023. *(*Tuint16_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*2)) = shortlen
  6024. if !(shortlen != 0) {
  6025. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[0] = *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base))
  6026. longlen++
  6027. v2 = longlen
  6028. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] = uint32(v2)
  6029. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr(1)*4
  6030. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len -= uint64(4)
  6031. vector -= 16
  6032. veclen++
  6033. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = bp
  6034. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(8)
  6035. }
  6036. }
  6037. flags &= ^int32(_XCB_REQUEST_RAW)
  6038. /* do we need to work around the X server bug described in glx.xml? */
  6039. /* XXX: GetFBConfigs won't use BIG-REQUESTS in any sane
  6040. * configuration, but that should be handled here anyway. */
  6041. 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)) {
  6042. workaround = int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG)
  6043. }
  6044. /* get a sequence number and arrange for delivery. */
  6045. libc.Xpthread_mutex_lock(tls, c+24)
  6046. /* send FDs before establishing a good request number, because this might
  6047. * call send_sync(), too
  6048. */
  6049. _send_fds(tls, c, fds, num_fds)
  6050. _prepare_socket_request(tls, c)
  6051. /* send GetInputFocus (sync_req) when 64k-2 requests have been sent without
  6052. * a reply.
  6053. * Also send sync_req (could use NoOp) at 32-bit wrap to avoid having
  6054. * applications see sequence 0 as that is used to indicate
  6055. * an error in sending the request
  6056. */
  6057. 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) {
  6058. _send_sync(tls, c)
  6059. _prepare_socket_request(tls, c)
  6060. }
  6061. _send_request(tls, c, libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid), workaround, flags, vector, veclen)
  6062. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6063. v3 = uint64(0)
  6064. } else {
  6065. v3 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6066. }
  6067. request = v3
  6068. libc.Xpthread_mutex_unlock(tls, c+24)
  6069. return request
  6070. }
  6071. var _pad1 [3]uint8
  6072. // C documentation
  6073. //
  6074. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6075. func Xxcb_send_request_with_fds(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r uint32) {
  6076. return uint32(Xxcb_send_request_with_fds64(tls, c, flags, vector, req, num_fds, fds))
  6077. }
  6078. func Xxcb_send_request64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r Tuint64_t) {
  6079. return Xxcb_send_request_with_fds64(tls, c, flags, vector, req, uint32(0), libc.UintptrFromInt32(0))
  6080. }
  6081. // C documentation
  6082. //
  6083. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6084. func Xxcb_send_request(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r uint32) {
  6085. return uint32(Xxcb_send_request64(tls, c, flags, vector, req))
  6086. }
  6087. func Xxcb_send_fd(tls *libc.TLS, c uintptr, fd int32) {
  6088. bp := tls.Alloc(16)
  6089. defer tls.Free(16)
  6090. var _ /* fds at bp+0 */ [1]int32
  6091. *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{
  6092. 0: fd,
  6093. }
  6094. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6095. libc.Xclose(tls, fd)
  6096. return
  6097. }
  6098. libc.Xpthread_mutex_lock(tls, c+24)
  6099. _send_fds(tls, c, bp, uint32(1))
  6100. libc.Xpthread_mutex_unlock(tls, c+24)
  6101. }
  6102. func Xxcb_take_socket(tls *libc.TLS, c uintptr, return_socket uintptr, closure uintptr, flags int32, sent uintptr) (r int32) {
  6103. var ret int32
  6104. _ = ret
  6105. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6106. return 0
  6107. }
  6108. libc.Xpthread_mutex_lock(tls, c+24)
  6109. _get_socket_back(tls, c)
  6110. /* _xcb_out_flush may drop the iolock allowing other threads to
  6111. * write requests, so keep flushing until we're done
  6112. */
  6113. for cond := true; cond; cond = ret != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest != (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written {
  6114. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6115. }
  6116. if ret != 0 {
  6117. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = return_socket
  6118. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = closure
  6119. if flags != 0 {
  6120. /* c->out.request + 1 will be the first request sent by the external
  6121. * socket owner. If the socket is returned before this request is sent
  6122. * it will be detected in _xcb_in_replies_done and this pending_reply
  6123. * will be discarded.
  6124. */
  6125. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+uint64(1), int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER), flags)
  6126. }
  6127. *(*Tuint64_t)(unsafe.Pointer(sent)) = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6128. }
  6129. libc.Xpthread_mutex_unlock(tls, c+24)
  6130. return ret
  6131. }
  6132. func Xxcb_writev(tls *libc.TLS, c uintptr, vector uintptr, count int32, requests Tuint64_t) (r int32) {
  6133. var ret int32
  6134. _ = ret
  6135. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6136. return 0
  6137. }
  6138. libc.Xpthread_mutex_lock(tls, c+24)
  6139. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest += requests
  6140. ret = X_xcb_out_send(tls, c, vector, count)
  6141. libc.Xpthread_mutex_unlock(tls, c+24)
  6142. return ret
  6143. }
  6144. func Xxcb_flush(tls *libc.TLS, c uintptr) (r int32) {
  6145. var ret int32
  6146. _ = ret
  6147. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6148. return 0
  6149. }
  6150. libc.Xpthread_mutex_lock(tls, c+24)
  6151. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6152. libc.Xpthread_mutex_unlock(tls, c+24)
  6153. return ret
  6154. }
  6155. /* Private interface */
  6156. func X_xcb_out_init(tls *libc.TLS, out uintptr) (r int32) {
  6157. if libc.Xpthread_cond_init(tls, out+56, uintptr(0)) != 0 {
  6158. return 0
  6159. }
  6160. (*T_xcb_out)(unsafe.Pointer(out)).Freturn_socket = uintptr(0)
  6161. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_closure = uintptr(0)
  6162. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_moving = 0
  6163. if libc.Xpthread_cond_init(tls, out, uintptr(0)) != 0 {
  6164. return 0
  6165. }
  6166. (*T_xcb_out)(unsafe.Pointer(out)).Fwriting = 0
  6167. (*T_xcb_out)(unsafe.Pointer(out)).Fqueue_len = 0
  6168. (*T_xcb_out)(unsafe.Pointer(out)).Frequest = uint64(0)
  6169. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_written = uint64(0)
  6170. if libc.Xpthread_mutex_init(tls, out+16536, uintptr(0)) != 0 {
  6171. return 0
  6172. }
  6173. (*T_xcb_out)(unsafe.Pointer(out)).Fmaximum_request_length_tag = int32(_LAZY_NONE)
  6174. return int32(1)
  6175. }
  6176. func X_xcb_out_destroy(tls *libc.TLS, out uintptr) {
  6177. libc.Xpthread_cond_destroy(tls, out)
  6178. libc.Xpthread_mutex_destroy(tls, out+16536)
  6179. }
  6180. func X_xcb_out_send(tls *libc.TLS, c uintptr, _vector uintptr, _count int32) (r int32) {
  6181. bp := tls.Alloc(16)
  6182. defer tls.Free(16)
  6183. *(*uintptr)(unsafe.Pointer(bp)) = _vector
  6184. *(*int32)(unsafe.Pointer(bp + 8)) = _count
  6185. var ret int32
  6186. _ = ret
  6187. ret = int32(1)
  6188. for ret != 0 && *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
  6189. ret = X_xcb_conn_wait(tls, c, c+4400, bp, bp+8)
  6190. }
  6191. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6192. libc.Xpthread_cond_broadcast(tls, c+4400)
  6193. X_xcb_in_wake_up_next_reader(tls, c)
  6194. return ret
  6195. }
  6196. func X_xcb_out_send_sync(tls *libc.TLS, c uintptr) {
  6197. _prepare_socket_request(tls, c)
  6198. _send_sync(tls, c)
  6199. }
  6200. func X_xcb_out_flush_to(tls *libc.TLS, c uintptr, request Tuint64_t) (r int32) {
  6201. bp := tls.Alloc(16)
  6202. defer tls.Free(16)
  6203. var _ /* vec at bp+0 */ Tiovec
  6204. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written-request) >= 0 {
  6205. return int32(1)
  6206. }
  6207. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len != 0 {
  6208. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_base = c + 4400 + 124
  6209. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  6210. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  6211. return X_xcb_out_send(tls, c, bp, int32(1))
  6212. }
  6213. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0 {
  6214. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  6215. }
  6216. return int32(1)
  6217. }
  6218. const m_INT32_MAX1 = 2147483647
  6219. const m_MSG_CTRUNC1 = 8
  6220. const m_MSG_TRUNC1 = 32
  6221. const m_POLLOUT1 = 0x004
  6222. const m_XCB_ERROR = 0
  6223. const m_XCB_REPLY = 1
  6224. const m_XCB_XGE_EVENT = 35
  6225. type Txcb_special_event_t = struct {
  6226. Fnext uintptr
  6227. Fextension Tuint8_t
  6228. Feid Tuint32_t
  6229. Fstamp uintptr
  6230. Fevents uintptr
  6231. Fevents_tail uintptr
  6232. Fspecial_event_cond Tpthread_cond_t
  6233. }
  6234. type Txcb_special_event = Txcb_special_event_t
  6235. type Tevent_list = struct {
  6236. Fevent uintptr
  6237. Fnext uintptr
  6238. }
  6239. type Treply_list = struct {
  6240. Freply uintptr
  6241. Fnext uintptr
  6242. }
  6243. type Tpending_reply = struct {
  6244. Ffirst_request Tuint64_t
  6245. Flast_request Tuint64_t
  6246. Fworkaround _workarounds
  6247. Fflags int32
  6248. Fnext uintptr
  6249. }
  6250. type Treader_list = struct {
  6251. Frequest Tuint64_t
  6252. Fdata uintptr
  6253. Fnext uintptr
  6254. }
  6255. type Tspecial_list = struct {
  6256. Fse uintptr
  6257. Fnext uintptr
  6258. }
  6259. func _remove_finished_readers(tls *libc.TLS, prev_reader uintptr, completed Tuint64_t) {
  6260. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-completed) <= 0 {
  6261. /* If you don't have what you're looking for now, you never
  6262. * will. Wake up and leave me alone. */
  6263. libc.Xpthread_cond_signal(tls, (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fdata)
  6264. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6265. }
  6266. }
  6267. func _read_fds(tls *libc.TLS, c uintptr, fds uintptr, nfd int32) (r int32) {
  6268. var ifds uintptr
  6269. var infd int32
  6270. _, _ = ifds, infd
  6271. ifds = c + 64 + 4256 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4
  6272. infd = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd - (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  6273. if nfd > infd {
  6274. return 0
  6275. }
  6276. libc.Xmemcpy(tls, fds, ifds, libc.Uint64FromInt32(nfd)*uint64(4))
  6277. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd += nfd
  6278. return int32(1)
  6279. }
  6280. type Txcb_ge_special_event_t = struct {
  6281. Fresponse_type Tuint8_t
  6282. Fextension Tuint8_t
  6283. Fsequence Tuint16_t
  6284. Flength Tuint32_t
  6285. Fevtype Tuint16_t
  6286. Fpad0 [2]Tuint8_t
  6287. Feid Tuint32_t
  6288. Fpad1 [16]Tuint8_t
  6289. }
  6290. func _event_special(tls *libc.TLS, c uintptr, event uintptr) (r int32) {
  6291. var ges, special_event uintptr
  6292. _, _ = ges, special_event
  6293. ges = (*Tevent_list)(unsafe.Pointer(event)).Fevent
  6294. /* Special events are always XGE events */
  6295. if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fresponse_type)&int32(0x7f) != int32(m_XCB_XGE_EVENT) {
  6296. return 0
  6297. }
  6298. special_event = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6299. for {
  6300. if !(special_event != 0) {
  6301. break
  6302. }
  6303. 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 {
  6304. *(*uintptr)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail)) = event
  6305. (*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail = event + 8
  6306. if (*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp != 0 {
  6307. *(*Tuint32_t)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp))++
  6308. }
  6309. libc.Xpthread_cond_signal(tls, special_event+40)
  6310. return int32(1)
  6311. }
  6312. goto _1
  6313. _1:
  6314. ;
  6315. special_event = (*Txcb_special_event)(unsafe.Pointer(special_event)).Fnext
  6316. }
  6317. return 0
  6318. }
  6319. func _read_packet(tls *libc.TLS, c uintptr) (r int32) {
  6320. bp := tls.Alloc(16)
  6321. defer tls.Free(16)
  6322. var buf, cur, event, oldpend, p, pend uintptr
  6323. var bufsize, eventlength, lastread, length Tuint64_t
  6324. var nfd int32
  6325. var v1 uint64
  6326. var _ /* genrep at bp+0 */ Txcb_generic_reply_t
  6327. _, _, _, _, _, _, _, _, _, _, _, _ = buf, bufsize, cur, event, eventlength, lastread, length, nfd, oldpend, p, pend, v1
  6328. length = uint64(32)
  6329. eventlength = uint64(0) /* length after first 32 bytes for GenericEvents */
  6330. nfd = 0
  6331. pend = uintptr(0)
  6332. /* Wait for there to be enough data for us to read a whole packet */
  6333. if libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len) < length {
  6334. return 0
  6335. }
  6336. /* Get the response type, length, and sequence number. */
  6337. libc.Xmemcpy(tls, bp, c+64+52, uint64(8))
  6338. /* Compute 32-bit sequence number of this packet. */
  6339. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) != int32(m_XCB_KEYMAP_NOTIFY) {
  6340. lastread = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6341. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read = lastread&uint64(0xffffffffffff0000) | uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fsequence)
  6342. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-lastread) < 0 {
  6343. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read += uint64(0x10000)
  6344. }
  6345. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) > 0 {
  6346. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6347. }
  6348. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read != lastread {
  6349. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6350. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(lastread), (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply)
  6351. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = uintptr(0)
  6352. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6353. }
  6354. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read - uint64(1)
  6355. }
  6356. 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 {
  6357. oldpend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6358. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies = (*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext
  6359. if !((*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext != 0) {
  6360. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = c + 64 + 4240
  6361. }
  6362. libc.Xfree(tls, oldpend)
  6363. }
  6364. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR {
  6365. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6366. }
  6367. _remove_finished_readers(tls, c+64+4224, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed)
  6368. }
  6369. 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) {
  6370. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6371. 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)) {
  6372. pend = uintptr(0)
  6373. }
  6374. }
  6375. /* For reply packets, check that the entire packet is available. */
  6376. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6377. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG) {
  6378. p = c + 64 + 52
  6379. (*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength = *(*Tuint32_t)(unsafe.Pointer(p + 2*4)) * *(*Tuint32_t)(unsafe.Pointer(p + 3*4)) * uint32(2)
  6380. }
  6381. length += uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength * uint32(4))
  6382. /* XXX a bit of a hack -- we "know" that all FD replys place
  6383. * the number of fds in the pad0 byte */
  6384. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_REPLY_FDS) != 0 {
  6385. nfd = libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fpad0)
  6386. }
  6387. }
  6388. /* XGE events may have sizes > 32 */
  6389. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) == int32(m_XCB_XGE_EVENT) {
  6390. eventlength = uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength * uint32(4))
  6391. }
  6392. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6393. v1 = uint64(0)
  6394. } else {
  6395. v1 = uint64(4)
  6396. }
  6397. bufsize = length + eventlength + libc.Uint64FromInt32(nfd)*uint64(4) + v1
  6398. if bufsize < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT32_MAX1)) {
  6399. buf = libc.Xmalloc(tls, bufsize)
  6400. } else {
  6401. buf = libc.UintptrFromInt32(0)
  6402. }
  6403. if !(buf != 0) {
  6404. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6405. return 0
  6406. }
  6407. if X_xcb_in_read_block(tls, c, buf, libc.Int32FromUint64(length)) <= 0 {
  6408. libc.Xfree(tls, buf)
  6409. return 0
  6410. }
  6411. /* pull in XGE event data if available, append after event struct */
  6412. if eventlength != 0 {
  6413. if X_xcb_in_read_block(tls, c, buf+1*36, libc.Int32FromUint64(eventlength)) <= 0 {
  6414. libc.Xfree(tls, buf)
  6415. return 0
  6416. }
  6417. }
  6418. if nfd != 0 {
  6419. if !(_read_fds(tls, c, buf+uintptr(length), nfd) != 0) {
  6420. libc.Xfree(tls, buf)
  6421. return 0
  6422. }
  6423. }
  6424. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_DISCARD_REPLY) != 0 {
  6425. libc.Xfree(tls, buf)
  6426. return int32(1)
  6427. }
  6428. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) != int32(m_XCB_REPLY) {
  6429. (*Txcb_generic_event_t)(unsafe.Pointer(buf)).Ffull_sequence = uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read)
  6430. }
  6431. /* reply, or checked error */
  6432. 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 {
  6433. cur = libc.Xmalloc(tls, uint64(16))
  6434. if !(cur != 0) {
  6435. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6436. libc.Xfree(tls, buf)
  6437. return 0
  6438. }
  6439. (*Treply_list)(unsafe.Pointer(cur)).Freply = buf
  6440. (*Treply_list)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  6441. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail)) = cur
  6442. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = cur + 8
  6443. 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 {
  6444. libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  6445. }
  6446. return int32(1)
  6447. }
  6448. /* event, or unchecked error */
  6449. event = libc.Xmalloc(tls, uint64(16))
  6450. if !(event != 0) {
  6451. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6452. libc.Xfree(tls, buf)
  6453. return 0
  6454. }
  6455. (*Tevent_list)(unsafe.Pointer(event)).Fevent = buf
  6456. (*Tevent_list)(unsafe.Pointer(event)).Fnext = uintptr(0)
  6457. if !(_event_special(tls, c, event) != 0) {
  6458. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail)) = event
  6459. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = event + 8
  6460. libc.Xpthread_cond_signal(tls, c+64)
  6461. }
  6462. return int32(1) /* I have something for you... */
  6463. }
  6464. func _get_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6465. var cur, ret uintptr
  6466. _, _ = cur, ret
  6467. cur = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents
  6468. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents != 0) {
  6469. return uintptr(0)
  6470. }
  6471. ret = (*Tevent_list)(unsafe.Pointer(cur)).Fevent
  6472. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents = (*Tevent_list)(unsafe.Pointer(cur)).Fnext
  6473. if !((*Tevent_list)(unsafe.Pointer(cur)).Fnext != 0) {
  6474. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = c + 64 + 4208
  6475. }
  6476. libc.Xfree(tls, cur)
  6477. return ret
  6478. }
  6479. func _free_reply_list(tls *libc.TLS, head uintptr) {
  6480. var cur uintptr
  6481. _ = cur
  6482. for head != 0 {
  6483. cur = head
  6484. head = (*Treply_list)(unsafe.Pointer(cur)).Fnext
  6485. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(cur)).Freply)
  6486. libc.Xfree(tls, cur)
  6487. }
  6488. }
  6489. func _read_block(tls *libc.TLS, fd int32, buf uintptr, len1 Tssize_t) (r int32) {
  6490. bp := tls.Alloc(16)
  6491. defer tls.Free(16)
  6492. var done, ret int32
  6493. var _ /* pfd at bp+0 */ Tpollfd
  6494. _, _ = done, ret
  6495. done = 0
  6496. for int64(done) < len1 {
  6497. ret = int32(libc.Xrecv(tls, fd, buf+uintptr(done), libc.Uint64FromInt64(len1-int64(done)), 0))
  6498. if ret > 0 {
  6499. done += ret
  6500. }
  6501. if ret < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  6502. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = fd
  6503. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  6504. (*(*Tpollfd)(unsafe.Pointer(bp))).Frevents = 0
  6505. for cond := true; cond; cond = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  6506. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  6507. }
  6508. }
  6509. if ret <= 0 {
  6510. return ret
  6511. }
  6512. }
  6513. return int32(len1)
  6514. }
  6515. func _poll_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6516. var head uintptr
  6517. _ = head
  6518. /* If an error occurred when issuing the request, fail immediately. */
  6519. if !(request != 0) {
  6520. head = uintptr(0)
  6521. } else {
  6522. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) < 0 {
  6523. head = X_xcb_map_remove(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(request))
  6524. if head != 0 && (*Treply_list)(unsafe.Pointer(head)).Fnext != 0 {
  6525. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, uint32(request), (*Treply_list)(unsafe.Pointer(head)).Fnext)
  6526. }
  6527. } else {
  6528. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6529. head = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply
  6530. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = (*Treply_list)(unsafe.Pointer(head)).Fnext
  6531. if !((*Treply_list)(unsafe.Pointer(head)).Fnext != 0) {
  6532. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6533. }
  6534. } else {
  6535. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed {
  6536. head = uintptr(0)
  6537. } else {
  6538. return 0
  6539. }
  6540. }
  6541. }
  6542. }
  6543. if error1 != 0 {
  6544. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6545. }
  6546. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6547. if head != 0 {
  6548. if libc.Int32FromUint8((*Txcb_generic_reply_t)(unsafe.Pointer((*Treply_list)(unsafe.Pointer(head)).Freply)).Fresponse_type) == m_XCB_ERROR {
  6549. if error1 != 0 {
  6550. *(*uintptr)(unsafe.Pointer(error1)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6551. } else {
  6552. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(head)).Freply)
  6553. }
  6554. } else {
  6555. *(*uintptr)(unsafe.Pointer(reply)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6556. }
  6557. libc.Xfree(tls, head)
  6558. }
  6559. return int32(1)
  6560. }
  6561. func _insert_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr, request Tuint64_t, cond uintptr) {
  6562. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-request) <= 0 {
  6563. prev_reader = *(*uintptr)(unsafe.Pointer(prev_reader)) + 16
  6564. }
  6565. (*Treader_list)(unsafe.Pointer(reader)).Frequest = request
  6566. (*Treader_list)(unsafe.Pointer(reader)).Fdata = cond
  6567. (*Treader_list)(unsafe.Pointer(reader)).Fnext = *(*uintptr)(unsafe.Pointer(prev_reader))
  6568. *(*uintptr)(unsafe.Pointer(prev_reader)) = reader
  6569. }
  6570. func _remove_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr) {
  6571. 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 {
  6572. if *(*uintptr)(unsafe.Pointer(prev_reader)) == reader {
  6573. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6574. break
  6575. }
  6576. }
  6577. }
  6578. func _insert_special(tls *libc.TLS, prev_special uintptr, special uintptr, se uintptr) {
  6579. (*Tspecial_list)(unsafe.Pointer(special)).Fse = se
  6580. (*Tspecial_list)(unsafe.Pointer(special)).Fnext = *(*uintptr)(unsafe.Pointer(prev_special))
  6581. *(*uintptr)(unsafe.Pointer(prev_special)) = special
  6582. }
  6583. func _remove_special(tls *libc.TLS, prev_special uintptr, special uintptr) {
  6584. for *(*uintptr)(unsafe.Pointer(prev_special)) != 0 {
  6585. if *(*uintptr)(unsafe.Pointer(prev_special)) == special {
  6586. *(*uintptr)(unsafe.Pointer(prev_special)) = (*Tspecial_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_special)))).Fnext
  6587. break
  6588. }
  6589. prev_special = *(*uintptr)(unsafe.Pointer(prev_special)) + 8
  6590. }
  6591. }
  6592. func _wait_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6593. bp := tls.Alloc(80)
  6594. defer tls.Free(80)
  6595. var _ /* cond at bp+8 */ Tpthread_cond_t
  6596. var _ /* reader at bp+56 */ Treader_list
  6597. var _ /* ret at bp+0 */ uintptr
  6598. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6599. /* If this request has not been written yet, write it. */
  6600. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 || X_xcb_out_flush_to(tls, c, request) != 0 {
  6601. *(*Tpthread_cond_t)(unsafe.Pointer(bp + 8)) = Tpthread_cond_t{}
  6602. *(*int32)(unsafe.Pointer(bp + 8)) = 0
  6603. _insert_reader(tls, c+64+4224, bp+56, request, bp+8)
  6604. for !(_poll_for_reply(tls, c, request, bp, e) != 0) {
  6605. if !(X_xcb_conn_wait(tls, c, bp+8, uintptr(0), uintptr(0)) != 0) {
  6606. break
  6607. }
  6608. }
  6609. _remove_reader(tls, c+64+4224, bp+56)
  6610. libc.Xpthread_cond_destroy(tls, bp+8)
  6611. }
  6612. X_xcb_in_wake_up_next_reader(tls, c)
  6613. return *(*uintptr)(unsafe.Pointer(bp))
  6614. }
  6615. func _widen(tls *libc.TLS, c uintptr, request uint32) (r Tuint64_t) {
  6616. var widened_request Tuint64_t
  6617. _ = widened_request
  6618. widened_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest&uint64(0xffffffff00000000) | uint64(request)
  6619. if widened_request > (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest {
  6620. widened_request -= libc.Uint64FromUint64(1) << libc.Int32FromInt32(32)
  6621. }
  6622. return widened_request
  6623. }
  6624. /* Public interface */
  6625. func Xxcb_wait_for_reply(tls *libc.TLS, c uintptr, request uint32, e uintptr) (r uintptr) {
  6626. var ret uintptr
  6627. _ = ret
  6628. if e != 0 {
  6629. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6630. }
  6631. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6632. return uintptr(0)
  6633. }
  6634. libc.Xpthread_mutex_lock(tls, c+24)
  6635. ret = _wait_for_reply(tls, c, _widen(tls, c, request), e)
  6636. libc.Xpthread_mutex_unlock(tls, c+24)
  6637. return ret
  6638. }
  6639. func Xxcb_wait_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6640. var ret uintptr
  6641. _ = ret
  6642. if e != 0 {
  6643. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6644. }
  6645. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6646. return uintptr(0)
  6647. }
  6648. libc.Xpthread_mutex_lock(tls, c+24)
  6649. ret = _wait_for_reply(tls, c, request, e)
  6650. libc.Xpthread_mutex_unlock(tls, c+24)
  6651. return ret
  6652. }
  6653. func Xxcb_get_reply_fds(tls *libc.TLS, c uintptr, reply uintptr, reply_size Tsize_t) (r uintptr) {
  6654. return reply + uintptr(reply_size)
  6655. }
  6656. func _insert_pending_discard(tls *libc.TLS, c uintptr, prev_next uintptr, seq Tuint64_t) {
  6657. var pend uintptr
  6658. _ = pend
  6659. pend = libc.Xmalloc(tls, uint64(32))
  6660. if !(pend != 0) {
  6661. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6662. return
  6663. }
  6664. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = seq
  6665. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = seq
  6666. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = 0
  6667. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = int32(_XCB_REQUEST_DISCARD_REPLY)
  6668. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = *(*uintptr)(unsafe.Pointer(prev_next))
  6669. *(*uintptr)(unsafe.Pointer(prev_next)) = pend
  6670. if !((*Tpending_reply)(unsafe.Pointer(pend)).Fnext != 0) {
  6671. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  6672. }
  6673. }
  6674. func _discard_reply(tls *libc.TLS, c uintptr, request Tuint64_t) {
  6675. bp := tls.Alloc(16)
  6676. defer tls.Free(16)
  6677. var prev_pend uintptr
  6678. var _ /* reply at bp+0 */ uintptr
  6679. _ = prev_pend
  6680. /* Free any replies or errors that we've already read. Stop if
  6681. * xcb_wait_for_reply would block or we've run out of replies. */
  6682. for _poll_for_reply(tls, c, request, bp, uintptr(0)) != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
  6683. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp)))
  6684. }
  6685. /* If we've proven there are no more responses coming, we're done. */
  6686. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
  6687. return
  6688. }
  6689. /* Walk the list of pending requests. Mark the first match for deletion. */
  6690. prev_pend = c + 64 + 4240
  6691. for {
  6692. if !(*(*uintptr)(unsafe.Pointer(prev_pend)) != 0) {
  6693. break
  6694. }
  6695. if libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request-request) > 0 {
  6696. break
  6697. }
  6698. if (*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request == request {
  6699. /* Pending reply found. Mark for discard: */
  6700. *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)) + 20)) |= int32(_XCB_REQUEST_DISCARD_REPLY)
  6701. return
  6702. }
  6703. goto _1
  6704. _1:
  6705. ;
  6706. prev_pend = *(*uintptr)(unsafe.Pointer(prev_pend)) + 24
  6707. }
  6708. /* Pending reply not found (likely due to _unchecked request). Create one: */
  6709. _insert_pending_discard(tls, c, prev_pend, request)
  6710. }
  6711. func Xxcb_discard_reply(tls *libc.TLS, c uintptr, sequence uint32) {
  6712. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6713. return
  6714. }
  6715. /* If an error occurred when issuing the request, fail immediately. */
  6716. if !(sequence != 0) {
  6717. return
  6718. }
  6719. libc.Xpthread_mutex_lock(tls, c+24)
  6720. _discard_reply(tls, c, _widen(tls, c, sequence))
  6721. libc.Xpthread_mutex_unlock(tls, c+24)
  6722. }
  6723. func Xxcb_discard_reply64(tls *libc.TLS, c uintptr, sequence Tuint64_t) {
  6724. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6725. return
  6726. }
  6727. /* If an error occurred when issuing the request, fail immediately. */
  6728. if !(sequence != 0) {
  6729. return
  6730. }
  6731. libc.Xpthread_mutex_lock(tls, c+24)
  6732. _discard_reply(tls, c, sequence)
  6733. libc.Xpthread_mutex_unlock(tls, c+24)
  6734. }
  6735. func Xxcb_poll_for_reply(tls *libc.TLS, c uintptr, request uint32, reply uintptr, error1 uintptr) (r int32) {
  6736. var ret int32
  6737. _ = ret
  6738. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6739. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6740. if error1 != 0 {
  6741. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6742. }
  6743. return int32(1) /* would not block */
  6744. }
  6745. libc.Xpthread_mutex_lock(tls, c+24)
  6746. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6747. 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 */
  6748. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6749. }
  6750. libc.Xpthread_mutex_unlock(tls, c+24)
  6751. return ret
  6752. }
  6753. func Xxcb_poll_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6754. var ret int32
  6755. _ = ret
  6756. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6757. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6758. if error1 != 0 {
  6759. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6760. }
  6761. return int32(1) /* would not block */
  6762. }
  6763. libc.Xpthread_mutex_lock(tls, c+24)
  6764. ret = _poll_for_reply(tls, c, request, reply, error1)
  6765. 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 */
  6766. ret = _poll_for_reply(tls, c, request, reply, error1)
  6767. }
  6768. libc.Xpthread_mutex_unlock(tls, c+24)
  6769. return ret
  6770. }
  6771. func Xxcb_wait_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6772. var ret, v1 uintptr
  6773. _, _ = ret, v1
  6774. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6775. return uintptr(0)
  6776. }
  6777. libc.Xpthread_mutex_lock(tls, c+24)
  6778. /* get_event returns 0 on empty list. */
  6779. for {
  6780. v1 = _get_event(tls, c)
  6781. ret = v1
  6782. if !!(v1 != 0) {
  6783. break
  6784. }
  6785. if !(X_xcb_conn_wait(tls, c, c+64, uintptr(0), uintptr(0)) != 0) {
  6786. break
  6787. }
  6788. }
  6789. X_xcb_in_wake_up_next_reader(tls, c)
  6790. libc.Xpthread_mutex_unlock(tls, c+24)
  6791. return ret
  6792. }
  6793. func _poll_for_next_event(tls *libc.TLS, c uintptr, queued int32) (r uintptr) {
  6794. var ret uintptr
  6795. _ = ret
  6796. ret = uintptr(0)
  6797. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
  6798. libc.Xpthread_mutex_lock(tls, c+24)
  6799. /* FIXME: follow X meets Z architecture changes. */
  6800. ret = _get_event(tls, c)
  6801. 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 */
  6802. ret = _get_event(tls, c)
  6803. }
  6804. libc.Xpthread_mutex_unlock(tls, c+24)
  6805. }
  6806. return ret
  6807. }
  6808. func Xxcb_poll_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6809. return _poll_for_next_event(tls, c, 0)
  6810. }
  6811. func Xxcb_poll_for_queued_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6812. return _poll_for_next_event(tls, c, int32(1))
  6813. }
  6814. func Xxcb_request_check(tls *libc.TLS, c uintptr, cookie Txcb_void_cookie_t) (r uintptr) {
  6815. bp := tls.Alloc(16)
  6816. defer tls.Free(16)
  6817. var reply uintptr
  6818. var request Tuint64_t
  6819. var _ /* ret at bp+0 */ uintptr
  6820. _, _ = reply, request
  6821. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6822. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6823. return uintptr(0)
  6824. }
  6825. libc.Xpthread_mutex_lock(tls, c+24)
  6826. request = _widen(tls, c, cookie.Fsequence)
  6827. 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 {
  6828. X_xcb_out_send_sync(tls, c)
  6829. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6830. }
  6831. reply = _wait_for_reply(tls, c, request, bp)
  6832. libc.Xpthread_mutex_unlock(tls, c+24)
  6833. return *(*uintptr)(unsafe.Pointer(bp))
  6834. }
  6835. func _get_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6836. var event, events, v1, v2 uintptr
  6837. _, _, _, _ = event, events, v1, v2
  6838. event = libc.UintptrFromInt32(0)
  6839. v1 = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6840. events = v1
  6841. if v1 != libc.UintptrFromInt32(0) {
  6842. event = (*Tevent_list)(unsafe.Pointer(events)).Fevent
  6843. v2 = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6844. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = v2
  6845. if !(v2 != 0) {
  6846. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6847. }
  6848. libc.Xfree(tls, events)
  6849. }
  6850. return event
  6851. }
  6852. func Xxcb_poll_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6853. var event uintptr
  6854. _ = event
  6855. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6856. return uintptr(0)
  6857. }
  6858. libc.Xpthread_mutex_lock(tls, c+24)
  6859. event = _get_special_event(tls, c, se)
  6860. 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 */
  6861. event = _get_special_event(tls, c, se)
  6862. }
  6863. libc.Xpthread_mutex_unlock(tls, c+24)
  6864. return event
  6865. }
  6866. func Xxcb_wait_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6867. bp := tls.Alloc(16)
  6868. defer tls.Free(16)
  6869. var event, v1 uintptr
  6870. var _ /* special at bp+0 */ Tspecial_list
  6871. _, _ = event, v1
  6872. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6873. return uintptr(0)
  6874. }
  6875. libc.Xpthread_mutex_lock(tls, c+24)
  6876. _insert_special(tls, c+64+4232, bp, se)
  6877. /* get_special_event returns 0 on empty list. */
  6878. for {
  6879. v1 = _get_special_event(tls, c, se)
  6880. event = v1
  6881. if !!(v1 != 0) {
  6882. break
  6883. }
  6884. if !(X_xcb_conn_wait(tls, c, se+40, uintptr(0), uintptr(0)) != 0) {
  6885. break
  6886. }
  6887. }
  6888. _remove_special(tls, c+64+4232, bp)
  6889. X_xcb_in_wake_up_next_reader(tls, c)
  6890. libc.Xpthread_mutex_unlock(tls, c+24)
  6891. return event
  6892. }
  6893. func Xxcb_register_for_special_xge(tls *libc.TLS, c uintptr, ext uintptr, eid Tuint32_t, stamp uintptr) (r uintptr) {
  6894. var ext_reply, se uintptr
  6895. _, _ = ext_reply, se
  6896. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6897. return libc.UintptrFromInt32(0)
  6898. }
  6899. ext_reply = Xxcb_get_extension_data(tls, c, ext)
  6900. if !(ext_reply != 0) {
  6901. return libc.UintptrFromInt32(0)
  6902. }
  6903. libc.Xpthread_mutex_lock(tls, c+24)
  6904. se = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6905. for {
  6906. if !(se != 0) {
  6907. break
  6908. }
  6909. 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 {
  6910. libc.Xpthread_mutex_unlock(tls, c+24)
  6911. return libc.UintptrFromInt32(0)
  6912. }
  6913. goto _1
  6914. _1:
  6915. ;
  6916. se = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6917. }
  6918. se = libc.Xcalloc(tls, uint64(1), uint64(88))
  6919. if !(se != 0) {
  6920. libc.Xpthread_mutex_unlock(tls, c+24)
  6921. return libc.UintptrFromInt32(0)
  6922. }
  6923. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension = (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode
  6924. (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid = eid
  6925. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = libc.UintptrFromInt32(0)
  6926. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6927. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fstamp = stamp
  6928. libc.Xpthread_cond_init(tls, se+40, uintptr(0))
  6929. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6930. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events = se
  6931. libc.Xpthread_mutex_unlock(tls, c+24)
  6932. return se
  6933. }
  6934. func Xxcb_unregister_for_special_event(tls *libc.TLS, c uintptr, se uintptr) {
  6935. var events, next, prev, s, v2 uintptr
  6936. _, _, _, _, _ = events, next, prev, s, v2
  6937. if !(se != 0) {
  6938. return
  6939. }
  6940. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6941. return
  6942. }
  6943. libc.Xpthread_mutex_lock(tls, c+24)
  6944. prev = c + 64 + 4328
  6945. for {
  6946. v2 = *(*uintptr)(unsafe.Pointer(prev))
  6947. s = v2
  6948. if !(v2 != libc.UintptrFromInt32(0)) {
  6949. break
  6950. }
  6951. if s == se {
  6952. *(*uintptr)(unsafe.Pointer(prev)) = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6953. events = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6954. for {
  6955. if !(events != 0) {
  6956. break
  6957. }
  6958. next = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6959. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(events)).Fevent)
  6960. libc.Xfree(tls, events)
  6961. goto _3
  6962. _3:
  6963. ;
  6964. events = next
  6965. }
  6966. libc.Xpthread_cond_destroy(tls, se+40)
  6967. libc.Xfree(tls, se)
  6968. break
  6969. }
  6970. goto _1
  6971. _1:
  6972. ;
  6973. prev = s
  6974. }
  6975. libc.Xpthread_mutex_unlock(tls, c+24)
  6976. }
  6977. /* Private interface */
  6978. func X_xcb_in_init(tls *libc.TLS, in uintptr) (r int32) {
  6979. if libc.Xpthread_cond_init(tls, in, uintptr(0)) != 0 {
  6980. return 0
  6981. }
  6982. (*T_xcb_in)(unsafe.Pointer(in)).Freading = 0
  6983. (*T_xcb_in)(unsafe.Pointer(in)).Fqueue_len = 0
  6984. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_read = uint64(0)
  6985. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_completed = uint64(0)
  6986. (*T_xcb_in)(unsafe.Pointer(in)).Freplies = X_xcb_map_new(tls)
  6987. if !((*T_xcb_in)(unsafe.Pointer(in)).Freplies != 0) {
  6988. return 0
  6989. }
  6990. (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply_tail = in + 4184
  6991. (*T_xcb_in)(unsafe.Pointer(in)).Fevents_tail = in + 4208
  6992. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies_tail = in + 4240
  6993. return int32(1)
  6994. }
  6995. func X_xcb_in_destroy(tls *libc.TLS, in uintptr) {
  6996. var e, pend uintptr
  6997. _, _ = e, pend
  6998. libc.Xpthread_cond_destroy(tls, in)
  6999. _free_reply_list(tls, (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply)
  7000. X_xcb_map_delete(tls, (*T_xcb_in)(unsafe.Pointer(in)).Freplies, __ccgo_fp(_free_reply_list))
  7001. for (*T_xcb_in)(unsafe.Pointer(in)).Fevents != 0 {
  7002. e = (*T_xcb_in)(unsafe.Pointer(in)).Fevents
  7003. (*T_xcb_in)(unsafe.Pointer(in)).Fevents = (*Tevent_list)(unsafe.Pointer(e)).Fnext
  7004. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(e)).Fevent)
  7005. libc.Xfree(tls, e)
  7006. }
  7007. for (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies != 0 {
  7008. pend = (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies
  7009. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies = (*Tpending_reply)(unsafe.Pointer(pend)).Fnext
  7010. libc.Xfree(tls, pend)
  7011. }
  7012. }
  7013. func X_xcb_in_wake_up_next_reader(tls *libc.TLS, c uintptr) {
  7014. var pthreadret int32
  7015. _ = pthreadret
  7016. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 {
  7017. pthreadret = libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  7018. } else {
  7019. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters != 0 {
  7020. pthreadret = libc.Xpthread_cond_signal(tls, (*Tspecial_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters)).Fse+40)
  7021. } else {
  7022. pthreadret = libc.Xpthread_cond_signal(tls, c+64)
  7023. }
  7024. }
  7025. }
  7026. func X_xcb_in_expect_reply(tls *libc.TLS, c uintptr, request Tuint64_t, workaround _workarounds, flags int32) (r int32) {
  7027. var pend uintptr
  7028. var v1 Tuint64_t
  7029. _, _ = pend, v1
  7030. pend = libc.Xmalloc(tls, uint64(32))
  7031. if !(pend != 0) {
  7032. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  7033. return 0
  7034. }
  7035. v1 = request
  7036. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = v1
  7037. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = v1
  7038. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = workaround
  7039. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = flags
  7040. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = uintptr(0)
  7041. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail)) = pend
  7042. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  7043. return int32(1)
  7044. }
  7045. func X_xcb_in_replies_done(tls *libc.TLS, c uintptr) {
  7046. var pend, prev_next uintptr
  7047. _, _ = pend, prev_next
  7048. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail != c+64+4240 {
  7049. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail - uintptr(Tsize_t(libc.UintptrFromInt32(0)+24))
  7050. if (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) {
  7051. if libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest) <= 0 {
  7052. (*Tpending_reply1)(unsafe.Pointer(pend)).Flast_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  7053. (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround = int32(_WORKAROUND_NONE)
  7054. } else {
  7055. /* The socket was taken, but no requests were actually sent
  7056. * so just discard the pending_reply that was created.
  7057. */
  7058. prev_next = c + 64 + 4240
  7059. for *(*uintptr)(unsafe.Pointer(prev_next)) != pend {
  7060. prev_next = *(*uintptr)(unsafe.Pointer(prev_next)) + 24
  7061. }
  7062. *(*uintptr)(unsafe.Pointer(prev_next)) = libc.UintptrFromInt32(0)
  7063. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = prev_next
  7064. libc.Xfree(tls, pend)
  7065. }
  7066. }
  7067. }
  7068. }
  7069. func X_xcb_in_read(tls *libc.TLS, c uintptr) (r int32) {
  7070. bp := tls.Alloc(160)
  7071. defer tls.Free(160)
  7072. var hdr, v2, v3 uintptr
  7073. var i, n, nfd int32
  7074. var _ /* cmsgbuf at bp+16 */ struct {
  7075. Fbuf [0][80]uint8
  7076. Fcmsghdr Tcmsghdr
  7077. F__ccgo_pad2 [64]byte
  7078. }
  7079. var _ /* iov at bp+0 */ Tiovec
  7080. var _ /* msg at bp+96 */ Tmsghdr
  7081. _, _, _, _, _, _ = hdr, i, n, nfd, v2, v3
  7082. *(*Tiovec)(unsafe.Pointer(bp)) = Tiovec{
  7083. Fiov_base: c + 64 + 52 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7084. Fiov_len: uint64(4096) - libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7085. }
  7086. *(*Tmsghdr)(unsafe.Pointer(bp + 96)) = Tmsghdr{
  7087. Fmsg_iov: bp,
  7088. Fmsg_iovlen: int32(1),
  7089. Fmsg_control: bp + 16,
  7090. 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))),
  7091. }
  7092. n = int32(libc.Xrecvmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+96, 0))
  7093. /* Check for truncation errors. Only MSG_CTRUNC is
  7094. * probably possible here, which would indicate that
  7095. * the sender tried to transmit more than XCB_MAX_PASS_FD
  7096. * file descriptors.
  7097. */
  7098. if (*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_flags&(libc.Int32FromInt32(m_MSG_TRUNC1)|libc.Int32FromInt32(m_MSG_CTRUNC1)) != 0 {
  7099. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7100. return 0
  7101. }
  7102. if n > 0 {
  7103. if uint64((*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_controllen) >= uint64(16) {
  7104. if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) {
  7105. v2 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control
  7106. } else {
  7107. v2 = libc.UintptrFromInt32(0)
  7108. }
  7109. hdr = v2
  7110. for {
  7111. if !(hdr != 0) {
  7112. break
  7113. }
  7114. if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level == int32(m_SOL_SOCKET) && (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type == int32(m_SCM_RIGHTS) {
  7115. 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))
  7116. 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))
  7117. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd += nfd
  7118. }
  7119. goto _1
  7120. _1:
  7121. ;
  7122. 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)) {
  7123. v3 = uintptr(0)
  7124. } else {
  7125. 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))))
  7126. }
  7127. hdr = v3
  7128. }
  7129. }
  7130. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read += libc.Uint64FromInt32(n)
  7131. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len += n
  7132. }
  7133. for _read_packet(tls, c) != 0 {
  7134. /* empty */
  7135. }
  7136. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7137. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd -= (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  7138. 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))
  7139. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd = 0
  7140. /* If we have any left-over file descriptors after emptying
  7141. * the input buffer, then the server sent some that we weren't
  7142. * expecting. Close them and mark the connection as broken;
  7143. */
  7144. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len == 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7145. i = 0
  7146. for {
  7147. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd) {
  7148. break
  7149. }
  7150. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 64 + 4256 + uintptr(i)*4)))
  7151. goto _4
  7152. _4:
  7153. ;
  7154. i++
  7155. }
  7156. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7157. return 0
  7158. }
  7159. }
  7160. 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)) {
  7161. return int32(1)
  7162. }
  7163. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7164. return 0
  7165. }
  7166. func X_xcb_in_read_block(tls *libc.TLS, c uintptr, buf uintptr, len1 int32) (r int32) {
  7167. var done, ret int32
  7168. _, _ = done, ret
  7169. done = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len
  7170. if len1 < done {
  7171. done = len1
  7172. }
  7173. libc.Xmemcpy(tls, buf, c+64+52, libc.Uint64FromInt32(done))
  7174. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len -= done
  7175. libc.Xmemmove(tls, c+64+52, c+64+52+uintptr(done), libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len))
  7176. if len1 > done {
  7177. ret = _read_block(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, buf+uintptr(done), int64(len1-done))
  7178. if ret <= 0 {
  7179. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7180. return ret
  7181. }
  7182. }
  7183. return len1
  7184. }
  7185. type Tpending_reply1 = struct {
  7186. Ffirst_request Tuint64_t
  7187. Flast_request Tuint64_t
  7188. Fworkaround _workarounds
  7189. Fflags int32
  7190. Fnext uintptr
  7191. }
  7192. type Treader_list1 = struct {
  7193. Frequest Tuint64_t
  7194. Fdata uintptr
  7195. Fnext uintptr
  7196. }
  7197. type Tspecial_list1 = struct {
  7198. Fse uintptr
  7199. Fnext uintptr
  7200. }
  7201. type Txcb_ge_special_event_t1 = struct {
  7202. Fresponse_type Tuint8_t
  7203. Fextension Tuint8_t
  7204. Fsequence Tuint16_t
  7205. Flength Tuint32_t
  7206. Fevtype Tuint16_t
  7207. Fpad0 [2]Tuint8_t
  7208. Feid Tuint32_t
  7209. Fpad1 [16]Tuint8_t
  7210. }
  7211. const m_INT32_MAX2 = 0x7fffffff
  7212. type Tlazyreply = struct {
  7213. Ftag _lazy_reply_tag
  7214. Fvalue struct {
  7215. Freply [0]uintptr
  7216. Fcookie Txcb_query_extension_cookie_t
  7217. F__ccgo_pad2 [4]byte
  7218. }
  7219. }
  7220. func _get_index(tls *libc.TLS, c uintptr, idx int32) (r uintptr) {
  7221. var new_extensions uintptr
  7222. var new_size int32
  7223. _, _ = new_extensions, new_size
  7224. if idx > (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size {
  7225. new_size = idx << int32(1)
  7226. new_extensions = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions, uint64(16)*libc.Uint64FromInt32(new_size))
  7227. if !(new_extensions != 0) {
  7228. return uintptr(0)
  7229. }
  7230. 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))
  7231. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions = new_extensions
  7232. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size = new_size
  7233. }
  7234. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr(idx)*16 - uintptr(1)*16
  7235. }
  7236. func _get_lazyreply(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7237. var data uintptr
  7238. var v1 int32
  7239. _, _ = data, v1
  7240. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7241. if !((*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id != 0) {
  7242. _next_global_id++
  7243. v1 = _next_global_id
  7244. (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id = v1
  7245. }
  7246. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7247. data = _get_index(tls, c, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id)
  7248. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_NONE) {
  7249. /* cache miss: query the server */
  7250. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_COOKIE)
  7251. (*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)
  7252. }
  7253. return data
  7254. }
  7255. var _global_lock = Tpthread_mutex_t{}
  7256. var _next_global_id int32
  7257. /* Public interface */
  7258. // C documentation
  7259. //
  7260. // /* Do not free the returned xcb_query_extension_reply_t - on return, it's aliased
  7261. // * from the cache. */
  7262. func Xxcb_get_extension_data(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7263. var data, v1 uintptr
  7264. _, _ = data, v1
  7265. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7266. return uintptr(0)
  7267. }
  7268. libc.Xpthread_mutex_lock(tls, c+21056)
  7269. data = _get_lazyreply(tls, c, ext)
  7270. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_COOKIE) {
  7271. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_FORCED)
  7272. *(*uintptr)(unsafe.Pointer(data + 8)) = Xxcb_query_extension_reply(tls, c, (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie, uintptr(0))
  7273. }
  7274. libc.Xpthread_mutex_unlock(tls, c+21056)
  7275. if data != 0 {
  7276. v1 = *(*uintptr)(unsafe.Pointer(data + 8))
  7277. } else {
  7278. v1 = uintptr(0)
  7279. }
  7280. return v1
  7281. }
  7282. func Xxcb_prefetch_extension_data(tls *libc.TLS, c uintptr, ext uintptr) {
  7283. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7284. return
  7285. }
  7286. libc.Xpthread_mutex_lock(tls, c+21056)
  7287. _get_lazyreply(tls, c, ext)
  7288. libc.Xpthread_mutex_unlock(tls, c+21056)
  7289. }
  7290. /* Private interface */
  7291. func X_xcb_ext_init(tls *libc.TLS, c uintptr) (r int32) {
  7292. if libc.Xpthread_mutex_init(tls, c+21056, uintptr(0)) != 0 {
  7293. return 0
  7294. }
  7295. return int32(1)
  7296. }
  7297. func X_xcb_ext_destroy(tls *libc.TLS, c uintptr) {
  7298. var v1 int32
  7299. var v2 uintptr
  7300. _, _ = v1, v2
  7301. libc.Xpthread_mutex_destroy(tls, c+21056)
  7302. for {
  7303. v2 = c + 21056 + 48
  7304. v1 = *(*int32)(unsafe.Pointer(v2))
  7305. *(*int32)(unsafe.Pointer(v2))--
  7306. if !(v1 > 0) {
  7307. break
  7308. }
  7309. 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) {
  7310. 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)))
  7311. }
  7312. }
  7313. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions)
  7314. }
  7315. type Tlazyreply1 = struct {
  7316. Ftag _lazy_reply_tag
  7317. Fvalue struct {
  7318. Freply [0]uintptr
  7319. Fcookie Txcb_query_extension_cookie_t
  7320. F__ccgo_pad2 [4]byte
  7321. }
  7322. }
  7323. const m_XCB_XCMISC_MAJOR_VERSION = 1
  7324. const m_XCB_XCMISC_MINOR_VERSION = 1
  7325. const m_XCB_XC_MISC_GET_VERSION = 0
  7326. const m_XCB_XC_MISC_GET_XID_LIST = 2
  7327. const m_XCB_XC_MISC_GET_XID_RANGE = 1
  7328. type Txcb_xc_misc_get_version_cookie_t = struct {
  7329. Fsequence uint32
  7330. }
  7331. type Txcb_xc_misc_get_version_request_t = struct {
  7332. Fmajor_opcode Tuint8_t
  7333. Fminor_opcode Tuint8_t
  7334. Flength Tuint16_t
  7335. Fclient_major_version Tuint16_t
  7336. Fclient_minor_version Tuint16_t
  7337. }
  7338. type Txcb_xc_misc_get_version_reply_t = struct {
  7339. Fresponse_type Tuint8_t
  7340. Fpad0 Tuint8_t
  7341. Fsequence Tuint16_t
  7342. Flength Tuint32_t
  7343. Fserver_major_version Tuint16_t
  7344. Fserver_minor_version Tuint16_t
  7345. }
  7346. type Txcb_xc_misc_get_xid_range_cookie_t = struct {
  7347. Fsequence uint32
  7348. }
  7349. type Txcb_xc_misc_get_xid_range_request_t = struct {
  7350. Fmajor_opcode Tuint8_t
  7351. Fminor_opcode Tuint8_t
  7352. Flength Tuint16_t
  7353. }
  7354. type Txcb_xc_misc_get_xid_range_reply_t = struct {
  7355. Fresponse_type Tuint8_t
  7356. Fpad0 Tuint8_t
  7357. Fsequence Tuint16_t
  7358. Flength Tuint32_t
  7359. Fstart_id Tuint32_t
  7360. Fcount Tuint32_t
  7361. }
  7362. type Txcb_xc_misc_get_xid_list_cookie_t = struct {
  7363. Fsequence uint32
  7364. }
  7365. type Txcb_xc_misc_get_xid_list_request_t = struct {
  7366. Fmajor_opcode Tuint8_t
  7367. Fminor_opcode Tuint8_t
  7368. Flength Tuint16_t
  7369. Fcount Tuint32_t
  7370. }
  7371. type Txcb_xc_misc_get_xid_list_reply_t = struct {
  7372. Fresponse_type Tuint8_t
  7373. Fpad0 Tuint8_t
  7374. Fsequence Tuint16_t
  7375. Flength Tuint32_t
  7376. Fids_len Tuint32_t
  7377. Fpad1 [20]Tuint8_t
  7378. }
  7379. /**
  7380. * @}
  7381. */
  7382. /* Public interface */
  7383. func Xxcb_generate_id(tls *libc.TLS, c uintptr) (r Tuint32_t) {
  7384. var range1, xc_misc_reply uintptr
  7385. var ret Tuint32_t
  7386. _, _, _ = range1, ret, xc_misc_reply
  7387. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7388. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7389. }
  7390. libc.Xpthread_mutex_lock(tls, c+21112)
  7391. 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) {
  7392. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast == uint32(0) {
  7393. /* finish setting up initial range */
  7394. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
  7395. } else {
  7396. /* check for extension */
  7397. xc_misc_reply = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)))
  7398. if !(xc_misc_reply != 0) {
  7399. libc.Xpthread_mutex_unlock(tls, c+21112)
  7400. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7401. }
  7402. /* get new range */
  7403. range1 = Xxcb_xc_misc_get_xid_range_reply(tls, c, Xxcb_xc_misc_get_xid_range(tls, c), uintptr(0))
  7404. /* XXX The latter disjunct is what the server returns
  7405. when it is out of XIDs. Sweet. */
  7406. 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) {
  7407. libc.Xpthread_mutex_unlock(tls, c+21112)
  7408. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7409. }
  7410. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id
  7411. (*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
  7412. libc.Xfree(tls, range1)
  7413. }
  7414. } else {
  7415. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast += (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
  7416. }
  7417. ret = (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast | (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase
  7418. libc.Xpthread_mutex_unlock(tls, c+21112)
  7419. return ret
  7420. }
  7421. /* Private interface */
  7422. func X_xcb_xid_init(tls *libc.TLS, c uintptr) (r int32) {
  7423. if libc.Xpthread_mutex_init(tls, c+21112, uintptr(0)) != 0 {
  7424. return 0
  7425. }
  7426. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = uint32(0)
  7427. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = uint32(0)
  7428. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_base
  7429. (*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
  7430. return int32(1)
  7431. }
  7432. func X_xcb_xid_destroy(tls *libc.TLS, c uintptr) {
  7433. libc.Xpthread_mutex_destroy(tls, c+21112)
  7434. }
  7435. type T_xcb_map = struct {
  7436. Fhead uintptr
  7437. Ftail uintptr
  7438. }
  7439. type Tnode = struct {
  7440. Fnext uintptr
  7441. Fkey uint32
  7442. Fdata uintptr
  7443. }
  7444. type T_xcb_map1 = struct {
  7445. Fhead uintptr
  7446. Ftail uintptr
  7447. }
  7448. /* Private interface */
  7449. func X_xcb_map_new(tls *libc.TLS) (r uintptr) {
  7450. var list uintptr
  7451. _ = list
  7452. list = libc.Xmalloc(tls, uint64(16))
  7453. if !(list != 0) {
  7454. return uintptr(0)
  7455. }
  7456. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = uintptr(0)
  7457. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = list
  7458. return list
  7459. }
  7460. func X_xcb_map_delete(tls *libc.TLS, list uintptr, do_free Txcb_list_free_func_t) {
  7461. var cur uintptr
  7462. _ = cur
  7463. if !(list != 0) {
  7464. return
  7465. }
  7466. for (*T_xcb_map)(unsafe.Pointer(list)).Fhead != 0 {
  7467. cur = (*T_xcb_map)(unsafe.Pointer(list)).Fhead
  7468. if do_free != 0 {
  7469. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{do_free})))(tls, (*Tnode)(unsafe.Pointer(cur)).Fdata)
  7470. }
  7471. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = (*Tnode)(unsafe.Pointer(cur)).Fnext
  7472. libc.Xfree(tls, cur)
  7473. }
  7474. libc.Xfree(tls, list)
  7475. }
  7476. func X_xcb_map_put(tls *libc.TLS, list uintptr, key uint32, data uintptr) (r int32) {
  7477. var cur uintptr
  7478. _ = cur
  7479. cur = libc.Xmalloc(tls, uint64(24))
  7480. if !(cur != 0) {
  7481. return 0
  7482. }
  7483. (*Tnode)(unsafe.Pointer(cur)).Fkey = key
  7484. (*Tnode)(unsafe.Pointer(cur)).Fdata = data
  7485. (*Tnode)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  7486. *(*uintptr)(unsafe.Pointer((*T_xcb_map)(unsafe.Pointer(list)).Ftail)) = cur
  7487. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7488. return int32(1)
  7489. }
  7490. func X_xcb_map_remove(tls *libc.TLS, list uintptr, key uint32) (r uintptr) {
  7491. var cur, ret, tmp uintptr
  7492. _, _, _ = cur, ret, tmp
  7493. cur = list
  7494. for {
  7495. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7496. break
  7497. }
  7498. if (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fkey == key {
  7499. tmp = *(*uintptr)(unsafe.Pointer(cur))
  7500. ret = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fdata
  7501. *(*uintptr)(unsafe.Pointer(cur)) = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fnext
  7502. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7503. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7504. }
  7505. libc.Xfree(tls, tmp)
  7506. return ret
  7507. }
  7508. goto _1
  7509. _1:
  7510. ;
  7511. cur = *(*uintptr)(unsafe.Pointer(cur))
  7512. }
  7513. return uintptr(0)
  7514. }
  7515. const m_AI_ADDRCONFIG = 0x20
  7516. const m_AI_ALL = 0x10
  7517. const m_AI_CANONNAME = 0x02
  7518. const m_AI_NUMERICHOST = 4
  7519. const m_AI_NUMERICSERV = 1024
  7520. const m_AI_PASSIVE = 0x01
  7521. const m_AI_V4MAPPED = 0x08
  7522. const m_HOST_NOT_FOUND = 1
  7523. const m_MSG_CTRUNC2 = 0x0008
  7524. const m_MSG_TRUNC2 = 0x0020
  7525. const m_NI_DGRAM = 0x10
  7526. const m_NI_MAXHOST = 255
  7527. const m_NI_MAXSERV = 32
  7528. const m_NI_NAMEREQD = 0x08
  7529. const m_NI_NOFQDN = 0x04
  7530. const m_NI_NUMERICHOST = 0x01
  7531. const m_NI_NUMERICSCOPE = 0x100
  7532. const m_NI_NUMERICSERV = 0x02
  7533. const m_NO_ADDRESS = "NO_DATA"
  7534. const m_NO_DATA = 4
  7535. const m_NO_RECOVERY = 3
  7536. const m_O_NONBLOCK1 = 04000
  7537. const m_SCM_RIGHTS1 = 0x01
  7538. const m_SOCK_CLOEXEC1 = 524288
  7539. const m_SOL_TCP = 6
  7540. const m_TCPI_OPT_ECN = 8
  7541. const m_TCPI_OPT_SACK = 2
  7542. const m_TCPI_OPT_TIMESTAMPS = 1
  7543. const m_TCPI_OPT_WSCALE = 4
  7544. const m_TCPOLEN_MAXSEG = 4
  7545. const m_TCPOLEN_SACK_PERMITTED = 2
  7546. const m_TCPOLEN_TIMESTAMP = 10
  7547. const m_TCPOLEN_WINDOW = 3
  7548. const m_TCPOPT_EOL = 0
  7549. const m_TCPOPT_MAXSEG = 2
  7550. const m_TCPOPT_NOP = 1
  7551. const m_TCPOPT_SACK = 5
  7552. const m_TCPOPT_SACK_PERMITTED = 4
  7553. const m_TCPOPT_TIMESTAMP = 8
  7554. const m_TCPOPT_WINDOW = 3
  7555. const m_TCP_CA_CWR = 2
  7556. const m_TCP_CA_Disorder = 1
  7557. const m_TCP_CA_Loss = 4
  7558. const m_TCP_CA_Open = 0
  7559. const m_TCP_CA_Recovery = 3
  7560. const m_TCP_CC_INFO = 26
  7561. const m_TCP_CLOSE = 7
  7562. const m_TCP_CLOSE_WAIT = 8
  7563. const m_TCP_CLOSING = 11
  7564. const m_TCP_CM_INQ = "TCP_INQ"
  7565. const m_TCP_CONGESTION = 13
  7566. const m_TCP_CORK = 3
  7567. const m_TCP_DEFER_ACCEPT = 9
  7568. const m_TCP_ESTABLISHED = 1
  7569. const m_TCP_FASTOPEN = 23
  7570. const m_TCP_FASTOPEN_CONNECT = 30
  7571. const m_TCP_FASTOPEN_KEY = 33
  7572. const m_TCP_FASTOPEN_NO_COOKIE = 34
  7573. const m_TCP_FIN_WAIT1 = 4
  7574. const m_TCP_FIN_WAIT2 = 5
  7575. const m_TCP_INFO = 11
  7576. const m_TCP_INQ = 36
  7577. const m_TCP_KEEPCNT = 6
  7578. const m_TCP_KEEPIDLE = 4
  7579. const m_TCP_KEEPINTVL = 5
  7580. const m_TCP_LAST_ACK = 9
  7581. const m_TCP_LINGER2 = 8
  7582. const m_TCP_LISTEN = 10
  7583. const m_TCP_MAXSEG = 2
  7584. const m_TCP_MD5SIG = 14
  7585. const m_TCP_MD5SIG_EXT = 32
  7586. const m_TCP_MD5SIG_FLAG_IFINDEX = 0x2
  7587. const m_TCP_MD5SIG_FLAG_PREFIX = 0x1
  7588. const m_TCP_MD5SIG_MAXKEYLEN = 80
  7589. const m_TCP_NODELAY = 1
  7590. const m_TCP_NOTSENT_LOWAT = 25
  7591. const m_TCP_QUEUE_SEQ = 21
  7592. const m_TCP_QUICKACK = 12
  7593. const m_TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT = 0x1
  7594. const m_TCP_REPAIR = 19
  7595. const m_TCP_REPAIR_OFF = 0
  7596. const m_TCP_REPAIR_ON = 1
  7597. const m_TCP_REPAIR_OPTIONS = 22
  7598. const m_TCP_REPAIR_QUEUE = 20
  7599. const m_TCP_REPAIR_WINDOW = 29
  7600. const m_TCP_SAVED_SYN = 28
  7601. const m_TCP_SAVE_SYN = 27
  7602. const m_TCP_SYNCNT = 7
  7603. const m_TCP_SYN_RECV = 3
  7604. const m_TCP_SYN_SENT = 2
  7605. const m_TCP_THIN_DUPACK = 17
  7606. const m_TCP_THIN_LINEAR_TIMEOUTS = 16
  7607. const m_TCP_TIMESTAMP = 24
  7608. const m_TCP_TIME_WAIT = 6
  7609. const m_TCP_TX_DELAY = 37
  7610. const m_TCP_ULP = 31
  7611. const m_TCP_USER_TIMEOUT = 18
  7612. const m_TCP_WINDOW_CLAMP = 10
  7613. const m_TCP_ZEROCOPY_RECEIVE = 35
  7614. const m_TH_ACK = 0x10
  7615. const m_TH_FIN = 0x01
  7616. const m_TH_PUSH = 0x08
  7617. const m_TH_RST = 0x04
  7618. const m_TH_SYN = 0x02
  7619. const m_TH_URG = 0x20
  7620. const m_TRY_AGAIN = 2
  7621. type Tmax_align_t = struct {
  7622. F__ll int64
  7623. F__ld float64
  7624. }
  7625. type Tptrdiff_t = int64
  7626. type Tsockaddr_un = struct {
  7627. Fsun_family Tsa_family_t
  7628. Fsun_path [108]uint8
  7629. }
  7630. const _TCP_NLA_PAD = 0
  7631. const _TCP_NLA_BUSY = 1
  7632. const _TCP_NLA_RWND_LIMITED = 2
  7633. const _TCP_NLA_SNDBUF_LIMITED = 3
  7634. const _TCP_NLA_DATA_SEGS_OUT = 4
  7635. const _TCP_NLA_TOTAL_RETRANS = 5
  7636. const _TCP_NLA_PACING_RATE = 6
  7637. const _TCP_NLA_DELIVERY_RATE = 7
  7638. const _TCP_NLA_SND_CWND = 8
  7639. const _TCP_NLA_REORDERING = 9
  7640. const _TCP_NLA_MIN_RTT = 10
  7641. const _TCP_NLA_RECUR_RETRANS = 11
  7642. const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12
  7643. const _TCP_NLA_SNDQ_SIZE = 13
  7644. const _TCP_NLA_CA_STATE = 14
  7645. const _TCP_NLA_SND_SSTHRESH = 15
  7646. const _TCP_NLA_DELIVERED = 16
  7647. const _TCP_NLA_DELIVERED_CE = 17
  7648. const _TCP_NLA_BYTES_SENT = 18
  7649. const _TCP_NLA_BYTES_RETRANS = 19
  7650. const _TCP_NLA_DSACK_DUPS = 20
  7651. const _TCP_NLA_REORD_SEEN = 21
  7652. const _TCP_NLA_SRTT = 22
  7653. const _TCP_NLA_TIMEOUT_REHASH = 23
  7654. const _TCP_NLA_BYTES_NOTSENT = 24
  7655. const _TCP_NLA_EDT = 25
  7656. const _TCP_NLA_TTL = 26
  7657. type Ttcp_seq = uint32
  7658. type Ttcphdr = struct {
  7659. F__ccgo0_0 struct {
  7660. F__ccgo1_0 [0]struct {
  7661. Fth_sport Tuint16_t
  7662. Fth_dport Tuint16_t
  7663. Fth_seq Tuint32_t
  7664. Fth_ack Tuint32_t
  7665. F__ccgo12 uint8
  7666. Fth_flags Tuint8_t
  7667. Fth_win Tuint16_t
  7668. Fth_sum Tuint16_t
  7669. Fth_urp Tuint16_t
  7670. }
  7671. F__ccgo0_0 struct {
  7672. Fsource Tuint16_t
  7673. Fdest Tuint16_t
  7674. Fseq Tuint32_t
  7675. Fack_seq Tuint32_t
  7676. F__ccgo12 uint16
  7677. Fwindow Tuint16_t
  7678. Fcheck Tuint16_t
  7679. Furg_ptr Tuint16_t
  7680. }
  7681. }
  7682. }
  7683. type _tcp_fastopen_client_fail = int32
  7684. const _TFO_STATUS_UNSPEC = 0
  7685. const _TFO_COOKIE_UNAVAILABLE = 1
  7686. const _TFO_DATA_NOT_ACKED = 2
  7687. const _TFO_SYN_RETRANSMITTED = 3
  7688. type Ttcp_info = struct {
  7689. Ftcpi_state Tuint8_t
  7690. Ftcpi_ca_state Tuint8_t
  7691. Ftcpi_retransmits Tuint8_t
  7692. Ftcpi_probes Tuint8_t
  7693. Ftcpi_backoff Tuint8_t
  7694. Ftcpi_options Tuint8_t
  7695. F__ccgo6 uint8
  7696. F__ccgo7 uint8
  7697. Ftcpi_rto Tuint32_t
  7698. Ftcpi_ato Tuint32_t
  7699. Ftcpi_snd_mss Tuint32_t
  7700. Ftcpi_rcv_mss Tuint32_t
  7701. Ftcpi_unacked Tuint32_t
  7702. Ftcpi_sacked Tuint32_t
  7703. Ftcpi_lost Tuint32_t
  7704. Ftcpi_retrans Tuint32_t
  7705. Ftcpi_fackets Tuint32_t
  7706. Ftcpi_last_data_sent Tuint32_t
  7707. Ftcpi_last_ack_sent Tuint32_t
  7708. Ftcpi_last_data_recv Tuint32_t
  7709. Ftcpi_last_ack_recv Tuint32_t
  7710. Ftcpi_pmtu Tuint32_t
  7711. Ftcpi_rcv_ssthresh Tuint32_t
  7712. Ftcpi_rtt Tuint32_t
  7713. Ftcpi_rttvar Tuint32_t
  7714. Ftcpi_snd_ssthresh Tuint32_t
  7715. Ftcpi_snd_cwnd Tuint32_t
  7716. Ftcpi_advmss Tuint32_t
  7717. Ftcpi_reordering Tuint32_t
  7718. Ftcpi_rcv_rtt Tuint32_t
  7719. Ftcpi_rcv_space Tuint32_t
  7720. Ftcpi_total_retrans Tuint32_t
  7721. Ftcpi_pacing_rate Tuint64_t
  7722. Ftcpi_max_pacing_rate Tuint64_t
  7723. Ftcpi_bytes_acked Tuint64_t
  7724. Ftcpi_bytes_received Tuint64_t
  7725. Ftcpi_segs_out Tuint32_t
  7726. Ftcpi_segs_in Tuint32_t
  7727. Ftcpi_notsent_bytes Tuint32_t
  7728. Ftcpi_min_rtt Tuint32_t
  7729. Ftcpi_data_segs_in Tuint32_t
  7730. Ftcpi_data_segs_out Tuint32_t
  7731. Ftcpi_delivery_rate Tuint64_t
  7732. Ftcpi_busy_time Tuint64_t
  7733. Ftcpi_rwnd_limited Tuint64_t
  7734. Ftcpi_sndbuf_limited Tuint64_t
  7735. Ftcpi_delivered Tuint32_t
  7736. Ftcpi_delivered_ce Tuint32_t
  7737. Ftcpi_bytes_sent Tuint64_t
  7738. Ftcpi_bytes_retrans Tuint64_t
  7739. Ftcpi_dsack_dups Tuint32_t
  7740. Ftcpi_reord_seen Tuint32_t
  7741. Ftcpi_rcv_ooopack Tuint32_t
  7742. Ftcpi_snd_wnd Tuint32_t
  7743. }
  7744. type Ttcp_md5sig = struct {
  7745. Ftcpm_addr Tsockaddr_storage
  7746. Ftcpm_flags Tuint8_t
  7747. Ftcpm_prefixlen Tuint8_t
  7748. Ftcpm_keylen Tuint16_t
  7749. Ftcpm_ifindex int32
  7750. Ftcpm_key [80]Tuint8_t
  7751. }
  7752. type Ttcp_diag_md5sig = struct {
  7753. Ftcpm_family Tuint8_t
  7754. Ftcpm_prefixlen Tuint8_t
  7755. Ftcpm_keylen Tuint16_t
  7756. Ftcpm_addr [4]Tuint32_t
  7757. Ftcpm_key [80]Tuint8_t
  7758. }
  7759. type Ttcp_repair_window = struct {
  7760. Fsnd_wl1 Tuint32_t
  7761. Fsnd_wnd Tuint32_t
  7762. Fmax_window Tuint32_t
  7763. Frcv_wnd Tuint32_t
  7764. Frcv_wup Tuint32_t
  7765. }
  7766. type Ttcp_zerocopy_receive = struct {
  7767. Faddress Tuint64_t
  7768. Flength Tuint32_t
  7769. Frecv_skip_hint Tuint32_t
  7770. Finq Tuint32_t
  7771. Ferr Tint32_t
  7772. Fcopybuf_address Tuint64_t
  7773. Fcopybuf_len Tint32_t
  7774. Fflags Tuint32_t
  7775. Fmsg_control Tuint64_t
  7776. Fmsg_controllen Tuint64_t
  7777. Fmsg_flags Tuint32_t
  7778. Freserved Tuint32_t
  7779. }
  7780. type Taddrinfo = struct {
  7781. Fai_flags int32
  7782. Fai_family int32
  7783. Fai_socktype int32
  7784. Fai_protocol int32
  7785. Fai_addrlen Tsocklen_t
  7786. Fai_addr uintptr
  7787. Fai_canonname uintptr
  7788. Fai_next uintptr
  7789. }
  7790. type Tnetent = struct {
  7791. Fn_name uintptr
  7792. Fn_aliases uintptr
  7793. Fn_addrtype int32
  7794. Fn_net Tuint32_t
  7795. }
  7796. type Thostent = struct {
  7797. Fh_name uintptr
  7798. Fh_aliases uintptr
  7799. Fh_addrtype int32
  7800. Fh_length int32
  7801. Fh_addr_list uintptr
  7802. }
  7803. type Tservent = struct {
  7804. Fs_name uintptr
  7805. Fs_aliases uintptr
  7806. Fs_port int32
  7807. Fs_proto uintptr
  7808. }
  7809. type Tprotoent = struct {
  7810. Fp_name uintptr
  7811. Fp_aliases uintptr
  7812. Fp_proto int32
  7813. }
  7814. func Xxcb_popcount(tls *libc.TLS, mask Tuint32_t) (r int32) {
  7815. var y Tuint32_t
  7816. _ = y
  7817. y = mask >> libc.Int32FromInt32(1) & uint32(033333333333)
  7818. y = mask - y - y>>libc.Int32FromInt32(1)&uint32(033333333333)
  7819. return libc.Int32FromUint32((y + y>>libc.Int32FromInt32(3)) & uint32(030707070707) % uint32(077))
  7820. }
  7821. func Xxcb_sumof(tls *libc.TLS, list uintptr, len1 int32) (r int32) {
  7822. var i, s int32
  7823. _, _ = i, s
  7824. s = 0
  7825. i = 0
  7826. for {
  7827. if !(i < len1) {
  7828. break
  7829. }
  7830. s += libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(list)))
  7831. list++
  7832. goto _1
  7833. _1:
  7834. ;
  7835. i++
  7836. }
  7837. return s
  7838. }
  7839. func __xcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7840. bp := tls.Alloc(16)
  7841. defer tls.Free(16)
  7842. var colon, slash uintptr
  7843. var display, len1, screen int32
  7844. var _ /* dot at bp+0 */ uintptr
  7845. var _ /* end at bp+8 */ uintptr
  7846. _, _, _, _, _ = colon, display, len1, screen, slash
  7847. if !(name != 0) || !(*(*uint8)(unsafe.Pointer(name)) != 0) {
  7848. name = libc.Xgetenv(tls, __ccgo_ts+4)
  7849. }
  7850. if !(name != 0) {
  7851. return 0
  7852. }
  7853. slash = libc.Xstrrchr(tls, name, int32('/'))
  7854. if slash != 0 {
  7855. len1 = int32(int64(slash) - int64(name))
  7856. if protocol != 0 {
  7857. *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7858. if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
  7859. return 0
  7860. }
  7861. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(protocol)), name, libc.Uint64FromInt32(len1))
  7862. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(protocol)) + uintptr(len1))) = uint8('\000')
  7863. }
  7864. name = slash + uintptr(1)
  7865. } else {
  7866. if protocol != 0 {
  7867. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7868. }
  7869. }
  7870. colon = libc.Xstrrchr(tls, name, int32(':'))
  7871. if !(colon != 0) {
  7872. goto error_out
  7873. }
  7874. len1 = int32(int64(colon) - int64(name))
  7875. colon++
  7876. display = libc.Int32FromUint64(libc.Xstrtoul(tls, colon, bp, int32(10)))
  7877. if *(*uintptr)(unsafe.Pointer(bp)) == colon {
  7878. goto error_out
  7879. }
  7880. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('\000') {
  7881. screen = 0
  7882. } else {
  7883. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('.') {
  7884. goto error_out
  7885. }
  7886. *(*uintptr)(unsafe.Pointer(bp))++
  7887. screen = libc.Int32FromUint64(libc.Xstrtoul(tls, *(*uintptr)(unsafe.Pointer(bp)), bp+8, int32(10)))
  7888. if *(*uintptr)(unsafe.Pointer(bp + 8)) == *(*uintptr)(unsafe.Pointer(bp)) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))) != int32('\000') {
  7889. goto error_out
  7890. }
  7891. }
  7892. /* At this point, the display string is fully parsed and valid, but
  7893. * the caller's memory is untouched. */
  7894. *(*uintptr)(unsafe.Pointer(host)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  7895. if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
  7896. goto error_out
  7897. }
  7898. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(host)), name, libc.Uint64FromInt32(len1))
  7899. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(host)) + uintptr(len1))) = uint8('\000')
  7900. *(*int32)(unsafe.Pointer(displayp)) = display
  7901. if screenp != 0 {
  7902. *(*int32)(unsafe.Pointer(screenp)) = screen
  7903. }
  7904. return int32(1)
  7905. goto error_out
  7906. error_out:
  7907. ;
  7908. if protocol != 0 {
  7909. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(protocol)))
  7910. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  7911. }
  7912. return 0
  7913. }
  7914. func Xxcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7915. return __xcb_parse_display(tls, name, host, libc.UintptrFromInt32(0), displayp, screenp)
  7916. }
  7917. func __xcb_open(tls *libc.TLS, host uintptr, protocol uintptr, display int32) (r int32) {
  7918. bp := tls.Alloc(32)
  7919. defer tls.Free(32)
  7920. var actual_filelen, fd int32
  7921. var base, file uintptr
  7922. var filelen Tsize_t
  7923. var port, port1 uint16
  7924. var v1 uint64
  7925. _, _, _, _, _, _, _, _ = actual_filelen, base, fd, file, filelen, port, port1, v1
  7926. base = uintptr(unsafe.Pointer(&_unix_base))
  7927. file = libc.UintptrFromInt32(0)
  7928. /* If protocol or host is "unix", fall through to Unix socket code below */
  7929. if (!(protocol != 0) || libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) != int32('\000') && libc.Xstrcmp(tls, __ccgo_ts+12, host) != 0 {
  7930. /* display specifies TCP */
  7931. port = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  7932. return __xcb_open_tcp(tls, host, protocol, port)
  7933. }
  7934. filelen = libc.Xstrlen(tls, base) + uint64(1) + libc.Uint64FromInt64(4)*libc.Uint64FromInt32(3) + uint64(1)
  7935. file = libc.Xmalloc(tls, filelen)
  7936. if file == libc.UintptrFromInt32(0) {
  7937. return -int32(1)
  7938. }
  7939. /* display specifies Unix socket */
  7940. actual_filelen = libc.X__builtin_snprintf(tls, file, filelen, __ccgo_ts+17, libc.VaList(bp+8, base, display))
  7941. if actual_filelen < 0 {
  7942. libc.Xfree(tls, file)
  7943. return -int32(1)
  7944. }
  7945. /* snprintf may truncate the file */
  7946. if libc.Uint64FromInt32(actual_filelen) < filelen-uint64(1) {
  7947. v1 = libc.Uint64FromInt32(actual_filelen)
  7948. } else {
  7949. v1 = filelen - uint64(1)
  7950. }
  7951. filelen = v1
  7952. fd = __xcb_open_abstract(tls, protocol, file, filelen)
  7953. 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) {
  7954. libc.Xfree(tls, file)
  7955. return fd
  7956. }
  7957. fd = __xcb_open_unix(tls, protocol, file)
  7958. libc.Xfree(tls, file)
  7959. if fd < 0 && !(protocol != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  7960. port1 = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  7961. fd = __xcb_open_tcp(tls, host, protocol, port1)
  7962. }
  7963. return fd
  7964. return -int32(1) /* if control reaches here then something has gone wrong */
  7965. }
  7966. var _unix_base = [17]uint8{'/', 't', 'm', 'p', '/', '.', 'X', '1', '1', '-', 'u', 'n', 'i', 'x', '/', 'X'}
  7967. func __xcb_socket(tls *libc.TLS, family int32, type1 int32, proto int32) (r int32) {
  7968. bp := tls.Alloc(16)
  7969. defer tls.Free(16)
  7970. var fd int32
  7971. _ = fd
  7972. fd = libc.Xsocket(tls, family, type1|int32(m_SOCK_CLOEXEC1), proto)
  7973. if fd == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINVAL) {
  7974. fd = libc.Xsocket(tls, family, type1, proto)
  7975. if fd >= 0 {
  7976. libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
  7977. }
  7978. }
  7979. return fd
  7980. }
  7981. func __xcb_do_connect(tls *libc.TLS, fd int32, addr uintptr, addrlen int32) (r int32) {
  7982. bp := tls.Alloc(16)
  7983. defer tls.Free(16)
  7984. var _ /* on at bp+0 */ int32
  7985. *(*int32)(unsafe.Pointer(bp)) = int32(1)
  7986. if fd < 0 {
  7987. return -int32(1)
  7988. }
  7989. libc.Xsetsockopt(tls, fd, int32(m_IPPROTO_TCP), int32(m_TCP_NODELAY), bp, uint32(4))
  7990. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_KEEPALIVE), bp, uint32(4))
  7991. return libc.Xconnect(tls, fd, addr, libc.Uint32FromInt32(addrlen))
  7992. }
  7993. func __xcb_open_tcp(tls *libc.TLS, host uintptr, protocol uintptr, port uint16) (r int32) {
  7994. bp := tls.Alloc(80)
  7995. defer tls.Free(80)
  7996. var addr, bracket, v1 uintptr
  7997. var fd int32
  7998. var v2 bool
  7999. var _ /* hints at bp+0 */ Taddrinfo
  8000. var _ /* results at bp+56 */ uintptr
  8001. var _ /* service at bp+48 */ [6]uint8
  8002. _, _, _, _, _ = addr, bracket, fd, v1, v2
  8003. fd = -int32(1)
  8004. 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 {
  8005. return -int32(1)
  8006. }
  8007. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  8008. host = __ccgo_ts + 37
  8009. }
  8010. libc.Xmemset(tls, bp, 0, uint64(48))
  8011. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICSERV)
  8012. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = m_PF_UNSPEC
  8013. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_socktype = int32(m_SOCK_STREAM)
  8014. /* Allow IPv6 addresses enclosed in brackets. */
  8015. if v2 = libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('['); v2 {
  8016. v1 = libc.Xstrrchr(tls, host, int32(']'))
  8017. bracket = v1
  8018. }
  8019. if v2 && v1 != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bracket + 1))) == int32('\000') {
  8020. *(*uint8)(unsafe.Pointer(bracket)) = uint8('\000')
  8021. host++
  8022. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICHOST)
  8023. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = int32(m_PF_INET6)
  8024. }
  8025. libc.X__builtin_snprintf(tls, bp+48, uint64(6), __ccgo_ts+47, libc.VaList(bp+72, libc.Int32FromUint16(port)))
  8026. if libc.Xgetaddrinfo(tls, host, bp+48, bp, bp+56) != 0 {
  8027. /* FIXME: use gai_strerror, and fill in error connection */
  8028. return -int32(1)
  8029. }
  8030. addr = *(*uintptr)(unsafe.Pointer(bp + 56))
  8031. for {
  8032. if !(addr != 0) {
  8033. break
  8034. }
  8035. fd = __xcb_socket(tls, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_family, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_socktype, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_protocol)
  8036. if __xcb_do_connect(tls, fd, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_addr, libc.Int32FromUint32((*Taddrinfo)(unsafe.Pointer(addr)).Fai_addrlen)) >= 0 {
  8037. break
  8038. }
  8039. libc.Xclose(tls, fd)
  8040. fd = -int32(1)
  8041. goto _3
  8042. _3:
  8043. ;
  8044. addr = (*Taddrinfo)(unsafe.Pointer(addr)).Fai_next
  8045. }
  8046. libc.Xfreeaddrinfo(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
  8047. return fd
  8048. }
  8049. func __xcb_open_unix(tls *libc.TLS, protocol uintptr, file uintptr) (r int32) {
  8050. bp := tls.Alloc(128)
  8051. defer tls.Free(128)
  8052. var fd int32
  8053. var _ /* addr at bp+0 */ Tsockaddr_un
  8054. var _ /* len at bp+112 */ Tsocklen_t
  8055. var _ /* val at bp+116 */ int32
  8056. _ = fd
  8057. *(*Tsocklen_t)(unsafe.Pointer(bp + 112)) = uint32(4)
  8058. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8059. return -int32(1)
  8060. }
  8061. libc.Xstrcpy(tls, bp+2, file)
  8062. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8063. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8064. if fd == -int32(1) {
  8065. return -int32(1)
  8066. }
  8067. 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) {
  8068. *(*int32)(unsafe.Pointer(bp + 116)) = libc.Int32FromInt32(64) * libc.Int32FromInt32(1024)
  8069. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, uint32(4))
  8070. }
  8071. if libc.Xconnect(tls, fd, bp, uint32(110)) == -int32(1) {
  8072. libc.Xclose(tls, fd)
  8073. return -int32(1)
  8074. }
  8075. return fd
  8076. }
  8077. func __xcb_open_abstract(tls *libc.TLS, protocol uintptr, file uintptr, filelen Tsize_t) (r int32) {
  8078. bp := tls.Alloc(112)
  8079. defer tls.Free(112)
  8080. var fd int32
  8081. var namelen Tsocklen_t
  8082. var _ /* addr at bp+0 */ Tsockaddr_un
  8083. _, _ = fd, namelen
  8084. *(*Tsockaddr_un)(unsafe.Pointer(bp)) = Tsockaddr_un{}
  8085. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+12, protocol) != 0 {
  8086. return -int32(1)
  8087. }
  8088. libc.Xstrcpy(tls, bp+2+uintptr(1), file)
  8089. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8090. namelen = uint32(uint64(libc.UintptrFromInt32(0)+2) + libc.Uint64FromInt32(1) + filelen)
  8091. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8092. if fd == -int32(1) {
  8093. return -int32(1)
  8094. }
  8095. if libc.Xconnect(tls, fd, bp, namelen) == -int32(1) {
  8096. libc.Xclose(tls, fd)
  8097. return -int32(1)
  8098. }
  8099. return fd
  8100. }
  8101. func Xxcb_connect(tls *libc.TLS, displayname uintptr, screenp uintptr) (r uintptr) {
  8102. return Xxcb_connect_to_display_with_auth_info(tls, displayname, libc.UintptrFromInt32(0), screenp)
  8103. }
  8104. func Xxcb_connect_to_display_with_auth_info(tls *libc.TLS, displayname uintptr, auth uintptr, screenp uintptr) (r uintptr) {
  8105. bp := tls.Alloc(64)
  8106. defer tls.Free(64)
  8107. var c uintptr
  8108. var fd, parsed int32
  8109. var _ /* display at bp+0 */ int32
  8110. var _ /* host at bp+8 */ uintptr
  8111. var _ /* ourauth at bp+24 */ Txcb_auth_info_t
  8112. var _ /* protocol at bp+16 */ uintptr
  8113. _, _, _ = c, fd, parsed
  8114. *(*int32)(unsafe.Pointer(bp)) = 0
  8115. *(*uintptr)(unsafe.Pointer(bp + 8)) = libc.UintptrFromInt32(0)
  8116. *(*uintptr)(unsafe.Pointer(bp + 16)) = libc.UintptrFromInt32(0)
  8117. parsed = __xcb_parse_display(tls, displayname, bp+8, bp+16, bp, screenp)
  8118. if !(parsed != 0) {
  8119. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_PARSE_ERR))
  8120. goto out
  8121. }
  8122. fd = __xcb_open(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), *(*uintptr)(unsafe.Pointer(bp + 16)), *(*int32)(unsafe.Pointer(bp)))
  8123. if fd == -int32(1) {
  8124. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  8125. goto out
  8126. }
  8127. if auth != 0 {
  8128. c = Xxcb_connect_to_fd(tls, fd, auth)
  8129. goto out
  8130. }
  8131. if X_xcb_get_auth_info(tls, fd, bp+24, *(*int32)(unsafe.Pointer(bp))) != 0 {
  8132. c = Xxcb_connect_to_fd(tls, fd, bp+24)
  8133. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fname)
  8134. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fdata)
  8135. } else {
  8136. c = Xxcb_connect_to_fd(tls, fd, uintptr(0))
  8137. }
  8138. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  8139. goto out
  8140. }
  8141. /* Make sure requested screen number is in bounds for this server */
  8142. 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) {
  8143. Xxcb_disconnect(tls, c)
  8144. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_INVALID_SCREEN))
  8145. goto out
  8146. }
  8147. goto out
  8148. out:
  8149. ;
  8150. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
  8151. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
  8152. return c
  8153. }
  8154. const m_AUTH_PROTO_MIT_MAGIC_COOKIE = "MIT-MAGIC-COOKIE-1"
  8155. const m_AUTH_PROTO_XDM_AUTHORIZATION = "XDM-AUTHORIZATION-1"
  8156. const m_CANBSIZ = 255
  8157. const m_DEV_BSIZE = 512
  8158. const m_FALSE = 0
  8159. const m_FUNCPROTO = 15
  8160. const m_FamilyKrb5Principal = 253
  8161. const m_FamilyLocal = 256
  8162. const m_FamilyLocalHost = 252
  8163. const m_FamilyNetname = 254
  8164. const m_FamilyWild = 65535
  8165. const m_INITIAL_SOCKNAME_SLACK = 108
  8166. const m_ITIMER_PROF = 2
  8167. const m_ITIMER_REAL = 0
  8168. const m_ITIMER_VIRTUAL = 1
  8169. const m_LOCK_ERROR = 1
  8170. const m_LOCK_SUCCESS = 0
  8171. const m_LOCK_TIMEOUT = 2
  8172. const m_MAXHOSTNAMELEN = 64
  8173. const m_MAXNAMLEN = 255
  8174. const m_MAXPATHLEN = 4096
  8175. const m_MAXSYMLINKS = 20
  8176. const m_NBBY = 8
  8177. const m_NCARGS = 131072
  8178. const m_NGROUPS = 32
  8179. const m_NOFILE = 256
  8180. const m_NeedFunctionPrototypes = 1
  8181. const m_NeedNestedPrototypes = 1
  8182. const m_NeedVarargsPrototypes = 1
  8183. const m_NeedWidePrototypes = 0
  8184. const m_PRIO_MAX = 20
  8185. const m_PRIO_PGRP = 1
  8186. const m_PRIO_PROCESS = 0
  8187. const m_PRIO_USER = 2
  8188. const m_RLIMIT_AS = 9
  8189. const m_RLIMIT_CORE = 4
  8190. const m_RLIMIT_CPU = 0
  8191. const m_RLIMIT_DATA = 2
  8192. const m_RLIMIT_FSIZE = 1
  8193. const m_RLIMIT_LOCKS = 10
  8194. const m_RLIMIT_MEMLOCK = 8
  8195. const m_RLIMIT_MSGQUEUE = 12
  8196. const m_RLIMIT_NICE = 13
  8197. const m_RLIMIT_NLIMITS = 16
  8198. const m_RLIMIT_NOFILE = 7
  8199. const m_RLIMIT_NPROC = 6
  8200. const m_RLIMIT_RSS = 5
  8201. const m_RLIMIT_RTPRIO = 14
  8202. const m_RLIMIT_RTTIME = 15
  8203. const m_RLIMIT_SIGPENDING = 11
  8204. const m_RLIMIT_STACK = 3
  8205. const m_RLIM_NLIMITS = "RLIMIT_NLIMITS"
  8206. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  8207. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  8208. const m_RUSAGE_SELF = 0
  8209. const m_RUSAGE_THREAD = 1
  8210. const m_SOCK_CLOEXEC2 = 02000000
  8211. const m_TRUE = 1
  8212. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  8213. const m_XDM_KA_RTX_LIMIT = 4
  8214. const m_XDM_MAX_MSGLEN = 8192
  8215. const m_XDM_MAX_RTX = 32
  8216. const m_XDM_MIN_RTX = 2
  8217. const m_XDM_PROTOCOL_VERSION = 1
  8218. const m_XDM_RTX_LIMIT = 7
  8219. const m_XDM_UDP_PORT = 177
  8220. const m_XMD_H = 1
  8221. const m__X_INLINE = "inline"
  8222. const m__X_RESTRICT_KYWD = "restrict"
  8223. const m__Xconst = "const"
  8224. const m_prlimit64 = "prlimit"
  8225. type TXauth = struct {
  8226. Ffamily uint16
  8227. Faddress_length uint16
  8228. Faddress uintptr
  8229. Fnumber_length uint16
  8230. Fnumber uintptr
  8231. Fname_length uint16
  8232. Fname uintptr
  8233. Fdata_length uint16
  8234. Fdata uintptr
  8235. }
  8236. type Txauth = TXauth
  8237. type Titimerval = struct {
  8238. Fit_interval Ttimeval
  8239. Fit_value Ttimeval
  8240. }
  8241. type Ttimezone = struct {
  8242. Ftz_minuteswest int32
  8243. Ftz_dsttime int32
  8244. }
  8245. type Trlim_t = uint64
  8246. type Trlimit = struct {
  8247. Frlim_cur Trlim_t
  8248. Frlim_max Trlim_t
  8249. }
  8250. type Trusage = struct {
  8251. Fru_utime Ttimeval
  8252. Fru_stime Ttimeval
  8253. Fru_maxrss int64
  8254. Fru_ixrss int64
  8255. Fru_idrss int64
  8256. Fru_isrss int64
  8257. Fru_minflt int64
  8258. Fru_majflt int64
  8259. Fru_nswap int64
  8260. Fru_inblock int64
  8261. Fru_oublock int64
  8262. Fru_msgsnd int64
  8263. Fru_msgrcv int64
  8264. Fru_nsignals int64
  8265. Fru_nvcsw int64
  8266. Fru_nivcsw int64
  8267. F__reserved [16]int64
  8268. }
  8269. type TINT64 = int64
  8270. type TINT32 = int32
  8271. type TINT16 = int16
  8272. type TINT8 = int8
  8273. type TCARD64 = uint64
  8274. type TCARD32 = uint32
  8275. type TCARD16 = uint16
  8276. type TCARD8 = uint8
  8277. type TBITS32 = uint32
  8278. type TBITS16 = uint16
  8279. type TBYTE = uint8
  8280. type TBOOL = uint8
  8281. type TxdmOpCode = int32
  8282. const _BROADCAST_QUERY = 1
  8283. const _QUERY = 2
  8284. const _INDIRECT_QUERY = 3
  8285. const _FORWARD_QUERY = 4
  8286. const _WILLING = 5
  8287. const _UNWILLING = 6
  8288. const _REQUEST = 7
  8289. const _ACCEPT = 8
  8290. const _DECLINE = 9
  8291. const _MANAGE = 10
  8292. const _REFUSE = 11
  8293. const _FAILED = 12
  8294. const _KEEPALIVE = 13
  8295. const _ALIVE = 14
  8296. type Txdmcp_states = int32
  8297. const _XDM_QUERY = 0
  8298. const _XDM_BROADCAST = 1
  8299. const _XDM_INDIRECT = 2
  8300. const _XDM_COLLECT_QUERY = 3
  8301. const _XDM_COLLECT_BROADCAST_QUERY = 4
  8302. const _XDM_COLLECT_INDIRECT_QUERY = 5
  8303. const _XDM_START_CONNECTION = 6
  8304. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  8305. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  8306. const _XDM_MANAGE = 9
  8307. const _XDM_RUN_SESSION = 10
  8308. const _XDM_OFF = 11
  8309. const _XDM_AWAIT_USER_INPUT = 12
  8310. const _XDM_KEEPALIVE = 13
  8311. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  8312. const _XDM_KEEP_ME_LAST = 15
  8313. type TCARD8Ptr = uintptr
  8314. type TCARD16Ptr = uintptr
  8315. type TCARD32Ptr = uintptr
  8316. type TARRAY8 = struct {
  8317. Flength TCARD16
  8318. Fdata TCARD8Ptr
  8319. }
  8320. type T_ARRAY8 = TARRAY8
  8321. type TARRAY8Ptr = uintptr
  8322. type TARRAY16 = struct {
  8323. Flength TCARD8
  8324. Fdata TCARD16Ptr
  8325. }
  8326. type T_ARRAY16 = TARRAY16
  8327. type TARRAY16Ptr = uintptr
  8328. type TARRAY32 = struct {
  8329. Flength TCARD8
  8330. Fdata TCARD32Ptr
  8331. }
  8332. type T_ARRAY32 = TARRAY32
  8333. type TARRAY32Ptr = uintptr
  8334. type TARRAYofARRAY8 = struct {
  8335. Flength TCARD8
  8336. Fdata TARRAY8Ptr
  8337. }
  8338. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  8339. type TARRAYofARRAY8Ptr = uintptr
  8340. type TXdmcpHeader = struct {
  8341. Fversion TCARD16
  8342. Fopcode TCARD16
  8343. Flength TCARD16
  8344. }
  8345. type T_XdmcpHeader = TXdmcpHeader
  8346. type TXdmcpHeaderPtr = uintptr
  8347. type TXdmcpBuffer = struct {
  8348. Fdata uintptr
  8349. Fsize int32
  8350. Fpointer int32
  8351. Fcount int32
  8352. }
  8353. type T_XdmcpBuffer = TXdmcpBuffer
  8354. type TXdmcpBufferPtr = uintptr
  8355. type TXdmAuthKeyRec = struct {
  8356. Fdata [8]TBYTE
  8357. }
  8358. type T_XdmAuthKey = TXdmAuthKeyRec
  8359. type TXdmAuthKeyPtr = uintptr
  8360. type TXdmcpNetaddr = uintptr
  8361. type _auth_protos = int32
  8362. const _AUTH_XA1 = 0
  8363. const _AUTH_MC1 = 1
  8364. const _N_AUTH_PROTOS = 2
  8365. var _authnames = [2]uintptr{
  8366. 0: __ccgo_ts + 51,
  8367. 1: __ccgo_ts + 71,
  8368. }
  8369. var _authnameslen = [2]int32{
  8370. 0: libc.Int32FromUint64(libc.Uint64FromInt64(20) - libc.Uint64FromInt32(1)),
  8371. 1: libc.Int32FromUint64(libc.Uint64FromInt64(19) - libc.Uint64FromInt32(1)),
  8372. }
  8373. func _memdup(tls *libc.TLS, dst uintptr, src uintptr, len1 Tsize_t) (r Tsize_t) {
  8374. if len1 != 0 {
  8375. *(*uintptr)(unsafe.Pointer(dst)) = libc.Xmalloc(tls, len1)
  8376. } else {
  8377. *(*uintptr)(unsafe.Pointer(dst)) = uintptr(0)
  8378. }
  8379. if !(*(*uintptr)(unsafe.Pointer(dst)) != 0) {
  8380. return uint64(0)
  8381. }
  8382. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(dst)), src, len1)
  8383. return len1
  8384. }
  8385. func _authname_match(tls *libc.TLS, kind _auth_protos, name uintptr, namelen Tsize_t) (r int32) {
  8386. if libc.Uint64FromInt32(_authnameslen[kind]) != namelen {
  8387. return 0
  8388. }
  8389. if libc.Xmemcmp(tls, _authnames[kind], name, namelen) != 0 {
  8390. return 0
  8391. }
  8392. return int32(1)
  8393. }
  8394. func _get_authptr(tls *libc.TLS, sockname uintptr, display int32) (r uintptr) {
  8395. bp := tls.Alloc(320)
  8396. defer tls.Free(320)
  8397. var addr uintptr
  8398. var addrlen, dispbuflen int32
  8399. var family uint16
  8400. var v1 uint64
  8401. var _ /* dispbuf at bp+256 */ [40]uint8
  8402. var _ /* hostnamebuf at bp+0 */ [256]uint8
  8403. _, _, _, _, _ = addr, addrlen, dispbuflen, family, v1
  8404. addr = uintptr(0)
  8405. addrlen = 0
  8406. family = libc.Uint16FromInt32(libc.Int32FromInt32(m_FamilyLocal)) /* 256 */
  8407. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8408. case int32(m_PF_INET6):
  8409. addr = sockname + 8
  8410. addrlen = int32(16)
  8411. 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)) {
  8412. 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)) {
  8413. family = uint16(_XCB_FAMILY_INTERNET_6)
  8414. }
  8415. break
  8416. }
  8417. addr += uintptr(12)
  8418. /* if v4-mapped, fall through. */
  8419. fallthrough
  8420. case int32(m_PF_INET):
  8421. if !(addr != 0) {
  8422. addr = sockname + 4
  8423. }
  8424. addrlen = int32(4)
  8425. if *(*Tin_addr_t)(unsafe.Pointer(addr)) != libc.Xhtonl(tls, libc.Uint32FromInt32(0x7f000001)) {
  8426. family = uint16(_XCB_FAMILY_INTERNET)
  8427. }
  8428. case int32(m_PF_LOCAL):
  8429. default:
  8430. return uintptr(0) /* cannot authenticate this family */
  8431. }
  8432. dispbuflen = libc.X__builtin_snprintf(tls, bp+256, uint64(40), __ccgo_ts+90, libc.VaList(bp+304, display))
  8433. if dispbuflen < 0 {
  8434. return uintptr(0)
  8435. }
  8436. /* snprintf may have truncate our text */
  8437. if libc.Uint64FromInt32(dispbuflen) < libc.Uint64FromInt64(40)-libc.Uint64FromInt32(1) {
  8438. v1 = libc.Uint64FromInt32(dispbuflen)
  8439. } else {
  8440. v1 = libc.Uint64FromInt64(40) - libc.Uint64FromInt32(1)
  8441. }
  8442. dispbuflen = libc.Int32FromUint64(v1)
  8443. if libc.Int32FromUint16(family) == int32(m_FamilyLocal) {
  8444. if libc.Xgethostname(tls, bp, uint64(256)) == -int32(1) {
  8445. return uintptr(0)
  8446. } /* do not know own hostname */
  8447. addr = bp
  8448. addrlen = libc.Int32FromUint64(libc.Xstrlen(tls, addr))
  8449. }
  8450. 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)))
  8451. }
  8452. func _next_nonce(tls *libc.TLS) (r int32) {
  8453. var ret, v1 int32
  8454. _, _ = ret, v1
  8455. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8456. v1 = _nonce
  8457. _nonce++
  8458. ret = v1
  8459. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8460. return ret
  8461. }
  8462. var _nonce int32
  8463. var _nonce_mutex = Tpthread_mutex_t{}
  8464. func _do_append(tls *libc.TLS, buf uintptr, idxp uintptr, val uintptr, valsize Tsize_t) {
  8465. var p1 uintptr
  8466. _ = p1
  8467. libc.Xmemcpy(tls, buf+uintptr(*(*int32)(unsafe.Pointer(idxp))), val, valsize)
  8468. p1 = idxp
  8469. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + valsize)
  8470. }
  8471. func _compute_auth(tls *libc.TLS, info uintptr, authptr uintptr, sockname uintptr) (r int32) {
  8472. bp := tls.Alloc(32)
  8473. defer tls.Free(32)
  8474. var si, si6 uintptr
  8475. var v2 int32
  8476. var _ /* fakeaddr at bp+12 */ Tuint32_t
  8477. var _ /* fakeaddr at bp+4 */ Tuint32_t
  8478. var _ /* fakeport at bp+16 */ Tuint16_t
  8479. var _ /* fakeport at bp+8 */ Tuint16_t
  8480. var _ /* j at bp+0 */ int32
  8481. var _ /* now at bp+20 */ Tuint32_t
  8482. _, _, _ = si, si6, v2
  8483. if _authname_match(tls, int32(_AUTH_MC1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8484. (*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)))
  8485. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen != 0) {
  8486. return 0
  8487. }
  8488. return int32(1)
  8489. }
  8490. if _authname_match(tls, int32(_AUTH_XA1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8491. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(192)/libc.Int32FromInt32(8)))
  8492. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata != 0) {
  8493. return 0
  8494. }
  8495. *(*int32)(unsafe.Pointer(bp)) = 0
  8496. for {
  8497. if !(*(*int32)(unsafe.Pointer(bp)) < int32(8)) {
  8498. break
  8499. }
  8500. *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(*(*int32)(unsafe.Pointer(bp))))) = *(*uint8)(unsafe.Pointer((*TXauth)(unsafe.Pointer(authptr)).Fdata + uintptr(*(*int32)(unsafe.Pointer(bp)))))
  8501. goto _1
  8502. _1:
  8503. ;
  8504. *(*int32)(unsafe.Pointer(bp))++
  8505. }
  8506. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8507. case int32(m_PF_INET):
  8508. /*block*/
  8509. si = sockname
  8510. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+4, uint64(4))
  8511. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+2, uint64(2))
  8512. case int32(m_PF_INET6):
  8513. /*block*/
  8514. si6 = sockname
  8515. 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) {
  8516. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+8+12, uint64(4))
  8517. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+2, uint64(2))
  8518. } else {
  8519. /* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
  8520. same thing Xlib does: use all zeroes for the 4-byte address
  8521. and 2-byte port number. */
  8522. *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uint32(0)
  8523. *(*Tuint16_t)(unsafe.Pointer(bp + 8)) = uint16(0)
  8524. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+4, uint64(4))
  8525. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+8, uint64(2))
  8526. }
  8527. case int32(m_PF_LOCAL):
  8528. /*block*/
  8529. *(*Tuint32_t)(unsafe.Pointer(bp + 12)) = libc.Xhtonl(tls, uint32(0xffffffff)-libc.Uint32FromInt32(_next_nonce(tls)))
  8530. *(*Tuint16_t)(unsafe.Pointer(bp + 16)) = libc.Xhtons(tls, libc.Uint16FromInt32(libc.Xgetpid(tls)))
  8531. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+12, uint64(4))
  8532. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+16, uint64(2))
  8533. default:
  8534. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata)
  8535. return 0 /* do not know how to build this */
  8536. }
  8537. *(*Tuint32_t)(unsafe.Pointer(bp + 20)) = libc.Xhtonl(tls, libc.Uint32FromInt64(libc.Xtime(tls, uintptr(0))))
  8538. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+20, uint64(4))
  8539. for *(*int32)(unsafe.Pointer(bp)) < libc.Int32FromInt32(192)/libc.Int32FromInt32(8) {
  8540. v2 = *(*int32)(unsafe.Pointer(bp))
  8541. *(*int32)(unsafe.Pointer(bp))++
  8542. *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(v2))) = uint8(0)
  8543. }
  8544. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = *(*int32)(unsafe.Pointer(bp))
  8545. 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)
  8546. return int32(1)
  8547. }
  8548. return 0 /* Unknown authorization type */
  8549. }
  8550. /* `sockaddr_un.sun_path' typical size usually ranges between 92 and 108 */
  8551. // C documentation
  8552. //
  8553. // /* Return a dynamically allocated socket address structure according
  8554. // to the value returned by either getpeername() or getsockname()
  8555. // (according to POSIX, applications should not assume a particular
  8556. // length for `sockaddr_un.sun_path') */
  8557. func _get_peer_sock_name(tls *libc.TLS, socket_func uintptr, fd int32) (r uintptr) {
  8558. bp := tls.Alloc(16)
  8559. defer tls.Free(16)
  8560. var new_sockname, sockname, v1 uintptr
  8561. var socknamelen Tsocklen_t
  8562. var _ /* actual_socknamelen at bp+0 */ Tsocklen_t
  8563. _, _, _, _ = new_sockname, sockname, socknamelen, v1
  8564. socknamelen = uint32(libc.Uint64FromInt64(16) + libc.Uint64FromInt32(m_INITIAL_SOCKNAME_SLACK))
  8565. *(*Tsocklen_t)(unsafe.Pointer(bp)) = socknamelen
  8566. sockname = libc.Xmalloc(tls, uint64(socknamelen))
  8567. if sockname == libc.UintptrFromInt32(0) {
  8568. return libc.UintptrFromInt32(0)
  8569. }
  8570. /* Both getpeername() and getsockname() truncates sockname if
  8571. there is not enough space and set the required length in
  8572. actual_socknamelen */
  8573. if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) {
  8574. goto sock_or_realloc_error
  8575. }
  8576. if *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
  8577. new_sockname = libc.UintptrFromInt32(0)
  8578. socknamelen = *(*Tsocklen_t)(unsafe.Pointer(bp))
  8579. v1 = libc.Xrealloc(tls, sockname, uint64(*(*Tsocklen_t)(unsafe.Pointer(bp))))
  8580. new_sockname = v1
  8581. if v1 == libc.UintptrFromInt32(0) {
  8582. goto sock_or_realloc_error
  8583. }
  8584. sockname = new_sockname
  8585. 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 {
  8586. goto sock_or_realloc_error
  8587. }
  8588. }
  8589. return sockname
  8590. goto sock_or_realloc_error
  8591. sock_or_realloc_error:
  8592. ;
  8593. libc.Xfree(tls, sockname)
  8594. return libc.UintptrFromInt32(0)
  8595. }
  8596. func X_xcb_get_auth_info(tls *libc.TLS, fd int32, info uintptr, display int32) (r int32) {
  8597. var authptr, sockname, v1, v2, v3 uintptr
  8598. var gotsockname, ret int32
  8599. _, _, _, _, _, _, _ = authptr, gotsockname, ret, sockname, v1, v2, v3
  8600. /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
  8601. xtrans/Xtransutils.c */
  8602. sockname = libc.UintptrFromInt32(0)
  8603. gotsockname = 0
  8604. authptr = uintptr(0)
  8605. ret = int32(1)
  8606. /* Some systems like hpux or Hurd do not expose peer names
  8607. * for UNIX Domain Sockets, but this is irrelevant,
  8608. * since compute_auth() ignores the peer name in this
  8609. * case anyway.*/
  8610. v1 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetpeername), fd)
  8611. sockname = v1
  8612. if v1 == libc.UintptrFromInt32(0) {
  8613. v2 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8614. sockname = v2
  8615. if v2 == libc.UintptrFromInt32(0) {
  8616. return 0
  8617. } /* can only authenticate sockets */
  8618. if libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) != int32(m_PF_LOCAL) {
  8619. libc.Xfree(tls, sockname)
  8620. return 0 /* except for AF_UNIX, sockets should have peernames */
  8621. }
  8622. gotsockname = int32(1)
  8623. }
  8624. authptr = _get_authptr(tls, sockname, display)
  8625. if authptr == uintptr(0) {
  8626. libc.Xfree(tls, sockname)
  8627. return 0 /* cannot find good auth data */
  8628. }
  8629. (*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)))
  8630. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen != 0) {
  8631. goto no_auth
  8632. } /* out of memory */
  8633. if !(gotsockname != 0) {
  8634. libc.Xfree(tls, sockname)
  8635. v3 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8636. sockname = v3
  8637. if v3 == libc.UintptrFromInt32(0) {
  8638. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8639. goto no_auth /* can only authenticate sockets */
  8640. }
  8641. }
  8642. ret = _compute_auth(tls, info, authptr, sockname)
  8643. if !(ret != 0) {
  8644. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8645. goto no_auth /* cannot build auth record */
  8646. }
  8647. libc.Xfree(tls, sockname)
  8648. sockname = libc.UintptrFromInt32(0)
  8649. libxau.XXauDisposeAuth(tls, authptr)
  8650. return ret
  8651. goto no_auth
  8652. no_auth:
  8653. ;
  8654. libc.Xfree(tls, sockname)
  8655. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname = uintptr(0)
  8656. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = 0
  8657. libxau.XXauDisposeAuth(tls, authptr)
  8658. return 0
  8659. }
  8660. /*
  8661. * This file generated automatically from xproto.xml by c_client.py.
  8662. * Edit at your peril.
  8663. */
  8664. /**
  8665. * @defgroup XCB__API XCB API
  8666. * @brief XCB Protocol Implementation.
  8667. * @{
  8668. **/
  8669. /**
  8670. * @}
  8671. */
  8672. func Xxcb_char2b_next(tls *libc.TLS, i uintptr) {
  8673. var p1 uintptr
  8674. _ = p1
  8675. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Frem--
  8676. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Fdata += 2
  8677. p1 = i + 12
  8678. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(2))
  8679. }
  8680. func Xxcb_char2b_end(tls *libc.TLS, i Txcb_char2b_iterator_t) (r Txcb_generic_iterator_t) {
  8681. var ret Txcb_generic_iterator_t
  8682. _ = ret
  8683. ret.Fdata = i.Fdata + uintptr(i.Frem)*2
  8684. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8685. ret.Frem = 0
  8686. return ret
  8687. }
  8688. func Xxcb_window_next(tls *libc.TLS, i uintptr) {
  8689. var p1 uintptr
  8690. _ = p1
  8691. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Frem--
  8692. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8693. p1 = i + 12
  8694. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8695. }
  8696. func Xxcb_window_end(tls *libc.TLS, i Txcb_window_iterator_t) (r Txcb_generic_iterator_t) {
  8697. var ret Txcb_generic_iterator_t
  8698. _ = ret
  8699. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8700. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8701. ret.Frem = 0
  8702. return ret
  8703. }
  8704. func Xxcb_pixmap_next(tls *libc.TLS, i uintptr) {
  8705. var p1 uintptr
  8706. _ = p1
  8707. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Frem--
  8708. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8709. p1 = i + 12
  8710. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8711. }
  8712. func Xxcb_pixmap_end(tls *libc.TLS, i Txcb_pixmap_iterator_t) (r Txcb_generic_iterator_t) {
  8713. var ret Txcb_generic_iterator_t
  8714. _ = ret
  8715. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8716. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8717. ret.Frem = 0
  8718. return ret
  8719. }
  8720. func Xxcb_cursor_next(tls *libc.TLS, i uintptr) {
  8721. var p1 uintptr
  8722. _ = p1
  8723. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Frem--
  8724. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8725. p1 = i + 12
  8726. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8727. }
  8728. func Xxcb_cursor_end(tls *libc.TLS, i Txcb_cursor_iterator_t) (r Txcb_generic_iterator_t) {
  8729. var ret Txcb_generic_iterator_t
  8730. _ = ret
  8731. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8732. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8733. ret.Frem = 0
  8734. return ret
  8735. }
  8736. func Xxcb_font_next(tls *libc.TLS, i uintptr) {
  8737. var p1 uintptr
  8738. _ = p1
  8739. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Frem--
  8740. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8741. p1 = i + 12
  8742. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8743. }
  8744. func Xxcb_font_end(tls *libc.TLS, i Txcb_font_iterator_t) (r Txcb_generic_iterator_t) {
  8745. var ret Txcb_generic_iterator_t
  8746. _ = ret
  8747. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8748. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8749. ret.Frem = 0
  8750. return ret
  8751. }
  8752. func Xxcb_gcontext_next(tls *libc.TLS, i uintptr) {
  8753. var p1 uintptr
  8754. _ = p1
  8755. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Frem--
  8756. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8757. p1 = i + 12
  8758. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8759. }
  8760. func Xxcb_gcontext_end(tls *libc.TLS, i Txcb_gcontext_iterator_t) (r Txcb_generic_iterator_t) {
  8761. var ret Txcb_generic_iterator_t
  8762. _ = ret
  8763. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8764. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8765. ret.Frem = 0
  8766. return ret
  8767. }
  8768. func Xxcb_colormap_next(tls *libc.TLS, i uintptr) {
  8769. var p1 uintptr
  8770. _ = p1
  8771. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Frem--
  8772. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8773. p1 = i + 12
  8774. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8775. }
  8776. func Xxcb_colormap_end(tls *libc.TLS, i Txcb_colormap_iterator_t) (r Txcb_generic_iterator_t) {
  8777. var ret Txcb_generic_iterator_t
  8778. _ = ret
  8779. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8780. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8781. ret.Frem = 0
  8782. return ret
  8783. }
  8784. func Xxcb_atom_next(tls *libc.TLS, i uintptr) {
  8785. var p1 uintptr
  8786. _ = p1
  8787. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Frem--
  8788. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8789. p1 = i + 12
  8790. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8791. }
  8792. func Xxcb_atom_end(tls *libc.TLS, i Txcb_atom_iterator_t) (r Txcb_generic_iterator_t) {
  8793. var ret Txcb_generic_iterator_t
  8794. _ = ret
  8795. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8796. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8797. ret.Frem = 0
  8798. return ret
  8799. }
  8800. func Xxcb_drawable_next(tls *libc.TLS, i uintptr) {
  8801. var p1 uintptr
  8802. _ = p1
  8803. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Frem--
  8804. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8805. p1 = i + 12
  8806. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8807. }
  8808. func Xxcb_drawable_end(tls *libc.TLS, i Txcb_drawable_iterator_t) (r Txcb_generic_iterator_t) {
  8809. var ret Txcb_generic_iterator_t
  8810. _ = ret
  8811. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8812. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8813. ret.Frem = 0
  8814. return ret
  8815. }
  8816. func Xxcb_fontable_next(tls *libc.TLS, i uintptr) {
  8817. var p1 uintptr
  8818. _ = p1
  8819. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Frem--
  8820. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8821. p1 = i + 12
  8822. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8823. }
  8824. func Xxcb_fontable_end(tls *libc.TLS, i Txcb_fontable_iterator_t) (r Txcb_generic_iterator_t) {
  8825. var ret Txcb_generic_iterator_t
  8826. _ = ret
  8827. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8828. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8829. ret.Frem = 0
  8830. return ret
  8831. }
  8832. func Xxcb_bool32_next(tls *libc.TLS, i uintptr) {
  8833. var p1 uintptr
  8834. _ = p1
  8835. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Frem--
  8836. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8837. p1 = i + 12
  8838. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8839. }
  8840. func Xxcb_bool32_end(tls *libc.TLS, i Txcb_bool32_iterator_t) (r Txcb_generic_iterator_t) {
  8841. var ret Txcb_generic_iterator_t
  8842. _ = ret
  8843. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8844. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8845. ret.Frem = 0
  8846. return ret
  8847. }
  8848. func Xxcb_visualid_next(tls *libc.TLS, i uintptr) {
  8849. var p1 uintptr
  8850. _ = p1
  8851. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Frem--
  8852. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8853. p1 = i + 12
  8854. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8855. }
  8856. func Xxcb_visualid_end(tls *libc.TLS, i Txcb_visualid_iterator_t) (r Txcb_generic_iterator_t) {
  8857. var ret Txcb_generic_iterator_t
  8858. _ = ret
  8859. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8860. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8861. ret.Frem = 0
  8862. return ret
  8863. }
  8864. func Xxcb_timestamp_next(tls *libc.TLS, i uintptr) {
  8865. var p1 uintptr
  8866. _ = p1
  8867. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Frem--
  8868. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8869. p1 = i + 12
  8870. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8871. }
  8872. func Xxcb_timestamp_end(tls *libc.TLS, i Txcb_timestamp_iterator_t) (r Txcb_generic_iterator_t) {
  8873. var ret Txcb_generic_iterator_t
  8874. _ = ret
  8875. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8876. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8877. ret.Frem = 0
  8878. return ret
  8879. }
  8880. func Xxcb_keysym_next(tls *libc.TLS, i uintptr) {
  8881. var p1 uintptr
  8882. _ = p1
  8883. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Frem--
  8884. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8885. p1 = i + 12
  8886. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8887. }
  8888. func Xxcb_keysym_end(tls *libc.TLS, i Txcb_keysym_iterator_t) (r Txcb_generic_iterator_t) {
  8889. var ret Txcb_generic_iterator_t
  8890. _ = ret
  8891. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8892. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8893. ret.Frem = 0
  8894. return ret
  8895. }
  8896. func Xxcb_keycode_next(tls *libc.TLS, i uintptr) {
  8897. var p1 uintptr
  8898. _ = p1
  8899. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Frem--
  8900. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Fdata++
  8901. p1 = i + 12
  8902. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8903. }
  8904. func Xxcb_keycode_end(tls *libc.TLS, i Txcb_keycode_iterator_t) (r Txcb_generic_iterator_t) {
  8905. var ret Txcb_generic_iterator_t
  8906. _ = ret
  8907. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8908. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8909. ret.Frem = 0
  8910. return ret
  8911. }
  8912. func Xxcb_keycode32_next(tls *libc.TLS, i uintptr) {
  8913. var p1 uintptr
  8914. _ = p1
  8915. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Frem--
  8916. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8917. p1 = i + 12
  8918. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8919. }
  8920. func Xxcb_keycode32_end(tls *libc.TLS, i Txcb_keycode32_iterator_t) (r Txcb_generic_iterator_t) {
  8921. var ret Txcb_generic_iterator_t
  8922. _ = ret
  8923. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8924. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8925. ret.Frem = 0
  8926. return ret
  8927. }
  8928. func Xxcb_button_next(tls *libc.TLS, i uintptr) {
  8929. var p1 uintptr
  8930. _ = p1
  8931. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Frem--
  8932. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Fdata++
  8933. p1 = i + 12
  8934. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  8935. }
  8936. func Xxcb_button_end(tls *libc.TLS, i Txcb_button_iterator_t) (r Txcb_generic_iterator_t) {
  8937. var ret Txcb_generic_iterator_t
  8938. _ = ret
  8939. ret.Fdata = i.Fdata + uintptr(i.Frem)
  8940. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8941. ret.Frem = 0
  8942. return ret
  8943. }
  8944. func Xxcb_point_next(tls *libc.TLS, i uintptr) {
  8945. var p1 uintptr
  8946. _ = p1
  8947. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Frem--
  8948. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8949. p1 = i + 12
  8950. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8951. }
  8952. func Xxcb_point_end(tls *libc.TLS, i Txcb_point_iterator_t) (r Txcb_generic_iterator_t) {
  8953. var ret Txcb_generic_iterator_t
  8954. _ = ret
  8955. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8956. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8957. ret.Frem = 0
  8958. return ret
  8959. }
  8960. func Xxcb_rectangle_next(tls *libc.TLS, i uintptr) {
  8961. var p1 uintptr
  8962. _ = p1
  8963. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Frem--
  8964. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  8965. p1 = i + 12
  8966. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  8967. }
  8968. func Xxcb_rectangle_end(tls *libc.TLS, i Txcb_rectangle_iterator_t) (r Txcb_generic_iterator_t) {
  8969. var ret Txcb_generic_iterator_t
  8970. _ = ret
  8971. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  8972. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8973. ret.Frem = 0
  8974. return ret
  8975. }
  8976. func Xxcb_arc_next(tls *libc.TLS, i uintptr) {
  8977. var p1 uintptr
  8978. _ = p1
  8979. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Frem--
  8980. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  8981. p1 = i + 12
  8982. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  8983. }
  8984. func Xxcb_arc_end(tls *libc.TLS, i Txcb_arc_iterator_t) (r Txcb_generic_iterator_t) {
  8985. var ret Txcb_generic_iterator_t
  8986. _ = ret
  8987. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  8988. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8989. ret.Frem = 0
  8990. return ret
  8991. }
  8992. func Xxcb_format_next(tls *libc.TLS, i uintptr) {
  8993. var p1 uintptr
  8994. _ = p1
  8995. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Frem--
  8996. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  8997. p1 = i + 12
  8998. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  8999. }
  9000. func Xxcb_format_end(tls *libc.TLS, i Txcb_format_iterator_t) (r Txcb_generic_iterator_t) {
  9001. var ret Txcb_generic_iterator_t
  9002. _ = ret
  9003. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9004. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9005. ret.Frem = 0
  9006. return ret
  9007. }
  9008. func Xxcb_visualtype_next(tls *libc.TLS, i uintptr) {
  9009. var p1 uintptr
  9010. _ = p1
  9011. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Frem--
  9012. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Fdata += 24
  9013. p1 = i + 12
  9014. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(24))
  9015. }
  9016. func Xxcb_visualtype_end(tls *libc.TLS, i Txcb_visualtype_iterator_t) (r Txcb_generic_iterator_t) {
  9017. var ret Txcb_generic_iterator_t
  9018. _ = ret
  9019. ret.Fdata = i.Fdata + uintptr(i.Frem)*24
  9020. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9021. ret.Frem = 0
  9022. return ret
  9023. }
  9024. func Xxcb_depth_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9025. var _aux, xcb_tmp uintptr
  9026. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9027. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9028. xcb_tmp = _buffer
  9029. _aux = _buffer
  9030. xcb_buffer_len = uint32(0)
  9031. xcb_block_len = uint32(0)
  9032. xcb_pad = uint32(0)
  9033. xcb_align_to = uint32(0)
  9034. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9035. xcb_tmp += uintptr(xcb_block_len)
  9036. xcb_buffer_len += xcb_block_len
  9037. xcb_block_len = uint32(0)
  9038. /* visuals */
  9039. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_depth_t)(unsafe.Pointer(_aux)).Fvisuals_len)*libc.Uint64FromInt64(24))
  9040. xcb_tmp += uintptr(xcb_block_len)
  9041. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9042. /* insert padding */
  9043. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9044. xcb_buffer_len += xcb_block_len + xcb_pad
  9045. if uint32(0) != xcb_pad {
  9046. xcb_tmp += uintptr(xcb_pad)
  9047. xcb_pad = uint32(0)
  9048. }
  9049. xcb_block_len = uint32(0)
  9050. return libc.Int32FromUint32(xcb_buffer_len)
  9051. }
  9052. func Xxcb_depth_visuals(tls *libc.TLS, R uintptr) (r uintptr) {
  9053. return R + libc.UintptrFromInt32(1)*8
  9054. }
  9055. func Xxcb_depth_visuals_length(tls *libc.TLS, R uintptr) (r int32) {
  9056. return libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9057. }
  9058. func Xxcb_depth_visuals_iterator(tls *libc.TLS, R uintptr) (r Txcb_visualtype_iterator_t) {
  9059. var i Txcb_visualtype_iterator_t
  9060. _ = i
  9061. i.Fdata = R + libc.UintptrFromInt32(1)*8
  9062. i.Frem = libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9063. i.Findex = int32(int64(i.Fdata) - int64(R))
  9064. return i
  9065. }
  9066. func Xxcb_depth_next(tls *libc.TLS, i uintptr) {
  9067. var R uintptr
  9068. var child Txcb_generic_iterator_t
  9069. _, _ = R, child
  9070. R = (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata
  9071. child.Fdata = R + uintptr(Xxcb_depth_sizeof(tls, R))
  9072. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata))
  9073. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Frem--
  9074. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9075. }
  9076. func Xxcb_depth_end(tls *libc.TLS, _i Txcb_depth_iterator_t) (r Txcb_generic_iterator_t) {
  9077. bp := tls.Alloc(16)
  9078. defer tls.Free(16)
  9079. *(*Txcb_depth_iterator_t)(unsafe.Pointer(bp)) = _i
  9080. var ret Txcb_generic_iterator_t
  9081. _ = ret
  9082. for (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9083. Xxcb_depth_next(tls, bp)
  9084. }
  9085. ret.Fdata = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Fdata
  9086. ret.Frem = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem
  9087. ret.Findex = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Findex
  9088. return ret
  9089. }
  9090. func Xxcb_screen_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9091. var _aux, xcb_tmp uintptr
  9092. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9093. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9094. xcb_tmp = _buffer
  9095. _aux = _buffer
  9096. xcb_buffer_len = uint32(0)
  9097. xcb_block_len = uint32(0)
  9098. xcb_pad = uint32(0)
  9099. xcb_align_to = uint32(0)
  9100. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9101. xcb_tmp += uintptr(xcb_block_len)
  9102. xcb_buffer_len += xcb_block_len
  9103. xcb_block_len = uint32(0)
  9104. /* allowed_depths */
  9105. i = uint32(0)
  9106. for {
  9107. if !(i < uint32((*Txcb_screen_t)(unsafe.Pointer(_aux)).Fallowed_depths_len)) {
  9108. break
  9109. }
  9110. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_depth_sizeof(tls, xcb_tmp))
  9111. xcb_block_len += xcb_tmp_len
  9112. xcb_tmp += uintptr(xcb_tmp_len)
  9113. goto _1
  9114. _1:
  9115. ;
  9116. i++
  9117. }
  9118. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  9119. /* insert padding */
  9120. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9121. xcb_buffer_len += xcb_block_len + xcb_pad
  9122. if uint32(0) != xcb_pad {
  9123. xcb_tmp += uintptr(xcb_pad)
  9124. xcb_pad = uint32(0)
  9125. }
  9126. xcb_block_len = uint32(0)
  9127. return libc.Int32FromUint32(xcb_buffer_len)
  9128. }
  9129. func Xxcb_screen_allowed_depths_length(tls *libc.TLS, R uintptr) (r int32) {
  9130. return libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9131. }
  9132. func Xxcb_screen_allowed_depths_iterator(tls *libc.TLS, R uintptr) (r Txcb_depth_iterator_t) {
  9133. var i Txcb_depth_iterator_t
  9134. _ = i
  9135. i.Fdata = R + libc.UintptrFromInt32(1)*40
  9136. i.Frem = libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9137. i.Findex = int32(int64(i.Fdata) - int64(R))
  9138. return i
  9139. }
  9140. func Xxcb_screen_next(tls *libc.TLS, i uintptr) {
  9141. var R uintptr
  9142. var child Txcb_generic_iterator_t
  9143. _, _ = R, child
  9144. R = (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata
  9145. child.Fdata = R + uintptr(Xxcb_screen_sizeof(tls, R))
  9146. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata))
  9147. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Frem--
  9148. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9149. }
  9150. func Xxcb_screen_end(tls *libc.TLS, _i Txcb_screen_iterator_t) (r Txcb_generic_iterator_t) {
  9151. bp := tls.Alloc(16)
  9152. defer tls.Free(16)
  9153. *(*Txcb_screen_iterator_t)(unsafe.Pointer(bp)) = _i
  9154. var ret Txcb_generic_iterator_t
  9155. _ = ret
  9156. for (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9157. Xxcb_screen_next(tls, bp)
  9158. }
  9159. ret.Fdata = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Fdata
  9160. ret.Frem = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem
  9161. ret.Findex = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Findex
  9162. return ret
  9163. }
  9164. func Xxcb_setup_request_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9165. var _aux, xcb_tmp uintptr
  9166. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9167. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9168. xcb_tmp = _buffer
  9169. _aux = _buffer
  9170. xcb_buffer_len = uint32(0)
  9171. xcb_block_len = uint32(0)
  9172. xcb_pad = uint32(0)
  9173. xcb_align_to = uint32(0)
  9174. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  9175. xcb_tmp += uintptr(xcb_block_len)
  9176. xcb_buffer_len += xcb_block_len
  9177. xcb_block_len = uint32(0)
  9178. /* authorization_protocol_name */
  9179. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_name_len)*libc.Uint64FromInt64(1))
  9180. xcb_tmp += uintptr(xcb_block_len)
  9181. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9182. xcb_align_to = uint32(4)
  9183. /* insert padding */
  9184. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9185. xcb_buffer_len += xcb_block_len + xcb_pad
  9186. if uint32(0) != xcb_pad {
  9187. xcb_tmp += uintptr(xcb_pad)
  9188. xcb_pad = uint32(0)
  9189. }
  9190. xcb_block_len = uint32(0)
  9191. /* insert padding */
  9192. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9193. xcb_buffer_len += xcb_block_len + xcb_pad
  9194. if uint32(0) != xcb_pad {
  9195. xcb_tmp += uintptr(xcb_pad)
  9196. xcb_pad = uint32(0)
  9197. }
  9198. xcb_block_len = uint32(0)
  9199. /* authorization_protocol_data */
  9200. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_data_len)*libc.Uint64FromInt64(1))
  9201. xcb_tmp += uintptr(xcb_block_len)
  9202. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9203. xcb_align_to = uint32(4)
  9204. /* insert padding */
  9205. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9206. xcb_buffer_len += xcb_block_len + xcb_pad
  9207. if uint32(0) != xcb_pad {
  9208. xcb_tmp += uintptr(xcb_pad)
  9209. xcb_pad = uint32(0)
  9210. }
  9211. xcb_block_len = uint32(0)
  9212. /* insert padding */
  9213. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9214. xcb_buffer_len += xcb_block_len + xcb_pad
  9215. if uint32(0) != xcb_pad {
  9216. xcb_tmp += uintptr(xcb_pad)
  9217. xcb_pad = uint32(0)
  9218. }
  9219. xcb_block_len = uint32(0)
  9220. return libc.Int32FromUint32(xcb_buffer_len)
  9221. }
  9222. func Xxcb_setup_request_authorization_protocol_name(tls *libc.TLS, R uintptr) (r uintptr) {
  9223. return R + libc.UintptrFromInt32(1)*12
  9224. }
  9225. func Xxcb_setup_request_authorization_protocol_name_length(tls *libc.TLS, R uintptr) (r int32) {
  9226. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9227. }
  9228. func Xxcb_setup_request_authorization_protocol_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9229. var i Txcb_generic_iterator_t
  9230. _ = i
  9231. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9232. i.Frem = 0
  9233. i.Findex = int32(int64(i.Fdata) - int64(R))
  9234. return i
  9235. }
  9236. func Xxcb_setup_request_authorization_protocol_data(tls *libc.TLS, R uintptr) (r uintptr) {
  9237. var prev Txcb_generic_iterator_t
  9238. _ = prev
  9239. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9240. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9241. }
  9242. func Xxcb_setup_request_authorization_protocol_data_length(tls *libc.TLS, R uintptr) (r int32) {
  9243. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
  9244. }
  9245. func Xxcb_setup_request_authorization_protocol_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9246. var i, prev Txcb_generic_iterator_t
  9247. _, _ = i, prev
  9248. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9249. 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)
  9250. i.Frem = 0
  9251. i.Findex = int32(int64(i.Fdata) - int64(R))
  9252. return i
  9253. }
  9254. func Xxcb_setup_request_next(tls *libc.TLS, i uintptr) {
  9255. var R uintptr
  9256. var child Txcb_generic_iterator_t
  9257. _, _ = R, child
  9258. R = (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata
  9259. child.Fdata = R + uintptr(Xxcb_setup_request_sizeof(tls, R))
  9260. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata))
  9261. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Frem--
  9262. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9263. }
  9264. func Xxcb_setup_request_end(tls *libc.TLS, _i Txcb_setup_request_iterator_t) (r Txcb_generic_iterator_t) {
  9265. bp := tls.Alloc(16)
  9266. defer tls.Free(16)
  9267. *(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp)) = _i
  9268. var ret Txcb_generic_iterator_t
  9269. _ = ret
  9270. for (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9271. Xxcb_setup_request_next(tls, bp)
  9272. }
  9273. ret.Fdata = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Fdata
  9274. ret.Frem = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem
  9275. ret.Findex = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Findex
  9276. return ret
  9277. }
  9278. func Xxcb_setup_failed_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9279. var _aux, xcb_tmp uintptr
  9280. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9281. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9282. xcb_tmp = _buffer
  9283. _aux = _buffer
  9284. xcb_buffer_len = uint32(0)
  9285. xcb_block_len = uint32(0)
  9286. xcb_pad = uint32(0)
  9287. xcb_align_to = uint32(0)
  9288. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9289. xcb_tmp += uintptr(xcb_block_len)
  9290. xcb_buffer_len += xcb_block_len
  9291. xcb_block_len = uint32(0)
  9292. /* reason */
  9293. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_failed_t)(unsafe.Pointer(_aux)).Freason_len)*libc.Uint64FromInt64(1))
  9294. xcb_tmp += uintptr(xcb_block_len)
  9295. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9296. /* insert padding */
  9297. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9298. xcb_buffer_len += xcb_block_len + xcb_pad
  9299. if uint32(0) != xcb_pad {
  9300. xcb_tmp += uintptr(xcb_pad)
  9301. xcb_pad = uint32(0)
  9302. }
  9303. xcb_block_len = uint32(0)
  9304. return libc.Int32FromUint32(xcb_buffer_len)
  9305. }
  9306. func Xxcb_setup_failed_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9307. return R + libc.UintptrFromInt32(1)*8
  9308. }
  9309. func Xxcb_setup_failed_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9310. return libc.Int32FromUint8((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9311. }
  9312. func Xxcb_setup_failed_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9313. var i Txcb_generic_iterator_t
  9314. _ = i
  9315. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9316. i.Frem = 0
  9317. i.Findex = int32(int64(i.Fdata) - int64(R))
  9318. return i
  9319. }
  9320. func Xxcb_setup_failed_next(tls *libc.TLS, i uintptr) {
  9321. var R uintptr
  9322. var child Txcb_generic_iterator_t
  9323. _, _ = R, child
  9324. R = (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata
  9325. child.Fdata = R + uintptr(Xxcb_setup_failed_sizeof(tls, R))
  9326. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata))
  9327. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Frem--
  9328. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9329. }
  9330. func Xxcb_setup_failed_end(tls *libc.TLS, _i Txcb_setup_failed_iterator_t) (r Txcb_generic_iterator_t) {
  9331. bp := tls.Alloc(16)
  9332. defer tls.Free(16)
  9333. *(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp)) = _i
  9334. var ret Txcb_generic_iterator_t
  9335. _ = ret
  9336. for (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9337. Xxcb_setup_failed_next(tls, bp)
  9338. }
  9339. ret.Fdata = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Fdata
  9340. ret.Frem = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem
  9341. ret.Findex = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Findex
  9342. return ret
  9343. }
  9344. func Xxcb_setup_authenticate_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9345. var _aux, xcb_tmp uintptr
  9346. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9347. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9348. xcb_tmp = _buffer
  9349. _aux = _buffer
  9350. xcb_buffer_len = uint32(0)
  9351. xcb_block_len = uint32(0)
  9352. xcb_pad = uint32(0)
  9353. xcb_align_to = uint32(0)
  9354. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9355. xcb_tmp += uintptr(xcb_block_len)
  9356. xcb_buffer_len += xcb_block_len
  9357. xcb_block_len = uint32(0)
  9358. /* reason */
  9359. 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))
  9360. xcb_tmp += uintptr(xcb_block_len)
  9361. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9362. /* insert padding */
  9363. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9364. xcb_buffer_len += xcb_block_len + xcb_pad
  9365. if uint32(0) != xcb_pad {
  9366. xcb_tmp += uintptr(xcb_pad)
  9367. xcb_pad = uint32(0)
  9368. }
  9369. xcb_block_len = uint32(0)
  9370. return libc.Int32FromUint32(xcb_buffer_len)
  9371. }
  9372. func Xxcb_setup_authenticate_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9373. return R + libc.UintptrFromInt32(1)*8
  9374. }
  9375. func Xxcb_setup_authenticate_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9376. return libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength) * int32(4)
  9377. }
  9378. func Xxcb_setup_authenticate_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9379. var i Txcb_generic_iterator_t
  9380. _ = i
  9381. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))
  9382. i.Frem = 0
  9383. i.Findex = int32(int64(i.Fdata) - int64(R))
  9384. return i
  9385. }
  9386. func Xxcb_setup_authenticate_next(tls *libc.TLS, i uintptr) {
  9387. var R uintptr
  9388. var child Txcb_generic_iterator_t
  9389. _, _ = R, child
  9390. R = (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata
  9391. child.Fdata = R + uintptr(Xxcb_setup_authenticate_sizeof(tls, R))
  9392. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata))
  9393. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Frem--
  9394. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9395. }
  9396. func Xxcb_setup_authenticate_end(tls *libc.TLS, _i Txcb_setup_authenticate_iterator_t) (r Txcb_generic_iterator_t) {
  9397. bp := tls.Alloc(16)
  9398. defer tls.Free(16)
  9399. *(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp)) = _i
  9400. var ret Txcb_generic_iterator_t
  9401. _ = ret
  9402. for (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9403. Xxcb_setup_authenticate_next(tls, bp)
  9404. }
  9405. ret.Fdata = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Fdata
  9406. ret.Frem = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem
  9407. ret.Findex = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Findex
  9408. return ret
  9409. }
  9410. func Xxcb_setup_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9411. var _aux, xcb_tmp uintptr
  9412. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9413. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9414. xcb_tmp = _buffer
  9415. _aux = _buffer
  9416. xcb_buffer_len = uint32(0)
  9417. xcb_block_len = uint32(0)
  9418. xcb_pad = uint32(0)
  9419. xcb_align_to = uint32(0)
  9420. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9421. xcb_tmp += uintptr(xcb_block_len)
  9422. xcb_buffer_len += xcb_block_len
  9423. xcb_block_len = uint32(0)
  9424. /* vendor */
  9425. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fvendor_len)*libc.Uint64FromInt64(1))
  9426. xcb_tmp += uintptr(xcb_block_len)
  9427. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9428. xcb_align_to = uint32(4)
  9429. /* insert padding */
  9430. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9431. xcb_buffer_len += xcb_block_len + xcb_pad
  9432. if uint32(0) != xcb_pad {
  9433. xcb_tmp += uintptr(xcb_pad)
  9434. xcb_pad = uint32(0)
  9435. }
  9436. xcb_block_len = uint32(0)
  9437. /* insert padding */
  9438. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9439. xcb_buffer_len += xcb_block_len + xcb_pad
  9440. if uint32(0) != xcb_pad {
  9441. xcb_tmp += uintptr(xcb_pad)
  9442. xcb_pad = uint32(0)
  9443. }
  9444. xcb_block_len = uint32(0)
  9445. /* pixmap_formats */
  9446. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fpixmap_formats_len)*libc.Uint64FromInt64(8))
  9447. xcb_tmp += uintptr(xcb_block_len)
  9448. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9449. /* insert padding */
  9450. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9451. xcb_buffer_len += xcb_block_len + xcb_pad
  9452. if uint32(0) != xcb_pad {
  9453. xcb_tmp += uintptr(xcb_pad)
  9454. xcb_pad = uint32(0)
  9455. }
  9456. xcb_block_len = uint32(0)
  9457. /* roots */
  9458. i = uint32(0)
  9459. for {
  9460. if !(i < uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Froots_len)) {
  9461. break
  9462. }
  9463. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_screen_sizeof(tls, xcb_tmp))
  9464. xcb_block_len += xcb_tmp_len
  9465. xcb_tmp += uintptr(xcb_tmp_len)
  9466. goto _1
  9467. _1:
  9468. ;
  9469. i++
  9470. }
  9471. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9472. /* insert padding */
  9473. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9474. xcb_buffer_len += xcb_block_len + xcb_pad
  9475. if uint32(0) != xcb_pad {
  9476. xcb_tmp += uintptr(xcb_pad)
  9477. xcb_pad = uint32(0)
  9478. }
  9479. xcb_block_len = uint32(0)
  9480. return libc.Int32FromUint32(xcb_buffer_len)
  9481. }
  9482. func Xxcb_setup_vendor(tls *libc.TLS, R uintptr) (r uintptr) {
  9483. return R + libc.UintptrFromInt32(1)*40
  9484. }
  9485. func Xxcb_setup_vendor_length(tls *libc.TLS, R uintptr) (r int32) {
  9486. return libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9487. }
  9488. func Xxcb_setup_vendor_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9489. var i Txcb_generic_iterator_t
  9490. _ = i
  9491. i.Fdata = R + libc.UintptrFromInt32(1)*40 + uintptr((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9492. i.Frem = 0
  9493. i.Findex = int32(int64(i.Fdata) - int64(R))
  9494. return i
  9495. }
  9496. func Xxcb_setup_pixmap_formats(tls *libc.TLS, R uintptr) (r uintptr) {
  9497. var prev Txcb_generic_iterator_t
  9498. _ = prev
  9499. prev = Xxcb_setup_vendor_end(tls, R)
  9500. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9501. }
  9502. func Xxcb_setup_pixmap_formats_length(tls *libc.TLS, R uintptr) (r int32) {
  9503. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9504. }
  9505. func Xxcb_setup_pixmap_formats_iterator(tls *libc.TLS, R uintptr) (r Txcb_format_iterator_t) {
  9506. var i Txcb_format_iterator_t
  9507. var prev Txcb_generic_iterator_t
  9508. _, _ = i, prev
  9509. prev = Xxcb_setup_vendor_end(tls, R)
  9510. i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)))
  9511. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9512. i.Findex = int32(int64(i.Fdata) - int64(R))
  9513. return i
  9514. }
  9515. func Xxcb_setup_roots_length(tls *libc.TLS, R uintptr) (r int32) {
  9516. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9517. }
  9518. func Xxcb_setup_roots_iterator(tls *libc.TLS, R uintptr) (r Txcb_screen_iterator_t) {
  9519. var i Txcb_screen_iterator_t
  9520. var prev Txcb_generic_iterator_t
  9521. _, _ = i, prev
  9522. prev = Xxcb_format_end(tls, Xxcb_setup_pixmap_formats_iterator(tls, R))
  9523. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  9524. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9525. i.Findex = int32(int64(i.Fdata) - int64(R))
  9526. return i
  9527. }
  9528. func Xxcb_setup_next(tls *libc.TLS, i uintptr) {
  9529. var R uintptr
  9530. var child Txcb_generic_iterator_t
  9531. _, _ = R, child
  9532. R = (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata
  9533. child.Fdata = R + uintptr(Xxcb_setup_sizeof(tls, R))
  9534. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata))
  9535. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Frem--
  9536. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9537. }
  9538. func Xxcb_setup_end(tls *libc.TLS, _i Txcb_setup_iterator_t) (r Txcb_generic_iterator_t) {
  9539. bp := tls.Alloc(16)
  9540. defer tls.Free(16)
  9541. *(*Txcb_setup_iterator_t)(unsafe.Pointer(bp)) = _i
  9542. var ret Txcb_generic_iterator_t
  9543. _ = ret
  9544. for (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9545. Xxcb_setup_next(tls, bp)
  9546. }
  9547. ret.Fdata = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Fdata
  9548. ret.Frem = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem
  9549. ret.Findex = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Findex
  9550. return ret
  9551. }
  9552. func Xxcb_client_message_data_next(tls *libc.TLS, i uintptr) {
  9553. var p1 uintptr
  9554. _ = p1
  9555. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Frem--
  9556. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Fdata += 20
  9557. p1 = i + 12
  9558. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(20))
  9559. }
  9560. func Xxcb_client_message_data_end(tls *libc.TLS, i Txcb_client_message_data_iterator_t) (r Txcb_generic_iterator_t) {
  9561. var ret Txcb_generic_iterator_t
  9562. _ = ret
  9563. ret.Fdata = i.Fdata + uintptr(i.Frem)*20
  9564. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9565. ret.Frem = 0
  9566. return ret
  9567. }
  9568. func Xxcb_create_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9569. bp := tls.Alloc(16)
  9570. defer tls.Free(16)
  9571. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  9572. var xcb_out, xcb_tmp uintptr
  9573. var xcb_parts [16]Tiovec
  9574. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  9575. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  9576. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  9577. xcb_buffer_len = uint32(0)
  9578. xcb_align_to = uint32(0)
  9579. xcb_padding_offset = uint32(0)
  9580. xcb_pad = uint32(0)
  9581. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  9582. xcb_parts_idx = uint32(0)
  9583. xcb_block_len = uint32(0)
  9584. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9585. /* xcb_create_window_value_list_t.background_pixmap */
  9586. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  9587. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9588. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9589. xcb_parts_idx++
  9590. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9591. }
  9592. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9593. /* xcb_create_window_value_list_t.background_pixel */
  9594. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  9595. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9596. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9597. xcb_parts_idx++
  9598. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9599. }
  9600. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9601. /* xcb_create_window_value_list_t.border_pixmap */
  9602. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  9603. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9604. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9605. xcb_parts_idx++
  9606. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9607. }
  9608. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9609. /* xcb_create_window_value_list_t.border_pixel */
  9610. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  9611. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9612. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9613. xcb_parts_idx++
  9614. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9615. }
  9616. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9617. /* xcb_create_window_value_list_t.bit_gravity */
  9618. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  9619. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9620. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9621. xcb_parts_idx++
  9622. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9623. }
  9624. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9625. /* xcb_create_window_value_list_t.win_gravity */
  9626. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  9627. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9628. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9629. xcb_parts_idx++
  9630. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9631. }
  9632. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9633. /* xcb_create_window_value_list_t.backing_store */
  9634. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  9635. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9636. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9637. xcb_parts_idx++
  9638. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9639. }
  9640. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9641. /* xcb_create_window_value_list_t.backing_planes */
  9642. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  9643. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9644. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9645. xcb_parts_idx++
  9646. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9647. }
  9648. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9649. /* xcb_create_window_value_list_t.backing_pixel */
  9650. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  9651. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9652. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9653. xcb_parts_idx++
  9654. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9655. }
  9656. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9657. /* xcb_create_window_value_list_t.override_redirect */
  9658. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  9659. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9660. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9661. xcb_parts_idx++
  9662. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9663. }
  9664. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9665. /* xcb_create_window_value_list_t.save_under */
  9666. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  9667. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9668. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9669. xcb_parts_idx++
  9670. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9671. }
  9672. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9673. /* xcb_create_window_value_list_t.event_mask */
  9674. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  9675. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9676. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9677. xcb_parts_idx++
  9678. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9679. }
  9680. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9681. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9682. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  9683. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9684. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9685. xcb_parts_idx++
  9686. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9687. }
  9688. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9689. /* xcb_create_window_value_list_t.colormap */
  9690. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  9691. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9692. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9693. xcb_parts_idx++
  9694. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9695. }
  9696. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9697. /* xcb_create_window_value_list_t.cursor */
  9698. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  9699. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9700. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9701. xcb_parts_idx++
  9702. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9703. }
  9704. /* insert padding */
  9705. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9706. xcb_buffer_len += xcb_block_len + xcb_pad
  9707. if uint32(0) != xcb_pad {
  9708. xcb_parts[xcb_parts_idx].Fiov_base = bp
  9709. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  9710. xcb_parts_idx++
  9711. xcb_pad = uint32(0)
  9712. }
  9713. xcb_block_len = uint32(0)
  9714. xcb_padding_offset = uint32(0)
  9715. if libc.UintptrFromInt32(0) == xcb_out {
  9716. /* allocate memory */
  9717. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  9718. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  9719. }
  9720. xcb_tmp = xcb_out
  9721. i = uint32(0)
  9722. for {
  9723. if !(i < xcb_parts_idx) {
  9724. break
  9725. }
  9726. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  9727. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  9728. }
  9729. if uint64(0) != xcb_parts[i].Fiov_len {
  9730. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  9731. }
  9732. goto _1
  9733. _1:
  9734. ;
  9735. i++
  9736. }
  9737. return libc.Int32FromUint32(xcb_buffer_len)
  9738. }
  9739. func Xxcb_create_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9740. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  9741. var xcb_tmp uintptr
  9742. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  9743. xcb_tmp = _buffer
  9744. xcb_buffer_len = uint32(0)
  9745. xcb_block_len = uint32(0)
  9746. xcb_pad = uint32(0)
  9747. xcb_align_to = uint32(0)
  9748. xcb_padding_offset = uint32(0)
  9749. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9750. /* xcb_create_window_value_list_t.background_pixmap */
  9751. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9752. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9753. xcb_tmp += uintptr(4)
  9754. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9755. }
  9756. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9757. /* xcb_create_window_value_list_t.background_pixel */
  9758. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9759. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9760. xcb_tmp += uintptr(4)
  9761. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9762. }
  9763. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9764. /* xcb_create_window_value_list_t.border_pixmap */
  9765. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9766. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9767. xcb_tmp += uintptr(4)
  9768. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9769. }
  9770. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9771. /* xcb_create_window_value_list_t.border_pixel */
  9772. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9773. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9774. xcb_tmp += uintptr(4)
  9775. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9776. }
  9777. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9778. /* xcb_create_window_value_list_t.bit_gravity */
  9779. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9780. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9781. xcb_tmp += uintptr(4)
  9782. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9783. }
  9784. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9785. /* xcb_create_window_value_list_t.win_gravity */
  9786. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9787. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9788. xcb_tmp += uintptr(4)
  9789. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9790. }
  9791. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9792. /* xcb_create_window_value_list_t.backing_store */
  9793. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9794. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9795. xcb_tmp += uintptr(4)
  9796. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9797. }
  9798. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9799. /* xcb_create_window_value_list_t.backing_planes */
  9800. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9801. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9802. xcb_tmp += uintptr(4)
  9803. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9804. }
  9805. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9806. /* xcb_create_window_value_list_t.backing_pixel */
  9807. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9808. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9809. xcb_tmp += uintptr(4)
  9810. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9811. }
  9812. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9813. /* xcb_create_window_value_list_t.override_redirect */
  9814. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9815. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9816. xcb_tmp += uintptr(4)
  9817. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9818. }
  9819. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9820. /* xcb_create_window_value_list_t.save_under */
  9821. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9822. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9823. xcb_tmp += uintptr(4)
  9824. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9825. }
  9826. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9827. /* xcb_create_window_value_list_t.event_mask */
  9828. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9829. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9830. xcb_tmp += uintptr(4)
  9831. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9832. }
  9833. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9834. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9835. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9836. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9837. xcb_tmp += uintptr(4)
  9838. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9839. }
  9840. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9841. /* xcb_create_window_value_list_t.colormap */
  9842. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  9843. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9844. xcb_tmp += uintptr(4)
  9845. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9846. }
  9847. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9848. /* xcb_create_window_value_list_t.cursor */
  9849. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  9850. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9851. xcb_tmp += uintptr(4)
  9852. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9853. }
  9854. /* insert padding */
  9855. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9856. xcb_buffer_len += xcb_block_len + xcb_pad
  9857. if uint32(0) != xcb_pad {
  9858. xcb_tmp += uintptr(xcb_pad)
  9859. xcb_pad = uint32(0)
  9860. }
  9861. xcb_block_len = uint32(0)
  9862. xcb_padding_offset = uint32(0)
  9863. return libc.Int32FromUint32(xcb_buffer_len)
  9864. }
  9865. func Xxcb_create_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  9866. bp := tls.Alloc(64)
  9867. defer tls.Free(64)
  9868. var _ /* _aux at bp+0 */ Txcb_create_window_value_list_t
  9869. return Xxcb_create_window_value_list_unpack(tls, _buffer, value_mask, bp)
  9870. }
  9871. func Xxcb_create_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9872. var _aux, xcb_tmp uintptr
  9873. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9874. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9875. xcb_tmp = _buffer
  9876. _aux = _buffer
  9877. xcb_buffer_len = uint32(0)
  9878. xcb_block_len = uint32(0)
  9879. xcb_pad = uint32(0)
  9880. xcb_align_to = uint32(0)
  9881. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  9882. xcb_tmp += uintptr(xcb_block_len)
  9883. xcb_buffer_len += xcb_block_len
  9884. xcb_block_len = uint32(0)
  9885. /* value_list */
  9886. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  9887. xcb_tmp += uintptr(xcb_block_len)
  9888. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9889. /* insert padding */
  9890. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9891. xcb_buffer_len += xcb_block_len + xcb_pad
  9892. if uint32(0) != xcb_pad {
  9893. xcb_tmp += uintptr(xcb_pad)
  9894. xcb_pad = uint32(0)
  9895. }
  9896. xcb_block_len = uint32(0)
  9897. return libc.Int32FromUint32(xcb_buffer_len)
  9898. }
  9899. 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) {
  9900. bp := tls.Alloc(112)
  9901. defer tls.Free(112)
  9902. var xcb_ret Txcb_void_cookie_t
  9903. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9904. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9905. _ = xcb_ret
  9906. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9907. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9908. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9909. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9910. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9911. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9912. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9913. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9914. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9915. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9916. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9917. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9918. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9919. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9920. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9921. /* xcb_create_window_value_list_t value_list */
  9922. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9923. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  9924. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req)))
  9925. return xcb_ret
  9926. }
  9927. var _xcb_req = Txcb_protocol_request_t{
  9928. Fcount: uint64(3),
  9929. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9930. Fisvoid: uint8(1),
  9931. }
  9932. 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) {
  9933. bp := tls.Alloc(112)
  9934. defer tls.Free(112)
  9935. var xcb_ret Txcb_void_cookie_t
  9936. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9937. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9938. _ = xcb_ret
  9939. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9940. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9941. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9942. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9943. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9944. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9945. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9946. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9947. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9948. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9949. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9950. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9951. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9952. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9953. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9954. /* xcb_create_window_value_list_t value_list */
  9955. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  9956. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  9957. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req1)))
  9958. return xcb_ret
  9959. }
  9960. var _xcb_req1 = Txcb_protocol_request_t{
  9961. Fcount: uint64(3),
  9962. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9963. Fisvoid: uint8(1),
  9964. }
  9965. 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) {
  9966. bp := tls.Alloc(128)
  9967. defer tls.Free(128)
  9968. var xcb_ret Txcb_void_cookie_t
  9969. var _ /* xcb_aux0 at bp+112 */ uintptr
  9970. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  9971. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  9972. _ = xcb_ret
  9973. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  9974. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  9975. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  9976. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  9977. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  9978. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  9979. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  9980. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  9981. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  9982. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  9983. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  9984. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  9985. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  9986. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  9987. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  9988. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  9989. /* xcb_create_window_value_list_t value_list */
  9990. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  9991. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  9992. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req2)))
  9993. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  9994. return xcb_ret
  9995. }
  9996. var _xcb_req2 = Txcb_protocol_request_t{
  9997. Fcount: uint64(3),
  9998. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  9999. Fisvoid: uint8(1),
  10000. }
  10001. 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) {
  10002. bp := tls.Alloc(128)
  10003. defer tls.Free(128)
  10004. var xcb_ret Txcb_void_cookie_t
  10005. var _ /* xcb_aux0 at bp+112 */ uintptr
  10006. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10007. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10008. _ = xcb_ret
  10009. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  10010. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10011. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10012. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10013. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10014. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10015. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10016. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10017. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10018. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10019. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10020. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10021. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10022. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10023. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10024. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10025. /* xcb_create_window_value_list_t value_list */
  10026. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  10027. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  10028. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req3)))
  10029. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  10030. return xcb_ret
  10031. }
  10032. var _xcb_req3 = Txcb_protocol_request_t{
  10033. Fcount: uint64(3),
  10034. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10035. Fisvoid: uint8(1),
  10036. }
  10037. func Xxcb_create_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10038. return R + libc.UintptrFromInt32(1)*32
  10039. }
  10040. func Xxcb_change_window_attributes_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10041. bp := tls.Alloc(16)
  10042. defer tls.Free(16)
  10043. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10044. var xcb_out, xcb_tmp uintptr
  10045. var xcb_parts [16]Tiovec
  10046. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10047. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10048. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10049. xcb_buffer_len = uint32(0)
  10050. xcb_align_to = uint32(0)
  10051. xcb_padding_offset = uint32(0)
  10052. xcb_pad = uint32(0)
  10053. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10054. xcb_parts_idx = uint32(0)
  10055. xcb_block_len = uint32(0)
  10056. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10057. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10058. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10059. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10060. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10061. xcb_parts_idx++
  10062. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10063. }
  10064. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10065. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10066. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10067. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10068. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10069. xcb_parts_idx++
  10070. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10071. }
  10072. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10073. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10074. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10075. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10076. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10077. xcb_parts_idx++
  10078. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10079. }
  10080. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10081. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10082. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10083. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10084. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10085. xcb_parts_idx++
  10086. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10087. }
  10088. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10089. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10090. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10091. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10092. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10093. xcb_parts_idx++
  10094. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10095. }
  10096. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10097. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10098. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10099. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10100. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10101. xcb_parts_idx++
  10102. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10103. }
  10104. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10105. /* xcb_change_window_attributes_value_list_t.backing_store */
  10106. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10107. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10108. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10109. xcb_parts_idx++
  10110. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10111. }
  10112. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10113. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10114. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  10115. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10116. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10117. xcb_parts_idx++
  10118. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10119. }
  10120. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10121. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10122. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  10123. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10124. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10125. xcb_parts_idx++
  10126. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10127. }
  10128. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10129. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10130. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  10131. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10132. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10133. xcb_parts_idx++
  10134. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10135. }
  10136. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10137. /* xcb_change_window_attributes_value_list_t.save_under */
  10138. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  10139. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10140. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10141. xcb_parts_idx++
  10142. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10143. }
  10144. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10145. /* xcb_change_window_attributes_value_list_t.event_mask */
  10146. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  10147. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10148. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10149. xcb_parts_idx++
  10150. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10151. }
  10152. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10153. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10154. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  10155. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10156. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10157. xcb_parts_idx++
  10158. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10159. }
  10160. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10161. /* xcb_change_window_attributes_value_list_t.colormap */
  10162. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  10163. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10164. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10165. xcb_parts_idx++
  10166. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10167. }
  10168. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10169. /* xcb_change_window_attributes_value_list_t.cursor */
  10170. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  10171. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10172. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10173. xcb_parts_idx++
  10174. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10175. }
  10176. /* insert padding */
  10177. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10178. xcb_buffer_len += xcb_block_len + xcb_pad
  10179. if uint32(0) != xcb_pad {
  10180. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10181. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10182. xcb_parts_idx++
  10183. xcb_pad = uint32(0)
  10184. }
  10185. xcb_block_len = uint32(0)
  10186. xcb_padding_offset = uint32(0)
  10187. if libc.UintptrFromInt32(0) == xcb_out {
  10188. /* allocate memory */
  10189. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10190. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10191. }
  10192. xcb_tmp = xcb_out
  10193. i = uint32(0)
  10194. for {
  10195. if !(i < xcb_parts_idx) {
  10196. break
  10197. }
  10198. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10199. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10200. }
  10201. if uint64(0) != xcb_parts[i].Fiov_len {
  10202. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10203. }
  10204. goto _1
  10205. _1:
  10206. ;
  10207. i++
  10208. }
  10209. return libc.Int32FromUint32(xcb_buffer_len)
  10210. }
  10211. func Xxcb_change_window_attributes_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10212. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10213. var xcb_tmp uintptr
  10214. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10215. xcb_tmp = _buffer
  10216. xcb_buffer_len = uint32(0)
  10217. xcb_block_len = uint32(0)
  10218. xcb_pad = uint32(0)
  10219. xcb_align_to = uint32(0)
  10220. xcb_padding_offset = uint32(0)
  10221. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10222. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10223. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10224. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10225. xcb_tmp += uintptr(4)
  10226. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10227. }
  10228. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10229. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10230. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10231. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10232. xcb_tmp += uintptr(4)
  10233. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10234. }
  10235. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10236. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10237. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10238. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10239. xcb_tmp += uintptr(4)
  10240. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10241. }
  10242. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10243. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10244. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10245. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10246. xcb_tmp += uintptr(4)
  10247. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10248. }
  10249. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10250. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10251. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10252. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10253. xcb_tmp += uintptr(4)
  10254. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10255. }
  10256. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10257. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10258. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10259. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10260. xcb_tmp += uintptr(4)
  10261. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10262. }
  10263. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10264. /* xcb_change_window_attributes_value_list_t.backing_store */
  10265. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10266. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10267. xcb_tmp += uintptr(4)
  10268. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10269. }
  10270. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10271. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10272. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10273. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10274. xcb_tmp += uintptr(4)
  10275. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10276. }
  10277. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10278. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10279. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10280. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10281. xcb_tmp += uintptr(4)
  10282. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10283. }
  10284. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10285. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10286. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10287. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10288. xcb_tmp += uintptr(4)
  10289. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10290. }
  10291. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10292. /* xcb_change_window_attributes_value_list_t.save_under */
  10293. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10294. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10295. xcb_tmp += uintptr(4)
  10296. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10297. }
  10298. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10299. /* xcb_change_window_attributes_value_list_t.event_mask */
  10300. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10301. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10302. xcb_tmp += uintptr(4)
  10303. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10304. }
  10305. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10306. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10307. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10308. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10309. xcb_tmp += uintptr(4)
  10310. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10311. }
  10312. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10313. /* xcb_change_window_attributes_value_list_t.colormap */
  10314. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  10315. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10316. xcb_tmp += uintptr(4)
  10317. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10318. }
  10319. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10320. /* xcb_change_window_attributes_value_list_t.cursor */
  10321. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  10322. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10323. xcb_tmp += uintptr(4)
  10324. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10325. }
  10326. /* insert padding */
  10327. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10328. xcb_buffer_len += xcb_block_len + xcb_pad
  10329. if uint32(0) != xcb_pad {
  10330. xcb_tmp += uintptr(xcb_pad)
  10331. xcb_pad = uint32(0)
  10332. }
  10333. xcb_block_len = uint32(0)
  10334. xcb_padding_offset = uint32(0)
  10335. return libc.Int32FromUint32(xcb_buffer_len)
  10336. }
  10337. func Xxcb_change_window_attributes_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  10338. bp := tls.Alloc(64)
  10339. defer tls.Free(64)
  10340. var _ /* _aux at bp+0 */ Txcb_change_window_attributes_value_list_t
  10341. return Xxcb_change_window_attributes_value_list_unpack(tls, _buffer, value_mask, bp)
  10342. }
  10343. func Xxcb_change_window_attributes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10344. var _aux, xcb_tmp uintptr
  10345. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10346. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10347. xcb_tmp = _buffer
  10348. _aux = _buffer
  10349. xcb_buffer_len = uint32(0)
  10350. xcb_block_len = uint32(0)
  10351. xcb_pad = uint32(0)
  10352. xcb_align_to = uint32(0)
  10353. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  10354. xcb_tmp += uintptr(xcb_block_len)
  10355. xcb_buffer_len += xcb_block_len
  10356. xcb_block_len = uint32(0)
  10357. /* value_list */
  10358. 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))
  10359. xcb_tmp += uintptr(xcb_block_len)
  10360. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  10361. /* insert padding */
  10362. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10363. xcb_buffer_len += xcb_block_len + xcb_pad
  10364. if uint32(0) != xcb_pad {
  10365. xcb_tmp += uintptr(xcb_pad)
  10366. xcb_pad = uint32(0)
  10367. }
  10368. xcb_block_len = uint32(0)
  10369. return libc.Int32FromUint32(xcb_buffer_len)
  10370. }
  10371. 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) {
  10372. bp := tls.Alloc(96)
  10373. defer tls.Free(96)
  10374. var xcb_ret Txcb_void_cookie_t
  10375. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10376. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10377. _ = xcb_ret
  10378. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10379. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10380. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10381. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10382. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10383. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10384. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10385. /* xcb_change_window_attributes_value_list_t value_list */
  10386. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10387. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10388. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req4)))
  10389. return xcb_ret
  10390. }
  10391. var _xcb_req4 = Txcb_protocol_request_t{
  10392. Fcount: uint64(3),
  10393. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10394. Fisvoid: uint8(1),
  10395. }
  10396. 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) {
  10397. bp := tls.Alloc(96)
  10398. defer tls.Free(96)
  10399. var xcb_ret Txcb_void_cookie_t
  10400. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10401. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10402. _ = xcb_ret
  10403. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10404. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10405. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10406. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10407. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10408. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10409. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10410. /* xcb_change_window_attributes_value_list_t value_list */
  10411. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10412. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10413. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req5)))
  10414. return xcb_ret
  10415. }
  10416. var _xcb_req5 = Txcb_protocol_request_t{
  10417. Fcount: uint64(3),
  10418. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10419. Fisvoid: uint8(1),
  10420. }
  10421. 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) {
  10422. bp := tls.Alloc(112)
  10423. defer tls.Free(112)
  10424. var xcb_ret Txcb_void_cookie_t
  10425. var _ /* xcb_aux0 at bp+96 */ uintptr
  10426. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10427. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10428. _ = xcb_ret
  10429. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10430. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10431. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10432. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10433. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10434. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10435. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10436. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10437. /* xcb_change_window_attributes_value_list_t value_list */
  10438. (*(*[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))
  10439. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10440. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req6)))
  10441. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10442. return xcb_ret
  10443. }
  10444. var _xcb_req6 = Txcb_protocol_request_t{
  10445. Fcount: uint64(3),
  10446. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10447. Fisvoid: uint8(1),
  10448. }
  10449. 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) {
  10450. bp := tls.Alloc(112)
  10451. defer tls.Free(112)
  10452. var xcb_ret Txcb_void_cookie_t
  10453. var _ /* xcb_aux0 at bp+96 */ uintptr
  10454. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10455. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10456. _ = xcb_ret
  10457. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10458. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10459. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10460. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10461. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10462. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10463. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10464. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10465. /* xcb_change_window_attributes_value_list_t value_list */
  10466. (*(*[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))
  10467. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10468. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req7)))
  10469. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10470. return xcb_ret
  10471. }
  10472. var _xcb_req7 = Txcb_protocol_request_t{
  10473. Fcount: uint64(3),
  10474. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10475. Fisvoid: uint8(1),
  10476. }
  10477. func Xxcb_change_window_attributes_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10478. return R + libc.UintptrFromInt32(1)*12
  10479. }
  10480. func Xxcb_get_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10481. bp := tls.Alloc(80)
  10482. defer tls.Free(80)
  10483. var xcb_ret Txcb_get_window_attributes_cookie_t
  10484. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10485. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10486. _ = xcb_ret
  10487. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10488. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10489. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10490. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10491. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10492. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10493. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req8)))
  10494. return xcb_ret
  10495. }
  10496. var _xcb_req8 = Txcb_protocol_request_t{
  10497. Fcount: uint64(2),
  10498. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10499. }
  10500. func Xxcb_get_window_attributes_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10501. bp := tls.Alloc(80)
  10502. defer tls.Free(80)
  10503. var xcb_ret Txcb_get_window_attributes_cookie_t
  10504. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10505. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10506. _ = xcb_ret
  10507. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10508. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10509. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10510. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10511. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10512. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10513. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req9)))
  10514. return xcb_ret
  10515. }
  10516. var _xcb_req9 = Txcb_protocol_request_t{
  10517. Fcount: uint64(2),
  10518. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10519. }
  10520. func Xxcb_get_window_attributes_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_window_attributes_cookie_t, e uintptr) (r uintptr) {
  10521. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  10522. }
  10523. func Xxcb_destroy_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10524. bp := tls.Alloc(80)
  10525. defer tls.Free(80)
  10526. var xcb_ret Txcb_void_cookie_t
  10527. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10528. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10529. _ = xcb_ret
  10530. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10531. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10532. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10533. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10534. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10535. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10536. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req10)))
  10537. return xcb_ret
  10538. }
  10539. var _xcb_req10 = Txcb_protocol_request_t{
  10540. Fcount: uint64(2),
  10541. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10542. Fisvoid: uint8(1),
  10543. }
  10544. func Xxcb_destroy_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10545. bp := tls.Alloc(80)
  10546. defer tls.Free(80)
  10547. var xcb_ret Txcb_void_cookie_t
  10548. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10549. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10550. _ = xcb_ret
  10551. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10552. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10553. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10554. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10555. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10556. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10557. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req11)))
  10558. return xcb_ret
  10559. }
  10560. var _xcb_req11 = Txcb_protocol_request_t{
  10561. Fcount: uint64(2),
  10562. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10563. Fisvoid: uint8(1),
  10564. }
  10565. func Xxcb_destroy_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10566. bp := tls.Alloc(80)
  10567. defer tls.Free(80)
  10568. var xcb_ret Txcb_void_cookie_t
  10569. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10570. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10571. _ = xcb_ret
  10572. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10573. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10574. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10575. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10576. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10577. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10578. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req12)))
  10579. return xcb_ret
  10580. }
  10581. var _xcb_req12 = Txcb_protocol_request_t{
  10582. Fcount: uint64(2),
  10583. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10584. Fisvoid: uint8(1),
  10585. }
  10586. func Xxcb_destroy_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10587. bp := tls.Alloc(80)
  10588. defer tls.Free(80)
  10589. var xcb_ret Txcb_void_cookie_t
  10590. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10591. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10592. _ = xcb_ret
  10593. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10594. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10595. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10596. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10597. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10598. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10599. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req13)))
  10600. return xcb_ret
  10601. }
  10602. var _xcb_req13 = Txcb_protocol_request_t{
  10603. Fcount: uint64(2),
  10604. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10605. Fisvoid: uint8(1),
  10606. }
  10607. func Xxcb_change_save_set_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10608. bp := tls.Alloc(80)
  10609. defer tls.Free(80)
  10610. var xcb_ret Txcb_void_cookie_t
  10611. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10612. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10613. _ = xcb_ret
  10614. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10615. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10616. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10617. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10618. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10619. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10620. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req14)))
  10621. return xcb_ret
  10622. }
  10623. var _xcb_req14 = Txcb_protocol_request_t{
  10624. Fcount: uint64(2),
  10625. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10626. Fisvoid: uint8(1),
  10627. }
  10628. func Xxcb_change_save_set(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10629. bp := tls.Alloc(80)
  10630. defer tls.Free(80)
  10631. var xcb_ret Txcb_void_cookie_t
  10632. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10633. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10634. _ = xcb_ret
  10635. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10636. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10637. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10638. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10639. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10640. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10641. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req15)))
  10642. return xcb_ret
  10643. }
  10644. var _xcb_req15 = Txcb_protocol_request_t{
  10645. Fcount: uint64(2),
  10646. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10647. Fisvoid: uint8(1),
  10648. }
  10649. 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) {
  10650. bp := tls.Alloc(80)
  10651. defer tls.Free(80)
  10652. var xcb_ret Txcb_void_cookie_t
  10653. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10654. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10655. _ = xcb_ret
  10656. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10657. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10658. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10659. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10660. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10661. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10662. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10663. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10664. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10665. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req16)))
  10666. return xcb_ret
  10667. }
  10668. var _xcb_req16 = Txcb_protocol_request_t{
  10669. Fcount: uint64(2),
  10670. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10671. Fisvoid: uint8(1),
  10672. }
  10673. 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) {
  10674. bp := tls.Alloc(80)
  10675. defer tls.Free(80)
  10676. var xcb_ret Txcb_void_cookie_t
  10677. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10678. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10679. _ = xcb_ret
  10680. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10681. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10682. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10683. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10684. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10685. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10686. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10687. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10688. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10689. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req17)))
  10690. return xcb_ret
  10691. }
  10692. var _xcb_req17 = Txcb_protocol_request_t{
  10693. Fcount: uint64(2),
  10694. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10695. Fisvoid: uint8(1),
  10696. }
  10697. func Xxcb_map_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10698. bp := tls.Alloc(80)
  10699. defer tls.Free(80)
  10700. var xcb_ret Txcb_void_cookie_t
  10701. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10702. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10703. _ = xcb_ret
  10704. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10705. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10706. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10707. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10708. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10709. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10710. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req18)))
  10711. return xcb_ret
  10712. }
  10713. var _xcb_req18 = Txcb_protocol_request_t{
  10714. Fcount: uint64(2),
  10715. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10716. Fisvoid: uint8(1),
  10717. }
  10718. func Xxcb_map_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10719. bp := tls.Alloc(80)
  10720. defer tls.Free(80)
  10721. var xcb_ret Txcb_void_cookie_t
  10722. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10723. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10724. _ = xcb_ret
  10725. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10726. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10727. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10728. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10729. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10730. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10731. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req19)))
  10732. return xcb_ret
  10733. }
  10734. var _xcb_req19 = Txcb_protocol_request_t{
  10735. Fcount: uint64(2),
  10736. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10737. Fisvoid: uint8(1),
  10738. }
  10739. func Xxcb_map_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10740. bp := tls.Alloc(80)
  10741. defer tls.Free(80)
  10742. var xcb_ret Txcb_void_cookie_t
  10743. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10744. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10745. _ = xcb_ret
  10746. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10747. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10748. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10749. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10750. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10751. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10752. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req20)))
  10753. return xcb_ret
  10754. }
  10755. var _xcb_req20 = Txcb_protocol_request_t{
  10756. Fcount: uint64(2),
  10757. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10758. Fisvoid: uint8(1),
  10759. }
  10760. func Xxcb_map_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10761. bp := tls.Alloc(80)
  10762. defer tls.Free(80)
  10763. var xcb_ret Txcb_void_cookie_t
  10764. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10765. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10766. _ = xcb_ret
  10767. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10768. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10769. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10770. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10771. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10772. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10773. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req21)))
  10774. return xcb_ret
  10775. }
  10776. var _xcb_req21 = Txcb_protocol_request_t{
  10777. Fcount: uint64(2),
  10778. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10779. Fisvoid: uint8(1),
  10780. }
  10781. func Xxcb_unmap_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10782. bp := tls.Alloc(80)
  10783. defer tls.Free(80)
  10784. var xcb_ret Txcb_void_cookie_t
  10785. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10786. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10787. _ = xcb_ret
  10788. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10789. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10790. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10791. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10792. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10793. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10794. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req22)))
  10795. return xcb_ret
  10796. }
  10797. var _xcb_req22 = Txcb_protocol_request_t{
  10798. Fcount: uint64(2),
  10799. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10800. Fisvoid: uint8(1),
  10801. }
  10802. func Xxcb_unmap_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10803. bp := tls.Alloc(80)
  10804. defer tls.Free(80)
  10805. var xcb_ret Txcb_void_cookie_t
  10806. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10807. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10808. _ = xcb_ret
  10809. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10810. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10811. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10812. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10813. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10814. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10815. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req23)))
  10816. return xcb_ret
  10817. }
  10818. var _xcb_req23 = Txcb_protocol_request_t{
  10819. Fcount: uint64(2),
  10820. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10821. Fisvoid: uint8(1),
  10822. }
  10823. func Xxcb_unmap_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10824. bp := tls.Alloc(80)
  10825. defer tls.Free(80)
  10826. var xcb_ret Txcb_void_cookie_t
  10827. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10828. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10829. _ = xcb_ret
  10830. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10831. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10832. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10833. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10834. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10835. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10836. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req24)))
  10837. return xcb_ret
  10838. }
  10839. var _xcb_req24 = Txcb_protocol_request_t{
  10840. Fcount: uint64(2),
  10841. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10842. Fisvoid: uint8(1),
  10843. }
  10844. func Xxcb_unmap_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10845. bp := tls.Alloc(80)
  10846. defer tls.Free(80)
  10847. var xcb_ret Txcb_void_cookie_t
  10848. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10849. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10850. _ = xcb_ret
  10851. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10852. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10853. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10854. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10855. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10856. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10857. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req25)))
  10858. return xcb_ret
  10859. }
  10860. var _xcb_req25 = Txcb_protocol_request_t{
  10861. Fcount: uint64(2),
  10862. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  10863. Fisvoid: uint8(1),
  10864. }
  10865. func Xxcb_configure_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10866. bp := tls.Alloc(16)
  10867. defer tls.Free(16)
  10868. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10869. var xcb_out, xcb_tmp uintptr
  10870. var xcb_parts [8]Tiovec
  10871. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10872. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10873. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10874. xcb_buffer_len = uint32(0)
  10875. xcb_align_to = uint32(0)
  10876. xcb_padding_offset = uint32(0)
  10877. xcb_pad = uint32(0)
  10878. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10879. xcb_parts_idx = uint32(0)
  10880. xcb_block_len = uint32(0)
  10881. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10882. /* xcb_configure_window_value_list_t.x */
  10883. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10884. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10885. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10886. xcb_parts_idx++
  10887. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10888. }
  10889. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10890. /* xcb_configure_window_value_list_t.y */
  10891. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10892. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10893. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10894. xcb_parts_idx++
  10895. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10896. }
  10897. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10898. /* xcb_configure_window_value_list_t.width */
  10899. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10900. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10901. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10902. xcb_parts_idx++
  10903. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10904. }
  10905. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  10906. /* xcb_configure_window_value_list_t.height */
  10907. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10908. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10909. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10910. xcb_parts_idx++
  10911. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10912. }
  10913. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  10914. /* xcb_configure_window_value_list_t.border_width */
  10915. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10916. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10917. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10918. xcb_parts_idx++
  10919. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10920. }
  10921. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  10922. /* xcb_configure_window_value_list_t.sibling */
  10923. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10924. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10925. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10926. xcb_parts_idx++
  10927. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10928. }
  10929. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  10930. /* xcb_configure_window_value_list_t.stack_mode */
  10931. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10932. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10933. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10934. xcb_parts_idx++
  10935. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10936. }
  10937. /* insert padding */
  10938. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10939. xcb_buffer_len += xcb_block_len + xcb_pad
  10940. if uint32(0) != xcb_pad {
  10941. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10942. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10943. xcb_parts_idx++
  10944. xcb_pad = uint32(0)
  10945. }
  10946. xcb_block_len = uint32(0)
  10947. xcb_padding_offset = uint32(0)
  10948. if libc.UintptrFromInt32(0) == xcb_out {
  10949. /* allocate memory */
  10950. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10951. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10952. }
  10953. xcb_tmp = xcb_out
  10954. i = uint32(0)
  10955. for {
  10956. if !(i < xcb_parts_idx) {
  10957. break
  10958. }
  10959. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10960. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10961. }
  10962. if uint64(0) != xcb_parts[i].Fiov_len {
  10963. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10964. }
  10965. goto _1
  10966. _1:
  10967. ;
  10968. i++
  10969. }
  10970. return libc.Int32FromUint32(xcb_buffer_len)
  10971. }
  10972. func Xxcb_configure_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  10973. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10974. var xcb_tmp uintptr
  10975. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10976. xcb_tmp = _buffer
  10977. xcb_buffer_len = uint32(0)
  10978. xcb_block_len = uint32(0)
  10979. xcb_pad = uint32(0)
  10980. xcb_align_to = uint32(0)
  10981. xcb_padding_offset = uint32(0)
  10982. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  10983. /* xcb_configure_window_value_list_t.x */
  10984. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fx = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  10985. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10986. xcb_tmp += uintptr(4)
  10987. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10988. }
  10989. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  10990. /* xcb_configure_window_value_list_t.y */
  10991. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fy = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  10992. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10993. xcb_tmp += uintptr(4)
  10994. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10995. }
  10996. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  10997. /* xcb_configure_window_value_list_t.width */
  10998. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fwidth = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10999. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11000. xcb_tmp += uintptr(4)
  11001. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11002. }
  11003. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  11004. /* xcb_configure_window_value_list_t.height */
  11005. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fheight = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11006. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11007. xcb_tmp += uintptr(4)
  11008. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11009. }
  11010. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  11011. /* xcb_configure_window_value_list_t.border_width */
  11012. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11013. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11014. xcb_tmp += uintptr(4)
  11015. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11016. }
  11017. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  11018. /* xcb_configure_window_value_list_t.sibling */
  11019. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fsibling = *(*Txcb_window_t)(unsafe.Pointer(xcb_tmp))
  11020. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11021. xcb_tmp += uintptr(4)
  11022. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11023. }
  11024. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  11025. /* xcb_configure_window_value_list_t.stack_mode */
  11026. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fstack_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11027. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11028. xcb_tmp += uintptr(4)
  11029. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11030. }
  11031. /* insert padding */
  11032. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  11033. xcb_buffer_len += xcb_block_len + xcb_pad
  11034. if uint32(0) != xcb_pad {
  11035. xcb_tmp += uintptr(xcb_pad)
  11036. xcb_pad = uint32(0)
  11037. }
  11038. xcb_block_len = uint32(0)
  11039. xcb_padding_offset = uint32(0)
  11040. return libc.Int32FromUint32(xcb_buffer_len)
  11041. }
  11042. func Xxcb_configure_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t) (r int32) {
  11043. bp := tls.Alloc(32)
  11044. defer tls.Free(32)
  11045. var _ /* _aux at bp+0 */ Txcb_configure_window_value_list_t
  11046. return Xxcb_configure_window_value_list_unpack(tls, _buffer, value_mask, bp)
  11047. }
  11048. func Xxcb_configure_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11049. var _aux, xcb_tmp uintptr
  11050. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11051. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11052. xcb_tmp = _buffer
  11053. _aux = _buffer
  11054. xcb_buffer_len = uint32(0)
  11055. xcb_block_len = uint32(0)
  11056. xcb_pad = uint32(0)
  11057. xcb_align_to = uint32(0)
  11058. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  11059. xcb_tmp += uintptr(xcb_block_len)
  11060. xcb_buffer_len += xcb_block_len
  11061. xcb_block_len = uint32(0)
  11062. /* value_list */
  11063. xcb_block_len += libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_configure_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  11064. xcb_tmp += uintptr(xcb_block_len)
  11065. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11066. /* insert padding */
  11067. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11068. xcb_buffer_len += xcb_block_len + xcb_pad
  11069. if uint32(0) != xcb_pad {
  11070. xcb_tmp += uintptr(xcb_pad)
  11071. xcb_pad = uint32(0)
  11072. }
  11073. xcb_block_len = uint32(0)
  11074. return libc.Int32FromUint32(xcb_buffer_len)
  11075. }
  11076. 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) {
  11077. bp := tls.Alloc(96)
  11078. defer tls.Free(96)
  11079. var xcb_ret Txcb_void_cookie_t
  11080. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11081. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11082. _ = xcb_ret
  11083. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11084. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11085. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11086. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11087. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11088. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11089. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11090. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11091. /* xcb_configure_window_value_list_t value_list */
  11092. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11093. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11094. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req26)))
  11095. return xcb_ret
  11096. }
  11097. var _xcb_req26 = Txcb_protocol_request_t{
  11098. Fcount: uint64(3),
  11099. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11100. Fisvoid: uint8(1),
  11101. }
  11102. 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) {
  11103. bp := tls.Alloc(96)
  11104. defer tls.Free(96)
  11105. var xcb_ret Txcb_void_cookie_t
  11106. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11107. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11108. _ = xcb_ret
  11109. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11110. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11111. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11112. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11113. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11114. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11115. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11116. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11117. /* xcb_configure_window_value_list_t value_list */
  11118. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11119. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11120. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req27)))
  11121. return xcb_ret
  11122. }
  11123. var _xcb_req27 = Txcb_protocol_request_t{
  11124. Fcount: uint64(3),
  11125. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11126. Fisvoid: uint8(1),
  11127. }
  11128. 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) {
  11129. bp := tls.Alloc(112)
  11130. defer tls.Free(112)
  11131. var xcb_ret Txcb_void_cookie_t
  11132. var _ /* xcb_aux0 at bp+96 */ uintptr
  11133. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11134. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11135. _ = xcb_ret
  11136. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11137. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11138. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11139. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11140. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11141. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11142. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11143. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11144. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11145. /* xcb_configure_window_value_list_t value_list */
  11146. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11147. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11148. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req28)))
  11149. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11150. return xcb_ret
  11151. }
  11152. var _xcb_req28 = Txcb_protocol_request_t{
  11153. Fcount: uint64(3),
  11154. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11155. Fisvoid: uint8(1),
  11156. }
  11157. 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) {
  11158. bp := tls.Alloc(112)
  11159. defer tls.Free(112)
  11160. var xcb_ret Txcb_void_cookie_t
  11161. var _ /* xcb_aux0 at bp+96 */ uintptr
  11162. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11163. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11164. _ = xcb_ret
  11165. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11166. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11167. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11168. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11169. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11170. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11171. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11172. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11173. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11174. /* xcb_configure_window_value_list_t value_list */
  11175. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11176. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11177. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req29)))
  11178. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11179. return xcb_ret
  11180. }
  11181. var _xcb_req29 = 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_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  11187. return R + libc.UintptrFromInt32(1)*12
  11188. }
  11189. func Xxcb_circulate_window_checked(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11190. bp := tls.Alloc(80)
  11191. defer tls.Free(80)
  11192. var xcb_ret Txcb_void_cookie_t
  11193. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11194. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11195. _ = xcb_ret
  11196. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11197. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11202. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req30)))
  11203. return xcb_ret
  11204. }
  11205. var _xcb_req30 = Txcb_protocol_request_t{
  11206. Fcount: uint64(2),
  11207. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11208. Fisvoid: uint8(1),
  11209. }
  11210. func Xxcb_circulate_window(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11211. bp := tls.Alloc(80)
  11212. defer tls.Free(80)
  11213. var xcb_ret Txcb_void_cookie_t
  11214. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11215. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11216. _ = xcb_ret
  11217. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11218. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11221. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11222. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11223. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req31)))
  11224. return xcb_ret
  11225. }
  11226. var _xcb_req31 = Txcb_protocol_request_t{
  11227. Fcount: uint64(2),
  11228. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11229. Fisvoid: uint8(1),
  11230. }
  11231. func Xxcb_get_geometry(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11232. bp := tls.Alloc(80)
  11233. defer tls.Free(80)
  11234. var xcb_ret Txcb_get_geometry_cookie_t
  11235. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11236. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11237. _ = xcb_ret
  11238. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11239. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11241. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11242. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11243. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11244. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req32)))
  11245. return xcb_ret
  11246. }
  11247. var _xcb_req32 = Txcb_protocol_request_t{
  11248. Fcount: uint64(2),
  11249. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11250. }
  11251. func Xxcb_get_geometry_unchecked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11252. bp := tls.Alloc(80)
  11253. defer tls.Free(80)
  11254. var xcb_ret Txcb_get_geometry_cookie_t
  11255. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11256. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11257. _ = xcb_ret
  11258. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11259. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11262. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11263. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11264. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req33)))
  11265. return xcb_ret
  11266. }
  11267. var _xcb_req33 = Txcb_protocol_request_t{
  11268. Fcount: uint64(2),
  11269. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11270. }
  11271. func Xxcb_get_geometry_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_geometry_cookie_t, e uintptr) (r uintptr) {
  11272. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11273. }
  11274. func Xxcb_query_tree_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11275. var _aux, xcb_tmp uintptr
  11276. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11277. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11278. xcb_tmp = _buffer
  11279. _aux = _buffer
  11280. xcb_buffer_len = uint32(0)
  11281. xcb_block_len = uint32(0)
  11282. xcb_pad = uint32(0)
  11283. xcb_align_to = uint32(0)
  11284. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11285. xcb_tmp += uintptr(xcb_block_len)
  11286. xcb_buffer_len += xcb_block_len
  11287. xcb_block_len = uint32(0)
  11288. /* children */
  11289. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_tree_reply_t)(unsafe.Pointer(_aux)).Fchildren_len)*libc.Uint64FromInt64(4))
  11290. xcb_tmp += uintptr(xcb_block_len)
  11291. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11292. /* insert padding */
  11293. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11294. xcb_buffer_len += xcb_block_len + xcb_pad
  11295. if uint32(0) != xcb_pad {
  11296. xcb_tmp += uintptr(xcb_pad)
  11297. xcb_pad = uint32(0)
  11298. }
  11299. xcb_block_len = uint32(0)
  11300. return libc.Int32FromUint32(xcb_buffer_len)
  11301. }
  11302. func Xxcb_query_tree(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11303. bp := tls.Alloc(80)
  11304. defer tls.Free(80)
  11305. var xcb_ret Txcb_query_tree_cookie_t
  11306. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11307. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11308. _ = xcb_ret
  11309. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11310. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11313. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11314. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11315. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req34)))
  11316. return xcb_ret
  11317. }
  11318. var _xcb_req34 = Txcb_protocol_request_t{
  11319. Fcount: uint64(2),
  11320. Fopcode: uint8(m_XCB_QUERY_TREE),
  11321. }
  11322. func Xxcb_query_tree_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11323. bp := tls.Alloc(80)
  11324. defer tls.Free(80)
  11325. var xcb_ret Txcb_query_tree_cookie_t
  11326. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11327. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11328. _ = xcb_ret
  11329. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11330. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11332. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11333. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11334. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11335. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req35)))
  11336. return xcb_ret
  11337. }
  11338. var _xcb_req35 = Txcb_protocol_request_t{
  11339. Fcount: uint64(2),
  11340. Fopcode: uint8(m_XCB_QUERY_TREE),
  11341. }
  11342. func Xxcb_query_tree_children(tls *libc.TLS, R uintptr) (r uintptr) {
  11343. return R + libc.UintptrFromInt32(1)*32
  11344. }
  11345. func Xxcb_query_tree_children_length(tls *libc.TLS, R uintptr) (r int32) {
  11346. return libc.Int32FromUint16((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)
  11347. }
  11348. func Xxcb_query_tree_children_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11349. var i Txcb_generic_iterator_t
  11350. _ = i
  11351. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)*4
  11352. i.Frem = 0
  11353. i.Findex = int32(int64(i.Fdata) - int64(R))
  11354. return i
  11355. }
  11356. func Xxcb_query_tree_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_tree_cookie_t, e uintptr) (r uintptr) {
  11357. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11358. }
  11359. func Xxcb_intern_atom_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11360. var _aux, xcb_tmp uintptr
  11361. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11362. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11363. xcb_tmp = _buffer
  11364. _aux = _buffer
  11365. xcb_buffer_len = uint32(0)
  11366. xcb_block_len = uint32(0)
  11367. xcb_pad = uint32(0)
  11368. xcb_align_to = uint32(0)
  11369. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  11370. xcb_tmp += uintptr(xcb_block_len)
  11371. xcb_buffer_len += xcb_block_len
  11372. xcb_block_len = uint32(0)
  11373. /* name */
  11374. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_intern_atom_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11375. xcb_tmp += uintptr(xcb_block_len)
  11376. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11377. /* insert padding */
  11378. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11379. xcb_buffer_len += xcb_block_len + xcb_pad
  11380. if uint32(0) != xcb_pad {
  11381. xcb_tmp += uintptr(xcb_pad)
  11382. xcb_pad = uint32(0)
  11383. }
  11384. xcb_block_len = uint32(0)
  11385. return libc.Int32FromUint32(xcb_buffer_len)
  11386. }
  11387. 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) {
  11388. bp := tls.Alloc(112)
  11389. defer tls.Free(112)
  11390. var xcb_ret Txcb_intern_atom_cookie_t
  11391. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11392. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11393. _ = xcb_ret
  11394. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11395. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11396. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11397. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11398. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11399. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11400. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11401. /* char name */
  11402. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11403. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11404. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11405. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11406. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req36)))
  11407. return xcb_ret
  11408. }
  11409. var _xcb_req36 = Txcb_protocol_request_t{
  11410. Fcount: uint64(4),
  11411. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11412. }
  11413. 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) {
  11414. bp := tls.Alloc(112)
  11415. defer tls.Free(112)
  11416. var xcb_ret Txcb_intern_atom_cookie_t
  11417. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11418. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11419. _ = xcb_ret
  11420. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11421. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11422. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11423. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11424. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11425. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11426. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11427. /* char name */
  11428. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11429. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11430. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11431. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11432. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req37)))
  11433. return xcb_ret
  11434. }
  11435. var _xcb_req37 = Txcb_protocol_request_t{
  11436. Fcount: uint64(4),
  11437. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11438. }
  11439. func Xxcb_intern_atom_reply(tls *libc.TLS, c uintptr, cookie Txcb_intern_atom_cookie_t, e uintptr) (r uintptr) {
  11440. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11441. }
  11442. func Xxcb_get_atom_name_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11443. var _aux, xcb_tmp uintptr
  11444. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11445. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11446. xcb_tmp = _buffer
  11447. _aux = _buffer
  11448. xcb_buffer_len = uint32(0)
  11449. xcb_block_len = uint32(0)
  11450. xcb_pad = uint32(0)
  11451. xcb_align_to = uint32(0)
  11452. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11453. xcb_tmp += uintptr(xcb_block_len)
  11454. xcb_buffer_len += xcb_block_len
  11455. xcb_block_len = uint32(0)
  11456. /* name */
  11457. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11458. xcb_tmp += uintptr(xcb_block_len)
  11459. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11460. /* insert padding */
  11461. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11462. xcb_buffer_len += xcb_block_len + xcb_pad
  11463. if uint32(0) != xcb_pad {
  11464. xcb_tmp += uintptr(xcb_pad)
  11465. xcb_pad = uint32(0)
  11466. }
  11467. xcb_block_len = uint32(0)
  11468. return libc.Int32FromUint32(xcb_buffer_len)
  11469. }
  11470. func Xxcb_get_atom_name(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11471. bp := tls.Alloc(80)
  11472. defer tls.Free(80)
  11473. var xcb_ret Txcb_get_atom_name_cookie_t
  11474. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11475. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11476. _ = xcb_ret
  11477. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11478. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11479. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11480. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11481. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11482. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11483. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req38)))
  11484. return xcb_ret
  11485. }
  11486. var _xcb_req38 = Txcb_protocol_request_t{
  11487. Fcount: uint64(2),
  11488. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11489. }
  11490. func Xxcb_get_atom_name_unchecked(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11491. bp := tls.Alloc(80)
  11492. defer tls.Free(80)
  11493. var xcb_ret Txcb_get_atom_name_cookie_t
  11494. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11495. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11496. _ = xcb_ret
  11497. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11498. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11499. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11500. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11501. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11503. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req39)))
  11504. return xcb_ret
  11505. }
  11506. var _xcb_req39 = Txcb_protocol_request_t{
  11507. Fcount: uint64(2),
  11508. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11509. }
  11510. func Xxcb_get_atom_name_name(tls *libc.TLS, R uintptr) (r uintptr) {
  11511. return R + libc.UintptrFromInt32(1)*32
  11512. }
  11513. func Xxcb_get_atom_name_name_length(tls *libc.TLS, R uintptr) (r int32) {
  11514. return libc.Int32FromUint16((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11515. }
  11516. func Xxcb_get_atom_name_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11517. var i Txcb_generic_iterator_t
  11518. _ = i
  11519. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11520. i.Frem = 0
  11521. i.Findex = int32(int64(i.Fdata) - int64(R))
  11522. return i
  11523. }
  11524. func Xxcb_get_atom_name_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_atom_name_cookie_t, e uintptr) (r uintptr) {
  11525. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11526. }
  11527. func Xxcb_change_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11528. var _aux, xcb_tmp uintptr
  11529. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11530. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11531. xcb_tmp = _buffer
  11532. _aux = _buffer
  11533. xcb_buffer_len = uint32(0)
  11534. xcb_block_len = uint32(0)
  11535. xcb_pad = uint32(0)
  11536. xcb_align_to = uint32(0)
  11537. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  11538. xcb_tmp += uintptr(xcb_block_len)
  11539. xcb_buffer_len += xcb_block_len
  11540. xcb_block_len = uint32(0)
  11541. /* data */
  11542. 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))
  11543. xcb_tmp += uintptr(xcb_block_len)
  11544. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11545. /* insert padding */
  11546. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11547. xcb_buffer_len += xcb_block_len + xcb_pad
  11548. if uint32(0) != xcb_pad {
  11549. xcb_tmp += uintptr(xcb_pad)
  11550. xcb_pad = uint32(0)
  11551. }
  11552. xcb_block_len = uint32(0)
  11553. return libc.Int32FromUint32(xcb_buffer_len)
  11554. }
  11555. 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) {
  11556. bp := tls.Alloc(128)
  11557. defer tls.Free(128)
  11558. var xcb_ret Txcb_void_cookie_t
  11559. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11560. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11561. _ = xcb_ret
  11562. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11563. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11564. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11565. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11566. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11567. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11568. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11569. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11570. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11571. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11572. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11573. /* void data */
  11574. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11575. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11576. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11577. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11578. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req40)))
  11579. return xcb_ret
  11580. }
  11581. var _xcb_req40 = Txcb_protocol_request_t{
  11582. Fcount: uint64(4),
  11583. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11584. Fisvoid: uint8(1),
  11585. }
  11586. 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) {
  11587. bp := tls.Alloc(128)
  11588. defer tls.Free(128)
  11589. var xcb_ret Txcb_void_cookie_t
  11590. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11591. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11592. _ = xcb_ret
  11593. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11594. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11595. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11596. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11597. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11598. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11599. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11600. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11601. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11602. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11603. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11604. /* void data */
  11605. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11606. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11607. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11608. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11609. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req41)))
  11610. return xcb_ret
  11611. }
  11612. var _xcb_req41 = Txcb_protocol_request_t{
  11613. Fcount: uint64(4),
  11614. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11615. Fisvoid: uint8(1),
  11616. }
  11617. func Xxcb_change_property_data(tls *libc.TLS, R uintptr) (r uintptr) {
  11618. return R + libc.UintptrFromInt32(1)*24
  11619. }
  11620. func Xxcb_change_property_data_length(tls *libc.TLS, R uintptr) (r int32) {
  11621. 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))
  11622. }
  11623. func Xxcb_change_property_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11624. var i Txcb_generic_iterator_t
  11625. _ = i
  11626. 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))
  11627. i.Frem = 0
  11628. i.Findex = int32(int64(i.Fdata) - int64(R))
  11629. return i
  11630. }
  11631. func Xxcb_delete_property_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11632. bp := tls.Alloc(80)
  11633. defer tls.Free(80)
  11634. var xcb_ret Txcb_void_cookie_t
  11635. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11636. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11637. _ = xcb_ret
  11638. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11639. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11640. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11641. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11642. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11643. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11644. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11645. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req42)))
  11646. return xcb_ret
  11647. }
  11648. var _xcb_req42 = Txcb_protocol_request_t{
  11649. Fcount: uint64(2),
  11650. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11651. Fisvoid: uint8(1),
  11652. }
  11653. func Xxcb_delete_property(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11654. bp := tls.Alloc(80)
  11655. defer tls.Free(80)
  11656. var xcb_ret Txcb_void_cookie_t
  11657. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11658. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11659. _ = xcb_ret
  11660. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11661. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11662. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11663. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11664. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11665. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11666. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11667. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req43)))
  11668. return xcb_ret
  11669. }
  11670. var _xcb_req43 = Txcb_protocol_request_t{
  11671. Fcount: uint64(2),
  11672. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11673. Fisvoid: uint8(1),
  11674. }
  11675. func Xxcb_get_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11676. var _aux, xcb_tmp uintptr
  11677. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11678. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11679. xcb_tmp = _buffer
  11680. _aux = _buffer
  11681. xcb_buffer_len = uint32(0)
  11682. xcb_block_len = uint32(0)
  11683. xcb_pad = uint32(0)
  11684. xcb_align_to = uint32(0)
  11685. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11686. xcb_tmp += uintptr(xcb_block_len)
  11687. xcb_buffer_len += xcb_block_len
  11688. xcb_block_len = uint32(0)
  11689. /* value */
  11690. 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))
  11691. xcb_tmp += uintptr(xcb_block_len)
  11692. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11693. /* insert padding */
  11694. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11695. xcb_buffer_len += xcb_block_len + xcb_pad
  11696. if uint32(0) != xcb_pad {
  11697. xcb_tmp += uintptr(xcb_pad)
  11698. xcb_pad = uint32(0)
  11699. }
  11700. xcb_block_len = uint32(0)
  11701. return libc.Int32FromUint32(xcb_buffer_len)
  11702. }
  11703. 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) {
  11704. bp := tls.Alloc(96)
  11705. defer tls.Free(96)
  11706. var xcb_ret Txcb_get_property_cookie_t
  11707. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11708. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11709. _ = xcb_ret
  11710. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11711. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11712. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11713. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11714. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11715. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11716. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11717. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11718. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11719. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11720. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req44)))
  11721. return xcb_ret
  11722. }
  11723. var _xcb_req44 = Txcb_protocol_request_t{
  11724. Fcount: uint64(2),
  11725. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11726. }
  11727. 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) {
  11728. bp := tls.Alloc(96)
  11729. defer tls.Free(96)
  11730. var xcb_ret Txcb_get_property_cookie_t
  11731. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11732. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11733. _ = xcb_ret
  11734. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11735. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11736. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11737. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11738. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11739. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11740. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11741. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11742. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11743. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11744. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req45)))
  11745. return xcb_ret
  11746. }
  11747. var _xcb_req45 = Txcb_protocol_request_t{
  11748. Fcount: uint64(2),
  11749. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11750. }
  11751. func Xxcb_get_property_value(tls *libc.TLS, R uintptr) (r uintptr) {
  11752. return R + libc.UintptrFromInt32(1)*32
  11753. }
  11754. func Xxcb_get_property_value_length(tls *libc.TLS, R uintptr) (r int32) {
  11755. 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)))
  11756. }
  11757. func Xxcb_get_property_value_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11758. var i Txcb_generic_iterator_t
  11759. _ = i
  11760. 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)))
  11761. i.Frem = 0
  11762. i.Findex = int32(int64(i.Fdata) - int64(R))
  11763. return i
  11764. }
  11765. func Xxcb_get_property_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_property_cookie_t, e uintptr) (r uintptr) {
  11766. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11767. }
  11768. func Xxcb_list_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11769. var _aux, xcb_tmp uintptr
  11770. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11771. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11772. xcb_tmp = _buffer
  11773. _aux = _buffer
  11774. xcb_buffer_len = uint32(0)
  11775. xcb_block_len = uint32(0)
  11776. xcb_pad = uint32(0)
  11777. xcb_align_to = uint32(0)
  11778. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11779. xcb_tmp += uintptr(xcb_block_len)
  11780. xcb_buffer_len += xcb_block_len
  11781. xcb_block_len = uint32(0)
  11782. /* atoms */
  11783. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_properties_reply_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  11784. xcb_tmp += uintptr(xcb_block_len)
  11785. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11786. /* insert padding */
  11787. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11788. xcb_buffer_len += xcb_block_len + xcb_pad
  11789. if uint32(0) != xcb_pad {
  11790. xcb_tmp += uintptr(xcb_pad)
  11791. xcb_pad = uint32(0)
  11792. }
  11793. xcb_block_len = uint32(0)
  11794. return libc.Int32FromUint32(xcb_buffer_len)
  11795. }
  11796. func Xxcb_list_properties(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11797. bp := tls.Alloc(80)
  11798. defer tls.Free(80)
  11799. var xcb_ret Txcb_list_properties_cookie_t
  11800. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11801. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11802. _ = xcb_ret
  11803. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11804. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11805. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11806. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11807. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11808. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11809. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req46)))
  11810. return xcb_ret
  11811. }
  11812. var _xcb_req46 = Txcb_protocol_request_t{
  11813. Fcount: uint64(2),
  11814. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11815. }
  11816. func Xxcb_list_properties_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11817. bp := tls.Alloc(80)
  11818. defer tls.Free(80)
  11819. var xcb_ret Txcb_list_properties_cookie_t
  11820. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11821. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11822. _ = xcb_ret
  11823. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11824. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11825. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11826. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11827. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11828. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11829. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req47)))
  11830. return xcb_ret
  11831. }
  11832. var _xcb_req47 = Txcb_protocol_request_t{
  11833. Fcount: uint64(2),
  11834. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11835. }
  11836. func Xxcb_list_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  11837. return R + libc.UintptrFromInt32(1)*32
  11838. }
  11839. func Xxcb_list_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  11840. return libc.Int32FromUint16((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)
  11841. }
  11842. func Xxcb_list_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11843. var i Txcb_generic_iterator_t
  11844. _ = i
  11845. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)*4
  11846. i.Frem = 0
  11847. i.Findex = int32(int64(i.Fdata) - int64(R))
  11848. return i
  11849. }
  11850. func Xxcb_list_properties_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_properties_cookie_t, e uintptr) (r uintptr) {
  11851. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11852. }
  11853. 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) {
  11854. bp := tls.Alloc(80)
  11855. defer tls.Free(80)
  11856. var xcb_ret Txcb_void_cookie_t
  11857. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11858. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11859. _ = xcb_ret
  11860. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11861. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11862. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11863. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11865. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11867. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11868. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req48)))
  11869. return xcb_ret
  11870. }
  11871. var _xcb_req48 = Txcb_protocol_request_t{
  11872. Fcount: uint64(2),
  11873. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11874. Fisvoid: uint8(1),
  11875. }
  11876. 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) {
  11877. bp := tls.Alloc(80)
  11878. defer tls.Free(80)
  11879. var xcb_ret Txcb_void_cookie_t
  11880. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  11881. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11882. _ = xcb_ret
  11883. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11884. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  11885. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11886. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11887. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11888. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  11889. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11890. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11891. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req49)))
  11892. return xcb_ret
  11893. }
  11894. var _xcb_req49 = Txcb_protocol_request_t{
  11895. Fcount: uint64(2),
  11896. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  11897. Fisvoid: uint8(1),
  11898. }
  11899. func Xxcb_get_selection_owner(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11900. bp := tls.Alloc(80)
  11901. defer tls.Free(80)
  11902. var xcb_ret Txcb_get_selection_owner_cookie_t
  11903. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11904. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11905. _ = xcb_ret
  11906. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11907. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11909. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11910. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11911. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11912. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req50)))
  11913. return xcb_ret
  11914. }
  11915. var _xcb_req50 = Txcb_protocol_request_t{
  11916. Fcount: uint64(2),
  11917. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11918. }
  11919. func Xxcb_get_selection_owner_unchecked(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  11920. bp := tls.Alloc(80)
  11921. defer tls.Free(80)
  11922. var xcb_ret Txcb_get_selection_owner_cookie_t
  11923. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  11924. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11925. _ = xcb_ret
  11926. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11927. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11928. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11929. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11930. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11931. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11932. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req51)))
  11933. return xcb_ret
  11934. }
  11935. var _xcb_req51 = Txcb_protocol_request_t{
  11936. Fcount: uint64(2),
  11937. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  11938. }
  11939. func Xxcb_get_selection_owner_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_selection_owner_cookie_t, e uintptr) (r uintptr) {
  11940. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11941. }
  11942. 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) {
  11943. bp := tls.Alloc(96)
  11944. defer tls.Free(96)
  11945. var xcb_ret Txcb_void_cookie_t
  11946. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  11947. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11948. _ = xcb_ret
  11949. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11950. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  11951. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11952. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  11953. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11954. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11955. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11956. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11957. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11958. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11959. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req52)))
  11960. return xcb_ret
  11961. }
  11962. var _xcb_req52 = Txcb_protocol_request_t{
  11963. Fcount: uint64(2),
  11964. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  11965. Fisvoid: uint8(1),
  11966. }
  11967. 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) {
  11968. bp := tls.Alloc(96)
  11969. defer tls.Free(96)
  11970. var xcb_ret Txcb_void_cookie_t
  11971. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  11972. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11973. _ = xcb_ret
  11974. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11975. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  11976. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  11977. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  11978. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11979. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  11980. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11981. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11982. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11984. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req53)))
  11985. return xcb_ret
  11986. }
  11987. var _xcb_req53 = Txcb_protocol_request_t{
  11988. Fcount: uint64(2),
  11989. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  11990. Fisvoid: uint8(1),
  11991. }
  11992. 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) {
  11993. bp := tls.Alloc(112)
  11994. defer tls.Free(112)
  11995. var xcb_ret Txcb_void_cookie_t
  11996. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  11997. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11998. _ = xcb_ret
  11999. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  12000. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  12001. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12002. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12003. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12004. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12005. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12006. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12007. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req54)))
  12008. return xcb_ret
  12009. }
  12010. var _xcb_req54 = Txcb_protocol_request_t{
  12011. Fcount: uint64(2),
  12012. Fopcode: uint8(m_XCB_SEND_EVENT),
  12013. Fisvoid: uint8(1),
  12014. }
  12015. 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) {
  12016. bp := tls.Alloc(112)
  12017. defer tls.Free(112)
  12018. var xcb_ret Txcb_void_cookie_t
  12019. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  12020. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12021. _ = xcb_ret
  12022. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  12023. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  12024. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12025. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12026. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12027. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12028. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12029. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12030. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req55)))
  12031. return xcb_ret
  12032. }
  12033. var _xcb_req55 = Txcb_protocol_request_t{
  12034. Fcount: uint64(2),
  12035. Fopcode: uint8(m_XCB_SEND_EVENT),
  12036. Fisvoid: uint8(1),
  12037. }
  12038. 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) {
  12039. bp := tls.Alloc(96)
  12040. defer tls.Free(96)
  12041. var xcb_ret Txcb_grab_pointer_cookie_t
  12042. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12043. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12044. _ = xcb_ret
  12045. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12046. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12047. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12048. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12049. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12050. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12051. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12052. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12053. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12054. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12055. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12056. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12057. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req56)))
  12058. return xcb_ret
  12059. }
  12060. var _xcb_req56 = Txcb_protocol_request_t{
  12061. Fcount: uint64(2),
  12062. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12063. }
  12064. 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) {
  12065. bp := tls.Alloc(96)
  12066. defer tls.Free(96)
  12067. var xcb_ret Txcb_grab_pointer_cookie_t
  12068. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12069. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12070. _ = xcb_ret
  12071. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12072. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12073. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12074. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12075. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12076. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12077. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12078. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12079. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12080. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12081. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12082. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12083. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req57)))
  12084. return xcb_ret
  12085. }
  12086. var _xcb_req57 = Txcb_protocol_request_t{
  12087. Fcount: uint64(2),
  12088. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12089. }
  12090. func Xxcb_grab_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_pointer_cookie_t, e uintptr) (r uintptr) {
  12091. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12092. }
  12093. func Xxcb_ungrab_pointer_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12094. bp := tls.Alloc(80)
  12095. defer tls.Free(80)
  12096. var xcb_ret Txcb_void_cookie_t
  12097. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12098. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12099. _ = xcb_ret
  12100. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12101. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12102. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12103. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12104. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12105. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12106. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req58)))
  12107. return xcb_ret
  12108. }
  12109. var _xcb_req58 = Txcb_protocol_request_t{
  12110. Fcount: uint64(2),
  12111. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12112. Fisvoid: uint8(1),
  12113. }
  12114. func Xxcb_ungrab_pointer(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12115. bp := tls.Alloc(80)
  12116. defer tls.Free(80)
  12117. var xcb_ret Txcb_void_cookie_t
  12118. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12119. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12120. _ = xcb_ret
  12121. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12122. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12126. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12127. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req59)))
  12128. return xcb_ret
  12129. }
  12130. var _xcb_req59 = Txcb_protocol_request_t{
  12131. Fcount: uint64(2),
  12132. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12133. Fisvoid: uint8(1),
  12134. }
  12135. 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) {
  12136. bp := tls.Alloc(96)
  12137. defer tls.Free(96)
  12138. var xcb_ret Txcb_void_cookie_t
  12139. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12140. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12141. _ = xcb_ret
  12142. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12143. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12144. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12145. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12146. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12147. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12148. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12149. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12150. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12151. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12152. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12153. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12154. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12156. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req60)))
  12157. return xcb_ret
  12158. }
  12159. var _xcb_req60 = Txcb_protocol_request_t{
  12160. Fcount: uint64(2),
  12161. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12162. Fisvoid: uint8(1),
  12163. }
  12164. 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) {
  12165. bp := tls.Alloc(96)
  12166. defer tls.Free(96)
  12167. var xcb_ret Txcb_void_cookie_t
  12168. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12169. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12170. _ = xcb_ret
  12171. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12172. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12173. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12174. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12175. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12176. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12177. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12178. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12179. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12180. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12181. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12182. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  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_req61)))
  12186. return xcb_ret
  12187. }
  12188. var _xcb_req61 = Txcb_protocol_request_t{
  12189. Fcount: uint64(2),
  12190. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12191. Fisvoid: uint8(1),
  12192. }
  12193. 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) {
  12194. bp := tls.Alloc(80)
  12195. defer tls.Free(80)
  12196. var xcb_ret Txcb_void_cookie_t
  12197. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12198. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12199. _ = xcb_ret
  12200. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12201. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12202. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12203. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12204. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12205. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12206. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12207. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12208. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req62)))
  12209. return xcb_ret
  12210. }
  12211. var _xcb_req62 = Txcb_protocol_request_t{
  12212. Fcount: uint64(2),
  12213. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12214. Fisvoid: uint8(1),
  12215. }
  12216. 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) {
  12217. bp := tls.Alloc(80)
  12218. defer tls.Free(80)
  12219. var xcb_ret Txcb_void_cookie_t
  12220. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12221. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12222. _ = xcb_ret
  12223. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12224. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12225. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12226. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12227. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12228. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12229. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12230. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12231. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req63)))
  12232. return xcb_ret
  12233. }
  12234. var _xcb_req63 = Txcb_protocol_request_t{
  12235. Fcount: uint64(2),
  12236. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12237. Fisvoid: uint8(1),
  12238. }
  12239. 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) {
  12240. bp := tls.Alloc(80)
  12241. defer tls.Free(80)
  12242. var xcb_ret Txcb_void_cookie_t
  12243. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12244. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12245. _ = xcb_ret
  12246. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12247. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12248. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12249. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12250. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12251. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12252. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12253. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12254. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12255. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req64)))
  12256. return xcb_ret
  12257. }
  12258. var _xcb_req64 = Txcb_protocol_request_t{
  12259. Fcount: uint64(2),
  12260. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12261. Fisvoid: uint8(1),
  12262. }
  12263. 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) {
  12264. bp := tls.Alloc(80)
  12265. defer tls.Free(80)
  12266. var xcb_ret Txcb_void_cookie_t
  12267. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12268. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12269. _ = xcb_ret
  12270. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12271. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12272. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12273. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12274. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12275. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12276. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12279. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req65)))
  12280. return xcb_ret
  12281. }
  12282. var _xcb_req65 = Txcb_protocol_request_t{
  12283. Fcount: uint64(2),
  12284. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12285. Fisvoid: uint8(1),
  12286. }
  12287. 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) {
  12288. bp := tls.Alloc(80)
  12289. defer tls.Free(80)
  12290. var xcb_ret Txcb_grab_keyboard_cookie_t
  12291. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12292. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12293. _ = xcb_ret
  12294. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12295. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12296. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12297. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12298. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12299. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12301. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12302. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12303. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12304. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req66)))
  12305. return xcb_ret
  12306. }
  12307. var _xcb_req66 = Txcb_protocol_request_t{
  12308. Fcount: uint64(2),
  12309. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12310. }
  12311. 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) {
  12312. bp := tls.Alloc(80)
  12313. defer tls.Free(80)
  12314. var xcb_ret Txcb_grab_keyboard_cookie_t
  12315. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12316. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12317. _ = xcb_ret
  12318. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12319. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12320. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12321. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12322. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12323. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12324. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12325. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12326. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12327. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12328. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req67)))
  12329. return xcb_ret
  12330. }
  12331. var _xcb_req67 = Txcb_protocol_request_t{
  12332. Fcount: uint64(2),
  12333. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12334. }
  12335. func Xxcb_grab_keyboard_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_keyboard_cookie_t, e uintptr) (r uintptr) {
  12336. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12337. }
  12338. func Xxcb_ungrab_keyboard_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12339. bp := tls.Alloc(80)
  12340. defer tls.Free(80)
  12341. var xcb_ret Txcb_void_cookie_t
  12342. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12343. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12344. _ = xcb_ret
  12345. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12346. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12347. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12348. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12349. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12350. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12351. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req68)))
  12352. return xcb_ret
  12353. }
  12354. var _xcb_req68 = Txcb_protocol_request_t{
  12355. Fcount: uint64(2),
  12356. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12357. Fisvoid: uint8(1),
  12358. }
  12359. func Xxcb_ungrab_keyboard(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12360. bp := tls.Alloc(80)
  12361. defer tls.Free(80)
  12362. var xcb_ret Txcb_void_cookie_t
  12363. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12364. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12365. _ = xcb_ret
  12366. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12367. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12368. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12369. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12370. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12371. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12372. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req69)))
  12373. return xcb_ret
  12374. }
  12375. var _xcb_req69 = Txcb_protocol_request_t{
  12376. Fcount: uint64(2),
  12377. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12378. Fisvoid: uint8(1),
  12379. }
  12380. 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) {
  12381. bp := tls.Alloc(80)
  12382. defer tls.Free(80)
  12383. var xcb_ret Txcb_void_cookie_t
  12384. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12385. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12386. _ = xcb_ret
  12387. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12388. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12389. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12390. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12391. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12392. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12393. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12394. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12395. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12396. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12397. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12398. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req70)))
  12399. return xcb_ret
  12400. }
  12401. var _xcb_req70 = Txcb_protocol_request_t{
  12402. Fcount: uint64(2),
  12403. Fopcode: uint8(m_XCB_GRAB_KEY),
  12404. Fisvoid: uint8(1),
  12405. }
  12406. 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) {
  12407. bp := tls.Alloc(80)
  12408. defer tls.Free(80)
  12409. var xcb_ret Txcb_void_cookie_t
  12410. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12411. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12412. _ = xcb_ret
  12413. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12414. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12415. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12416. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12417. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12418. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12419. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12420. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12421. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12422. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12423. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12424. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req71)))
  12425. return xcb_ret
  12426. }
  12427. var _xcb_req71 = Txcb_protocol_request_t{
  12428. Fcount: uint64(2),
  12429. Fopcode: uint8(m_XCB_GRAB_KEY),
  12430. Fisvoid: uint8(1),
  12431. }
  12432. 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) {
  12433. bp := tls.Alloc(80)
  12434. defer tls.Free(80)
  12435. var xcb_ret Txcb_void_cookie_t
  12436. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12437. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12438. _ = xcb_ret
  12439. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12440. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12441. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12442. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12443. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12444. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12445. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12446. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12447. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req72)))
  12448. return xcb_ret
  12449. }
  12450. var _xcb_req72 = Txcb_protocol_request_t{
  12451. Fcount: uint64(2),
  12452. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12453. Fisvoid: uint8(1),
  12454. }
  12455. 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) {
  12456. bp := tls.Alloc(80)
  12457. defer tls.Free(80)
  12458. var xcb_ret Txcb_void_cookie_t
  12459. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12460. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12461. _ = xcb_ret
  12462. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12463. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12464. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12465. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12466. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12467. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12468. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12469. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12470. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req73)))
  12471. return xcb_ret
  12472. }
  12473. var _xcb_req73 = Txcb_protocol_request_t{
  12474. Fcount: uint64(2),
  12475. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12476. Fisvoid: uint8(1),
  12477. }
  12478. func Xxcb_allow_events_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12479. bp := tls.Alloc(80)
  12480. defer tls.Free(80)
  12481. var xcb_ret Txcb_void_cookie_t
  12482. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12483. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12484. _ = xcb_ret
  12485. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12486. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12487. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12488. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12489. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12490. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12491. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req74)))
  12492. return xcb_ret
  12493. }
  12494. var _xcb_req74 = Txcb_protocol_request_t{
  12495. Fcount: uint64(2),
  12496. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12497. Fisvoid: uint8(1),
  12498. }
  12499. func Xxcb_allow_events(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12500. bp := tls.Alloc(80)
  12501. defer tls.Free(80)
  12502. var xcb_ret Txcb_void_cookie_t
  12503. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12504. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12505. _ = xcb_ret
  12506. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12507. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12508. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12509. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12510. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12511. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12512. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req75)))
  12513. return xcb_ret
  12514. }
  12515. var _xcb_req75 = Txcb_protocol_request_t{
  12516. Fcount: uint64(2),
  12517. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12518. Fisvoid: uint8(1),
  12519. }
  12520. func Xxcb_grab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12521. bp := tls.Alloc(80)
  12522. defer tls.Free(80)
  12523. var xcb_ret Txcb_void_cookie_t
  12524. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12525. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12526. _ = xcb_ret
  12527. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12528. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12529. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12530. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12531. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12532. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req76)))
  12533. return xcb_ret
  12534. }
  12535. var _xcb_req76 = Txcb_protocol_request_t{
  12536. Fcount: uint64(2),
  12537. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12538. Fisvoid: uint8(1),
  12539. }
  12540. func Xxcb_grab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12541. bp := tls.Alloc(80)
  12542. defer tls.Free(80)
  12543. var xcb_ret Txcb_void_cookie_t
  12544. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12545. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12546. _ = xcb_ret
  12547. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12548. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12549. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12550. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12551. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12552. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req77)))
  12553. return xcb_ret
  12554. }
  12555. var _xcb_req77 = Txcb_protocol_request_t{
  12556. Fcount: uint64(2),
  12557. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12558. Fisvoid: uint8(1),
  12559. }
  12560. func Xxcb_ungrab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12561. bp := tls.Alloc(80)
  12562. defer tls.Free(80)
  12563. var xcb_ret Txcb_void_cookie_t
  12564. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12565. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12566. _ = xcb_ret
  12567. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12568. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12569. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12570. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12571. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12572. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req78)))
  12573. return xcb_ret
  12574. }
  12575. var _xcb_req78 = Txcb_protocol_request_t{
  12576. Fcount: uint64(2),
  12577. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12578. Fisvoid: uint8(1),
  12579. }
  12580. func Xxcb_ungrab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12581. bp := tls.Alloc(80)
  12582. defer tls.Free(80)
  12583. var xcb_ret Txcb_void_cookie_t
  12584. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12585. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12586. _ = xcb_ret
  12587. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12588. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12589. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12590. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12591. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12592. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req79)))
  12593. return xcb_ret
  12594. }
  12595. var _xcb_req79 = Txcb_protocol_request_t{
  12596. Fcount: uint64(2),
  12597. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12598. Fisvoid: uint8(1),
  12599. }
  12600. func Xxcb_query_pointer(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12601. bp := tls.Alloc(80)
  12602. defer tls.Free(80)
  12603. var xcb_ret Txcb_query_pointer_cookie_t
  12604. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12605. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12606. _ = xcb_ret
  12607. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12608. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12609. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12610. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12611. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12612. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12613. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req80)))
  12614. return xcb_ret
  12615. }
  12616. var _xcb_req80 = Txcb_protocol_request_t{
  12617. Fcount: uint64(2),
  12618. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12619. }
  12620. func Xxcb_query_pointer_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12621. bp := tls.Alloc(80)
  12622. defer tls.Free(80)
  12623. var xcb_ret Txcb_query_pointer_cookie_t
  12624. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12625. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12626. _ = xcb_ret
  12627. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12628. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12629. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12630. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12631. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12632. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12633. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req81)))
  12634. return xcb_ret
  12635. }
  12636. var _xcb_req81 = Txcb_protocol_request_t{
  12637. Fcount: uint64(2),
  12638. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12639. }
  12640. func Xxcb_query_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_pointer_cookie_t, e uintptr) (r uintptr) {
  12641. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12642. }
  12643. func Xxcb_timecoord_next(tls *libc.TLS, i uintptr) {
  12644. var p1 uintptr
  12645. _ = p1
  12646. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Frem--
  12647. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  12648. p1 = i + 12
  12649. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  12650. }
  12651. func Xxcb_timecoord_end(tls *libc.TLS, i Txcb_timecoord_iterator_t) (r Txcb_generic_iterator_t) {
  12652. var ret Txcb_generic_iterator_t
  12653. _ = ret
  12654. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  12655. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  12656. ret.Frem = 0
  12657. return ret
  12658. }
  12659. func Xxcb_get_motion_events_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12660. var _aux, xcb_tmp uintptr
  12661. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12662. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12663. xcb_tmp = _buffer
  12664. _aux = _buffer
  12665. xcb_buffer_len = uint32(0)
  12666. xcb_block_len = uint32(0)
  12667. xcb_pad = uint32(0)
  12668. xcb_align_to = uint32(0)
  12669. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  12670. xcb_tmp += uintptr(xcb_block_len)
  12671. xcb_buffer_len += xcb_block_len
  12672. xcb_block_len = uint32(0)
  12673. /* events */
  12674. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(_aux)).Fevents_len)*libc.Uint64FromInt64(8))
  12675. xcb_tmp += uintptr(xcb_block_len)
  12676. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  12677. /* insert padding */
  12678. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12679. xcb_buffer_len += xcb_block_len + xcb_pad
  12680. if uint32(0) != xcb_pad {
  12681. xcb_tmp += uintptr(xcb_pad)
  12682. xcb_pad = uint32(0)
  12683. }
  12684. xcb_block_len = uint32(0)
  12685. return libc.Int32FromUint32(xcb_buffer_len)
  12686. }
  12687. 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) {
  12688. bp := tls.Alloc(80)
  12689. defer tls.Free(80)
  12690. var xcb_ret Txcb_get_motion_events_cookie_t
  12691. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12692. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12693. _ = xcb_ret
  12694. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12695. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12696. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12697. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12698. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12699. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12700. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12701. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12702. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req82)))
  12703. return xcb_ret
  12704. }
  12705. var _xcb_req82 = Txcb_protocol_request_t{
  12706. Fcount: uint64(2),
  12707. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12708. }
  12709. 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) {
  12710. bp := tls.Alloc(80)
  12711. defer tls.Free(80)
  12712. var xcb_ret Txcb_get_motion_events_cookie_t
  12713. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12714. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12715. _ = xcb_ret
  12716. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12717. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12718. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12719. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12720. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12721. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12722. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12723. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12724. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req83)))
  12725. return xcb_ret
  12726. }
  12727. var _xcb_req83 = Txcb_protocol_request_t{
  12728. Fcount: uint64(2),
  12729. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12730. }
  12731. func Xxcb_get_motion_events_events(tls *libc.TLS, R uintptr) (r uintptr) {
  12732. return R + libc.UintptrFromInt32(1)*32
  12733. }
  12734. func Xxcb_get_motion_events_events_length(tls *libc.TLS, R uintptr) (r int32) {
  12735. return libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12736. }
  12737. func Xxcb_get_motion_events_events_iterator(tls *libc.TLS, R uintptr) (r Txcb_timecoord_iterator_t) {
  12738. var i Txcb_timecoord_iterator_t
  12739. _ = i
  12740. i.Fdata = R + libc.UintptrFromInt32(1)*32
  12741. i.Frem = libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12742. i.Findex = int32(int64(i.Fdata) - int64(R))
  12743. return i
  12744. }
  12745. func Xxcb_get_motion_events_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_motion_events_cookie_t, e uintptr) (r uintptr) {
  12746. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12747. }
  12748. 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) {
  12749. bp := tls.Alloc(80)
  12750. defer tls.Free(80)
  12751. var xcb_ret Txcb_translate_coordinates_cookie_t
  12752. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12753. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12754. _ = xcb_ret
  12755. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12756. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12757. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12758. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12759. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12760. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12761. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12762. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12763. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12764. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req84)))
  12765. return xcb_ret
  12766. }
  12767. var _xcb_req84 = Txcb_protocol_request_t{
  12768. Fcount: uint64(2),
  12769. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12770. }
  12771. 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) {
  12772. bp := tls.Alloc(80)
  12773. defer tls.Free(80)
  12774. var xcb_ret Txcb_translate_coordinates_cookie_t
  12775. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12776. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12777. _ = xcb_ret
  12778. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12779. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12780. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12781. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12782. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12783. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12784. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12785. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12786. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12787. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req85)))
  12788. return xcb_ret
  12789. }
  12790. var _xcb_req85 = Txcb_protocol_request_t{
  12791. Fcount: uint64(2),
  12792. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12793. }
  12794. func Xxcb_translate_coordinates_reply(tls *libc.TLS, c uintptr, cookie Txcb_translate_coordinates_cookie_t, e uintptr) (r uintptr) {
  12795. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12796. }
  12797. 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) {
  12798. bp := tls.Alloc(96)
  12799. defer tls.Free(96)
  12800. var xcb_ret Txcb_void_cookie_t
  12801. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12802. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12803. _ = xcb_ret
  12804. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12805. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12806. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12807. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12808. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12809. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12810. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12811. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12812. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12813. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12814. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12815. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12816. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12817. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req86)))
  12818. return xcb_ret
  12819. }
  12820. var _xcb_req86 = Txcb_protocol_request_t{
  12821. Fcount: uint64(2),
  12822. Fopcode: uint8(m_XCB_WARP_POINTER),
  12823. Fisvoid: uint8(1),
  12824. }
  12825. 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) {
  12826. bp := tls.Alloc(96)
  12827. defer tls.Free(96)
  12828. var xcb_ret Txcb_void_cookie_t
  12829. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12830. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12831. _ = xcb_ret
  12832. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12833. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12834. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12835. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12836. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12837. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12838. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12839. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12840. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12841. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12842. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  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_req87)))
  12846. return xcb_ret
  12847. }
  12848. var _xcb_req87 = Txcb_protocol_request_t{
  12849. Fcount: uint64(2),
  12850. Fopcode: uint8(m_XCB_WARP_POINTER),
  12851. Fisvoid: uint8(1),
  12852. }
  12853. 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) {
  12854. bp := tls.Alloc(80)
  12855. defer tls.Free(80)
  12856. var xcb_ret Txcb_void_cookie_t
  12857. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12858. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12859. _ = xcb_ret
  12860. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12861. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12862. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12863. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12865. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12867. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req88)))
  12868. return xcb_ret
  12869. }
  12870. var _xcb_req88 = Txcb_protocol_request_t{
  12871. Fcount: uint64(2),
  12872. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12873. Fisvoid: uint8(1),
  12874. }
  12875. 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) {
  12876. bp := tls.Alloc(80)
  12877. defer tls.Free(80)
  12878. var xcb_ret Txcb_void_cookie_t
  12879. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  12880. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12881. _ = xcb_ret
  12882. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  12883. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  12884. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12886. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12887. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12888. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12889. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req89)))
  12890. return xcb_ret
  12891. }
  12892. var _xcb_req89 = Txcb_protocol_request_t{
  12893. Fcount: uint64(2),
  12894. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  12895. Fisvoid: uint8(1),
  12896. }
  12897. func Xxcb_get_input_focus(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12898. bp := tls.Alloc(80)
  12899. defer tls.Free(80)
  12900. var xcb_ret Txcb_get_input_focus_cookie_t
  12901. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12902. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12903. _ = xcb_ret
  12904. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12905. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12906. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12907. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12909. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req90)))
  12910. return xcb_ret
  12911. }
  12912. var _xcb_req90 = Txcb_protocol_request_t{
  12913. Fcount: uint64(2),
  12914. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12915. }
  12916. func Xxcb_get_input_focus_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  12917. bp := tls.Alloc(80)
  12918. defer tls.Free(80)
  12919. var xcb_ret Txcb_get_input_focus_cookie_t
  12920. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  12921. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12922. _ = xcb_ret
  12923. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12924. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12925. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12926. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12927. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12928. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req91)))
  12929. return xcb_ret
  12930. }
  12931. var _xcb_req91 = Txcb_protocol_request_t{
  12932. Fcount: uint64(2),
  12933. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  12934. }
  12935. func Xxcb_get_input_focus_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_input_focus_cookie_t, e uintptr) (r uintptr) {
  12936. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12937. }
  12938. func Xxcb_query_keymap(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  12939. bp := tls.Alloc(80)
  12940. defer tls.Free(80)
  12941. var xcb_ret Txcb_query_keymap_cookie_t
  12942. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  12943. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12944. _ = xcb_ret
  12945. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12946. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12947. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12948. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12949. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12950. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req92)))
  12951. return xcb_ret
  12952. }
  12953. var _xcb_req92 = Txcb_protocol_request_t{
  12954. Fcount: uint64(2),
  12955. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  12956. }
  12957. func Xxcb_query_keymap_unchecked(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  12958. bp := tls.Alloc(80)
  12959. defer tls.Free(80)
  12960. var xcb_ret Txcb_query_keymap_cookie_t
  12961. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  12962. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12963. _ = xcb_ret
  12964. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12967. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12968. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12969. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req93)))
  12970. return xcb_ret
  12971. }
  12972. var _xcb_req93 = Txcb_protocol_request_t{
  12973. Fcount: uint64(2),
  12974. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  12975. }
  12976. func Xxcb_query_keymap_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_keymap_cookie_t, e uintptr) (r uintptr) {
  12977. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12978. }
  12979. func Xxcb_open_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12980. var _aux, xcb_tmp uintptr
  12981. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12982. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12983. xcb_tmp = _buffer
  12984. _aux = _buffer
  12985. xcb_buffer_len = uint32(0)
  12986. xcb_block_len = uint32(0)
  12987. xcb_pad = uint32(0)
  12988. xcb_align_to = uint32(0)
  12989. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  12990. xcb_tmp += uintptr(xcb_block_len)
  12991. xcb_buffer_len += xcb_block_len
  12992. xcb_block_len = uint32(0)
  12993. /* name */
  12994. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_open_font_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  12995. xcb_tmp += uintptr(xcb_block_len)
  12996. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  12997. /* insert padding */
  12998. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12999. xcb_buffer_len += xcb_block_len + xcb_pad
  13000. if uint32(0) != xcb_pad {
  13001. xcb_tmp += uintptr(xcb_pad)
  13002. xcb_pad = uint32(0)
  13003. }
  13004. xcb_block_len = uint32(0)
  13005. return libc.Int32FromUint32(xcb_buffer_len)
  13006. }
  13007. 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) {
  13008. bp := tls.Alloc(112)
  13009. defer tls.Free(112)
  13010. var xcb_ret Txcb_void_cookie_t
  13011. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13012. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13013. _ = xcb_ret
  13014. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13015. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13016. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13017. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13018. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13019. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13020. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13021. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13022. /* char name */
  13023. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13024. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13025. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13026. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13027. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req94)))
  13028. return xcb_ret
  13029. }
  13030. var _xcb_req94 = Txcb_protocol_request_t{
  13031. Fcount: uint64(4),
  13032. Fopcode: uint8(m_XCB_OPEN_FONT),
  13033. Fisvoid: uint8(1),
  13034. }
  13035. func Xxcb_open_font(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
  13036. bp := tls.Alloc(112)
  13037. defer tls.Free(112)
  13038. var xcb_ret Txcb_void_cookie_t
  13039. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13040. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13041. _ = xcb_ret
  13042. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13043. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13044. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13045. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13046. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13047. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13048. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13049. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13050. /* char name */
  13051. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13052. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13053. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13054. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13055. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req95)))
  13056. return xcb_ret
  13057. }
  13058. var _xcb_req95 = Txcb_protocol_request_t{
  13059. Fcount: uint64(4),
  13060. Fopcode: uint8(m_XCB_OPEN_FONT),
  13061. Fisvoid: uint8(1),
  13062. }
  13063. func Xxcb_open_font_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13064. return R + libc.UintptrFromInt32(1)*12
  13065. }
  13066. func Xxcb_open_font_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13067. return libc.Int32FromUint16((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13068. }
  13069. func Xxcb_open_font_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13070. var i Txcb_generic_iterator_t
  13071. _ = i
  13072. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13073. i.Frem = 0
  13074. i.Findex = int32(int64(i.Fdata) - int64(R))
  13075. return i
  13076. }
  13077. func Xxcb_close_font_checked(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13078. bp := tls.Alloc(80)
  13079. defer tls.Free(80)
  13080. var xcb_ret Txcb_void_cookie_t
  13081. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13082. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13083. _ = xcb_ret
  13084. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13085. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13086. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13087. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13088. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13089. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13090. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req96)))
  13091. return xcb_ret
  13092. }
  13093. var _xcb_req96 = Txcb_protocol_request_t{
  13094. Fcount: uint64(2),
  13095. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13096. Fisvoid: uint8(1),
  13097. }
  13098. func Xxcb_close_font(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13099. bp := tls.Alloc(80)
  13100. defer tls.Free(80)
  13101. var xcb_ret Txcb_void_cookie_t
  13102. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13103. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13104. _ = xcb_ret
  13105. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13106. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13107. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13108. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13109. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13110. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13111. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req97)))
  13112. return xcb_ret
  13113. }
  13114. var _xcb_req97 = Txcb_protocol_request_t{
  13115. Fcount: uint64(2),
  13116. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13117. Fisvoid: uint8(1),
  13118. }
  13119. func Xxcb_fontprop_next(tls *libc.TLS, i uintptr) {
  13120. var p1 uintptr
  13121. _ = p1
  13122. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Frem--
  13123. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  13124. p1 = i + 12
  13125. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  13126. }
  13127. func Xxcb_fontprop_end(tls *libc.TLS, i Txcb_fontprop_iterator_t) (r Txcb_generic_iterator_t) {
  13128. var ret Txcb_generic_iterator_t
  13129. _ = ret
  13130. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  13131. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13132. ret.Frem = 0
  13133. return ret
  13134. }
  13135. func Xxcb_charinfo_next(tls *libc.TLS, i uintptr) {
  13136. var p1 uintptr
  13137. _ = p1
  13138. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Frem--
  13139. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  13140. p1 = i + 12
  13141. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  13142. }
  13143. func Xxcb_charinfo_end(tls *libc.TLS, i Txcb_charinfo_iterator_t) (r Txcb_generic_iterator_t) {
  13144. var ret Txcb_generic_iterator_t
  13145. _ = ret
  13146. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  13147. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13148. ret.Frem = 0
  13149. return ret
  13150. }
  13151. func Xxcb_query_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13152. var _aux, xcb_tmp uintptr
  13153. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13154. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13155. xcb_tmp = _buffer
  13156. _aux = _buffer
  13157. xcb_buffer_len = uint32(0)
  13158. xcb_block_len = uint32(0)
  13159. xcb_pad = uint32(0)
  13160. xcb_align_to = uint32(0)
  13161. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(60))
  13162. xcb_tmp += uintptr(xcb_block_len)
  13163. xcb_buffer_len += xcb_block_len
  13164. xcb_block_len = uint32(0)
  13165. /* properties */
  13166. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fproperties_len)*libc.Uint64FromInt64(8))
  13167. xcb_tmp += uintptr(xcb_block_len)
  13168. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13169. /* insert padding */
  13170. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13171. xcb_buffer_len += xcb_block_len + xcb_pad
  13172. if uint32(0) != xcb_pad {
  13173. xcb_tmp += uintptr(xcb_pad)
  13174. xcb_pad = uint32(0)
  13175. }
  13176. xcb_block_len = uint32(0)
  13177. /* char_infos */
  13178. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fchar_infos_len)*libc.Uint64FromInt64(12))
  13179. xcb_tmp += uintptr(xcb_block_len)
  13180. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  13181. /* insert padding */
  13182. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13183. xcb_buffer_len += xcb_block_len + xcb_pad
  13184. if uint32(0) != xcb_pad {
  13185. xcb_tmp += uintptr(xcb_pad)
  13186. xcb_pad = uint32(0)
  13187. }
  13188. xcb_block_len = uint32(0)
  13189. return libc.Int32FromUint32(xcb_buffer_len)
  13190. }
  13191. func Xxcb_query_font(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13192. bp := tls.Alloc(80)
  13193. defer tls.Free(80)
  13194. var xcb_ret Txcb_query_font_cookie_t
  13195. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13196. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13197. _ = xcb_ret
  13198. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13199. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13202. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13203. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13204. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req98)))
  13205. return xcb_ret
  13206. }
  13207. var _xcb_req98 = Txcb_protocol_request_t{
  13208. Fcount: uint64(2),
  13209. Fopcode: uint8(m_XCB_QUERY_FONT),
  13210. }
  13211. func Xxcb_query_font_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13212. bp := tls.Alloc(80)
  13213. defer tls.Free(80)
  13214. var xcb_ret Txcb_query_font_cookie_t
  13215. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13216. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13217. _ = xcb_ret
  13218. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13219. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13221. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13222. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13223. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13224. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req99)))
  13225. return xcb_ret
  13226. }
  13227. var _xcb_req99 = Txcb_protocol_request_t{
  13228. Fcount: uint64(2),
  13229. Fopcode: uint8(m_XCB_QUERY_FONT),
  13230. }
  13231. func Xxcb_query_font_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13232. return R + libc.UintptrFromInt32(1)*60
  13233. }
  13234. func Xxcb_query_font_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13235. return libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13236. }
  13237. func Xxcb_query_font_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13238. var i Txcb_fontprop_iterator_t
  13239. _ = i
  13240. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13241. i.Frem = libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13242. i.Findex = int32(int64(i.Fdata) - int64(R))
  13243. return i
  13244. }
  13245. func Xxcb_query_font_char_infos(tls *libc.TLS, R uintptr) (r uintptr) {
  13246. var prev Txcb_generic_iterator_t
  13247. _ = prev
  13248. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13249. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3)) + libc.UintptrFromInt32(0)
  13250. }
  13251. func Xxcb_query_font_char_infos_length(tls *libc.TLS, R uintptr) (r int32) {
  13252. return libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13253. }
  13254. func Xxcb_query_font_char_infos_iterator(tls *libc.TLS, R uintptr) (r Txcb_charinfo_iterator_t) {
  13255. var i Txcb_charinfo_iterator_t
  13256. var prev Txcb_generic_iterator_t
  13257. _, _ = i, prev
  13258. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13259. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  13260. i.Frem = libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13261. i.Findex = int32(int64(i.Fdata) - int64(R))
  13262. return i
  13263. }
  13264. func Xxcb_query_font_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_font_cookie_t, e uintptr) (r uintptr) {
  13265. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13266. }
  13267. func Xxcb_query_text_extents_sizeof(tls *libc.TLS, _buffer uintptr, string_len Tuint32_t) (r int32) {
  13268. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13269. var xcb_tmp uintptr
  13270. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13271. xcb_tmp = _buffer
  13272. xcb_buffer_len = uint32(0)
  13273. xcb_block_len = uint32(0)
  13274. xcb_pad = uint32(0)
  13275. xcb_align_to = uint32(0)
  13276. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13277. xcb_tmp += uintptr(xcb_block_len)
  13278. xcb_buffer_len += xcb_block_len
  13279. xcb_block_len = uint32(0)
  13280. /* string */
  13281. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(string_len)*libc.Uint64FromInt64(2))
  13282. xcb_tmp += uintptr(xcb_block_len)
  13283. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13284. /* insert padding */
  13285. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13286. xcb_buffer_len += xcb_block_len + xcb_pad
  13287. if uint32(0) != xcb_pad {
  13288. xcb_tmp += uintptr(xcb_pad)
  13289. xcb_pad = uint32(0)
  13290. }
  13291. xcb_block_len = uint32(0)
  13292. return libc.Int32FromUint32(xcb_buffer_len)
  13293. }
  13294. 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) {
  13295. bp := tls.Alloc(112)
  13296. defer tls.Free(112)
  13297. var xcb_ret Txcb_query_text_extents_cookie_t
  13298. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13299. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13300. _ = xcb_ret
  13301. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13302. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13303. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13304. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13305. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13306. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13307. /* xcb_char2b_t string */
  13308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13309. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13310. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13311. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13312. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req100)))
  13313. return xcb_ret
  13314. }
  13315. var _xcb_req100 = Txcb_protocol_request_t{
  13316. Fcount: uint64(4),
  13317. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13318. }
  13319. 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) {
  13320. bp := tls.Alloc(112)
  13321. defer tls.Free(112)
  13322. var xcb_ret Txcb_query_text_extents_cookie_t
  13323. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13324. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13325. _ = xcb_ret
  13326. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13327. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13328. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13329. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13330. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13331. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13332. /* xcb_char2b_t string */
  13333. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13334. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13335. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13336. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13337. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req101)))
  13338. return xcb_ret
  13339. }
  13340. var _xcb_req101 = Txcb_protocol_request_t{
  13341. Fcount: uint64(4),
  13342. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13343. }
  13344. func Xxcb_query_text_extents_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_text_extents_cookie_t, e uintptr) (r uintptr) {
  13345. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13346. }
  13347. func Xxcb_str_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13348. var _aux, xcb_tmp uintptr
  13349. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13350. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13351. xcb_tmp = _buffer
  13352. _aux = _buffer
  13353. xcb_buffer_len = uint32(0)
  13354. xcb_block_len = uint32(0)
  13355. xcb_pad = uint32(0)
  13356. xcb_align_to = uint32(0)
  13357. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(1))
  13358. xcb_tmp += uintptr(xcb_block_len)
  13359. xcb_buffer_len += xcb_block_len
  13360. xcb_block_len = uint32(0)
  13361. /* name */
  13362. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_str_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  13363. xcb_tmp += uintptr(xcb_block_len)
  13364. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13365. /* insert padding */
  13366. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13367. xcb_buffer_len += xcb_block_len + xcb_pad
  13368. if uint32(0) != xcb_pad {
  13369. xcb_tmp += uintptr(xcb_pad)
  13370. xcb_pad = uint32(0)
  13371. }
  13372. xcb_block_len = uint32(0)
  13373. return libc.Int32FromUint32(xcb_buffer_len)
  13374. }
  13375. func Xxcb_str_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13376. return R + libc.UintptrFromInt32(1)
  13377. }
  13378. func Xxcb_str_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13379. return libc.Int32FromUint8((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13380. }
  13381. func Xxcb_str_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13382. var i Txcb_generic_iterator_t
  13383. _ = i
  13384. i.Fdata = R + libc.UintptrFromInt32(1) + uintptr((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13385. i.Frem = 0
  13386. i.Findex = int32(int64(i.Fdata) - int64(R))
  13387. return i
  13388. }
  13389. func Xxcb_str_next(tls *libc.TLS, i uintptr) {
  13390. var R uintptr
  13391. var child Txcb_generic_iterator_t
  13392. _, _ = R, child
  13393. R = (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata
  13394. child.Fdata = R + uintptr(Xxcb_str_sizeof(tls, R))
  13395. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata))
  13396. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Frem--
  13397. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  13398. }
  13399. func Xxcb_str_end(tls *libc.TLS, _i Txcb_str_iterator_t) (r Txcb_generic_iterator_t) {
  13400. bp := tls.Alloc(16)
  13401. defer tls.Free(16)
  13402. *(*Txcb_str_iterator_t)(unsafe.Pointer(bp)) = _i
  13403. var ret Txcb_generic_iterator_t
  13404. _ = ret
  13405. for (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  13406. Xxcb_str_next(tls, bp)
  13407. }
  13408. ret.Fdata = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Fdata
  13409. ret.Frem = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem
  13410. ret.Findex = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Findex
  13411. return ret
  13412. }
  13413. func Xxcb_list_fonts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13414. var _aux, xcb_tmp uintptr
  13415. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13416. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13417. xcb_tmp = _buffer
  13418. _aux = _buffer
  13419. xcb_buffer_len = uint32(0)
  13420. xcb_block_len = uint32(0)
  13421. xcb_pad = uint32(0)
  13422. xcb_align_to = uint32(0)
  13423. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13424. xcb_tmp += uintptr(xcb_block_len)
  13425. xcb_buffer_len += xcb_block_len
  13426. xcb_block_len = uint32(0)
  13427. /* pattern */
  13428. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13429. xcb_tmp += uintptr(xcb_block_len)
  13430. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13431. /* insert padding */
  13432. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13433. xcb_buffer_len += xcb_block_len + xcb_pad
  13434. if uint32(0) != xcb_pad {
  13435. xcb_tmp += uintptr(xcb_pad)
  13436. xcb_pad = uint32(0)
  13437. }
  13438. xcb_block_len = uint32(0)
  13439. return libc.Int32FromUint32(xcb_buffer_len)
  13440. }
  13441. 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) {
  13442. bp := tls.Alloc(112)
  13443. defer tls.Free(112)
  13444. var xcb_ret Txcb_list_fonts_cookie_t
  13445. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13446. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13447. _ = xcb_ret
  13448. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13449. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13450. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13451. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13452. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13453. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13454. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13455. /* char pattern */
  13456. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13457. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13458. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13459. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13460. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req102)))
  13461. return xcb_ret
  13462. }
  13463. var _xcb_req102 = Txcb_protocol_request_t{
  13464. Fcount: uint64(4),
  13465. Fopcode: uint8(m_XCB_LIST_FONTS),
  13466. }
  13467. 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) {
  13468. bp := tls.Alloc(112)
  13469. defer tls.Free(112)
  13470. var xcb_ret Txcb_list_fonts_cookie_t
  13471. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13472. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13473. _ = xcb_ret
  13474. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13475. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13476. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13477. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13478. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13479. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13480. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13481. /* char pattern */
  13482. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13483. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13484. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13485. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13486. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req103)))
  13487. return xcb_ret
  13488. }
  13489. var _xcb_req103 = Txcb_protocol_request_t{
  13490. Fcount: uint64(4),
  13491. Fopcode: uint8(m_XCB_LIST_FONTS),
  13492. }
  13493. func Xxcb_list_fonts_names_length(tls *libc.TLS, R uintptr) (r int32) {
  13494. return libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13495. }
  13496. func Xxcb_list_fonts_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13497. var i Txcb_str_iterator_t
  13498. _ = i
  13499. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13500. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13501. i.Findex = int32(int64(i.Fdata) - int64(R))
  13502. return i
  13503. }
  13504. func Xxcb_list_fonts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_cookie_t, e uintptr) (r uintptr) {
  13505. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13506. }
  13507. func Xxcb_list_fonts_with_info_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13508. var _aux, xcb_tmp uintptr
  13509. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13510. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13511. xcb_tmp = _buffer
  13512. _aux = _buffer
  13513. xcb_buffer_len = uint32(0)
  13514. xcb_block_len = uint32(0)
  13515. xcb_pad = uint32(0)
  13516. xcb_align_to = uint32(0)
  13517. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13518. xcb_tmp += uintptr(xcb_block_len)
  13519. xcb_buffer_len += xcb_block_len
  13520. xcb_block_len = uint32(0)
  13521. /* pattern */
  13522. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13523. xcb_tmp += uintptr(xcb_block_len)
  13524. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13525. /* insert padding */
  13526. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13527. xcb_buffer_len += xcb_block_len + xcb_pad
  13528. if uint32(0) != xcb_pad {
  13529. xcb_tmp += uintptr(xcb_pad)
  13530. xcb_pad = uint32(0)
  13531. }
  13532. xcb_block_len = uint32(0)
  13533. return libc.Int32FromUint32(xcb_buffer_len)
  13534. }
  13535. 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) {
  13536. bp := tls.Alloc(112)
  13537. defer tls.Free(112)
  13538. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13539. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13540. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13541. _ = xcb_ret
  13542. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13543. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13544. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13545. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13546. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13547. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13548. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13549. /* char pattern */
  13550. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13551. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13552. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13553. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13554. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req104)))
  13555. return xcb_ret
  13556. }
  13557. var _xcb_req104 = Txcb_protocol_request_t{
  13558. Fcount: uint64(4),
  13559. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13560. }
  13561. 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) {
  13562. bp := tls.Alloc(112)
  13563. defer tls.Free(112)
  13564. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13565. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13566. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13567. _ = xcb_ret
  13568. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13569. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13570. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13571. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13572. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13573. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13574. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13575. /* char pattern */
  13576. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13577. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13578. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13579. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13580. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req105)))
  13581. return xcb_ret
  13582. }
  13583. var _xcb_req105 = Txcb_protocol_request_t{
  13584. Fcount: uint64(4),
  13585. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13586. }
  13587. func Xxcb_list_fonts_with_info_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13588. return R + libc.UintptrFromInt32(1)*60
  13589. }
  13590. func Xxcb_list_fonts_with_info_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13591. return libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13592. }
  13593. func Xxcb_list_fonts_with_info_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13594. var i Txcb_fontprop_iterator_t
  13595. _ = i
  13596. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13597. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13598. i.Findex = int32(int64(i.Fdata) - int64(R))
  13599. return i
  13600. }
  13601. func Xxcb_list_fonts_with_info_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13602. var prev Txcb_generic_iterator_t
  13603. _ = prev
  13604. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13605. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  13606. }
  13607. func Xxcb_list_fonts_with_info_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13608. return libc.Int32FromUint8((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13609. }
  13610. func Xxcb_list_fonts_with_info_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13611. var i, prev Txcb_generic_iterator_t
  13612. _, _ = i, prev
  13613. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13614. 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)
  13615. i.Frem = 0
  13616. i.Findex = int32(int64(i.Fdata) - int64(R))
  13617. return i
  13618. }
  13619. func Xxcb_list_fonts_with_info_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_with_info_cookie_t, e uintptr) (r uintptr) {
  13620. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13621. }
  13622. func Xxcb_set_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13623. var _aux, xcb_tmp uintptr
  13624. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13625. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13626. xcb_tmp = _buffer
  13627. _aux = _buffer
  13628. xcb_buffer_len = uint32(0)
  13629. xcb_block_len = uint32(0)
  13630. xcb_pad = uint32(0)
  13631. xcb_align_to = uint32(0)
  13632. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13633. xcb_tmp += uintptr(xcb_block_len)
  13634. xcb_buffer_len += xcb_block_len
  13635. xcb_block_len = uint32(0)
  13636. /* font */
  13637. i = uint32(0)
  13638. for {
  13639. if !(i < uint32((*Txcb_set_font_path_request_t)(unsafe.Pointer(_aux)).Ffont_qty)) {
  13640. break
  13641. }
  13642. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13643. xcb_block_len += xcb_tmp_len
  13644. xcb_tmp += uintptr(xcb_tmp_len)
  13645. goto _1
  13646. _1:
  13647. ;
  13648. i++
  13649. }
  13650. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13651. /* insert padding */
  13652. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13653. xcb_buffer_len += xcb_block_len + xcb_pad
  13654. if uint32(0) != xcb_pad {
  13655. xcb_tmp += uintptr(xcb_pad)
  13656. xcb_pad = uint32(0)
  13657. }
  13658. xcb_block_len = uint32(0)
  13659. return libc.Int32FromUint32(xcb_buffer_len)
  13660. }
  13661. func Xxcb_set_font_path_checked(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13662. bp := tls.Alloc(112)
  13663. defer tls.Free(112)
  13664. var i, xcb_tmp_len uint32
  13665. var xcb_ret Txcb_void_cookie_t
  13666. var xcb_tmp uintptr
  13667. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13668. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13669. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13670. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13671. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13672. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13673. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13674. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13675. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13676. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13677. /* xcb_str_t font */
  13678. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13679. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13680. xcb_tmp = font
  13681. i = uint32(0)
  13682. for {
  13683. if !(i < uint32(font_qty)) {
  13684. break
  13685. }
  13686. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13687. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13688. xcb_tmp += uintptr(xcb_tmp_len)
  13689. goto _1
  13690. _1:
  13691. ;
  13692. i++
  13693. }
  13694. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13695. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13696. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req106)))
  13697. return xcb_ret
  13698. }
  13699. var _xcb_req106 = Txcb_protocol_request_t{
  13700. Fcount: uint64(4),
  13701. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13702. Fisvoid: uint8(1),
  13703. }
  13704. func Xxcb_set_font_path(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13705. bp := tls.Alloc(112)
  13706. defer tls.Free(112)
  13707. var i, xcb_tmp_len uint32
  13708. var xcb_ret Txcb_void_cookie_t
  13709. var xcb_tmp uintptr
  13710. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13711. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13712. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13713. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13714. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13715. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13716. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13717. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13718. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13719. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13720. /* xcb_str_t font */
  13721. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13722. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13723. xcb_tmp = font
  13724. i = uint32(0)
  13725. for {
  13726. if !(i < uint32(font_qty)) {
  13727. break
  13728. }
  13729. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13730. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13731. xcb_tmp += uintptr(xcb_tmp_len)
  13732. goto _1
  13733. _1:
  13734. ;
  13735. i++
  13736. }
  13737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13738. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13739. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req107)))
  13740. return xcb_ret
  13741. }
  13742. var _xcb_req107 = Txcb_protocol_request_t{
  13743. Fcount: uint64(4),
  13744. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13745. Fisvoid: uint8(1),
  13746. }
  13747. func Xxcb_set_font_path_font_length(tls *libc.TLS, R uintptr) (r int32) {
  13748. return libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13749. }
  13750. func Xxcb_set_font_path_font_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13751. var i Txcb_str_iterator_t
  13752. _ = i
  13753. i.Fdata = R + libc.UintptrFromInt32(1)*8
  13754. i.Frem = libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13755. i.Findex = int32(int64(i.Fdata) - int64(R))
  13756. return i
  13757. }
  13758. func Xxcb_get_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13759. var _aux, xcb_tmp uintptr
  13760. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13761. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13762. xcb_tmp = _buffer
  13763. _aux = _buffer
  13764. xcb_buffer_len = uint32(0)
  13765. xcb_block_len = uint32(0)
  13766. xcb_pad = uint32(0)
  13767. xcb_align_to = uint32(0)
  13768. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  13769. xcb_tmp += uintptr(xcb_block_len)
  13770. xcb_buffer_len += xcb_block_len
  13771. xcb_block_len = uint32(0)
  13772. /* path */
  13773. i = uint32(0)
  13774. for {
  13775. if !(i < uint32((*Txcb_get_font_path_reply_t)(unsafe.Pointer(_aux)).Fpath_len)) {
  13776. break
  13777. }
  13778. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13779. xcb_block_len += xcb_tmp_len
  13780. xcb_tmp += uintptr(xcb_tmp_len)
  13781. goto _1
  13782. _1:
  13783. ;
  13784. i++
  13785. }
  13786. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13787. /* insert padding */
  13788. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13789. xcb_buffer_len += xcb_block_len + xcb_pad
  13790. if uint32(0) != xcb_pad {
  13791. xcb_tmp += uintptr(xcb_pad)
  13792. xcb_pad = uint32(0)
  13793. }
  13794. xcb_block_len = uint32(0)
  13795. return libc.Int32FromUint32(xcb_buffer_len)
  13796. }
  13797. func Xxcb_get_font_path(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13798. bp := tls.Alloc(80)
  13799. defer tls.Free(80)
  13800. var xcb_ret Txcb_get_font_path_cookie_t
  13801. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13802. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13803. _ = xcb_ret
  13804. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13805. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13806. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13807. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13808. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13809. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req108)))
  13810. return xcb_ret
  13811. }
  13812. var _xcb_req108 = Txcb_protocol_request_t{
  13813. Fcount: uint64(2),
  13814. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13815. }
  13816. func Xxcb_get_font_path_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13817. bp := tls.Alloc(80)
  13818. defer tls.Free(80)
  13819. var xcb_ret Txcb_get_font_path_cookie_t
  13820. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13821. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13822. _ = xcb_ret
  13823. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13824. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13825. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13826. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13827. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13828. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req109)))
  13829. return xcb_ret
  13830. }
  13831. var _xcb_req109 = Txcb_protocol_request_t{
  13832. Fcount: uint64(2),
  13833. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13834. }
  13835. func Xxcb_get_font_path_path_length(tls *libc.TLS, R uintptr) (r int32) {
  13836. return libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13837. }
  13838. func Xxcb_get_font_path_path_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13839. var i Txcb_str_iterator_t
  13840. _ = i
  13841. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13842. i.Frem = libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13843. i.Findex = int32(int64(i.Fdata) - int64(R))
  13844. return i
  13845. }
  13846. func Xxcb_get_font_path_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_font_path_cookie_t, e uintptr) (r uintptr) {
  13847. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13848. }
  13849. 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) {
  13850. bp := tls.Alloc(80)
  13851. defer tls.Free(80)
  13852. var xcb_ret Txcb_void_cookie_t
  13853. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13854. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13855. _ = xcb_ret
  13856. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13857. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13858. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13859. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13860. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13861. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13862. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13863. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13865. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req110)))
  13866. return xcb_ret
  13867. }
  13868. var _xcb_req110 = Txcb_protocol_request_t{
  13869. Fcount: uint64(2),
  13870. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13871. Fisvoid: uint8(1),
  13872. }
  13873. 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) {
  13874. bp := tls.Alloc(80)
  13875. defer tls.Free(80)
  13876. var xcb_ret Txcb_void_cookie_t
  13877. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  13878. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13879. _ = xcb_ret
  13880. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  13881. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  13882. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  13883. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  13884. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  13885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13886. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  13887. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13888. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13889. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req111)))
  13890. return xcb_ret
  13891. }
  13892. var _xcb_req111 = Txcb_protocol_request_t{
  13893. Fcount: uint64(2),
  13894. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  13895. Fisvoid: uint8(1),
  13896. }
  13897. func Xxcb_free_pixmap_checked(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13898. bp := tls.Alloc(80)
  13899. defer tls.Free(80)
  13900. var xcb_ret Txcb_void_cookie_t
  13901. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13902. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13903. _ = xcb_ret
  13904. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13905. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13906. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13907. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13909. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13910. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req112)))
  13911. return xcb_ret
  13912. }
  13913. var _xcb_req112 = Txcb_protocol_request_t{
  13914. Fcount: uint64(2),
  13915. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13916. Fisvoid: uint8(1),
  13917. }
  13918. func Xxcb_free_pixmap(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  13919. bp := tls.Alloc(80)
  13920. defer tls.Free(80)
  13921. var xcb_ret Txcb_void_cookie_t
  13922. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  13923. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13924. _ = xcb_ret
  13925. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13926. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  13927. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13928. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13929. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13930. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13931. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req113)))
  13932. return xcb_ret
  13933. }
  13934. var _xcb_req113 = Txcb_protocol_request_t{
  13935. Fcount: uint64(2),
  13936. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  13937. Fisvoid: uint8(1),
  13938. }
  13939. func Xxcb_create_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  13940. bp := tls.Alloc(16)
  13941. defer tls.Free(16)
  13942. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  13943. var xcb_out, xcb_tmp uintptr
  13944. var xcb_parts [24]Tiovec
  13945. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  13946. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  13947. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  13948. xcb_buffer_len = uint32(0)
  13949. xcb_align_to = uint32(0)
  13950. xcb_padding_offset = uint32(0)
  13951. xcb_pad = uint32(0)
  13952. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  13953. xcb_parts_idx = uint32(0)
  13954. xcb_block_len = uint32(0)
  13955. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  13956. /* xcb_create_gc_value_list_t.function */
  13957. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  13958. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13959. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13960. xcb_parts_idx++
  13961. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13962. }
  13963. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  13964. /* xcb_create_gc_value_list_t.plane_mask */
  13965. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  13966. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13967. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13968. xcb_parts_idx++
  13969. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13970. }
  13971. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  13972. /* xcb_create_gc_value_list_t.foreground */
  13973. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  13974. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13975. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13976. xcb_parts_idx++
  13977. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13978. }
  13979. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  13980. /* xcb_create_gc_value_list_t.background */
  13981. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  13982. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13983. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13984. xcb_parts_idx++
  13985. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13986. }
  13987. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  13988. /* xcb_create_gc_value_list_t.line_width */
  13989. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  13990. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13991. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  13992. xcb_parts_idx++
  13993. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13994. }
  13995. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  13996. /* xcb_create_gc_value_list_t.line_style */
  13997. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  13998. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  13999. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14000. xcb_parts_idx++
  14001. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14002. }
  14003. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14004. /* xcb_create_gc_value_list_t.cap_style */
  14005. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14006. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14007. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14008. xcb_parts_idx++
  14009. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14010. }
  14011. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14012. /* xcb_create_gc_value_list_t.join_style */
  14013. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14014. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14015. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14016. xcb_parts_idx++
  14017. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14018. }
  14019. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14020. /* xcb_create_gc_value_list_t.fill_style */
  14021. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14022. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14023. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14024. xcb_parts_idx++
  14025. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14026. }
  14027. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14028. /* xcb_create_gc_value_list_t.fill_rule */
  14029. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14030. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14031. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14032. xcb_parts_idx++
  14033. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14034. }
  14035. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14036. /* xcb_create_gc_value_list_t.tile */
  14037. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14038. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14039. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14040. xcb_parts_idx++
  14041. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14042. }
  14043. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14044. /* xcb_create_gc_value_list_t.stipple */
  14045. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14046. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14047. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14048. xcb_parts_idx++
  14049. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14050. }
  14051. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14052. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14053. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14054. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14055. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14056. xcb_parts_idx++
  14057. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14058. }
  14059. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14060. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14061. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14062. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14063. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14064. xcb_parts_idx++
  14065. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14066. }
  14067. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14068. /* xcb_create_gc_value_list_t.font */
  14069. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14070. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14071. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14072. xcb_parts_idx++
  14073. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14074. }
  14075. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14076. /* xcb_create_gc_value_list_t.subwindow_mode */
  14077. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14078. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14079. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14080. xcb_parts_idx++
  14081. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14082. }
  14083. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14084. /* xcb_create_gc_value_list_t.graphics_exposures */
  14085. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14086. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14087. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14088. xcb_parts_idx++
  14089. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14090. }
  14091. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14092. /* xcb_create_gc_value_list_t.clip_x_origin */
  14093. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14094. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14095. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14096. xcb_parts_idx++
  14097. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14098. }
  14099. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14100. /* xcb_create_gc_value_list_t.clip_y_origin */
  14101. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14102. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14103. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14104. xcb_parts_idx++
  14105. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14106. }
  14107. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14108. /* xcb_create_gc_value_list_t.clip_mask */
  14109. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14110. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14111. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14112. xcb_parts_idx++
  14113. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14114. }
  14115. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14116. /* xcb_create_gc_value_list_t.dash_offset */
  14117. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14118. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14119. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14120. xcb_parts_idx++
  14121. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14122. }
  14123. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14124. /* xcb_create_gc_value_list_t.dashes */
  14125. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14126. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14127. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14128. xcb_parts_idx++
  14129. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14130. }
  14131. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14132. /* xcb_create_gc_value_list_t.arc_mode */
  14133. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14134. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14135. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14136. xcb_parts_idx++
  14137. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14138. }
  14139. /* insert padding */
  14140. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14141. xcb_buffer_len += xcb_block_len + xcb_pad
  14142. if uint32(0) != xcb_pad {
  14143. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14144. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14145. xcb_parts_idx++
  14146. xcb_pad = uint32(0)
  14147. }
  14148. xcb_block_len = uint32(0)
  14149. xcb_padding_offset = uint32(0)
  14150. if libc.UintptrFromInt32(0) == xcb_out {
  14151. /* allocate memory */
  14152. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14153. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14154. }
  14155. xcb_tmp = xcb_out
  14156. i = uint32(0)
  14157. for {
  14158. if !(i < xcb_parts_idx) {
  14159. break
  14160. }
  14161. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14162. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14163. }
  14164. if uint64(0) != xcb_parts[i].Fiov_len {
  14165. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14166. }
  14167. goto _1
  14168. _1:
  14169. ;
  14170. i++
  14171. }
  14172. return libc.Int32FromUint32(xcb_buffer_len)
  14173. }
  14174. func Xxcb_create_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14175. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14176. var xcb_tmp uintptr
  14177. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14178. xcb_tmp = _buffer
  14179. xcb_buffer_len = uint32(0)
  14180. xcb_block_len = uint32(0)
  14181. xcb_pad = uint32(0)
  14182. xcb_align_to = uint32(0)
  14183. xcb_padding_offset = uint32(0)
  14184. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14185. /* xcb_create_gc_value_list_t.function */
  14186. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14187. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14188. xcb_tmp += uintptr(4)
  14189. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14190. }
  14191. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14192. /* xcb_create_gc_value_list_t.plane_mask */
  14193. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14194. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14195. xcb_tmp += uintptr(4)
  14196. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14197. }
  14198. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14199. /* xcb_create_gc_value_list_t.foreground */
  14200. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14201. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14202. xcb_tmp += uintptr(4)
  14203. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14204. }
  14205. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14206. /* xcb_create_gc_value_list_t.background */
  14207. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14208. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14209. xcb_tmp += uintptr(4)
  14210. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14211. }
  14212. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14213. /* xcb_create_gc_value_list_t.line_width */
  14214. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14215. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14216. xcb_tmp += uintptr(4)
  14217. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14218. }
  14219. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14220. /* xcb_create_gc_value_list_t.line_style */
  14221. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14222. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14223. xcb_tmp += uintptr(4)
  14224. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14225. }
  14226. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14227. /* xcb_create_gc_value_list_t.cap_style */
  14228. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14229. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14230. xcb_tmp += uintptr(4)
  14231. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14232. }
  14233. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14234. /* xcb_create_gc_value_list_t.join_style */
  14235. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14236. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14237. xcb_tmp += uintptr(4)
  14238. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14239. }
  14240. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14241. /* xcb_create_gc_value_list_t.fill_style */
  14242. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14243. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14244. xcb_tmp += uintptr(4)
  14245. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14246. }
  14247. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14248. /* xcb_create_gc_value_list_t.fill_rule */
  14249. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14250. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14251. xcb_tmp += uintptr(4)
  14252. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14253. }
  14254. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14255. /* xcb_create_gc_value_list_t.tile */
  14256. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14257. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14258. xcb_tmp += uintptr(4)
  14259. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14260. }
  14261. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14262. /* xcb_create_gc_value_list_t.stipple */
  14263. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14264. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14265. xcb_tmp += uintptr(4)
  14266. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14267. }
  14268. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14269. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14270. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14271. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14272. xcb_tmp += uintptr(4)
  14273. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14274. }
  14275. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14276. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14277. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14278. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14279. xcb_tmp += uintptr(4)
  14280. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14281. }
  14282. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14283. /* xcb_create_gc_value_list_t.font */
  14284. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14285. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14286. xcb_tmp += uintptr(4)
  14287. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14288. }
  14289. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14290. /* xcb_create_gc_value_list_t.subwindow_mode */
  14291. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14292. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14293. xcb_tmp += uintptr(4)
  14294. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14295. }
  14296. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14297. /* xcb_create_gc_value_list_t.graphics_exposures */
  14298. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14299. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14300. xcb_tmp += uintptr(4)
  14301. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14302. }
  14303. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14304. /* xcb_create_gc_value_list_t.clip_x_origin */
  14305. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14306. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14307. xcb_tmp += uintptr(4)
  14308. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14309. }
  14310. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14311. /* xcb_create_gc_value_list_t.clip_y_origin */
  14312. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14313. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14314. xcb_tmp += uintptr(4)
  14315. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14316. }
  14317. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14318. /* xcb_create_gc_value_list_t.clip_mask */
  14319. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14320. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14321. xcb_tmp += uintptr(4)
  14322. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14323. }
  14324. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14325. /* xcb_create_gc_value_list_t.dash_offset */
  14326. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14327. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14328. xcb_tmp += uintptr(4)
  14329. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14330. }
  14331. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14332. /* xcb_create_gc_value_list_t.dashes */
  14333. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14334. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14335. xcb_tmp += uintptr(4)
  14336. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14337. }
  14338. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14339. /* xcb_create_gc_value_list_t.arc_mode */
  14340. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14341. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14342. xcb_tmp += uintptr(4)
  14343. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14344. }
  14345. /* insert padding */
  14346. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14347. xcb_buffer_len += xcb_block_len + xcb_pad
  14348. if uint32(0) != xcb_pad {
  14349. xcb_tmp += uintptr(xcb_pad)
  14350. xcb_pad = uint32(0)
  14351. }
  14352. xcb_block_len = uint32(0)
  14353. xcb_padding_offset = uint32(0)
  14354. return libc.Int32FromUint32(xcb_buffer_len)
  14355. }
  14356. func Xxcb_create_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14357. bp := tls.Alloc(96)
  14358. defer tls.Free(96)
  14359. var _ /* _aux at bp+0 */ Txcb_create_gc_value_list_t
  14360. return Xxcb_create_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14361. }
  14362. func Xxcb_create_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14363. var _aux, xcb_tmp uintptr
  14364. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14365. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14366. xcb_tmp = _buffer
  14367. _aux = _buffer
  14368. xcb_buffer_len = uint32(0)
  14369. xcb_block_len = uint32(0)
  14370. xcb_pad = uint32(0)
  14371. xcb_align_to = uint32(0)
  14372. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  14373. xcb_tmp += uintptr(xcb_block_len)
  14374. xcb_buffer_len += xcb_block_len
  14375. xcb_block_len = uint32(0)
  14376. /* value_list */
  14377. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14378. xcb_tmp += uintptr(xcb_block_len)
  14379. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14380. /* insert padding */
  14381. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14382. xcb_buffer_len += xcb_block_len + xcb_pad
  14383. if uint32(0) != xcb_pad {
  14384. xcb_tmp += uintptr(xcb_pad)
  14385. xcb_pad = uint32(0)
  14386. }
  14387. xcb_block_len = uint32(0)
  14388. return libc.Int32FromUint32(xcb_buffer_len)
  14389. }
  14390. 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) {
  14391. bp := tls.Alloc(96)
  14392. defer tls.Free(96)
  14393. var xcb_ret Txcb_void_cookie_t
  14394. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14395. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14396. _ = xcb_ret
  14397. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14398. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14399. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14400. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14401. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14402. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14403. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14404. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14405. /* xcb_create_gc_value_list_t value_list */
  14406. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14407. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14408. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req114)))
  14409. return xcb_ret
  14410. }
  14411. var _xcb_req114 = Txcb_protocol_request_t{
  14412. Fcount: uint64(3),
  14413. Fopcode: uint8(m_XCB_CREATE_GC),
  14414. Fisvoid: uint8(1),
  14415. }
  14416. 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) {
  14417. bp := tls.Alloc(96)
  14418. defer tls.Free(96)
  14419. var xcb_ret Txcb_void_cookie_t
  14420. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14421. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14422. _ = xcb_ret
  14423. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14424. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14425. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14426. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14427. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14428. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14429. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14430. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14431. /* xcb_create_gc_value_list_t value_list */
  14432. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14433. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14434. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req115)))
  14435. return xcb_ret
  14436. }
  14437. var _xcb_req115 = Txcb_protocol_request_t{
  14438. Fcount: uint64(3),
  14439. Fopcode: uint8(m_XCB_CREATE_GC),
  14440. Fisvoid: uint8(1),
  14441. }
  14442. 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) {
  14443. bp := tls.Alloc(112)
  14444. defer tls.Free(112)
  14445. var xcb_ret Txcb_void_cookie_t
  14446. var _ /* xcb_aux0 at bp+96 */ uintptr
  14447. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14448. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14449. _ = xcb_ret
  14450. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14451. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14452. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14453. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14454. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14455. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14456. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14457. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14458. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14459. /* xcb_create_gc_value_list_t value_list */
  14460. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14461. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14462. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req116)))
  14463. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14464. return xcb_ret
  14465. }
  14466. var _xcb_req116 = Txcb_protocol_request_t{
  14467. Fcount: uint64(3),
  14468. Fopcode: uint8(m_XCB_CREATE_GC),
  14469. Fisvoid: uint8(1),
  14470. }
  14471. 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) {
  14472. bp := tls.Alloc(112)
  14473. defer tls.Free(112)
  14474. var xcb_ret Txcb_void_cookie_t
  14475. var _ /* xcb_aux0 at bp+96 */ uintptr
  14476. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14477. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14478. _ = xcb_ret
  14479. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14480. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14481. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14482. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14483. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14484. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14485. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14486. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14487. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14488. /* xcb_create_gc_value_list_t value_list */
  14489. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14490. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14491. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req117)))
  14492. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14493. return xcb_ret
  14494. }
  14495. var _xcb_req117 = 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_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  14501. return R + libc.UintptrFromInt32(1)*16
  14502. }
  14503. func Xxcb_change_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14504. bp := tls.Alloc(16)
  14505. defer tls.Free(16)
  14506. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14507. var xcb_out, xcb_tmp uintptr
  14508. var xcb_parts [24]Tiovec
  14509. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  14510. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14511. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14512. xcb_buffer_len = uint32(0)
  14513. xcb_align_to = uint32(0)
  14514. xcb_padding_offset = uint32(0)
  14515. xcb_pad = uint32(0)
  14516. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  14517. xcb_parts_idx = uint32(0)
  14518. xcb_block_len = uint32(0)
  14519. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14520. /* xcb_change_gc_value_list_t.function */
  14521. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14522. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14523. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14524. xcb_parts_idx++
  14525. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14526. }
  14527. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14528. /* xcb_change_gc_value_list_t.plane_mask */
  14529. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14530. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14531. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14532. xcb_parts_idx++
  14533. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14534. }
  14535. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14536. /* xcb_change_gc_value_list_t.foreground */
  14537. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14538. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14539. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14540. xcb_parts_idx++
  14541. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14542. }
  14543. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14544. /* xcb_change_gc_value_list_t.background */
  14545. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14546. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14547. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14548. xcb_parts_idx++
  14549. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14550. }
  14551. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14552. /* xcb_change_gc_value_list_t.line_width */
  14553. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14554. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14555. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14556. xcb_parts_idx++
  14557. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14558. }
  14559. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14560. /* xcb_change_gc_value_list_t.line_style */
  14561. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14562. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14563. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14564. xcb_parts_idx++
  14565. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14566. }
  14567. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14568. /* xcb_change_gc_value_list_t.cap_style */
  14569. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14570. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14571. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14572. xcb_parts_idx++
  14573. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14574. }
  14575. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14576. /* xcb_change_gc_value_list_t.join_style */
  14577. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14578. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14579. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14580. xcb_parts_idx++
  14581. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14582. }
  14583. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14584. /* xcb_change_gc_value_list_t.fill_style */
  14585. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14586. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14587. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14588. xcb_parts_idx++
  14589. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14590. }
  14591. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14592. /* xcb_change_gc_value_list_t.fill_rule */
  14593. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14594. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14595. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14596. xcb_parts_idx++
  14597. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14598. }
  14599. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14600. /* xcb_change_gc_value_list_t.tile */
  14601. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14602. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14603. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14604. xcb_parts_idx++
  14605. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14606. }
  14607. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14608. /* xcb_change_gc_value_list_t.stipple */
  14609. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14610. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14611. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14612. xcb_parts_idx++
  14613. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14614. }
  14615. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14616. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14617. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14618. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14619. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14620. xcb_parts_idx++
  14621. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14622. }
  14623. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14624. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14625. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14626. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14627. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14628. xcb_parts_idx++
  14629. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14630. }
  14631. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14632. /* xcb_change_gc_value_list_t.font */
  14633. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14634. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14635. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14636. xcb_parts_idx++
  14637. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14638. }
  14639. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14640. /* xcb_change_gc_value_list_t.subwindow_mode */
  14641. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14642. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14643. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14644. xcb_parts_idx++
  14645. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14646. }
  14647. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14648. /* xcb_change_gc_value_list_t.graphics_exposures */
  14649. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14650. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14651. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14652. xcb_parts_idx++
  14653. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14654. }
  14655. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14656. /* xcb_change_gc_value_list_t.clip_x_origin */
  14657. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14658. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14659. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14660. xcb_parts_idx++
  14661. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14662. }
  14663. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14664. /* xcb_change_gc_value_list_t.clip_y_origin */
  14665. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14666. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14667. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14668. xcb_parts_idx++
  14669. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14670. }
  14671. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14672. /* xcb_change_gc_value_list_t.clip_mask */
  14673. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14674. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14675. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14676. xcb_parts_idx++
  14677. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14678. }
  14679. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14680. /* xcb_change_gc_value_list_t.dash_offset */
  14681. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14682. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14683. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14684. xcb_parts_idx++
  14685. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14686. }
  14687. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14688. /* xcb_change_gc_value_list_t.dashes */
  14689. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14690. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14691. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14692. xcb_parts_idx++
  14693. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14694. }
  14695. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14696. /* xcb_change_gc_value_list_t.arc_mode */
  14697. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14698. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14699. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14700. xcb_parts_idx++
  14701. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14702. }
  14703. /* insert padding */
  14704. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14705. xcb_buffer_len += xcb_block_len + xcb_pad
  14706. if uint32(0) != xcb_pad {
  14707. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14708. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14709. xcb_parts_idx++
  14710. xcb_pad = uint32(0)
  14711. }
  14712. xcb_block_len = uint32(0)
  14713. xcb_padding_offset = uint32(0)
  14714. if libc.UintptrFromInt32(0) == xcb_out {
  14715. /* allocate memory */
  14716. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14717. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14718. }
  14719. xcb_tmp = xcb_out
  14720. i = uint32(0)
  14721. for {
  14722. if !(i < xcb_parts_idx) {
  14723. break
  14724. }
  14725. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14726. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14727. }
  14728. if uint64(0) != xcb_parts[i].Fiov_len {
  14729. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14730. }
  14731. goto _1
  14732. _1:
  14733. ;
  14734. i++
  14735. }
  14736. return libc.Int32FromUint32(xcb_buffer_len)
  14737. }
  14738. func Xxcb_change_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14739. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14740. var xcb_tmp uintptr
  14741. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14742. xcb_tmp = _buffer
  14743. xcb_buffer_len = uint32(0)
  14744. xcb_block_len = uint32(0)
  14745. xcb_pad = uint32(0)
  14746. xcb_align_to = uint32(0)
  14747. xcb_padding_offset = uint32(0)
  14748. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14749. /* xcb_change_gc_value_list_t.function */
  14750. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14751. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14752. xcb_tmp += uintptr(4)
  14753. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14754. }
  14755. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14756. /* xcb_change_gc_value_list_t.plane_mask */
  14757. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14758. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14759. xcb_tmp += uintptr(4)
  14760. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14761. }
  14762. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14763. /* xcb_change_gc_value_list_t.foreground */
  14764. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14765. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14766. xcb_tmp += uintptr(4)
  14767. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14768. }
  14769. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14770. /* xcb_change_gc_value_list_t.background */
  14771. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14772. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14773. xcb_tmp += uintptr(4)
  14774. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14775. }
  14776. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14777. /* xcb_change_gc_value_list_t.line_width */
  14778. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14779. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14780. xcb_tmp += uintptr(4)
  14781. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14782. }
  14783. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14784. /* xcb_change_gc_value_list_t.line_style */
  14785. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14786. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14787. xcb_tmp += uintptr(4)
  14788. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14789. }
  14790. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14791. /* xcb_change_gc_value_list_t.cap_style */
  14792. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14793. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14794. xcb_tmp += uintptr(4)
  14795. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14796. }
  14797. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14798. /* xcb_change_gc_value_list_t.join_style */
  14799. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14800. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14801. xcb_tmp += uintptr(4)
  14802. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14803. }
  14804. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14805. /* xcb_change_gc_value_list_t.fill_style */
  14806. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14807. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14808. xcb_tmp += uintptr(4)
  14809. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14810. }
  14811. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14812. /* xcb_change_gc_value_list_t.fill_rule */
  14813. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14814. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14815. xcb_tmp += uintptr(4)
  14816. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14817. }
  14818. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14819. /* xcb_change_gc_value_list_t.tile */
  14820. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14821. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14822. xcb_tmp += uintptr(4)
  14823. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14824. }
  14825. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14826. /* xcb_change_gc_value_list_t.stipple */
  14827. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14828. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14829. xcb_tmp += uintptr(4)
  14830. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14831. }
  14832. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14833. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14834. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14835. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14836. xcb_tmp += uintptr(4)
  14837. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14838. }
  14839. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14840. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14841. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14842. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14843. xcb_tmp += uintptr(4)
  14844. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14845. }
  14846. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14847. /* xcb_change_gc_value_list_t.font */
  14848. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14849. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14850. xcb_tmp += uintptr(4)
  14851. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14852. }
  14853. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14854. /* xcb_change_gc_value_list_t.subwindow_mode */
  14855. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14856. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14857. xcb_tmp += uintptr(4)
  14858. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14859. }
  14860. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14861. /* xcb_change_gc_value_list_t.graphics_exposures */
  14862. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14863. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14864. xcb_tmp += uintptr(4)
  14865. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14866. }
  14867. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14868. /* xcb_change_gc_value_list_t.clip_x_origin */
  14869. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14870. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14871. xcb_tmp += uintptr(4)
  14872. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14873. }
  14874. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14875. /* xcb_change_gc_value_list_t.clip_y_origin */
  14876. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14877. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14878. xcb_tmp += uintptr(4)
  14879. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14880. }
  14881. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14882. /* xcb_change_gc_value_list_t.clip_mask */
  14883. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14884. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14885. xcb_tmp += uintptr(4)
  14886. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14887. }
  14888. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14889. /* xcb_change_gc_value_list_t.dash_offset */
  14890. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14891. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14892. xcb_tmp += uintptr(4)
  14893. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14894. }
  14895. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14896. /* xcb_change_gc_value_list_t.dashes */
  14897. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14898. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14899. xcb_tmp += uintptr(4)
  14900. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14901. }
  14902. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14903. /* xcb_change_gc_value_list_t.arc_mode */
  14904. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14905. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14906. xcb_tmp += uintptr(4)
  14907. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14908. }
  14909. /* insert padding */
  14910. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14911. xcb_buffer_len += xcb_block_len + xcb_pad
  14912. if uint32(0) != xcb_pad {
  14913. xcb_tmp += uintptr(xcb_pad)
  14914. xcb_pad = uint32(0)
  14915. }
  14916. xcb_block_len = uint32(0)
  14917. xcb_padding_offset = uint32(0)
  14918. return libc.Int32FromUint32(xcb_buffer_len)
  14919. }
  14920. func Xxcb_change_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14921. bp := tls.Alloc(96)
  14922. defer tls.Free(96)
  14923. var _ /* _aux at bp+0 */ Txcb_change_gc_value_list_t
  14924. return Xxcb_change_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14925. }
  14926. func Xxcb_change_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14927. var _aux, xcb_tmp uintptr
  14928. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14929. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14930. xcb_tmp = _buffer
  14931. _aux = _buffer
  14932. xcb_buffer_len = uint32(0)
  14933. xcb_block_len = uint32(0)
  14934. xcb_pad = uint32(0)
  14935. xcb_align_to = uint32(0)
  14936. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  14937. xcb_tmp += uintptr(xcb_block_len)
  14938. xcb_buffer_len += xcb_block_len
  14939. xcb_block_len = uint32(0)
  14940. /* value_list */
  14941. xcb_block_len += libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14942. xcb_tmp += uintptr(xcb_block_len)
  14943. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14944. /* insert padding */
  14945. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14946. xcb_buffer_len += xcb_block_len + xcb_pad
  14947. if uint32(0) != xcb_pad {
  14948. xcb_tmp += uintptr(xcb_pad)
  14949. xcb_pad = uint32(0)
  14950. }
  14951. xcb_block_len = uint32(0)
  14952. return libc.Int32FromUint32(xcb_buffer_len)
  14953. }
  14954. 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) {
  14955. bp := tls.Alloc(96)
  14956. defer tls.Free(96)
  14957. var xcb_ret Txcb_void_cookie_t
  14958. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14959. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14960. _ = xcb_ret
  14961. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14962. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14963. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14964. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14965. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14966. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14967. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14968. /* xcb_change_gc_value_list_t value_list */
  14969. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14970. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  14971. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req118)))
  14972. return xcb_ret
  14973. }
  14974. var _xcb_req118 = Txcb_protocol_request_t{
  14975. Fcount: uint64(3),
  14976. Fopcode: uint8(m_XCB_CHANGE_GC),
  14977. Fisvoid: uint8(1),
  14978. }
  14979. 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) {
  14980. bp := tls.Alloc(96)
  14981. defer tls.Free(96)
  14982. var xcb_ret Txcb_void_cookie_t
  14983. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  14984. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14985. _ = xcb_ret
  14986. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14987. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  14988. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14989. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14990. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  14991. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14992. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14993. /* xcb_change_gc_value_list_t value_list */
  14994. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14995. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  14996. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req119)))
  14997. return xcb_ret
  14998. }
  14999. var _xcb_req119 = Txcb_protocol_request_t{
  15000. Fcount: uint64(3),
  15001. Fopcode: uint8(m_XCB_CHANGE_GC),
  15002. Fisvoid: uint8(1),
  15003. }
  15004. 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) {
  15005. bp := tls.Alloc(112)
  15006. defer tls.Free(112)
  15007. var xcb_ret Txcb_void_cookie_t
  15008. var _ /* xcb_aux0 at bp+96 */ uintptr
  15009. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15010. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15011. _ = xcb_ret
  15012. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15013. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15014. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15015. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15016. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15017. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15018. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15019. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15020. /* xcb_change_gc_value_list_t value_list */
  15021. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15022. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15023. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req120)))
  15024. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15025. return xcb_ret
  15026. }
  15027. var _xcb_req120 = Txcb_protocol_request_t{
  15028. Fcount: uint64(3),
  15029. Fopcode: uint8(m_XCB_CHANGE_GC),
  15030. Fisvoid: uint8(1),
  15031. }
  15032. 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) {
  15033. bp := tls.Alloc(112)
  15034. defer tls.Free(112)
  15035. var xcb_ret Txcb_void_cookie_t
  15036. var _ /* xcb_aux0 at bp+96 */ uintptr
  15037. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15038. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15039. _ = xcb_ret
  15040. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15041. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15042. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15043. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15044. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15045. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15046. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15047. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15048. /* xcb_change_gc_value_list_t value_list */
  15049. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15050. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15051. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req121)))
  15052. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15053. return xcb_ret
  15054. }
  15055. var _xcb_req121 = Txcb_protocol_request_t{
  15056. Fcount: uint64(3),
  15057. Fopcode: uint8(m_XCB_CHANGE_GC),
  15058. Fisvoid: uint8(1),
  15059. }
  15060. func Xxcb_change_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  15061. return R + libc.UintptrFromInt32(1)*12
  15062. }
  15063. 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) {
  15064. bp := tls.Alloc(80)
  15065. defer tls.Free(80)
  15066. var xcb_ret Txcb_void_cookie_t
  15067. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15068. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15069. _ = xcb_ret
  15070. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15071. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15072. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15073. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15074. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15075. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15076. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15077. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15078. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req122)))
  15079. return xcb_ret
  15080. }
  15081. var _xcb_req122 = Txcb_protocol_request_t{
  15082. Fcount: uint64(2),
  15083. Fopcode: uint8(m_XCB_COPY_GC),
  15084. Fisvoid: uint8(1),
  15085. }
  15086. 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) {
  15087. bp := tls.Alloc(80)
  15088. defer tls.Free(80)
  15089. var xcb_ret Txcb_void_cookie_t
  15090. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15091. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15092. _ = xcb_ret
  15093. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15094. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15095. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15096. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15097. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15098. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15099. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15100. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15101. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req123)))
  15102. return xcb_ret
  15103. }
  15104. var _xcb_req123 = Txcb_protocol_request_t{
  15105. Fcount: uint64(2),
  15106. Fopcode: uint8(m_XCB_COPY_GC),
  15107. Fisvoid: uint8(1),
  15108. }
  15109. func Xxcb_set_dashes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15110. var _aux, xcb_tmp uintptr
  15111. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15112. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15113. xcb_tmp = _buffer
  15114. _aux = _buffer
  15115. xcb_buffer_len = uint32(0)
  15116. xcb_block_len = uint32(0)
  15117. xcb_pad = uint32(0)
  15118. xcb_align_to = uint32(0)
  15119. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15120. xcb_tmp += uintptr(xcb_block_len)
  15121. xcb_buffer_len += xcb_block_len
  15122. xcb_block_len = uint32(0)
  15123. /* dashes */
  15124. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_dashes_request_t)(unsafe.Pointer(_aux)).Fdashes_len)*libc.Uint64FromInt64(1))
  15125. xcb_tmp += uintptr(xcb_block_len)
  15126. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  15127. /* insert padding */
  15128. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15129. xcb_buffer_len += xcb_block_len + xcb_pad
  15130. if uint32(0) != xcb_pad {
  15131. xcb_tmp += uintptr(xcb_pad)
  15132. xcb_pad = uint32(0)
  15133. }
  15134. xcb_block_len = uint32(0)
  15135. return libc.Int32FromUint32(xcb_buffer_len)
  15136. }
  15137. 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) {
  15138. bp := tls.Alloc(112)
  15139. defer tls.Free(112)
  15140. var xcb_ret Txcb_void_cookie_t
  15141. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15142. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15143. _ = xcb_ret
  15144. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15145. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15146. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15147. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15148. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15149. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15150. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15151. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15152. /* uint8_t dashes */
  15153. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15154. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15155. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15156. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15157. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req124)))
  15158. return xcb_ret
  15159. }
  15160. var _xcb_req124 = Txcb_protocol_request_t{
  15161. Fcount: uint64(4),
  15162. Fopcode: uint8(m_XCB_SET_DASHES),
  15163. Fisvoid: uint8(1),
  15164. }
  15165. 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) {
  15166. bp := tls.Alloc(112)
  15167. defer tls.Free(112)
  15168. var xcb_ret Txcb_void_cookie_t
  15169. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15170. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15171. _ = xcb_ret
  15172. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15173. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15174. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15175. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15176. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15177. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15178. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15179. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15180. /* uint8_t dashes */
  15181. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15182. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15183. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15184. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15185. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req125)))
  15186. return xcb_ret
  15187. }
  15188. var _xcb_req125 = Txcb_protocol_request_t{
  15189. Fcount: uint64(4),
  15190. Fopcode: uint8(m_XCB_SET_DASHES),
  15191. Fisvoid: uint8(1),
  15192. }
  15193. func Xxcb_set_dashes_dashes(tls *libc.TLS, R uintptr) (r uintptr) {
  15194. return R + libc.UintptrFromInt32(1)*12
  15195. }
  15196. func Xxcb_set_dashes_dashes_length(tls *libc.TLS, R uintptr) (r int32) {
  15197. return libc.Int32FromUint16((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15198. }
  15199. func Xxcb_set_dashes_dashes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  15200. var i Txcb_generic_iterator_t
  15201. _ = i
  15202. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15203. i.Frem = 0
  15204. i.Findex = int32(int64(i.Fdata) - int64(R))
  15205. return i
  15206. }
  15207. func Xxcb_set_clip_rectangles_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15208. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15209. var xcb_tmp uintptr
  15210. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15211. xcb_tmp = _buffer
  15212. xcb_buffer_len = uint32(0)
  15213. xcb_block_len = uint32(0)
  15214. xcb_pad = uint32(0)
  15215. xcb_align_to = uint32(0)
  15216. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15217. xcb_tmp += uintptr(xcb_block_len)
  15218. xcb_buffer_len += xcb_block_len
  15219. xcb_block_len = uint32(0)
  15220. /* rectangles */
  15221. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15222. xcb_tmp += uintptr(xcb_block_len)
  15223. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15224. /* insert padding */
  15225. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15226. xcb_buffer_len += xcb_block_len + xcb_pad
  15227. if uint32(0) != xcb_pad {
  15228. xcb_tmp += uintptr(xcb_pad)
  15229. xcb_pad = uint32(0)
  15230. }
  15231. xcb_block_len = uint32(0)
  15232. return libc.Int32FromUint32(xcb_buffer_len)
  15233. }
  15234. 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) {
  15235. bp := tls.Alloc(112)
  15236. defer tls.Free(112)
  15237. var xcb_ret Txcb_void_cookie_t
  15238. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15239. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15240. _ = xcb_ret
  15241. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15242. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15243. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15244. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15245. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15246. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15247. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15248. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15249. /* xcb_rectangle_t rectangles */
  15250. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15251. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15252. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15253. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15254. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req126)))
  15255. return xcb_ret
  15256. }
  15257. var _xcb_req126 = Txcb_protocol_request_t{
  15258. Fcount: uint64(4),
  15259. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15260. Fisvoid: uint8(1),
  15261. }
  15262. 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) {
  15263. bp := tls.Alloc(112)
  15264. defer tls.Free(112)
  15265. var xcb_ret Txcb_void_cookie_t
  15266. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15267. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15268. _ = xcb_ret
  15269. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15270. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15271. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15272. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15273. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15274. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15275. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15276. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15277. /* xcb_rectangle_t rectangles */
  15278. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15279. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15280. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15281. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15282. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req127)))
  15283. return xcb_ret
  15284. }
  15285. var _xcb_req127 = Txcb_protocol_request_t{
  15286. Fcount: uint64(4),
  15287. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15288. Fisvoid: uint8(1),
  15289. }
  15290. func Xxcb_set_clip_rectangles_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15291. return R + libc.UintptrFromInt32(1)*12
  15292. }
  15293. func Xxcb_set_clip_rectangles_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15294. 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))
  15295. }
  15296. func Xxcb_set_clip_rectangles_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15297. var i Txcb_rectangle_iterator_t
  15298. _ = i
  15299. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15300. 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))
  15301. i.Findex = int32(int64(i.Fdata) - int64(R))
  15302. return i
  15303. }
  15304. func Xxcb_free_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15305. bp := tls.Alloc(80)
  15306. defer tls.Free(80)
  15307. var xcb_ret Txcb_void_cookie_t
  15308. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15309. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15310. _ = xcb_ret
  15311. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15312. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15313. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15314. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15315. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15316. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15317. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req128)))
  15318. return xcb_ret
  15319. }
  15320. var _xcb_req128 = Txcb_protocol_request_t{
  15321. Fcount: uint64(2),
  15322. Fopcode: uint8(m_XCB_FREE_GC),
  15323. Fisvoid: uint8(1),
  15324. }
  15325. func Xxcb_free_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15326. bp := tls.Alloc(80)
  15327. defer tls.Free(80)
  15328. var xcb_ret Txcb_void_cookie_t
  15329. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15330. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15331. _ = xcb_ret
  15332. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15333. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15334. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15335. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15336. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15337. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15338. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req129)))
  15339. return xcb_ret
  15340. }
  15341. var _xcb_req129 = Txcb_protocol_request_t{
  15342. Fcount: uint64(2),
  15343. Fopcode: uint8(m_XCB_FREE_GC),
  15344. Fisvoid: uint8(1),
  15345. }
  15346. 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) {
  15347. bp := tls.Alloc(80)
  15348. defer tls.Free(80)
  15349. var xcb_ret Txcb_void_cookie_t
  15350. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15351. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15352. _ = xcb_ret
  15353. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15354. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15355. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15356. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15357. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15358. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15360. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15361. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15362. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15363. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req130)))
  15364. return xcb_ret
  15365. }
  15366. var _xcb_req130 = Txcb_protocol_request_t{
  15367. Fcount: uint64(2),
  15368. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15369. Fisvoid: uint8(1),
  15370. }
  15371. 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) {
  15372. bp := tls.Alloc(80)
  15373. defer tls.Free(80)
  15374. var xcb_ret Txcb_void_cookie_t
  15375. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15376. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15377. _ = xcb_ret
  15378. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15379. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15380. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15381. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15382. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15383. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15384. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15385. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15386. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15387. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15388. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req131)))
  15389. return xcb_ret
  15390. }
  15391. var _xcb_req131 = Txcb_protocol_request_t{
  15392. Fcount: uint64(2),
  15393. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15394. Fisvoid: uint8(1),
  15395. }
  15396. 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) {
  15397. bp := tls.Alloc(96)
  15398. defer tls.Free(96)
  15399. var xcb_ret Txcb_void_cookie_t
  15400. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15401. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15402. _ = xcb_ret
  15403. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15404. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15405. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15406. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15407. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15408. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15409. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15410. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15411. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15412. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15413. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15414. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15415. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15416. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15417. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req132)))
  15418. return xcb_ret
  15419. }
  15420. var _xcb_req132 = Txcb_protocol_request_t{
  15421. Fcount: uint64(2),
  15422. Fopcode: uint8(m_XCB_COPY_AREA),
  15423. Fisvoid: uint8(1),
  15424. }
  15425. 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) {
  15426. bp := tls.Alloc(96)
  15427. defer tls.Free(96)
  15428. var xcb_ret Txcb_void_cookie_t
  15429. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15430. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15431. _ = xcb_ret
  15432. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15433. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15434. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15435. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15436. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15437. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15438. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15439. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15440. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15441. (*(*Txcb_copy_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(28)
  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_req133)))
  15447. return xcb_ret
  15448. }
  15449. var _xcb_req133 = Txcb_protocol_request_t{
  15450. Fcount: uint64(2),
  15451. Fopcode: uint8(m_XCB_COPY_AREA),
  15452. Fisvoid: uint8(1),
  15453. }
  15454. 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) {
  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_plane_request_t
  15459. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15460. _ = xcb_ret
  15461. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15462. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15463. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15464. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15465. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15466. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15467. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15468. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15469. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15470. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15471. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15473. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15474. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15475. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15476. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req134)))
  15477. return xcb_ret
  15478. }
  15479. var _xcb_req134 = Txcb_protocol_request_t{
  15480. Fcount: uint64(2),
  15481. Fopcode: uint8(m_XCB_COPY_PLANE),
  15482. Fisvoid: uint8(1),
  15483. }
  15484. 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) {
  15485. bp := tls.Alloc(96)
  15486. defer tls.Free(96)
  15487. var xcb_ret Txcb_void_cookie_t
  15488. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15489. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15490. _ = xcb_ret
  15491. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15492. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15493. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15494. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15495. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15496. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15497. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15498. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15499. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15500. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15501. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15502. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15503. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15504. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15505. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15506. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req135)))
  15507. return xcb_ret
  15508. }
  15509. var _xcb_req135 = Txcb_protocol_request_t{
  15510. Fcount: uint64(2),
  15511. Fopcode: uint8(m_XCB_COPY_PLANE),
  15512. Fisvoid: uint8(1),
  15513. }
  15514. func Xxcb_poly_point_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15515. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15516. var xcb_tmp uintptr
  15517. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15518. xcb_tmp = _buffer
  15519. xcb_buffer_len = uint32(0)
  15520. xcb_block_len = uint32(0)
  15521. xcb_pad = uint32(0)
  15522. xcb_align_to = uint32(0)
  15523. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15524. xcb_tmp += uintptr(xcb_block_len)
  15525. xcb_buffer_len += xcb_block_len
  15526. xcb_block_len = uint32(0)
  15527. /* points */
  15528. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15529. xcb_tmp += uintptr(xcb_block_len)
  15530. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15531. /* insert padding */
  15532. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15533. xcb_buffer_len += xcb_block_len + xcb_pad
  15534. if uint32(0) != xcb_pad {
  15535. xcb_tmp += uintptr(xcb_pad)
  15536. xcb_pad = uint32(0)
  15537. }
  15538. xcb_block_len = uint32(0)
  15539. return libc.Int32FromUint32(xcb_buffer_len)
  15540. }
  15541. 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) {
  15542. bp := tls.Alloc(112)
  15543. defer tls.Free(112)
  15544. var xcb_ret Txcb_void_cookie_t
  15545. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15546. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15547. _ = xcb_ret
  15548. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15549. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15550. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15551. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15552. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15553. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15554. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15555. /* xcb_point_t points */
  15556. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15557. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15558. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15559. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15560. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req136)))
  15561. return xcb_ret
  15562. }
  15563. var _xcb_req136 = Txcb_protocol_request_t{
  15564. Fcount: uint64(4),
  15565. Fopcode: uint8(m_XCB_POLY_POINT),
  15566. Fisvoid: uint8(1),
  15567. }
  15568. 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) {
  15569. bp := tls.Alloc(112)
  15570. defer tls.Free(112)
  15571. var xcb_ret Txcb_void_cookie_t
  15572. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15573. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15574. _ = xcb_ret
  15575. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15576. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15577. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15578. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15579. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15580. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15581. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15582. /* xcb_point_t points */
  15583. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15585. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15587. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req137)))
  15588. return xcb_ret
  15589. }
  15590. var _xcb_req137 = Txcb_protocol_request_t{
  15591. Fcount: uint64(4),
  15592. Fopcode: uint8(m_XCB_POLY_POINT),
  15593. Fisvoid: uint8(1),
  15594. }
  15595. func Xxcb_poly_point_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15596. return R + libc.UintptrFromInt32(1)*12
  15597. }
  15598. func Xxcb_poly_point_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15599. 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))
  15600. }
  15601. func Xxcb_poly_point_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15602. var i Txcb_point_iterator_t
  15603. _ = i
  15604. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15605. 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))
  15606. i.Findex = int32(int64(i.Fdata) - int64(R))
  15607. return i
  15608. }
  15609. func Xxcb_poly_line_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15610. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15611. var xcb_tmp uintptr
  15612. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15613. xcb_tmp = _buffer
  15614. xcb_buffer_len = uint32(0)
  15615. xcb_block_len = uint32(0)
  15616. xcb_pad = uint32(0)
  15617. xcb_align_to = uint32(0)
  15618. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15619. xcb_tmp += uintptr(xcb_block_len)
  15620. xcb_buffer_len += xcb_block_len
  15621. xcb_block_len = uint32(0)
  15622. /* points */
  15623. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15624. xcb_tmp += uintptr(xcb_block_len)
  15625. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15626. /* insert padding */
  15627. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15628. xcb_buffer_len += xcb_block_len + xcb_pad
  15629. if uint32(0) != xcb_pad {
  15630. xcb_tmp += uintptr(xcb_pad)
  15631. xcb_pad = uint32(0)
  15632. }
  15633. xcb_block_len = uint32(0)
  15634. return libc.Int32FromUint32(xcb_buffer_len)
  15635. }
  15636. 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) {
  15637. bp := tls.Alloc(112)
  15638. defer tls.Free(112)
  15639. var xcb_ret Txcb_void_cookie_t
  15640. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15641. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15642. _ = xcb_ret
  15643. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15644. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15645. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15646. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15647. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15648. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15649. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15650. /* xcb_point_t points */
  15651. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15652. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15653. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15654. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15655. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req138)))
  15656. return xcb_ret
  15657. }
  15658. var _xcb_req138 = Txcb_protocol_request_t{
  15659. Fcount: uint64(4),
  15660. Fopcode: uint8(m_XCB_POLY_LINE),
  15661. Fisvoid: uint8(1),
  15662. }
  15663. 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) {
  15664. bp := tls.Alloc(112)
  15665. defer tls.Free(112)
  15666. var xcb_ret Txcb_void_cookie_t
  15667. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15668. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15669. _ = xcb_ret
  15670. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15671. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15672. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15673. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15674. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15675. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15676. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15677. /* xcb_point_t points */
  15678. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15679. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15680. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15681. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15682. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req139)))
  15683. return xcb_ret
  15684. }
  15685. var _xcb_req139 = Txcb_protocol_request_t{
  15686. Fcount: uint64(4),
  15687. Fopcode: uint8(m_XCB_POLY_LINE),
  15688. Fisvoid: uint8(1),
  15689. }
  15690. func Xxcb_poly_line_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15691. return R + libc.UintptrFromInt32(1)*12
  15692. }
  15693. func Xxcb_poly_line_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15694. 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))
  15695. }
  15696. func Xxcb_poly_line_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15697. var i Txcb_point_iterator_t
  15698. _ = i
  15699. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15700. 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))
  15701. i.Findex = int32(int64(i.Fdata) - int64(R))
  15702. return i
  15703. }
  15704. func Xxcb_segment_next(tls *libc.TLS, i uintptr) {
  15705. var p1 uintptr
  15706. _ = p1
  15707. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Frem--
  15708. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  15709. p1 = i + 12
  15710. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  15711. }
  15712. func Xxcb_segment_end(tls *libc.TLS, i Txcb_segment_iterator_t) (r Txcb_generic_iterator_t) {
  15713. var ret Txcb_generic_iterator_t
  15714. _ = ret
  15715. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  15716. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  15717. ret.Frem = 0
  15718. return ret
  15719. }
  15720. func Xxcb_poly_segment_sizeof(tls *libc.TLS, _buffer uintptr, segments_len Tuint32_t) (r int32) {
  15721. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15722. var xcb_tmp uintptr
  15723. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15724. xcb_tmp = _buffer
  15725. xcb_buffer_len = uint32(0)
  15726. xcb_block_len = uint32(0)
  15727. xcb_pad = uint32(0)
  15728. xcb_align_to = uint32(0)
  15729. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15730. xcb_tmp += uintptr(xcb_block_len)
  15731. xcb_buffer_len += xcb_block_len
  15732. xcb_block_len = uint32(0)
  15733. /* segments */
  15734. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(segments_len)*libc.Uint64FromInt64(8))
  15735. xcb_tmp += uintptr(xcb_block_len)
  15736. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15737. /* insert padding */
  15738. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15739. xcb_buffer_len += xcb_block_len + xcb_pad
  15740. if uint32(0) != xcb_pad {
  15741. xcb_tmp += uintptr(xcb_pad)
  15742. xcb_pad = uint32(0)
  15743. }
  15744. xcb_block_len = uint32(0)
  15745. return libc.Int32FromUint32(xcb_buffer_len)
  15746. }
  15747. 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) {
  15748. bp := tls.Alloc(112)
  15749. defer tls.Free(112)
  15750. var xcb_ret Txcb_void_cookie_t
  15751. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15752. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15753. _ = xcb_ret
  15754. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15755. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15756. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15757. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15758. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15759. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15760. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15761. /* xcb_segment_t segments */
  15762. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15763. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15764. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15765. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15766. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req140)))
  15767. return xcb_ret
  15768. }
  15769. var _xcb_req140 = Txcb_protocol_request_t{
  15770. Fcount: uint64(4),
  15771. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15772. Fisvoid: uint8(1),
  15773. }
  15774. 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) {
  15775. bp := tls.Alloc(112)
  15776. defer tls.Free(112)
  15777. var xcb_ret Txcb_void_cookie_t
  15778. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15779. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15780. _ = xcb_ret
  15781. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15782. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15783. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15784. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15785. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15786. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15787. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15788. /* xcb_segment_t segments */
  15789. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15790. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15791. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15792. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15793. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req141)))
  15794. return xcb_ret
  15795. }
  15796. var _xcb_req141 = Txcb_protocol_request_t{
  15797. Fcount: uint64(4),
  15798. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15799. Fisvoid: uint8(1),
  15800. }
  15801. func Xxcb_poly_segment_segments(tls *libc.TLS, R uintptr) (r uintptr) {
  15802. return R + libc.UintptrFromInt32(1)*12
  15803. }
  15804. func Xxcb_poly_segment_segments_length(tls *libc.TLS, R uintptr) (r int32) {
  15805. 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))
  15806. }
  15807. func Xxcb_poly_segment_segments_iterator(tls *libc.TLS, R uintptr) (r Txcb_segment_iterator_t) {
  15808. var i Txcb_segment_iterator_t
  15809. _ = i
  15810. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15811. 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))
  15812. i.Findex = int32(int64(i.Fdata) - int64(R))
  15813. return i
  15814. }
  15815. func Xxcb_poly_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15816. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15817. var xcb_tmp uintptr
  15818. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15819. xcb_tmp = _buffer
  15820. xcb_buffer_len = uint32(0)
  15821. xcb_block_len = uint32(0)
  15822. xcb_pad = uint32(0)
  15823. xcb_align_to = uint32(0)
  15824. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15825. xcb_tmp += uintptr(xcb_block_len)
  15826. xcb_buffer_len += xcb_block_len
  15827. xcb_block_len = uint32(0)
  15828. /* rectangles */
  15829. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15830. xcb_tmp += uintptr(xcb_block_len)
  15831. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15832. /* insert padding */
  15833. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15834. xcb_buffer_len += xcb_block_len + xcb_pad
  15835. if uint32(0) != xcb_pad {
  15836. xcb_tmp += uintptr(xcb_pad)
  15837. xcb_pad = uint32(0)
  15838. }
  15839. xcb_block_len = uint32(0)
  15840. return libc.Int32FromUint32(xcb_buffer_len)
  15841. }
  15842. 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) {
  15843. bp := tls.Alloc(112)
  15844. defer tls.Free(112)
  15845. var xcb_ret Txcb_void_cookie_t
  15846. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15847. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15848. _ = xcb_ret
  15849. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15850. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15851. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15852. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15853. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15854. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15855. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15856. /* xcb_rectangle_t rectangles */
  15857. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15858. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15859. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15860. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15861. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req142)))
  15862. return xcb_ret
  15863. }
  15864. var _xcb_req142 = Txcb_protocol_request_t{
  15865. Fcount: uint64(4),
  15866. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15867. Fisvoid: uint8(1),
  15868. }
  15869. 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) {
  15870. bp := tls.Alloc(112)
  15871. defer tls.Free(112)
  15872. var xcb_ret Txcb_void_cookie_t
  15873. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  15874. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15875. _ = xcb_ret
  15876. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15877. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15878. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15879. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15880. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15881. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15882. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15883. /* xcb_rectangle_t rectangles */
  15884. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15885. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15886. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15887. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15888. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req143)))
  15889. return xcb_ret
  15890. }
  15891. var _xcb_req143 = Txcb_protocol_request_t{
  15892. Fcount: uint64(4),
  15893. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  15894. Fisvoid: uint8(1),
  15895. }
  15896. func Xxcb_poly_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15897. return R + libc.UintptrFromInt32(1)*12
  15898. }
  15899. func Xxcb_poly_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15900. 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))
  15901. }
  15902. func Xxcb_poly_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15903. var i Txcb_rectangle_iterator_t
  15904. _ = i
  15905. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15906. 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))
  15907. i.Findex = int32(int64(i.Fdata) - int64(R))
  15908. return i
  15909. }
  15910. func Xxcb_poly_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  15911. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15912. var xcb_tmp uintptr
  15913. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15914. xcb_tmp = _buffer
  15915. xcb_buffer_len = uint32(0)
  15916. xcb_block_len = uint32(0)
  15917. xcb_pad = uint32(0)
  15918. xcb_align_to = uint32(0)
  15919. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15920. xcb_tmp += uintptr(xcb_block_len)
  15921. xcb_buffer_len += xcb_block_len
  15922. xcb_block_len = uint32(0)
  15923. /* arcs */
  15924. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  15925. xcb_tmp += uintptr(xcb_block_len)
  15926. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15927. /* insert padding */
  15928. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15929. xcb_buffer_len += xcb_block_len + xcb_pad
  15930. if uint32(0) != xcb_pad {
  15931. xcb_tmp += uintptr(xcb_pad)
  15932. xcb_pad = uint32(0)
  15933. }
  15934. xcb_block_len = uint32(0)
  15935. return libc.Int32FromUint32(xcb_buffer_len)
  15936. }
  15937. 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) {
  15938. bp := tls.Alloc(112)
  15939. defer tls.Free(112)
  15940. var xcb_ret Txcb_void_cookie_t
  15941. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  15942. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15943. _ = xcb_ret
  15944. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15945. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15946. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15947. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15948. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15949. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15950. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15951. /* xcb_arc_t arcs */
  15952. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  15953. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  15954. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15955. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15956. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req144)))
  15957. return xcb_ret
  15958. }
  15959. var _xcb_req144 = Txcb_protocol_request_t{
  15960. Fcount: uint64(4),
  15961. Fopcode: uint8(m_XCB_POLY_ARC),
  15962. Fisvoid: uint8(1),
  15963. }
  15964. 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) {
  15965. bp := tls.Alloc(112)
  15966. defer tls.Free(112)
  15967. var xcb_ret Txcb_void_cookie_t
  15968. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  15969. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15970. _ = xcb_ret
  15971. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15972. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15973. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15974. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15975. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15976. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15977. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15978. /* xcb_arc_t arcs */
  15979. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  15980. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  15981. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15982. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15983. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req145)))
  15984. return xcb_ret
  15985. }
  15986. var _xcb_req145 = Txcb_protocol_request_t{
  15987. Fcount: uint64(4),
  15988. Fopcode: uint8(m_XCB_POLY_ARC),
  15989. Fisvoid: uint8(1),
  15990. }
  15991. func Xxcb_poly_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  15992. return R + libc.UintptrFromInt32(1)*12
  15993. }
  15994. func Xxcb_poly_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  15995. 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))
  15996. }
  15997. func Xxcb_poly_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  15998. var i Txcb_arc_iterator_t
  15999. _ = i
  16000. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16001. 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))
  16002. i.Findex = int32(int64(i.Fdata) - int64(R))
  16003. return i
  16004. }
  16005. func Xxcb_fill_poly_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  16006. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16007. var xcb_tmp uintptr
  16008. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16009. xcb_tmp = _buffer
  16010. xcb_buffer_len = uint32(0)
  16011. xcb_block_len = uint32(0)
  16012. xcb_pad = uint32(0)
  16013. xcb_align_to = uint32(0)
  16014. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16015. xcb_tmp += uintptr(xcb_block_len)
  16016. xcb_buffer_len += xcb_block_len
  16017. xcb_block_len = uint32(0)
  16018. /* points */
  16019. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  16020. xcb_tmp += uintptr(xcb_block_len)
  16021. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16022. /* insert padding */
  16023. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16024. xcb_buffer_len += xcb_block_len + xcb_pad
  16025. if uint32(0) != xcb_pad {
  16026. xcb_tmp += uintptr(xcb_pad)
  16027. xcb_pad = uint32(0)
  16028. }
  16029. xcb_block_len = uint32(0)
  16030. return libc.Int32FromUint32(xcb_buffer_len)
  16031. }
  16032. 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) {
  16033. bp := tls.Alloc(112)
  16034. defer tls.Free(112)
  16035. var xcb_ret Txcb_void_cookie_t
  16036. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16037. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16038. _ = xcb_ret
  16039. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16040. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16041. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16042. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16043. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16044. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16045. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16046. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16047. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16048. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16049. /* xcb_point_t points */
  16050. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16051. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16052. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16053. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16054. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req146)))
  16055. return xcb_ret
  16056. }
  16057. var _xcb_req146 = Txcb_protocol_request_t{
  16058. Fcount: uint64(4),
  16059. Fopcode: uint8(m_XCB_FILL_POLY),
  16060. Fisvoid: uint8(1),
  16061. }
  16062. 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) {
  16063. bp := tls.Alloc(112)
  16064. defer tls.Free(112)
  16065. var xcb_ret Txcb_void_cookie_t
  16066. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16067. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16068. _ = xcb_ret
  16069. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16070. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16071. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16072. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16073. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16074. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16075. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16076. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16077. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16078. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16079. /* xcb_point_t points */
  16080. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16081. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16082. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16083. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16084. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req147)))
  16085. return xcb_ret
  16086. }
  16087. var _xcb_req147 = Txcb_protocol_request_t{
  16088. Fcount: uint64(4),
  16089. Fopcode: uint8(m_XCB_FILL_POLY),
  16090. Fisvoid: uint8(1),
  16091. }
  16092. func Xxcb_fill_poly_points(tls *libc.TLS, R uintptr) (r uintptr) {
  16093. return R + libc.UintptrFromInt32(1)*16
  16094. }
  16095. func Xxcb_fill_poly_points_length(tls *libc.TLS, R uintptr) (r int32) {
  16096. 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))
  16097. }
  16098. func Xxcb_fill_poly_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  16099. var i Txcb_point_iterator_t
  16100. _ = i
  16101. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16102. 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))
  16103. i.Findex = int32(int64(i.Fdata) - int64(R))
  16104. return i
  16105. }
  16106. func Xxcb_poly_fill_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  16107. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16108. var xcb_tmp uintptr
  16109. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16110. xcb_tmp = _buffer
  16111. xcb_buffer_len = uint32(0)
  16112. xcb_block_len = uint32(0)
  16113. xcb_pad = uint32(0)
  16114. xcb_align_to = uint32(0)
  16115. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16116. xcb_tmp += uintptr(xcb_block_len)
  16117. xcb_buffer_len += xcb_block_len
  16118. xcb_block_len = uint32(0)
  16119. /* rectangles */
  16120. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  16121. xcb_tmp += uintptr(xcb_block_len)
  16122. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16123. /* insert padding */
  16124. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16125. xcb_buffer_len += xcb_block_len + xcb_pad
  16126. if uint32(0) != xcb_pad {
  16127. xcb_tmp += uintptr(xcb_pad)
  16128. xcb_pad = uint32(0)
  16129. }
  16130. xcb_block_len = uint32(0)
  16131. return libc.Int32FromUint32(xcb_buffer_len)
  16132. }
  16133. 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) {
  16134. bp := tls.Alloc(112)
  16135. defer tls.Free(112)
  16136. var xcb_ret Txcb_void_cookie_t
  16137. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16138. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16139. _ = xcb_ret
  16140. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16141. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16142. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16143. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16144. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16145. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16146. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16147. /* xcb_rectangle_t rectangles */
  16148. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16149. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16150. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16151. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16152. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req148)))
  16153. return xcb_ret
  16154. }
  16155. var _xcb_req148 = Txcb_protocol_request_t{
  16156. Fcount: uint64(4),
  16157. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16158. Fisvoid: uint8(1),
  16159. }
  16160. 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) {
  16161. bp := tls.Alloc(112)
  16162. defer tls.Free(112)
  16163. var xcb_ret Txcb_void_cookie_t
  16164. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16165. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16166. _ = xcb_ret
  16167. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16168. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16169. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16170. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16171. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16172. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16173. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16174. /* xcb_rectangle_t rectangles */
  16175. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16176. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16177. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16178. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16179. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req149)))
  16180. return xcb_ret
  16181. }
  16182. var _xcb_req149 = Txcb_protocol_request_t{
  16183. Fcount: uint64(4),
  16184. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16185. Fisvoid: uint8(1),
  16186. }
  16187. func Xxcb_poly_fill_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  16188. return R + libc.UintptrFromInt32(1)*12
  16189. }
  16190. func Xxcb_poly_fill_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  16191. 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))
  16192. }
  16193. func Xxcb_poly_fill_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  16194. var i Txcb_rectangle_iterator_t
  16195. _ = i
  16196. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16197. 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))
  16198. i.Findex = int32(int64(i.Fdata) - int64(R))
  16199. return i
  16200. }
  16201. func Xxcb_poly_fill_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  16202. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16203. var xcb_tmp uintptr
  16204. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16205. xcb_tmp = _buffer
  16206. xcb_buffer_len = uint32(0)
  16207. xcb_block_len = uint32(0)
  16208. xcb_pad = uint32(0)
  16209. xcb_align_to = uint32(0)
  16210. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16211. xcb_tmp += uintptr(xcb_block_len)
  16212. xcb_buffer_len += xcb_block_len
  16213. xcb_block_len = uint32(0)
  16214. /* arcs */
  16215. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  16216. xcb_tmp += uintptr(xcb_block_len)
  16217. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16218. /* insert padding */
  16219. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16220. xcb_buffer_len += xcb_block_len + xcb_pad
  16221. if uint32(0) != xcb_pad {
  16222. xcb_tmp += uintptr(xcb_pad)
  16223. xcb_pad = uint32(0)
  16224. }
  16225. xcb_block_len = uint32(0)
  16226. return libc.Int32FromUint32(xcb_buffer_len)
  16227. }
  16228. 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) {
  16229. bp := tls.Alloc(112)
  16230. defer tls.Free(112)
  16231. var xcb_ret Txcb_void_cookie_t
  16232. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16233. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16234. _ = xcb_ret
  16235. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16236. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16237. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16238. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16239. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16240. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16241. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16242. /* xcb_arc_t arcs */
  16243. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16244. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16245. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16246. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16247. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req150)))
  16248. return xcb_ret
  16249. }
  16250. var _xcb_req150 = Txcb_protocol_request_t{
  16251. Fcount: uint64(4),
  16252. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16253. Fisvoid: uint8(1),
  16254. }
  16255. 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) {
  16256. bp := tls.Alloc(112)
  16257. defer tls.Free(112)
  16258. var xcb_ret Txcb_void_cookie_t
  16259. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16260. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16261. _ = xcb_ret
  16262. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16263. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16264. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16265. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16266. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16267. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16268. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16269. /* xcb_arc_t arcs */
  16270. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16271. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16272. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16273. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16274. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req151)))
  16275. return xcb_ret
  16276. }
  16277. var _xcb_req151 = Txcb_protocol_request_t{
  16278. Fcount: uint64(4),
  16279. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16280. Fisvoid: uint8(1),
  16281. }
  16282. func Xxcb_poly_fill_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16283. return R + libc.UintptrFromInt32(1)*12
  16284. }
  16285. func Xxcb_poly_fill_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16286. 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))
  16287. }
  16288. func Xxcb_poly_fill_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16289. var i Txcb_arc_iterator_t
  16290. _ = i
  16291. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16292. 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))
  16293. i.Findex = int32(int64(i.Fdata) - int64(R))
  16294. return i
  16295. }
  16296. func Xxcb_put_image_sizeof(tls *libc.TLS, _buffer uintptr, data_len Tuint32_t) (r int32) {
  16297. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16298. var xcb_tmp uintptr
  16299. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16300. xcb_tmp = _buffer
  16301. xcb_buffer_len = uint32(0)
  16302. xcb_block_len = uint32(0)
  16303. xcb_pad = uint32(0)
  16304. xcb_align_to = uint32(0)
  16305. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  16306. xcb_tmp += uintptr(xcb_block_len)
  16307. xcb_buffer_len += xcb_block_len
  16308. xcb_block_len = uint32(0)
  16309. /* data */
  16310. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(data_len)*libc.Uint64FromInt64(1))
  16311. xcb_tmp += uintptr(xcb_block_len)
  16312. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16313. /* insert padding */
  16314. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16315. xcb_buffer_len += xcb_block_len + xcb_pad
  16316. if uint32(0) != xcb_pad {
  16317. xcb_tmp += uintptr(xcb_pad)
  16318. xcb_pad = uint32(0)
  16319. }
  16320. xcb_block_len = uint32(0)
  16321. return libc.Int32FromUint32(xcb_buffer_len)
  16322. }
  16323. 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) {
  16324. bp := tls.Alloc(128)
  16325. defer tls.Free(128)
  16326. var xcb_ret Txcb_void_cookie_t
  16327. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16328. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16329. _ = xcb_ret
  16330. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16331. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16332. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16333. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16334. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16335. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16336. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16337. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16338. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16339. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16340. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16341. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16342. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16343. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16344. /* uint8_t data */
  16345. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16346. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16347. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16348. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16349. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req152)))
  16350. return xcb_ret
  16351. }
  16352. var _xcb_req152 = Txcb_protocol_request_t{
  16353. Fcount: uint64(4),
  16354. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16355. Fisvoid: uint8(1),
  16356. }
  16357. 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) {
  16358. bp := tls.Alloc(128)
  16359. defer tls.Free(128)
  16360. var xcb_ret Txcb_void_cookie_t
  16361. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16362. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16363. _ = xcb_ret
  16364. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16365. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16366. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16367. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16368. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16369. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16370. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16371. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16372. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16373. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16374. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16375. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16376. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16377. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16378. /* uint8_t data */
  16379. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16380. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16381. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16382. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16383. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req153)))
  16384. return xcb_ret
  16385. }
  16386. var _xcb_req153 = Txcb_protocol_request_t{
  16387. Fcount: uint64(4),
  16388. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16389. Fisvoid: uint8(1),
  16390. }
  16391. func Xxcb_put_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16392. return R + libc.UintptrFromInt32(1)*24
  16393. }
  16394. func Xxcb_put_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16395. 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))
  16396. }
  16397. func Xxcb_put_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16398. var i Txcb_generic_iterator_t
  16399. _ = i
  16400. 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))
  16401. i.Frem = 0
  16402. i.Findex = int32(int64(i.Fdata) - int64(R))
  16403. return i
  16404. }
  16405. func Xxcb_get_image_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16406. var _aux, xcb_tmp uintptr
  16407. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16408. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16409. xcb_tmp = _buffer
  16410. _aux = _buffer
  16411. xcb_buffer_len = uint32(0)
  16412. xcb_block_len = uint32(0)
  16413. xcb_pad = uint32(0)
  16414. xcb_align_to = uint32(0)
  16415. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  16416. xcb_tmp += uintptr(xcb_block_len)
  16417. xcb_buffer_len += xcb_block_len
  16418. xcb_block_len = uint32(0)
  16419. /* data */
  16420. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_image_reply_t)(unsafe.Pointer(_aux)).Flength*libc.Uint32FromInt32(4))*libc.Uint64FromInt64(1))
  16421. xcb_tmp += uintptr(xcb_block_len)
  16422. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16423. /* insert padding */
  16424. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16425. xcb_buffer_len += xcb_block_len + xcb_pad
  16426. if uint32(0) != xcb_pad {
  16427. xcb_tmp += uintptr(xcb_pad)
  16428. xcb_pad = uint32(0)
  16429. }
  16430. xcb_block_len = uint32(0)
  16431. return libc.Int32FromUint32(xcb_buffer_len)
  16432. }
  16433. 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) {
  16434. bp := tls.Alloc(96)
  16435. defer tls.Free(96)
  16436. var xcb_ret Txcb_get_image_cookie_t
  16437. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16438. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16439. _ = xcb_ret
  16440. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16441. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16442. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16443. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16444. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16445. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16446. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16447. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16448. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16449. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16450. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16451. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req154)))
  16452. return xcb_ret
  16453. }
  16454. var _xcb_req154 = Txcb_protocol_request_t{
  16455. Fcount: uint64(2),
  16456. Fopcode: uint8(m_XCB_GET_IMAGE),
  16457. }
  16458. 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) {
  16459. bp := tls.Alloc(96)
  16460. defer tls.Free(96)
  16461. var xcb_ret Txcb_get_image_cookie_t
  16462. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16463. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16464. _ = xcb_ret
  16465. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16466. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16467. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16468. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16469. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16470. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16471. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16473. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16474. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16475. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16476. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req155)))
  16477. return xcb_ret
  16478. }
  16479. var _xcb_req155 = Txcb_protocol_request_t{
  16480. Fcount: uint64(2),
  16481. Fopcode: uint8(m_XCB_GET_IMAGE),
  16482. }
  16483. func Xxcb_get_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16484. return R + libc.UintptrFromInt32(1)*32
  16485. }
  16486. func Xxcb_get_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16487. return libc.Int32FromUint32((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength * libc.Uint32FromInt32(4))
  16488. }
  16489. func Xxcb_get_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16490. var i Txcb_generic_iterator_t
  16491. _ = i
  16492. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength*libc.Uint32FromInt32(4))
  16493. i.Frem = 0
  16494. i.Findex = int32(int64(i.Fdata) - int64(R))
  16495. return i
  16496. }
  16497. func Xxcb_get_image_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_image_cookie_t, e uintptr) (r uintptr) {
  16498. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  16499. }
  16500. func Xxcb_poly_text_8_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16501. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16502. var xcb_tmp uintptr
  16503. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16504. xcb_tmp = _buffer
  16505. xcb_buffer_len = uint32(0)
  16506. xcb_block_len = uint32(0)
  16507. xcb_pad = uint32(0)
  16508. xcb_align_to = uint32(0)
  16509. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16510. xcb_tmp += uintptr(xcb_block_len)
  16511. xcb_buffer_len += xcb_block_len
  16512. xcb_block_len = uint32(0)
  16513. /* items */
  16514. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16515. xcb_tmp += uintptr(xcb_block_len)
  16516. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16517. /* insert padding */
  16518. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16519. xcb_buffer_len += xcb_block_len + xcb_pad
  16520. if uint32(0) != xcb_pad {
  16521. xcb_tmp += uintptr(xcb_pad)
  16522. xcb_pad = uint32(0)
  16523. }
  16524. xcb_block_len = uint32(0)
  16525. return libc.Int32FromUint32(xcb_buffer_len)
  16526. }
  16527. 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) {
  16528. bp := tls.Alloc(112)
  16529. defer tls.Free(112)
  16530. var xcb_ret Txcb_void_cookie_t
  16531. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16532. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16533. _ = xcb_ret
  16534. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16535. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16536. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16537. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16538. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16539. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16540. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16541. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16542. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16543. /* uint8_t items */
  16544. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16545. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16546. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16547. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16548. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req156)))
  16549. return xcb_ret
  16550. }
  16551. var _xcb_req156 = Txcb_protocol_request_t{
  16552. Fcount: uint64(4),
  16553. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16554. Fisvoid: uint8(1),
  16555. }
  16556. 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) {
  16557. bp := tls.Alloc(112)
  16558. defer tls.Free(112)
  16559. var xcb_ret Txcb_void_cookie_t
  16560. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16561. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16562. _ = xcb_ret
  16563. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16564. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16565. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16566. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16567. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16568. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16569. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16570. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16571. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16572. /* uint8_t items */
  16573. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16574. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16575. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16576. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16577. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req157)))
  16578. return xcb_ret
  16579. }
  16580. var _xcb_req157 = Txcb_protocol_request_t{
  16581. Fcount: uint64(4),
  16582. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16583. Fisvoid: uint8(1),
  16584. }
  16585. func Xxcb_poly_text_8_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16586. return R + libc.UintptrFromInt32(1)*16
  16587. }
  16588. func Xxcb_poly_text_8_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16589. 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))
  16590. }
  16591. func Xxcb_poly_text_8_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16592. var i Txcb_generic_iterator_t
  16593. _ = i
  16594. 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))
  16595. i.Frem = 0
  16596. i.Findex = int32(int64(i.Fdata) - int64(R))
  16597. return i
  16598. }
  16599. func Xxcb_poly_text_16_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16600. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16601. var xcb_tmp uintptr
  16602. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16603. xcb_tmp = _buffer
  16604. xcb_buffer_len = uint32(0)
  16605. xcb_block_len = uint32(0)
  16606. xcb_pad = uint32(0)
  16607. xcb_align_to = uint32(0)
  16608. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16609. xcb_tmp += uintptr(xcb_block_len)
  16610. xcb_buffer_len += xcb_block_len
  16611. xcb_block_len = uint32(0)
  16612. /* items */
  16613. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16614. xcb_tmp += uintptr(xcb_block_len)
  16615. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16616. /* insert padding */
  16617. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16618. xcb_buffer_len += xcb_block_len + xcb_pad
  16619. if uint32(0) != xcb_pad {
  16620. xcb_tmp += uintptr(xcb_pad)
  16621. xcb_pad = uint32(0)
  16622. }
  16623. xcb_block_len = uint32(0)
  16624. return libc.Int32FromUint32(xcb_buffer_len)
  16625. }
  16626. 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) {
  16627. bp := tls.Alloc(112)
  16628. defer tls.Free(112)
  16629. var xcb_ret Txcb_void_cookie_t
  16630. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16631. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16632. _ = xcb_ret
  16633. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16634. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16635. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16636. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16637. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16638. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16639. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16640. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16641. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16642. /* uint8_t items */
  16643. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16644. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16645. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16646. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16647. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req158)))
  16648. return xcb_ret
  16649. }
  16650. var _xcb_req158 = Txcb_protocol_request_t{
  16651. Fcount: uint64(4),
  16652. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16653. Fisvoid: uint8(1),
  16654. }
  16655. 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) {
  16656. bp := tls.Alloc(112)
  16657. defer tls.Free(112)
  16658. var xcb_ret Txcb_void_cookie_t
  16659. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16660. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16661. _ = xcb_ret
  16662. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16663. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16664. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16665. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16666. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16667. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16668. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16669. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16670. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16671. /* uint8_t items */
  16672. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16673. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16674. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16675. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16676. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req159)))
  16677. return xcb_ret
  16678. }
  16679. var _xcb_req159 = Txcb_protocol_request_t{
  16680. Fcount: uint64(4),
  16681. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16682. Fisvoid: uint8(1),
  16683. }
  16684. func Xxcb_poly_text_16_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16685. return R + libc.UintptrFromInt32(1)*16
  16686. }
  16687. func Xxcb_poly_text_16_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16688. 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))
  16689. }
  16690. func Xxcb_poly_text_16_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16691. var i Txcb_generic_iterator_t
  16692. _ = i
  16693. 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))
  16694. i.Frem = 0
  16695. i.Findex = int32(int64(i.Fdata) - int64(R))
  16696. return i
  16697. }
  16698. func Xxcb_image_text_8_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16699. var _aux, xcb_tmp uintptr
  16700. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16701. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16702. xcb_tmp = _buffer
  16703. _aux = _buffer
  16704. xcb_buffer_len = uint32(0)
  16705. xcb_block_len = uint32(0)
  16706. xcb_pad = uint32(0)
  16707. xcb_align_to = uint32(0)
  16708. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16709. xcb_tmp += uintptr(xcb_block_len)
  16710. xcb_buffer_len += xcb_block_len
  16711. xcb_block_len = uint32(0)
  16712. /* string */
  16713. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_8_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(1))
  16714. xcb_tmp += uintptr(xcb_block_len)
  16715. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16716. /* insert padding */
  16717. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16718. xcb_buffer_len += xcb_block_len + xcb_pad
  16719. if uint32(0) != xcb_pad {
  16720. xcb_tmp += uintptr(xcb_pad)
  16721. xcb_pad = uint32(0)
  16722. }
  16723. xcb_block_len = uint32(0)
  16724. return libc.Int32FromUint32(xcb_buffer_len)
  16725. }
  16726. 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) {
  16727. bp := tls.Alloc(112)
  16728. defer tls.Free(112)
  16729. var xcb_ret Txcb_void_cookie_t
  16730. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16731. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16732. _ = xcb_ret
  16733. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16734. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16735. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16736. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16737. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16738. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16739. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16740. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16741. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16742. /* char string */
  16743. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16744. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16745. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16746. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16747. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req160)))
  16748. return xcb_ret
  16749. }
  16750. var _xcb_req160 = Txcb_protocol_request_t{
  16751. Fcount: uint64(4),
  16752. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16753. Fisvoid: uint8(1),
  16754. }
  16755. 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) {
  16756. bp := tls.Alloc(112)
  16757. defer tls.Free(112)
  16758. var xcb_ret Txcb_void_cookie_t
  16759. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16760. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16761. _ = xcb_ret
  16762. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16763. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16764. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16765. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16766. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16767. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16768. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16769. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16770. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16771. /* char string */
  16772. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16773. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16774. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16775. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16776. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req161)))
  16777. return xcb_ret
  16778. }
  16779. var _xcb_req161 = Txcb_protocol_request_t{
  16780. Fcount: uint64(4),
  16781. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16782. Fisvoid: uint8(1),
  16783. }
  16784. func Xxcb_image_text_8_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16785. return R + libc.UintptrFromInt32(1)*16
  16786. }
  16787. func Xxcb_image_text_8_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16788. return libc.Int32FromUint8((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16789. }
  16790. func Xxcb_image_text_8_string_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16791. var i Txcb_generic_iterator_t
  16792. _ = i
  16793. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16794. i.Frem = 0
  16795. i.Findex = int32(int64(i.Fdata) - int64(R))
  16796. return i
  16797. }
  16798. func Xxcb_image_text_16_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16799. var _aux, xcb_tmp uintptr
  16800. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16801. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16802. xcb_tmp = _buffer
  16803. _aux = _buffer
  16804. xcb_buffer_len = uint32(0)
  16805. xcb_block_len = uint32(0)
  16806. xcb_pad = uint32(0)
  16807. xcb_align_to = uint32(0)
  16808. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16809. xcb_tmp += uintptr(xcb_block_len)
  16810. xcb_buffer_len += xcb_block_len
  16811. xcb_block_len = uint32(0)
  16812. /* string */
  16813. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_16_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(2))
  16814. xcb_tmp += uintptr(xcb_block_len)
  16815. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16816. /* insert padding */
  16817. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16818. xcb_buffer_len += xcb_block_len + xcb_pad
  16819. if uint32(0) != xcb_pad {
  16820. xcb_tmp += uintptr(xcb_pad)
  16821. xcb_pad = uint32(0)
  16822. }
  16823. xcb_block_len = uint32(0)
  16824. return libc.Int32FromUint32(xcb_buffer_len)
  16825. }
  16826. 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) {
  16827. bp := tls.Alloc(112)
  16828. defer tls.Free(112)
  16829. var xcb_ret Txcb_void_cookie_t
  16830. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16831. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16832. _ = xcb_ret
  16833. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16834. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16835. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16836. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16837. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16838. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16839. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16840. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16841. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16842. /* xcb_char2b_t string */
  16843. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16844. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16845. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16846. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16847. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req162)))
  16848. return xcb_ret
  16849. }
  16850. var _xcb_req162 = Txcb_protocol_request_t{
  16851. Fcount: uint64(4),
  16852. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16853. Fisvoid: uint8(1),
  16854. }
  16855. 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) {
  16856. bp := tls.Alloc(112)
  16857. defer tls.Free(112)
  16858. var xcb_ret Txcb_void_cookie_t
  16859. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16860. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16861. _ = xcb_ret
  16862. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16863. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16864. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16865. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16866. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16867. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16868. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16869. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16870. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16871. /* xcb_char2b_t string */
  16872. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16873. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  16874. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16875. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16876. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req163)))
  16877. return xcb_ret
  16878. }
  16879. var _xcb_req163 = Txcb_protocol_request_t{
  16880. Fcount: uint64(4),
  16881. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  16882. Fisvoid: uint8(1),
  16883. }
  16884. func Xxcb_image_text_16_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16885. return R + libc.UintptrFromInt32(1)*16
  16886. }
  16887. func Xxcb_image_text_16_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16888. return libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16889. }
  16890. func Xxcb_image_text_16_string_iterator(tls *libc.TLS, R uintptr) (r Txcb_char2b_iterator_t) {
  16891. var i Txcb_char2b_iterator_t
  16892. _ = i
  16893. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16894. i.Frem = libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  16895. i.Findex = int32(int64(i.Fdata) - int64(R))
  16896. return i
  16897. }
  16898. 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) {
  16899. bp := tls.Alloc(80)
  16900. defer tls.Free(80)
  16901. var xcb_ret Txcb_void_cookie_t
  16902. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16903. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16904. _ = xcb_ret
  16905. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16906. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16907. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16908. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16909. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16910. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16911. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16912. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16913. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req164)))
  16914. return xcb_ret
  16915. }
  16916. var _xcb_req164 = Txcb_protocol_request_t{
  16917. Fcount: uint64(2),
  16918. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16919. Fisvoid: uint8(1),
  16920. }
  16921. 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) {
  16922. bp := tls.Alloc(80)
  16923. defer tls.Free(80)
  16924. var xcb_ret Txcb_void_cookie_t
  16925. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  16926. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16927. _ = xcb_ret
  16928. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  16929. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16930. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  16931. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  16932. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16933. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16934. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16935. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16936. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req165)))
  16937. return xcb_ret
  16938. }
  16939. var _xcb_req165 = Txcb_protocol_request_t{
  16940. Fcount: uint64(2),
  16941. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  16942. Fisvoid: uint8(1),
  16943. }
  16944. func Xxcb_free_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  16945. bp := tls.Alloc(80)
  16946. defer tls.Free(80)
  16947. var xcb_ret Txcb_void_cookie_t
  16948. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  16949. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16950. _ = xcb_ret
  16951. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16952. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  16953. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16954. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  16955. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16956. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16957. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req166)))
  16958. return xcb_ret
  16959. }
  16960. var _xcb_req166 = Txcb_protocol_request_t{
  16961. Fcount: uint64(2),
  16962. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  16963. Fisvoid: uint8(1),
  16964. }
  16965. func Xxcb_free_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  16966. bp := tls.Alloc(80)
  16967. defer tls.Free(80)
  16968. var xcb_ret Txcb_void_cookie_t
  16969. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  16970. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16971. _ = xcb_ret
  16972. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16973. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  16974. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16975. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  16976. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16977. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16978. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req167)))
  16979. return xcb_ret
  16980. }
  16981. var _xcb_req167 = Txcb_protocol_request_t{
  16982. Fcount: uint64(2),
  16983. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  16984. Fisvoid: uint8(1),
  16985. }
  16986. 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) {
  16987. bp := tls.Alloc(80)
  16988. defer tls.Free(80)
  16989. var xcb_ret Txcb_void_cookie_t
  16990. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  16991. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16992. _ = xcb_ret
  16993. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  16994. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  16995. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  16996. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16997. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16998. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16999. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17000. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req168)))
  17001. return xcb_ret
  17002. }
  17003. var _xcb_req168 = Txcb_protocol_request_t{
  17004. Fcount: uint64(2),
  17005. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17006. Fisvoid: uint8(1),
  17007. }
  17008. 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) {
  17009. bp := tls.Alloc(80)
  17010. defer tls.Free(80)
  17011. var xcb_ret Txcb_void_cookie_t
  17012. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  17013. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17014. _ = xcb_ret
  17015. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17016. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17017. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  17018. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17019. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17020. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17021. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17022. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req169)))
  17023. return xcb_ret
  17024. }
  17025. var _xcb_req169 = Txcb_protocol_request_t{
  17026. Fcount: uint64(2),
  17027. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17028. Fisvoid: uint8(1),
  17029. }
  17030. func Xxcb_install_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17031. bp := tls.Alloc(80)
  17032. defer tls.Free(80)
  17033. var xcb_ret Txcb_void_cookie_t
  17034. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17035. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17036. _ = xcb_ret
  17037. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17038. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17039. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17040. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17041. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17042. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17043. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req170)))
  17044. return xcb_ret
  17045. }
  17046. var _xcb_req170 = Txcb_protocol_request_t{
  17047. Fcount: uint64(2),
  17048. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17049. Fisvoid: uint8(1),
  17050. }
  17051. func Xxcb_install_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17052. bp := tls.Alloc(80)
  17053. defer tls.Free(80)
  17054. var xcb_ret Txcb_void_cookie_t
  17055. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17056. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17057. _ = xcb_ret
  17058. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17059. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17060. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17061. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17062. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17064. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req171)))
  17065. return xcb_ret
  17066. }
  17067. var _xcb_req171 = Txcb_protocol_request_t{
  17068. Fcount: uint64(2),
  17069. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17070. Fisvoid: uint8(1),
  17071. }
  17072. func Xxcb_uninstall_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17073. bp := tls.Alloc(80)
  17074. defer tls.Free(80)
  17075. var xcb_ret Txcb_void_cookie_t
  17076. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17077. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17078. _ = xcb_ret
  17079. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17080. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17081. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17082. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17083. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17084. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17085. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req172)))
  17086. return xcb_ret
  17087. }
  17088. var _xcb_req172 = Txcb_protocol_request_t{
  17089. Fcount: uint64(2),
  17090. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17091. Fisvoid: uint8(1),
  17092. }
  17093. func Xxcb_uninstall_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17094. bp := tls.Alloc(80)
  17095. defer tls.Free(80)
  17096. var xcb_ret Txcb_void_cookie_t
  17097. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17098. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17099. _ = xcb_ret
  17100. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17101. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17102. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17103. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17104. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17105. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17106. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req173)))
  17107. return xcb_ret
  17108. }
  17109. var _xcb_req173 = Txcb_protocol_request_t{
  17110. Fcount: uint64(2),
  17111. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17112. Fisvoid: uint8(1),
  17113. }
  17114. func Xxcb_list_installed_colormaps_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17115. var _aux, xcb_tmp uintptr
  17116. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17117. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17118. xcb_tmp = _buffer
  17119. _aux = _buffer
  17120. xcb_buffer_len = uint32(0)
  17121. xcb_block_len = uint32(0)
  17122. xcb_pad = uint32(0)
  17123. xcb_align_to = uint32(0)
  17124. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17125. xcb_tmp += uintptr(xcb_block_len)
  17126. xcb_buffer_len += xcb_block_len
  17127. xcb_block_len = uint32(0)
  17128. /* cmaps */
  17129. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(_aux)).Fcmaps_len)*libc.Uint64FromInt64(4))
  17130. xcb_tmp += uintptr(xcb_block_len)
  17131. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17132. /* insert padding */
  17133. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17134. xcb_buffer_len += xcb_block_len + xcb_pad
  17135. if uint32(0) != xcb_pad {
  17136. xcb_tmp += uintptr(xcb_pad)
  17137. xcb_pad = uint32(0)
  17138. }
  17139. xcb_block_len = uint32(0)
  17140. return libc.Int32FromUint32(xcb_buffer_len)
  17141. }
  17142. func Xxcb_list_installed_colormaps(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17143. bp := tls.Alloc(80)
  17144. defer tls.Free(80)
  17145. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17146. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17147. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17148. _ = xcb_ret
  17149. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17150. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17151. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17152. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17153. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17154. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17155. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req174)))
  17156. return xcb_ret
  17157. }
  17158. var _xcb_req174 = Txcb_protocol_request_t{
  17159. Fcount: uint64(2),
  17160. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17161. }
  17162. func Xxcb_list_installed_colormaps_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17163. bp := tls.Alloc(80)
  17164. defer tls.Free(80)
  17165. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17166. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17167. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17168. _ = xcb_ret
  17169. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17170. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17171. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17172. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17173. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17174. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17175. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req175)))
  17176. return xcb_ret
  17177. }
  17178. var _xcb_req175 = Txcb_protocol_request_t{
  17179. Fcount: uint64(2),
  17180. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17181. }
  17182. func Xxcb_list_installed_colormaps_cmaps(tls *libc.TLS, R uintptr) (r uintptr) {
  17183. return R + libc.UintptrFromInt32(1)*32
  17184. }
  17185. func Xxcb_list_installed_colormaps_cmaps_length(tls *libc.TLS, R uintptr) (r int32) {
  17186. return libc.Int32FromUint16((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)
  17187. }
  17188. func Xxcb_list_installed_colormaps_cmaps_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17189. var i Txcb_generic_iterator_t
  17190. _ = i
  17191. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)*4
  17192. i.Frem = 0
  17193. i.Findex = int32(int64(i.Fdata) - int64(R))
  17194. return i
  17195. }
  17196. func Xxcb_list_installed_colormaps_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_installed_colormaps_cookie_t, e uintptr) (r uintptr) {
  17197. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17198. }
  17199. 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) {
  17200. bp := tls.Alloc(80)
  17201. defer tls.Free(80)
  17202. var xcb_ret Txcb_alloc_color_cookie_t
  17203. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17204. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17205. _ = xcb_ret
  17206. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17207. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17208. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17209. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17210. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17211. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17213. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17214. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17215. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17216. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req176)))
  17217. return xcb_ret
  17218. }
  17219. var _xcb_req176 = Txcb_protocol_request_t{
  17220. Fcount: uint64(2),
  17221. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17222. }
  17223. 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) {
  17224. bp := tls.Alloc(80)
  17225. defer tls.Free(80)
  17226. var xcb_ret Txcb_alloc_color_cookie_t
  17227. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17228. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17229. _ = xcb_ret
  17230. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17231. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17232. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17233. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17234. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17235. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17236. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17240. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req177)))
  17241. return xcb_ret
  17242. }
  17243. var _xcb_req177 = Txcb_protocol_request_t{
  17244. Fcount: uint64(2),
  17245. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17246. }
  17247. func Xxcb_alloc_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cookie_t, e uintptr) (r uintptr) {
  17248. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17249. }
  17250. func Xxcb_alloc_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17251. var _aux, xcb_tmp uintptr
  17252. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17253. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17254. xcb_tmp = _buffer
  17255. _aux = _buffer
  17256. xcb_buffer_len = uint32(0)
  17257. xcb_block_len = uint32(0)
  17258. xcb_pad = uint32(0)
  17259. xcb_align_to = uint32(0)
  17260. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17261. xcb_tmp += uintptr(xcb_block_len)
  17262. xcb_buffer_len += xcb_block_len
  17263. xcb_block_len = uint32(0)
  17264. /* name */
  17265. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17266. xcb_tmp += uintptr(xcb_block_len)
  17267. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17268. /* insert padding */
  17269. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17270. xcb_buffer_len += xcb_block_len + xcb_pad
  17271. if uint32(0) != xcb_pad {
  17272. xcb_tmp += uintptr(xcb_pad)
  17273. xcb_pad = uint32(0)
  17274. }
  17275. xcb_block_len = uint32(0)
  17276. return libc.Int32FromUint32(xcb_buffer_len)
  17277. }
  17278. 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) {
  17279. bp := tls.Alloc(112)
  17280. defer tls.Free(112)
  17281. var xcb_ret Txcb_alloc_named_color_cookie_t
  17282. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17283. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17284. _ = xcb_ret
  17285. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17286. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17287. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17288. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17289. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17290. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17291. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17292. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17293. /* char name */
  17294. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17295. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17296. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17297. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17298. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req178)))
  17299. return xcb_ret
  17300. }
  17301. var _xcb_req178 = Txcb_protocol_request_t{
  17302. Fcount: uint64(4),
  17303. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17304. }
  17305. 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) {
  17306. bp := tls.Alloc(112)
  17307. defer tls.Free(112)
  17308. var xcb_ret Txcb_alloc_named_color_cookie_t
  17309. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17310. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17311. _ = xcb_ret
  17312. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17313. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17314. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17315. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17316. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17317. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17318. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17319. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17320. /* char name */
  17321. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17322. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17323. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17324. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17325. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req179)))
  17326. return xcb_ret
  17327. }
  17328. var _xcb_req179 = Txcb_protocol_request_t{
  17329. Fcount: uint64(4),
  17330. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17331. }
  17332. func Xxcb_alloc_named_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_named_color_cookie_t, e uintptr) (r uintptr) {
  17333. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17334. }
  17335. func Xxcb_alloc_color_cells_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17336. var _aux, xcb_tmp uintptr
  17337. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17338. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17339. xcb_tmp = _buffer
  17340. _aux = _buffer
  17341. xcb_buffer_len = uint32(0)
  17342. xcb_block_len = uint32(0)
  17343. xcb_pad = uint32(0)
  17344. xcb_align_to = uint32(0)
  17345. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17346. xcb_tmp += uintptr(xcb_block_len)
  17347. xcb_buffer_len += xcb_block_len
  17348. xcb_block_len = uint32(0)
  17349. /* pixels */
  17350. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17351. xcb_tmp += uintptr(xcb_block_len)
  17352. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17353. /* insert padding */
  17354. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17355. xcb_buffer_len += xcb_block_len + xcb_pad
  17356. if uint32(0) != xcb_pad {
  17357. xcb_tmp += uintptr(xcb_pad)
  17358. xcb_pad = uint32(0)
  17359. }
  17360. xcb_block_len = uint32(0)
  17361. /* masks */
  17362. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fmasks_len)*libc.Uint64FromInt64(4))
  17363. xcb_tmp += uintptr(xcb_block_len)
  17364. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17365. /* insert padding */
  17366. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17367. xcb_buffer_len += xcb_block_len + xcb_pad
  17368. if uint32(0) != xcb_pad {
  17369. xcb_tmp += uintptr(xcb_pad)
  17370. xcb_pad = uint32(0)
  17371. }
  17372. xcb_block_len = uint32(0)
  17373. return libc.Int32FromUint32(xcb_buffer_len)
  17374. }
  17375. 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) {
  17376. bp := tls.Alloc(80)
  17377. defer tls.Free(80)
  17378. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17379. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17380. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17381. _ = xcb_ret
  17382. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17383. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17384. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17385. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17386. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17387. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17388. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17389. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17390. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req180)))
  17391. return xcb_ret
  17392. }
  17393. var _xcb_req180 = Txcb_protocol_request_t{
  17394. Fcount: uint64(2),
  17395. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17396. }
  17397. 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) {
  17398. bp := tls.Alloc(80)
  17399. defer tls.Free(80)
  17400. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17401. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17402. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17403. _ = xcb_ret
  17404. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17405. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17406. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17407. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17408. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17409. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17411. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17412. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req181)))
  17413. return xcb_ret
  17414. }
  17415. var _xcb_req181 = Txcb_protocol_request_t{
  17416. Fcount: uint64(2),
  17417. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17418. }
  17419. func Xxcb_alloc_color_cells_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17420. return R + libc.UintptrFromInt32(1)*32
  17421. }
  17422. func Xxcb_alloc_color_cells_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17423. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17424. }
  17425. func Xxcb_alloc_color_cells_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17426. var i Txcb_generic_iterator_t
  17427. _ = i
  17428. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17429. i.Frem = 0
  17430. i.Findex = int32(int64(i.Fdata) - int64(R))
  17431. return i
  17432. }
  17433. func Xxcb_alloc_color_cells_masks(tls *libc.TLS, R uintptr) (r uintptr) {
  17434. var prev Txcb_generic_iterator_t
  17435. _ = prev
  17436. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17437. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  17438. }
  17439. func Xxcb_alloc_color_cells_masks_length(tls *libc.TLS, R uintptr) (r int32) {
  17440. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)
  17441. }
  17442. func Xxcb_alloc_color_cells_masks_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17443. var i, prev Txcb_generic_iterator_t
  17444. _, _ = i, prev
  17445. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17446. 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
  17447. i.Frem = 0
  17448. i.Findex = int32(int64(i.Fdata) - int64(R))
  17449. return i
  17450. }
  17451. func Xxcb_alloc_color_cells_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cells_cookie_t, e uintptr) (r uintptr) {
  17452. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17453. }
  17454. func Xxcb_alloc_color_planes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17455. var _aux, xcb_tmp uintptr
  17456. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17457. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17458. xcb_tmp = _buffer
  17459. _aux = _buffer
  17460. xcb_buffer_len = uint32(0)
  17461. xcb_block_len = uint32(0)
  17462. xcb_pad = uint32(0)
  17463. xcb_align_to = uint32(0)
  17464. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17465. xcb_tmp += uintptr(xcb_block_len)
  17466. xcb_buffer_len += xcb_block_len
  17467. xcb_block_len = uint32(0)
  17468. /* pixels */
  17469. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17470. xcb_tmp += uintptr(xcb_block_len)
  17471. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17472. /* insert padding */
  17473. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17474. xcb_buffer_len += xcb_block_len + xcb_pad
  17475. if uint32(0) != xcb_pad {
  17476. xcb_tmp += uintptr(xcb_pad)
  17477. xcb_pad = uint32(0)
  17478. }
  17479. xcb_block_len = uint32(0)
  17480. return libc.Int32FromUint32(xcb_buffer_len)
  17481. }
  17482. 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) {
  17483. bp := tls.Alloc(80)
  17484. defer tls.Free(80)
  17485. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17486. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17487. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17488. _ = xcb_ret
  17489. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17490. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17491. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17492. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17493. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17494. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17495. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17496. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17497. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17498. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17499. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req182)))
  17500. return xcb_ret
  17501. }
  17502. var _xcb_req182 = Txcb_protocol_request_t{
  17503. Fcount: uint64(2),
  17504. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17505. }
  17506. 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) {
  17507. bp := tls.Alloc(80)
  17508. defer tls.Free(80)
  17509. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17510. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17511. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17512. _ = xcb_ret
  17513. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17514. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17515. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17516. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17517. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17518. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17519. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17520. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17521. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17522. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17523. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req183)))
  17524. return xcb_ret
  17525. }
  17526. var _xcb_req183 = Txcb_protocol_request_t{
  17527. Fcount: uint64(2),
  17528. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17529. }
  17530. func Xxcb_alloc_color_planes_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17531. return R + libc.UintptrFromInt32(1)*32
  17532. }
  17533. func Xxcb_alloc_color_planes_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17534. return libc.Int32FromUint16((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17535. }
  17536. func Xxcb_alloc_color_planes_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17537. var i Txcb_generic_iterator_t
  17538. _ = i
  17539. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17540. i.Frem = 0
  17541. i.Findex = int32(int64(i.Fdata) - int64(R))
  17542. return i
  17543. }
  17544. func Xxcb_alloc_color_planes_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_planes_cookie_t, e uintptr) (r uintptr) {
  17545. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17546. }
  17547. func Xxcb_free_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17548. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17549. var xcb_tmp uintptr
  17550. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17551. xcb_tmp = _buffer
  17552. xcb_buffer_len = uint32(0)
  17553. xcb_block_len = uint32(0)
  17554. xcb_pad = uint32(0)
  17555. xcb_align_to = uint32(0)
  17556. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17557. xcb_tmp += uintptr(xcb_block_len)
  17558. xcb_buffer_len += xcb_block_len
  17559. xcb_block_len = uint32(0)
  17560. /* pixels */
  17561. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17562. xcb_tmp += uintptr(xcb_block_len)
  17563. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17564. /* insert padding */
  17565. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17566. xcb_buffer_len += xcb_block_len + xcb_pad
  17567. if uint32(0) != xcb_pad {
  17568. xcb_tmp += uintptr(xcb_pad)
  17569. xcb_pad = uint32(0)
  17570. }
  17571. xcb_block_len = uint32(0)
  17572. return libc.Int32FromUint32(xcb_buffer_len)
  17573. }
  17574. 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) {
  17575. bp := tls.Alloc(112)
  17576. defer tls.Free(112)
  17577. var xcb_ret Txcb_void_cookie_t
  17578. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17579. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17580. _ = xcb_ret
  17581. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17582. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17583. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17585. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17587. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17588. /* uint32_t pixels */
  17589. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17590. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17591. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17592. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17593. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req184)))
  17594. return xcb_ret
  17595. }
  17596. var _xcb_req184 = Txcb_protocol_request_t{
  17597. Fcount: uint64(4),
  17598. Fopcode: uint8(m_XCB_FREE_COLORS),
  17599. Fisvoid: uint8(1),
  17600. }
  17601. 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) {
  17602. bp := tls.Alloc(112)
  17603. defer tls.Free(112)
  17604. var xcb_ret Txcb_void_cookie_t
  17605. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17606. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17607. _ = xcb_ret
  17608. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17609. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17610. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17611. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17612. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17613. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17614. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17615. /* uint32_t pixels */
  17616. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17617. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17618. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17619. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17620. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req185)))
  17621. return xcb_ret
  17622. }
  17623. var _xcb_req185 = Txcb_protocol_request_t{
  17624. Fcount: uint64(4),
  17625. Fopcode: uint8(m_XCB_FREE_COLORS),
  17626. Fisvoid: uint8(1),
  17627. }
  17628. func Xxcb_free_colors_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17629. return R + libc.UintptrFromInt32(1)*12
  17630. }
  17631. func Xxcb_free_colors_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17632. 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))
  17633. }
  17634. func Xxcb_free_colors_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17635. var i Txcb_generic_iterator_t
  17636. _ = i
  17637. 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
  17638. i.Frem = 0
  17639. i.Findex = int32(int64(i.Fdata) - int64(R))
  17640. return i
  17641. }
  17642. func Xxcb_coloritem_next(tls *libc.TLS, i uintptr) {
  17643. var p1 uintptr
  17644. _ = p1
  17645. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Frem--
  17646. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  17647. p1 = i + 12
  17648. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  17649. }
  17650. func Xxcb_coloritem_end(tls *libc.TLS, i Txcb_coloritem_iterator_t) (r Txcb_generic_iterator_t) {
  17651. var ret Txcb_generic_iterator_t
  17652. _ = ret
  17653. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  17654. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17655. ret.Frem = 0
  17656. return ret
  17657. }
  17658. func Xxcb_store_colors_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  17659. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17660. var xcb_tmp uintptr
  17661. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17662. xcb_tmp = _buffer
  17663. xcb_buffer_len = uint32(0)
  17664. xcb_block_len = uint32(0)
  17665. xcb_pad = uint32(0)
  17666. xcb_align_to = uint32(0)
  17667. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17668. xcb_tmp += uintptr(xcb_block_len)
  17669. xcb_buffer_len += xcb_block_len
  17670. xcb_block_len = uint32(0)
  17671. /* items */
  17672. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(12))
  17673. xcb_tmp += uintptr(xcb_block_len)
  17674. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17675. /* insert padding */
  17676. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17677. xcb_buffer_len += xcb_block_len + xcb_pad
  17678. if uint32(0) != xcb_pad {
  17679. xcb_tmp += uintptr(xcb_pad)
  17680. xcb_pad = uint32(0)
  17681. }
  17682. xcb_block_len = uint32(0)
  17683. return libc.Int32FromUint32(xcb_buffer_len)
  17684. }
  17685. 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) {
  17686. bp := tls.Alloc(112)
  17687. defer tls.Free(112)
  17688. var xcb_ret Txcb_void_cookie_t
  17689. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17690. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17691. _ = xcb_ret
  17692. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17693. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17694. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17695. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17696. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17697. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17698. /* xcb_coloritem_t items */
  17699. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17700. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17701. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17702. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17703. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req186)))
  17704. return xcb_ret
  17705. }
  17706. var _xcb_req186 = Txcb_protocol_request_t{
  17707. Fcount: uint64(4),
  17708. Fopcode: uint8(m_XCB_STORE_COLORS),
  17709. Fisvoid: uint8(1),
  17710. }
  17711. func Xxcb_store_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
  17712. bp := tls.Alloc(112)
  17713. defer tls.Free(112)
  17714. var xcb_ret Txcb_void_cookie_t
  17715. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17716. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17717. _ = xcb_ret
  17718. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17719. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17720. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17721. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17722. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17723. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17724. /* xcb_coloritem_t items */
  17725. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17726. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17727. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17728. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17729. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req187)))
  17730. return xcb_ret
  17731. }
  17732. var _xcb_req187 = Txcb_protocol_request_t{
  17733. Fcount: uint64(4),
  17734. Fopcode: uint8(m_XCB_STORE_COLORS),
  17735. Fisvoid: uint8(1),
  17736. }
  17737. func Xxcb_store_colors_items(tls *libc.TLS, R uintptr) (r uintptr) {
  17738. return R + libc.UintptrFromInt32(1)*8
  17739. }
  17740. func Xxcb_store_colors_items_length(tls *libc.TLS, R uintptr) (r int32) {
  17741. 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))
  17742. }
  17743. func Xxcb_store_colors_items_iterator(tls *libc.TLS, R uintptr) (r Txcb_coloritem_iterator_t) {
  17744. var i Txcb_coloritem_iterator_t
  17745. _ = i
  17746. i.Fdata = R + libc.UintptrFromInt32(1)*8
  17747. 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))
  17748. i.Findex = int32(int64(i.Fdata) - int64(R))
  17749. return i
  17750. }
  17751. func Xxcb_store_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17752. var _aux, xcb_tmp uintptr
  17753. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17754. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17755. xcb_tmp = _buffer
  17756. _aux = _buffer
  17757. xcb_buffer_len = uint32(0)
  17758. xcb_block_len = uint32(0)
  17759. xcb_pad = uint32(0)
  17760. xcb_align_to = uint32(0)
  17761. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  17762. xcb_tmp += uintptr(xcb_block_len)
  17763. xcb_buffer_len += xcb_block_len
  17764. xcb_block_len = uint32(0)
  17765. /* name */
  17766. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_store_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17767. xcb_tmp += uintptr(xcb_block_len)
  17768. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17769. /* insert padding */
  17770. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17771. xcb_buffer_len += xcb_block_len + xcb_pad
  17772. if uint32(0) != xcb_pad {
  17773. xcb_tmp += uintptr(xcb_pad)
  17774. xcb_pad = uint32(0)
  17775. }
  17776. xcb_block_len = uint32(0)
  17777. return libc.Int32FromUint32(xcb_buffer_len)
  17778. }
  17779. 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) {
  17780. bp := tls.Alloc(112)
  17781. defer tls.Free(112)
  17782. var xcb_ret Txcb_void_cookie_t
  17783. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17784. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17785. _ = xcb_ret
  17786. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17787. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17788. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17789. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17790. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17791. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17792. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17793. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17794. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17795. /* char name */
  17796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17797. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17798. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17799. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17800. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req188)))
  17801. return xcb_ret
  17802. }
  17803. var _xcb_req188 = Txcb_protocol_request_t{
  17804. Fcount: uint64(4),
  17805. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17806. Fisvoid: uint8(1),
  17807. }
  17808. 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) {
  17809. bp := tls.Alloc(112)
  17810. defer tls.Free(112)
  17811. var xcb_ret Txcb_void_cookie_t
  17812. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17813. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17814. _ = xcb_ret
  17815. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17816. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17817. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17818. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17819. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17820. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17821. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17822. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17823. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17824. /* char name */
  17825. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17826. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17827. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17828. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17829. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req189)))
  17830. return xcb_ret
  17831. }
  17832. var _xcb_req189 = Txcb_protocol_request_t{
  17833. Fcount: uint64(4),
  17834. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17835. Fisvoid: uint8(1),
  17836. }
  17837. func Xxcb_store_named_color_name(tls *libc.TLS, R uintptr) (r uintptr) {
  17838. return R + libc.UintptrFromInt32(1)*16
  17839. }
  17840. func Xxcb_store_named_color_name_length(tls *libc.TLS, R uintptr) (r int32) {
  17841. return libc.Int32FromUint16((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17842. }
  17843. func Xxcb_store_named_color_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17844. var i Txcb_generic_iterator_t
  17845. _ = i
  17846. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  17847. i.Frem = 0
  17848. i.Findex = int32(int64(i.Fdata) - int64(R))
  17849. return i
  17850. }
  17851. func Xxcb_rgb_next(tls *libc.TLS, i uintptr) {
  17852. var p1 uintptr
  17853. _ = p1
  17854. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Frem--
  17855. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  17856. p1 = i + 12
  17857. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  17858. }
  17859. func Xxcb_rgb_end(tls *libc.TLS, i Txcb_rgb_iterator_t) (r Txcb_generic_iterator_t) {
  17860. var ret Txcb_generic_iterator_t
  17861. _ = ret
  17862. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  17863. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17864. ret.Frem = 0
  17865. return ret
  17866. }
  17867. func Xxcb_query_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17868. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17869. var xcb_tmp uintptr
  17870. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17871. xcb_tmp = _buffer
  17872. xcb_buffer_len = uint32(0)
  17873. xcb_block_len = uint32(0)
  17874. xcb_pad = uint32(0)
  17875. xcb_align_to = uint32(0)
  17876. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17877. xcb_tmp += uintptr(xcb_block_len)
  17878. xcb_buffer_len += xcb_block_len
  17879. xcb_block_len = uint32(0)
  17880. /* pixels */
  17881. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17882. xcb_tmp += uintptr(xcb_block_len)
  17883. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17884. /* insert padding */
  17885. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17886. xcb_buffer_len += xcb_block_len + xcb_pad
  17887. if uint32(0) != xcb_pad {
  17888. xcb_tmp += uintptr(xcb_pad)
  17889. xcb_pad = uint32(0)
  17890. }
  17891. xcb_block_len = uint32(0)
  17892. return libc.Int32FromUint32(xcb_buffer_len)
  17893. }
  17894. 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) {
  17895. bp := tls.Alloc(112)
  17896. defer tls.Free(112)
  17897. var xcb_ret Txcb_query_colors_cookie_t
  17898. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17899. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17900. _ = xcb_ret
  17901. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17902. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17903. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17904. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17905. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17906. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17907. /* uint32_t pixels */
  17908. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17909. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17910. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17911. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17912. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req190)))
  17913. return xcb_ret
  17914. }
  17915. var _xcb_req190 = Txcb_protocol_request_t{
  17916. Fcount: uint64(4),
  17917. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17918. }
  17919. 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) {
  17920. bp := tls.Alloc(112)
  17921. defer tls.Free(112)
  17922. var xcb_ret Txcb_query_colors_cookie_t
  17923. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  17924. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17925. _ = xcb_ret
  17926. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17927. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17928. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17929. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17930. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17931. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17932. /* uint32_t pixels */
  17933. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17934. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17935. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17936. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17937. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req191)))
  17938. return xcb_ret
  17939. }
  17940. var _xcb_req191 = Txcb_protocol_request_t{
  17941. Fcount: uint64(4),
  17942. Fopcode: uint8(m_XCB_QUERY_COLORS),
  17943. }
  17944. func Xxcb_query_colors_colors(tls *libc.TLS, R uintptr) (r uintptr) {
  17945. return R + libc.UintptrFromInt32(1)*32
  17946. }
  17947. func Xxcb_query_colors_colors_length(tls *libc.TLS, R uintptr) (r int32) {
  17948. return libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  17949. }
  17950. func Xxcb_query_colors_colors_iterator(tls *libc.TLS, R uintptr) (r Txcb_rgb_iterator_t) {
  17951. var i Txcb_rgb_iterator_t
  17952. _ = i
  17953. i.Fdata = R + libc.UintptrFromInt32(1)*32
  17954. i.Frem = libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  17955. i.Findex = int32(int64(i.Fdata) - int64(R))
  17956. return i
  17957. }
  17958. func Xxcb_query_colors_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_colors_cookie_t, e uintptr) (r uintptr) {
  17959. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17960. }
  17961. func Xxcb_lookup_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17962. var _aux, xcb_tmp uintptr
  17963. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17964. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17965. xcb_tmp = _buffer
  17966. _aux = _buffer
  17967. xcb_buffer_len = uint32(0)
  17968. xcb_block_len = uint32(0)
  17969. xcb_pad = uint32(0)
  17970. xcb_align_to = uint32(0)
  17971. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17972. xcb_tmp += uintptr(xcb_block_len)
  17973. xcb_buffer_len += xcb_block_len
  17974. xcb_block_len = uint32(0)
  17975. /* name */
  17976. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_lookup_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17977. xcb_tmp += uintptr(xcb_block_len)
  17978. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17979. /* insert padding */
  17980. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17981. xcb_buffer_len += xcb_block_len + xcb_pad
  17982. if uint32(0) != xcb_pad {
  17983. xcb_tmp += uintptr(xcb_pad)
  17984. xcb_pad = uint32(0)
  17985. }
  17986. xcb_block_len = uint32(0)
  17987. return libc.Int32FromUint32(xcb_buffer_len)
  17988. }
  17989. 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) {
  17990. bp := tls.Alloc(112)
  17991. defer tls.Free(112)
  17992. var xcb_ret Txcb_lookup_color_cookie_t
  17993. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  17994. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17995. _ = xcb_ret
  17996. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17997. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17998. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17999. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  18000. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18001. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18002. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18003. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18004. /* char name */
  18005. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18006. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18007. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18008. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18009. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req192)))
  18010. return xcb_ret
  18011. }
  18012. var _xcb_req192 = Txcb_protocol_request_t{
  18013. Fcount: uint64(4),
  18014. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18015. }
  18016. 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) {
  18017. bp := tls.Alloc(112)
  18018. defer tls.Free(112)
  18019. var xcb_ret Txcb_lookup_color_cookie_t
  18020. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  18021. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18022. _ = xcb_ret
  18023. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18024. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18025. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18026. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  18027. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18028. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18029. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18030. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18031. /* char name */
  18032. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18033. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18034. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18035. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18036. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req193)))
  18037. return xcb_ret
  18038. }
  18039. var _xcb_req193 = Txcb_protocol_request_t{
  18040. Fcount: uint64(4),
  18041. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18042. }
  18043. func Xxcb_lookup_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_lookup_color_cookie_t, e uintptr) (r uintptr) {
  18044. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18045. }
  18046. 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) {
  18047. bp := tls.Alloc(96)
  18048. defer tls.Free(96)
  18049. var xcb_ret Txcb_void_cookie_t
  18050. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18051. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18052. _ = xcb_ret
  18053. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18054. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18055. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18056. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18057. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18058. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18059. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18060. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18061. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18062. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18063. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18064. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18066. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18067. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18068. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18069. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req194)))
  18070. return xcb_ret
  18071. }
  18072. var _xcb_req194 = Txcb_protocol_request_t{
  18073. Fcount: uint64(2),
  18074. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18075. Fisvoid: uint8(1),
  18076. }
  18077. 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) {
  18078. bp := tls.Alloc(96)
  18079. defer tls.Free(96)
  18080. var xcb_ret Txcb_void_cookie_t
  18081. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18082. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18083. _ = xcb_ret
  18084. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18085. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18086. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18087. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18088. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18089. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18090. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18091. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18092. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18093. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18094. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18095. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18096. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18097. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18098. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18099. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18100. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req195)))
  18101. return xcb_ret
  18102. }
  18103. var _xcb_req195 = Txcb_protocol_request_t{
  18104. Fcount: uint64(2),
  18105. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18106. Fisvoid: uint8(1),
  18107. }
  18108. 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) {
  18109. bp := tls.Alloc(96)
  18110. defer tls.Free(96)
  18111. var xcb_ret Txcb_void_cookie_t
  18112. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18113. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18114. _ = xcb_ret
  18115. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18116. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18117. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18118. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18119. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18120. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18121. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18122. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18123. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18124. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18125. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18126. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18127. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18128. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18129. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18130. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18131. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req196)))
  18132. return xcb_ret
  18133. }
  18134. var _xcb_req196 = Txcb_protocol_request_t{
  18135. Fcount: uint64(2),
  18136. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18137. Fisvoid: uint8(1),
  18138. }
  18139. 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) {
  18140. bp := tls.Alloc(96)
  18141. defer tls.Free(96)
  18142. var xcb_ret Txcb_void_cookie_t
  18143. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18144. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18145. _ = xcb_ret
  18146. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18147. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18148. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18149. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18150. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18151. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18152. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18153. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18154. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18155. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18156. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18157. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18158. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18159. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18160. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18162. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req197)))
  18163. return xcb_ret
  18164. }
  18165. var _xcb_req197 = Txcb_protocol_request_t{
  18166. Fcount: uint64(2),
  18167. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18168. Fisvoid: uint8(1),
  18169. }
  18170. func Xxcb_free_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18171. bp := tls.Alloc(80)
  18172. defer tls.Free(80)
  18173. var xcb_ret Txcb_void_cookie_t
  18174. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18175. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18176. _ = xcb_ret
  18177. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18178. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18180. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18181. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18182. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18183. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req198)))
  18184. return xcb_ret
  18185. }
  18186. var _xcb_req198 = Txcb_protocol_request_t{
  18187. Fcount: uint64(2),
  18188. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18189. Fisvoid: uint8(1),
  18190. }
  18191. func Xxcb_free_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18192. bp := tls.Alloc(80)
  18193. defer tls.Free(80)
  18194. var xcb_ret Txcb_void_cookie_t
  18195. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18196. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18197. _ = xcb_ret
  18198. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18199. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18202. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18203. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18204. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req199)))
  18205. return xcb_ret
  18206. }
  18207. var _xcb_req199 = Txcb_protocol_request_t{
  18208. Fcount: uint64(2),
  18209. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18210. Fisvoid: uint8(1),
  18211. }
  18212. 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) {
  18213. bp := tls.Alloc(96)
  18214. defer tls.Free(96)
  18215. var xcb_ret Txcb_void_cookie_t
  18216. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18217. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18218. _ = xcb_ret
  18219. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18220. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18221. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18222. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18223. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18224. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18225. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18226. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18227. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18228. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18229. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18230. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18231. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req200)))
  18232. return xcb_ret
  18233. }
  18234. var _xcb_req200 = Txcb_protocol_request_t{
  18235. Fcount: uint64(2),
  18236. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18237. Fisvoid: uint8(1),
  18238. }
  18239. 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) {
  18240. bp := tls.Alloc(96)
  18241. defer tls.Free(96)
  18242. var xcb_ret Txcb_void_cookie_t
  18243. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18244. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18245. _ = xcb_ret
  18246. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18247. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18248. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18249. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18250. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18251. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18252. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18253. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18254. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18255. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18256. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18258. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req201)))
  18259. return xcb_ret
  18260. }
  18261. var _xcb_req201 = Txcb_protocol_request_t{
  18262. Fcount: uint64(2),
  18263. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18264. Fisvoid: uint8(1),
  18265. }
  18266. 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) {
  18267. bp := tls.Alloc(80)
  18268. defer tls.Free(80)
  18269. var xcb_ret Txcb_query_best_size_cookie_t
  18270. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18271. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18272. _ = xcb_ret
  18273. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18274. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18275. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18276. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18277. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18281. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req202)))
  18282. return xcb_ret
  18283. }
  18284. var _xcb_req202 = Txcb_protocol_request_t{
  18285. Fcount: uint64(2),
  18286. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18287. }
  18288. 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) {
  18289. bp := tls.Alloc(80)
  18290. defer tls.Free(80)
  18291. var xcb_ret Txcb_query_best_size_cookie_t
  18292. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18293. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18294. _ = xcb_ret
  18295. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18296. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18297. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18298. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18301. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18302. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18303. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req203)))
  18304. return xcb_ret
  18305. }
  18306. var _xcb_req203 = Txcb_protocol_request_t{
  18307. Fcount: uint64(2),
  18308. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18309. }
  18310. func Xxcb_query_best_size_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_best_size_cookie_t, e uintptr) (r uintptr) {
  18311. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18312. }
  18313. func Xxcb_query_extension_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18314. var _aux, xcb_tmp uintptr
  18315. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18316. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18317. xcb_tmp = _buffer
  18318. _aux = _buffer
  18319. xcb_buffer_len = uint32(0)
  18320. xcb_block_len = uint32(0)
  18321. xcb_pad = uint32(0)
  18322. xcb_align_to = uint32(0)
  18323. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18324. xcb_tmp += uintptr(xcb_block_len)
  18325. xcb_buffer_len += xcb_block_len
  18326. xcb_block_len = uint32(0)
  18327. /* name */
  18328. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_extension_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  18329. xcb_tmp += uintptr(xcb_block_len)
  18330. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18331. /* insert padding */
  18332. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18333. xcb_buffer_len += xcb_block_len + xcb_pad
  18334. if uint32(0) != xcb_pad {
  18335. xcb_tmp += uintptr(xcb_pad)
  18336. xcb_pad = uint32(0)
  18337. }
  18338. xcb_block_len = uint32(0)
  18339. return libc.Int32FromUint32(xcb_buffer_len)
  18340. }
  18341. func Xxcb_query_extension(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18342. bp := tls.Alloc(112)
  18343. defer tls.Free(112)
  18344. var xcb_ret Txcb_query_extension_cookie_t
  18345. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18346. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18347. _ = xcb_ret
  18348. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18349. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18350. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18351. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18352. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18353. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18354. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18355. /* char name */
  18356. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18357. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18358. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18359. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18360. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req204)))
  18361. return xcb_ret
  18362. }
  18363. var _xcb_req204 = Txcb_protocol_request_t{
  18364. Fcount: uint64(4),
  18365. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18366. }
  18367. func Xxcb_query_extension_unchecked(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18368. bp := tls.Alloc(112)
  18369. defer tls.Free(112)
  18370. var xcb_ret Txcb_query_extension_cookie_t
  18371. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18372. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18373. _ = xcb_ret
  18374. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18375. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18376. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18377. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18378. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18379. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18380. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18381. /* char name */
  18382. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18383. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18384. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18385. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18386. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req205)))
  18387. return xcb_ret
  18388. }
  18389. var _xcb_req205 = Txcb_protocol_request_t{
  18390. Fcount: uint64(4),
  18391. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18392. }
  18393. func Xxcb_query_extension_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_extension_cookie_t, e uintptr) (r uintptr) {
  18394. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18395. }
  18396. func Xxcb_list_extensions_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18397. var _aux, xcb_tmp uintptr
  18398. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  18399. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  18400. xcb_tmp = _buffer
  18401. _aux = _buffer
  18402. xcb_buffer_len = uint32(0)
  18403. xcb_block_len = uint32(0)
  18404. xcb_pad = uint32(0)
  18405. xcb_align_to = uint32(0)
  18406. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18407. xcb_tmp += uintptr(xcb_block_len)
  18408. xcb_buffer_len += xcb_block_len
  18409. xcb_block_len = uint32(0)
  18410. /* names */
  18411. i = uint32(0)
  18412. for {
  18413. if !(i < uint32((*Txcb_list_extensions_reply_t)(unsafe.Pointer(_aux)).Fnames_len)) {
  18414. break
  18415. }
  18416. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  18417. xcb_block_len += xcb_tmp_len
  18418. xcb_tmp += uintptr(xcb_tmp_len)
  18419. goto _1
  18420. _1:
  18421. ;
  18422. i++
  18423. }
  18424. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18425. /* insert padding */
  18426. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18427. xcb_buffer_len += xcb_block_len + xcb_pad
  18428. if uint32(0) != xcb_pad {
  18429. xcb_tmp += uintptr(xcb_pad)
  18430. xcb_pad = uint32(0)
  18431. }
  18432. xcb_block_len = uint32(0)
  18433. return libc.Int32FromUint32(xcb_buffer_len)
  18434. }
  18435. func Xxcb_list_extensions(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18436. bp := tls.Alloc(80)
  18437. defer tls.Free(80)
  18438. var xcb_ret Txcb_list_extensions_cookie_t
  18439. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18440. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18441. _ = xcb_ret
  18442. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18443. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18444. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18445. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18446. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18447. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req206)))
  18448. return xcb_ret
  18449. }
  18450. var _xcb_req206 = Txcb_protocol_request_t{
  18451. Fcount: uint64(2),
  18452. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18453. }
  18454. func Xxcb_list_extensions_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18455. bp := tls.Alloc(80)
  18456. defer tls.Free(80)
  18457. var xcb_ret Txcb_list_extensions_cookie_t
  18458. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18459. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18460. _ = xcb_ret
  18461. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18462. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18463. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18464. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18465. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18466. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req207)))
  18467. return xcb_ret
  18468. }
  18469. var _xcb_req207 = Txcb_protocol_request_t{
  18470. Fcount: uint64(2),
  18471. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18472. }
  18473. func Xxcb_list_extensions_names_length(tls *libc.TLS, R uintptr) (r int32) {
  18474. return libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18475. }
  18476. func Xxcb_list_extensions_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  18477. var i Txcb_str_iterator_t
  18478. _ = i
  18479. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18480. i.Frem = libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18481. i.Findex = int32(int64(i.Fdata) - int64(R))
  18482. return i
  18483. }
  18484. func Xxcb_list_extensions_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_extensions_cookie_t, e uintptr) (r uintptr) {
  18485. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18486. }
  18487. func Xxcb_change_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18488. var _aux, xcb_tmp uintptr
  18489. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18490. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18491. xcb_tmp = _buffer
  18492. _aux = _buffer
  18493. xcb_buffer_len = uint32(0)
  18494. xcb_block_len = uint32(0)
  18495. xcb_pad = uint32(0)
  18496. xcb_align_to = uint32(0)
  18497. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18498. xcb_tmp += uintptr(xcb_block_len)
  18499. xcb_buffer_len += xcb_block_len
  18500. xcb_block_len = uint32(0)
  18501. /* keysyms */
  18502. 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))
  18503. xcb_tmp += uintptr(xcb_block_len)
  18504. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18505. /* insert padding */
  18506. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18507. xcb_buffer_len += xcb_block_len + xcb_pad
  18508. if uint32(0) != xcb_pad {
  18509. xcb_tmp += uintptr(xcb_pad)
  18510. xcb_pad = uint32(0)
  18511. }
  18512. xcb_block_len = uint32(0)
  18513. return libc.Int32FromUint32(xcb_buffer_len)
  18514. }
  18515. 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) {
  18516. bp := tls.Alloc(112)
  18517. defer tls.Free(112)
  18518. var xcb_ret Txcb_void_cookie_t
  18519. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18520. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18521. _ = xcb_ret
  18522. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18523. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18524. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18525. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18526. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18527. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18528. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18529. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18530. /* xcb_keysym_t keysyms */
  18531. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18532. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18533. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18534. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18535. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req208)))
  18536. return xcb_ret
  18537. }
  18538. var _xcb_req208 = Txcb_protocol_request_t{
  18539. Fcount: uint64(4),
  18540. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18541. Fisvoid: uint8(1),
  18542. }
  18543. 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) {
  18544. bp := tls.Alloc(112)
  18545. defer tls.Free(112)
  18546. var xcb_ret Txcb_void_cookie_t
  18547. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18548. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18549. _ = xcb_ret
  18550. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18551. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18552. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18553. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18554. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18555. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18556. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18557. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18558. /* xcb_keysym_t keysyms */
  18559. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18560. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18561. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18562. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18563. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req209)))
  18564. return xcb_ret
  18565. }
  18566. var _xcb_req209 = Txcb_protocol_request_t{
  18567. Fcount: uint64(4),
  18568. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18569. Fisvoid: uint8(1),
  18570. }
  18571. func Xxcb_change_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18572. return R + libc.UintptrFromInt32(1)*8
  18573. }
  18574. func Xxcb_change_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18575. 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)
  18576. }
  18577. func Xxcb_change_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18578. var i Txcb_generic_iterator_t
  18579. _ = i
  18580. 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
  18581. i.Frem = 0
  18582. i.Findex = int32(int64(i.Fdata) - int64(R))
  18583. return i
  18584. }
  18585. func Xxcb_get_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18586. var _aux, xcb_tmp uintptr
  18587. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18588. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18589. xcb_tmp = _buffer
  18590. _aux = _buffer
  18591. xcb_buffer_len = uint32(0)
  18592. xcb_block_len = uint32(0)
  18593. xcb_pad = uint32(0)
  18594. xcb_align_to = uint32(0)
  18595. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18596. xcb_tmp += uintptr(xcb_block_len)
  18597. xcb_buffer_len += xcb_block_len
  18598. xcb_block_len = uint32(0)
  18599. /* keysyms */
  18600. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(_aux)).Flength)*libc.Uint64FromInt64(4))
  18601. xcb_tmp += uintptr(xcb_block_len)
  18602. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18603. /* insert padding */
  18604. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18605. xcb_buffer_len += xcb_block_len + xcb_pad
  18606. if uint32(0) != xcb_pad {
  18607. xcb_tmp += uintptr(xcb_pad)
  18608. xcb_pad = uint32(0)
  18609. }
  18610. xcb_block_len = uint32(0)
  18611. return libc.Int32FromUint32(xcb_buffer_len)
  18612. }
  18613. 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) {
  18614. bp := tls.Alloc(80)
  18615. defer tls.Free(80)
  18616. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18617. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18618. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18619. _ = xcb_ret
  18620. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18621. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18622. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18623. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18624. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18625. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18626. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18627. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req210)))
  18628. return xcb_ret
  18629. }
  18630. var _xcb_req210 = Txcb_protocol_request_t{
  18631. Fcount: uint64(2),
  18632. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18633. }
  18634. 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) {
  18635. bp := tls.Alloc(80)
  18636. defer tls.Free(80)
  18637. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18638. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18639. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18640. _ = xcb_ret
  18641. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18642. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18643. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18644. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18645. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18646. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18647. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18648. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req211)))
  18649. return xcb_ret
  18650. }
  18651. var _xcb_req211 = Txcb_protocol_request_t{
  18652. Fcount: uint64(2),
  18653. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18654. }
  18655. func Xxcb_get_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18656. return R + libc.UintptrFromInt32(1)*32
  18657. }
  18658. func Xxcb_get_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18659. return libc.Int32FromUint32((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)
  18660. }
  18661. func Xxcb_get_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18662. var i Txcb_generic_iterator_t
  18663. _ = i
  18664. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)*4
  18665. i.Frem = 0
  18666. i.Findex = int32(int64(i.Fdata) - int64(R))
  18667. return i
  18668. }
  18669. func Xxcb_get_keyboard_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_mapping_cookie_t, e uintptr) (r uintptr) {
  18670. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18671. }
  18672. func Xxcb_change_keyboard_control_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18673. bp := tls.Alloc(16)
  18674. defer tls.Free(16)
  18675. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  18676. var xcb_out, xcb_tmp uintptr
  18677. var xcb_parts [9]Tiovec
  18678. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  18679. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  18680. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  18681. xcb_buffer_len = uint32(0)
  18682. xcb_align_to = uint32(0)
  18683. xcb_padding_offset = uint32(0)
  18684. xcb_pad = uint32(0)
  18685. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  18686. xcb_parts_idx = uint32(0)
  18687. xcb_block_len = uint32(0)
  18688. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18689. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18690. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  18691. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18692. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18693. xcb_parts_idx++
  18694. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18695. }
  18696. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18697. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18698. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  18699. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18700. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18701. xcb_parts_idx++
  18702. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18703. }
  18704. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18705. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18706. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  18707. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18708. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18709. xcb_parts_idx++
  18710. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18711. }
  18712. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18713. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18714. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  18715. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18716. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18717. xcb_parts_idx++
  18718. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18719. }
  18720. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18721. /* xcb_change_keyboard_control_value_list_t.led */
  18722. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  18723. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18724. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18725. xcb_parts_idx++
  18726. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18727. }
  18728. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18729. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18730. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  18731. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18732. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18733. xcb_parts_idx++
  18734. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18735. }
  18736. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18737. /* xcb_change_keyboard_control_value_list_t.key */
  18738. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  18739. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18740. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18741. xcb_parts_idx++
  18742. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18743. }
  18744. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18745. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18746. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  18747. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18748. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18749. xcb_parts_idx++
  18750. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18751. }
  18752. /* insert padding */
  18753. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18754. xcb_buffer_len += xcb_block_len + xcb_pad
  18755. if uint32(0) != xcb_pad {
  18756. xcb_parts[xcb_parts_idx].Fiov_base = bp
  18757. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  18758. xcb_parts_idx++
  18759. xcb_pad = uint32(0)
  18760. }
  18761. xcb_block_len = uint32(0)
  18762. xcb_padding_offset = uint32(0)
  18763. if libc.UintptrFromInt32(0) == xcb_out {
  18764. /* allocate memory */
  18765. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  18766. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  18767. }
  18768. xcb_tmp = xcb_out
  18769. i = uint32(0)
  18770. for {
  18771. if !(i < xcb_parts_idx) {
  18772. break
  18773. }
  18774. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  18775. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  18776. }
  18777. if uint64(0) != xcb_parts[i].Fiov_len {
  18778. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  18779. }
  18780. goto _1
  18781. _1:
  18782. ;
  18783. i++
  18784. }
  18785. return libc.Int32FromUint32(xcb_buffer_len)
  18786. }
  18787. func Xxcb_change_keyboard_control_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18788. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  18789. var xcb_tmp uintptr
  18790. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  18791. xcb_tmp = _buffer
  18792. xcb_buffer_len = uint32(0)
  18793. xcb_block_len = uint32(0)
  18794. xcb_pad = uint32(0)
  18795. xcb_align_to = uint32(0)
  18796. xcb_padding_offset = uint32(0)
  18797. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18798. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18799. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey_click_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18800. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18801. xcb_tmp += uintptr(4)
  18802. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18803. }
  18804. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18805. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18806. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18807. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18808. xcb_tmp += uintptr(4)
  18809. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18810. }
  18811. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18812. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18813. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_pitch = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18814. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18815. xcb_tmp += uintptr(4)
  18816. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18817. }
  18818. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18819. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18820. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_duration = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18821. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18822. xcb_tmp += uintptr(4)
  18823. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18824. }
  18825. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18826. /* xcb_change_keyboard_control_value_list_t.led */
  18827. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18828. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18829. xcb_tmp += uintptr(4)
  18830. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18831. }
  18832. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18833. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18834. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18835. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18836. xcb_tmp += uintptr(4)
  18837. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18838. }
  18839. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18840. /* xcb_change_keyboard_control_value_list_t.key */
  18841. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey = *(*Txcb_keycode32_t)(unsafe.Pointer(xcb_tmp))
  18842. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18843. xcb_tmp += uintptr(4)
  18844. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18845. }
  18846. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18847. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18848. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fauto_repeat_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18849. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18850. xcb_tmp += uintptr(4)
  18851. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18852. }
  18853. /* insert padding */
  18854. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18855. xcb_buffer_len += xcb_block_len + xcb_pad
  18856. if uint32(0) != xcb_pad {
  18857. xcb_tmp += uintptr(xcb_pad)
  18858. xcb_pad = uint32(0)
  18859. }
  18860. xcb_block_len = uint32(0)
  18861. xcb_padding_offset = uint32(0)
  18862. return libc.Int32FromUint32(xcb_buffer_len)
  18863. }
  18864. func Xxcb_change_keyboard_control_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  18865. bp := tls.Alloc(32)
  18866. defer tls.Free(32)
  18867. var _ /* _aux at bp+0 */ Txcb_change_keyboard_control_value_list_t
  18868. return Xxcb_change_keyboard_control_value_list_unpack(tls, _buffer, value_mask, bp)
  18869. }
  18870. func Xxcb_change_keyboard_control_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18871. var _aux, xcb_tmp uintptr
  18872. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18873. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18874. xcb_tmp = _buffer
  18875. _aux = _buffer
  18876. xcb_buffer_len = uint32(0)
  18877. xcb_block_len = uint32(0)
  18878. xcb_pad = uint32(0)
  18879. xcb_align_to = uint32(0)
  18880. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18881. xcb_tmp += uintptr(xcb_block_len)
  18882. xcb_buffer_len += xcb_block_len
  18883. xcb_block_len = uint32(0)
  18884. /* value_list */
  18885. 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))
  18886. xcb_tmp += uintptr(xcb_block_len)
  18887. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18888. /* insert padding */
  18889. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18890. xcb_buffer_len += xcb_block_len + xcb_pad
  18891. if uint32(0) != xcb_pad {
  18892. xcb_tmp += uintptr(xcb_pad)
  18893. xcb_pad = uint32(0)
  18894. }
  18895. xcb_block_len = uint32(0)
  18896. return libc.Int32FromUint32(xcb_buffer_len)
  18897. }
  18898. func Xxcb_change_keyboard_control_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18899. bp := tls.Alloc(96)
  18900. defer tls.Free(96)
  18901. var xcb_ret Txcb_void_cookie_t
  18902. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18903. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18904. _ = xcb_ret
  18905. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18906. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18907. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18908. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18909. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18910. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18911. /* xcb_change_keyboard_control_value_list_t value_list */
  18912. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18913. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18914. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req212)))
  18915. return xcb_ret
  18916. }
  18917. var _xcb_req212 = Txcb_protocol_request_t{
  18918. Fcount: uint64(3),
  18919. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18920. Fisvoid: uint8(1),
  18921. }
  18922. func Xxcb_change_keyboard_control(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18923. bp := tls.Alloc(96)
  18924. defer tls.Free(96)
  18925. var xcb_ret Txcb_void_cookie_t
  18926. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18927. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18928. _ = xcb_ret
  18929. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18930. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18931. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18932. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18933. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18934. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18935. /* xcb_change_keyboard_control_value_list_t value_list */
  18936. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  18937. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  18938. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req213)))
  18939. return xcb_ret
  18940. }
  18941. var _xcb_req213 = Txcb_protocol_request_t{
  18942. Fcount: uint64(3),
  18943. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18944. Fisvoid: uint8(1),
  18945. }
  18946. func Xxcb_change_keyboard_control_aux_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18947. bp := tls.Alloc(96)
  18948. defer tls.Free(96)
  18949. var xcb_ret Txcb_void_cookie_t
  18950. var _ /* xcb_aux0 at bp+88 */ uintptr
  18951. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18952. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18953. _ = xcb_ret
  18954. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  18955. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18956. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18957. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18958. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18959. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18960. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18961. /* xcb_change_keyboard_control_value_list_t value_list */
  18962. (*(*[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))
  18963. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  18964. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req214)))
  18965. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  18966. return xcb_ret
  18967. }
  18968. var _xcb_req214 = Txcb_protocol_request_t{
  18969. Fcount: uint64(3),
  18970. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18971. Fisvoid: uint8(1),
  18972. }
  18973. func Xxcb_change_keyboard_control_aux(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  18974. bp := tls.Alloc(96)
  18975. defer tls.Free(96)
  18976. var xcb_ret Txcb_void_cookie_t
  18977. var _ /* xcb_aux0 at bp+88 */ uintptr
  18978. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  18979. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  18980. _ = xcb_ret
  18981. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  18982. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  18983. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  18984. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  18985. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18986. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18987. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18988. /* xcb_change_keyboard_control_value_list_t value_list */
  18989. (*(*[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))
  18990. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  18991. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req215)))
  18992. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  18993. return xcb_ret
  18994. }
  18995. var _xcb_req215 = Txcb_protocol_request_t{
  18996. Fcount: uint64(3),
  18997. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  18998. Fisvoid: uint8(1),
  18999. }
  19000. func Xxcb_change_keyboard_control_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  19001. return R + libc.UintptrFromInt32(1)*8
  19002. }
  19003. func Xxcb_get_keyboard_control(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19004. bp := tls.Alloc(80)
  19005. defer tls.Free(80)
  19006. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19007. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19008. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19009. _ = xcb_ret
  19010. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19011. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19012. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19013. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19014. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19015. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req216)))
  19016. return xcb_ret
  19017. }
  19018. var _xcb_req216 = Txcb_protocol_request_t{
  19019. Fcount: uint64(2),
  19020. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19021. }
  19022. func Xxcb_get_keyboard_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19023. bp := tls.Alloc(80)
  19024. defer tls.Free(80)
  19025. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19026. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19027. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19028. _ = xcb_ret
  19029. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19030. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19031. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19032. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19033. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19034. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req217)))
  19035. return xcb_ret
  19036. }
  19037. var _xcb_req217 = Txcb_protocol_request_t{
  19038. Fcount: uint64(2),
  19039. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19040. }
  19041. func Xxcb_get_keyboard_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_control_cookie_t, e uintptr) (r uintptr) {
  19042. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19043. }
  19044. func Xxcb_bell_checked(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19045. bp := tls.Alloc(80)
  19046. defer tls.Free(80)
  19047. var xcb_ret Txcb_void_cookie_t
  19048. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19049. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19050. _ = xcb_ret
  19051. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19052. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19053. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19054. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19055. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19056. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req218)))
  19057. return xcb_ret
  19058. }
  19059. var _xcb_req218 = Txcb_protocol_request_t{
  19060. Fcount: uint64(2),
  19061. Fopcode: uint8(m_XCB_BELL),
  19062. Fisvoid: uint8(1),
  19063. }
  19064. func Xxcb_bell(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19065. bp := tls.Alloc(80)
  19066. defer tls.Free(80)
  19067. var xcb_ret Txcb_void_cookie_t
  19068. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19069. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19070. _ = xcb_ret
  19071. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19072. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19073. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19074. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19075. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19076. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req219)))
  19077. return xcb_ret
  19078. }
  19079. var _xcb_req219 = Txcb_protocol_request_t{
  19080. Fcount: uint64(2),
  19081. Fopcode: uint8(m_XCB_BELL),
  19082. Fisvoid: uint8(1),
  19083. }
  19084. 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) {
  19085. bp := tls.Alloc(80)
  19086. defer tls.Free(80)
  19087. var xcb_ret Txcb_void_cookie_t
  19088. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19089. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19090. _ = xcb_ret
  19091. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19092. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19093. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19094. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19095. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19096. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19097. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19098. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19099. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19100. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19101. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req220)))
  19102. return xcb_ret
  19103. }
  19104. var _xcb_req220 = Txcb_protocol_request_t{
  19105. Fcount: uint64(2),
  19106. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19107. Fisvoid: uint8(1),
  19108. }
  19109. 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) {
  19110. bp := tls.Alloc(80)
  19111. defer tls.Free(80)
  19112. var xcb_ret Txcb_void_cookie_t
  19113. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19114. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19115. _ = xcb_ret
  19116. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19117. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19118. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19119. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19120. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19121. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19122. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19126. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req221)))
  19127. return xcb_ret
  19128. }
  19129. var _xcb_req221 = Txcb_protocol_request_t{
  19130. Fcount: uint64(2),
  19131. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19132. Fisvoid: uint8(1),
  19133. }
  19134. func Xxcb_get_pointer_control(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19135. bp := tls.Alloc(80)
  19136. defer tls.Free(80)
  19137. var xcb_ret Txcb_get_pointer_control_cookie_t
  19138. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19139. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19140. _ = xcb_ret
  19141. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19143. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19144. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19145. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19146. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req222)))
  19147. return xcb_ret
  19148. }
  19149. var _xcb_req222 = Txcb_protocol_request_t{
  19150. Fcount: uint64(2),
  19151. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19152. }
  19153. func Xxcb_get_pointer_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19154. bp := tls.Alloc(80)
  19155. defer tls.Free(80)
  19156. var xcb_ret Txcb_get_pointer_control_cookie_t
  19157. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19158. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19159. _ = xcb_ret
  19160. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19164. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19165. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req223)))
  19166. return xcb_ret
  19167. }
  19168. var _xcb_req223 = Txcb_protocol_request_t{
  19169. Fcount: uint64(2),
  19170. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19171. }
  19172. func Xxcb_get_pointer_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_control_cookie_t, e uintptr) (r uintptr) {
  19173. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19174. }
  19175. 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) {
  19176. bp := tls.Alloc(80)
  19177. defer tls.Free(80)
  19178. var xcb_ret Txcb_void_cookie_t
  19179. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19180. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19181. _ = xcb_ret
  19182. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19183. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19184. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19185. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19186. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19187. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19188. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19189. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19190. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19191. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req224)))
  19192. return xcb_ret
  19193. }
  19194. var _xcb_req224 = Txcb_protocol_request_t{
  19195. Fcount: uint64(2),
  19196. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19197. Fisvoid: uint8(1),
  19198. }
  19199. 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) {
  19200. bp := tls.Alloc(80)
  19201. defer tls.Free(80)
  19202. var xcb_ret Txcb_void_cookie_t
  19203. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19204. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19205. _ = xcb_ret
  19206. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19207. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19208. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19209. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19210. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19213. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19214. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19215. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req225)))
  19216. return xcb_ret
  19217. }
  19218. var _xcb_req225 = Txcb_protocol_request_t{
  19219. Fcount: uint64(2),
  19220. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19221. Fisvoid: uint8(1),
  19222. }
  19223. func Xxcb_get_screen_saver(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19224. bp := tls.Alloc(80)
  19225. defer tls.Free(80)
  19226. var xcb_ret Txcb_get_screen_saver_cookie_t
  19227. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19228. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19229. _ = xcb_ret
  19230. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19231. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19232. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19233. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19234. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19235. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req226)))
  19236. return xcb_ret
  19237. }
  19238. var _xcb_req226 = Txcb_protocol_request_t{
  19239. Fcount: uint64(2),
  19240. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19241. }
  19242. func Xxcb_get_screen_saver_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19243. bp := tls.Alloc(80)
  19244. defer tls.Free(80)
  19245. var xcb_ret Txcb_get_screen_saver_cookie_t
  19246. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19247. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19248. _ = xcb_ret
  19249. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19250. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19251. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19252. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19253. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19254. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req227)))
  19255. return xcb_ret
  19256. }
  19257. var _xcb_req227 = Txcb_protocol_request_t{
  19258. Fcount: uint64(2),
  19259. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19260. }
  19261. func Xxcb_get_screen_saver_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_screen_saver_cookie_t, e uintptr) (r uintptr) {
  19262. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19263. }
  19264. func Xxcb_change_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19265. var _aux, xcb_tmp uintptr
  19266. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19267. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19268. xcb_tmp = _buffer
  19269. _aux = _buffer
  19270. xcb_buffer_len = uint32(0)
  19271. xcb_block_len = uint32(0)
  19272. xcb_pad = uint32(0)
  19273. xcb_align_to = uint32(0)
  19274. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  19275. xcb_tmp += uintptr(xcb_block_len)
  19276. xcb_buffer_len += xcb_block_len
  19277. xcb_block_len = uint32(0)
  19278. /* address */
  19279. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_hosts_request_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19280. xcb_tmp += uintptr(xcb_block_len)
  19281. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19282. /* insert padding */
  19283. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19284. xcb_buffer_len += xcb_block_len + xcb_pad
  19285. if uint32(0) != xcb_pad {
  19286. xcb_tmp += uintptr(xcb_pad)
  19287. xcb_pad = uint32(0)
  19288. }
  19289. xcb_block_len = uint32(0)
  19290. return libc.Int32FromUint32(xcb_buffer_len)
  19291. }
  19292. 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) {
  19293. bp := tls.Alloc(112)
  19294. defer tls.Free(112)
  19295. var xcb_ret Txcb_void_cookie_t
  19296. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19297. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19298. _ = xcb_ret
  19299. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19300. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19301. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19302. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19303. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19304. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19305. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19306. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19307. /* uint8_t address */
  19308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19309. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19310. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19311. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19312. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req228)))
  19313. return xcb_ret
  19314. }
  19315. var _xcb_req228 = Txcb_protocol_request_t{
  19316. Fcount: uint64(4),
  19317. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19318. Fisvoid: uint8(1),
  19319. }
  19320. 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) {
  19321. bp := tls.Alloc(112)
  19322. defer tls.Free(112)
  19323. var xcb_ret Txcb_void_cookie_t
  19324. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19325. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19326. _ = xcb_ret
  19327. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19328. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19329. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19330. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19331. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19332. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19333. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19334. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19335. /* uint8_t address */
  19336. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19337. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19338. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19339. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19340. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req229)))
  19341. return xcb_ret
  19342. }
  19343. var _xcb_req229 = Txcb_protocol_request_t{
  19344. Fcount: uint64(4),
  19345. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19346. Fisvoid: uint8(1),
  19347. }
  19348. func Xxcb_change_hosts_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19349. return R + libc.UintptrFromInt32(1)*8
  19350. }
  19351. func Xxcb_change_hosts_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19352. return libc.Int32FromUint16((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19353. }
  19354. func Xxcb_change_hosts_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19355. var i Txcb_generic_iterator_t
  19356. _ = i
  19357. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19358. i.Frem = 0
  19359. i.Findex = int32(int64(i.Fdata) - int64(R))
  19360. return i
  19361. }
  19362. func Xxcb_host_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19363. var _aux, xcb_tmp uintptr
  19364. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19365. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19366. xcb_tmp = _buffer
  19367. _aux = _buffer
  19368. xcb_buffer_len = uint32(0)
  19369. xcb_block_len = uint32(0)
  19370. xcb_pad = uint32(0)
  19371. xcb_align_to = uint32(0)
  19372. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19373. xcb_tmp += uintptr(xcb_block_len)
  19374. xcb_buffer_len += xcb_block_len
  19375. xcb_block_len = uint32(0)
  19376. /* address */
  19377. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_host_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19378. xcb_tmp += uintptr(xcb_block_len)
  19379. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19380. xcb_align_to = uint32(4)
  19381. /* insert padding */
  19382. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19383. xcb_buffer_len += xcb_block_len + xcb_pad
  19384. if uint32(0) != xcb_pad {
  19385. xcb_tmp += uintptr(xcb_pad)
  19386. xcb_pad = uint32(0)
  19387. }
  19388. xcb_block_len = uint32(0)
  19389. /* insert padding */
  19390. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19391. xcb_buffer_len += xcb_block_len + xcb_pad
  19392. if uint32(0) != xcb_pad {
  19393. xcb_tmp += uintptr(xcb_pad)
  19394. xcb_pad = uint32(0)
  19395. }
  19396. xcb_block_len = uint32(0)
  19397. return libc.Int32FromUint32(xcb_buffer_len)
  19398. }
  19399. func Xxcb_host_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19400. return R + libc.UintptrFromInt32(1)*4
  19401. }
  19402. func Xxcb_host_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19403. return libc.Int32FromUint16((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19404. }
  19405. func Xxcb_host_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19406. var i Txcb_generic_iterator_t
  19407. _ = i
  19408. i.Fdata = R + libc.UintptrFromInt32(1)*4 + uintptr((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19409. i.Frem = 0
  19410. i.Findex = int32(int64(i.Fdata) - int64(R))
  19411. return i
  19412. }
  19413. func Xxcb_host_next(tls *libc.TLS, i uintptr) {
  19414. var R uintptr
  19415. var child Txcb_generic_iterator_t
  19416. _, _ = R, child
  19417. R = (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata
  19418. child.Fdata = R + uintptr(Xxcb_host_sizeof(tls, R))
  19419. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata))
  19420. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Frem--
  19421. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  19422. }
  19423. func Xxcb_host_end(tls *libc.TLS, _i Txcb_host_iterator_t) (r Txcb_generic_iterator_t) {
  19424. bp := tls.Alloc(16)
  19425. defer tls.Free(16)
  19426. *(*Txcb_host_iterator_t)(unsafe.Pointer(bp)) = _i
  19427. var ret Txcb_generic_iterator_t
  19428. _ = ret
  19429. for (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  19430. Xxcb_host_next(tls, bp)
  19431. }
  19432. ret.Fdata = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Fdata
  19433. ret.Frem = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem
  19434. ret.Findex = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Findex
  19435. return ret
  19436. }
  19437. func Xxcb_list_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19438. var _aux, xcb_tmp uintptr
  19439. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  19440. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  19441. xcb_tmp = _buffer
  19442. _aux = _buffer
  19443. xcb_buffer_len = uint32(0)
  19444. xcb_block_len = uint32(0)
  19445. xcb_pad = uint32(0)
  19446. xcb_align_to = uint32(0)
  19447. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19448. xcb_tmp += uintptr(xcb_block_len)
  19449. xcb_buffer_len += xcb_block_len
  19450. xcb_block_len = uint32(0)
  19451. /* hosts */
  19452. i = uint32(0)
  19453. for {
  19454. if !(i < uint32((*Txcb_list_hosts_reply_t)(unsafe.Pointer(_aux)).Fhosts_len)) {
  19455. break
  19456. }
  19457. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_host_sizeof(tls, xcb_tmp))
  19458. xcb_block_len += xcb_tmp_len
  19459. xcb_tmp += uintptr(xcb_tmp_len)
  19460. goto _1
  19461. _1:
  19462. ;
  19463. i++
  19464. }
  19465. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  19466. /* insert padding */
  19467. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19468. xcb_buffer_len += xcb_block_len + xcb_pad
  19469. if uint32(0) != xcb_pad {
  19470. xcb_tmp += uintptr(xcb_pad)
  19471. xcb_pad = uint32(0)
  19472. }
  19473. xcb_block_len = uint32(0)
  19474. return libc.Int32FromUint32(xcb_buffer_len)
  19475. }
  19476. func Xxcb_list_hosts(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19477. bp := tls.Alloc(80)
  19478. defer tls.Free(80)
  19479. var xcb_ret Txcb_list_hosts_cookie_t
  19480. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19481. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19482. _ = xcb_ret
  19483. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19484. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19485. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19486. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19487. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19488. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req230)))
  19489. return xcb_ret
  19490. }
  19491. var _xcb_req230 = Txcb_protocol_request_t{
  19492. Fcount: uint64(2),
  19493. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19494. }
  19495. func Xxcb_list_hosts_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19496. bp := tls.Alloc(80)
  19497. defer tls.Free(80)
  19498. var xcb_ret Txcb_list_hosts_cookie_t
  19499. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19500. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19501. _ = xcb_ret
  19502. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19503. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19504. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19505. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19506. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19507. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req231)))
  19508. return xcb_ret
  19509. }
  19510. var _xcb_req231 = Txcb_protocol_request_t{
  19511. Fcount: uint64(2),
  19512. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19513. }
  19514. func Xxcb_list_hosts_hosts_length(tls *libc.TLS, R uintptr) (r int32) {
  19515. return libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19516. }
  19517. func Xxcb_list_hosts_hosts_iterator(tls *libc.TLS, R uintptr) (r Txcb_host_iterator_t) {
  19518. var i Txcb_host_iterator_t
  19519. _ = i
  19520. i.Fdata = R + libc.UintptrFromInt32(1)*32
  19521. i.Frem = libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19522. i.Findex = int32(int64(i.Fdata) - int64(R))
  19523. return i
  19524. }
  19525. func Xxcb_list_hosts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_hosts_cookie_t, e uintptr) (r uintptr) {
  19526. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19527. }
  19528. func Xxcb_set_access_control_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19529. bp := tls.Alloc(80)
  19530. defer tls.Free(80)
  19531. var xcb_ret Txcb_void_cookie_t
  19532. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19533. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19534. _ = xcb_ret
  19535. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19536. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19537. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19538. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19539. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19540. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req232)))
  19541. return xcb_ret
  19542. }
  19543. var _xcb_req232 = Txcb_protocol_request_t{
  19544. Fcount: uint64(2),
  19545. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19546. Fisvoid: uint8(1),
  19547. }
  19548. func Xxcb_set_access_control(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19549. bp := tls.Alloc(80)
  19550. defer tls.Free(80)
  19551. var xcb_ret Txcb_void_cookie_t
  19552. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19553. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19554. _ = xcb_ret
  19555. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19556. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19557. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19558. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19559. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19560. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req233)))
  19561. return xcb_ret
  19562. }
  19563. var _xcb_req233 = Txcb_protocol_request_t{
  19564. Fcount: uint64(2),
  19565. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19566. Fisvoid: uint8(1),
  19567. }
  19568. func Xxcb_set_close_down_mode_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19569. bp := tls.Alloc(80)
  19570. defer tls.Free(80)
  19571. var xcb_ret Txcb_void_cookie_t
  19572. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19573. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19574. _ = xcb_ret
  19575. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19576. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19577. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19578. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19579. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19580. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req234)))
  19581. return xcb_ret
  19582. }
  19583. var _xcb_req234 = Txcb_protocol_request_t{
  19584. Fcount: uint64(2),
  19585. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19586. Fisvoid: uint8(1),
  19587. }
  19588. func Xxcb_set_close_down_mode(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19589. bp := tls.Alloc(80)
  19590. defer tls.Free(80)
  19591. var xcb_ret Txcb_void_cookie_t
  19592. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19593. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19594. _ = xcb_ret
  19595. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19596. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19597. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19598. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19599. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19600. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req235)))
  19601. return xcb_ret
  19602. }
  19603. var _xcb_req235 = Txcb_protocol_request_t{
  19604. Fcount: uint64(2),
  19605. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19606. Fisvoid: uint8(1),
  19607. }
  19608. func Xxcb_kill_client_checked(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19609. bp := tls.Alloc(80)
  19610. defer tls.Free(80)
  19611. var xcb_ret Txcb_void_cookie_t
  19612. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19613. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19614. _ = xcb_ret
  19615. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19616. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19617. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19618. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19619. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19620. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19621. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req236)))
  19622. return xcb_ret
  19623. }
  19624. var _xcb_req236 = Txcb_protocol_request_t{
  19625. Fcount: uint64(2),
  19626. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19627. Fisvoid: uint8(1),
  19628. }
  19629. func Xxcb_kill_client(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19630. bp := tls.Alloc(80)
  19631. defer tls.Free(80)
  19632. var xcb_ret Txcb_void_cookie_t
  19633. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19634. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19635. _ = xcb_ret
  19636. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19637. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19638. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19639. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19640. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19641. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19642. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req237)))
  19643. return xcb_ret
  19644. }
  19645. var _xcb_req237 = Txcb_protocol_request_t{
  19646. Fcount: uint64(2),
  19647. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19648. Fisvoid: uint8(1),
  19649. }
  19650. func Xxcb_rotate_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19651. var _aux, xcb_tmp uintptr
  19652. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19653. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19654. xcb_tmp = _buffer
  19655. _aux = _buffer
  19656. xcb_buffer_len = uint32(0)
  19657. xcb_block_len = uint32(0)
  19658. xcb_pad = uint32(0)
  19659. xcb_align_to = uint32(0)
  19660. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  19661. xcb_tmp += uintptr(xcb_block_len)
  19662. xcb_buffer_len += xcb_block_len
  19663. xcb_block_len = uint32(0)
  19664. /* atoms */
  19665. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_rotate_properties_request_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  19666. xcb_tmp += uintptr(xcb_block_len)
  19667. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  19668. /* insert padding */
  19669. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19670. xcb_buffer_len += xcb_block_len + xcb_pad
  19671. if uint32(0) != xcb_pad {
  19672. xcb_tmp += uintptr(xcb_pad)
  19673. xcb_pad = uint32(0)
  19674. }
  19675. xcb_block_len = uint32(0)
  19676. return libc.Int32FromUint32(xcb_buffer_len)
  19677. }
  19678. 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) {
  19679. bp := tls.Alloc(112)
  19680. defer tls.Free(112)
  19681. var xcb_ret Txcb_void_cookie_t
  19682. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19683. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19684. _ = xcb_ret
  19685. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19686. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19687. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19688. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19689. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19690. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19691. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19692. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19693. /* xcb_atom_t atoms */
  19694. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19695. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19696. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19697. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19698. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req238)))
  19699. return xcb_ret
  19700. }
  19701. var _xcb_req238 = Txcb_protocol_request_t{
  19702. Fcount: uint64(4),
  19703. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19704. Fisvoid: uint8(1),
  19705. }
  19706. 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) {
  19707. bp := tls.Alloc(112)
  19708. defer tls.Free(112)
  19709. var xcb_ret Txcb_void_cookie_t
  19710. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19711. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19712. _ = xcb_ret
  19713. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19714. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19715. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19716. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19717. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19718. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19719. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19720. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19721. /* xcb_atom_t atoms */
  19722. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19723. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19724. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19725. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19726. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req239)))
  19727. return xcb_ret
  19728. }
  19729. var _xcb_req239 = Txcb_protocol_request_t{
  19730. Fcount: uint64(4),
  19731. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19732. Fisvoid: uint8(1),
  19733. }
  19734. func Xxcb_rotate_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  19735. return R + libc.UintptrFromInt32(1)*12
  19736. }
  19737. func Xxcb_rotate_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  19738. return libc.Int32FromUint16((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)
  19739. }
  19740. func Xxcb_rotate_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19741. var i Txcb_generic_iterator_t
  19742. _ = i
  19743. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)*4
  19744. i.Frem = 0
  19745. i.Findex = int32(int64(i.Fdata) - int64(R))
  19746. return i
  19747. }
  19748. func Xxcb_force_screen_saver_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19749. bp := tls.Alloc(80)
  19750. defer tls.Free(80)
  19751. var xcb_ret Txcb_void_cookie_t
  19752. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19753. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19754. _ = xcb_ret
  19755. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19756. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19757. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19758. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19759. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19760. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req240)))
  19761. return xcb_ret
  19762. }
  19763. var _xcb_req240 = Txcb_protocol_request_t{
  19764. Fcount: uint64(2),
  19765. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19766. Fisvoid: uint8(1),
  19767. }
  19768. func Xxcb_force_screen_saver(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19769. bp := tls.Alloc(80)
  19770. defer tls.Free(80)
  19771. var xcb_ret Txcb_void_cookie_t
  19772. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19773. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19774. _ = xcb_ret
  19775. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19777. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19778. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19779. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19780. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req241)))
  19781. return xcb_ret
  19782. }
  19783. var _xcb_req241 = Txcb_protocol_request_t{
  19784. Fcount: uint64(2),
  19785. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19786. Fisvoid: uint8(1),
  19787. }
  19788. func Xxcb_set_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19789. var _aux, xcb_tmp uintptr
  19790. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19791. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19792. xcb_tmp = _buffer
  19793. _aux = _buffer
  19794. xcb_buffer_len = uint32(0)
  19795. xcb_block_len = uint32(0)
  19796. xcb_pad = uint32(0)
  19797. xcb_align_to = uint32(0)
  19798. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19799. xcb_tmp += uintptr(xcb_block_len)
  19800. xcb_buffer_len += xcb_block_len
  19801. xcb_block_len = uint32(0)
  19802. /* map */
  19803. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19804. xcb_tmp += uintptr(xcb_block_len)
  19805. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19806. /* insert padding */
  19807. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19808. xcb_buffer_len += xcb_block_len + xcb_pad
  19809. if uint32(0) != xcb_pad {
  19810. xcb_tmp += uintptr(xcb_pad)
  19811. xcb_pad = uint32(0)
  19812. }
  19813. xcb_block_len = uint32(0)
  19814. return libc.Int32FromUint32(xcb_buffer_len)
  19815. }
  19816. func Xxcb_set_pointer_mapping(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19817. bp := tls.Alloc(112)
  19818. defer tls.Free(112)
  19819. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19820. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19821. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19822. _ = xcb_ret
  19823. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19824. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19825. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19826. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19827. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19828. /* uint8_t map */
  19829. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19830. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19831. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19832. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19833. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req242)))
  19834. return xcb_ret
  19835. }
  19836. var _xcb_req242 = Txcb_protocol_request_t{
  19837. Fcount: uint64(4),
  19838. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19839. }
  19840. func Xxcb_set_pointer_mapping_unchecked(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19841. bp := tls.Alloc(112)
  19842. defer tls.Free(112)
  19843. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19844. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19845. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19846. _ = xcb_ret
  19847. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19848. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19849. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19850. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19851. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19852. /* uint8_t map */
  19853. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19854. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19855. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19856. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19857. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req243)))
  19858. return xcb_ret
  19859. }
  19860. var _xcb_req243 = Txcb_protocol_request_t{
  19861. Fcount: uint64(4),
  19862. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19863. }
  19864. func Xxcb_set_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19865. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19866. }
  19867. func Xxcb_get_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19868. var _aux, xcb_tmp uintptr
  19869. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19870. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19871. xcb_tmp = _buffer
  19872. _aux = _buffer
  19873. xcb_buffer_len = uint32(0)
  19874. xcb_block_len = uint32(0)
  19875. xcb_pad = uint32(0)
  19876. xcb_align_to = uint32(0)
  19877. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19878. xcb_tmp += uintptr(xcb_block_len)
  19879. xcb_buffer_len += xcb_block_len
  19880. xcb_block_len = uint32(0)
  19881. /* map */
  19882. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19883. xcb_tmp += uintptr(xcb_block_len)
  19884. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19885. /* insert padding */
  19886. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19887. xcb_buffer_len += xcb_block_len + xcb_pad
  19888. if uint32(0) != xcb_pad {
  19889. xcb_tmp += uintptr(xcb_pad)
  19890. xcb_pad = uint32(0)
  19891. }
  19892. xcb_block_len = uint32(0)
  19893. return libc.Int32FromUint32(xcb_buffer_len)
  19894. }
  19895. func Xxcb_get_pointer_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19896. bp := tls.Alloc(80)
  19897. defer tls.Free(80)
  19898. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19899. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19900. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19901. _ = xcb_ret
  19902. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19903. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19904. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19905. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19906. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19907. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req244)))
  19908. return xcb_ret
  19909. }
  19910. var _xcb_req244 = Txcb_protocol_request_t{
  19911. Fcount: uint64(2),
  19912. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19913. }
  19914. func Xxcb_get_pointer_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  19915. bp := tls.Alloc(80)
  19916. defer tls.Free(80)
  19917. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  19918. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  19919. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19920. _ = xcb_ret
  19921. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19922. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19923. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19924. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19925. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19926. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req245)))
  19927. return xcb_ret
  19928. }
  19929. var _xcb_req245 = Txcb_protocol_request_t{
  19930. Fcount: uint64(2),
  19931. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  19932. }
  19933. func Xxcb_get_pointer_mapping_map(tls *libc.TLS, R uintptr) (r uintptr) {
  19934. return R + libc.UintptrFromInt32(1)*32
  19935. }
  19936. func Xxcb_get_pointer_mapping_map_length(tls *libc.TLS, R uintptr) (r int32) {
  19937. return libc.Int32FromUint8((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  19938. }
  19939. func Xxcb_get_pointer_mapping_map_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19940. var i Txcb_generic_iterator_t
  19941. _ = i
  19942. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  19943. i.Frem = 0
  19944. i.Findex = int32(int64(i.Fdata) - int64(R))
  19945. return i
  19946. }
  19947. func Xxcb_get_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  19948. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19949. }
  19950. func Xxcb_set_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19951. var _aux, xcb_tmp uintptr
  19952. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19953. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19954. xcb_tmp = _buffer
  19955. _aux = _buffer
  19956. xcb_buffer_len = uint32(0)
  19957. xcb_block_len = uint32(0)
  19958. xcb_pad = uint32(0)
  19959. xcb_align_to = uint32(0)
  19960. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19961. xcb_tmp += uintptr(xcb_block_len)
  19962. xcb_buffer_len += xcb_block_len
  19963. xcb_block_len = uint32(0)
  19964. /* keycodes */
  19965. 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))
  19966. xcb_tmp += uintptr(xcb_block_len)
  19967. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19968. /* insert padding */
  19969. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19970. xcb_buffer_len += xcb_block_len + xcb_pad
  19971. if uint32(0) != xcb_pad {
  19972. xcb_tmp += uintptr(xcb_pad)
  19973. xcb_pad = uint32(0)
  19974. }
  19975. xcb_block_len = uint32(0)
  19976. return libc.Int32FromUint32(xcb_buffer_len)
  19977. }
  19978. func Xxcb_set_modifier_mapping(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
  19979. bp := tls.Alloc(112)
  19980. defer tls.Free(112)
  19981. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  19982. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  19983. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19984. _ = xcb_ret
  19985. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  19986. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19987. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19988. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19989. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19990. /* xcb_keycode_t keycodes */
  19991. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  19992. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  19993. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19994. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19995. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req246)))
  19996. return xcb_ret
  19997. }
  19998. var _xcb_req246 = Txcb_protocol_request_t{
  19999. Fcount: uint64(4),
  20000. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20001. }
  20002. 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) {
  20003. bp := tls.Alloc(112)
  20004. defer tls.Free(112)
  20005. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20006. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  20007. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20008. _ = xcb_ret
  20009. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  20010. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  20011. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20012. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20013. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20014. /* xcb_keycode_t keycodes */
  20015. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20016. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  20017. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20018. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  20019. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req247)))
  20020. return xcb_ret
  20021. }
  20022. var _xcb_req247 = Txcb_protocol_request_t{
  20023. Fcount: uint64(4),
  20024. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20025. }
  20026. func Xxcb_set_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20027. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20028. }
  20029. func Xxcb_get_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20030. var _aux, xcb_tmp uintptr
  20031. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20032. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20033. xcb_tmp = _buffer
  20034. _aux = _buffer
  20035. xcb_buffer_len = uint32(0)
  20036. xcb_block_len = uint32(0)
  20037. xcb_pad = uint32(0)
  20038. xcb_align_to = uint32(0)
  20039. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20040. xcb_tmp += uintptr(xcb_block_len)
  20041. xcb_buffer_len += xcb_block_len
  20042. xcb_block_len = uint32(0)
  20043. /* keycodes */
  20044. 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))
  20045. xcb_tmp += uintptr(xcb_block_len)
  20046. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  20047. /* insert padding */
  20048. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20049. xcb_buffer_len += xcb_block_len + xcb_pad
  20050. if uint32(0) != xcb_pad {
  20051. xcb_tmp += uintptr(xcb_pad)
  20052. xcb_pad = uint32(0)
  20053. }
  20054. xcb_block_len = uint32(0)
  20055. return libc.Int32FromUint32(xcb_buffer_len)
  20056. }
  20057. func Xxcb_get_modifier_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20058. bp := tls.Alloc(80)
  20059. defer tls.Free(80)
  20060. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20061. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20062. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20063. _ = xcb_ret
  20064. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20066. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20067. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20068. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20069. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req248)))
  20070. return xcb_ret
  20071. }
  20072. var _xcb_req248 = Txcb_protocol_request_t{
  20073. Fcount: uint64(2),
  20074. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20075. }
  20076. func Xxcb_get_modifier_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20077. bp := tls.Alloc(80)
  20078. defer tls.Free(80)
  20079. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20080. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20081. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20082. _ = xcb_ret
  20083. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20084. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20085. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20086. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20087. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20088. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req249)))
  20089. return xcb_ret
  20090. }
  20091. var _xcb_req249 = Txcb_protocol_request_t{
  20092. Fcount: uint64(2),
  20093. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20094. }
  20095. func Xxcb_get_modifier_mapping_keycodes(tls *libc.TLS, R uintptr) (r uintptr) {
  20096. return R + libc.UintptrFromInt32(1)*32
  20097. }
  20098. func Xxcb_get_modifier_mapping_keycodes_length(tls *libc.TLS, R uintptr) (r int32) {
  20099. return libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier) * int32(8)
  20100. }
  20101. func Xxcb_get_modifier_mapping_keycodes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20102. var i Txcb_generic_iterator_t
  20103. _ = i
  20104. 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))
  20105. i.Frem = 0
  20106. i.Findex = int32(int64(i.Fdata) - int64(R))
  20107. return i
  20108. }
  20109. func Xxcb_get_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20110. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20111. }
  20112. func Xxcb_no_operation_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20113. bp := tls.Alloc(80)
  20114. defer tls.Free(80)
  20115. var xcb_ret Txcb_void_cookie_t
  20116. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20117. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20118. _ = xcb_ret
  20119. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20120. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20121. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20122. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20124. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req250)))
  20125. return xcb_ret
  20126. }
  20127. var _xcb_req250 = Txcb_protocol_request_t{
  20128. Fcount: uint64(2),
  20129. Fopcode: uint8(m_XCB_NO_OPERATION),
  20130. Fisvoid: uint8(1),
  20131. }
  20132. func Xxcb_no_operation(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20133. bp := tls.Alloc(80)
  20134. defer tls.Free(80)
  20135. var xcb_ret Txcb_void_cookie_t
  20136. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20137. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20138. _ = xcb_ret
  20139. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20142. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20143. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20144. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req251)))
  20145. return xcb_ret
  20146. }
  20147. var _xcb_req251 = Txcb_protocol_request_t{
  20148. Fcount: uint64(2),
  20149. Fopcode: uint8(m_XCB_NO_OPERATION),
  20150. Fisvoid: uint8(1),
  20151. }
  20152. func Xxcb_big_requests_enable(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20153. bp := tls.Alloc(80)
  20154. defer tls.Free(80)
  20155. var xcb_ret Txcb_big_requests_enable_cookie_t
  20156. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20157. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20158. _ = xcb_ret
  20159. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20160. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20163. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req252)))
  20164. return xcb_ret
  20165. }
  20166. var _xcb_req252 = Txcb_protocol_request_t{
  20167. Fcount: uint64(2),
  20168. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20169. }
  20170. func Xxcb_big_requests_enable_unchecked(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20171. bp := tls.Alloc(80)
  20172. defer tls.Free(80)
  20173. var xcb_ret Txcb_big_requests_enable_cookie_t
  20174. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20175. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20176. _ = xcb_ret
  20177. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20178. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20180. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20181. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req253)))
  20182. return xcb_ret
  20183. }
  20184. var _xcb_req253 = Txcb_protocol_request_t{
  20185. Fcount: uint64(2),
  20186. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20187. }
  20188. func Xxcb_big_requests_enable_reply(tls *libc.TLS, c uintptr, cookie Txcb_big_requests_enable_cookie_t, e uintptr) (r uintptr) {
  20189. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20190. }
  20191. 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) {
  20192. bp := tls.Alloc(80)
  20193. defer tls.Free(80)
  20194. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20195. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20196. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20197. _ = xcb_ret
  20198. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20199. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20201. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20202. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20203. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20204. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req254)))
  20205. return xcb_ret
  20206. }
  20207. var _xcb_req254 = Txcb_protocol_request_t{
  20208. Fcount: uint64(2),
  20209. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20210. }
  20211. 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) {
  20212. bp := tls.Alloc(80)
  20213. defer tls.Free(80)
  20214. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20215. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20216. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20217. _ = xcb_ret
  20218. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20219. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20221. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20222. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20223. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20224. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req255)))
  20225. return xcb_ret
  20226. }
  20227. var _xcb_req255 = Txcb_protocol_request_t{
  20228. Fcount: uint64(2),
  20229. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20230. }
  20231. func Xxcb_xc_misc_get_version_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_version_cookie_t, e uintptr) (r uintptr) {
  20232. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20233. }
  20234. func Xxcb_xc_misc_get_xid_range(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20235. bp := tls.Alloc(80)
  20236. defer tls.Free(80)
  20237. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20238. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20239. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20240. _ = xcb_ret
  20241. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20242. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20243. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20244. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20245. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req256)))
  20246. return xcb_ret
  20247. }
  20248. var _xcb_req256 = Txcb_protocol_request_t{
  20249. Fcount: uint64(2),
  20250. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20251. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20252. }
  20253. func Xxcb_xc_misc_get_xid_range_unchecked(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20254. bp := tls.Alloc(80)
  20255. defer tls.Free(80)
  20256. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20257. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20258. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20259. _ = xcb_ret
  20260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20262. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20263. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20264. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req257)))
  20265. return xcb_ret
  20266. }
  20267. var _xcb_req257 = Txcb_protocol_request_t{
  20268. Fcount: uint64(2),
  20269. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20270. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20271. }
  20272. 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) {
  20273. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20274. }
  20275. func Xxcb_xc_misc_get_xid_list_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20276. var _aux, xcb_tmp uintptr
  20277. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20278. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20279. xcb_tmp = _buffer
  20280. _aux = _buffer
  20281. xcb_buffer_len = uint32(0)
  20282. xcb_block_len = uint32(0)
  20283. xcb_pad = uint32(0)
  20284. xcb_align_to = uint32(0)
  20285. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20286. xcb_tmp += uintptr(xcb_block_len)
  20287. xcb_buffer_len += xcb_block_len
  20288. xcb_block_len = uint32(0)
  20289. /* ids */
  20290. 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))
  20291. xcb_tmp += uintptr(xcb_block_len)
  20292. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  20293. /* insert padding */
  20294. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20295. xcb_buffer_len += xcb_block_len + xcb_pad
  20296. if uint32(0) != xcb_pad {
  20297. xcb_tmp += uintptr(xcb_pad)
  20298. xcb_pad = uint32(0)
  20299. }
  20300. xcb_block_len = uint32(0)
  20301. return libc.Int32FromUint32(xcb_buffer_len)
  20302. }
  20303. func Xxcb_xc_misc_get_xid_list(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
  20304. bp := tls.Alloc(80)
  20305. defer tls.Free(80)
  20306. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20307. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20308. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20309. _ = xcb_ret
  20310. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20313. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20314. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20315. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req258)))
  20316. return xcb_ret
  20317. }
  20318. var _xcb_req258 = Txcb_protocol_request_t{
  20319. Fcount: uint64(2),
  20320. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20321. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20322. }
  20323. 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) {
  20324. bp := tls.Alloc(80)
  20325. defer tls.Free(80)
  20326. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20327. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20328. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20329. _ = xcb_ret
  20330. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20332. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20333. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20334. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20335. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req259)))
  20336. return xcb_ret
  20337. }
  20338. var _xcb_req259 = Txcb_protocol_request_t{
  20339. Fcount: uint64(2),
  20340. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20341. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20342. }
  20343. func Xxcb_xc_misc_get_xid_list_ids(tls *libc.TLS, R uintptr) (r uintptr) {
  20344. return R + libc.UintptrFromInt32(1)*32
  20345. }
  20346. func Xxcb_xc_misc_get_xid_list_ids_length(tls *libc.TLS, R uintptr) (r int32) {
  20347. return libc.Int32FromUint32((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)
  20348. }
  20349. func Xxcb_xc_misc_get_xid_list_ids_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20350. var i Txcb_generic_iterator_t
  20351. _ = i
  20352. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)*4
  20353. i.Frem = 0
  20354. i.Findex = int32(int64(i.Fdata) - int64(R))
  20355. return i
  20356. }
  20357. 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) {
  20358. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20359. }
  20360. func __ccgo_fp(f interface{}) uintptr {
  20361. type iface [2]uintptr
  20362. return (*iface)(unsafe.Pointer(&f))[1]
  20363. }
  20364. /**
  20365. * @}
  20366. */
  20367. var Xxcb_big_requests_id = Txcb_extension_t{
  20368. Fname: __ccgo_ts + 93,
  20369. }
  20370. /**
  20371. * @}
  20372. */
  20373. var Xxcb_xc_misc_id = Txcb_extension_t{
  20374. Fname: __ccgo_ts + 106,
  20375. }
  20376. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  20377. 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"