ccgo_linux_riscv64.go 850 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404
  1. // Code generated for linux/riscv64 by 'generator --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libXau/include/linux/riscv64 -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libXdmcp/include/linux/riscv64 -lXau -lXdmcp -o libxcb.go --package-name libxcb src/.libs/libxcb.a', DO NOT EDIT.
  2. //go:build linux && riscv64
  3. package libxcb
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libXau"
  8. "modernc.org/libXdmcp"
  9. "modernc.org/libc"
  10. )
  11. var _ reflect.Type
  12. var _ unsafe.Pointer
  13. const m_AF_ALG = "PF_ALG"
  14. const m_AF_APPLETALK = "PF_APPLETALK"
  15. const m_AF_ASH = "PF_ASH"
  16. const m_AF_ATMPVC = "PF_ATMPVC"
  17. const m_AF_ATMSVC = "PF_ATMSVC"
  18. const m_AF_AX25 = "PF_AX25"
  19. const m_AF_BLUETOOTH = "PF_BLUETOOTH"
  20. const m_AF_BRIDGE = "PF_BRIDGE"
  21. const m_AF_CAIF = "PF_CAIF"
  22. const m_AF_CAN = "PF_CAN"
  23. const m_AF_DECnet = "PF_DECnet"
  24. const m_AF_ECONET = "PF_ECONET"
  25. const m_AF_FILE = "AF_LOCAL"
  26. const m_AF_IB = "PF_IB"
  27. const m_AF_IEEE802154 = "PF_IEEE802154"
  28. const m_AF_INET = "PF_INET"
  29. const m_AF_INET6 = "PF_INET6"
  30. const m_AF_IPX = "PF_IPX"
  31. const m_AF_IRDA = "PF_IRDA"
  32. const m_AF_ISDN = "PF_ISDN"
  33. const m_AF_IUCV = "PF_IUCV"
  34. const m_AF_KCM = "PF_KCM"
  35. const m_AF_KEY = "PF_KEY"
  36. const m_AF_LLC = "PF_LLC"
  37. const m_AF_LOCAL = "PF_LOCAL"
  38. const m_AF_MAX = "PF_MAX"
  39. const m_AF_MPLS = "PF_MPLS"
  40. const m_AF_NETBEUI = "PF_NETBEUI"
  41. const m_AF_NETLINK = "PF_NETLINK"
  42. const m_AF_NETROM = "PF_NETROM"
  43. const m_AF_NFC = "PF_NFC"
  44. const m_AF_PACKET = "PF_PACKET"
  45. const m_AF_PHONET = "PF_PHONET"
  46. const m_AF_PPPOX = "PF_PPPOX"
  47. const m_AF_QIPCRTR = "PF_QIPCRTR"
  48. const m_AF_RDS = "PF_RDS"
  49. const m_AF_ROSE = "PF_ROSE"
  50. const m_AF_ROUTE = "PF_ROUTE"
  51. const m_AF_RXRPC = "PF_RXRPC"
  52. const m_AF_SECURITY = "PF_SECURITY"
  53. const m_AF_SMC = "PF_SMC"
  54. const m_AF_SNA = "PF_SNA"
  55. const m_AF_TIPC = "PF_TIPC"
  56. const m_AF_UNIX = "AF_LOCAL"
  57. const m_AF_UNSPEC = "PF_UNSPEC"
  58. const m_AF_VSOCK = "PF_VSOCK"
  59. const m_AF_WANPIPE = "PF_WANPIPE"
  60. const m_AF_X25 = "PF_X25"
  61. const m_AF_XDP = "PF_XDP"
  62. const m_ARG_MAX = 131072
  63. const m_AT_EACCESS = 0x200
  64. const m_AT_EMPTY_PATH = 0x1000
  65. const m_AT_NO_AUTOMOUNT = 0x800
  66. const m_AT_RECURSIVE = 0x8000
  67. const m_AT_REMOVEDIR = 0x200
  68. const m_AT_STATX_DONT_SYNC = 0x4000
  69. const m_AT_STATX_FORCE_SYNC = 0x2000
  70. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  71. const m_AT_STATX_SYNC_TYPE = 0x6000
  72. const m_AT_SYMLINK_FOLLOW = 0x400
  73. const m_AT_SYMLINK_NOFOLLOW = 0x100
  74. const m_BC_BASE_MAX = 99
  75. const m_BC_DIM_MAX = 2048
  76. const m_BC_SCALE_MAX = 99
  77. const m_BC_STRING_MAX = 1000
  78. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  79. const m_BUFSIZ = 1024
  80. const m_BYTE_ORDER = "__BYTE_ORDER"
  81. const m_CHARCLASS_NAME_MAX = 14
  82. const m_CHAR_BIT = 8
  83. const m_CHAR_MAX = 255
  84. const m_CHAR_MIN = 0
  85. const m_CLOCKS_PER_SEC = 1000000
  86. const m_CLOCK_BOOTTIME = 7
  87. const m_CLOCK_BOOTTIME_ALARM = 9
  88. const m_CLOCK_MONOTONIC = 1
  89. const m_CLOCK_MONOTONIC_COARSE = 6
  90. const m_CLOCK_MONOTONIC_RAW = 4
  91. const m_CLOCK_PROCESS_CPUTIME_ID = 2
  92. const m_CLOCK_REALTIME = 0
  93. const m_CLOCK_REALTIME_ALARM = 8
  94. const m_CLOCK_REALTIME_COARSE = 5
  95. const m_CLOCK_SGI_CYCLE = 10
  96. const m_CLOCK_TAI = 11
  97. const m_CLOCK_THREAD_CPUTIME_ID = 3
  98. const m_CLONE_CHILD_CLEARTID = 0x00200000
  99. const m_CLONE_CHILD_SETTID = 0x01000000
  100. const m_CLONE_DETACHED = 0x00400000
  101. const m_CLONE_FILES = 0x00000400
  102. const m_CLONE_FS = 0x00000200
  103. const m_CLONE_IO = 0x80000000
  104. const m_CLONE_NEWCGROUP = 0x02000000
  105. const m_CLONE_NEWIPC = 0x08000000
  106. const m_CLONE_NEWNET = 0x40000000
  107. const m_CLONE_NEWNS = 0x00020000
  108. const m_CLONE_NEWPID = 0x20000000
  109. const m_CLONE_NEWTIME = 0x00000080
  110. const m_CLONE_NEWUSER = 0x10000000
  111. const m_CLONE_NEWUTS = 0x04000000
  112. const m_CLONE_PARENT = 0x00008000
  113. const m_CLONE_PARENT_SETTID = 0x00100000
  114. const m_CLONE_PIDFD = 0x00001000
  115. const m_CLONE_PTRACE = 0x00002000
  116. const m_CLONE_SETTLS = 0x00080000
  117. const m_CLONE_SIGHAND = 0x00000800
  118. const m_CLONE_SYSVSEM = 0x00040000
  119. const m_CLONE_THREAD = 0x00010000
  120. const m_CLONE_UNTRACED = 0x00800000
  121. const m_CLONE_VFORK = 0x00004000
  122. const m_CLONE_VM = 0x00000100
  123. const m_COLL_WEIGHTS_MAX = 2
  124. const m_CPU_SETSIZE = 1024
  125. const m_CSIGNAL = 0x000000ff
  126. const m_DELAYTIMER_MAX = 0x7fffffff
  127. const m_DN_ACCESS = 0x00000001
  128. const m_DN_ATTRIB = 0x00000020
  129. const m_DN_CREATE = 0x00000004
  130. const m_DN_DELETE = 0x00000008
  131. const m_DN_MODIFY = 0x00000002
  132. const m_DN_MULTISHOT = 0x80000000
  133. const m_DN_RENAME = 0x00000010
  134. const m_E2BIG = 7
  135. const m_EACCES = 13
  136. const m_EADDRINUSE = 98
  137. const m_EADDRNOTAVAIL = 99
  138. const m_EADV = 68
  139. const m_EAFNOSUPPORT = 97
  140. const m_EAGAIN = 11
  141. const m_EALREADY = 114
  142. const m_EBADE = 52
  143. const m_EBADF = 9
  144. const m_EBADFD = 77
  145. const m_EBADMSG = 74
  146. const m_EBADR = 53
  147. const m_EBADRQC = 56
  148. const m_EBADSLT = 57
  149. const m_EBFONT = 59
  150. const m_EBUSY = 16
  151. const m_ECANCELED = 125
  152. const m_ECHILD = 10
  153. const m_ECHRNG = 44
  154. const m_ECOMM = 70
  155. const m_ECONNABORTED = 103
  156. const m_ECONNREFUSED = 111
  157. const m_ECONNRESET = 104
  158. const m_EDEADLK = 35
  159. const m_EDEADLOCK = "EDEADLK"
  160. const m_EDESTADDRREQ = 89
  161. const m_EDOM = 33
  162. const m_EDOTDOT = 73
  163. const m_EDQUOT = 122
  164. const m_EEXIST = 17
  165. const m_EFAULT = 14
  166. const m_EFBIG = 27
  167. const m_EHOSTDOWN = 112
  168. const m_EHOSTUNREACH = 113
  169. const m_EHWPOISON = 133
  170. const m_EIDRM = 43
  171. const m_EILSEQ = 84
  172. const m_EINPROGRESS = 115
  173. const m_EINTR = 4
  174. const m_EINVAL = 22
  175. const m_EIO = 5
  176. const m_EISCONN = 106
  177. const m_EISDIR = 21
  178. const m_EISNAM = 120
  179. const m_EKEYEXPIRED = 127
  180. const m_EKEYREJECTED = 129
  181. const m_EKEYREVOKED = 128
  182. const m_EL2HLT = 51
  183. const m_EL2NSYNC = 45
  184. const m_EL3HLT = 46
  185. const m_EL3RST = 47
  186. const m_ELIBACC = 79
  187. const m_ELIBBAD = 80
  188. const m_ELIBEXEC = 83
  189. const m_ELIBMAX = 82
  190. const m_ELIBSCN = 81
  191. const m_ELNRNG = 48
  192. const m_ELOOP = 40
  193. const m_EMEDIUMTYPE = 124
  194. const m_EMFILE = 24
  195. const m_EMLINK = 31
  196. const m_EMSGSIZE = 90
  197. const m_EMULTIHOP = 72
  198. const m_ENAMETOOLONG = 36
  199. const m_ENAVAIL = 119
  200. const m_ENETDOWN = 100
  201. const m_ENETRESET = 102
  202. const m_ENETUNREACH = 101
  203. const m_ENFILE = 23
  204. const m_ENOANO = 55
  205. const m_ENOBUFS = 105
  206. const m_ENOCSI = 50
  207. const m_ENODATA = 61
  208. const m_ENODEV = 19
  209. const m_ENOENT = 2
  210. const m_ENOEXEC = 8
  211. const m_ENOKEY = 126
  212. const m_ENOLCK = 37
  213. const m_ENOLINK = 67
  214. const m_ENOMEDIUM = 123
  215. const m_ENOMEM = 12
  216. const m_ENOMSG = 42
  217. const m_ENONET = 64
  218. const m_ENOPKG = 65
  219. const m_ENOPROTOOPT = 92
  220. const m_ENOSPC = 28
  221. const m_ENOSR = 63
  222. const m_ENOSTR = 60
  223. const m_ENOSYS = 38
  224. const m_ENOTBLK = 15
  225. const m_ENOTCONN = 107
  226. const m_ENOTDIR = 20
  227. const m_ENOTEMPTY = 39
  228. const m_ENOTNAM = 118
  229. const m_ENOTRECOVERABLE = 131
  230. const m_ENOTSOCK = 88
  231. const m_ENOTSUP = "EOPNOTSUPP"
  232. const m_ENOTTY = 25
  233. const m_ENOTUNIQ = 76
  234. const m_ENXIO = 6
  235. const m_EOPNOTSUPP = 95
  236. const m_EOVERFLOW = 75
  237. const m_EOWNERDEAD = 130
  238. const m_EPERM = 1
  239. const m_EPFNOSUPPORT = 96
  240. const m_EPIPE = 32
  241. const m_EPROTO = 71
  242. const m_EPROTONOSUPPORT = 93
  243. const m_EPROTOTYPE = 91
  244. const m_ERANGE = 34
  245. const m_EREMCHG = 78
  246. const m_EREMOTE = 66
  247. const m_EREMOTEIO = 121
  248. const m_ERESTART = 85
  249. const m_ERFKILL = 132
  250. const m_EROFS = 30
  251. const m_ESHUTDOWN = 108
  252. const m_ESOCKTNOSUPPORT = 94
  253. const m_ESPIPE = 29
  254. const m_ESRCH = 3
  255. const m_ESRMNT = 69
  256. const m_ESTALE = 116
  257. const m_ESTRPIPE = 86
  258. const m_ETIME = 62
  259. const m_ETIMEDOUT = 110
  260. const m_ETOOMANYREFS = 109
  261. const m_ETXTBSY = 26
  262. const m_EUCLEAN = 117
  263. const m_EUNATCH = 49
  264. const m_EUSERS = 87
  265. const m_EWOULDBLOCK = "EAGAIN"
  266. const m_EXDEV = 18
  267. const m_EXFULL = 54
  268. const m_EXIT_FAILURE = 1
  269. const m_EXIT_SUCCESS = 0
  270. const m_EXPR_NEST_MAX = 32
  271. const m_FALLOC_FL_KEEP_SIZE = 1
  272. const m_FALLOC_FL_PUNCH_HOLE = 2
  273. const m_FAPPEND = "O_APPEND"
  274. const m_FASYNC = "O_ASYNC"
  275. const m_FD_CLOEXEC = 1
  276. const m_FD_SETSIZE = 1024
  277. const m_FFSYNC = "O_SYNC"
  278. const m_FILENAME_MAX = 4096
  279. const m_FILESIZEBITS = 64
  280. const m_FNDELAY = "O_NDELAY"
  281. const m_FNONBLOCK = "O_NONBLOCK"
  282. const m_FOPEN_MAX = 1000
  283. const m_F_ADD_SEALS = 1033
  284. const m_F_CANCELLK = 1029
  285. const m_F_DUPFD = 0
  286. const m_F_DUPFD_CLOEXEC = 1030
  287. const m_F_GETFD = 1
  288. const m_F_GETFL = 3
  289. const m_F_GETLEASE = 1025
  290. const m_F_GETLK = 5
  291. const m_F_GETOWN = 9
  292. const m_F_GETOWNER_UIDS = 17
  293. const m_F_GETOWN_EX = 16
  294. const m_F_GETPIPE_SZ = 1032
  295. const m_F_GETSIG = 11
  296. const m_F_GET_FILE_RW_HINT = 1037
  297. const m_F_GET_RW_HINT = 1035
  298. const m_F_GET_SEALS = 1034
  299. const m_F_LOCK = 1
  300. const m_F_NOTIFY = 1026
  301. const m_F_OFD_GETLK = 36
  302. const m_F_OFD_SETLK = 37
  303. const m_F_OFD_SETLKW = 38
  304. const m_F_OK = 0
  305. const m_F_OWNER_GID = 2
  306. const m_F_OWNER_PGRP = 2
  307. const m_F_OWNER_PID = 1
  308. const m_F_OWNER_TID = 0
  309. const m_F_RDLCK = 0
  310. const m_F_SEAL_FUTURE_WRITE = 0x0010
  311. const m_F_SEAL_GROW = 0x0004
  312. const m_F_SEAL_SEAL = 0x0001
  313. const m_F_SEAL_SHRINK = 0x0002
  314. const m_F_SEAL_WRITE = 0x0008
  315. const m_F_SETFD = 2
  316. const m_F_SETFL = 4
  317. const m_F_SETLEASE = 1024
  318. const m_F_SETLK = 6
  319. const m_F_SETLKW = 7
  320. const m_F_SETOWN = 8
  321. const m_F_SETOWN_EX = 15
  322. const m_F_SETPIPE_SZ = 1031
  323. const m_F_SETSIG = 10
  324. const m_F_SET_FILE_RW_HINT = 1038
  325. const m_F_SET_RW_HINT = 1036
  326. const m_F_TEST = 3
  327. const m_F_TLOCK = 2
  328. const m_F_ULOCK = 0
  329. const m_F_UNLCK = 2
  330. const m_F_WRLCK = 1
  331. const m_HASXDMAUTH = 1
  332. const m_HAVE_ABSTRACT_SOCKETS = 1
  333. const m_HAVE_CONFIG_H = 1
  334. const m_HAVE_DLFCN_H = 1
  335. const m_HAVE_GETADDRINFO = 1
  336. const m_HAVE_INTTYPES_H = 1
  337. const m_HAVE_SENDMSG = 1
  338. const m_HAVE_STDINT_H = 1
  339. const m_HAVE_STDIO_H = 1
  340. const m_HAVE_STDLIB_H = 1
  341. const m_HAVE_STRINGS_H = 1
  342. const m_HAVE_STRING_H = 1
  343. const m_HAVE_SYS_STAT_H = 1
  344. const m_HAVE_SYS_TYPES_H = 1
  345. const m_HAVE_UNISTD_H = 1
  346. const m_HAVE_WCHAR_H = 1
  347. const m_HOST_NAME_MAX = 255
  348. const m_INET6_ADDRSTRLEN = 46
  349. const m_INET_ADDRSTRLEN = 16
  350. const m_INT16_MAX = 0x7fff
  351. const m_INT32_MAX = 0x7fffffff
  352. const m_INT64_MAX = 0x7fffffffffffffff
  353. const m_INT8_MAX = 0x7f
  354. const m_INTMAX_MAX = "INT64_MAX"
  355. const m_INTMAX_MIN = "INT64_MIN"
  356. const m_INTPTR_MAX = "INT64_MAX"
  357. const m_INTPTR_MIN = "INT64_MIN"
  358. const m_INT_FAST16_MAX = "INT32_MAX"
  359. const m_INT_FAST16_MIN = "INT32_MIN"
  360. const m_INT_FAST32_MAX = "INT32_MAX"
  361. const m_INT_FAST32_MIN = "INT32_MIN"
  362. const m_INT_FAST64_MAX = "INT64_MAX"
  363. const m_INT_FAST64_MIN = "INT64_MIN"
  364. const m_INT_FAST8_MAX = "INT8_MAX"
  365. const m_INT_FAST8_MIN = "INT8_MIN"
  366. const m_INT_LEAST16_MAX = "INT16_MAX"
  367. const m_INT_LEAST16_MIN = "INT16_MIN"
  368. const m_INT_LEAST32_MAX = "INT32_MAX"
  369. const m_INT_LEAST32_MIN = "INT32_MIN"
  370. const m_INT_LEAST64_MAX = "INT64_MAX"
  371. const m_INT_LEAST64_MIN = "INT64_MIN"
  372. const m_INT_LEAST8_MAX = "INT8_MAX"
  373. const m_INT_LEAST8_MIN = "INT8_MIN"
  374. const m_INT_MAX = 0x7fffffff
  375. const m_IN_CLASSA_MAX = 128
  376. const m_IN_CLASSA_NET = 0xff000000
  377. const m_IN_CLASSA_NSHIFT = 24
  378. const m_IN_CLASSB_MAX = 65536
  379. const m_IN_CLASSB_NET = 0xffff0000
  380. const m_IN_CLASSB_NSHIFT = 16
  381. const m_IN_CLASSC_NET = 0xffffff00
  382. const m_IN_CLASSC_NSHIFT = 8
  383. const m_IN_LOOPBACKNET = 127
  384. const m_IOV_MAX = 1024
  385. const m_IPPORT_RESERVED = 1024
  386. const m_IPPROTO_AH = 51
  387. const m_IPPROTO_BEETPH = 94
  388. const m_IPPROTO_COMP = 108
  389. const m_IPPROTO_DCCP = 33
  390. const m_IPPROTO_DSTOPTS = 60
  391. const m_IPPROTO_EGP = 8
  392. const m_IPPROTO_ENCAP = 98
  393. const m_IPPROTO_ESP = 50
  394. const m_IPPROTO_ETHERNET = 143
  395. const m_IPPROTO_FRAGMENT = 44
  396. const m_IPPROTO_GRE = 47
  397. const m_IPPROTO_HOPOPTS = 0
  398. const m_IPPROTO_ICMP = 1
  399. const m_IPPROTO_ICMPV6 = 58
  400. const m_IPPROTO_IDP = 22
  401. const m_IPPROTO_IGMP = 2
  402. const m_IPPROTO_IP = 0
  403. const m_IPPROTO_IPIP = 4
  404. const m_IPPROTO_IPV6 = 41
  405. const m_IPPROTO_MAX = 263
  406. const m_IPPROTO_MH = 135
  407. const m_IPPROTO_MPLS = 137
  408. const m_IPPROTO_MPTCP = 262
  409. const m_IPPROTO_MTP = 92
  410. const m_IPPROTO_NONE = 59
  411. const m_IPPROTO_PIM = 103
  412. const m_IPPROTO_PUP = 12
  413. const m_IPPROTO_RAW = 255
  414. const m_IPPROTO_ROUTING = 43
  415. const m_IPPROTO_RSVP = 46
  416. const m_IPPROTO_SCTP = 132
  417. const m_IPPROTO_TCP = 6
  418. const m_IPPROTO_TP = 29
  419. const m_IPPROTO_UDP = 17
  420. const m_IPPROTO_UDPLITE = 136
  421. const m_IPV6_2292DSTOPTS = 4
  422. const m_IPV6_2292HOPLIMIT = 8
  423. const m_IPV6_2292HOPOPTS = 3
  424. const m_IPV6_2292PKTINFO = 2
  425. const m_IPV6_2292PKTOPTIONS = 6
  426. const m_IPV6_2292RTHDR = 5
  427. const m_IPV6_ADDRFORM = 1
  428. const m_IPV6_ADDR_PREFERENCES = 72
  429. const m_IPV6_ADD_MEMBERSHIP = "IPV6_JOIN_GROUP"
  430. const m_IPV6_AUTHHDR = 10
  431. const m_IPV6_AUTOFLOWLABEL = 70
  432. const m_IPV6_CHECKSUM = 7
  433. const m_IPV6_DONTFRAG = 62
  434. const m_IPV6_DROP_MEMBERSHIP = "IPV6_LEAVE_GROUP"
  435. const m_IPV6_DSTOPTS = 59
  436. const m_IPV6_FREEBIND = 78
  437. const m_IPV6_HDRINCL = 36
  438. const m_IPV6_HOPLIMIT = 52
  439. const m_IPV6_HOPOPTS = 54
  440. const m_IPV6_IPSEC_POLICY = 34
  441. const m_IPV6_JOIN_ANYCAST = 27
  442. const m_IPV6_JOIN_GROUP = 20
  443. const m_IPV6_LEAVE_ANYCAST = 28
  444. const m_IPV6_LEAVE_GROUP = 21
  445. const m_IPV6_MINHOPCOUNT = 73
  446. const m_IPV6_MTU = 24
  447. const m_IPV6_MTU_DISCOVER = 23
  448. const m_IPV6_MULTICAST_ALL = 29
  449. const m_IPV6_MULTICAST_HOPS = 18
  450. const m_IPV6_MULTICAST_IF = 17
  451. const m_IPV6_MULTICAST_LOOP = 19
  452. const m_IPV6_NEXTHOP = 9
  453. const m_IPV6_ORIGDSTADDR = 74
  454. const m_IPV6_PATHMTU = 61
  455. const m_IPV6_PKTINFO = 50
  456. const m_IPV6_PMTUDISC_DO = 2
  457. const m_IPV6_PMTUDISC_DONT = 0
  458. const m_IPV6_PMTUDISC_INTERFACE = 4
  459. const m_IPV6_PMTUDISC_OMIT = 5
  460. const m_IPV6_PMTUDISC_PROBE = 3
  461. const m_IPV6_PMTUDISC_WANT = 1
  462. const m_IPV6_PREFER_SRC_CGA = 0x0008
  463. const m_IPV6_PREFER_SRC_COA = 0x0004
  464. const m_IPV6_PREFER_SRC_HOME = 0x0400
  465. const m_IPV6_PREFER_SRC_NONCGA = 0x0800
  466. const m_IPV6_PREFER_SRC_PUBLIC = 0x0002
  467. const m_IPV6_PREFER_SRC_PUBTMP_DEFAULT = 0x0100
  468. const m_IPV6_PREFER_SRC_TMP = 0x0001
  469. const m_IPV6_RECVDSTOPTS = 58
  470. const m_IPV6_RECVERR = 25
  471. const m_IPV6_RECVFRAGSIZE = 77
  472. const m_IPV6_RECVHOPLIMIT = 51
  473. const m_IPV6_RECVHOPOPTS = 53
  474. const m_IPV6_RECVORIGDSTADDR = "IPV6_ORIGDSTADDR"
  475. const m_IPV6_RECVPATHMTU = 60
  476. const m_IPV6_RECVPKTINFO = 49
  477. const m_IPV6_RECVRTHDR = 56
  478. const m_IPV6_RECVTCLASS = 66
  479. const m_IPV6_ROUTER_ALERT = 22
  480. const m_IPV6_ROUTER_ALERT_ISOLATE = 30
  481. const m_IPV6_RTHDR = 57
  482. const m_IPV6_RTHDRDSTOPTS = 55
  483. const m_IPV6_RTHDR_LOOSE = 0
  484. const m_IPV6_RTHDR_STRICT = 1
  485. const m_IPV6_RTHDR_TYPE_0 = 0
  486. const m_IPV6_RXDSTOPTS = "IPV6_DSTOPTS"
  487. const m_IPV6_RXHOPOPTS = "IPV6_HOPOPTS"
  488. const m_IPV6_TCLASS = 67
  489. const m_IPV6_TRANSPARENT = 75
  490. const m_IPV6_UNICAST_HOPS = 16
  491. const m_IPV6_UNICAST_IF = 76
  492. const m_IPV6_V6ONLY = 26
  493. const m_IPV6_XFRM_POLICY = 35
  494. const m_IP_ADD_MEMBERSHIP = 35
  495. const m_IP_ADD_SOURCE_MEMBERSHIP = 39
  496. const m_IP_BIND_ADDRESS_NO_PORT = 24
  497. const m_IP_BLOCK_SOURCE = 38
  498. const m_IP_CHECKSUM = 23
  499. const m_IP_DEFAULT_MULTICAST_LOOP = 1
  500. const m_IP_DEFAULT_MULTICAST_TTL = 1
  501. const m_IP_DROP_MEMBERSHIP = 36
  502. const m_IP_DROP_SOURCE_MEMBERSHIP = 40
  503. const m_IP_FREEBIND = 15
  504. const m_IP_HDRINCL = 3
  505. const m_IP_IPSEC_POLICY = 16
  506. const m_IP_MAX_MEMBERSHIPS = 20
  507. const m_IP_MINTTL = 21
  508. const m_IP_MSFILTER = 41
  509. const m_IP_MTU = 14
  510. const m_IP_MTU_DISCOVER = 10
  511. const m_IP_MULTICAST_ALL = 49
  512. const m_IP_MULTICAST_IF = 32
  513. const m_IP_MULTICAST_LOOP = 34
  514. const m_IP_MULTICAST_TTL = 33
  515. const m_IP_NODEFRAG = 22
  516. const m_IP_OPTIONS = 4
  517. const m_IP_ORIGDSTADDR = 20
  518. const m_IP_PASSSEC = 18
  519. const m_IP_PKTINFO = 8
  520. const m_IP_PKTOPTIONS = 9
  521. const m_IP_PMTUDISC = 10
  522. const m_IP_PMTUDISC_DO = 2
  523. const m_IP_PMTUDISC_DONT = 0
  524. const m_IP_PMTUDISC_INTERFACE = 4
  525. const m_IP_PMTUDISC_OMIT = 5
  526. const m_IP_PMTUDISC_PROBE = 3
  527. const m_IP_PMTUDISC_WANT = 1
  528. const m_IP_RECVERR = 11
  529. const m_IP_RECVERR_RFC4884 = 26
  530. const m_IP_RECVFRAGSIZE = 25
  531. const m_IP_RECVOPTS = 6
  532. const m_IP_RECVORIGDSTADDR = "IP_ORIGDSTADDR"
  533. const m_IP_RECVRETOPTS = "IP_RETOPTS"
  534. const m_IP_RECVTOS = 13
  535. const m_IP_RECVTTL = 12
  536. const m_IP_RETOPTS = 7
  537. const m_IP_ROUTER_ALERT = 5
  538. const m_IP_TOS = 1
  539. const m_IP_TRANSPARENT = 19
  540. const m_IP_TTL = 2
  541. const m_IP_UNBLOCK_SOURCE = 37
  542. const m_IP_UNICAST_IF = 50
  543. const m_IP_XFRM_POLICY = 17
  544. const m_LINE_MAX = 4096
  545. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  546. const m_LLONG_MAX = 0x7fffffffffffffff
  547. const m_LOGIN_NAME_MAX = 256
  548. const m_LONG_BIT = 64
  549. const m_LONG_MAX = "__LONG_MAX"
  550. const m_LT_OBJDIR = ".libs/"
  551. const m_L_INCR = 1
  552. const m_L_SET = 0
  553. const m_L_XTND = 2
  554. const m_L_ctermid = 20
  555. const m_L_cuserid = 20
  556. const m_L_tmpnam = 20
  557. const m_MAX_HANDLE_SZ = 128
  558. const m_MB_LEN_MAX = 4
  559. const m_MCAST_BLOCK_SOURCE = 43
  560. const m_MCAST_EXCLUDE = 0
  561. const m_MCAST_INCLUDE = 1
  562. const m_MCAST_JOIN_GROUP = 42
  563. const m_MCAST_JOIN_SOURCE_GROUP = 46
  564. const m_MCAST_LEAVE_GROUP = 45
  565. const m_MCAST_LEAVE_SOURCE_GROUP = 47
  566. const m_MCAST_MSFILTER = 48
  567. const m_MCAST_UNBLOCK_SOURCE = 44
  568. const m_MQ_PRIO_MAX = 32768
  569. const m_MSG_BATCH = 0x40000
  570. const m_MSG_CMSG_CLOEXEC = 0x40000000
  571. const m_MSG_CONFIRM = 0x0800
  572. const m_MSG_CTRUNC = 0x0008
  573. const m_MSG_DONTROUTE = 0x0004
  574. const m_MSG_DONTWAIT = 0x0040
  575. const m_MSG_EOR = 0x0080
  576. const m_MSG_ERRQUEUE = 0x2000
  577. const m_MSG_FASTOPEN = 0x20000000
  578. const m_MSG_FIN = 0x0200
  579. const m_MSG_MORE = 0x8000
  580. const m_MSG_NOSIGNAL = 0x4000
  581. const m_MSG_OOB = 0x0001
  582. const m_MSG_PEEK = 0x0002
  583. const m_MSG_PROXY = 0x0010
  584. const m_MSG_RST = 0x1000
  585. const m_MSG_SYN = 0x0400
  586. const m_MSG_TRUNC = 0x0020
  587. const m_MSG_WAITALL = 0x0100
  588. const m_MSG_WAITFORONE = 0x10000
  589. const m_MSG_ZEROCOPY = 0x4000000
  590. const m_NAME_MAX = 255
  591. const m_NDEBUG = 1
  592. const m_NGROUPS_MAX = 32
  593. const m_NL_ARGMAX = 9
  594. const m_NL_LANGMAX = 32
  595. const m_NL_MSGMAX = 32767
  596. const m_NL_NMAX = 16
  597. const m_NL_SETMAX = 255
  598. const m_NL_TEXTMAX = 2048
  599. const m_NZERO = 20
  600. const m_O_APPEND = 02000
  601. const m_O_ASYNC = 020000
  602. const m_O_CLOEXEC = 02000000
  603. const m_O_CREAT = 0100
  604. const m_O_DIRECT = 040000
  605. const m_O_DIRECTORY = 0200000
  606. const m_O_DSYNC = 010000
  607. const m_O_EXCL = 0200
  608. const m_O_EXEC = "O_PATH"
  609. const m_O_LARGEFILE = 0100000
  610. const m_O_NDELAY = "O_NONBLOCK"
  611. const m_O_NOATIME = 01000000
  612. const m_O_NOCTTY = 0400
  613. const m_O_NOFOLLOW = 0400000
  614. const m_O_NONBLOCK = 2048
  615. const m_O_PATH = 010000000
  616. const m_O_RDONLY = 00
  617. const m_O_RDWR = 02
  618. const m_O_RSYNC = 04010000
  619. const m_O_SEARCH = "O_PATH"
  620. const m_O_SYNC = 04010000
  621. const m_O_TMPFILE = 020200000
  622. const m_O_TRUNC = 01000
  623. const m_O_TTY_INIT = 0
  624. const m_O_WRONLY = 01
  625. const m_PACKAGE = "libxcb"
  626. const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues"
  627. const m_PACKAGE_NAME = "libxcb"
  628. const m_PACKAGE_STRING = "libxcb 1.17.0"
  629. const m_PACKAGE_TARNAME = "libxcb"
  630. const m_PACKAGE_URL = ""
  631. const m_PACKAGE_VERSION = "1.17.0"
  632. const m_PACKAGE_VERSION_MAJOR = 1
  633. const m_PACKAGE_VERSION_MINOR = 17
  634. const m_PACKAGE_VERSION_PATCHLEVEL = 0
  635. const m_PATH_MAX = 4096
  636. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  637. const m_PF_ALG = 38
  638. const m_PF_APPLETALK = 5
  639. const m_PF_ASH = 18
  640. const m_PF_ATMPVC = 8
  641. const m_PF_ATMSVC = 20
  642. const m_PF_AX25 = 3
  643. const m_PF_BLUETOOTH = 31
  644. const m_PF_BRIDGE = 7
  645. const m_PF_CAIF = 37
  646. const m_PF_CAN = 29
  647. const m_PF_DECnet = 12
  648. const m_PF_ECONET = 19
  649. const m_PF_FILE = "PF_LOCAL"
  650. const m_PF_IB = 27
  651. const m_PF_IEEE802154 = 36
  652. const m_PF_INET = 2
  653. const m_PF_INET6 = 10
  654. const m_PF_IPX = 4
  655. const m_PF_IRDA = 23
  656. const m_PF_ISDN = 34
  657. const m_PF_IUCV = 32
  658. const m_PF_KCM = 41
  659. const m_PF_KEY = 15
  660. const m_PF_LLC = 26
  661. const m_PF_LOCAL = 1
  662. const m_PF_MAX = 45
  663. const m_PF_MPLS = 28
  664. const m_PF_NETBEUI = 13
  665. const m_PF_NETLINK = 16
  666. const m_PF_NETROM = 6
  667. const m_PF_NFC = 39
  668. const m_PF_PACKET = 17
  669. const m_PF_PHONET = 35
  670. const m_PF_PPPOX = 24
  671. const m_PF_QIPCRTR = 42
  672. const m_PF_RDS = 21
  673. const m_PF_ROSE = 11
  674. const m_PF_ROUTE = "PF_NETLINK"
  675. const m_PF_RXRPC = 33
  676. const m_PF_SECURITY = 14
  677. const m_PF_SMC = 43
  678. const m_PF_SNA = 22
  679. const m_PF_TIPC = 30
  680. const m_PF_UNIX = "PF_LOCAL"
  681. const m_PF_UNSPEC = 0
  682. const m_PF_VSOCK = 40
  683. const m_PF_WANPIPE = 25
  684. const m_PF_X25 = 9
  685. const m_PF_XDP = 44
  686. const m_PIPE_BUF = 4096
  687. const m_POLLERR = 0x008
  688. const m_POLLHUP = 0x010
  689. const m_POLLIN = 1
  690. const m_POLLMSG = 0x400
  691. const m_POLLNVAL = 0x020
  692. const m_POLLOUT = 4
  693. const m_POLLPRI = 0x002
  694. const m_POLLRDBAND = 0x080
  695. const m_POLLRDHUP = 0x2000
  696. const m_POLLRDNORM = 0x040
  697. const m_POLLWRBAND = 0x200
  698. const m_POLLWRNORM = 0x100
  699. const m_POSIX_CLOSE_RESTART = 0
  700. const m_POSIX_FADV_DONTNEED = 4
  701. const m_POSIX_FADV_NOREUSE = 5
  702. const m_POSIX_FADV_NORMAL = 0
  703. const m_POSIX_FADV_RANDOM = 1
  704. const m_POSIX_FADV_SEQUENTIAL = 2
  705. const m_POSIX_FADV_WILLNEED = 3
  706. const m_PRIX16 = "X"
  707. const m_PRIX32 = "X"
  708. const m_PRIX8 = "X"
  709. const m_PRIXFAST16 = "X"
  710. const m_PRIXFAST32 = "X"
  711. const m_PRIXFAST8 = "X"
  712. const m_PRIXLEAST16 = "X"
  713. const m_PRIXLEAST32 = "X"
  714. const m_PRIXLEAST8 = "X"
  715. const m_PRId16 = "d"
  716. const m_PRId32 = "d"
  717. const m_PRId8 = "d"
  718. const m_PRIdFAST16 = "d"
  719. const m_PRIdFAST32 = "d"
  720. const m_PRIdFAST8 = "d"
  721. const m_PRIdLEAST16 = "d"
  722. const m_PRIdLEAST32 = "d"
  723. const m_PRIdLEAST8 = "d"
  724. const m_PRIi16 = "i"
  725. const m_PRIi32 = "i"
  726. const m_PRIi8 = "i"
  727. const m_PRIiFAST16 = "i"
  728. const m_PRIiFAST32 = "i"
  729. const m_PRIiFAST8 = "i"
  730. const m_PRIiLEAST16 = "i"
  731. const m_PRIiLEAST32 = "i"
  732. const m_PRIiLEAST8 = "i"
  733. const m_PRIo16 = "o"
  734. const m_PRIo32 = "o"
  735. const m_PRIo8 = "o"
  736. const m_PRIoFAST16 = "o"
  737. const m_PRIoFAST32 = "o"
  738. const m_PRIoFAST8 = "o"
  739. const m_PRIoLEAST16 = "o"
  740. const m_PRIoLEAST32 = "o"
  741. const m_PRIoLEAST8 = "o"
  742. const m_PRIu16 = "u"
  743. const m_PRIu32 = "u"
  744. const m_PRIu8 = "u"
  745. const m_PRIuFAST16 = "u"
  746. const m_PRIuFAST32 = "u"
  747. const m_PRIuFAST8 = "u"
  748. const m_PRIuLEAST16 = "u"
  749. const m_PRIuLEAST32 = "u"
  750. const m_PRIuLEAST8 = "u"
  751. const m_PRIx16 = "x"
  752. const m_PRIx32 = "x"
  753. const m_PRIx8 = "x"
  754. const m_PRIxFAST16 = "x"
  755. const m_PRIxFAST32 = "x"
  756. const m_PRIxFAST8 = "x"
  757. const m_PRIxLEAST16 = "x"
  758. const m_PRIxLEAST32 = "x"
  759. const m_PRIxLEAST8 = "x"
  760. const m_PTHREAD_CANCEL_ASYNCHRONOUS = 1
  761. const m_PTHREAD_CANCEL_DEFERRED = 0
  762. const m_PTHREAD_CANCEL_DISABLE = 1
  763. const m_PTHREAD_CANCEL_ENABLE = 0
  764. const m_PTHREAD_CANCEL_MASKED = 2
  765. const m_PTHREAD_CREATE_DETACHED = 1
  766. const m_PTHREAD_CREATE_JOINABLE = 0
  767. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  768. const m_PTHREAD_EXPLICIT_SCHED = 1
  769. const m_PTHREAD_INHERIT_SCHED = 0
  770. const m_PTHREAD_KEYS_MAX = 128
  771. const m_PTHREAD_MUTEX_DEFAULT = 0
  772. const m_PTHREAD_MUTEX_ERRORCHECK = 2
  773. const m_PTHREAD_MUTEX_NORMAL = 0
  774. const m_PTHREAD_MUTEX_RECURSIVE = 1
  775. const m_PTHREAD_MUTEX_ROBUST = 1
  776. const m_PTHREAD_MUTEX_STALLED = 0
  777. const m_PTHREAD_ONCE_INIT = 0
  778. const m_PTHREAD_PRIO_INHERIT = 1
  779. const m_PTHREAD_PRIO_NONE = 0
  780. const m_PTHREAD_PRIO_PROTECT = 2
  781. const m_PTHREAD_PROCESS_PRIVATE = 0
  782. const m_PTHREAD_PROCESS_SHARED = 1
  783. const m_PTHREAD_SCOPE_PROCESS = 1
  784. const m_PTHREAD_SCOPE_SYSTEM = 0
  785. const m_PTHREAD_STACK_MIN = 2048
  786. const m_PTRDIFF_MAX = "INT64_MAX"
  787. const m_PTRDIFF_MIN = "INT64_MIN"
  788. const m_P_tmpdir = "/tmp"
  789. const m_RAND_MAX = 0x7fffffff
  790. const m_RE_DUP_MAX = 255
  791. const m_RWF_APPEND = 0x00000010
  792. const m_RWF_DSYNC = 0x00000002
  793. const m_RWF_HIPRI = 0x00000001
  794. const m_RWF_NOWAIT = 0x00000008
  795. const m_RWF_SYNC = 0x00000004
  796. const m_RWF_WRITE_LIFE_NOT_SET = 0
  797. const m_RWH_WRITE_LIFE_EXTREME = 5
  798. const m_RWH_WRITE_LIFE_LONG = 4
  799. const m_RWH_WRITE_LIFE_MEDIUM = 3
  800. const m_RWH_WRITE_LIFE_NONE = 1
  801. const m_RWH_WRITE_LIFE_SHORT = 2
  802. const m_R_OK = 4
  803. const m_SCHAR_MAX = 127
  804. const m_SCHED_BATCH = 3
  805. const m_SCHED_DEADLINE = 6
  806. const m_SCHED_FIFO = 1
  807. const m_SCHED_IDLE = 5
  808. const m_SCHED_OTHER = 0
  809. const m_SCHED_RESET_ON_FORK = 0x40000000
  810. const m_SCHED_RR = 2
  811. const m_SCM_CREDENTIALS = 0x02
  812. const m_SCM_RIGHTS = 1
  813. const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
  814. const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
  815. const m_SCM_TIMESTAMPING_OPT_STATS = 54
  816. const m_SCM_TIMESTAMPING_PKTINFO = 58
  817. const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
  818. const m_SCM_TXTIME = "SO_TXTIME"
  819. const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
  820. const m_SCNd16 = "hd"
  821. const m_SCNd32 = "d"
  822. const m_SCNd8 = "hhd"
  823. const m_SCNdFAST16 = "d"
  824. const m_SCNdFAST32 = "d"
  825. const m_SCNdFAST8 = "hhd"
  826. const m_SCNdLEAST16 = "hd"
  827. const m_SCNdLEAST32 = "d"
  828. const m_SCNdLEAST8 = "hhd"
  829. const m_SCNi16 = "hi"
  830. const m_SCNi32 = "i"
  831. const m_SCNi8 = "hhi"
  832. const m_SCNiFAST16 = "i"
  833. const m_SCNiFAST32 = "i"
  834. const m_SCNiFAST8 = "hhi"
  835. const m_SCNiLEAST16 = "hi"
  836. const m_SCNiLEAST32 = "i"
  837. const m_SCNiLEAST8 = "hhi"
  838. const m_SCNo16 = "ho"
  839. const m_SCNo32 = "o"
  840. const m_SCNo8 = "hho"
  841. const m_SCNoFAST16 = "o"
  842. const m_SCNoFAST32 = "o"
  843. const m_SCNoFAST8 = "hho"
  844. const m_SCNoLEAST16 = "ho"
  845. const m_SCNoLEAST32 = "o"
  846. const m_SCNoLEAST8 = "hho"
  847. const m_SCNu16 = "hu"
  848. const m_SCNu32 = "u"
  849. const m_SCNu8 = "hhu"
  850. const m_SCNuFAST16 = "u"
  851. const m_SCNuFAST32 = "u"
  852. const m_SCNuFAST8 = "hhu"
  853. const m_SCNuLEAST16 = "hu"
  854. const m_SCNuLEAST32 = "u"
  855. const m_SCNuLEAST8 = "hhu"
  856. const m_SCNx16 = "hx"
  857. const m_SCNx32 = "x"
  858. const m_SCNx8 = "hhx"
  859. const m_SCNxFAST16 = "x"
  860. const m_SCNxFAST32 = "x"
  861. const m_SCNxFAST8 = "hhx"
  862. const m_SCNxLEAST16 = "hx"
  863. const m_SCNxLEAST32 = "x"
  864. const m_SCNxLEAST8 = "hhx"
  865. const m_SEEK_DATA = 3
  866. const m_SEEK_HOLE = 4
  867. const m_SEM_NSEMS_MAX = 256
  868. const m_SEM_VALUE_MAX = 0x7fffffff
  869. const m_SHRT_MAX = 0x7fff
  870. const m_SHUT_RD = 0
  871. const m_SHUT_RDWR = 2
  872. const m_SHUT_WR = 1
  873. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  874. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  875. const m_SIZE_MAX = "UINT64_MAX"
  876. const m_SOCK_CLOEXEC = 02000000
  877. const m_SOCK_DCCP = 6
  878. const m_SOCK_DGRAM = 2
  879. const m_SOCK_NONBLOCK = 04000
  880. const m_SOCK_PACKET = 10
  881. const m_SOCK_RAW = 3
  882. const m_SOCK_RDM = 4
  883. const m_SOCK_SEQPACKET = 5
  884. const m_SOCK_STREAM = 1
  885. const m_SOL_AAL = 265
  886. const m_SOL_ALG = 279
  887. const m_SOL_ATM = 264
  888. const m_SOL_BLUETOOTH = 274
  889. const m_SOL_CAIF = 278
  890. const m_SOL_DCCP = 269
  891. const m_SOL_DECNET = 261
  892. const m_SOL_ICMPV6 = 58
  893. const m_SOL_IP = 0
  894. const m_SOL_IPV6 = 41
  895. const m_SOL_IRDA = 266
  896. const m_SOL_IUCV = 277
  897. const m_SOL_KCM = 281
  898. const m_SOL_LLC = 268
  899. const m_SOL_NETBEUI = 267
  900. const m_SOL_NETLINK = 270
  901. const m_SOL_NFC = 280
  902. const m_SOL_PACKET = 263
  903. const m_SOL_PNPIPE = 275
  904. const m_SOL_PPPOL2TP = 273
  905. const m_SOL_RAW = 255
  906. const m_SOL_RDS = 276
  907. const m_SOL_RXRPC = 272
  908. const m_SOL_SOCKET = 1
  909. const m_SOL_TIPC = 271
  910. const m_SOL_TLS = 282
  911. const m_SOL_X25 = 262
  912. const m_SOL_XDP = 283
  913. const m_SOMAXCONN = 128
  914. const m_SO_ACCEPTCONN = 30
  915. const m_SO_ATTACH_BPF = 50
  916. const m_SO_ATTACH_FILTER = 26
  917. const m_SO_ATTACH_REUSEPORT_CBPF = 51
  918. const m_SO_ATTACH_REUSEPORT_EBPF = 52
  919. const m_SO_BINDTODEVICE = 25
  920. const m_SO_BINDTOIFINDEX = 62
  921. const m_SO_BPF_EXTENSIONS = 48
  922. const m_SO_BROADCAST = 6
  923. const m_SO_BSDCOMPAT = 14
  924. const m_SO_BUSY_POLL = 46
  925. const m_SO_BUSY_POLL_BUDGET = 70
  926. const m_SO_CNX_ADVICE = 53
  927. const m_SO_COOKIE = 57
  928. const m_SO_DEBUG = 1
  929. const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
  930. const m_SO_DETACH_FILTER = 27
  931. const m_SO_DETACH_REUSEPORT_BPF = 68
  932. const m_SO_DOMAIN = 39
  933. const m_SO_DONTROUTE = 5
  934. const m_SO_ERROR = 4
  935. const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
  936. const m_SO_INCOMING_CPU = 49
  937. const m_SO_INCOMING_NAPI_ID = 56
  938. const m_SO_KEEPALIVE = 9
  939. const m_SO_LINGER = 13
  940. const m_SO_LOCK_FILTER = 44
  941. const m_SO_MARK = 36
  942. const m_SO_MAX_PACING_RATE = 47
  943. const m_SO_MEMINFO = 55
  944. const m_SO_NOFCS = 43
  945. const m_SO_NO_CHECK = 11
  946. const m_SO_OOBINLINE = 10
  947. const m_SO_PASSCRED = 16
  948. const m_SO_PASSSEC = 34
  949. const m_SO_PEEK_OFF = 42
  950. const m_SO_PEERCRED = 17
  951. const m_SO_PEERGROUPS = 59
  952. const m_SO_PEERNAME = 28
  953. const m_SO_PEERSEC = 31
  954. const m_SO_PREFER_BUSY_POLL = 69
  955. const m_SO_PRIORITY = 12
  956. const m_SO_PROTOCOL = 38
  957. const m_SO_RCVBUF = 8
  958. const m_SO_RCVBUFFORCE = 33
  959. const m_SO_RCVLOWAT = 18
  960. const m_SO_RCVTIMEO = 20
  961. const m_SO_REUSEADDR = 2
  962. const m_SO_REUSEPORT = 15
  963. const m_SO_RXQ_OVFL = 40
  964. const m_SO_SECURITY_AUTHENTICATION = 22
  965. const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
  966. const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
  967. const m_SO_SELECT_ERR_QUEUE = 45
  968. const m_SO_SNDBUF = 7
  969. const m_SO_SNDBUFFORCE = 32
  970. const m_SO_SNDLOWAT = 19
  971. const m_SO_SNDTIMEO = 21
  972. const m_SO_TIMESTAMP = 29
  973. const m_SO_TIMESTAMPING = 37
  974. const m_SO_TIMESTAMPNS = 35
  975. const m_SO_TXTIME = 61
  976. const m_SO_TYPE = 3
  977. const m_SO_WIFI_STATUS = 41
  978. const m_SO_ZEROCOPY = 60
  979. const m_SPLICE_F_GIFT = 8
  980. const m_SPLICE_F_MORE = 4
  981. const m_SPLICE_F_MOVE = 1
  982. const m_SPLICE_F_NONBLOCK = 2
  983. const m_SSIZE_MAX = "LONG_MAX"
  984. const m_STDC_HEADERS = 1
  985. const m_STDERR_FILENO = 2
  986. const m_STDIN_FILENO = 0
  987. const m_STDOUT_FILENO = 1
  988. const m_SYMLOOP_MAX = 40
  989. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  990. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  991. const m_SYNC_FILE_RANGE_WRITE = 2
  992. const m_S_IRGRP = 0040
  993. const m_S_IROTH = 0004
  994. const m_S_IRUSR = 0400
  995. const m_S_IRWXG = 0070
  996. const m_S_IRWXO = 0007
  997. const m_S_IRWXU = 0700
  998. const m_S_ISGID = 02000
  999. const m_S_ISUID = 04000
  1000. const m_S_ISVTX = 01000
  1001. const m_S_IWGRP = 0020
  1002. const m_S_IWOTH = 0002
  1003. const m_S_IWUSR = 0200
  1004. const m_S_IXGRP = 0010
  1005. const m_S_IXOTH = 0001
  1006. const m_S_IXUSR = 0100
  1007. const m_TIMER_ABSTIME = 1
  1008. const m_TIME_UTC = 1
  1009. const m_TMP_MAX = 10000
  1010. const m_TTY_NAME_MAX = 32
  1011. const m_TZNAME_MAX = 6
  1012. const m_UCHAR_MAX = 255
  1013. const m_UINT16_MAX = 0xffff
  1014. const m_UINT32_MAX = "0xffffffffu"
  1015. const m_UINT64_MAX = "0xffffffffffffffffu"
  1016. const m_UINT8_MAX = 0xff
  1017. const m_UINTMAX_MAX = "UINT64_MAX"
  1018. const m_UINTPTR_MAX = "UINT64_MAX"
  1019. const m_UINT_FAST16_MAX = "UINT32_MAX"
  1020. const m_UINT_FAST32_MAX = "UINT32_MAX"
  1021. const m_UINT_FAST64_MAX = "UINT64_MAX"
  1022. const m_UINT_FAST8_MAX = "UINT8_MAX"
  1023. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  1024. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  1025. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  1026. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  1027. const m_UINT_MAX = 0xffffffff
  1028. const m_UIO_MAXIOV = 1024
  1029. const m_USE_POLL = 1
  1030. const m_USHRT_MAX = 0xffff
  1031. const m_VERSION = "1.17.0"
  1032. const m_WINT_MAX = "UINT32_MAX"
  1033. const m_WINT_MIN = 0
  1034. const m_WNOHANG = 1
  1035. const m_WORD_BIT = 32
  1036. const m_WUNTRACED = 2
  1037. const m_W_OK = 2
  1038. const m_XCB_ACCESS = 10
  1039. const m_XCB_ALLOC = 11
  1040. const m_XCB_ALLOC_COLOR = 84
  1041. const m_XCB_ALLOC_COLOR_CELLS = 86
  1042. const m_XCB_ALLOC_COLOR_PLANES = 87
  1043. const m_XCB_ALLOC_NAMED_COLOR = 85
  1044. const m_XCB_ALLOW_EVENTS = 35
  1045. const m_XCB_ATOM = 5
  1046. const m_XCB_BELL = 104
  1047. const m_XCB_BIGREQUESTS_MAJOR_VERSION = 0
  1048. const m_XCB_BIGREQUESTS_MINOR_VERSION = 0
  1049. const m_XCB_BIG_REQUESTS_ENABLE = 0
  1050. const m_XCB_BUTTON_PRESS = 4
  1051. const m_XCB_BUTTON_RELEASE = 5
  1052. const m_XCB_CHANGE_ACTIVE_POINTER_GRAB = 30
  1053. const m_XCB_CHANGE_GC = 56
  1054. const m_XCB_CHANGE_HOSTS = 109
  1055. const m_XCB_CHANGE_KEYBOARD_CONTROL = 102
  1056. const m_XCB_CHANGE_KEYBOARD_MAPPING = 100
  1057. const m_XCB_CHANGE_POINTER_CONTROL = 105
  1058. const m_XCB_CHANGE_PROPERTY = 18
  1059. const m_XCB_CHANGE_SAVE_SET = 6
  1060. const m_XCB_CHANGE_WINDOW_ATTRIBUTES = 2
  1061. const m_XCB_CIRCULATE_NOTIFY = 26
  1062. const m_XCB_CIRCULATE_REQUEST = 27
  1063. const m_XCB_CIRCULATE_WINDOW = 13
  1064. const m_XCB_CLEAR_AREA = 61
  1065. const m_XCB_CLIENT_MESSAGE = 33
  1066. const m_XCB_CLOSE_FONT = 46
  1067. const m_XCB_COLORMAP = 12
  1068. const m_XCB_COLORMAP_NOTIFY = 32
  1069. const m_XCB_CONFIGURE_NOTIFY = 22
  1070. const m_XCB_CONFIGURE_REQUEST = 23
  1071. const m_XCB_CONFIGURE_WINDOW = 12
  1072. const m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED = 2
  1073. const m_XCB_CONN_CLOSED_FDPASSING_FAILED = 7
  1074. const m_XCB_CONN_CLOSED_INVALID_SCREEN = 6
  1075. const m_XCB_CONN_CLOSED_MEM_INSUFFICIENT = 3
  1076. const m_XCB_CONN_CLOSED_PARSE_ERR = 5
  1077. const m_XCB_CONN_CLOSED_REQ_LEN_EXCEED = 4
  1078. const m_XCB_CONN_ERROR = 1
  1079. const m_XCB_CONVERT_SELECTION = 24
  1080. const m_XCB_COPY_AREA = 62
  1081. const m_XCB_COPY_COLORMAP_AND_FREE = 80
  1082. const m_XCB_COPY_FROM_PARENT = 0
  1083. const m_XCB_COPY_GC = 57
  1084. const m_XCB_COPY_PLANE = 63
  1085. const m_XCB_CREATE_COLORMAP = 78
  1086. const m_XCB_CREATE_CURSOR = 93
  1087. const m_XCB_CREATE_GC = 55
  1088. const m_XCB_CREATE_GLYPH_CURSOR = 94
  1089. const m_XCB_CREATE_NOTIFY = 16
  1090. const m_XCB_CREATE_PIXMAP = 53
  1091. const m_XCB_CREATE_WINDOW = 1
  1092. const m_XCB_CURRENT_TIME = 0
  1093. const m_XCB_CURSOR = 6
  1094. const m_XCB_DELETE_PROPERTY = 19
  1095. const m_XCB_DESTROY_NOTIFY = 17
  1096. const m_XCB_DESTROY_SUBWINDOWS = 5
  1097. const m_XCB_DESTROY_WINDOW = 4
  1098. const m_XCB_DRAWABLE = 9
  1099. const m_XCB_ENTER_NOTIFY = 7
  1100. const m_XCB_EXPOSE = 12
  1101. const m_XCB_FILL_POLY = 69
  1102. const m_XCB_FOCUS_IN = 9
  1103. const m_XCB_FOCUS_OUT = 10
  1104. const m_XCB_FONT = 7
  1105. const m_XCB_FORCE_SCREEN_SAVER = 115
  1106. const m_XCB_FREE_COLORMAP = 79
  1107. const m_XCB_FREE_COLORS = 88
  1108. const m_XCB_FREE_CURSOR = 95
  1109. const m_XCB_FREE_GC = 60
  1110. const m_XCB_FREE_PIXMAP = 54
  1111. const m_XCB_GET_ATOM_NAME = 17
  1112. const m_XCB_GET_FONT_PATH = 52
  1113. const m_XCB_GET_GEOMETRY = 14
  1114. const m_XCB_GET_IMAGE = 73
  1115. const m_XCB_GET_INPUT_FOCUS = 43
  1116. const m_XCB_GET_KEYBOARD_CONTROL = 103
  1117. const m_XCB_GET_KEYBOARD_MAPPING = 101
  1118. const m_XCB_GET_MODIFIER_MAPPING = 119
  1119. const m_XCB_GET_MOTION_EVENTS = 39
  1120. const m_XCB_GET_POINTER_CONTROL = 106
  1121. const m_XCB_GET_POINTER_MAPPING = 117
  1122. const m_XCB_GET_PROPERTY = 20
  1123. const m_XCB_GET_SCREEN_SAVER = 108
  1124. const m_XCB_GET_SELECTION_OWNER = 23
  1125. const m_XCB_GET_WINDOW_ATTRIBUTES = 3
  1126. const m_XCB_GE_GENERIC = 35
  1127. const m_XCB_GRAB_BUTTON = 28
  1128. const m_XCB_GRAB_KEY = 33
  1129. const m_XCB_GRAB_KEYBOARD = 31
  1130. const m_XCB_GRAB_POINTER = 26
  1131. const m_XCB_GRAB_SERVER = 36
  1132. const m_XCB_GRAPHICS_EXPOSURE = 13
  1133. const m_XCB_GRAVITY_NOTIFY = 24
  1134. const m_XCB_G_CONTEXT = 13
  1135. const m_XCB_ID_CHOICE = 14
  1136. const m_XCB_IMAGE_TEXT_16 = 77
  1137. const m_XCB_IMAGE_TEXT_8 = 76
  1138. const m_XCB_IMPLEMENTATION = 17
  1139. const m_XCB_INSTALL_COLORMAP = 81
  1140. const m_XCB_INTERN_ATOM = 16
  1141. const m_XCB_KEYMAP_NOTIFY = 11
  1142. const m_XCB_KEY_PRESS = 2
  1143. const m_XCB_KEY_RELEASE = 3
  1144. const m_XCB_KILL_CLIENT = 113
  1145. const m_XCB_LEAVE_NOTIFY = 8
  1146. const m_XCB_LENGTH = 16
  1147. const m_XCB_LIST_EXTENSIONS = 99
  1148. const m_XCB_LIST_FONTS = 49
  1149. const m_XCB_LIST_FONTS_WITH_INFO = 50
  1150. const m_XCB_LIST_HOSTS = 110
  1151. const m_XCB_LIST_INSTALLED_COLORMAPS = 83
  1152. const m_XCB_LIST_PROPERTIES = 21
  1153. const m_XCB_LOOKUP_COLOR = 92
  1154. const m_XCB_MAPPING_NOTIFY = 34
  1155. const m_XCB_MAP_NOTIFY = 19
  1156. const m_XCB_MAP_REQUEST = 20
  1157. const m_XCB_MAP_SUBWINDOWS = 9
  1158. const m_XCB_MAP_WINDOW = 8
  1159. const m_XCB_MATCH = 8
  1160. const m_XCB_MAX_PASS_FD = 16
  1161. const m_XCB_MOTION_NOTIFY = 6
  1162. const m_XCB_NAME = 15
  1163. const m_XCB_NONE = 0
  1164. const m_XCB_NO_EXPOSURE = 14
  1165. const m_XCB_NO_OPERATION = 127
  1166. const m_XCB_NO_SYMBOL = 0
  1167. const m_XCB_OPEN_FONT = 45
  1168. const m_XCB_PIXMAP = 4
  1169. const m_XCB_POLY_ARC = 68
  1170. const m_XCB_POLY_FILL_ARC = 71
  1171. const m_XCB_POLY_FILL_RECTANGLE = 70
  1172. const m_XCB_POLY_LINE = 65
  1173. const m_XCB_POLY_POINT = 64
  1174. const m_XCB_POLY_RECTANGLE = 67
  1175. const m_XCB_POLY_SEGMENT = 66
  1176. const m_XCB_POLY_TEXT_16 = 75
  1177. const m_XCB_POLY_TEXT_8 = 74
  1178. const m_XCB_PROPERTY_NOTIFY = 28
  1179. const m_XCB_PUT_IMAGE = 72
  1180. const m_XCB_QUERY_BEST_SIZE = 97
  1181. const m_XCB_QUERY_COLORS = 91
  1182. const m_XCB_QUERY_EXTENSION = 98
  1183. const m_XCB_QUERY_FONT = 47
  1184. const m_XCB_QUERY_KEYMAP = 44
  1185. const m_XCB_QUERY_POINTER = 38
  1186. const m_XCB_QUERY_TEXT_EXTENTS = 48
  1187. const m_XCB_QUERY_TREE = 15
  1188. const m_XCB_QUEUE_BUFFER_SIZE = 16384
  1189. const m_XCB_RECOLOR_CURSOR = 96
  1190. const m_XCB_REPARENT_NOTIFY = 21
  1191. const m_XCB_REPARENT_WINDOW = 7
  1192. const m_XCB_REQUEST = 1
  1193. const m_XCB_RESIZE_REQUEST = 25
  1194. const m_XCB_ROTATE_PROPERTIES = 114
  1195. const m_XCB_SELECTION_CLEAR = 29
  1196. const m_XCB_SELECTION_NOTIFY = 31
  1197. const m_XCB_SELECTION_REQUEST = 30
  1198. const m_XCB_SEND_EVENT = 25
  1199. const m_XCB_SET_ACCESS_CONTROL = 111
  1200. const m_XCB_SET_CLIP_RECTANGLES = 59
  1201. const m_XCB_SET_CLOSE_DOWN_MODE = 112
  1202. const m_XCB_SET_DASHES = 58
  1203. const m_XCB_SET_FONT_PATH = 51
  1204. const m_XCB_SET_INPUT_FOCUS = 42
  1205. const m_XCB_SET_MODIFIER_MAPPING = 118
  1206. const m_XCB_SET_POINTER_MAPPING = 116
  1207. const m_XCB_SET_SCREEN_SAVER = 107
  1208. const m_XCB_SET_SELECTION_OWNER = 22
  1209. const m_XCB_STORE_COLORS = 89
  1210. const m_XCB_STORE_NAMED_COLOR = 90
  1211. const m_XCB_TRANSLATE_COORDINATES = 40
  1212. const m_XCB_UNGRAB_BUTTON = 29
  1213. const m_XCB_UNGRAB_KEY = 34
  1214. const m_XCB_UNGRAB_KEYBOARD = 32
  1215. const m_XCB_UNGRAB_POINTER = 27
  1216. const m_XCB_UNGRAB_SERVER = 37
  1217. const m_XCB_UNINSTALL_COLORMAP = 82
  1218. const m_XCB_UNMAP_NOTIFY = 18
  1219. const m_XCB_UNMAP_SUBWINDOWS = 11
  1220. const m_XCB_UNMAP_WINDOW = 10
  1221. const m_XCB_VALUE = 2
  1222. const m_XCB_VISIBILITY_NOTIFY = 15
  1223. const m_XCB_WARP_POINTER = 41
  1224. const m_XCB_WINDOW = 3
  1225. const m_X_OK = 1
  1226. const m_X_PROTOCOL = 11
  1227. const m_X_PROTOCOL_REVISION = 0
  1228. const m_X_TCP_PORT = 6000
  1229. const m__ALL_SOURCE = 1
  1230. const m__CS_GNU_LIBC_VERSION = 2
  1231. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  1232. const m__CS_PATH = 0
  1233. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  1234. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  1235. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  1236. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  1237. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  1238. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  1239. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  1240. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  1241. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  1242. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  1243. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  1244. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  1245. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  1246. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  1247. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  1248. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  1249. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  1250. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  1251. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  1252. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  1253. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  1254. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  1255. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  1256. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  1257. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  1258. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  1259. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  1260. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  1261. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  1262. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  1263. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  1264. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  1265. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  1266. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  1267. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  1268. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  1269. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  1270. const m__CS_V6_ENV = 1148
  1271. const m__CS_V7_ENV = 1149
  1272. const m__DARWIN_C_SOURCE = 1
  1273. const m__GNU_SOURCE = 1
  1274. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  1275. const m__IOFBF = 0
  1276. const m__IOLBF = 1
  1277. const m__IONBF = 2
  1278. const m__LP64 = 1
  1279. const m__NETBSD_SOURCE = 1
  1280. const m__OPENBSD_SOURCE = 1
  1281. const m__PC_2_SYMLINKS = 20
  1282. const m__PC_ALLOC_SIZE_MIN = 18
  1283. const m__PC_ASYNC_IO = 10
  1284. const m__PC_CHOWN_RESTRICTED = 6
  1285. const m__PC_FILESIZEBITS = 13
  1286. const m__PC_LINK_MAX = 0
  1287. const m__PC_MAX_CANON = 1
  1288. const m__PC_MAX_INPUT = 2
  1289. const m__PC_NAME_MAX = 3
  1290. const m__PC_NO_TRUNC = 7
  1291. const m__PC_PATH_MAX = 4
  1292. const m__PC_PIPE_BUF = 5
  1293. const m__PC_PRIO_IO = 11
  1294. const m__PC_REC_INCR_XFER_SIZE = 14
  1295. const m__PC_REC_MAX_XFER_SIZE = 15
  1296. const m__PC_REC_MIN_XFER_SIZE = 16
  1297. const m__PC_REC_XFER_ALIGN = 17
  1298. const m__PC_SOCK_MAXBUF = 12
  1299. const m__PC_SYMLINK_MAX = 19
  1300. const m__PC_SYNC_IO = 9
  1301. const m__PC_VDISABLE = 8
  1302. const m__POSIX2_BC_BASE_MAX = 99
  1303. const m__POSIX2_BC_DIM_MAX = 2048
  1304. const m__POSIX2_BC_SCALE_MAX = 99
  1305. const m__POSIX2_BC_STRING_MAX = 1000
  1306. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  1307. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  1308. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  1309. const m__POSIX2_EXPR_NEST_MAX = 32
  1310. const m__POSIX2_LINE_MAX = 2048
  1311. const m__POSIX2_RE_DUP_MAX = 255
  1312. const m__POSIX2_VERSION = "_POSIX_VERSION"
  1313. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  1314. const m__POSIX_AIO_LISTIO_MAX = 2
  1315. const m__POSIX_AIO_MAX = 1
  1316. const m__POSIX_ARG_MAX = 4096
  1317. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  1318. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  1319. const m__POSIX_CHILD_MAX = 25
  1320. const m__POSIX_CHOWN_RESTRICTED = 1
  1321. const m__POSIX_CLOCKRES_MIN = 20000000
  1322. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  1323. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  1324. const m__POSIX_DELAYTIMER_MAX = 32
  1325. const m__POSIX_FSYNC = "_POSIX_VERSION"
  1326. const m__POSIX_HOST_NAME_MAX = 255
  1327. const m__POSIX_IPV6 = "_POSIX_VERSION"
  1328. const m__POSIX_JOB_CONTROL = 1
  1329. const m__POSIX_LINK_MAX = 8
  1330. const m__POSIX_LOGIN_NAME_MAX = 9
  1331. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  1332. const m__POSIX_MAX_CANON = 255
  1333. const m__POSIX_MAX_INPUT = 255
  1334. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  1335. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  1336. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  1337. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  1338. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  1339. const m__POSIX_MQ_OPEN_MAX = 8
  1340. const m__POSIX_MQ_PRIO_MAX = 32
  1341. const m__POSIX_NAME_MAX = 14
  1342. const m__POSIX_NGROUPS_MAX = 8
  1343. const m__POSIX_NO_TRUNC = 1
  1344. const m__POSIX_OPEN_MAX = 20
  1345. const m__POSIX_PATH_MAX = 256
  1346. const m__POSIX_PIPE_BUF = 512
  1347. const m__POSIX_PTHREAD_SEMANTICS = 1
  1348. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  1349. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  1350. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  1351. const m__POSIX_REGEXP = 1
  1352. const m__POSIX_RE_DUP_MAX = 255
  1353. const m__POSIX_RTSIG_MAX = 8
  1354. const m__POSIX_SAVED_IDS = 1
  1355. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  1356. const m__POSIX_SEM_NSEMS_MAX = 256
  1357. const m__POSIX_SEM_VALUE_MAX = 32767
  1358. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  1359. const m__POSIX_SHELL = 1
  1360. const m__POSIX_SIGQUEUE_MAX = 32
  1361. const m__POSIX_SPAWN = "_POSIX_VERSION"
  1362. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  1363. const m__POSIX_SSIZE_MAX = 32767
  1364. const m__POSIX_SS_REPL_MAX = 4
  1365. const m__POSIX_STREAM_MAX = 8
  1366. const m__POSIX_SYMLINK_MAX = 255
  1367. const m__POSIX_SYMLOOP_MAX = 8
  1368. const m__POSIX_THREADS = "_POSIX_VERSION"
  1369. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  1370. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  1371. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  1372. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  1373. const m__POSIX_THREAD_KEYS_MAX = 128
  1374. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  1375. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  1376. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  1377. const m__POSIX_THREAD_THREADS_MAX = 64
  1378. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  1379. const m__POSIX_TIMERS = "_POSIX_VERSION"
  1380. const m__POSIX_TIMER_MAX = 32
  1381. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  1382. const m__POSIX_TRACE_NAME_MAX = 8
  1383. const m__POSIX_TRACE_SYS_MAX = 8
  1384. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  1385. const m__POSIX_TTY_NAME_MAX = 9
  1386. const m__POSIX_TZNAME_MAX = 6
  1387. const m__POSIX_V6_LP64_OFF64 = 1
  1388. const m__POSIX_V7_LP64_OFF64 = 1
  1389. const m__POSIX_VDISABLE = 0
  1390. const m__POSIX_VERSION = 200809
  1391. const m__SC_2_CHAR_TERM = 95
  1392. const m__SC_2_C_BIND = 47
  1393. const m__SC_2_C_DEV = 48
  1394. const m__SC_2_FORT_DEV = 49
  1395. const m__SC_2_FORT_RUN = 50
  1396. const m__SC_2_LOCALEDEF = 52
  1397. const m__SC_2_PBS = 168
  1398. const m__SC_2_PBS_ACCOUNTING = 169
  1399. const m__SC_2_PBS_CHECKPOINT = 175
  1400. const m__SC_2_PBS_LOCATE = 170
  1401. const m__SC_2_PBS_MESSAGE = 171
  1402. const m__SC_2_PBS_TRACK = 172
  1403. const m__SC_2_SW_DEV = 51
  1404. const m__SC_2_UPE = 97
  1405. const m__SC_2_VERSION = 46
  1406. const m__SC_ADVISORY_INFO = 132
  1407. const m__SC_AIO_LISTIO_MAX = 23
  1408. const m__SC_AIO_MAX = 24
  1409. const m__SC_AIO_PRIO_DELTA_MAX = 25
  1410. const m__SC_ARG_MAX = 0
  1411. const m__SC_ASYNCHRONOUS_IO = 12
  1412. const m__SC_ATEXIT_MAX = 87
  1413. const m__SC_AVPHYS_PAGES = 86
  1414. const m__SC_BARRIERS = 133
  1415. const m__SC_BC_BASE_MAX = 36
  1416. const m__SC_BC_DIM_MAX = 37
  1417. const m__SC_BC_SCALE_MAX = 38
  1418. const m__SC_BC_STRING_MAX = 39
  1419. const m__SC_CHILD_MAX = 1
  1420. const m__SC_CLK_TCK = 2
  1421. const m__SC_CLOCK_SELECTION = 137
  1422. const m__SC_COLL_WEIGHTS_MAX = 40
  1423. const m__SC_CPUTIME = 138
  1424. const m__SC_DELAYTIMER_MAX = 26
  1425. const m__SC_EXPR_NEST_MAX = 42
  1426. const m__SC_FSYNC = 15
  1427. const m__SC_GETGR_R_SIZE_MAX = 69
  1428. const m__SC_GETPW_R_SIZE_MAX = 70
  1429. const m__SC_HOST_NAME_MAX = 180
  1430. const m__SC_IOV_MAX = 60
  1431. const m__SC_IPV6 = 235
  1432. const m__SC_JOB_CONTROL = 7
  1433. const m__SC_LINE_MAX = 43
  1434. const m__SC_LOGIN_NAME_MAX = 71
  1435. const m__SC_MAPPED_FILES = 16
  1436. const m__SC_MEMLOCK = 17
  1437. const m__SC_MEMLOCK_RANGE = 18
  1438. const m__SC_MEMORY_PROTECTION = 19
  1439. const m__SC_MESSAGE_PASSING = 20
  1440. const m__SC_MINSIGSTKSZ = 249
  1441. const m__SC_MONOTONIC_CLOCK = 149
  1442. const m__SC_MQ_OPEN_MAX = 27
  1443. const m__SC_MQ_PRIO_MAX = 28
  1444. const m__SC_NGROUPS_MAX = 3
  1445. const m__SC_NPROCESSORS_CONF = 83
  1446. const m__SC_NPROCESSORS_ONLN = 84
  1447. const m__SC_NZERO = 109
  1448. const m__SC_OPEN_MAX = 4
  1449. const m__SC_PAGESIZE = 30
  1450. const m__SC_PAGE_SIZE = 30
  1451. const m__SC_PASS_MAX = 88
  1452. const m__SC_PHYS_PAGES = 85
  1453. const m__SC_PRIORITIZED_IO = 13
  1454. const m__SC_PRIORITY_SCHEDULING = 10
  1455. const m__SC_RAW_SOCKETS = 236
  1456. const m__SC_READER_WRITER_LOCKS = 153
  1457. const m__SC_REALTIME_SIGNALS = 9
  1458. const m__SC_REGEXP = 155
  1459. const m__SC_RE_DUP_MAX = 44
  1460. const m__SC_RTSIG_MAX = 31
  1461. const m__SC_SAVED_IDS = 8
  1462. const m__SC_SEMAPHORES = 21
  1463. const m__SC_SEM_NSEMS_MAX = 32
  1464. const m__SC_SEM_VALUE_MAX = 33
  1465. const m__SC_SHARED_MEMORY_OBJECTS = 22
  1466. const m__SC_SHELL = 157
  1467. const m__SC_SIGQUEUE_MAX = 34
  1468. const m__SC_SIGSTKSZ = 250
  1469. const m__SC_SPAWN = 159
  1470. const m__SC_SPIN_LOCKS = 154
  1471. const m__SC_SPORADIC_SERVER = 160
  1472. const m__SC_SS_REPL_MAX = 241
  1473. const m__SC_STREAMS = 174
  1474. const m__SC_STREAM_MAX = 5
  1475. const m__SC_SYMLOOP_MAX = 173
  1476. const m__SC_SYNCHRONIZED_IO = 14
  1477. const m__SC_THREADS = 67
  1478. const m__SC_THREAD_ATTR_STACKADDR = 77
  1479. const m__SC_THREAD_ATTR_STACKSIZE = 78
  1480. const m__SC_THREAD_CPUTIME = 139
  1481. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  1482. const m__SC_THREAD_KEYS_MAX = 74
  1483. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  1484. const m__SC_THREAD_PRIO_INHERIT = 80
  1485. const m__SC_THREAD_PRIO_PROTECT = 81
  1486. const m__SC_THREAD_PROCESS_SHARED = 82
  1487. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  1488. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  1489. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  1490. const m__SC_THREAD_SPORADIC_SERVER = 161
  1491. const m__SC_THREAD_STACK_MIN = 75
  1492. const m__SC_THREAD_THREADS_MAX = 76
  1493. const m__SC_TIMEOUTS = 164
  1494. const m__SC_TIMERS = 11
  1495. const m__SC_TIMER_MAX = 35
  1496. const m__SC_TRACE = 181
  1497. const m__SC_TRACE_EVENT_FILTER = 182
  1498. const m__SC_TRACE_EVENT_NAME_MAX = 242
  1499. const m__SC_TRACE_INHERIT = 183
  1500. const m__SC_TRACE_LOG = 184
  1501. const m__SC_TRACE_NAME_MAX = 243
  1502. const m__SC_TRACE_SYS_MAX = 244
  1503. const m__SC_TRACE_USER_EVENT_MAX = 245
  1504. const m__SC_TTY_NAME_MAX = 72
  1505. const m__SC_TYPED_MEMORY_OBJECTS = 165
  1506. const m__SC_TZNAME_MAX = 6
  1507. const m__SC_UIO_MAXIOV = 60
  1508. const m__SC_V6_ILP32_OFF32 = 176
  1509. const m__SC_V6_ILP32_OFFBIG = 177
  1510. const m__SC_V6_LP64_OFF64 = 178
  1511. const m__SC_V6_LPBIG_OFFBIG = 179
  1512. const m__SC_V7_ILP32_OFF32 = 237
  1513. const m__SC_V7_ILP32_OFFBIG = 238
  1514. const m__SC_V7_LP64_OFF64 = 239
  1515. const m__SC_V7_LPBIG_OFFBIG = 240
  1516. const m__SC_VERSION = 29
  1517. const m__SC_XBS5_ILP32_OFF32 = 125
  1518. const m__SC_XBS5_ILP32_OFFBIG = 126
  1519. const m__SC_XBS5_LP64_OFF64 = 127
  1520. const m__SC_XBS5_LPBIG_OFFBIG = 128
  1521. const m__SC_XOPEN_CRYPT = 92
  1522. const m__SC_XOPEN_ENH_I18N = 93
  1523. const m__SC_XOPEN_LEGACY = 129
  1524. const m__SC_XOPEN_REALTIME = 130
  1525. const m__SC_XOPEN_REALTIME_THREADS = 131
  1526. const m__SC_XOPEN_SHM = 94
  1527. const m__SC_XOPEN_STREAMS = 246
  1528. const m__SC_XOPEN_UNIX = 91
  1529. const m__SC_XOPEN_VERSION = 89
  1530. const m__SC_XOPEN_XCU_VERSION = 90
  1531. const m__SC_XOPEN_XPG2 = 98
  1532. const m__SC_XOPEN_XPG3 = 99
  1533. const m__SC_XOPEN_XPG4 = 100
  1534. const m__STDC_PREDEF_H = 1
  1535. const m__TANDEM_SOURCE = 1
  1536. const m__XOPEN_ENH_I18N = 1
  1537. const m__XOPEN_IOV_MAX = 16
  1538. const m__XOPEN_NAME_MAX = 255
  1539. const m__XOPEN_PATH_MAX = 1024
  1540. const m__XOPEN_UNIX = 1
  1541. const m__XOPEN_VERSION = 700
  1542. const m___ATOMIC_ACQUIRE = 2
  1543. const m___ATOMIC_ACQ_REL = 4
  1544. const m___ATOMIC_CONSUME = 1
  1545. const m___ATOMIC_RELAXED = 0
  1546. const m___ATOMIC_RELEASE = 3
  1547. const m___ATOMIC_SEQ_CST = 5
  1548. const m___BIGGEST_ALIGNMENT__ = 16
  1549. const m___BIG_ENDIAN = 4321
  1550. const m___BYTE_ORDER = 1234
  1551. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1552. const m___CCGO__ = 1
  1553. const m___CHAR_BIT__ = 8
  1554. const m___CHAR_UNSIGNED__ = 1
  1555. const m___DBL_DECIMAL_DIG__ = 17
  1556. const m___DBL_DIG__ = 15
  1557. const m___DBL_HAS_DENORM__ = 1
  1558. const m___DBL_HAS_INFINITY__ = 1
  1559. const m___DBL_HAS_QUIET_NAN__ = 1
  1560. const m___DBL_IS_IEC_60559__ = 1
  1561. const m___DBL_MANT_DIG__ = 53
  1562. const m___DBL_MAX_10_EXP__ = 308
  1563. const m___DBL_MAX_EXP__ = 1024
  1564. const m___DECIMAL_DIG__ = 36
  1565. const m___DEC_EVAL_METHOD__ = 2
  1566. const m___ELF__ = 1
  1567. const m___EXTENSIONS__ = 1
  1568. const m___FINITE_MATH_ONLY__ = 0
  1569. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1570. const m___FLT128_DECIMAL_DIG__ = 36
  1571. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1572. const m___FLT128_DIG__ = 33
  1573. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1574. const m___FLT128_HAS_DENORM__ = 1
  1575. const m___FLT128_HAS_INFINITY__ = 1
  1576. const m___FLT128_HAS_QUIET_NAN__ = 1
  1577. const m___FLT128_IS_IEC_60559__ = 1
  1578. const m___FLT128_MANT_DIG__ = 113
  1579. const m___FLT128_MAX_10_EXP__ = 4932
  1580. const m___FLT128_MAX_EXP__ = 16384
  1581. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1582. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  1583. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1584. const m___FLT16_DECIMAL_DIG__ = 5
  1585. const m___FLT16_DENORM_MIN__ = 5.96046447753906250000000000000000000e-8
  1586. const m___FLT16_DIG__ = 3
  1587. const m___FLT16_EPSILON__ = 9.76562500000000000000000000000000000e-4
  1588. const m___FLT16_HAS_DENORM__ = 1
  1589. const m___FLT16_HAS_INFINITY__ = 1
  1590. const m___FLT16_HAS_QUIET_NAN__ = 1
  1591. const m___FLT16_IS_IEC_60559__ = 1
  1592. const m___FLT16_MANT_DIG__ = 11
  1593. const m___FLT16_MAX_10_EXP__ = 4
  1594. const m___FLT16_MAX_EXP__ = 16
  1595. const m___FLT16_MAX__ = 6.55040000000000000000000000000000000e+4
  1596. const m___FLT16_MIN__ = 6.10351562500000000000000000000000000e-5
  1597. const m___FLT16_NORM_MAX__ = 6.55040000000000000000000000000000000e+4
  1598. const m___FLT32X_DECIMAL_DIG__ = 17
  1599. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1600. const m___FLT32X_DIG__ = 15
  1601. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1602. const m___FLT32X_HAS_DENORM__ = 1
  1603. const m___FLT32X_HAS_INFINITY__ = 1
  1604. const m___FLT32X_HAS_QUIET_NAN__ = 1
  1605. const m___FLT32X_IS_IEC_60559__ = 1
  1606. const m___FLT32X_MANT_DIG__ = 53
  1607. const m___FLT32X_MAX_10_EXP__ = 308
  1608. const m___FLT32X_MAX_EXP__ = 1024
  1609. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  1610. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  1611. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1612. const m___FLT32_DECIMAL_DIG__ = 9
  1613. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1614. const m___FLT32_DIG__ = 6
  1615. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1616. const m___FLT32_HAS_DENORM__ = 1
  1617. const m___FLT32_HAS_INFINITY__ = 1
  1618. const m___FLT32_HAS_QUIET_NAN__ = 1
  1619. const m___FLT32_IS_IEC_60559__ = 1
  1620. const m___FLT32_MANT_DIG__ = 24
  1621. const m___FLT32_MAX_10_EXP__ = 38
  1622. const m___FLT32_MAX_EXP__ = 128
  1623. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  1624. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  1625. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1626. const m___FLT64X_DECIMAL_DIG__ = 36
  1627. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1628. const m___FLT64X_DIG__ = 33
  1629. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1630. const m___FLT64X_HAS_DENORM__ = 1
  1631. const m___FLT64X_HAS_INFINITY__ = 1
  1632. const m___FLT64X_HAS_QUIET_NAN__ = 1
  1633. const m___FLT64X_IS_IEC_60559__ = 1
  1634. const m___FLT64X_MANT_DIG__ = 113
  1635. const m___FLT64X_MAX_10_EXP__ = 4932
  1636. const m___FLT64X_MAX_EXP__ = 16384
  1637. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1638. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  1639. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1640. const m___FLT64_DECIMAL_DIG__ = 17
  1641. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1642. const m___FLT64_DIG__ = 15
  1643. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1644. const m___FLT64_HAS_DENORM__ = 1
  1645. const m___FLT64_HAS_INFINITY__ = 1
  1646. const m___FLT64_HAS_QUIET_NAN__ = 1
  1647. const m___FLT64_IS_IEC_60559__ = 1
  1648. const m___FLT64_MANT_DIG__ = 53
  1649. const m___FLT64_MAX_10_EXP__ = 308
  1650. const m___FLT64_MAX_EXP__ = 1024
  1651. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  1652. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  1653. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1654. const m___FLT_DECIMAL_DIG__ = 9
  1655. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  1656. const m___FLT_DIG__ = 6
  1657. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  1658. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  1659. const m___FLT_EVAL_METHOD__ = 0
  1660. const m___FLT_HAS_DENORM__ = 1
  1661. const m___FLT_HAS_INFINITY__ = 1
  1662. const m___FLT_HAS_QUIET_NAN__ = 1
  1663. const m___FLT_IS_IEC_60559__ = 1
  1664. const m___FLT_MANT_DIG__ = 24
  1665. const m___FLT_MAX_10_EXP__ = 38
  1666. const m___FLT_MAX_EXP__ = 128
  1667. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  1668. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  1669. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  1670. const m___FLT_RADIX__ = 2
  1671. const m___FP_FAST_FMA = 1
  1672. const m___FP_FAST_FMAF = 1
  1673. const m___FP_FAST_FMAF32 = 1
  1674. const m___FP_FAST_FMAF32x = 1
  1675. const m___FP_FAST_FMAF64 = 1
  1676. const m___FUNCTION__ = "__func__"
  1677. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  1678. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1679. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1680. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  1681. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1682. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  1683. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1684. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1685. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  1686. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1687. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1688. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  1689. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  1690. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  1691. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1692. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  1693. const m___GCC_IEC_559 = 2
  1694. const m___GCC_IEC_559_COMPLEX = 2
  1695. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  1696. const m___GNUC_MINOR__ = 2
  1697. const m___GNUC_PATCHLEVEL__ = 0
  1698. const m___GNUC_STDC_INLINE__ = 1
  1699. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  1700. const m___GNUC__ = 14
  1701. const m___GXX_ABI_VERSION = 1019
  1702. const m___INT16_MAX__ = 0x7fff
  1703. const m___INT32_MAX__ = 0x7fffffff
  1704. const m___INT32_TYPE__ = "int"
  1705. const m___INT64_MAX__ = 0x7fffffffffffffff
  1706. const m___INT8_MAX__ = 0x7f
  1707. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  1708. const m___INTMAX_WIDTH__ = 64
  1709. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  1710. const m___INTPTR_WIDTH__ = 64
  1711. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  1712. const m___INT_FAST16_WIDTH__ = 64
  1713. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  1714. const m___INT_FAST32_WIDTH__ = 64
  1715. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  1716. const m___INT_FAST64_WIDTH__ = 64
  1717. const m___INT_FAST8_MAX__ = 0x7f
  1718. const m___INT_FAST8_WIDTH__ = 8
  1719. const m___INT_LEAST16_MAX__ = 0x7fff
  1720. const m___INT_LEAST16_WIDTH__ = 16
  1721. const m___INT_LEAST32_MAX__ = 0x7fffffff
  1722. const m___INT_LEAST32_TYPE__ = "int"
  1723. const m___INT_LEAST32_WIDTH__ = 32
  1724. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  1725. const m___INT_LEAST64_WIDTH__ = 64
  1726. const m___INT_LEAST8_MAX__ = 0x7f
  1727. const m___INT_LEAST8_WIDTH__ = 8
  1728. const m___INT_MAX__ = 0x7fffffff
  1729. const m___INT_WIDTH__ = 32
  1730. const m___LDBL_DECIMAL_DIG__ = 36
  1731. const m___LDBL_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  1732. const m___LDBL_DIG__ = 33
  1733. const m___LDBL_EPSILON__ = 1.92592994438723585305597794258492732e-34
  1734. const m___LDBL_HAS_DENORM__ = 1
  1735. const m___LDBL_HAS_INFINITY__ = 1
  1736. const m___LDBL_HAS_QUIET_NAN__ = 1
  1737. const m___LDBL_IS_IEC_60559__ = 1
  1738. const m___LDBL_MANT_DIG__ = 113
  1739. const m___LDBL_MAX_10_EXP__ = 4932
  1740. const m___LDBL_MAX_EXP__ = 16384
  1741. const m___LDBL_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1742. const m___LDBL_MIN__ = 3.36210314311209350626267781732175260e-4932
  1743. const m___LDBL_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  1744. const m___LITTLE_ENDIAN = 1234
  1745. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1746. const m___LONG_LONG_WIDTH__ = 64
  1747. const m___LONG_MAX = 0x7fffffffffffffff
  1748. const m___LONG_MAX__ = 0x7fffffffffffffff
  1749. const m___LONG_WIDTH__ = 64
  1750. const m___LP64__ = 1
  1751. const m___NO_INLINE__ = 1
  1752. const m___ORDER_BIG_ENDIAN__ = 4321
  1753. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1754. const m___ORDER_PDP_ENDIAN__ = 3412
  1755. const m___PDP_ENDIAN = 3412
  1756. const m___PIC__ = 2
  1757. const m___PIE__ = 2
  1758. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1759. const m___PRETTY_FUNCTION__ = "__func__"
  1760. const m___PRI64 = "l"
  1761. const m___PRIPTR = "l"
  1762. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  1763. const m___PTRDIFF_WIDTH__ = 64
  1764. const m___SCHAR_MAX__ = 0x7f
  1765. const m___SCHAR_WIDTH__ = 8
  1766. const m___SHRT_MAX__ = 0x7fff
  1767. const m___SHRT_WIDTH__ = 16
  1768. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1769. const m___SIG_ATOMIC_TYPE__ = "int"
  1770. const m___SIG_ATOMIC_WIDTH__ = 32
  1771. const m___SIZEOF_DOUBLE__ = 8
  1772. const m___SIZEOF_FLOAT__ = 4
  1773. const m___SIZEOF_INT128__ = 16
  1774. const m___SIZEOF_INT__ = 4
  1775. const m___SIZEOF_LONG_DOUBLE__ = 8
  1776. const m___SIZEOF_LONG_LONG__ = 8
  1777. const m___SIZEOF_LONG__ = 8
  1778. const m___SIZEOF_POINTER__ = 8
  1779. const m___SIZEOF_PTRDIFF_T__ = 8
  1780. const m___SIZEOF_SHORT__ = 2
  1781. const m___SIZEOF_SIZE_T__ = 8
  1782. const m___SIZEOF_WCHAR_T__ = 4
  1783. const m___SIZEOF_WINT_T__ = 4
  1784. const m___SIZE_MAX__ = 0xffffffffffffffff
  1785. const m___SIZE_WIDTH__ = 64
  1786. const m___STDC_HOSTED__ = 1
  1787. const m___STDC_IEC_559_COMPLEX__ = 1
  1788. const m___STDC_IEC_559__ = 1
  1789. const m___STDC_IEC_60559_BFP__ = 201404
  1790. const m___STDC_IEC_60559_COMPLEX__ = 201404
  1791. const m___STDC_ISO_10646__ = 201706
  1792. const m___STDC_UTF_16__ = 1
  1793. const m___STDC_UTF_32__ = 1
  1794. const m___STDC_VERSION__ = 201710
  1795. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  1796. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  1797. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  1798. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  1799. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  1800. const m___STDC_WANT_LIB_EXT2__ = 1
  1801. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  1802. const m___STDC__ = 1
  1803. const m___UAPI_DEF_IN6_ADDR = 0
  1804. const m___UAPI_DEF_IN6_ADDR_ALT = 0
  1805. const m___UAPI_DEF_IN6_PKTINFO = 0
  1806. const m___UAPI_DEF_IN_ADDR = 0
  1807. const m___UAPI_DEF_IN_CLASS = 0
  1808. const m___UAPI_DEF_IN_IPPROTO = 0
  1809. const m___UAPI_DEF_IN_PKTINFO = 0
  1810. const m___UAPI_DEF_IP6_MTUINFO = 0
  1811. const m___UAPI_DEF_IPPROTO_V6 = 0
  1812. const m___UAPI_DEF_IPV6_MREQ = 0
  1813. const m___UAPI_DEF_IPV6_OPTIONS = 0
  1814. const m___UAPI_DEF_IP_MREQ = 0
  1815. const m___UAPI_DEF_SOCKADDR_IN = 0
  1816. const m___UAPI_DEF_SOCKADDR_IN6 = 0
  1817. const m___UINT16_MAX__ = 0xffff
  1818. const m___UINT32_MAX__ = 0xffffffff
  1819. const m___UINT64_MAX__ = 0xffffffffffffffff
  1820. const m___UINT8_MAX__ = 0xff
  1821. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  1822. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  1823. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  1824. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  1825. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  1826. const m___UINT_FAST8_MAX__ = 0xff
  1827. const m___UINT_LEAST16_MAX__ = 0xffff
  1828. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1829. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  1830. const m___UINT_LEAST8_MAX__ = 0xff
  1831. const m___USE_TIME_BITS64 = 1
  1832. const m___VERSION__ = "14.2.0"
  1833. const m___WCHAR_MAX__ = 0x7fffffff
  1834. const m___WCHAR_TYPE__ = "int"
  1835. const m___WCHAR_WIDTH__ = 32
  1836. const m___WINT_MAX__ = 0xffffffff
  1837. const m___WINT_MIN__ = 0
  1838. const m___WINT_WIDTH__ = 32
  1839. const m___gnu_linux__ = 1
  1840. const m___inline = "inline"
  1841. const m___linux = 1
  1842. const m___linux__ = 1
  1843. const m___pic__ = 2
  1844. const m___pie__ = 2
  1845. const m___restrict = "restrict"
  1846. const m___restrict_arr = "restrict"
  1847. const m___riscv = 1
  1848. const m___riscv_a = 2001000
  1849. const m___riscv_arch_test = 1
  1850. const m___riscv_atomic = 1
  1851. const m___riscv_c = 2000000
  1852. const m___riscv_cmodel_medany = 1
  1853. const m___riscv_compressed = 1
  1854. const m___riscv_d = 2002000
  1855. const m___riscv_div = 1
  1856. const m___riscv_f = 2002000
  1857. const m___riscv_fdiv = 1
  1858. const m___riscv_flen = 64
  1859. const m___riscv_float_abi_double = 1
  1860. const m___riscv_fsqrt = 1
  1861. const m___riscv_i = 2001000
  1862. const m___riscv_m = 2000000
  1863. const m___riscv_misaligned_slow = 1
  1864. const m___riscv_mul = 1
  1865. const m___riscv_muldiv = 1
  1866. const m___riscv_xlen = 64
  1867. const m___riscv_zicsr = 2000000
  1868. const m___riscv_zifencei = 2000000
  1869. const m___tm_gmtoff = "tm_gmtoff"
  1870. const m___tm_zone = "tm_zone"
  1871. const m___unix = 1
  1872. const m___unix__ = 1
  1873. const m_alloca = "__builtin_alloca"
  1874. const m_linux = 1
  1875. const m_loff_t = "off_t"
  1876. const m_static_assert = "_Static_assert"
  1877. const m_unix = 1
  1878. type t__builtin_va_list = uintptr
  1879. type t__predefined_size_t = uint64
  1880. type t__predefined_wchar_t = int32
  1881. type t__predefined_ptrdiff_t = int64
  1882. type Tsize_t = uint64
  1883. type Tlocale_t = uintptr
  1884. type Tssize_t = int64
  1885. type Toff_t = int64
  1886. type Tva_list = uintptr
  1887. type t__isoc_va_list = uintptr
  1888. type Tfpos_t = struct {
  1889. F__lldata [0]int64
  1890. F__align [0]float64
  1891. F__opaque [16]uint8
  1892. }
  1893. type T_G_fpos64_t = Tfpos_t
  1894. type Tcookie_io_functions_t = struct {
  1895. Fread uintptr
  1896. Fwrite uintptr
  1897. Fseek uintptr
  1898. Fclose1 uintptr
  1899. }
  1900. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  1901. type Twchar_t = int32
  1902. type Tdiv_t = struct {
  1903. Fquot int32
  1904. Frem int32
  1905. }
  1906. type Tldiv_t = struct {
  1907. Fquot int64
  1908. Frem int64
  1909. }
  1910. type Tlldiv_t = struct {
  1911. Fquot int64
  1912. Frem int64
  1913. }
  1914. type Tmode_t = uint32
  1915. type Tpid_t = int32
  1916. type Tiovec = struct {
  1917. Fiov_base uintptr
  1918. Fiov_len Tsize_t
  1919. }
  1920. type Tflock = struct {
  1921. Fl_type int16
  1922. Fl_whence int16
  1923. Fl_start Toff_t
  1924. Fl_len Toff_t
  1925. Fl_pid Tpid_t
  1926. }
  1927. type Tfile_handle = struct {
  1928. Fhandle_bytes uint32
  1929. Fhandle_type int32
  1930. }
  1931. type Tf_owner_ex = struct {
  1932. Ftype1 int32
  1933. Fpid Tpid_t
  1934. }
  1935. type Tblksize_t = int32
  1936. type Tnlink_t = uint32
  1937. type Tregister_t = int64
  1938. type Ttime_t = int64
  1939. type Tsuseconds_t = int64
  1940. type Tint8_t = int8
  1941. type Tint16_t = int16
  1942. type Tint32_t = int32
  1943. type Tint64_t = int64
  1944. type Tu_int64_t = uint64
  1945. type Tino_t = uint64
  1946. type Tdev_t = uint64
  1947. type Tblkcnt_t = int64
  1948. type Tfsblkcnt_t = uint64
  1949. type Tfsfilcnt_t = uint64
  1950. type Ttimer_t = uintptr
  1951. type Tclockid_t = int32
  1952. type Tclock_t = int64
  1953. type Tid_t = uint32
  1954. type Tuid_t = uint32
  1955. type Tgid_t = uint32
  1956. type Tkey_t = int32
  1957. type Tuseconds_t = uint32
  1958. type Tpthread_t = uintptr
  1959. type Tpthread_once_t = int32
  1960. type Tpthread_key_t = uint32
  1961. type Tpthread_spinlock_t = int32
  1962. type Tpthread_mutexattr_t = struct {
  1963. F__attr uint32
  1964. }
  1965. type Tpthread_condattr_t = struct {
  1966. F__attr uint32
  1967. }
  1968. type Tpthread_barrierattr_t = struct {
  1969. F__attr uint32
  1970. }
  1971. type Tpthread_rwlockattr_t = struct {
  1972. F__attr [2]uint32
  1973. }
  1974. type Tpthread_attr_t = struct {
  1975. F__u struct {
  1976. F__vi [0][14]int32
  1977. F__s [0][7]uint64
  1978. F__i [14]int32
  1979. }
  1980. }
  1981. type Tpthread_mutex_t = struct {
  1982. F__u struct {
  1983. F__vi [0][10]int32
  1984. F__p [0][5]uintptr
  1985. F__i [10]int32
  1986. }
  1987. }
  1988. type Tpthread_cond_t = struct {
  1989. F__u struct {
  1990. F__vi [0][12]int32
  1991. F__p [0][6]uintptr
  1992. F__i [12]int32
  1993. }
  1994. }
  1995. type Tpthread_rwlock_t = struct {
  1996. F__u struct {
  1997. F__vi [0][14]int32
  1998. F__p [0][7]uintptr
  1999. F__i [14]int32
  2000. }
  2001. }
  2002. type Tpthread_barrier_t = struct {
  2003. F__u struct {
  2004. F__vi [0][8]int32
  2005. F__p [0][4]uintptr
  2006. F__i [8]int32
  2007. }
  2008. }
  2009. type Tu_int8_t = uint8
  2010. type Tu_int16_t = uint16
  2011. type Tu_int32_t = uint32
  2012. type Tcaddr_t = uintptr
  2013. type Tu_char = uint8
  2014. type Tu_short = uint16
  2015. type Tushort = uint16
  2016. type Tu_int = uint32
  2017. type Tuint = uint32
  2018. type Tu_long = uint64
  2019. type Tulong = uint64
  2020. type Tquad_t = int64
  2021. type Tu_quad_t = uint64
  2022. type Tuint16_t = uint16
  2023. type Tuint32_t = uint32
  2024. type Tuint64_t = uint64
  2025. type Ttimeval = struct {
  2026. Ftv_sec Ttime_t
  2027. Ftv_usec Tsuseconds_t
  2028. }
  2029. type Ttimespec = struct {
  2030. Ftv_sec Ttime_t
  2031. Ftv_nsec int64
  2032. }
  2033. type Tsigset_t = struct {
  2034. F__bits [16]uint64
  2035. }
  2036. type t__sigset_t = Tsigset_t
  2037. type Tfd_mask = uint64
  2038. type Tfd_set = struct {
  2039. Ffds_bits [16]uint64
  2040. }
  2041. type Tuintptr_t = uint64
  2042. type Tintptr_t = int64
  2043. type Tintmax_t = int64
  2044. type Tuint8_t = uint8
  2045. type Tuintmax_t = uint64
  2046. type Tint_fast8_t = int8
  2047. type Tint_fast64_t = int64
  2048. type Tint_least8_t = int8
  2049. type Tint_least16_t = int16
  2050. type Tint_least32_t = int32
  2051. type Tint_least64_t = int64
  2052. type Tuint_fast8_t = uint8
  2053. type Tuint_fast64_t = uint64
  2054. type Tuint_least8_t = uint8
  2055. type Tuint_least16_t = uint16
  2056. type Tuint_least32_t = uint32
  2057. type Tuint_least64_t = uint64
  2058. type Tint_fast16_t = int32
  2059. type Tint_fast32_t = int32
  2060. type Tuint_fast16_t = uint32
  2061. type Tuint_fast32_t = uint32
  2062. type Tsched_param = struct {
  2063. Fsched_priority int32
  2064. F__reserved1 int32
  2065. F__reserved2 [2]struct {
  2066. F__reserved1 Ttime_t
  2067. F__reserved2 int64
  2068. }
  2069. F__reserved3 int32
  2070. }
  2071. type Tcpu_set_t = struct {
  2072. F__bits [16]uint64
  2073. }
  2074. type Ttm = struct {
  2075. Ftm_sec int32
  2076. Ftm_min int32
  2077. Ftm_hour int32
  2078. Ftm_mday int32
  2079. Ftm_mon int32
  2080. Ftm_year int32
  2081. Ftm_wday int32
  2082. Ftm_yday int32
  2083. Ftm_isdst int32
  2084. Ftm_gmtoff int64
  2085. Ftm_zone uintptr
  2086. }
  2087. type Titimerspec = struct {
  2088. Fit_interval Ttimespec
  2089. Fit_value Ttimespec
  2090. }
  2091. type t__ptcb = struct {
  2092. F__f uintptr
  2093. F__x uintptr
  2094. F__next uintptr
  2095. }
  2096. type Tcpu_set_t1 = struct {
  2097. F__bits [16]uint64
  2098. }
  2099. type Txcb_connection_t = struct {
  2100. Fhas_error int32
  2101. Fsetup uintptr
  2102. Ffd int32
  2103. Fiolock Tpthread_mutex_t
  2104. Fin T_xcb_in
  2105. Fout T_xcb_out
  2106. Fext T_xcb_ext
  2107. Fxid T_xcb_xid
  2108. }
  2109. type Txcb_generic_iterator_t = struct {
  2110. Fdata uintptr
  2111. Frem int32
  2112. Findex int32
  2113. }
  2114. type Txcb_generic_reply_t = struct {
  2115. Fresponse_type Tuint8_t
  2116. Fpad0 Tuint8_t
  2117. Fsequence Tuint16_t
  2118. Flength Tuint32_t
  2119. }
  2120. type Txcb_generic_event_t = struct {
  2121. Fresponse_type Tuint8_t
  2122. Fpad0 Tuint8_t
  2123. Fsequence Tuint16_t
  2124. Fpad [7]Tuint32_t
  2125. Ffull_sequence Tuint32_t
  2126. }
  2127. type Txcb_raw_generic_event_t = struct {
  2128. Fresponse_type Tuint8_t
  2129. Fpad0 Tuint8_t
  2130. Fsequence Tuint16_t
  2131. Fpad [7]Tuint32_t
  2132. }
  2133. type Txcb_ge_event_t = struct {
  2134. Fresponse_type Tuint8_t
  2135. Fpad0 Tuint8_t
  2136. Fsequence Tuint16_t
  2137. Flength Tuint32_t
  2138. Fevent_type Tuint16_t
  2139. Fpad1 Tuint16_t
  2140. Fpad [5]Tuint32_t
  2141. Ffull_sequence Tuint32_t
  2142. }
  2143. type Txcb_generic_error_t = struct {
  2144. Fresponse_type Tuint8_t
  2145. Ferror_code Tuint8_t
  2146. Fsequence Tuint16_t
  2147. Fresource_id Tuint32_t
  2148. Fminor_code Tuint16_t
  2149. Fmajor_code Tuint8_t
  2150. Fpad0 Tuint8_t
  2151. Fpad [5]Tuint32_t
  2152. Ffull_sequence Tuint32_t
  2153. }
  2154. type Txcb_void_cookie_t = struct {
  2155. Fsequence uint32
  2156. }
  2157. type Txcb_char2b_t = struct {
  2158. Fbyte1 Tuint8_t
  2159. Fbyte2 Tuint8_t
  2160. }
  2161. type Txcb_char2b_iterator_t = struct {
  2162. Fdata uintptr
  2163. Frem int32
  2164. Findex int32
  2165. }
  2166. type Txcb_window_t = uint32
  2167. type Txcb_window_iterator_t = struct {
  2168. Fdata uintptr
  2169. Frem int32
  2170. Findex int32
  2171. }
  2172. type Txcb_pixmap_t = uint32
  2173. type Txcb_pixmap_iterator_t = struct {
  2174. Fdata uintptr
  2175. Frem int32
  2176. Findex int32
  2177. }
  2178. type Txcb_cursor_t = uint32
  2179. type Txcb_cursor_iterator_t = struct {
  2180. Fdata uintptr
  2181. Frem int32
  2182. Findex int32
  2183. }
  2184. type Txcb_font_t = uint32
  2185. type Txcb_font_iterator_t = struct {
  2186. Fdata uintptr
  2187. Frem int32
  2188. Findex int32
  2189. }
  2190. type Txcb_gcontext_t = uint32
  2191. type Txcb_gcontext_iterator_t = struct {
  2192. Fdata uintptr
  2193. Frem int32
  2194. Findex int32
  2195. }
  2196. type Txcb_colormap_t = uint32
  2197. type Txcb_colormap_iterator_t = struct {
  2198. Fdata uintptr
  2199. Frem int32
  2200. Findex int32
  2201. }
  2202. type Txcb_atom_t = uint32
  2203. type Txcb_atom_iterator_t = struct {
  2204. Fdata uintptr
  2205. Frem int32
  2206. Findex int32
  2207. }
  2208. type Txcb_drawable_t = uint32
  2209. type Txcb_drawable_iterator_t = struct {
  2210. Fdata uintptr
  2211. Frem int32
  2212. Findex int32
  2213. }
  2214. type Txcb_fontable_t = uint32
  2215. type Txcb_fontable_iterator_t = struct {
  2216. Fdata uintptr
  2217. Frem int32
  2218. Findex int32
  2219. }
  2220. type Txcb_bool32_t = uint32
  2221. type Txcb_bool32_iterator_t = struct {
  2222. Fdata uintptr
  2223. Frem int32
  2224. Findex int32
  2225. }
  2226. type Txcb_visualid_t = uint32
  2227. type Txcb_visualid_iterator_t = struct {
  2228. Fdata uintptr
  2229. Frem int32
  2230. Findex int32
  2231. }
  2232. type Txcb_timestamp_t = uint32
  2233. type Txcb_timestamp_iterator_t = struct {
  2234. Fdata uintptr
  2235. Frem int32
  2236. Findex int32
  2237. }
  2238. type Txcb_keysym_t = uint32
  2239. type Txcb_keysym_iterator_t = struct {
  2240. Fdata uintptr
  2241. Frem int32
  2242. Findex int32
  2243. }
  2244. type Txcb_keycode_t = uint8
  2245. type Txcb_keycode_iterator_t = struct {
  2246. Fdata uintptr
  2247. Frem int32
  2248. Findex int32
  2249. }
  2250. type Txcb_keycode32_t = uint32
  2251. type Txcb_keycode32_iterator_t = struct {
  2252. Fdata uintptr
  2253. Frem int32
  2254. Findex int32
  2255. }
  2256. type Txcb_button_t = uint8
  2257. type Txcb_button_iterator_t = struct {
  2258. Fdata uintptr
  2259. Frem int32
  2260. Findex int32
  2261. }
  2262. type Txcb_point_t = struct {
  2263. Fx Tint16_t
  2264. Fy Tint16_t
  2265. }
  2266. type Txcb_point_iterator_t = struct {
  2267. Fdata uintptr
  2268. Frem int32
  2269. Findex int32
  2270. }
  2271. type Txcb_rectangle_t = struct {
  2272. Fx Tint16_t
  2273. Fy Tint16_t
  2274. Fwidth Tuint16_t
  2275. Fheight Tuint16_t
  2276. }
  2277. type Txcb_rectangle_iterator_t = struct {
  2278. Fdata uintptr
  2279. Frem int32
  2280. Findex int32
  2281. }
  2282. type Txcb_arc_t = struct {
  2283. Fx Tint16_t
  2284. Fy Tint16_t
  2285. Fwidth Tuint16_t
  2286. Fheight Tuint16_t
  2287. Fangle1 Tint16_t
  2288. Fangle2 Tint16_t
  2289. }
  2290. type Txcb_arc_iterator_t = struct {
  2291. Fdata uintptr
  2292. Frem int32
  2293. Findex int32
  2294. }
  2295. type Txcb_format_t = struct {
  2296. Fdepth Tuint8_t
  2297. Fbits_per_pixel Tuint8_t
  2298. Fscanline_pad Tuint8_t
  2299. Fpad0 [5]Tuint8_t
  2300. }
  2301. type Txcb_format_iterator_t = struct {
  2302. Fdata uintptr
  2303. Frem int32
  2304. Findex int32
  2305. }
  2306. type Txcb_visual_class_t = int32
  2307. type _xcb_visual_class_t = int32
  2308. const _XCB_VISUAL_CLASS_STATIC_GRAY = 0
  2309. const _XCB_VISUAL_CLASS_GRAY_SCALE = 1
  2310. const _XCB_VISUAL_CLASS_STATIC_COLOR = 2
  2311. const _XCB_VISUAL_CLASS_PSEUDO_COLOR = 3
  2312. const _XCB_VISUAL_CLASS_TRUE_COLOR = 4
  2313. const _XCB_VISUAL_CLASS_DIRECT_COLOR = 5
  2314. type Txcb_visualtype_t = struct {
  2315. Fvisual_id Txcb_visualid_t
  2316. F_class Tuint8_t
  2317. Fbits_per_rgb_value Tuint8_t
  2318. Fcolormap_entries Tuint16_t
  2319. Fred_mask Tuint32_t
  2320. Fgreen_mask Tuint32_t
  2321. Fblue_mask Tuint32_t
  2322. Fpad0 [4]Tuint8_t
  2323. }
  2324. type Txcb_visualtype_iterator_t = struct {
  2325. Fdata uintptr
  2326. Frem int32
  2327. Findex int32
  2328. }
  2329. type Txcb_depth_t = struct {
  2330. Fdepth Tuint8_t
  2331. Fpad0 Tuint8_t
  2332. Fvisuals_len Tuint16_t
  2333. Fpad1 [4]Tuint8_t
  2334. }
  2335. type Txcb_depth_iterator_t = struct {
  2336. Fdata uintptr
  2337. Frem int32
  2338. Findex int32
  2339. }
  2340. type Txcb_event_mask_t = int32
  2341. type _xcb_event_mask_t = int32
  2342. const _XCB_EVENT_MASK_NO_EVENT = 0
  2343. const _XCB_EVENT_MASK_KEY_PRESS = 1
  2344. const _XCB_EVENT_MASK_KEY_RELEASE = 2
  2345. const _XCB_EVENT_MASK_BUTTON_PRESS = 4
  2346. const _XCB_EVENT_MASK_BUTTON_RELEASE = 8
  2347. const _XCB_EVENT_MASK_ENTER_WINDOW = 16
  2348. const _XCB_EVENT_MASK_LEAVE_WINDOW = 32
  2349. const _XCB_EVENT_MASK_POINTER_MOTION = 64
  2350. const _XCB_EVENT_MASK_POINTER_MOTION_HINT = 128
  2351. const _XCB_EVENT_MASK_BUTTON_1_MOTION = 256
  2352. const _XCB_EVENT_MASK_BUTTON_2_MOTION = 512
  2353. const _XCB_EVENT_MASK_BUTTON_3_MOTION = 1024
  2354. const _XCB_EVENT_MASK_BUTTON_4_MOTION = 2048
  2355. const _XCB_EVENT_MASK_BUTTON_5_MOTION = 4096
  2356. const _XCB_EVENT_MASK_BUTTON_MOTION = 8192
  2357. const _XCB_EVENT_MASK_KEYMAP_STATE = 16384
  2358. const _XCB_EVENT_MASK_EXPOSURE = 32768
  2359. const _XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536
  2360. const _XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072
  2361. const _XCB_EVENT_MASK_RESIZE_REDIRECT = 262144
  2362. const _XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288
  2363. const _XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576
  2364. const _XCB_EVENT_MASK_FOCUS_CHANGE = 2097152
  2365. const _XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304
  2366. const _XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608
  2367. const _XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
  2368. type Txcb_backing_store_t = int32
  2369. type _xcb_backing_store_t = int32
  2370. const _XCB_BACKING_STORE_NOT_USEFUL = 0
  2371. const _XCB_BACKING_STORE_WHEN_MAPPED = 1
  2372. const _XCB_BACKING_STORE_ALWAYS = 2
  2373. type Txcb_screen_t = struct {
  2374. Froot Txcb_window_t
  2375. Fdefault_colormap Txcb_colormap_t
  2376. Fwhite_pixel Tuint32_t
  2377. Fblack_pixel Tuint32_t
  2378. Fcurrent_input_masks Tuint32_t
  2379. Fwidth_in_pixels Tuint16_t
  2380. Fheight_in_pixels Tuint16_t
  2381. Fwidth_in_millimeters Tuint16_t
  2382. Fheight_in_millimeters Tuint16_t
  2383. Fmin_installed_maps Tuint16_t
  2384. Fmax_installed_maps Tuint16_t
  2385. Froot_visual Txcb_visualid_t
  2386. Fbacking_stores Tuint8_t
  2387. Fsave_unders Tuint8_t
  2388. Froot_depth Tuint8_t
  2389. Fallowed_depths_len Tuint8_t
  2390. }
  2391. type Txcb_screen_iterator_t = struct {
  2392. Fdata uintptr
  2393. Frem int32
  2394. Findex int32
  2395. }
  2396. type Txcb_setup_request_t = struct {
  2397. Fbyte_order Tuint8_t
  2398. Fpad0 Tuint8_t
  2399. Fprotocol_major_version Tuint16_t
  2400. Fprotocol_minor_version Tuint16_t
  2401. Fauthorization_protocol_name_len Tuint16_t
  2402. Fauthorization_protocol_data_len Tuint16_t
  2403. Fpad1 [2]Tuint8_t
  2404. }
  2405. type Txcb_setup_request_iterator_t = struct {
  2406. Fdata uintptr
  2407. Frem int32
  2408. Findex int32
  2409. }
  2410. type Txcb_setup_failed_t = struct {
  2411. Fstatus Tuint8_t
  2412. Freason_len Tuint8_t
  2413. Fprotocol_major_version Tuint16_t
  2414. Fprotocol_minor_version Tuint16_t
  2415. Flength Tuint16_t
  2416. }
  2417. type Txcb_setup_failed_iterator_t = struct {
  2418. Fdata uintptr
  2419. Frem int32
  2420. Findex int32
  2421. }
  2422. type Txcb_setup_authenticate_t = struct {
  2423. Fstatus Tuint8_t
  2424. Fpad0 [5]Tuint8_t
  2425. Flength Tuint16_t
  2426. }
  2427. type Txcb_setup_authenticate_iterator_t = struct {
  2428. Fdata uintptr
  2429. Frem int32
  2430. Findex int32
  2431. }
  2432. type Txcb_image_order_t = int32
  2433. type _xcb_image_order_t = int32
  2434. const _XCB_IMAGE_ORDER_LSB_FIRST = 0
  2435. const _XCB_IMAGE_ORDER_MSB_FIRST = 1
  2436. type Txcb_setup_t = struct {
  2437. Fstatus Tuint8_t
  2438. Fpad0 Tuint8_t
  2439. Fprotocol_major_version Tuint16_t
  2440. Fprotocol_minor_version Tuint16_t
  2441. Flength Tuint16_t
  2442. Frelease_number Tuint32_t
  2443. Fresource_id_base Tuint32_t
  2444. Fresource_id_mask Tuint32_t
  2445. Fmotion_buffer_size Tuint32_t
  2446. Fvendor_len Tuint16_t
  2447. Fmaximum_request_length Tuint16_t
  2448. Froots_len Tuint8_t
  2449. Fpixmap_formats_len Tuint8_t
  2450. Fimage_byte_order Tuint8_t
  2451. Fbitmap_format_bit_order Tuint8_t
  2452. Fbitmap_format_scanline_unit Tuint8_t
  2453. Fbitmap_format_scanline_pad Tuint8_t
  2454. Fmin_keycode Txcb_keycode_t
  2455. Fmax_keycode Txcb_keycode_t
  2456. Fpad1 [4]Tuint8_t
  2457. }
  2458. type Txcb_setup_iterator_t = struct {
  2459. Fdata uintptr
  2460. Frem int32
  2461. Findex int32
  2462. }
  2463. type Txcb_mod_mask_t = int32
  2464. type _xcb_mod_mask_t = int32
  2465. const _XCB_MOD_MASK_SHIFT = 1
  2466. const _XCB_MOD_MASK_LOCK = 2
  2467. const _XCB_MOD_MASK_CONTROL = 4
  2468. const _XCB_MOD_MASK_1 = 8
  2469. const _XCB_MOD_MASK_2 = 16
  2470. const _XCB_MOD_MASK_3 = 32
  2471. const _XCB_MOD_MASK_4 = 64
  2472. const _XCB_MOD_MASK_5 = 128
  2473. const _XCB_MOD_MASK_ANY = 32768
  2474. type Txcb_key_but_mask_t = int32
  2475. type _xcb_key_but_mask_t = int32
  2476. const _XCB_KEY_BUT_MASK_SHIFT = 1
  2477. const _XCB_KEY_BUT_MASK_LOCK = 2
  2478. const _XCB_KEY_BUT_MASK_CONTROL = 4
  2479. const _XCB_KEY_BUT_MASK_MOD_1 = 8
  2480. const _XCB_KEY_BUT_MASK_MOD_2 = 16
  2481. const _XCB_KEY_BUT_MASK_MOD_3 = 32
  2482. const _XCB_KEY_BUT_MASK_MOD_4 = 64
  2483. const _XCB_KEY_BUT_MASK_MOD_5 = 128
  2484. const _XCB_KEY_BUT_MASK_BUTTON_1 = 256
  2485. const _XCB_KEY_BUT_MASK_BUTTON_2 = 512
  2486. const _XCB_KEY_BUT_MASK_BUTTON_3 = 1024
  2487. const _XCB_KEY_BUT_MASK_BUTTON_4 = 2048
  2488. const _XCB_KEY_BUT_MASK_BUTTON_5 = 4096
  2489. type Txcb_window_enum_t = int32
  2490. type _xcb_window_enum_t = int32
  2491. const _XCB_WINDOW_NONE = 0
  2492. type Txcb_key_press_event_t = struct {
  2493. Fresponse_type Tuint8_t
  2494. Fdetail Txcb_keycode_t
  2495. Fsequence Tuint16_t
  2496. Ftime Txcb_timestamp_t
  2497. Froot Txcb_window_t
  2498. Fevent Txcb_window_t
  2499. Fchild Txcb_window_t
  2500. Froot_x Tint16_t
  2501. Froot_y Tint16_t
  2502. Fevent_x Tint16_t
  2503. Fevent_y Tint16_t
  2504. Fstate Tuint16_t
  2505. Fsame_screen Tuint8_t
  2506. Fpad0 Tuint8_t
  2507. }
  2508. type Txcb_key_release_event_t = struct {
  2509. Fresponse_type Tuint8_t
  2510. Fdetail Txcb_keycode_t
  2511. Fsequence Tuint16_t
  2512. Ftime Txcb_timestamp_t
  2513. Froot Txcb_window_t
  2514. Fevent Txcb_window_t
  2515. Fchild Txcb_window_t
  2516. Froot_x Tint16_t
  2517. Froot_y Tint16_t
  2518. Fevent_x Tint16_t
  2519. Fevent_y Tint16_t
  2520. Fstate Tuint16_t
  2521. Fsame_screen Tuint8_t
  2522. Fpad0 Tuint8_t
  2523. }
  2524. type Txcb_key_press_event_t1 = Txcb_key_release_event_t
  2525. type Txcb_button_mask_t = int32
  2526. type _xcb_button_mask_t = int32
  2527. const _XCB_BUTTON_MASK_1 = 256
  2528. const _XCB_BUTTON_MASK_2 = 512
  2529. const _XCB_BUTTON_MASK_3 = 1024
  2530. const _XCB_BUTTON_MASK_4 = 2048
  2531. const _XCB_BUTTON_MASK_5 = 4096
  2532. const _XCB_BUTTON_MASK_ANY = 32768
  2533. type Txcb_button_press_event_t = struct {
  2534. Fresponse_type Tuint8_t
  2535. Fdetail Txcb_button_t
  2536. Fsequence Tuint16_t
  2537. Ftime Txcb_timestamp_t
  2538. Froot Txcb_window_t
  2539. Fevent Txcb_window_t
  2540. Fchild Txcb_window_t
  2541. Froot_x Tint16_t
  2542. Froot_y Tint16_t
  2543. Fevent_x Tint16_t
  2544. Fevent_y Tint16_t
  2545. Fstate Tuint16_t
  2546. Fsame_screen Tuint8_t
  2547. Fpad0 Tuint8_t
  2548. }
  2549. type Txcb_button_release_event_t = struct {
  2550. Fresponse_type Tuint8_t
  2551. Fdetail Txcb_button_t
  2552. Fsequence Tuint16_t
  2553. Ftime Txcb_timestamp_t
  2554. Froot Txcb_window_t
  2555. Fevent Txcb_window_t
  2556. Fchild Txcb_window_t
  2557. Froot_x Tint16_t
  2558. Froot_y Tint16_t
  2559. Fevent_x Tint16_t
  2560. Fevent_y Tint16_t
  2561. Fstate Tuint16_t
  2562. Fsame_screen Tuint8_t
  2563. Fpad0 Tuint8_t
  2564. }
  2565. type Txcb_button_press_event_t1 = Txcb_button_release_event_t
  2566. type Txcb_motion_t = int32
  2567. type _xcb_motion_t = int32
  2568. const _XCB_MOTION_NORMAL = 0
  2569. const _XCB_MOTION_HINT = 1
  2570. type Txcb_motion_notify_event_t = struct {
  2571. Fresponse_type Tuint8_t
  2572. Fdetail Tuint8_t
  2573. Fsequence Tuint16_t
  2574. Ftime Txcb_timestamp_t
  2575. Froot Txcb_window_t
  2576. Fevent Txcb_window_t
  2577. Fchild Txcb_window_t
  2578. Froot_x Tint16_t
  2579. Froot_y Tint16_t
  2580. Fevent_x Tint16_t
  2581. Fevent_y Tint16_t
  2582. Fstate Tuint16_t
  2583. Fsame_screen Tuint8_t
  2584. Fpad0 Tuint8_t
  2585. }
  2586. type Txcb_notify_detail_t = int32
  2587. type _xcb_notify_detail_t = int32
  2588. const _XCB_NOTIFY_DETAIL_ANCESTOR = 0
  2589. const _XCB_NOTIFY_DETAIL_VIRTUAL = 1
  2590. const _XCB_NOTIFY_DETAIL_INFERIOR = 2
  2591. const _XCB_NOTIFY_DETAIL_NONLINEAR = 3
  2592. const _XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4
  2593. const _XCB_NOTIFY_DETAIL_POINTER = 5
  2594. const _XCB_NOTIFY_DETAIL_POINTER_ROOT = 6
  2595. const _XCB_NOTIFY_DETAIL_NONE = 7
  2596. type Txcb_notify_mode_t = int32
  2597. type _xcb_notify_mode_t = int32
  2598. const _XCB_NOTIFY_MODE_NORMAL = 0
  2599. const _XCB_NOTIFY_MODE_GRAB = 1
  2600. const _XCB_NOTIFY_MODE_UNGRAB = 2
  2601. const _XCB_NOTIFY_MODE_WHILE_GRABBED = 3
  2602. type Txcb_enter_notify_event_t = struct {
  2603. Fresponse_type Tuint8_t
  2604. Fdetail Tuint8_t
  2605. Fsequence Tuint16_t
  2606. Ftime Txcb_timestamp_t
  2607. Froot Txcb_window_t
  2608. Fevent Txcb_window_t
  2609. Fchild Txcb_window_t
  2610. Froot_x Tint16_t
  2611. Froot_y Tint16_t
  2612. Fevent_x Tint16_t
  2613. Fevent_y Tint16_t
  2614. Fstate Tuint16_t
  2615. Fmode Tuint8_t
  2616. Fsame_screen_focus Tuint8_t
  2617. }
  2618. type Txcb_leave_notify_event_t = struct {
  2619. Fresponse_type Tuint8_t
  2620. Fdetail Tuint8_t
  2621. Fsequence Tuint16_t
  2622. Ftime Txcb_timestamp_t
  2623. Froot Txcb_window_t
  2624. Fevent Txcb_window_t
  2625. Fchild Txcb_window_t
  2626. Froot_x Tint16_t
  2627. Froot_y Tint16_t
  2628. Fevent_x Tint16_t
  2629. Fevent_y Tint16_t
  2630. Fstate Tuint16_t
  2631. Fmode Tuint8_t
  2632. Fsame_screen_focus Tuint8_t
  2633. }
  2634. type Txcb_enter_notify_event_t1 = Txcb_leave_notify_event_t
  2635. type Txcb_focus_in_event_t = struct {
  2636. Fresponse_type Tuint8_t
  2637. Fdetail Tuint8_t
  2638. Fsequence Tuint16_t
  2639. Fevent Txcb_window_t
  2640. Fmode Tuint8_t
  2641. Fpad0 [3]Tuint8_t
  2642. }
  2643. type Txcb_focus_out_event_t = struct {
  2644. Fresponse_type Tuint8_t
  2645. Fdetail Tuint8_t
  2646. Fsequence Tuint16_t
  2647. Fevent Txcb_window_t
  2648. Fmode Tuint8_t
  2649. Fpad0 [3]Tuint8_t
  2650. }
  2651. type Txcb_focus_in_event_t1 = Txcb_focus_out_event_t
  2652. type Txcb_keymap_notify_event_t = struct {
  2653. Fresponse_type Tuint8_t
  2654. Fkeys [31]Tuint8_t
  2655. }
  2656. type Txcb_expose_event_t = struct {
  2657. Fresponse_type Tuint8_t
  2658. Fpad0 Tuint8_t
  2659. Fsequence Tuint16_t
  2660. Fwindow Txcb_window_t
  2661. Fx Tuint16_t
  2662. Fy Tuint16_t
  2663. Fwidth Tuint16_t
  2664. Fheight Tuint16_t
  2665. Fcount Tuint16_t
  2666. Fpad1 [2]Tuint8_t
  2667. }
  2668. type Txcb_graphics_exposure_event_t = struct {
  2669. Fresponse_type Tuint8_t
  2670. Fpad0 Tuint8_t
  2671. Fsequence Tuint16_t
  2672. Fdrawable Txcb_drawable_t
  2673. Fx Tuint16_t
  2674. Fy Tuint16_t
  2675. Fwidth Tuint16_t
  2676. Fheight Tuint16_t
  2677. Fminor_opcode Tuint16_t
  2678. Fcount Tuint16_t
  2679. Fmajor_opcode Tuint8_t
  2680. Fpad1 [3]Tuint8_t
  2681. }
  2682. type Txcb_no_exposure_event_t = struct {
  2683. Fresponse_type Tuint8_t
  2684. Fpad0 Tuint8_t
  2685. Fsequence Tuint16_t
  2686. Fdrawable Txcb_drawable_t
  2687. Fminor_opcode Tuint16_t
  2688. Fmajor_opcode Tuint8_t
  2689. Fpad1 Tuint8_t
  2690. }
  2691. type Txcb_visibility_t = int32
  2692. type _xcb_visibility_t = int32
  2693. const _XCB_VISIBILITY_UNOBSCURED = 0
  2694. const _XCB_VISIBILITY_PARTIALLY_OBSCURED = 1
  2695. const _XCB_VISIBILITY_FULLY_OBSCURED = 2
  2696. type Txcb_visibility_notify_event_t = struct {
  2697. Fresponse_type Tuint8_t
  2698. Fpad0 Tuint8_t
  2699. Fsequence Tuint16_t
  2700. Fwindow Txcb_window_t
  2701. Fstate Tuint8_t
  2702. Fpad1 [3]Tuint8_t
  2703. }
  2704. type Txcb_create_notify_event_t = struct {
  2705. Fresponse_type Tuint8_t
  2706. Fpad0 Tuint8_t
  2707. Fsequence Tuint16_t
  2708. Fparent Txcb_window_t
  2709. Fwindow Txcb_window_t
  2710. Fx Tint16_t
  2711. Fy Tint16_t
  2712. Fwidth Tuint16_t
  2713. Fheight Tuint16_t
  2714. Fborder_width Tuint16_t
  2715. Foverride_redirect Tuint8_t
  2716. Fpad1 Tuint8_t
  2717. }
  2718. type Txcb_destroy_notify_event_t = struct {
  2719. Fresponse_type Tuint8_t
  2720. Fpad0 Tuint8_t
  2721. Fsequence Tuint16_t
  2722. Fevent Txcb_window_t
  2723. Fwindow Txcb_window_t
  2724. }
  2725. type Txcb_unmap_notify_event_t = struct {
  2726. Fresponse_type Tuint8_t
  2727. Fpad0 Tuint8_t
  2728. Fsequence Tuint16_t
  2729. Fevent Txcb_window_t
  2730. Fwindow Txcb_window_t
  2731. Ffrom_configure Tuint8_t
  2732. Fpad1 [3]Tuint8_t
  2733. }
  2734. type Txcb_map_notify_event_t = struct {
  2735. Fresponse_type Tuint8_t
  2736. Fpad0 Tuint8_t
  2737. Fsequence Tuint16_t
  2738. Fevent Txcb_window_t
  2739. Fwindow Txcb_window_t
  2740. Foverride_redirect Tuint8_t
  2741. Fpad1 [3]Tuint8_t
  2742. }
  2743. type Txcb_map_request_event_t = struct {
  2744. Fresponse_type Tuint8_t
  2745. Fpad0 Tuint8_t
  2746. Fsequence Tuint16_t
  2747. Fparent Txcb_window_t
  2748. Fwindow Txcb_window_t
  2749. }
  2750. type Txcb_reparent_notify_event_t = struct {
  2751. Fresponse_type Tuint8_t
  2752. Fpad0 Tuint8_t
  2753. Fsequence Tuint16_t
  2754. Fevent Txcb_window_t
  2755. Fwindow Txcb_window_t
  2756. Fparent Txcb_window_t
  2757. Fx Tint16_t
  2758. Fy Tint16_t
  2759. Foverride_redirect Tuint8_t
  2760. Fpad1 [3]Tuint8_t
  2761. }
  2762. type Txcb_configure_notify_event_t = struct {
  2763. Fresponse_type Tuint8_t
  2764. Fpad0 Tuint8_t
  2765. Fsequence Tuint16_t
  2766. Fevent Txcb_window_t
  2767. Fwindow Txcb_window_t
  2768. Fabove_sibling Txcb_window_t
  2769. Fx Tint16_t
  2770. Fy Tint16_t
  2771. Fwidth Tuint16_t
  2772. Fheight Tuint16_t
  2773. Fborder_width Tuint16_t
  2774. Foverride_redirect Tuint8_t
  2775. Fpad1 Tuint8_t
  2776. }
  2777. type Txcb_configure_request_event_t = struct {
  2778. Fresponse_type Tuint8_t
  2779. Fstack_mode Tuint8_t
  2780. Fsequence Tuint16_t
  2781. Fparent Txcb_window_t
  2782. Fwindow Txcb_window_t
  2783. Fsibling Txcb_window_t
  2784. Fx Tint16_t
  2785. Fy Tint16_t
  2786. Fwidth Tuint16_t
  2787. Fheight Tuint16_t
  2788. Fborder_width Tuint16_t
  2789. Fvalue_mask Tuint16_t
  2790. }
  2791. type Txcb_gravity_notify_event_t = struct {
  2792. Fresponse_type Tuint8_t
  2793. Fpad0 Tuint8_t
  2794. Fsequence Tuint16_t
  2795. Fevent Txcb_window_t
  2796. Fwindow Txcb_window_t
  2797. Fx Tint16_t
  2798. Fy Tint16_t
  2799. }
  2800. type Txcb_resize_request_event_t = struct {
  2801. Fresponse_type Tuint8_t
  2802. Fpad0 Tuint8_t
  2803. Fsequence Tuint16_t
  2804. Fwindow Txcb_window_t
  2805. Fwidth Tuint16_t
  2806. Fheight Tuint16_t
  2807. }
  2808. type Txcb_place_t = int32
  2809. type _xcb_place_t = int32
  2810. const _XCB_PLACE_ON_TOP = 0
  2811. const _XCB_PLACE_ON_BOTTOM = 1
  2812. type Txcb_circulate_notify_event_t = struct {
  2813. Fresponse_type Tuint8_t
  2814. Fpad0 Tuint8_t
  2815. Fsequence Tuint16_t
  2816. Fevent Txcb_window_t
  2817. Fwindow Txcb_window_t
  2818. Fpad1 [4]Tuint8_t
  2819. Fplace Tuint8_t
  2820. Fpad2 [3]Tuint8_t
  2821. }
  2822. type Txcb_circulate_request_event_t = struct {
  2823. Fresponse_type Tuint8_t
  2824. Fpad0 Tuint8_t
  2825. Fsequence Tuint16_t
  2826. Fevent Txcb_window_t
  2827. Fwindow Txcb_window_t
  2828. Fpad1 [4]Tuint8_t
  2829. Fplace Tuint8_t
  2830. Fpad2 [3]Tuint8_t
  2831. }
  2832. type Txcb_circulate_notify_event_t1 = Txcb_circulate_request_event_t
  2833. type Txcb_property_t = int32
  2834. type _xcb_property_t = int32
  2835. const _XCB_PROPERTY_NEW_VALUE = 0
  2836. const _XCB_PROPERTY_DELETE = 1
  2837. type Txcb_property_notify_event_t = struct {
  2838. Fresponse_type Tuint8_t
  2839. Fpad0 Tuint8_t
  2840. Fsequence Tuint16_t
  2841. Fwindow Txcb_window_t
  2842. Fatom Txcb_atom_t
  2843. Ftime Txcb_timestamp_t
  2844. Fstate Tuint8_t
  2845. Fpad1 [3]Tuint8_t
  2846. }
  2847. type Txcb_selection_clear_event_t = struct {
  2848. Fresponse_type Tuint8_t
  2849. Fpad0 Tuint8_t
  2850. Fsequence Tuint16_t
  2851. Ftime Txcb_timestamp_t
  2852. Fowner Txcb_window_t
  2853. Fselection Txcb_atom_t
  2854. }
  2855. type Txcb_time_t = int32
  2856. type _xcb_time_t = int32
  2857. const _XCB_TIME_CURRENT_TIME = 0
  2858. type Txcb_atom_enum_t = int32
  2859. type _xcb_atom_enum_t = int32
  2860. const _XCB_ATOM_NONE = 0
  2861. const _XCB_ATOM_ANY = 0
  2862. const _XCB_ATOM_PRIMARY = 1
  2863. const _XCB_ATOM_SECONDARY = 2
  2864. const _XCB_ATOM_ARC = 3
  2865. const _XCB_ATOM_ATOM = 4
  2866. const _XCB_ATOM_BITMAP = 5
  2867. const _XCB_ATOM_CARDINAL = 6
  2868. const _XCB_ATOM_COLORMAP = 7
  2869. const _XCB_ATOM_CURSOR = 8
  2870. const _XCB_ATOM_CUT_BUFFER0 = 9
  2871. const _XCB_ATOM_CUT_BUFFER1 = 10
  2872. const _XCB_ATOM_CUT_BUFFER2 = 11
  2873. const _XCB_ATOM_CUT_BUFFER3 = 12
  2874. const _XCB_ATOM_CUT_BUFFER4 = 13
  2875. const _XCB_ATOM_CUT_BUFFER5 = 14
  2876. const _XCB_ATOM_CUT_BUFFER6 = 15
  2877. const _XCB_ATOM_CUT_BUFFER7 = 16
  2878. const _XCB_ATOM_DRAWABLE = 17
  2879. const _XCB_ATOM_FONT = 18
  2880. const _XCB_ATOM_INTEGER = 19
  2881. const _XCB_ATOM_PIXMAP = 20
  2882. const _XCB_ATOM_POINT = 21
  2883. const _XCB_ATOM_RECTANGLE = 22
  2884. const _XCB_ATOM_RESOURCE_MANAGER = 23
  2885. const _XCB_ATOM_RGB_COLOR_MAP = 24
  2886. const _XCB_ATOM_RGB_BEST_MAP = 25
  2887. const _XCB_ATOM_RGB_BLUE_MAP = 26
  2888. const _XCB_ATOM_RGB_DEFAULT_MAP = 27
  2889. const _XCB_ATOM_RGB_GRAY_MAP = 28
  2890. const _XCB_ATOM_RGB_GREEN_MAP = 29
  2891. const _XCB_ATOM_RGB_RED_MAP = 30
  2892. const _XCB_ATOM_STRING = 31
  2893. const _XCB_ATOM_VISUALID = 32
  2894. const _XCB_ATOM_WINDOW = 33
  2895. const _XCB_ATOM_WM_COMMAND = 34
  2896. const _XCB_ATOM_WM_HINTS = 35
  2897. const _XCB_ATOM_WM_CLIENT_MACHINE = 36
  2898. const _XCB_ATOM_WM_ICON_NAME = 37
  2899. const _XCB_ATOM_WM_ICON_SIZE = 38
  2900. const _XCB_ATOM_WM_NAME = 39
  2901. const _XCB_ATOM_WM_NORMAL_HINTS = 40
  2902. const _XCB_ATOM_WM_SIZE_HINTS = 41
  2903. const _XCB_ATOM_WM_ZOOM_HINTS = 42
  2904. const _XCB_ATOM_MIN_SPACE = 43
  2905. const _XCB_ATOM_NORM_SPACE = 44
  2906. const _XCB_ATOM_MAX_SPACE = 45
  2907. const _XCB_ATOM_END_SPACE = 46
  2908. const _XCB_ATOM_SUPERSCRIPT_X = 47
  2909. const _XCB_ATOM_SUPERSCRIPT_Y = 48
  2910. const _XCB_ATOM_SUBSCRIPT_X = 49
  2911. const _XCB_ATOM_SUBSCRIPT_Y = 50
  2912. const _XCB_ATOM_UNDERLINE_POSITION = 51
  2913. const _XCB_ATOM_UNDERLINE_THICKNESS = 52
  2914. const _XCB_ATOM_STRIKEOUT_ASCENT = 53
  2915. const _XCB_ATOM_STRIKEOUT_DESCENT = 54
  2916. const _XCB_ATOM_ITALIC_ANGLE = 55
  2917. const _XCB_ATOM_X_HEIGHT = 56
  2918. const _XCB_ATOM_QUAD_WIDTH = 57
  2919. const _XCB_ATOM_WEIGHT = 58
  2920. const _XCB_ATOM_POINT_SIZE = 59
  2921. const _XCB_ATOM_RESOLUTION = 60
  2922. const _XCB_ATOM_COPYRIGHT = 61
  2923. const _XCB_ATOM_NOTICE = 62
  2924. const _XCB_ATOM_FONT_NAME = 63
  2925. const _XCB_ATOM_FAMILY_NAME = 64
  2926. const _XCB_ATOM_FULL_NAME = 65
  2927. const _XCB_ATOM_CAP_HEIGHT = 66
  2928. const _XCB_ATOM_WM_CLASS = 67
  2929. const _XCB_ATOM_WM_TRANSIENT_FOR = 68
  2930. type Txcb_selection_request_event_t = struct {
  2931. Fresponse_type Tuint8_t
  2932. Fpad0 Tuint8_t
  2933. Fsequence Tuint16_t
  2934. Ftime Txcb_timestamp_t
  2935. Fowner Txcb_window_t
  2936. Frequestor Txcb_window_t
  2937. Fselection Txcb_atom_t
  2938. Ftarget Txcb_atom_t
  2939. Fproperty Txcb_atom_t
  2940. }
  2941. type Txcb_selection_notify_event_t = struct {
  2942. Fresponse_type Tuint8_t
  2943. Fpad0 Tuint8_t
  2944. Fsequence Tuint16_t
  2945. Ftime Txcb_timestamp_t
  2946. Frequestor Txcb_window_t
  2947. Fselection Txcb_atom_t
  2948. Ftarget Txcb_atom_t
  2949. Fproperty Txcb_atom_t
  2950. }
  2951. type Txcb_colormap_state_t = int32
  2952. type _xcb_colormap_state_t = int32
  2953. const _XCB_COLORMAP_STATE_UNINSTALLED = 0
  2954. const _XCB_COLORMAP_STATE_INSTALLED = 1
  2955. type Txcb_colormap_enum_t = int32
  2956. type _xcb_colormap_enum_t = int32
  2957. const _XCB_COLORMAP_NONE = 0
  2958. type Txcb_colormap_notify_event_t = struct {
  2959. Fresponse_type Tuint8_t
  2960. Fpad0 Tuint8_t
  2961. Fsequence Tuint16_t
  2962. Fwindow Txcb_window_t
  2963. Fcolormap Txcb_colormap_t
  2964. F_new Tuint8_t
  2965. Fstate Tuint8_t
  2966. Fpad1 [2]Tuint8_t
  2967. }
  2968. type Txcb_client_message_data_t = struct {
  2969. Fdata16 [0][10]Tuint16_t
  2970. Fdata32 [0][5]Tuint32_t
  2971. Fdata8 [20]Tuint8_t
  2972. }
  2973. type Txcb_client_message_data_iterator_t = struct {
  2974. Fdata uintptr
  2975. Frem int32
  2976. Findex int32
  2977. }
  2978. type Txcb_client_message_event_t = struct {
  2979. Fresponse_type Tuint8_t
  2980. Fformat Tuint8_t
  2981. Fsequence Tuint16_t
  2982. Fwindow Txcb_window_t
  2983. Ftype1 Txcb_atom_t
  2984. Fdata Txcb_client_message_data_t
  2985. }
  2986. type Txcb_mapping_t = int32
  2987. type _xcb_mapping_t = int32
  2988. const _XCB_MAPPING_MODIFIER = 0
  2989. const _XCB_MAPPING_KEYBOARD = 1
  2990. const _XCB_MAPPING_POINTER = 2
  2991. type Txcb_mapping_notify_event_t = struct {
  2992. Fresponse_type Tuint8_t
  2993. Fpad0 Tuint8_t
  2994. Fsequence Tuint16_t
  2995. Frequest Tuint8_t
  2996. Ffirst_keycode Txcb_keycode_t
  2997. Fcount Tuint8_t
  2998. Fpad1 Tuint8_t
  2999. }
  3000. type Txcb_ge_generic_event_t = struct {
  3001. Fresponse_type Tuint8_t
  3002. Fextension Tuint8_t
  3003. Fsequence Tuint16_t
  3004. Flength Tuint32_t
  3005. Fevent_type Tuint16_t
  3006. Fpad0 [22]Tuint8_t
  3007. Ffull_sequence Tuint32_t
  3008. }
  3009. type Txcb_request_error_t = struct {
  3010. Fresponse_type Tuint8_t
  3011. Ferror_code Tuint8_t
  3012. Fsequence Tuint16_t
  3013. Fbad_value Tuint32_t
  3014. Fminor_opcode Tuint16_t
  3015. Fmajor_opcode Tuint8_t
  3016. Fpad0 Tuint8_t
  3017. }
  3018. type Txcb_value_error_t = struct {
  3019. Fresponse_type Tuint8_t
  3020. Ferror_code Tuint8_t
  3021. Fsequence Tuint16_t
  3022. Fbad_value Tuint32_t
  3023. Fminor_opcode Tuint16_t
  3024. Fmajor_opcode Tuint8_t
  3025. Fpad0 Tuint8_t
  3026. }
  3027. type Txcb_window_error_t = struct {
  3028. Fresponse_type Tuint8_t
  3029. Ferror_code Tuint8_t
  3030. Fsequence Tuint16_t
  3031. Fbad_value Tuint32_t
  3032. Fminor_opcode Tuint16_t
  3033. Fmajor_opcode Tuint8_t
  3034. Fpad0 Tuint8_t
  3035. }
  3036. type Txcb_value_error_t1 = Txcb_window_error_t
  3037. type Txcb_pixmap_error_t = struct {
  3038. Fresponse_type Tuint8_t
  3039. Ferror_code Tuint8_t
  3040. Fsequence Tuint16_t
  3041. Fbad_value Tuint32_t
  3042. Fminor_opcode Tuint16_t
  3043. Fmajor_opcode Tuint8_t
  3044. Fpad0 Tuint8_t
  3045. }
  3046. type Txcb_atom_error_t = struct {
  3047. Fresponse_type Tuint8_t
  3048. Ferror_code Tuint8_t
  3049. Fsequence Tuint16_t
  3050. Fbad_value Tuint32_t
  3051. Fminor_opcode Tuint16_t
  3052. Fmajor_opcode Tuint8_t
  3053. Fpad0 Tuint8_t
  3054. }
  3055. type Txcb_cursor_error_t = struct {
  3056. Fresponse_type Tuint8_t
  3057. Ferror_code Tuint8_t
  3058. Fsequence Tuint16_t
  3059. Fbad_value Tuint32_t
  3060. Fminor_opcode Tuint16_t
  3061. Fmajor_opcode Tuint8_t
  3062. Fpad0 Tuint8_t
  3063. }
  3064. type Txcb_font_error_t = struct {
  3065. Fresponse_type Tuint8_t
  3066. Ferror_code Tuint8_t
  3067. Fsequence Tuint16_t
  3068. Fbad_value Tuint32_t
  3069. Fminor_opcode Tuint16_t
  3070. Fmajor_opcode Tuint8_t
  3071. Fpad0 Tuint8_t
  3072. }
  3073. type Txcb_match_error_t = struct {
  3074. Fresponse_type Tuint8_t
  3075. Ferror_code Tuint8_t
  3076. Fsequence Tuint16_t
  3077. Fbad_value Tuint32_t
  3078. Fminor_opcode Tuint16_t
  3079. Fmajor_opcode Tuint8_t
  3080. Fpad0 Tuint8_t
  3081. }
  3082. type Txcb_request_error_t1 = Txcb_match_error_t
  3083. type Txcb_drawable_error_t = struct {
  3084. Fresponse_type Tuint8_t
  3085. Ferror_code Tuint8_t
  3086. Fsequence Tuint16_t
  3087. Fbad_value Tuint32_t
  3088. Fminor_opcode Tuint16_t
  3089. Fmajor_opcode Tuint8_t
  3090. Fpad0 Tuint8_t
  3091. }
  3092. type Txcb_access_error_t = struct {
  3093. Fresponse_type Tuint8_t
  3094. Ferror_code Tuint8_t
  3095. Fsequence Tuint16_t
  3096. Fbad_value Tuint32_t
  3097. Fminor_opcode Tuint16_t
  3098. Fmajor_opcode Tuint8_t
  3099. Fpad0 Tuint8_t
  3100. }
  3101. type Txcb_alloc_error_t = struct {
  3102. Fresponse_type Tuint8_t
  3103. Ferror_code Tuint8_t
  3104. Fsequence Tuint16_t
  3105. Fbad_value Tuint32_t
  3106. Fminor_opcode Tuint16_t
  3107. Fmajor_opcode Tuint8_t
  3108. Fpad0 Tuint8_t
  3109. }
  3110. type Txcb_colormap_error_t = struct {
  3111. Fresponse_type Tuint8_t
  3112. Ferror_code Tuint8_t
  3113. Fsequence Tuint16_t
  3114. Fbad_value Tuint32_t
  3115. Fminor_opcode Tuint16_t
  3116. Fmajor_opcode Tuint8_t
  3117. Fpad0 Tuint8_t
  3118. }
  3119. type Txcb_g_context_error_t = struct {
  3120. Fresponse_type Tuint8_t
  3121. Ferror_code Tuint8_t
  3122. Fsequence Tuint16_t
  3123. Fbad_value Tuint32_t
  3124. Fminor_opcode Tuint16_t
  3125. Fmajor_opcode Tuint8_t
  3126. Fpad0 Tuint8_t
  3127. }
  3128. type Txcb_id_choice_error_t = struct {
  3129. Fresponse_type Tuint8_t
  3130. Ferror_code Tuint8_t
  3131. Fsequence Tuint16_t
  3132. Fbad_value Tuint32_t
  3133. Fminor_opcode Tuint16_t
  3134. Fmajor_opcode Tuint8_t
  3135. Fpad0 Tuint8_t
  3136. }
  3137. type Txcb_name_error_t = struct {
  3138. Fresponse_type Tuint8_t
  3139. Ferror_code Tuint8_t
  3140. Fsequence Tuint16_t
  3141. Fbad_value Tuint32_t
  3142. Fminor_opcode Tuint16_t
  3143. Fmajor_opcode Tuint8_t
  3144. Fpad0 Tuint8_t
  3145. }
  3146. type Txcb_length_error_t = struct {
  3147. Fresponse_type Tuint8_t
  3148. Ferror_code Tuint8_t
  3149. Fsequence Tuint16_t
  3150. Fbad_value Tuint32_t
  3151. Fminor_opcode Tuint16_t
  3152. Fmajor_opcode Tuint8_t
  3153. Fpad0 Tuint8_t
  3154. }
  3155. type Txcb_implementation_error_t = struct {
  3156. Fresponse_type Tuint8_t
  3157. Ferror_code Tuint8_t
  3158. Fsequence Tuint16_t
  3159. Fbad_value Tuint32_t
  3160. Fminor_opcode Tuint16_t
  3161. Fmajor_opcode Tuint8_t
  3162. Fpad0 Tuint8_t
  3163. }
  3164. type Txcb_window_class_t = int32
  3165. type _xcb_window_class_t = int32
  3166. const _XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0
  3167. const _XCB_WINDOW_CLASS_INPUT_OUTPUT = 1
  3168. const _XCB_WINDOW_CLASS_INPUT_ONLY = 2
  3169. type Txcb_cw_t = int32
  3170. type _xcb_cw_t = int32
  3171. const _XCB_CW_BACK_PIXMAP = 1
  3172. const _XCB_CW_BACK_PIXEL = 2
  3173. const _XCB_CW_BORDER_PIXMAP = 4
  3174. const _XCB_CW_BORDER_PIXEL = 8
  3175. const _XCB_CW_BIT_GRAVITY = 16
  3176. const _XCB_CW_WIN_GRAVITY = 32
  3177. const _XCB_CW_BACKING_STORE = 64
  3178. const _XCB_CW_BACKING_PLANES = 128
  3179. const _XCB_CW_BACKING_PIXEL = 256
  3180. const _XCB_CW_OVERRIDE_REDIRECT = 512
  3181. const _XCB_CW_SAVE_UNDER = 1024
  3182. const _XCB_CW_EVENT_MASK = 2048
  3183. const _XCB_CW_DONT_PROPAGATE = 4096
  3184. const _XCB_CW_COLORMAP = 8192
  3185. const _XCB_CW_CURSOR = 16384
  3186. type Txcb_back_pixmap_t = int32
  3187. type _xcb_back_pixmap_t = int32
  3188. const _XCB_BACK_PIXMAP_NONE = 0
  3189. const _XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
  3190. type Txcb_gravity_t = int32
  3191. type _xcb_gravity_t = int32
  3192. const _XCB_GRAVITY_BIT_FORGET = 0
  3193. const _XCB_GRAVITY_WIN_UNMAP = 0
  3194. const _XCB_GRAVITY_NORTH_WEST = 1
  3195. const _XCB_GRAVITY_NORTH = 2
  3196. const _XCB_GRAVITY_NORTH_EAST = 3
  3197. const _XCB_GRAVITY_WEST = 4
  3198. const _XCB_GRAVITY_CENTER = 5
  3199. const _XCB_GRAVITY_EAST = 6
  3200. const _XCB_GRAVITY_SOUTH_WEST = 7
  3201. const _XCB_GRAVITY_SOUTH = 8
  3202. const _XCB_GRAVITY_SOUTH_EAST = 9
  3203. const _XCB_GRAVITY_STATIC = 10
  3204. type Txcb_create_window_value_list_t = struct {
  3205. Fbackground_pixmap Txcb_pixmap_t
  3206. Fbackground_pixel Tuint32_t
  3207. Fborder_pixmap Txcb_pixmap_t
  3208. Fborder_pixel Tuint32_t
  3209. Fbit_gravity Tuint32_t
  3210. Fwin_gravity Tuint32_t
  3211. Fbacking_store Tuint32_t
  3212. Fbacking_planes Tuint32_t
  3213. Fbacking_pixel Tuint32_t
  3214. Foverride_redirect Txcb_bool32_t
  3215. Fsave_under Txcb_bool32_t
  3216. Fevent_mask Tuint32_t
  3217. Fdo_not_propogate_mask Tuint32_t
  3218. Fcolormap Txcb_colormap_t
  3219. Fcursor Txcb_cursor_t
  3220. }
  3221. type Txcb_create_window_request_t = struct {
  3222. Fmajor_opcode Tuint8_t
  3223. Fdepth Tuint8_t
  3224. Flength Tuint16_t
  3225. Fwid Txcb_window_t
  3226. Fparent Txcb_window_t
  3227. Fx Tint16_t
  3228. Fy Tint16_t
  3229. Fwidth Tuint16_t
  3230. Fheight Tuint16_t
  3231. Fborder_width Tuint16_t
  3232. F_class Tuint16_t
  3233. Fvisual Txcb_visualid_t
  3234. Fvalue_mask Tuint32_t
  3235. }
  3236. type Txcb_change_window_attributes_value_list_t = struct {
  3237. Fbackground_pixmap Txcb_pixmap_t
  3238. Fbackground_pixel Tuint32_t
  3239. Fborder_pixmap Txcb_pixmap_t
  3240. Fborder_pixel Tuint32_t
  3241. Fbit_gravity Tuint32_t
  3242. Fwin_gravity Tuint32_t
  3243. Fbacking_store Tuint32_t
  3244. Fbacking_planes Tuint32_t
  3245. Fbacking_pixel Tuint32_t
  3246. Foverride_redirect Txcb_bool32_t
  3247. Fsave_under Txcb_bool32_t
  3248. Fevent_mask Tuint32_t
  3249. Fdo_not_propogate_mask Tuint32_t
  3250. Fcolormap Txcb_colormap_t
  3251. Fcursor Txcb_cursor_t
  3252. }
  3253. type Txcb_change_window_attributes_request_t = struct {
  3254. Fmajor_opcode Tuint8_t
  3255. Fpad0 Tuint8_t
  3256. Flength Tuint16_t
  3257. Fwindow Txcb_window_t
  3258. Fvalue_mask Tuint32_t
  3259. }
  3260. type Txcb_map_state_t = int32
  3261. type _xcb_map_state_t = int32
  3262. const _XCB_MAP_STATE_UNMAPPED = 0
  3263. const _XCB_MAP_STATE_UNVIEWABLE = 1
  3264. const _XCB_MAP_STATE_VIEWABLE = 2
  3265. type Txcb_get_window_attributes_cookie_t = struct {
  3266. Fsequence uint32
  3267. }
  3268. type Txcb_get_window_attributes_request_t = struct {
  3269. Fmajor_opcode Tuint8_t
  3270. Fpad0 Tuint8_t
  3271. Flength Tuint16_t
  3272. Fwindow Txcb_window_t
  3273. }
  3274. type Txcb_get_window_attributes_reply_t = struct {
  3275. Fresponse_type Tuint8_t
  3276. Fbacking_store Tuint8_t
  3277. Fsequence Tuint16_t
  3278. Flength Tuint32_t
  3279. Fvisual Txcb_visualid_t
  3280. F_class Tuint16_t
  3281. Fbit_gravity Tuint8_t
  3282. Fwin_gravity Tuint8_t
  3283. Fbacking_planes Tuint32_t
  3284. Fbacking_pixel Tuint32_t
  3285. Fsave_under Tuint8_t
  3286. Fmap_is_installed Tuint8_t
  3287. Fmap_state Tuint8_t
  3288. Foverride_redirect Tuint8_t
  3289. Fcolormap Txcb_colormap_t
  3290. Fall_event_masks Tuint32_t
  3291. Fyour_event_mask Tuint32_t
  3292. Fdo_not_propagate_mask Tuint16_t
  3293. Fpad0 [2]Tuint8_t
  3294. }
  3295. type Txcb_destroy_window_request_t = struct {
  3296. Fmajor_opcode Tuint8_t
  3297. Fpad0 Tuint8_t
  3298. Flength Tuint16_t
  3299. Fwindow Txcb_window_t
  3300. }
  3301. type Txcb_destroy_subwindows_request_t = struct {
  3302. Fmajor_opcode Tuint8_t
  3303. Fpad0 Tuint8_t
  3304. Flength Tuint16_t
  3305. Fwindow Txcb_window_t
  3306. }
  3307. type Txcb_set_mode_t = int32
  3308. type _xcb_set_mode_t = int32
  3309. const _XCB_SET_MODE_INSERT = 0
  3310. const _XCB_SET_MODE_DELETE = 1
  3311. type Txcb_change_save_set_request_t = struct {
  3312. Fmajor_opcode Tuint8_t
  3313. Fmode Tuint8_t
  3314. Flength Tuint16_t
  3315. Fwindow Txcb_window_t
  3316. }
  3317. type Txcb_reparent_window_request_t = struct {
  3318. Fmajor_opcode Tuint8_t
  3319. Fpad0 Tuint8_t
  3320. Flength Tuint16_t
  3321. Fwindow Txcb_window_t
  3322. Fparent Txcb_window_t
  3323. Fx Tint16_t
  3324. Fy Tint16_t
  3325. }
  3326. type Txcb_map_window_request_t = struct {
  3327. Fmajor_opcode Tuint8_t
  3328. Fpad0 Tuint8_t
  3329. Flength Tuint16_t
  3330. Fwindow Txcb_window_t
  3331. }
  3332. type Txcb_map_subwindows_request_t = struct {
  3333. Fmajor_opcode Tuint8_t
  3334. Fpad0 Tuint8_t
  3335. Flength Tuint16_t
  3336. Fwindow Txcb_window_t
  3337. }
  3338. type Txcb_unmap_window_request_t = struct {
  3339. Fmajor_opcode Tuint8_t
  3340. Fpad0 Tuint8_t
  3341. Flength Tuint16_t
  3342. Fwindow Txcb_window_t
  3343. }
  3344. type Txcb_unmap_subwindows_request_t = struct {
  3345. Fmajor_opcode Tuint8_t
  3346. Fpad0 Tuint8_t
  3347. Flength Tuint16_t
  3348. Fwindow Txcb_window_t
  3349. }
  3350. type Txcb_config_window_t = int32
  3351. type _xcb_config_window_t = int32
  3352. const _XCB_CONFIG_WINDOW_X = 1
  3353. const _XCB_CONFIG_WINDOW_Y = 2
  3354. const _XCB_CONFIG_WINDOW_WIDTH = 4
  3355. const _XCB_CONFIG_WINDOW_HEIGHT = 8
  3356. const _XCB_CONFIG_WINDOW_BORDER_WIDTH = 16
  3357. const _XCB_CONFIG_WINDOW_SIBLING = 32
  3358. const _XCB_CONFIG_WINDOW_STACK_MODE = 64
  3359. type Txcb_stack_mode_t = int32
  3360. type _xcb_stack_mode_t = int32
  3361. const _XCB_STACK_MODE_ABOVE = 0
  3362. const _XCB_STACK_MODE_BELOW = 1
  3363. const _XCB_STACK_MODE_TOP_IF = 2
  3364. const _XCB_STACK_MODE_BOTTOM_IF = 3
  3365. const _XCB_STACK_MODE_OPPOSITE = 4
  3366. type Txcb_configure_window_value_list_t = struct {
  3367. Fx Tint32_t
  3368. Fy Tint32_t
  3369. Fwidth Tuint32_t
  3370. Fheight Tuint32_t
  3371. Fborder_width Tuint32_t
  3372. Fsibling Txcb_window_t
  3373. Fstack_mode Tuint32_t
  3374. }
  3375. type Txcb_configure_window_request_t = struct {
  3376. Fmajor_opcode Tuint8_t
  3377. Fpad0 Tuint8_t
  3378. Flength Tuint16_t
  3379. Fwindow Txcb_window_t
  3380. Fvalue_mask Tuint16_t
  3381. Fpad1 [2]Tuint8_t
  3382. }
  3383. type Txcb_circulate_t = int32
  3384. type _xcb_circulate_t = int32
  3385. const _XCB_CIRCULATE_RAISE_LOWEST = 0
  3386. const _XCB_CIRCULATE_LOWER_HIGHEST = 1
  3387. type Txcb_circulate_window_request_t = struct {
  3388. Fmajor_opcode Tuint8_t
  3389. Fdirection Tuint8_t
  3390. Flength Tuint16_t
  3391. Fwindow Txcb_window_t
  3392. }
  3393. type Txcb_get_geometry_cookie_t = struct {
  3394. Fsequence uint32
  3395. }
  3396. type Txcb_get_geometry_request_t = struct {
  3397. Fmajor_opcode Tuint8_t
  3398. Fpad0 Tuint8_t
  3399. Flength Tuint16_t
  3400. Fdrawable Txcb_drawable_t
  3401. }
  3402. type Txcb_get_geometry_reply_t = struct {
  3403. Fresponse_type Tuint8_t
  3404. Fdepth Tuint8_t
  3405. Fsequence Tuint16_t
  3406. Flength Tuint32_t
  3407. Froot Txcb_window_t
  3408. Fx Tint16_t
  3409. Fy Tint16_t
  3410. Fwidth Tuint16_t
  3411. Fheight Tuint16_t
  3412. Fborder_width Tuint16_t
  3413. Fpad0 [2]Tuint8_t
  3414. }
  3415. type Txcb_query_tree_cookie_t = struct {
  3416. Fsequence uint32
  3417. }
  3418. type Txcb_query_tree_request_t = struct {
  3419. Fmajor_opcode Tuint8_t
  3420. Fpad0 Tuint8_t
  3421. Flength Tuint16_t
  3422. Fwindow Txcb_window_t
  3423. }
  3424. type Txcb_query_tree_reply_t = struct {
  3425. Fresponse_type Tuint8_t
  3426. Fpad0 Tuint8_t
  3427. Fsequence Tuint16_t
  3428. Flength Tuint32_t
  3429. Froot Txcb_window_t
  3430. Fparent Txcb_window_t
  3431. Fchildren_len Tuint16_t
  3432. Fpad1 [14]Tuint8_t
  3433. }
  3434. type Txcb_intern_atom_cookie_t = struct {
  3435. Fsequence uint32
  3436. }
  3437. type Txcb_intern_atom_request_t = struct {
  3438. Fmajor_opcode Tuint8_t
  3439. Fonly_if_exists Tuint8_t
  3440. Flength Tuint16_t
  3441. Fname_len Tuint16_t
  3442. Fpad0 [2]Tuint8_t
  3443. }
  3444. type Txcb_intern_atom_reply_t = struct {
  3445. Fresponse_type Tuint8_t
  3446. Fpad0 Tuint8_t
  3447. Fsequence Tuint16_t
  3448. Flength Tuint32_t
  3449. Fatom Txcb_atom_t
  3450. }
  3451. type Txcb_get_atom_name_cookie_t = struct {
  3452. Fsequence uint32
  3453. }
  3454. type Txcb_get_atom_name_request_t = struct {
  3455. Fmajor_opcode Tuint8_t
  3456. Fpad0 Tuint8_t
  3457. Flength Tuint16_t
  3458. Fatom Txcb_atom_t
  3459. }
  3460. type Txcb_get_atom_name_reply_t = struct {
  3461. Fresponse_type Tuint8_t
  3462. Fpad0 Tuint8_t
  3463. Fsequence Tuint16_t
  3464. Flength Tuint32_t
  3465. Fname_len Tuint16_t
  3466. Fpad1 [22]Tuint8_t
  3467. }
  3468. type Txcb_prop_mode_t = int32
  3469. type _xcb_prop_mode_t = int32
  3470. const _XCB_PROP_MODE_REPLACE = 0
  3471. const _XCB_PROP_MODE_PREPEND = 1
  3472. const _XCB_PROP_MODE_APPEND = 2
  3473. type Txcb_change_property_request_t = struct {
  3474. Fmajor_opcode Tuint8_t
  3475. Fmode Tuint8_t
  3476. Flength Tuint16_t
  3477. Fwindow Txcb_window_t
  3478. Fproperty Txcb_atom_t
  3479. Ftype1 Txcb_atom_t
  3480. Fformat Tuint8_t
  3481. Fpad0 [3]Tuint8_t
  3482. Fdata_len Tuint32_t
  3483. }
  3484. type Txcb_delete_property_request_t = struct {
  3485. Fmajor_opcode Tuint8_t
  3486. Fpad0 Tuint8_t
  3487. Flength Tuint16_t
  3488. Fwindow Txcb_window_t
  3489. Fproperty Txcb_atom_t
  3490. }
  3491. type Txcb_get_property_type_t = int32
  3492. type _xcb_get_property_type_t = int32
  3493. const _XCB_GET_PROPERTY_TYPE_ANY = 0
  3494. type Txcb_get_property_cookie_t = struct {
  3495. Fsequence uint32
  3496. }
  3497. type Txcb_get_property_request_t = struct {
  3498. Fmajor_opcode Tuint8_t
  3499. F_delete Tuint8_t
  3500. Flength Tuint16_t
  3501. Fwindow Txcb_window_t
  3502. Fproperty Txcb_atom_t
  3503. Ftype1 Txcb_atom_t
  3504. Flong_offset Tuint32_t
  3505. Flong_length Tuint32_t
  3506. }
  3507. type Txcb_get_property_reply_t = struct {
  3508. Fresponse_type Tuint8_t
  3509. Fformat Tuint8_t
  3510. Fsequence Tuint16_t
  3511. Flength Tuint32_t
  3512. Ftype1 Txcb_atom_t
  3513. Fbytes_after Tuint32_t
  3514. Fvalue_len Tuint32_t
  3515. Fpad0 [12]Tuint8_t
  3516. }
  3517. type Txcb_list_properties_cookie_t = struct {
  3518. Fsequence uint32
  3519. }
  3520. type Txcb_list_properties_request_t = struct {
  3521. Fmajor_opcode Tuint8_t
  3522. Fpad0 Tuint8_t
  3523. Flength Tuint16_t
  3524. Fwindow Txcb_window_t
  3525. }
  3526. type Txcb_list_properties_reply_t = struct {
  3527. Fresponse_type Tuint8_t
  3528. Fpad0 Tuint8_t
  3529. Fsequence Tuint16_t
  3530. Flength Tuint32_t
  3531. Fatoms_len Tuint16_t
  3532. Fpad1 [22]Tuint8_t
  3533. }
  3534. type Txcb_set_selection_owner_request_t = struct {
  3535. Fmajor_opcode Tuint8_t
  3536. Fpad0 Tuint8_t
  3537. Flength Tuint16_t
  3538. Fowner Txcb_window_t
  3539. Fselection Txcb_atom_t
  3540. Ftime Txcb_timestamp_t
  3541. }
  3542. type Txcb_get_selection_owner_cookie_t = struct {
  3543. Fsequence uint32
  3544. }
  3545. type Txcb_get_selection_owner_request_t = struct {
  3546. Fmajor_opcode Tuint8_t
  3547. Fpad0 Tuint8_t
  3548. Flength Tuint16_t
  3549. Fselection Txcb_atom_t
  3550. }
  3551. type Txcb_get_selection_owner_reply_t = struct {
  3552. Fresponse_type Tuint8_t
  3553. Fpad0 Tuint8_t
  3554. Fsequence Tuint16_t
  3555. Flength Tuint32_t
  3556. Fowner Txcb_window_t
  3557. }
  3558. type Txcb_convert_selection_request_t = struct {
  3559. Fmajor_opcode Tuint8_t
  3560. Fpad0 Tuint8_t
  3561. Flength Tuint16_t
  3562. Frequestor Txcb_window_t
  3563. Fselection Txcb_atom_t
  3564. Ftarget Txcb_atom_t
  3565. Fproperty Txcb_atom_t
  3566. Ftime Txcb_timestamp_t
  3567. }
  3568. type Txcb_send_event_dest_t = int32
  3569. type _xcb_send_event_dest_t = int32
  3570. const _XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0
  3571. const _XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
  3572. type Txcb_send_event_request_t = struct {
  3573. Fmajor_opcode Tuint8_t
  3574. Fpropagate Tuint8_t
  3575. Flength Tuint16_t
  3576. Fdestination Txcb_window_t
  3577. Fevent_mask Tuint32_t
  3578. Fevent [32]uint8
  3579. }
  3580. type Txcb_grab_mode_t = int32
  3581. type _xcb_grab_mode_t = int32
  3582. const _XCB_GRAB_MODE_SYNC = 0
  3583. const _XCB_GRAB_MODE_ASYNC = 1
  3584. type Txcb_grab_status_t = int32
  3585. type _xcb_grab_status_t = int32
  3586. const _XCB_GRAB_STATUS_SUCCESS = 0
  3587. const _XCB_GRAB_STATUS_ALREADY_GRABBED = 1
  3588. const _XCB_GRAB_STATUS_INVALID_TIME = 2
  3589. const _XCB_GRAB_STATUS_NOT_VIEWABLE = 3
  3590. const _XCB_GRAB_STATUS_FROZEN = 4
  3591. type Txcb_cursor_enum_t = int32
  3592. type _xcb_cursor_enum_t = int32
  3593. const _XCB_CURSOR_NONE = 0
  3594. type Txcb_grab_pointer_cookie_t = struct {
  3595. Fsequence uint32
  3596. }
  3597. type Txcb_grab_pointer_request_t = struct {
  3598. Fmajor_opcode Tuint8_t
  3599. Fowner_events Tuint8_t
  3600. Flength Tuint16_t
  3601. Fgrab_window Txcb_window_t
  3602. Fevent_mask Tuint16_t
  3603. Fpointer_mode Tuint8_t
  3604. Fkeyboard_mode Tuint8_t
  3605. Fconfine_to Txcb_window_t
  3606. Fcursor Txcb_cursor_t
  3607. Ftime Txcb_timestamp_t
  3608. }
  3609. type Txcb_grab_pointer_reply_t = struct {
  3610. Fresponse_type Tuint8_t
  3611. Fstatus Tuint8_t
  3612. Fsequence Tuint16_t
  3613. Flength Tuint32_t
  3614. }
  3615. type Txcb_ungrab_pointer_request_t = struct {
  3616. Fmajor_opcode Tuint8_t
  3617. Fpad0 Tuint8_t
  3618. Flength Tuint16_t
  3619. Ftime Txcb_timestamp_t
  3620. }
  3621. type Txcb_button_index_t = int32
  3622. type _xcb_button_index_t = int32
  3623. const _XCB_BUTTON_INDEX_ANY = 0
  3624. const _XCB_BUTTON_INDEX_1 = 1
  3625. const _XCB_BUTTON_INDEX_2 = 2
  3626. const _XCB_BUTTON_INDEX_3 = 3
  3627. const _XCB_BUTTON_INDEX_4 = 4
  3628. const _XCB_BUTTON_INDEX_5 = 5
  3629. type Txcb_grab_button_request_t = struct {
  3630. Fmajor_opcode Tuint8_t
  3631. Fowner_events Tuint8_t
  3632. Flength Tuint16_t
  3633. Fgrab_window Txcb_window_t
  3634. Fevent_mask Tuint16_t
  3635. Fpointer_mode Tuint8_t
  3636. Fkeyboard_mode Tuint8_t
  3637. Fconfine_to Txcb_window_t
  3638. Fcursor Txcb_cursor_t
  3639. Fbutton Tuint8_t
  3640. Fpad0 Tuint8_t
  3641. Fmodifiers Tuint16_t
  3642. }
  3643. type Txcb_ungrab_button_request_t = struct {
  3644. Fmajor_opcode Tuint8_t
  3645. Fbutton Tuint8_t
  3646. Flength Tuint16_t
  3647. Fgrab_window Txcb_window_t
  3648. Fmodifiers Tuint16_t
  3649. Fpad0 [2]Tuint8_t
  3650. }
  3651. type Txcb_change_active_pointer_grab_request_t = struct {
  3652. Fmajor_opcode Tuint8_t
  3653. Fpad0 Tuint8_t
  3654. Flength Tuint16_t
  3655. Fcursor Txcb_cursor_t
  3656. Ftime Txcb_timestamp_t
  3657. Fevent_mask Tuint16_t
  3658. Fpad1 [2]Tuint8_t
  3659. }
  3660. type Txcb_grab_keyboard_cookie_t = struct {
  3661. Fsequence uint32
  3662. }
  3663. type Txcb_grab_keyboard_request_t = struct {
  3664. Fmajor_opcode Tuint8_t
  3665. Fowner_events Tuint8_t
  3666. Flength Tuint16_t
  3667. Fgrab_window Txcb_window_t
  3668. Ftime Txcb_timestamp_t
  3669. Fpointer_mode Tuint8_t
  3670. Fkeyboard_mode Tuint8_t
  3671. Fpad0 [2]Tuint8_t
  3672. }
  3673. type Txcb_grab_keyboard_reply_t = struct {
  3674. Fresponse_type Tuint8_t
  3675. Fstatus Tuint8_t
  3676. Fsequence Tuint16_t
  3677. Flength Tuint32_t
  3678. }
  3679. type Txcb_ungrab_keyboard_request_t = struct {
  3680. Fmajor_opcode Tuint8_t
  3681. Fpad0 Tuint8_t
  3682. Flength Tuint16_t
  3683. Ftime Txcb_timestamp_t
  3684. }
  3685. type Txcb_grab_t = int32
  3686. type _xcb_grab_t = int32
  3687. const _XCB_GRAB_ANY = 0
  3688. type Txcb_grab_key_request_t = struct {
  3689. Fmajor_opcode Tuint8_t
  3690. Fowner_events Tuint8_t
  3691. Flength Tuint16_t
  3692. Fgrab_window Txcb_window_t
  3693. Fmodifiers Tuint16_t
  3694. Fkey Txcb_keycode_t
  3695. Fpointer_mode Tuint8_t
  3696. Fkeyboard_mode Tuint8_t
  3697. Fpad0 [3]Tuint8_t
  3698. }
  3699. type Txcb_ungrab_key_request_t = struct {
  3700. Fmajor_opcode Tuint8_t
  3701. Fkey Txcb_keycode_t
  3702. Flength Tuint16_t
  3703. Fgrab_window Txcb_window_t
  3704. Fmodifiers Tuint16_t
  3705. Fpad0 [2]Tuint8_t
  3706. }
  3707. type Txcb_allow_t = int32
  3708. type _xcb_allow_t = int32
  3709. const _XCB_ALLOW_ASYNC_POINTER = 0
  3710. const _XCB_ALLOW_SYNC_POINTER = 1
  3711. const _XCB_ALLOW_REPLAY_POINTER = 2
  3712. const _XCB_ALLOW_ASYNC_KEYBOARD = 3
  3713. const _XCB_ALLOW_SYNC_KEYBOARD = 4
  3714. const _XCB_ALLOW_REPLAY_KEYBOARD = 5
  3715. const _XCB_ALLOW_ASYNC_BOTH = 6
  3716. const _XCB_ALLOW_SYNC_BOTH = 7
  3717. type Txcb_allow_events_request_t = struct {
  3718. Fmajor_opcode Tuint8_t
  3719. Fmode Tuint8_t
  3720. Flength Tuint16_t
  3721. Ftime Txcb_timestamp_t
  3722. }
  3723. type Txcb_grab_server_request_t = struct {
  3724. Fmajor_opcode Tuint8_t
  3725. Fpad0 Tuint8_t
  3726. Flength Tuint16_t
  3727. }
  3728. type Txcb_ungrab_server_request_t = struct {
  3729. Fmajor_opcode Tuint8_t
  3730. Fpad0 Tuint8_t
  3731. Flength Tuint16_t
  3732. }
  3733. type Txcb_query_pointer_cookie_t = struct {
  3734. Fsequence uint32
  3735. }
  3736. type Txcb_query_pointer_request_t = struct {
  3737. Fmajor_opcode Tuint8_t
  3738. Fpad0 Tuint8_t
  3739. Flength Tuint16_t
  3740. Fwindow Txcb_window_t
  3741. }
  3742. type Txcb_query_pointer_reply_t = struct {
  3743. Fresponse_type Tuint8_t
  3744. Fsame_screen Tuint8_t
  3745. Fsequence Tuint16_t
  3746. Flength Tuint32_t
  3747. Froot Txcb_window_t
  3748. Fchild Txcb_window_t
  3749. Froot_x Tint16_t
  3750. Froot_y Tint16_t
  3751. Fwin_x Tint16_t
  3752. Fwin_y Tint16_t
  3753. Fmask Tuint16_t
  3754. Fpad0 [2]Tuint8_t
  3755. }
  3756. type Txcb_timecoord_t = struct {
  3757. Ftime Txcb_timestamp_t
  3758. Fx Tint16_t
  3759. Fy Tint16_t
  3760. }
  3761. type Txcb_timecoord_iterator_t = struct {
  3762. Fdata uintptr
  3763. Frem int32
  3764. Findex int32
  3765. }
  3766. type Txcb_get_motion_events_cookie_t = struct {
  3767. Fsequence uint32
  3768. }
  3769. type Txcb_get_motion_events_request_t = struct {
  3770. Fmajor_opcode Tuint8_t
  3771. Fpad0 Tuint8_t
  3772. Flength Tuint16_t
  3773. Fwindow Txcb_window_t
  3774. Fstart Txcb_timestamp_t
  3775. Fstop Txcb_timestamp_t
  3776. }
  3777. type Txcb_get_motion_events_reply_t = struct {
  3778. Fresponse_type Tuint8_t
  3779. Fpad0 Tuint8_t
  3780. Fsequence Tuint16_t
  3781. Flength Tuint32_t
  3782. Fevents_len Tuint32_t
  3783. Fpad1 [20]Tuint8_t
  3784. }
  3785. type Txcb_translate_coordinates_cookie_t = struct {
  3786. Fsequence uint32
  3787. }
  3788. type Txcb_translate_coordinates_request_t = struct {
  3789. Fmajor_opcode Tuint8_t
  3790. Fpad0 Tuint8_t
  3791. Flength Tuint16_t
  3792. Fsrc_window Txcb_window_t
  3793. Fdst_window Txcb_window_t
  3794. Fsrc_x Tint16_t
  3795. Fsrc_y Tint16_t
  3796. }
  3797. type Txcb_translate_coordinates_reply_t = struct {
  3798. Fresponse_type Tuint8_t
  3799. Fsame_screen Tuint8_t
  3800. Fsequence Tuint16_t
  3801. Flength Tuint32_t
  3802. Fchild Txcb_window_t
  3803. Fdst_x Tint16_t
  3804. Fdst_y Tint16_t
  3805. }
  3806. type Txcb_warp_pointer_request_t = struct {
  3807. Fmajor_opcode Tuint8_t
  3808. Fpad0 Tuint8_t
  3809. Flength Tuint16_t
  3810. Fsrc_window Txcb_window_t
  3811. Fdst_window Txcb_window_t
  3812. Fsrc_x Tint16_t
  3813. Fsrc_y Tint16_t
  3814. Fsrc_width Tuint16_t
  3815. Fsrc_height Tuint16_t
  3816. Fdst_x Tint16_t
  3817. Fdst_y Tint16_t
  3818. }
  3819. type Txcb_input_focus_t = int32
  3820. type _xcb_input_focus_t = int32
  3821. const _XCB_INPUT_FOCUS_NONE = 0
  3822. const _XCB_INPUT_FOCUS_POINTER_ROOT = 1
  3823. const _XCB_INPUT_FOCUS_PARENT = 2
  3824. const _XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
  3825. type Txcb_set_input_focus_request_t = struct {
  3826. Fmajor_opcode Tuint8_t
  3827. Frevert_to Tuint8_t
  3828. Flength Tuint16_t
  3829. Ffocus Txcb_window_t
  3830. Ftime Txcb_timestamp_t
  3831. }
  3832. type Txcb_get_input_focus_cookie_t = struct {
  3833. Fsequence uint32
  3834. }
  3835. type Txcb_get_input_focus_request_t = struct {
  3836. Fmajor_opcode Tuint8_t
  3837. Fpad0 Tuint8_t
  3838. Flength Tuint16_t
  3839. }
  3840. type Txcb_get_input_focus_reply_t = struct {
  3841. Fresponse_type Tuint8_t
  3842. Frevert_to Tuint8_t
  3843. Fsequence Tuint16_t
  3844. Flength Tuint32_t
  3845. Ffocus Txcb_window_t
  3846. }
  3847. type Txcb_query_keymap_cookie_t = struct {
  3848. Fsequence uint32
  3849. }
  3850. type Txcb_query_keymap_request_t = struct {
  3851. Fmajor_opcode Tuint8_t
  3852. Fpad0 Tuint8_t
  3853. Flength Tuint16_t
  3854. }
  3855. type Txcb_query_keymap_reply_t = struct {
  3856. Fresponse_type Tuint8_t
  3857. Fpad0 Tuint8_t
  3858. Fsequence Tuint16_t
  3859. Flength Tuint32_t
  3860. Fkeys [32]Tuint8_t
  3861. }
  3862. type Txcb_open_font_request_t = struct {
  3863. Fmajor_opcode Tuint8_t
  3864. Fpad0 Tuint8_t
  3865. Flength Tuint16_t
  3866. Ffid Txcb_font_t
  3867. Fname_len Tuint16_t
  3868. Fpad1 [2]Tuint8_t
  3869. }
  3870. type Txcb_close_font_request_t = struct {
  3871. Fmajor_opcode Tuint8_t
  3872. Fpad0 Tuint8_t
  3873. Flength Tuint16_t
  3874. Ffont Txcb_font_t
  3875. }
  3876. type Txcb_font_draw_t = int32
  3877. type _xcb_font_draw_t = int32
  3878. const _XCB_FONT_DRAW_LEFT_TO_RIGHT = 0
  3879. const _XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
  3880. type Txcb_fontprop_t = struct {
  3881. Fname Txcb_atom_t
  3882. Fvalue Tuint32_t
  3883. }
  3884. type Txcb_fontprop_iterator_t = struct {
  3885. Fdata uintptr
  3886. Frem int32
  3887. Findex int32
  3888. }
  3889. type Txcb_charinfo_t = struct {
  3890. Fleft_side_bearing Tint16_t
  3891. Fright_side_bearing Tint16_t
  3892. Fcharacter_width Tint16_t
  3893. Fascent Tint16_t
  3894. Fdescent Tint16_t
  3895. Fattributes Tuint16_t
  3896. }
  3897. type Txcb_charinfo_iterator_t = struct {
  3898. Fdata uintptr
  3899. Frem int32
  3900. Findex int32
  3901. }
  3902. type Txcb_query_font_cookie_t = struct {
  3903. Fsequence uint32
  3904. }
  3905. type Txcb_query_font_request_t = struct {
  3906. Fmajor_opcode Tuint8_t
  3907. Fpad0 Tuint8_t
  3908. Flength Tuint16_t
  3909. Ffont Txcb_fontable_t
  3910. }
  3911. type Txcb_query_font_reply_t = struct {
  3912. Fresponse_type Tuint8_t
  3913. Fpad0 Tuint8_t
  3914. Fsequence Tuint16_t
  3915. Flength Tuint32_t
  3916. Fmin_bounds Txcb_charinfo_t
  3917. Fpad1 [4]Tuint8_t
  3918. Fmax_bounds Txcb_charinfo_t
  3919. Fpad2 [4]Tuint8_t
  3920. Fmin_char_or_byte2 Tuint16_t
  3921. Fmax_char_or_byte2 Tuint16_t
  3922. Fdefault_char Tuint16_t
  3923. Fproperties_len Tuint16_t
  3924. Fdraw_direction Tuint8_t
  3925. Fmin_byte1 Tuint8_t
  3926. Fmax_byte1 Tuint8_t
  3927. Fall_chars_exist Tuint8_t
  3928. Ffont_ascent Tint16_t
  3929. Ffont_descent Tint16_t
  3930. Fchar_infos_len Tuint32_t
  3931. }
  3932. type Txcb_query_text_extents_cookie_t = struct {
  3933. Fsequence uint32
  3934. }
  3935. type Txcb_query_text_extents_request_t = struct {
  3936. Fmajor_opcode Tuint8_t
  3937. Fodd_length Tuint8_t
  3938. Flength Tuint16_t
  3939. Ffont Txcb_fontable_t
  3940. }
  3941. type Txcb_query_text_extents_reply_t = struct {
  3942. Fresponse_type Tuint8_t
  3943. Fdraw_direction Tuint8_t
  3944. Fsequence Tuint16_t
  3945. Flength Tuint32_t
  3946. Ffont_ascent Tint16_t
  3947. Ffont_descent Tint16_t
  3948. Foverall_ascent Tint16_t
  3949. Foverall_descent Tint16_t
  3950. Foverall_width Tint32_t
  3951. Foverall_left Tint32_t
  3952. Foverall_right Tint32_t
  3953. }
  3954. type Txcb_str_t = struct {
  3955. Fname_len Tuint8_t
  3956. }
  3957. type Txcb_str_iterator_t = struct {
  3958. Fdata uintptr
  3959. Frem int32
  3960. Findex int32
  3961. }
  3962. type Txcb_list_fonts_cookie_t = struct {
  3963. Fsequence uint32
  3964. }
  3965. type Txcb_list_fonts_request_t = struct {
  3966. Fmajor_opcode Tuint8_t
  3967. Fpad0 Tuint8_t
  3968. Flength Tuint16_t
  3969. Fmax_names Tuint16_t
  3970. Fpattern_len Tuint16_t
  3971. }
  3972. type Txcb_list_fonts_reply_t = struct {
  3973. Fresponse_type Tuint8_t
  3974. Fpad0 Tuint8_t
  3975. Fsequence Tuint16_t
  3976. Flength Tuint32_t
  3977. Fnames_len Tuint16_t
  3978. Fpad1 [22]Tuint8_t
  3979. }
  3980. type Txcb_list_fonts_with_info_cookie_t = struct {
  3981. Fsequence uint32
  3982. }
  3983. type Txcb_list_fonts_with_info_request_t = struct {
  3984. Fmajor_opcode Tuint8_t
  3985. Fpad0 Tuint8_t
  3986. Flength Tuint16_t
  3987. Fmax_names Tuint16_t
  3988. Fpattern_len Tuint16_t
  3989. }
  3990. type Txcb_list_fonts_with_info_reply_t = struct {
  3991. Fresponse_type Tuint8_t
  3992. Fname_len Tuint8_t
  3993. Fsequence Tuint16_t
  3994. Flength Tuint32_t
  3995. Fmin_bounds Txcb_charinfo_t
  3996. Fpad0 [4]Tuint8_t
  3997. Fmax_bounds Txcb_charinfo_t
  3998. Fpad1 [4]Tuint8_t
  3999. Fmin_char_or_byte2 Tuint16_t
  4000. Fmax_char_or_byte2 Tuint16_t
  4001. Fdefault_char Tuint16_t
  4002. Fproperties_len Tuint16_t
  4003. Fdraw_direction Tuint8_t
  4004. Fmin_byte1 Tuint8_t
  4005. Fmax_byte1 Tuint8_t
  4006. Fall_chars_exist Tuint8_t
  4007. Ffont_ascent Tint16_t
  4008. Ffont_descent Tint16_t
  4009. Freplies_hint Tuint32_t
  4010. }
  4011. type Txcb_set_font_path_request_t = struct {
  4012. Fmajor_opcode Tuint8_t
  4013. Fpad0 Tuint8_t
  4014. Flength Tuint16_t
  4015. Ffont_qty Tuint16_t
  4016. Fpad1 [2]Tuint8_t
  4017. }
  4018. type Txcb_get_font_path_cookie_t = struct {
  4019. Fsequence uint32
  4020. }
  4021. type Txcb_get_font_path_request_t = struct {
  4022. Fmajor_opcode Tuint8_t
  4023. Fpad0 Tuint8_t
  4024. Flength Tuint16_t
  4025. }
  4026. type Txcb_get_font_path_reply_t = struct {
  4027. Fresponse_type Tuint8_t
  4028. Fpad0 Tuint8_t
  4029. Fsequence Tuint16_t
  4030. Flength Tuint32_t
  4031. Fpath_len Tuint16_t
  4032. Fpad1 [22]Tuint8_t
  4033. }
  4034. type Txcb_create_pixmap_request_t = struct {
  4035. Fmajor_opcode Tuint8_t
  4036. Fdepth Tuint8_t
  4037. Flength Tuint16_t
  4038. Fpid Txcb_pixmap_t
  4039. Fdrawable Txcb_drawable_t
  4040. Fwidth Tuint16_t
  4041. Fheight Tuint16_t
  4042. }
  4043. type Txcb_free_pixmap_request_t = struct {
  4044. Fmajor_opcode Tuint8_t
  4045. Fpad0 Tuint8_t
  4046. Flength Tuint16_t
  4047. Fpixmap Txcb_pixmap_t
  4048. }
  4049. type Txcb_gc_t = int32
  4050. type _xcb_gc_t = int32
  4051. const _XCB_GC_FUNCTION = 1
  4052. const _XCB_GC_PLANE_MASK = 2
  4053. const _XCB_GC_FOREGROUND = 4
  4054. const _XCB_GC_BACKGROUND = 8
  4055. const _XCB_GC_LINE_WIDTH = 16
  4056. const _XCB_GC_LINE_STYLE = 32
  4057. const _XCB_GC_CAP_STYLE = 64
  4058. const _XCB_GC_JOIN_STYLE = 128
  4059. const _XCB_GC_FILL_STYLE = 256
  4060. const _XCB_GC_FILL_RULE = 512
  4061. const _XCB_GC_TILE = 1024
  4062. const _XCB_GC_STIPPLE = 2048
  4063. const _XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096
  4064. const _XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192
  4065. const _XCB_GC_FONT = 16384
  4066. const _XCB_GC_SUBWINDOW_MODE = 32768
  4067. const _XCB_GC_GRAPHICS_EXPOSURES = 65536
  4068. const _XCB_GC_CLIP_ORIGIN_X = 131072
  4069. const _XCB_GC_CLIP_ORIGIN_Y = 262144
  4070. const _XCB_GC_CLIP_MASK = 524288
  4071. const _XCB_GC_DASH_OFFSET = 1048576
  4072. const _XCB_GC_DASH_LIST = 2097152
  4073. const _XCB_GC_ARC_MODE = 4194304
  4074. type Txcb_gx_t = int32
  4075. type _xcb_gx_t = int32
  4076. const _XCB_GX_CLEAR = 0
  4077. const _XCB_GX_AND = 1
  4078. const _XCB_GX_AND_REVERSE = 2
  4079. const _XCB_GX_COPY = 3
  4080. const _XCB_GX_AND_INVERTED = 4
  4081. const _XCB_GX_NOOP = 5
  4082. const _XCB_GX_XOR = 6
  4083. const _XCB_GX_OR = 7
  4084. const _XCB_GX_NOR = 8
  4085. const _XCB_GX_EQUIV = 9
  4086. const _XCB_GX_INVERT = 10
  4087. const _XCB_GX_OR_REVERSE = 11
  4088. const _XCB_GX_COPY_INVERTED = 12
  4089. const _XCB_GX_OR_INVERTED = 13
  4090. const _XCB_GX_NAND = 14
  4091. const _XCB_GX_SET = 15
  4092. type Txcb_line_style_t = int32
  4093. type _xcb_line_style_t = int32
  4094. const _XCB_LINE_STYLE_SOLID = 0
  4095. const _XCB_LINE_STYLE_ON_OFF_DASH = 1
  4096. const _XCB_LINE_STYLE_DOUBLE_DASH = 2
  4097. type Txcb_cap_style_t = int32
  4098. type _xcb_cap_style_t = int32
  4099. const _XCB_CAP_STYLE_NOT_LAST = 0
  4100. const _XCB_CAP_STYLE_BUTT = 1
  4101. const _XCB_CAP_STYLE_ROUND = 2
  4102. const _XCB_CAP_STYLE_PROJECTING = 3
  4103. type Txcb_join_style_t = int32
  4104. type _xcb_join_style_t = int32
  4105. const _XCB_JOIN_STYLE_MITER = 0
  4106. const _XCB_JOIN_STYLE_ROUND = 1
  4107. const _XCB_JOIN_STYLE_BEVEL = 2
  4108. type Txcb_fill_style_t = int32
  4109. type _xcb_fill_style_t = int32
  4110. const _XCB_FILL_STYLE_SOLID = 0
  4111. const _XCB_FILL_STYLE_TILED = 1
  4112. const _XCB_FILL_STYLE_STIPPLED = 2
  4113. const _XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
  4114. type Txcb_fill_rule_t = int32
  4115. type _xcb_fill_rule_t = int32
  4116. const _XCB_FILL_RULE_EVEN_ODD = 0
  4117. const _XCB_FILL_RULE_WINDING = 1
  4118. type Txcb_subwindow_mode_t = int32
  4119. type _xcb_subwindow_mode_t = int32
  4120. const _XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0
  4121. const _XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
  4122. type Txcb_arc_mode_t = int32
  4123. type _xcb_arc_mode_t = int32
  4124. const _XCB_ARC_MODE_CHORD = 0
  4125. const _XCB_ARC_MODE_PIE_SLICE = 1
  4126. type Txcb_create_gc_value_list_t = struct {
  4127. Ffunction Tuint32_t
  4128. Fplane_mask Tuint32_t
  4129. Fforeground Tuint32_t
  4130. Fbackground Tuint32_t
  4131. Fline_width Tuint32_t
  4132. Fline_style Tuint32_t
  4133. Fcap_style Tuint32_t
  4134. Fjoin_style Tuint32_t
  4135. Ffill_style Tuint32_t
  4136. Ffill_rule Tuint32_t
  4137. Ftile Txcb_pixmap_t
  4138. Fstipple Txcb_pixmap_t
  4139. Ftile_stipple_x_origin Tint32_t
  4140. Ftile_stipple_y_origin Tint32_t
  4141. Ffont Txcb_font_t
  4142. Fsubwindow_mode Tuint32_t
  4143. Fgraphics_exposures Txcb_bool32_t
  4144. Fclip_x_origin Tint32_t
  4145. Fclip_y_origin Tint32_t
  4146. Fclip_mask Txcb_pixmap_t
  4147. Fdash_offset Tuint32_t
  4148. Fdashes Tuint32_t
  4149. Farc_mode Tuint32_t
  4150. }
  4151. type Txcb_create_gc_request_t = struct {
  4152. Fmajor_opcode Tuint8_t
  4153. Fpad0 Tuint8_t
  4154. Flength Tuint16_t
  4155. Fcid Txcb_gcontext_t
  4156. Fdrawable Txcb_drawable_t
  4157. Fvalue_mask Tuint32_t
  4158. }
  4159. type Txcb_change_gc_value_list_t = struct {
  4160. Ffunction Tuint32_t
  4161. Fplane_mask Tuint32_t
  4162. Fforeground Tuint32_t
  4163. Fbackground Tuint32_t
  4164. Fline_width Tuint32_t
  4165. Fline_style Tuint32_t
  4166. Fcap_style Tuint32_t
  4167. Fjoin_style Tuint32_t
  4168. Ffill_style Tuint32_t
  4169. Ffill_rule Tuint32_t
  4170. Ftile Txcb_pixmap_t
  4171. Fstipple Txcb_pixmap_t
  4172. Ftile_stipple_x_origin Tint32_t
  4173. Ftile_stipple_y_origin Tint32_t
  4174. Ffont Txcb_font_t
  4175. Fsubwindow_mode Tuint32_t
  4176. Fgraphics_exposures Txcb_bool32_t
  4177. Fclip_x_origin Tint32_t
  4178. Fclip_y_origin Tint32_t
  4179. Fclip_mask Txcb_pixmap_t
  4180. Fdash_offset Tuint32_t
  4181. Fdashes Tuint32_t
  4182. Farc_mode Tuint32_t
  4183. }
  4184. type Txcb_change_gc_request_t = struct {
  4185. Fmajor_opcode Tuint8_t
  4186. Fpad0 Tuint8_t
  4187. Flength Tuint16_t
  4188. Fgc Txcb_gcontext_t
  4189. Fvalue_mask Tuint32_t
  4190. }
  4191. type Txcb_copy_gc_request_t = struct {
  4192. Fmajor_opcode Tuint8_t
  4193. Fpad0 Tuint8_t
  4194. Flength Tuint16_t
  4195. Fsrc_gc Txcb_gcontext_t
  4196. Fdst_gc Txcb_gcontext_t
  4197. Fvalue_mask Tuint32_t
  4198. }
  4199. type Txcb_set_dashes_request_t = struct {
  4200. Fmajor_opcode Tuint8_t
  4201. Fpad0 Tuint8_t
  4202. Flength Tuint16_t
  4203. Fgc Txcb_gcontext_t
  4204. Fdash_offset Tuint16_t
  4205. Fdashes_len Tuint16_t
  4206. }
  4207. type Txcb_clip_ordering_t = int32
  4208. type _xcb_clip_ordering_t = int32
  4209. const _XCB_CLIP_ORDERING_UNSORTED = 0
  4210. const _XCB_CLIP_ORDERING_Y_SORTED = 1
  4211. const _XCB_CLIP_ORDERING_YX_SORTED = 2
  4212. const _XCB_CLIP_ORDERING_YX_BANDED = 3
  4213. type Txcb_set_clip_rectangles_request_t = struct {
  4214. Fmajor_opcode Tuint8_t
  4215. Fordering Tuint8_t
  4216. Flength Tuint16_t
  4217. Fgc Txcb_gcontext_t
  4218. Fclip_x_origin Tint16_t
  4219. Fclip_y_origin Tint16_t
  4220. }
  4221. type Txcb_free_gc_request_t = struct {
  4222. Fmajor_opcode Tuint8_t
  4223. Fpad0 Tuint8_t
  4224. Flength Tuint16_t
  4225. Fgc Txcb_gcontext_t
  4226. }
  4227. type Txcb_clear_area_request_t = struct {
  4228. Fmajor_opcode Tuint8_t
  4229. Fexposures Tuint8_t
  4230. Flength Tuint16_t
  4231. Fwindow Txcb_window_t
  4232. Fx Tint16_t
  4233. Fy Tint16_t
  4234. Fwidth Tuint16_t
  4235. Fheight Tuint16_t
  4236. }
  4237. type Txcb_copy_area_request_t = struct {
  4238. Fmajor_opcode Tuint8_t
  4239. Fpad0 Tuint8_t
  4240. Flength Tuint16_t
  4241. Fsrc_drawable Txcb_drawable_t
  4242. Fdst_drawable Txcb_drawable_t
  4243. Fgc Txcb_gcontext_t
  4244. Fsrc_x Tint16_t
  4245. Fsrc_y Tint16_t
  4246. Fdst_x Tint16_t
  4247. Fdst_y Tint16_t
  4248. Fwidth Tuint16_t
  4249. Fheight Tuint16_t
  4250. }
  4251. type Txcb_copy_plane_request_t = struct {
  4252. Fmajor_opcode Tuint8_t
  4253. Fpad0 Tuint8_t
  4254. Flength Tuint16_t
  4255. Fsrc_drawable Txcb_drawable_t
  4256. Fdst_drawable Txcb_drawable_t
  4257. Fgc Txcb_gcontext_t
  4258. Fsrc_x Tint16_t
  4259. Fsrc_y Tint16_t
  4260. Fdst_x Tint16_t
  4261. Fdst_y Tint16_t
  4262. Fwidth Tuint16_t
  4263. Fheight Tuint16_t
  4264. Fbit_plane Tuint32_t
  4265. }
  4266. type Txcb_coord_mode_t = int32
  4267. type _xcb_coord_mode_t = int32
  4268. const _XCB_COORD_MODE_ORIGIN = 0
  4269. const _XCB_COORD_MODE_PREVIOUS = 1
  4270. type Txcb_poly_point_request_t = struct {
  4271. Fmajor_opcode Tuint8_t
  4272. Fcoordinate_mode Tuint8_t
  4273. Flength Tuint16_t
  4274. Fdrawable Txcb_drawable_t
  4275. Fgc Txcb_gcontext_t
  4276. }
  4277. type Txcb_poly_line_request_t = struct {
  4278. Fmajor_opcode Tuint8_t
  4279. Fcoordinate_mode Tuint8_t
  4280. Flength Tuint16_t
  4281. Fdrawable Txcb_drawable_t
  4282. Fgc Txcb_gcontext_t
  4283. }
  4284. type Txcb_segment_t = struct {
  4285. Fx1 Tint16_t
  4286. Fy1 Tint16_t
  4287. Fx2 Tint16_t
  4288. Fy2 Tint16_t
  4289. }
  4290. type Txcb_segment_iterator_t = struct {
  4291. Fdata uintptr
  4292. Frem int32
  4293. Findex int32
  4294. }
  4295. type Txcb_poly_segment_request_t = struct {
  4296. Fmajor_opcode Tuint8_t
  4297. Fpad0 Tuint8_t
  4298. Flength Tuint16_t
  4299. Fdrawable Txcb_drawable_t
  4300. Fgc Txcb_gcontext_t
  4301. }
  4302. type Txcb_poly_rectangle_request_t = struct {
  4303. Fmajor_opcode Tuint8_t
  4304. Fpad0 Tuint8_t
  4305. Flength Tuint16_t
  4306. Fdrawable Txcb_drawable_t
  4307. Fgc Txcb_gcontext_t
  4308. }
  4309. type Txcb_poly_arc_request_t = struct {
  4310. Fmajor_opcode Tuint8_t
  4311. Fpad0 Tuint8_t
  4312. Flength Tuint16_t
  4313. Fdrawable Txcb_drawable_t
  4314. Fgc Txcb_gcontext_t
  4315. }
  4316. type Txcb_poly_shape_t = int32
  4317. type _xcb_poly_shape_t = int32
  4318. const _XCB_POLY_SHAPE_COMPLEX = 0
  4319. const _XCB_POLY_SHAPE_NONCONVEX = 1
  4320. const _XCB_POLY_SHAPE_CONVEX = 2
  4321. type Txcb_fill_poly_request_t = struct {
  4322. Fmajor_opcode Tuint8_t
  4323. Fpad0 Tuint8_t
  4324. Flength Tuint16_t
  4325. Fdrawable Txcb_drawable_t
  4326. Fgc Txcb_gcontext_t
  4327. Fshape Tuint8_t
  4328. Fcoordinate_mode Tuint8_t
  4329. Fpad1 [2]Tuint8_t
  4330. }
  4331. type Txcb_poly_fill_rectangle_request_t = struct {
  4332. Fmajor_opcode Tuint8_t
  4333. Fpad0 Tuint8_t
  4334. Flength Tuint16_t
  4335. Fdrawable Txcb_drawable_t
  4336. Fgc Txcb_gcontext_t
  4337. }
  4338. type Txcb_poly_fill_arc_request_t = struct {
  4339. Fmajor_opcode Tuint8_t
  4340. Fpad0 Tuint8_t
  4341. Flength Tuint16_t
  4342. Fdrawable Txcb_drawable_t
  4343. Fgc Txcb_gcontext_t
  4344. }
  4345. type Txcb_image_format_t = int32
  4346. type _xcb_image_format_t = int32
  4347. const _XCB_IMAGE_FORMAT_XY_BITMAP = 0
  4348. const _XCB_IMAGE_FORMAT_XY_PIXMAP = 1
  4349. const _XCB_IMAGE_FORMAT_Z_PIXMAP = 2
  4350. type Txcb_put_image_request_t = struct {
  4351. Fmajor_opcode Tuint8_t
  4352. Fformat Tuint8_t
  4353. Flength Tuint16_t
  4354. Fdrawable Txcb_drawable_t
  4355. Fgc Txcb_gcontext_t
  4356. Fwidth Tuint16_t
  4357. Fheight Tuint16_t
  4358. Fdst_x Tint16_t
  4359. Fdst_y Tint16_t
  4360. Fleft_pad Tuint8_t
  4361. Fdepth Tuint8_t
  4362. Fpad0 [2]Tuint8_t
  4363. }
  4364. type Txcb_get_image_cookie_t = struct {
  4365. Fsequence uint32
  4366. }
  4367. type Txcb_get_image_request_t = struct {
  4368. Fmajor_opcode Tuint8_t
  4369. Fformat Tuint8_t
  4370. Flength Tuint16_t
  4371. Fdrawable Txcb_drawable_t
  4372. Fx Tint16_t
  4373. Fy Tint16_t
  4374. Fwidth Tuint16_t
  4375. Fheight Tuint16_t
  4376. Fplane_mask Tuint32_t
  4377. }
  4378. type Txcb_get_image_reply_t = struct {
  4379. Fresponse_type Tuint8_t
  4380. Fdepth Tuint8_t
  4381. Fsequence Tuint16_t
  4382. Flength Tuint32_t
  4383. Fvisual Txcb_visualid_t
  4384. Fpad0 [20]Tuint8_t
  4385. }
  4386. type Txcb_poly_text_8_request_t = struct {
  4387. Fmajor_opcode Tuint8_t
  4388. Fpad0 Tuint8_t
  4389. Flength Tuint16_t
  4390. Fdrawable Txcb_drawable_t
  4391. Fgc Txcb_gcontext_t
  4392. Fx Tint16_t
  4393. Fy Tint16_t
  4394. }
  4395. type Txcb_poly_text_16_request_t = struct {
  4396. Fmajor_opcode Tuint8_t
  4397. Fpad0 Tuint8_t
  4398. Flength Tuint16_t
  4399. Fdrawable Txcb_drawable_t
  4400. Fgc Txcb_gcontext_t
  4401. Fx Tint16_t
  4402. Fy Tint16_t
  4403. }
  4404. type Txcb_image_text_8_request_t = struct {
  4405. Fmajor_opcode Tuint8_t
  4406. Fstring_len Tuint8_t
  4407. Flength Tuint16_t
  4408. Fdrawable Txcb_drawable_t
  4409. Fgc Txcb_gcontext_t
  4410. Fx Tint16_t
  4411. Fy Tint16_t
  4412. }
  4413. type Txcb_image_text_16_request_t = struct {
  4414. Fmajor_opcode Tuint8_t
  4415. Fstring_len Tuint8_t
  4416. Flength Tuint16_t
  4417. Fdrawable Txcb_drawable_t
  4418. Fgc Txcb_gcontext_t
  4419. Fx Tint16_t
  4420. Fy Tint16_t
  4421. }
  4422. type Txcb_colormap_alloc_t = int32
  4423. type _xcb_colormap_alloc_t = int32
  4424. const _XCB_COLORMAP_ALLOC_NONE = 0
  4425. const _XCB_COLORMAP_ALLOC_ALL = 1
  4426. type Txcb_create_colormap_request_t = struct {
  4427. Fmajor_opcode Tuint8_t
  4428. Falloc Tuint8_t
  4429. Flength Tuint16_t
  4430. Fmid Txcb_colormap_t
  4431. Fwindow Txcb_window_t
  4432. Fvisual Txcb_visualid_t
  4433. }
  4434. type Txcb_free_colormap_request_t = struct {
  4435. Fmajor_opcode Tuint8_t
  4436. Fpad0 Tuint8_t
  4437. Flength Tuint16_t
  4438. Fcmap Txcb_colormap_t
  4439. }
  4440. type Txcb_copy_colormap_and_free_request_t = struct {
  4441. Fmajor_opcode Tuint8_t
  4442. Fpad0 Tuint8_t
  4443. Flength Tuint16_t
  4444. Fmid Txcb_colormap_t
  4445. Fsrc_cmap Txcb_colormap_t
  4446. }
  4447. type Txcb_install_colormap_request_t = struct {
  4448. Fmajor_opcode Tuint8_t
  4449. Fpad0 Tuint8_t
  4450. Flength Tuint16_t
  4451. Fcmap Txcb_colormap_t
  4452. }
  4453. type Txcb_uninstall_colormap_request_t = struct {
  4454. Fmajor_opcode Tuint8_t
  4455. Fpad0 Tuint8_t
  4456. Flength Tuint16_t
  4457. Fcmap Txcb_colormap_t
  4458. }
  4459. type Txcb_list_installed_colormaps_cookie_t = struct {
  4460. Fsequence uint32
  4461. }
  4462. type Txcb_list_installed_colormaps_request_t = struct {
  4463. Fmajor_opcode Tuint8_t
  4464. Fpad0 Tuint8_t
  4465. Flength Tuint16_t
  4466. Fwindow Txcb_window_t
  4467. }
  4468. type Txcb_list_installed_colormaps_reply_t = struct {
  4469. Fresponse_type Tuint8_t
  4470. Fpad0 Tuint8_t
  4471. Fsequence Tuint16_t
  4472. Flength Tuint32_t
  4473. Fcmaps_len Tuint16_t
  4474. Fpad1 [22]Tuint8_t
  4475. }
  4476. type Txcb_alloc_color_cookie_t = struct {
  4477. Fsequence uint32
  4478. }
  4479. type Txcb_alloc_color_request_t = struct {
  4480. Fmajor_opcode Tuint8_t
  4481. Fpad0 Tuint8_t
  4482. Flength Tuint16_t
  4483. Fcmap Txcb_colormap_t
  4484. Fred Tuint16_t
  4485. Fgreen Tuint16_t
  4486. Fblue Tuint16_t
  4487. Fpad1 [2]Tuint8_t
  4488. }
  4489. type Txcb_alloc_color_reply_t = struct {
  4490. Fresponse_type Tuint8_t
  4491. Fpad0 Tuint8_t
  4492. Fsequence Tuint16_t
  4493. Flength Tuint32_t
  4494. Fred Tuint16_t
  4495. Fgreen Tuint16_t
  4496. Fblue Tuint16_t
  4497. Fpad1 [2]Tuint8_t
  4498. Fpixel Tuint32_t
  4499. }
  4500. type Txcb_alloc_named_color_cookie_t = struct {
  4501. Fsequence uint32
  4502. }
  4503. type Txcb_alloc_named_color_request_t = struct {
  4504. Fmajor_opcode Tuint8_t
  4505. Fpad0 Tuint8_t
  4506. Flength Tuint16_t
  4507. Fcmap Txcb_colormap_t
  4508. Fname_len Tuint16_t
  4509. Fpad1 [2]Tuint8_t
  4510. }
  4511. type Txcb_alloc_named_color_reply_t = struct {
  4512. Fresponse_type Tuint8_t
  4513. Fpad0 Tuint8_t
  4514. Fsequence Tuint16_t
  4515. Flength Tuint32_t
  4516. Fpixel Tuint32_t
  4517. Fexact_red Tuint16_t
  4518. Fexact_green Tuint16_t
  4519. Fexact_blue Tuint16_t
  4520. Fvisual_red Tuint16_t
  4521. Fvisual_green Tuint16_t
  4522. Fvisual_blue Tuint16_t
  4523. }
  4524. type Txcb_alloc_color_cells_cookie_t = struct {
  4525. Fsequence uint32
  4526. }
  4527. type Txcb_alloc_color_cells_request_t = struct {
  4528. Fmajor_opcode Tuint8_t
  4529. Fcontiguous Tuint8_t
  4530. Flength Tuint16_t
  4531. Fcmap Txcb_colormap_t
  4532. Fcolors Tuint16_t
  4533. Fplanes Tuint16_t
  4534. }
  4535. type Txcb_alloc_color_cells_reply_t = struct {
  4536. Fresponse_type Tuint8_t
  4537. Fpad0 Tuint8_t
  4538. Fsequence Tuint16_t
  4539. Flength Tuint32_t
  4540. Fpixels_len Tuint16_t
  4541. Fmasks_len Tuint16_t
  4542. Fpad1 [20]Tuint8_t
  4543. }
  4544. type Txcb_alloc_color_planes_cookie_t = struct {
  4545. Fsequence uint32
  4546. }
  4547. type Txcb_alloc_color_planes_request_t = struct {
  4548. Fmajor_opcode Tuint8_t
  4549. Fcontiguous Tuint8_t
  4550. Flength Tuint16_t
  4551. Fcmap Txcb_colormap_t
  4552. Fcolors Tuint16_t
  4553. Freds Tuint16_t
  4554. Fgreens Tuint16_t
  4555. Fblues Tuint16_t
  4556. }
  4557. type Txcb_alloc_color_planes_reply_t = struct {
  4558. Fresponse_type Tuint8_t
  4559. Fpad0 Tuint8_t
  4560. Fsequence Tuint16_t
  4561. Flength Tuint32_t
  4562. Fpixels_len Tuint16_t
  4563. Fpad1 [2]Tuint8_t
  4564. Fred_mask Tuint32_t
  4565. Fgreen_mask Tuint32_t
  4566. Fblue_mask Tuint32_t
  4567. Fpad2 [8]Tuint8_t
  4568. }
  4569. type Txcb_free_colors_request_t = struct {
  4570. Fmajor_opcode Tuint8_t
  4571. Fpad0 Tuint8_t
  4572. Flength Tuint16_t
  4573. Fcmap Txcb_colormap_t
  4574. Fplane_mask Tuint32_t
  4575. }
  4576. type Txcb_color_flag_t = int32
  4577. type _xcb_color_flag_t = int32
  4578. const _XCB_COLOR_FLAG_RED = 1
  4579. const _XCB_COLOR_FLAG_GREEN = 2
  4580. const _XCB_COLOR_FLAG_BLUE = 4
  4581. type Txcb_coloritem_t = struct {
  4582. Fpixel Tuint32_t
  4583. Fred Tuint16_t
  4584. Fgreen Tuint16_t
  4585. Fblue Tuint16_t
  4586. Fflags Tuint8_t
  4587. Fpad0 Tuint8_t
  4588. }
  4589. type Txcb_coloritem_iterator_t = struct {
  4590. Fdata uintptr
  4591. Frem int32
  4592. Findex int32
  4593. }
  4594. type Txcb_store_colors_request_t = struct {
  4595. Fmajor_opcode Tuint8_t
  4596. Fpad0 Tuint8_t
  4597. Flength Tuint16_t
  4598. Fcmap Txcb_colormap_t
  4599. }
  4600. type Txcb_store_named_color_request_t = struct {
  4601. Fmajor_opcode Tuint8_t
  4602. Fflags Tuint8_t
  4603. Flength Tuint16_t
  4604. Fcmap Txcb_colormap_t
  4605. Fpixel Tuint32_t
  4606. Fname_len Tuint16_t
  4607. Fpad0 [2]Tuint8_t
  4608. }
  4609. type Txcb_rgb_t = struct {
  4610. Fred Tuint16_t
  4611. Fgreen Tuint16_t
  4612. Fblue Tuint16_t
  4613. Fpad0 [2]Tuint8_t
  4614. }
  4615. type Txcb_rgb_iterator_t = struct {
  4616. Fdata uintptr
  4617. Frem int32
  4618. Findex int32
  4619. }
  4620. type Txcb_query_colors_cookie_t = struct {
  4621. Fsequence uint32
  4622. }
  4623. type Txcb_query_colors_request_t = struct {
  4624. Fmajor_opcode Tuint8_t
  4625. Fpad0 Tuint8_t
  4626. Flength Tuint16_t
  4627. Fcmap Txcb_colormap_t
  4628. }
  4629. type Txcb_query_colors_reply_t = struct {
  4630. Fresponse_type Tuint8_t
  4631. Fpad0 Tuint8_t
  4632. Fsequence Tuint16_t
  4633. Flength Tuint32_t
  4634. Fcolors_len Tuint16_t
  4635. Fpad1 [22]Tuint8_t
  4636. }
  4637. type Txcb_lookup_color_cookie_t = struct {
  4638. Fsequence uint32
  4639. }
  4640. type Txcb_lookup_color_request_t = struct {
  4641. Fmajor_opcode Tuint8_t
  4642. Fpad0 Tuint8_t
  4643. Flength Tuint16_t
  4644. Fcmap Txcb_colormap_t
  4645. Fname_len Tuint16_t
  4646. Fpad1 [2]Tuint8_t
  4647. }
  4648. type Txcb_lookup_color_reply_t = struct {
  4649. Fresponse_type Tuint8_t
  4650. Fpad0 Tuint8_t
  4651. Fsequence Tuint16_t
  4652. Flength Tuint32_t
  4653. Fexact_red Tuint16_t
  4654. Fexact_green Tuint16_t
  4655. Fexact_blue Tuint16_t
  4656. Fvisual_red Tuint16_t
  4657. Fvisual_green Tuint16_t
  4658. Fvisual_blue Tuint16_t
  4659. }
  4660. type Txcb_pixmap_enum_t = int32
  4661. type _xcb_pixmap_enum_t = int32
  4662. const _XCB_PIXMAP_NONE = 0
  4663. type Txcb_create_cursor_request_t = struct {
  4664. Fmajor_opcode Tuint8_t
  4665. Fpad0 Tuint8_t
  4666. Flength Tuint16_t
  4667. Fcid Txcb_cursor_t
  4668. Fsource Txcb_pixmap_t
  4669. Fmask Txcb_pixmap_t
  4670. Ffore_red Tuint16_t
  4671. Ffore_green Tuint16_t
  4672. Ffore_blue Tuint16_t
  4673. Fback_red Tuint16_t
  4674. Fback_green Tuint16_t
  4675. Fback_blue Tuint16_t
  4676. Fx Tuint16_t
  4677. Fy Tuint16_t
  4678. }
  4679. type Txcb_font_enum_t = int32
  4680. type _xcb_font_enum_t = int32
  4681. const _XCB_FONT_NONE = 0
  4682. type Txcb_create_glyph_cursor_request_t = struct {
  4683. Fmajor_opcode Tuint8_t
  4684. Fpad0 Tuint8_t
  4685. Flength Tuint16_t
  4686. Fcid Txcb_cursor_t
  4687. Fsource_font Txcb_font_t
  4688. Fmask_font Txcb_font_t
  4689. Fsource_char Tuint16_t
  4690. Fmask_char Tuint16_t
  4691. Ffore_red Tuint16_t
  4692. Ffore_green Tuint16_t
  4693. Ffore_blue Tuint16_t
  4694. Fback_red Tuint16_t
  4695. Fback_green Tuint16_t
  4696. Fback_blue Tuint16_t
  4697. }
  4698. type Txcb_free_cursor_request_t = struct {
  4699. Fmajor_opcode Tuint8_t
  4700. Fpad0 Tuint8_t
  4701. Flength Tuint16_t
  4702. Fcursor Txcb_cursor_t
  4703. }
  4704. type Txcb_recolor_cursor_request_t = struct {
  4705. Fmajor_opcode Tuint8_t
  4706. Fpad0 Tuint8_t
  4707. Flength Tuint16_t
  4708. Fcursor Txcb_cursor_t
  4709. Ffore_red Tuint16_t
  4710. Ffore_green Tuint16_t
  4711. Ffore_blue Tuint16_t
  4712. Fback_red Tuint16_t
  4713. Fback_green Tuint16_t
  4714. Fback_blue Tuint16_t
  4715. }
  4716. type Txcb_query_shape_of_t = int32
  4717. type _xcb_query_shape_of_t = int32
  4718. const _XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0
  4719. const _XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1
  4720. const _XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
  4721. type Txcb_query_best_size_cookie_t = struct {
  4722. Fsequence uint32
  4723. }
  4724. type Txcb_query_best_size_request_t = struct {
  4725. Fmajor_opcode Tuint8_t
  4726. F_class Tuint8_t
  4727. Flength Tuint16_t
  4728. Fdrawable Txcb_drawable_t
  4729. Fwidth Tuint16_t
  4730. Fheight Tuint16_t
  4731. }
  4732. type Txcb_query_best_size_reply_t = struct {
  4733. Fresponse_type Tuint8_t
  4734. Fpad0 Tuint8_t
  4735. Fsequence Tuint16_t
  4736. Flength Tuint32_t
  4737. Fwidth Tuint16_t
  4738. Fheight Tuint16_t
  4739. }
  4740. type Txcb_query_extension_cookie_t = struct {
  4741. Fsequence uint32
  4742. }
  4743. type Txcb_query_extension_request_t = struct {
  4744. Fmajor_opcode Tuint8_t
  4745. Fpad0 Tuint8_t
  4746. Flength Tuint16_t
  4747. Fname_len Tuint16_t
  4748. Fpad1 [2]Tuint8_t
  4749. }
  4750. type Txcb_query_extension_reply_t = struct {
  4751. Fresponse_type Tuint8_t
  4752. Fpad0 Tuint8_t
  4753. Fsequence Tuint16_t
  4754. Flength Tuint32_t
  4755. Fpresent Tuint8_t
  4756. Fmajor_opcode Tuint8_t
  4757. Ffirst_event Tuint8_t
  4758. Ffirst_error Tuint8_t
  4759. }
  4760. type Txcb_list_extensions_cookie_t = struct {
  4761. Fsequence uint32
  4762. }
  4763. type Txcb_list_extensions_request_t = struct {
  4764. Fmajor_opcode Tuint8_t
  4765. Fpad0 Tuint8_t
  4766. Flength Tuint16_t
  4767. }
  4768. type Txcb_list_extensions_reply_t = struct {
  4769. Fresponse_type Tuint8_t
  4770. Fnames_len Tuint8_t
  4771. Fsequence Tuint16_t
  4772. Flength Tuint32_t
  4773. Fpad0 [24]Tuint8_t
  4774. }
  4775. type Txcb_change_keyboard_mapping_request_t = struct {
  4776. Fmajor_opcode Tuint8_t
  4777. Fkeycode_count Tuint8_t
  4778. Flength Tuint16_t
  4779. Ffirst_keycode Txcb_keycode_t
  4780. Fkeysyms_per_keycode Tuint8_t
  4781. Fpad0 [2]Tuint8_t
  4782. }
  4783. type Txcb_get_keyboard_mapping_cookie_t = struct {
  4784. Fsequence uint32
  4785. }
  4786. type Txcb_get_keyboard_mapping_request_t = struct {
  4787. Fmajor_opcode Tuint8_t
  4788. Fpad0 Tuint8_t
  4789. Flength Tuint16_t
  4790. Ffirst_keycode Txcb_keycode_t
  4791. Fcount Tuint8_t
  4792. }
  4793. type Txcb_get_keyboard_mapping_reply_t = struct {
  4794. Fresponse_type Tuint8_t
  4795. Fkeysyms_per_keycode Tuint8_t
  4796. Fsequence Tuint16_t
  4797. Flength Tuint32_t
  4798. Fpad0 [24]Tuint8_t
  4799. }
  4800. type Txcb_kb_t = int32
  4801. type _xcb_kb_t = int32
  4802. const _XCB_KB_KEY_CLICK_PERCENT = 1
  4803. const _XCB_KB_BELL_PERCENT = 2
  4804. const _XCB_KB_BELL_PITCH = 4
  4805. const _XCB_KB_BELL_DURATION = 8
  4806. const _XCB_KB_LED = 16
  4807. const _XCB_KB_LED_MODE = 32
  4808. const _XCB_KB_KEY = 64
  4809. const _XCB_KB_AUTO_REPEAT_MODE = 128
  4810. type Txcb_led_mode_t = int32
  4811. type _xcb_led_mode_t = int32
  4812. const _XCB_LED_MODE_OFF = 0
  4813. const _XCB_LED_MODE_ON = 1
  4814. type Txcb_auto_repeat_mode_t = int32
  4815. type _xcb_auto_repeat_mode_t = int32
  4816. const _XCB_AUTO_REPEAT_MODE_OFF = 0
  4817. const _XCB_AUTO_REPEAT_MODE_ON = 1
  4818. const _XCB_AUTO_REPEAT_MODE_DEFAULT = 2
  4819. type Txcb_change_keyboard_control_value_list_t = struct {
  4820. Fkey_click_percent Tint32_t
  4821. Fbell_percent Tint32_t
  4822. Fbell_pitch Tint32_t
  4823. Fbell_duration Tint32_t
  4824. Fled Tuint32_t
  4825. Fled_mode Tuint32_t
  4826. Fkey Txcb_keycode32_t
  4827. Fauto_repeat_mode Tuint32_t
  4828. }
  4829. type Txcb_change_keyboard_control_request_t = struct {
  4830. Fmajor_opcode Tuint8_t
  4831. Fpad0 Tuint8_t
  4832. Flength Tuint16_t
  4833. Fvalue_mask Tuint32_t
  4834. }
  4835. type Txcb_get_keyboard_control_cookie_t = struct {
  4836. Fsequence uint32
  4837. }
  4838. type Txcb_get_keyboard_control_request_t = struct {
  4839. Fmajor_opcode Tuint8_t
  4840. Fpad0 Tuint8_t
  4841. Flength Tuint16_t
  4842. }
  4843. type Txcb_get_keyboard_control_reply_t = struct {
  4844. Fresponse_type Tuint8_t
  4845. Fglobal_auto_repeat Tuint8_t
  4846. Fsequence Tuint16_t
  4847. Flength Tuint32_t
  4848. Fled_mask Tuint32_t
  4849. Fkey_click_percent Tuint8_t
  4850. Fbell_percent Tuint8_t
  4851. Fbell_pitch Tuint16_t
  4852. Fbell_duration Tuint16_t
  4853. Fpad0 [2]Tuint8_t
  4854. Fauto_repeats [32]Tuint8_t
  4855. }
  4856. type Txcb_bell_request_t = struct {
  4857. Fmajor_opcode Tuint8_t
  4858. Fpercent Tint8_t
  4859. Flength Tuint16_t
  4860. }
  4861. type Txcb_change_pointer_control_request_t = struct {
  4862. Fmajor_opcode Tuint8_t
  4863. Fpad0 Tuint8_t
  4864. Flength Tuint16_t
  4865. Facceleration_numerator Tint16_t
  4866. Facceleration_denominator Tint16_t
  4867. Fthreshold Tint16_t
  4868. Fdo_acceleration Tuint8_t
  4869. Fdo_threshold Tuint8_t
  4870. }
  4871. type Txcb_get_pointer_control_cookie_t = struct {
  4872. Fsequence uint32
  4873. }
  4874. type Txcb_get_pointer_control_request_t = struct {
  4875. Fmajor_opcode Tuint8_t
  4876. Fpad0 Tuint8_t
  4877. Flength Tuint16_t
  4878. }
  4879. type Txcb_get_pointer_control_reply_t = struct {
  4880. Fresponse_type Tuint8_t
  4881. Fpad0 Tuint8_t
  4882. Fsequence Tuint16_t
  4883. Flength Tuint32_t
  4884. Facceleration_numerator Tuint16_t
  4885. Facceleration_denominator Tuint16_t
  4886. Fthreshold Tuint16_t
  4887. Fpad1 [18]Tuint8_t
  4888. }
  4889. type Txcb_blanking_t = int32
  4890. type _xcb_blanking_t = int32
  4891. const _XCB_BLANKING_NOT_PREFERRED = 0
  4892. const _XCB_BLANKING_PREFERRED = 1
  4893. const _XCB_BLANKING_DEFAULT = 2
  4894. type Txcb_exposures_t = int32
  4895. type _xcb_exposures_t = int32
  4896. const _XCB_EXPOSURES_NOT_ALLOWED = 0
  4897. const _XCB_EXPOSURES_ALLOWED = 1
  4898. const _XCB_EXPOSURES_DEFAULT = 2
  4899. type Txcb_set_screen_saver_request_t = struct {
  4900. Fmajor_opcode Tuint8_t
  4901. Fpad0 Tuint8_t
  4902. Flength Tuint16_t
  4903. Ftimeout Tint16_t
  4904. Finterval Tint16_t
  4905. Fprefer_blanking Tuint8_t
  4906. Fallow_exposures Tuint8_t
  4907. }
  4908. type Txcb_get_screen_saver_cookie_t = struct {
  4909. Fsequence uint32
  4910. }
  4911. type Txcb_get_screen_saver_request_t = struct {
  4912. Fmajor_opcode Tuint8_t
  4913. Fpad0 Tuint8_t
  4914. Flength Tuint16_t
  4915. }
  4916. type Txcb_get_screen_saver_reply_t = struct {
  4917. Fresponse_type Tuint8_t
  4918. Fpad0 Tuint8_t
  4919. Fsequence Tuint16_t
  4920. Flength Tuint32_t
  4921. Ftimeout Tuint16_t
  4922. Finterval Tuint16_t
  4923. Fprefer_blanking Tuint8_t
  4924. Fallow_exposures Tuint8_t
  4925. Fpad1 [18]Tuint8_t
  4926. }
  4927. type Txcb_host_mode_t = int32
  4928. type _xcb_host_mode_t = int32
  4929. const _XCB_HOST_MODE_INSERT = 0
  4930. const _XCB_HOST_MODE_DELETE = 1
  4931. type Txcb_family_t = int32
  4932. type _xcb_family_t = int32
  4933. const _XCB_FAMILY_INTERNET = 0
  4934. const _XCB_FAMILY_DECNET = 1
  4935. const _XCB_FAMILY_CHAOS = 2
  4936. const _XCB_FAMILY_SERVER_INTERPRETED = 5
  4937. const _XCB_FAMILY_INTERNET_6 = 6
  4938. type Txcb_change_hosts_request_t = struct {
  4939. Fmajor_opcode Tuint8_t
  4940. Fmode Tuint8_t
  4941. Flength Tuint16_t
  4942. Ffamily Tuint8_t
  4943. Fpad0 Tuint8_t
  4944. Faddress_len Tuint16_t
  4945. }
  4946. type Txcb_host_t = struct {
  4947. Ffamily Tuint8_t
  4948. Fpad0 Tuint8_t
  4949. Faddress_len Tuint16_t
  4950. }
  4951. type Txcb_host_iterator_t = struct {
  4952. Fdata uintptr
  4953. Frem int32
  4954. Findex int32
  4955. }
  4956. type Txcb_list_hosts_cookie_t = struct {
  4957. Fsequence uint32
  4958. }
  4959. type Txcb_list_hosts_request_t = struct {
  4960. Fmajor_opcode Tuint8_t
  4961. Fpad0 Tuint8_t
  4962. Flength Tuint16_t
  4963. }
  4964. type Txcb_list_hosts_reply_t = struct {
  4965. Fresponse_type Tuint8_t
  4966. Fmode Tuint8_t
  4967. Fsequence Tuint16_t
  4968. Flength Tuint32_t
  4969. Fhosts_len Tuint16_t
  4970. Fpad0 [22]Tuint8_t
  4971. }
  4972. type Txcb_access_control_t = int32
  4973. type _xcb_access_control_t = int32
  4974. const _XCB_ACCESS_CONTROL_DISABLE = 0
  4975. const _XCB_ACCESS_CONTROL_ENABLE = 1
  4976. type Txcb_set_access_control_request_t = struct {
  4977. Fmajor_opcode Tuint8_t
  4978. Fmode Tuint8_t
  4979. Flength Tuint16_t
  4980. }
  4981. type Txcb_close_down_t = int32
  4982. type _xcb_close_down_t = int32
  4983. const _XCB_CLOSE_DOWN_DESTROY_ALL = 0
  4984. const _XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1
  4985. const _XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
  4986. type Txcb_set_close_down_mode_request_t = struct {
  4987. Fmajor_opcode Tuint8_t
  4988. Fmode Tuint8_t
  4989. Flength Tuint16_t
  4990. }
  4991. type Txcb_kill_t = int32
  4992. type _xcb_kill_t = int32
  4993. const _XCB_KILL_ALL_TEMPORARY = 0
  4994. type Txcb_kill_client_request_t = struct {
  4995. Fmajor_opcode Tuint8_t
  4996. Fpad0 Tuint8_t
  4997. Flength Tuint16_t
  4998. Fresource Tuint32_t
  4999. }
  5000. type Txcb_rotate_properties_request_t = struct {
  5001. Fmajor_opcode Tuint8_t
  5002. Fpad0 Tuint8_t
  5003. Flength Tuint16_t
  5004. Fwindow Txcb_window_t
  5005. Fatoms_len Tuint16_t
  5006. Fdelta Tint16_t
  5007. }
  5008. type Txcb_screen_saver_t = int32
  5009. type _xcb_screen_saver_t = int32
  5010. const _XCB_SCREEN_SAVER_RESET = 0
  5011. const _XCB_SCREEN_SAVER_ACTIVE = 1
  5012. type Txcb_force_screen_saver_request_t = struct {
  5013. Fmajor_opcode Tuint8_t
  5014. Fmode Tuint8_t
  5015. Flength Tuint16_t
  5016. }
  5017. type Txcb_mapping_status_t = int32
  5018. type _xcb_mapping_status_t = int32
  5019. const _XCB_MAPPING_STATUS_SUCCESS = 0
  5020. const _XCB_MAPPING_STATUS_BUSY = 1
  5021. const _XCB_MAPPING_STATUS_FAILURE = 2
  5022. type Txcb_set_pointer_mapping_cookie_t = struct {
  5023. Fsequence uint32
  5024. }
  5025. type Txcb_set_pointer_mapping_request_t = struct {
  5026. Fmajor_opcode Tuint8_t
  5027. Fmap_len Tuint8_t
  5028. Flength Tuint16_t
  5029. }
  5030. type Txcb_set_pointer_mapping_reply_t = struct {
  5031. Fresponse_type Tuint8_t
  5032. Fstatus Tuint8_t
  5033. Fsequence Tuint16_t
  5034. Flength Tuint32_t
  5035. }
  5036. type Txcb_get_pointer_mapping_cookie_t = struct {
  5037. Fsequence uint32
  5038. }
  5039. type Txcb_get_pointer_mapping_request_t = struct {
  5040. Fmajor_opcode Tuint8_t
  5041. Fpad0 Tuint8_t
  5042. Flength Tuint16_t
  5043. }
  5044. type Txcb_get_pointer_mapping_reply_t = struct {
  5045. Fresponse_type Tuint8_t
  5046. Fmap_len Tuint8_t
  5047. Fsequence Tuint16_t
  5048. Flength Tuint32_t
  5049. Fpad0 [24]Tuint8_t
  5050. }
  5051. type Txcb_map_index_t = int32
  5052. type _xcb_map_index_t = int32
  5053. const _XCB_MAP_INDEX_SHIFT = 0
  5054. const _XCB_MAP_INDEX_LOCK = 1
  5055. const _XCB_MAP_INDEX_CONTROL = 2
  5056. const _XCB_MAP_INDEX_1 = 3
  5057. const _XCB_MAP_INDEX_2 = 4
  5058. const _XCB_MAP_INDEX_3 = 5
  5059. const _XCB_MAP_INDEX_4 = 6
  5060. const _XCB_MAP_INDEX_5 = 7
  5061. type Txcb_set_modifier_mapping_cookie_t = struct {
  5062. Fsequence uint32
  5063. }
  5064. type Txcb_set_modifier_mapping_request_t = struct {
  5065. Fmajor_opcode Tuint8_t
  5066. Fkeycodes_per_modifier Tuint8_t
  5067. Flength Tuint16_t
  5068. }
  5069. type Txcb_set_modifier_mapping_reply_t = struct {
  5070. Fresponse_type Tuint8_t
  5071. Fstatus Tuint8_t
  5072. Fsequence Tuint16_t
  5073. Flength Tuint32_t
  5074. }
  5075. type Txcb_get_modifier_mapping_cookie_t = struct {
  5076. Fsequence uint32
  5077. }
  5078. type Txcb_get_modifier_mapping_request_t = struct {
  5079. Fmajor_opcode Tuint8_t
  5080. Fpad0 Tuint8_t
  5081. Flength Tuint16_t
  5082. }
  5083. type Txcb_get_modifier_mapping_reply_t = struct {
  5084. Fresponse_type Tuint8_t
  5085. Fkeycodes_per_modifier Tuint8_t
  5086. Fsequence Tuint16_t
  5087. Flength Tuint32_t
  5088. Fpad0 [24]Tuint8_t
  5089. }
  5090. type Txcb_no_operation_request_t = struct {
  5091. Fmajor_opcode Tuint8_t
  5092. Fpad0 Tuint8_t
  5093. Flength Tuint16_t
  5094. }
  5095. type Txcb_auth_info_t = struct {
  5096. Fnamelen int32
  5097. Fname uintptr
  5098. Fdatalen int32
  5099. Fdata uintptr
  5100. }
  5101. type Txcb_big_requests_enable_cookie_t = struct {
  5102. Fsequence uint32
  5103. }
  5104. type Txcb_big_requests_enable_request_t = struct {
  5105. Fmajor_opcode Tuint8_t
  5106. Fminor_opcode Tuint8_t
  5107. Flength Tuint16_t
  5108. }
  5109. type Txcb_big_requests_enable_reply_t = struct {
  5110. Fresponse_type Tuint8_t
  5111. Fpad0 Tuint8_t
  5112. Fsequence Tuint16_t
  5113. Flength Tuint32_t
  5114. Fmaximum_request_length Tuint32_t
  5115. }
  5116. type _workarounds = int32
  5117. const _WORKAROUND_NONE = 0
  5118. const _WORKAROUND_GLX_GET_FB_CONFIGS_BUG = 1
  5119. const _WORKAROUND_EXTERNAL_SOCKET_OWNER = 2
  5120. type _lazy_reply_tag = int32
  5121. const _LAZY_NONE = 0
  5122. const _LAZY_COOKIE = 1
  5123. const _LAZY_FORCED = 2
  5124. type Txcb_list_free_func_t = uintptr
  5125. type T_xcb_fd = struct {
  5126. Ffd [16]int32
  5127. Fnfd int32
  5128. Fifd int32
  5129. }
  5130. type T_xcb_out = struct {
  5131. Fcond Tpthread_cond_t
  5132. Fwriting int32
  5133. Fsocket_cond Tpthread_cond_t
  5134. Freturn_socket uintptr
  5135. Fsocket_closure uintptr
  5136. Fsocket_moving int32
  5137. Fqueue [16384]uint8
  5138. Fqueue_len int32
  5139. Frequest Tuint64_t
  5140. Frequest_written Tuint64_t
  5141. Frequest_expected_written Tuint64_t
  5142. Ftotal_written Tuint64_t
  5143. Freqlenlock Tpthread_mutex_t
  5144. Fmaximum_request_length_tag _lazy_reply_tag
  5145. Fmaximum_request_length struct {
  5146. Fvalue [0]Tuint32_t
  5147. Fcookie Txcb_big_requests_enable_cookie_t
  5148. }
  5149. Fout_fd T_xcb_fd
  5150. }
  5151. type T_xcb_in = struct {
  5152. Fevent_cond Tpthread_cond_t
  5153. Freading int32
  5154. Fqueue [4096]uint8
  5155. Fqueue_len int32
  5156. Frequest_expected Tuint64_t
  5157. Frequest_read Tuint64_t
  5158. Frequest_completed Tuint64_t
  5159. Ftotal_read Tuint64_t
  5160. Fcurrent_reply uintptr
  5161. Fcurrent_reply_tail uintptr
  5162. Freplies uintptr
  5163. Fevents uintptr
  5164. Fevents_tail uintptr
  5165. Freaders uintptr
  5166. Fspecial_waiters uintptr
  5167. Fpending_replies uintptr
  5168. Fpending_replies_tail uintptr
  5169. Fin_fd T_xcb_fd
  5170. Fspecial_events uintptr
  5171. }
  5172. type T_xcb_xid = struct {
  5173. Flock Tpthread_mutex_t
  5174. Flast Tuint32_t
  5175. Fbase Tuint32_t
  5176. Fmax Tuint32_t
  5177. Finc Tuint32_t
  5178. }
  5179. type T_xcb_ext = struct {
  5180. Flock Tpthread_mutex_t
  5181. Fextensions uintptr
  5182. Fextensions_size int32
  5183. }
  5184. type Txcb_connection_t1 = struct {
  5185. Fhas_error int32
  5186. Fsetup uintptr
  5187. Ffd int32
  5188. Fiolock Tpthread_mutex_t
  5189. Fin T_xcb_in
  5190. Fout T_xcb_out
  5191. Fext T_xcb_ext
  5192. Fxid T_xcb_xid
  5193. }
  5194. type Tnfds_t = uint64
  5195. type Tpollfd = struct {
  5196. Ffd int32
  5197. Fevents int16
  5198. Frevents int16
  5199. }
  5200. type Tsocklen_t = uint32
  5201. type Tsa_family_t = uint16
  5202. type Tmsghdr = struct {
  5203. Fmsg_name uintptr
  5204. Fmsg_namelen Tsocklen_t
  5205. Fmsg_iov uintptr
  5206. Fmsg_iovlen int32
  5207. F__pad1 int32
  5208. Fmsg_control uintptr
  5209. Fmsg_controllen Tsocklen_t
  5210. F__pad2 int32
  5211. Fmsg_flags int32
  5212. }
  5213. type Tcmsghdr = struct {
  5214. Fcmsg_len Tsocklen_t
  5215. F__pad1 int32
  5216. Fcmsg_level int32
  5217. Fcmsg_type int32
  5218. }
  5219. type Tucred = struct {
  5220. Fpid Tpid_t
  5221. Fuid Tuid_t
  5222. Fgid Tgid_t
  5223. }
  5224. type Tmmsghdr = struct {
  5225. Fmsg_hdr Tmsghdr
  5226. Fmsg_len uint32
  5227. }
  5228. type Tlinger = struct {
  5229. Fl_onoff int32
  5230. Fl_linger int32
  5231. }
  5232. type Tsockaddr = struct {
  5233. Fsa_family Tsa_family_t
  5234. Fsa_data [14]uint8
  5235. }
  5236. type Tsockaddr_storage = struct {
  5237. Fss_family Tsa_family_t
  5238. F__ss_padding [118]uint8
  5239. F__ss_align uint64
  5240. }
  5241. type Timaxdiv_t = struct {
  5242. Fquot Tintmax_t
  5243. Frem Tintmax_t
  5244. }
  5245. type Tin_port_t = uint16
  5246. type Tin_addr_t = uint32
  5247. type Tin_addr = struct {
  5248. Fs_addr Tin_addr_t
  5249. }
  5250. type Tsockaddr_in = struct {
  5251. Fsin_family Tsa_family_t
  5252. Fsin_port Tin_port_t
  5253. Fsin_addr Tin_addr
  5254. Fsin_zero [8]Tuint8_t
  5255. }
  5256. type Tin6_addr = struct {
  5257. F__in6_union struct {
  5258. F__s6_addr16 [0][8]Tuint16_t
  5259. F__s6_addr32 [0][4]Tuint32_t
  5260. F__s6_addr [16]Tuint8_t
  5261. }
  5262. }
  5263. type Tsockaddr_in6 = struct {
  5264. Fsin6_family Tsa_family_t
  5265. Fsin6_port Tin_port_t
  5266. Fsin6_flowinfo Tuint32_t
  5267. Fsin6_addr Tin6_addr
  5268. Fsin6_scope_id Tuint32_t
  5269. }
  5270. type Tipv6_mreq = struct {
  5271. Fipv6mr_multiaddr Tin6_addr
  5272. Fipv6mr_interface uint32
  5273. }
  5274. type Tip_opts = struct {
  5275. Fip_dst Tin_addr
  5276. Fip_opts [40]uint8
  5277. }
  5278. type Tip_mreq = struct {
  5279. Fimr_multiaddr Tin_addr
  5280. Fimr_interface Tin_addr
  5281. }
  5282. type Tip_mreqn = struct {
  5283. Fimr_multiaddr Tin_addr
  5284. Fimr_address Tin_addr
  5285. Fimr_ifindex int32
  5286. }
  5287. type Tip_mreq_source = struct {
  5288. Fimr_multiaddr Tin_addr
  5289. Fimr_interface Tin_addr
  5290. Fimr_sourceaddr Tin_addr
  5291. }
  5292. type Tip_msfilter = struct {
  5293. Fimsf_multiaddr Tin_addr
  5294. Fimsf_interface Tin_addr
  5295. Fimsf_fmode Tuint32_t
  5296. Fimsf_numsrc Tuint32_t
  5297. Fimsf_slist [1]Tin_addr
  5298. }
  5299. type Tgroup_req = struct {
  5300. Fgr_interface Tuint32_t
  5301. Fgr_group Tsockaddr_storage
  5302. }
  5303. type Tgroup_source_req = struct {
  5304. Fgsr_interface Tuint32_t
  5305. Fgsr_group Tsockaddr_storage
  5306. Fgsr_source Tsockaddr_storage
  5307. }
  5308. type Tgroup_filter = struct {
  5309. Fgf_interface Tuint32_t
  5310. Fgf_group Tsockaddr_storage
  5311. Fgf_fmode Tuint32_t
  5312. Fgf_numsrc Tuint32_t
  5313. Fgf_slist [1]Tsockaddr_storage
  5314. }
  5315. type Tin_pktinfo = struct {
  5316. Fipi_ifindex int32
  5317. Fipi_spec_dst Tin_addr
  5318. Fipi_addr Tin_addr
  5319. }
  5320. type Tin6_pktinfo = struct {
  5321. Fipi6_addr Tin6_addr
  5322. Fipi6_ifindex uint32
  5323. }
  5324. type Tip6_mtuinfo = struct {
  5325. Fip6m_addr Tsockaddr_in6
  5326. Fip6m_mtu Tuint32_t
  5327. }
  5328. /* SHUT_RDWR is fairly recent and is not available on all platforms */
  5329. type Txcb_setup_generic_t = struct {
  5330. Fstatus Tuint8_t
  5331. Fpad0 [5]Tuint8_t
  5332. Flength Tuint16_t
  5333. }
  5334. var _xcb_error_setup = Txcb_setup_t{}
  5335. // C documentation
  5336. //
  5337. // /* Keep this list in sync with is_static_error_conn()! */
  5338. var _xcb_con_error = int32(m_XCB_CONN_ERROR)
  5339. var _xcb_con_closed_mem_er = int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT)
  5340. var _xcb_con_closed_parse_er = int32(m_XCB_CONN_CLOSED_PARSE_ERR)
  5341. var _xcb_con_closed_screen_er = int32(m_XCB_CONN_CLOSED_INVALID_SCREEN)
  5342. func _is_static_error_conn(tls *libc.TLS, c uintptr) (r int32) {
  5343. 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)))
  5344. }
  5345. func _set_fd_flags(tls *libc.TLS, fd int32) (r int32) {
  5346. bp := tls.Alloc(16)
  5347. defer tls.Free(16)
  5348. var flags int32
  5349. _ = flags
  5350. /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
  5351. flags = libc.Xfcntl(tls, fd, int32(m_F_GETFL), libc.VaList(bp+8, 0))
  5352. if flags == -int32(1) {
  5353. return 0
  5354. }
  5355. flags |= int32(m_O_NONBLOCK)
  5356. if libc.Xfcntl(tls, fd, int32(m_F_SETFL), libc.VaList(bp+8, flags)) == -int32(1) {
  5357. return 0
  5358. }
  5359. if libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC))) == -int32(1) {
  5360. return 0
  5361. }
  5362. return int32(1)
  5363. }
  5364. func _write_setup(tls *libc.TLS, c uintptr, auth_info uintptr) (r int32) {
  5365. bp := tls.Alloc(112)
  5366. defer tls.Free(112)
  5367. var count, ret, v1, v2, v4, v5, v7, v8 int32
  5368. var v3, v6 Tuint16_t
  5369. var _ /* out at bp+0 */ Txcb_setup_request_t
  5370. var _ /* parts at bp+16 */ [6]Tiovec
  5371. _, _, _, _, _, _, _, _, _, _ = count, ret, v1, v2, v3, v4, v5, v6, v7, v8
  5372. count = 0
  5373. libc.Xmemset(tls, bp, 0, uint64(12))
  5374. /* B = 0x42 = MSB first, l = 0x6c = LSB first */
  5375. if libc.Xhtonl(tls, _endian) == _endian {
  5376. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x42)
  5377. } else {
  5378. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fbyte_order = uint8(0x6c)
  5379. }
  5380. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_major_version = uint16(m_X_PROTOCOL)
  5381. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fprotocol_minor_version = uint16(m_X_PROTOCOL_REVISION)
  5382. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = uint16(0)
  5383. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = uint16(0)
  5384. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(12)
  5385. v1 = count
  5386. count++
  5387. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v1].Fiov_base = bp
  5388. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = -libc.Uint64FromInt64(12) & libc.Uint64FromInt32(3)
  5389. v2 = count
  5390. count++
  5391. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v2].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5392. if auth_info != 0 {
  5393. v3 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fnamelen)
  5394. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_name_len = v3
  5395. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v3)
  5396. v4 = count
  5397. count++
  5398. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v4].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fname
  5399. (*(*[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))
  5400. v5 = count
  5401. count++
  5402. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v5].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5403. v6 = libc.Uint16FromInt32((*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdatalen)
  5404. (*(*Txcb_setup_request_t)(unsafe.Pointer(bp))).Fauthorization_protocol_data_len = v6
  5405. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[count].Fiov_len = uint64(v6)
  5406. v7 = count
  5407. count++
  5408. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v7].Fiov_base = (*Txcb_auth_info_t)(unsafe.Pointer(auth_info)).Fdata
  5409. (*(*[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))
  5410. v8 = count
  5411. count++
  5412. (*(*[6]Tiovec)(unsafe.Pointer(bp + 16)))[v8].Fiov_base = uintptr(unsafe.Pointer(&_pad))
  5413. }
  5414. libc.Xpthread_mutex_lock(tls, c+24)
  5415. ret = X_xcb_out_send(tls, c, bp+16, count)
  5416. libc.Xpthread_mutex_unlock(tls, c+24)
  5417. return ret
  5418. }
  5419. var _pad [3]uint8
  5420. var _endian = uint32(0x01020304)
  5421. func _read_setup(tls *libc.TLS, c uintptr) (r int32) {
  5422. bp := tls.Alloc(16)
  5423. defer tls.Free(16)
  5424. var setup, setup1, tmp uintptr
  5425. var _ /* newline at bp+0 */ uint8
  5426. _, _, _ = setup, setup1, tmp
  5427. *(*uint8)(unsafe.Pointer(bp)) = uint8('\n')
  5428. /* Read the server response */
  5429. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = libc.Xmalloc(tls, uint64(8))
  5430. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup != 0) {
  5431. return 0
  5432. }
  5433. if libc.Uint64FromInt32(X_xcb_in_read_block(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup, int32(8))) != uint64(8) {
  5434. return 0
  5435. }
  5436. 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))
  5437. if !(tmp != 0) {
  5438. return 0
  5439. }
  5440. (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup = tmp
  5441. 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 {
  5442. return 0
  5443. }
  5444. /* 0 = failed, 2 = authenticate, 1 = success */
  5445. switch libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fstatus) {
  5446. case 0: /* failed */
  5447. setup = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5448. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_failed_reason(tls, setup), libc.Uint64FromInt32(Xxcb_setup_failed_reason_length(tls, setup)))
  5449. libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint64(1))
  5450. return 0
  5451. case int32(2): /* authenticate */
  5452. setup1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5453. libc.Xwrite(tls, int32(m_STDERR_FILENO), Xxcb_setup_authenticate_reason(tls, setup1), libc.Uint64FromInt32(Xxcb_setup_authenticate_reason_length(tls, setup1)))
  5454. libc.Xwrite(tls, int32(m_STDERR_FILENO), bp, uint64(1))
  5455. return 0
  5456. }
  5457. return int32(1)
  5458. }
  5459. // C documentation
  5460. //
  5461. // /* precondition: there must be something for us to write. */
  5462. func _write_vec(tls *libc.TLS, c uintptr, vector uintptr, count uintptr) (r int32) {
  5463. bp := tls.Alloc(144)
  5464. defer tls.Free(144)
  5465. var cur, i, n int32
  5466. var hdr, v1 uintptr
  5467. var _ /* cmsgbuf at bp+0 */ struct {
  5468. Fbuf [0][80]uint8
  5469. Fcmsghdr Tcmsghdr
  5470. F__ccgo_pad2 [64]byte
  5471. }
  5472. var _ /* msg at bp+80 */ Tmsghdr
  5473. _, _, _, _, _ = cur, hdr, i, n, v1
  5474. n = *(*int32)(unsafe.Pointer(count))
  5475. if n > int32(m_IOV_MAX) {
  5476. n = int32(m_IOV_MAX)
  5477. }
  5478. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd != 0 {
  5479. *(*Tmsghdr)(unsafe.Pointer(bp + 80)) = Tmsghdr{
  5480. Fmsg_iov: *(*uintptr)(unsafe.Pointer(vector)),
  5481. Fmsg_iovlen: n,
  5482. Fmsg_control: bp,
  5483. 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)),
  5484. }
  5485. if uint64((*Tmsghdr)(unsafe.Pointer(bp+80)).Fmsg_controllen) >= uint64(16) {
  5486. v1 = (*Tmsghdr)(unsafe.Pointer(bp + 80)).Fmsg_control
  5487. } else {
  5488. v1 = libc.UintptrFromInt32(0)
  5489. }
  5490. hdr = v1
  5491. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_len = (*(*Tmsghdr)(unsafe.Pointer(bp + 80))).Fmsg_controllen
  5492. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level = int32(m_SOL_SOCKET)
  5493. (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type = int32(m_SCM_RIGHTS)
  5494. libc.Xmemcpy(tls, hdr+libc.UintptrFromInt32(1)*16, c+4400+16592, libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd)*uint64(4))
  5495. n = int32(libc.Xsendmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+80, 0))
  5496. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5497. return int32(1)
  5498. }
  5499. i = 0
  5500. for {
  5501. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd) {
  5502. break
  5503. }
  5504. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 4400 + 16592 + uintptr(i)*4)))
  5505. goto _2
  5506. _2:
  5507. ;
  5508. i++
  5509. }
  5510. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd = 0
  5511. } else {
  5512. n = int32(libc.Xwritev(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, *(*uintptr)(unsafe.Pointer(vector)), n))
  5513. if n < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  5514. return int32(1)
  5515. }
  5516. }
  5517. if n <= 0 {
  5518. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5519. return 0
  5520. }
  5521. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written += libc.Uint64FromInt32(n)
  5522. for {
  5523. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5524. break
  5525. }
  5526. cur = libc.Int32FromUint64((*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len)
  5527. if cur > n {
  5528. cur = n
  5529. }
  5530. if cur != 0 {
  5531. *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)) + 8)) -= libc.Uint64FromInt32(cur)
  5532. (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base = (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_base + uintptr(cur)
  5533. n -= cur
  5534. }
  5535. if (*Tiovec)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(vector)))).Fiov_len != 0 {
  5536. break
  5537. }
  5538. goto _3
  5539. _3:
  5540. ;
  5541. *(*int32)(unsafe.Pointer(count))--
  5542. *(*uintptr)(unsafe.Pointer(vector)) += 16
  5543. }
  5544. if !(*(*int32)(unsafe.Pointer(count)) != 0) {
  5545. *(*uintptr)(unsafe.Pointer(vector)) = uintptr(0)
  5546. }
  5547. return int32(1)
  5548. }
  5549. /* Public interface */
  5550. func Xxcb_get_setup(tls *libc.TLS, c uintptr) (r uintptr) {
  5551. if _is_static_error_conn(tls, c) != 0 {
  5552. return uintptr(unsafe.Pointer(&_xcb_error_setup))
  5553. }
  5554. /* doesn't need locking because it's never written to. */
  5555. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup
  5556. }
  5557. func Xxcb_get_file_descriptor(tls *libc.TLS, c uintptr) (r int32) {
  5558. if _is_static_error_conn(tls, c) != 0 {
  5559. return -int32(1)
  5560. }
  5561. /* doesn't need locking because it's never written to. */
  5562. return (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5563. }
  5564. func Xxcb_connection_has_error(tls *libc.TLS, c uintptr) (r int32) {
  5565. /* doesn't need locking because it's read and written atomically. */
  5566. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error
  5567. }
  5568. func Xxcb_connect_to_fd(tls *libc.TLS, fd int32, auth_info uintptr) (r uintptr) {
  5569. var c uintptr
  5570. _ = c
  5571. c = libc.Xcalloc(tls, uint64(1), uint64(21176))
  5572. if !(c != 0) {
  5573. libc.Xclose(tls, fd)
  5574. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  5575. }
  5576. (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd = fd
  5577. 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) {
  5578. Xxcb_disconnect(tls, c)
  5579. return X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  5580. }
  5581. return c
  5582. }
  5583. func Xxcb_disconnect(tls *libc.TLS, c uintptr) {
  5584. if c == libc.UintptrFromInt32(0) || _is_static_error_conn(tls, c) != 0 {
  5585. return
  5586. }
  5587. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)
  5588. /* disallow further sends and receives */
  5589. libc.Xshutdown(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, int32(m_SHUT_RDWR))
  5590. libc.Xclose(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd)
  5591. libc.Xpthread_mutex_destroy(tls, c+24)
  5592. X_xcb_in_destroy(tls, c+64)
  5593. X_xcb_out_destroy(tls, c+4400)
  5594. X_xcb_ext_destroy(tls, c)
  5595. X_xcb_xid_destroy(tls, c)
  5596. libc.Xfree(tls, c)
  5597. }
  5598. /* Private interface */
  5599. func X_xcb_conn_shutdown(tls *libc.TLS, c uintptr, err int32) {
  5600. (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error = err
  5601. }
  5602. // C documentation
  5603. //
  5604. // /* Return connection error state.
  5605. // * To make thread-safe, I need a seperate static
  5606. // * variable for every possible error.
  5607. // * has_error is the first field in xcb_connection_t, so just
  5608. // * return a casted int here; checking has_error (and only
  5609. // * has_error) will be safe.
  5610. // */
  5611. func X_xcb_conn_ret_error(tls *libc.TLS, err int32) (r uintptr) {
  5612. switch err {
  5613. case int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT):
  5614. return uintptr(unsafe.Pointer(&_xcb_con_closed_mem_er))
  5615. case int32(m_XCB_CONN_CLOSED_PARSE_ERR):
  5616. return uintptr(unsafe.Pointer(&_xcb_con_closed_parse_er))
  5617. case int32(m_XCB_CONN_CLOSED_INVALID_SCREEN):
  5618. return uintptr(unsafe.Pointer(&_xcb_con_closed_screen_er))
  5619. case int32(m_XCB_CONN_ERROR):
  5620. fallthrough
  5621. default:
  5622. return uintptr(unsafe.Pointer(&_xcb_con_error))
  5623. }
  5624. return r
  5625. }
  5626. func X_xcb_conn_wait(tls *libc.TLS, c uintptr, cond uintptr, vector uintptr, count uintptr) (r int32) {
  5627. bp := tls.Alloc(16)
  5628. defer tls.Free(16)
  5629. var may_read, ret, v1 int32
  5630. var p2 uintptr
  5631. var _ /* fd at bp+0 */ Tpollfd
  5632. _, _, _, _ = may_read, ret, v1, p2
  5633. /* If the thing I should be doing is already being done, wait for it. */
  5634. if count != 0 {
  5635. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting
  5636. } else {
  5637. v1 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading
  5638. }
  5639. if v1 != 0 {
  5640. libc.Xpthread_cond_wait(tls, cond, c+24)
  5641. return int32(1)
  5642. }
  5643. libc.Xmemset(tls, bp, 0, uint64(8))
  5644. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd
  5645. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  5646. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading++
  5647. if count != 0 {
  5648. p2 = bp + 4
  5649. *(*int16)(unsafe.Pointer(p2)) = int16(int32(*(*int16)(unsafe.Pointer(p2))) | libc.Int32FromInt32(m_POLLOUT))
  5650. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting++
  5651. }
  5652. libc.Xpthread_mutex_unlock(tls, c+24)
  5653. for cond1 := true; cond1; cond1 = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  5654. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  5655. /* If poll() returns an event we didn't expect, such as POLLNVAL, treat
  5656. * it as if it failed. */
  5657. if ret >= 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents) & ^int32((*(*Tpollfd)(unsafe.Pointer(bp))).Fevents) != 0 {
  5658. ret = -int32(1)
  5659. break
  5660. }
  5661. }
  5662. if ret < 0 {
  5663. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  5664. ret = 0
  5665. }
  5666. libc.Xpthread_mutex_lock(tls, c+24)
  5667. if ret != 0 {
  5668. /* The code allows two threads to call select()/poll() at the same time.
  5669. * First thread just wants to read, a second thread wants to write, too.
  5670. * We have to make sure that we don't steal the reading thread's reply
  5671. * and let it get stuck in select()/poll().
  5672. * So a thread may read if either:
  5673. * - There is no other thread that wants to read (the above situation
  5674. * did not occur).
  5675. * - It is the reading thread (above situation occurred).
  5676. */
  5677. may_read = libc.BoolInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading == int32(1) || !(count != 0))
  5678. if may_read != 0 && int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLIN) != 0 {
  5679. ret = libc.BoolInt32(ret != 0 && X_xcb_in_read(tls, c) != 0)
  5680. }
  5681. if int32((*(*Tpollfd)(unsafe.Pointer(bp))).Frevents)&int32(m_POLLOUT) != 0 {
  5682. ret = libc.BoolInt32(ret != 0 && _write_vec(tls, c, vector, count) != 0)
  5683. }
  5684. }
  5685. if count != 0 {
  5686. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting--
  5687. }
  5688. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freading--
  5689. return ret
  5690. }
  5691. func Xxcb_total_read(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5692. var n Tuint64_t
  5693. _ = n
  5694. if Xxcb_connection_has_error(tls, c) != 0 {
  5695. return uint64(0)
  5696. }
  5697. libc.Xpthread_mutex_lock(tls, c+24)
  5698. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read
  5699. libc.Xpthread_mutex_unlock(tls, c+24)
  5700. return n
  5701. }
  5702. func Xxcb_total_written(tls *libc.TLS, c uintptr) (r Tuint64_t) {
  5703. var n Tuint64_t
  5704. _ = n
  5705. if Xxcb_connection_has_error(tls, c) != 0 {
  5706. return uint64(0)
  5707. }
  5708. libc.Xpthread_mutex_lock(tls, c+24)
  5709. n = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Ftotal_written
  5710. libc.Xpthread_mutex_unlock(tls, c+24)
  5711. return n
  5712. }
  5713. const m_SEEK_CUR = 1
  5714. const m_SEEK_END = 2
  5715. const m_SEEK_SET = 0
  5716. type Txcb_extension_t = struct {
  5717. Fname uintptr
  5718. Fglobal_id int32
  5719. }
  5720. type Txcb_extension_t1 = struct {
  5721. Fname uintptr
  5722. Fglobal_id int32
  5723. }
  5724. type Txcb_protocol_request_t = struct {
  5725. Fcount Tsize_t
  5726. Fext uintptr
  5727. Fopcode Tuint8_t
  5728. Fisvoid Tuint8_t
  5729. }
  5730. type _xcb_send_request_flags_t = int32
  5731. const _XCB_REQUEST_CHECKED = 1
  5732. const _XCB_REQUEST_RAW = 2
  5733. const _XCB_REQUEST_DISCARD_REPLY = 4
  5734. const _XCB_REQUEST_REPLY_FDS = 8
  5735. /*
  5736. * This file generated automatically from bigreq.xml by c_client.py.
  5737. * Edit at your peril.
  5738. */
  5739. /**
  5740. * @defgroup XCB_BigRequests_API XCB BigRequests API
  5741. * @brief BigRequests XCB Protocol Implementation.
  5742. * @{
  5743. **/
  5744. /**
  5745. * @}
  5746. */
  5747. func _send_request(tls *libc.TLS, c uintptr, isvoid int32, workaround _workarounds, flags int32, vector uintptr, count int32) {
  5748. var p1 uintptr
  5749. _ = p1
  5750. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5751. return
  5752. }
  5753. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest++
  5754. if !(isvoid != 0) {
  5755. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  5756. }
  5757. if workaround != int32(_WORKAROUND_NONE) || flags != 0 {
  5758. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest, workaround, flags)
  5759. }
  5760. for count != 0 && libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)+(*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len <= uint64(16384) {
  5761. 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)
  5762. p1 = c + 4400 + 16508
  5763. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5764. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len)
  5765. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(0)
  5766. vector += 16
  5767. count--
  5768. }
  5769. if !(count != 0) {
  5770. return
  5771. }
  5772. vector -= 16
  5773. count++
  5774. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = c + 4400 + 124
  5775. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  5776. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  5777. X_xcb_out_send(tls, c, vector, count)
  5778. }
  5779. func _send_sync(tls *libc.TLS, c uintptr) {
  5780. bp := tls.Alloc(32)
  5781. defer tls.Free(32)
  5782. var _ /* vector at bp+0 */ [2]Tiovec
  5783. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base = uintptr(unsafe.Pointer(&_sync_req))
  5784. (*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len = uint64(4)
  5785. _send_request(tls, c, 0, int32(_WORKAROUND_NONE), int32(_XCB_REQUEST_DISCARD_REPLY), bp+uintptr(1)*16, int32(1))
  5786. }
  5787. var _sync_req = *(*struct {
  5788. Fpacket [0]Tuint32_t
  5789. Ffields struct {
  5790. Fmajor Tuint8_t
  5791. Fpad Tuint8_t
  5792. Flen1 Tuint16_t
  5793. }
  5794. })(unsafe.Pointer(&struct {
  5795. Fmajor uint8
  5796. Fpad uint8
  5797. Flen1 uint16
  5798. }{
  5799. Fmajor: uint8(43),
  5800. Flen1: uint16(1),
  5801. }))
  5802. func _get_socket_back(tls *libc.TLS, c uintptr) {
  5803. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving != 0 {
  5804. libc.Xpthread_cond_wait(tls, c+4400+56, c+24)
  5805. }
  5806. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0) {
  5807. return
  5808. }
  5809. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = int32(1)
  5810. libc.Xpthread_mutex_unlock(tls, c+24)
  5811. (*(*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)
  5812. libc.Xpthread_mutex_lock(tls, c+24)
  5813. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_moving = 0
  5814. libc.Xpthread_cond_broadcast(tls, c+4400+56)
  5815. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = uintptr(0)
  5816. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = uintptr(0)
  5817. X_xcb_in_replies_done(tls, c)
  5818. }
  5819. func _prepare_socket_request(tls *libc.TLS, c uintptr) {
  5820. /* We're about to append data to out.queue, so we need to
  5821. * atomically test for an external socket owner *and* some other
  5822. * thread currently writing.
  5823. *
  5824. * If we have an external socket owner, we have to get the socket back
  5825. * before we can use it again.
  5826. *
  5827. * If some other thread is writing to the socket, we assume it's
  5828. * writing from out.queue, and so we can't stick data there.
  5829. *
  5830. * We satisfy this condition by first calling get_socket_back
  5831. * (which may drop the lock, but will return when XCB owns the
  5832. * socket again) and then checking for another writing thread and
  5833. * escaping the loop if we're ready to go.
  5834. */
  5835. for {
  5836. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5837. return
  5838. }
  5839. _get_socket_back(tls, c)
  5840. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0) {
  5841. break
  5842. }
  5843. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  5844. goto _1
  5845. _1:
  5846. }
  5847. }
  5848. /* Public interface */
  5849. func Xxcb_prefetch_maximum_request_length(tls *libc.TLS, c uintptr) {
  5850. var ext uintptr
  5851. _ = ext
  5852. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5853. return
  5854. }
  5855. libc.Xpthread_mutex_lock(tls, c+4400+16544)
  5856. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_NONE) {
  5857. ext = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_big_requests_id)))
  5858. if ext != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext)).Fpresent != 0 {
  5859. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_COOKIE)
  5860. *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16588)) = Xxcb_big_requests_enable(tls, c)
  5861. } else {
  5862. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5863. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5864. }
  5865. }
  5866. libc.Xpthread_mutex_unlock(tls, c+4400+16544)
  5867. }
  5868. func Xxcb_get_maximum_request_length(tls *libc.TLS, c uintptr) (r1 Tuint32_t) {
  5869. var r uintptr
  5870. _ = r
  5871. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5872. return uint32(0)
  5873. }
  5874. Xxcb_prefetch_maximum_request_length(tls, c)
  5875. libc.Xpthread_mutex_lock(tls, c+4400+16544)
  5876. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag == int32(_LAZY_COOKIE) {
  5877. r = Xxcb_big_requests_enable_reply(tls, c, *(*Txcb_big_requests_enable_cookie_t)(unsafe.Pointer(c + 4400 + 16588)), uintptr(0))
  5878. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fmaximum_request_length_tag = int32(_LAZY_FORCED)
  5879. if r != 0 {
  5880. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = (*Txcb_big_requests_enable_reply_t)(unsafe.Pointer(r)).Fmaximum_request_length
  5881. libc.Xfree(tls, r)
  5882. } else {
  5883. *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588)) = uint32((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length)
  5884. }
  5885. }
  5886. libc.Xpthread_mutex_unlock(tls, c+4400+16544)
  5887. return *(*Tuint32_t)(unsafe.Pointer(c + 4400 + 16588))
  5888. }
  5889. func _close_fds(tls *libc.TLS, fds uintptr, num_fds uint32) {
  5890. var index uint32
  5891. _ = index
  5892. index = uint32(0)
  5893. for {
  5894. if !(index < num_fds) {
  5895. break
  5896. }
  5897. libc.Xclose(tls, *(*int32)(unsafe.Pointer(fds + uintptr(index)*4)))
  5898. goto _1
  5899. _1:
  5900. ;
  5901. index++
  5902. }
  5903. }
  5904. func _send_fds(tls *libc.TLS, c uintptr, fds uintptr, num_fds uint32) {
  5905. var v1 int32
  5906. var v2 uintptr
  5907. _, _ = v1, v2
  5908. /* Calling _xcb_out_flush_to() can drop the iolock and wait on a condition
  5909. * variable if another thread is currently writing (c->out.writing > 0).
  5910. * This call waits for writers to be done and thus _xcb_out_flush_to() will
  5911. * do the work itself (in which case we are a writer and
  5912. * prepare_socket_request() will wait for us to be done if another threads
  5913. * tries to send fds, too). Thanks to this, we can atomically write out FDs.
  5914. */
  5915. _prepare_socket_request(tls, c)
  5916. for num_fds > uint32(0) {
  5917. 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) {
  5918. /* XXX: if c->out.writing > 0, this releases the iolock and
  5919. * potentially allows other threads to interfere with their own fds.
  5920. */
  5921. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  5922. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fout_fd.Fnfd == int32(m_XCB_MAX_PASS_FD) {
  5923. /* We need some request to send FDs with */
  5924. X_xcb_out_send_sync(tls, c)
  5925. }
  5926. }
  5927. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5928. break
  5929. }
  5930. v2 = c + 4400 + 16592 + 64
  5931. v1 = *(*int32)(unsafe.Pointer(v2))
  5932. *(*int32)(unsafe.Pointer(v2))++
  5933. *(*int32)(unsafe.Pointer(c + 4400 + 16592 + uintptr(v1)*4)) = *(*int32)(unsafe.Pointer(fds))
  5934. fds += 4
  5935. num_fds--
  5936. }
  5937. _close_fds(tls, fds, num_fds)
  5938. }
  5939. 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) {
  5940. bp := tls.Alloc(16)
  5941. defer tls.Free(16)
  5942. var extension uintptr
  5943. var i uint32
  5944. var longlen, v2 Tsize_t
  5945. var request Tuint64_t
  5946. var shortlen Tuint16_t
  5947. var veclen int32
  5948. var workaround _workarounds
  5949. var v3 uint64
  5950. var _ /* prefix at bp+0 */ [2]Tuint32_t
  5951. _, _, _, _, _, _, _, _, _ = extension, i, longlen, request, shortlen, veclen, workaround, v2, v3
  5952. veclen = libc.Int32FromUint64((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount)
  5953. workaround = int32(_WORKAROUND_NONE)
  5954. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  5955. _close_fds(tls, fds, num_fds)
  5956. return uint64(0)
  5957. }
  5958. if !(flags&int32(_XCB_REQUEST_RAW) != 0) {
  5959. shortlen = uint16(0)
  5960. longlen = uint64(0)
  5961. /* set the major opcode, and the minor opcode for extensions */
  5962. if (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext != 0 {
  5963. extension = Xxcb_get_extension_data(tls, c, (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fext)
  5964. if !(extension != 0 && (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fpresent != 0) {
  5965. _close_fds(tls, fds, num_fds)
  5966. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_EXT_NOTSUPPORTED))
  5967. return uint64(0)
  5968. }
  5969. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_query_extension_reply_t)(unsafe.Pointer(extension)).Fmajor_opcode
  5970. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5971. } else {
  5972. *(*Tuint8_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base)) = (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fopcode
  5973. }
  5974. /* put together the length field, possibly using BIGREQUESTS */
  5975. i = uint32(0)
  5976. for {
  5977. if !(uint64(i) < (*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fcount) {
  5978. break
  5979. }
  5980. longlen += (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_len
  5981. if !((*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base != 0) {
  5982. (*(*Tiovec)(unsafe.Pointer(vector + uintptr(i)*16))).Fiov_base = uintptr(unsafe.Pointer(&_pad1))
  5983. }
  5984. goto _1
  5985. _1:
  5986. ;
  5987. i++
  5988. }
  5989. longlen >>= uint64(2)
  5990. if longlen <= uint64((*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fmaximum_request_length) {
  5991. /* we don't need BIGREQUESTS. */
  5992. shortlen = uint16(longlen)
  5993. longlen = uint64(0)
  5994. } else {
  5995. if longlen > uint64(Xxcb_get_maximum_request_length(tls, c)) {
  5996. _close_fds(tls, fds, num_fds)
  5997. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_REQ_LEN_EXCEED))
  5998. return uint64(0) /* server can't take this; maybe need BIGREQUESTS? */
  5999. }
  6000. }
  6001. /* set the length field. */
  6002. *(*Tuint16_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + 1*2)) = shortlen
  6003. if !(shortlen != 0) {
  6004. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[0] = *(*Tuint32_t)(unsafe.Pointer((*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base))
  6005. longlen++
  6006. v2 = longlen
  6007. (*(*[2]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] = uint32(v2)
  6008. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base + uintptr(1)*4
  6009. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len -= uint64(4)
  6010. vector -= 16
  6011. veclen++
  6012. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_base = bp
  6013. (*(*Tiovec)(unsafe.Pointer(vector))).Fiov_len = uint64(8)
  6014. }
  6015. }
  6016. flags &= ^int32(_XCB_REQUEST_RAW)
  6017. /* do we need to work around the X server bug described in glx.xml? */
  6018. /* XXX: GetFBConfigs won't use BIG-REQUESTS in any sane
  6019. * configuration, but that should be handled here anyway. */
  6020. 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)) {
  6021. workaround = int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG)
  6022. }
  6023. /* get a sequence number and arrange for delivery. */
  6024. libc.Xpthread_mutex_lock(tls, c+24)
  6025. /* send FDs before establishing a good request number, because this might
  6026. * call send_sync(), too
  6027. */
  6028. _send_fds(tls, c, fds, num_fds)
  6029. _prepare_socket_request(tls, c)
  6030. /* send GetInputFocus (sync_req) when 64k-2 requests have been sent without
  6031. * a reply.
  6032. * Also send sync_req (could use NoOp) at 32-bit wrap to avoid having
  6033. * applications see sequence 0 as that is used to indicate
  6034. * an error in sending the request
  6035. */
  6036. 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) {
  6037. _send_sync(tls, c)
  6038. _prepare_socket_request(tls, c)
  6039. }
  6040. _send_request(tls, c, libc.Int32FromUint8((*Txcb_protocol_request_t)(unsafe.Pointer(req)).Fisvoid), workaround, flags, vector, veclen)
  6041. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6042. v3 = uint64(0)
  6043. } else {
  6044. v3 = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6045. }
  6046. request = v3
  6047. libc.Xpthread_mutex_unlock(tls, c+24)
  6048. return request
  6049. }
  6050. var _pad1 [3]uint8
  6051. // C documentation
  6052. //
  6053. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6054. func Xxcb_send_request_with_fds(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr, num_fds uint32, fds uintptr) (r uint32) {
  6055. return uint32(Xxcb_send_request_with_fds64(tls, c, flags, vector, req, num_fds, fds))
  6056. }
  6057. func Xxcb_send_request64(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r Tuint64_t) {
  6058. return Xxcb_send_request_with_fds64(tls, c, flags, vector, req, uint32(0), libc.UintptrFromInt32(0))
  6059. }
  6060. // C documentation
  6061. //
  6062. // /* request number are actually uint64_t internally but keep API compat with unsigned int */
  6063. func Xxcb_send_request(tls *libc.TLS, c uintptr, flags int32, vector uintptr, req uintptr) (r uint32) {
  6064. return uint32(Xxcb_send_request64(tls, c, flags, vector, req))
  6065. }
  6066. func Xxcb_send_fd(tls *libc.TLS, c uintptr, fd int32) {
  6067. bp := tls.Alloc(16)
  6068. defer tls.Free(16)
  6069. var _ /* fds at bp+0 */ [1]int32
  6070. *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{
  6071. 0: fd,
  6072. }
  6073. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6074. libc.Xclose(tls, fd)
  6075. return
  6076. }
  6077. libc.Xpthread_mutex_lock(tls, c+24)
  6078. _send_fds(tls, c, bp, uint32(1))
  6079. libc.Xpthread_mutex_unlock(tls, c+24)
  6080. }
  6081. func Xxcb_take_socket(tls *libc.TLS, c uintptr, return_socket uintptr, closure uintptr, flags int32, sent uintptr) (r int32) {
  6082. var ret int32
  6083. _ = ret
  6084. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6085. return 0
  6086. }
  6087. libc.Xpthread_mutex_lock(tls, c+24)
  6088. _get_socket_back(tls, c)
  6089. /* _xcb_out_flush may drop the iolock allowing other threads to
  6090. * write requests, so keep flushing until we're done
  6091. */
  6092. for cond := true; cond; cond = ret != 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest != (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written {
  6093. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6094. }
  6095. if ret != 0 {
  6096. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket = return_socket
  6097. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fsocket_closure = closure
  6098. if flags != 0 {
  6099. /* c->out.request + 1 will be the first request sent by the external
  6100. * socket owner. If the socket is returned before this request is sent
  6101. * it will be detected in _xcb_in_replies_done and this pending_reply
  6102. * will be discarded.
  6103. */
  6104. X_xcb_in_expect_reply(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest+uint64(1), int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER), flags)
  6105. }
  6106. *(*Tuint64_t)(unsafe.Pointer(sent)) = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6107. }
  6108. libc.Xpthread_mutex_unlock(tls, c+24)
  6109. return ret
  6110. }
  6111. func Xxcb_writev(tls *libc.TLS, c uintptr, vector uintptr, count int32, requests Tuint64_t) (r int32) {
  6112. var ret int32
  6113. _ = ret
  6114. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6115. return 0
  6116. }
  6117. libc.Xpthread_mutex_lock(tls, c+24)
  6118. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest += requests
  6119. ret = X_xcb_out_send(tls, c, vector, count)
  6120. libc.Xpthread_mutex_unlock(tls, c+24)
  6121. return ret
  6122. }
  6123. func Xxcb_flush(tls *libc.TLS, c uintptr) (r int32) {
  6124. var ret int32
  6125. _ = ret
  6126. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6127. return 0
  6128. }
  6129. libc.Xpthread_mutex_lock(tls, c+24)
  6130. ret = X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6131. libc.Xpthread_mutex_unlock(tls, c+24)
  6132. return ret
  6133. }
  6134. /* Private interface */
  6135. func X_xcb_out_init(tls *libc.TLS, out uintptr) (r int32) {
  6136. if libc.Xpthread_cond_init(tls, out+56, uintptr(0)) != 0 {
  6137. return 0
  6138. }
  6139. (*T_xcb_out)(unsafe.Pointer(out)).Freturn_socket = uintptr(0)
  6140. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_closure = uintptr(0)
  6141. (*T_xcb_out)(unsafe.Pointer(out)).Fsocket_moving = 0
  6142. if libc.Xpthread_cond_init(tls, out, uintptr(0)) != 0 {
  6143. return 0
  6144. }
  6145. (*T_xcb_out)(unsafe.Pointer(out)).Fwriting = 0
  6146. (*T_xcb_out)(unsafe.Pointer(out)).Fqueue_len = 0
  6147. (*T_xcb_out)(unsafe.Pointer(out)).Frequest = uint64(0)
  6148. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_written = uint64(0)
  6149. (*T_xcb_out)(unsafe.Pointer(out)).Frequest_expected_written = uint64(0)
  6150. if libc.Xpthread_mutex_init(tls, out+16544, uintptr(0)) != 0 {
  6151. return 0
  6152. }
  6153. (*T_xcb_out)(unsafe.Pointer(out)).Fmaximum_request_length_tag = int32(_LAZY_NONE)
  6154. return int32(1)
  6155. }
  6156. func X_xcb_out_destroy(tls *libc.TLS, out uintptr) {
  6157. libc.Xpthread_mutex_destroy(tls, out+16544)
  6158. libc.Xpthread_cond_destroy(tls, out)
  6159. libc.Xpthread_cond_destroy(tls, out+56)
  6160. }
  6161. func X_xcb_out_send(tls *libc.TLS, c uintptr, _vector uintptr, _count int32) (r int32) {
  6162. bp := tls.Alloc(16)
  6163. defer tls.Free(16)
  6164. *(*uintptr)(unsafe.Pointer(bp)) = _vector
  6165. *(*int32)(unsafe.Pointer(bp + 8)) = _count
  6166. var ret int32
  6167. _ = ret
  6168. ret = int32(1)
  6169. for ret != 0 && *(*int32)(unsafe.Pointer(bp + 8)) != 0 {
  6170. ret = X_xcb_conn_wait(tls, c, c+4400, bp, bp+8)
  6171. }
  6172. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  6173. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected
  6174. libc.Xpthread_cond_broadcast(tls, c+4400)
  6175. X_xcb_in_wake_up_next_reader(tls, c)
  6176. return ret
  6177. }
  6178. func X_xcb_out_send_sync(tls *libc.TLS, c uintptr) {
  6179. _prepare_socket_request(tls, c)
  6180. _send_sync(tls, c)
  6181. }
  6182. func X_xcb_out_flush_to(tls *libc.TLS, c uintptr, request Tuint64_t) (r int32) {
  6183. bp := tls.Alloc(16)
  6184. defer tls.Free(16)
  6185. var _ /* vec at bp+0 */ Tiovec
  6186. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_written-request) >= 0 {
  6187. return int32(1)
  6188. }
  6189. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len != 0 {
  6190. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_base = c + 4400 + 124
  6191. (*(*Tiovec)(unsafe.Pointer(bp))).Fiov_len = libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len)
  6192. (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fqueue_len = 0
  6193. return X_xcb_out_send(tls, c, bp, int32(1))
  6194. }
  6195. for (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Fwriting != 0 {
  6196. libc.Xpthread_cond_wait(tls, c+4400, c+24)
  6197. }
  6198. return int32(1)
  6199. }
  6200. const m_INT32_MAX1 = 2147483647
  6201. const m_MSG_CTRUNC1 = 8
  6202. const m_MSG_TRUNC1 = 32
  6203. const m_POLLOUT1 = 0x004
  6204. const m_UINT32_MAX1 = 4294967295
  6205. const m_XCB_ERROR = 0
  6206. const m_XCB_REPLY = 1
  6207. const m_XCB_XGE_EVENT = 35
  6208. type Txcb_special_event_t = struct {
  6209. Fnext uintptr
  6210. Fextension Tuint8_t
  6211. Feid Tuint32_t
  6212. Fstamp uintptr
  6213. Fevents uintptr
  6214. Fevents_tail uintptr
  6215. Fspecial_event_cond Tpthread_cond_t
  6216. }
  6217. type Txcb_special_event = Txcb_special_event_t
  6218. type Tevent_list = struct {
  6219. Fevent uintptr
  6220. Fnext uintptr
  6221. }
  6222. type Treply_list = struct {
  6223. Freply uintptr
  6224. Fnext uintptr
  6225. }
  6226. type Tpending_reply = struct {
  6227. Ffirst_request Tuint64_t
  6228. Flast_request Tuint64_t
  6229. Fworkaround _workarounds
  6230. Fflags int32
  6231. Fnext uintptr
  6232. }
  6233. type Treader_list = struct {
  6234. Frequest Tuint64_t
  6235. Fdata uintptr
  6236. Fnext uintptr
  6237. }
  6238. type Tspecial_list = struct {
  6239. Fse uintptr
  6240. Fnext uintptr
  6241. }
  6242. func _remove_finished_readers(tls *libc.TLS, prev_reader uintptr, completed Tuint64_t) {
  6243. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-completed) <= 0 {
  6244. /* If you don't have what you're looking for now, you never
  6245. * will. Wake up and leave me alone. */
  6246. libc.Xpthread_cond_signal(tls, (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fdata)
  6247. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6248. }
  6249. }
  6250. func _read_fds(tls *libc.TLS, c uintptr, fds uintptr, nfd int32) (r int32) {
  6251. var ifds uintptr
  6252. var infd int32
  6253. _, _ = ifds, infd
  6254. ifds = c + 64 + 4256 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd)*4
  6255. infd = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd - (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  6256. if nfd > infd {
  6257. return 0
  6258. }
  6259. libc.Xmemcpy(tls, fds, ifds, libc.Uint64FromInt32(nfd)*uint64(4))
  6260. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd += nfd
  6261. return int32(1)
  6262. }
  6263. type Txcb_ge_special_event_t = struct {
  6264. Fresponse_type Tuint8_t
  6265. Fextension Tuint8_t
  6266. Fsequence Tuint16_t
  6267. Flength Tuint32_t
  6268. Fevtype Tuint16_t
  6269. Fpad0 [2]Tuint8_t
  6270. Feid Tuint32_t
  6271. Fpad1 [16]Tuint8_t
  6272. }
  6273. func _event_special(tls *libc.TLS, c uintptr, event uintptr) (r int32) {
  6274. var ges, special_event uintptr
  6275. _, _ = ges, special_event
  6276. ges = (*Tevent_list)(unsafe.Pointer(event)).Fevent
  6277. /* Special events are always XGE events */
  6278. if libc.Int32FromUint8((*Txcb_ge_special_event_t1)(unsafe.Pointer(ges)).Fresponse_type)&int32(0x7f) != int32(m_XCB_XGE_EVENT) {
  6279. return 0
  6280. }
  6281. special_event = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6282. for {
  6283. if !(special_event != 0) {
  6284. break
  6285. }
  6286. 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 {
  6287. *(*uintptr)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail)) = event
  6288. (*Txcb_special_event)(unsafe.Pointer(special_event)).Fevents_tail = event + 8
  6289. if (*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp != 0 {
  6290. *(*Tuint32_t)(unsafe.Pointer((*Txcb_special_event)(unsafe.Pointer(special_event)).Fstamp))++
  6291. }
  6292. libc.Xpthread_cond_signal(tls, special_event+40)
  6293. return int32(1)
  6294. }
  6295. goto _1
  6296. _1:
  6297. ;
  6298. special_event = (*Txcb_special_event)(unsafe.Pointer(special_event)).Fnext
  6299. }
  6300. return 0
  6301. }
  6302. func _read_packet(tls *libc.TLS, c uintptr) (r int32) {
  6303. bp := tls.Alloc(16)
  6304. defer tls.Free(16)
  6305. var buf, cur, event, oldpend, p, pend uintptr
  6306. var bufsize, eventlength, lastread, length, new_length Tuint64_t
  6307. var nfd int32
  6308. var v1 uint64
  6309. var _ /* genrep at bp+0 */ Txcb_generic_reply_t
  6310. _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, bufsize, cur, event, eventlength, lastread, length, new_length, nfd, oldpend, p, pend, v1
  6311. length = uint64(32)
  6312. eventlength = uint64(0) /* length after first 32 bytes for GenericEvents */
  6313. nfd = 0
  6314. pend = uintptr(0)
  6315. /* Wait for there to be enough data for us to read a whole packet */
  6316. if libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len) < length {
  6317. return 0
  6318. }
  6319. /* Get the response type, length, and sequence number. */
  6320. libc.Xmemcpy(tls, bp, c+64+52, uint64(8))
  6321. /* Compute 32-bit sequence number of this packet. */
  6322. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) != int32(m_XCB_KEYMAP_NOTIFY) {
  6323. lastread = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6324. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read = lastread&uint64(0xffffffffffff0000) | uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fsequence)
  6325. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-lastread) < 0 {
  6326. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read += uint64(0x10000)
  6327. }
  6328. if libc.Int64FromUint64((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) > 0 {
  6329. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6330. }
  6331. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read != lastread {
  6332. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6333. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, lastread, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply)
  6334. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = uintptr(0)
  6335. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6336. }
  6337. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read - uint64(1)
  6338. }
  6339. 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 {
  6340. oldpend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6341. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies = (*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext
  6342. if !((*Tpending_reply)(unsafe.Pointer(oldpend)).Fnext != 0) {
  6343. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = c + 64 + 4240
  6344. }
  6345. libc.Xfree(tls, oldpend)
  6346. }
  6347. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == m_XCB_ERROR {
  6348. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read
  6349. }
  6350. _remove_finished_readers(tls, c+64+4224, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed)
  6351. }
  6352. 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) {
  6353. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies
  6354. 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)) {
  6355. pend = uintptr(0)
  6356. }
  6357. }
  6358. /* For reply packets, check that the entire packet is available. */
  6359. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6360. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_GLX_GET_FB_CONFIGS_BUG) {
  6361. p = c + 64 + 52
  6362. new_length = uint64(*(*Tuint32_t)(unsafe.Pointer(p + 2*4))) * uint64(*(*Tuint32_t)(unsafe.Pointer(p + 3*4)))
  6363. if new_length >= uint64(libc.Uint32FromUint32(0xffffffff)/libc.Uint32FromUint32(16)) {
  6364. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6365. return 0
  6366. }
  6367. (*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength = uint32(new_length * libc.Uint64FromUint64(2))
  6368. }
  6369. length += uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
  6370. /* XXX a bit of a hack -- we "know" that all FD replys place
  6371. * the number of fds in the pad0 byte */
  6372. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_REPLY_FDS) != 0 {
  6373. nfd = libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fpad0)
  6374. }
  6375. }
  6376. /* XGE events may have sizes > 32 */
  6377. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type)&int32(0x7f) == int32(m_XCB_XGE_EVENT) {
  6378. eventlength = uint64((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Flength) * uint64(4)
  6379. }
  6380. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) == int32(m_XCB_REPLY) {
  6381. v1 = uint64(0)
  6382. } else {
  6383. v1 = uint64(4)
  6384. }
  6385. bufsize = length + eventlength + libc.Uint64FromInt32(nfd)*uint64(4) + v1
  6386. if bufsize < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT32_MAX1)) {
  6387. buf = libc.Xmalloc(tls, bufsize)
  6388. } else {
  6389. buf = libc.UintptrFromInt32(0)
  6390. }
  6391. if !(buf != 0) {
  6392. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6393. return 0
  6394. }
  6395. if X_xcb_in_read_block(tls, c, buf, libc.Int32FromUint64(length)) <= 0 {
  6396. libc.Xfree(tls, buf)
  6397. return 0
  6398. }
  6399. /* pull in XGE event data if available, append after event struct */
  6400. if eventlength != 0 {
  6401. if X_xcb_in_read_block(tls, c, buf+1*36, libc.Int32FromUint64(eventlength)) <= 0 {
  6402. libc.Xfree(tls, buf)
  6403. return 0
  6404. }
  6405. }
  6406. if nfd != 0 {
  6407. if !(_read_fds(tls, c, buf+uintptr(length), nfd) != 0) {
  6408. libc.Xfree(tls, buf)
  6409. return 0
  6410. }
  6411. }
  6412. if pend != 0 && (*Tpending_reply)(unsafe.Pointer(pend)).Fflags&int32(_XCB_REQUEST_DISCARD_REPLY) != 0 {
  6413. libc.Xfree(tls, buf)
  6414. return int32(1)
  6415. }
  6416. if libc.Int32FromUint8((*(*Txcb_generic_reply_t)(unsafe.Pointer(bp))).Fresponse_type) != int32(m_XCB_REPLY) {
  6417. (*Txcb_generic_event_t)(unsafe.Pointer(buf)).Ffull_sequence = uint32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read)
  6418. }
  6419. /* reply, or checked error */
  6420. 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 {
  6421. cur = libc.Xmalloc(tls, uint64(16))
  6422. if !(cur != 0) {
  6423. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6424. libc.Xfree(tls, buf)
  6425. return 0
  6426. }
  6427. (*Treply_list)(unsafe.Pointer(cur)).Freply = buf
  6428. (*Treply_list)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  6429. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail)) = cur
  6430. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = cur + 8
  6431. 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 {
  6432. libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  6433. }
  6434. return int32(1)
  6435. }
  6436. /* event, or unchecked error */
  6437. event = libc.Xmalloc(tls, uint64(16))
  6438. if !(event != 0) {
  6439. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6440. libc.Xfree(tls, buf)
  6441. return 0
  6442. }
  6443. (*Tevent_list)(unsafe.Pointer(event)).Fevent = buf
  6444. (*Tevent_list)(unsafe.Pointer(event)).Fnext = uintptr(0)
  6445. if !(_event_special(tls, c, event) != 0) {
  6446. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail)) = event
  6447. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = event + 8
  6448. libc.Xpthread_cond_signal(tls, c+64)
  6449. }
  6450. return int32(1) /* I have something for you... */
  6451. }
  6452. func _get_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6453. var cur, ret uintptr
  6454. _, _ = cur, ret
  6455. cur = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents
  6456. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents != 0) {
  6457. return uintptr(0)
  6458. }
  6459. ret = (*Tevent_list)(unsafe.Pointer(cur)).Fevent
  6460. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents = (*Tevent_list)(unsafe.Pointer(cur)).Fnext
  6461. if !((*Tevent_list)(unsafe.Pointer(cur)).Fnext != 0) {
  6462. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fevents_tail = c + 64 + 4208
  6463. }
  6464. libc.Xfree(tls, cur)
  6465. return ret
  6466. }
  6467. func _free_reply_list(tls *libc.TLS, head uintptr) {
  6468. var cur uintptr
  6469. _ = cur
  6470. for head != 0 {
  6471. cur = head
  6472. head = (*Treply_list)(unsafe.Pointer(cur)).Fnext
  6473. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(cur)).Freply)
  6474. libc.Xfree(tls, cur)
  6475. }
  6476. }
  6477. func _read_block(tls *libc.TLS, fd int32, buf uintptr, len1 Tintptr_t) (r int32) {
  6478. bp := tls.Alloc(16)
  6479. defer tls.Free(16)
  6480. var done, ret int32
  6481. var _ /* pfd at bp+0 */ Tpollfd
  6482. _, _ = done, ret
  6483. done = 0
  6484. for int64(done) < len1 {
  6485. ret = int32(libc.Xrecv(tls, fd, buf+uintptr(done), libc.Uint64FromInt64(len1-int64(done)), 0))
  6486. if ret > 0 {
  6487. done += ret
  6488. }
  6489. if ret < 0 && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EAGAIN) {
  6490. (*(*Tpollfd)(unsafe.Pointer(bp))).Ffd = fd
  6491. (*(*Tpollfd)(unsafe.Pointer(bp))).Fevents = int16(m_POLLIN)
  6492. (*(*Tpollfd)(unsafe.Pointer(bp))).Frevents = 0
  6493. for cond := true; cond; cond = ret == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINTR) {
  6494. ret = libc.Xpoll(tls, bp, uint64(1), -int32(1))
  6495. }
  6496. }
  6497. if ret <= 0 {
  6498. return ret
  6499. }
  6500. }
  6501. return int32(len1)
  6502. }
  6503. func _poll_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6504. var head uintptr
  6505. _ = head
  6506. /* If an error occurred when issuing the request, fail immediately. */
  6507. if !(request != 0) {
  6508. head = uintptr(0)
  6509. } else {
  6510. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read) < 0 {
  6511. head = X_xcb_map_remove(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request)
  6512. if head != 0 && (*Treply_list)(unsafe.Pointer(head)).Fnext != 0 {
  6513. X_xcb_map_put(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freplies, request, (*Treply_list)(unsafe.Pointer(head)).Fnext)
  6514. }
  6515. } else {
  6516. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_read && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply != 0 {
  6517. head = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply
  6518. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply = (*Treply_list)(unsafe.Pointer(head)).Fnext
  6519. if !((*Treply_list)(unsafe.Pointer(head)).Fnext != 0) {
  6520. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fcurrent_reply_tail = c + 64 + 4184
  6521. }
  6522. } else {
  6523. if request == (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed {
  6524. head = uintptr(0)
  6525. } else {
  6526. return 0
  6527. }
  6528. }
  6529. }
  6530. }
  6531. if error1 != 0 {
  6532. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6533. }
  6534. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6535. if head != 0 {
  6536. if libc.Int32FromUint8((*Txcb_generic_reply_t)(unsafe.Pointer((*Treply_list)(unsafe.Pointer(head)).Freply)).Fresponse_type) == m_XCB_ERROR {
  6537. if error1 != 0 {
  6538. *(*uintptr)(unsafe.Pointer(error1)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6539. } else {
  6540. libc.Xfree(tls, (*Treply_list)(unsafe.Pointer(head)).Freply)
  6541. }
  6542. } else {
  6543. *(*uintptr)(unsafe.Pointer(reply)) = (*Treply_list)(unsafe.Pointer(head)).Freply
  6544. }
  6545. libc.Xfree(tls, head)
  6546. }
  6547. return int32(1)
  6548. }
  6549. func _insert_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr, request Tuint64_t, cond uintptr) {
  6550. for *(*uintptr)(unsafe.Pointer(prev_reader)) != 0 && libc.Int64FromUint64((*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Frequest-request) <= 0 {
  6551. prev_reader = *(*uintptr)(unsafe.Pointer(prev_reader)) + 16
  6552. }
  6553. (*Treader_list)(unsafe.Pointer(reader)).Frequest = request
  6554. (*Treader_list)(unsafe.Pointer(reader)).Fdata = cond
  6555. (*Treader_list)(unsafe.Pointer(reader)).Fnext = *(*uintptr)(unsafe.Pointer(prev_reader))
  6556. *(*uintptr)(unsafe.Pointer(prev_reader)) = reader
  6557. }
  6558. func _remove_reader(tls *libc.TLS, prev_reader uintptr, reader uintptr) {
  6559. 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 {
  6560. if *(*uintptr)(unsafe.Pointer(prev_reader)) == reader {
  6561. *(*uintptr)(unsafe.Pointer(prev_reader)) = (*Treader_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_reader)))).Fnext
  6562. break
  6563. }
  6564. }
  6565. }
  6566. func _insert_special(tls *libc.TLS, prev_special uintptr, special uintptr, se uintptr) {
  6567. (*Tspecial_list)(unsafe.Pointer(special)).Fse = se
  6568. (*Tspecial_list)(unsafe.Pointer(special)).Fnext = *(*uintptr)(unsafe.Pointer(prev_special))
  6569. *(*uintptr)(unsafe.Pointer(prev_special)) = special
  6570. }
  6571. func _remove_special(tls *libc.TLS, prev_special uintptr, special uintptr) {
  6572. for *(*uintptr)(unsafe.Pointer(prev_special)) != 0 {
  6573. if *(*uintptr)(unsafe.Pointer(prev_special)) == special {
  6574. *(*uintptr)(unsafe.Pointer(prev_special)) = (*Tspecial_list)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_special)))).Fnext
  6575. break
  6576. }
  6577. prev_special = *(*uintptr)(unsafe.Pointer(prev_special)) + 8
  6578. }
  6579. }
  6580. func _wait_for_reply(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6581. bp := tls.Alloc(80)
  6582. defer tls.Free(80)
  6583. var _ /* cond at bp+8 */ Tpthread_cond_t
  6584. var _ /* reader at bp+56 */ Treader_list
  6585. var _ /* ret at bp+0 */ uintptr
  6586. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6587. /* If this request has not been written yet, write it. */
  6588. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Freturn_socket != 0 || X_xcb_out_flush_to(tls, c, request) != 0 {
  6589. *(*Tpthread_cond_t)(unsafe.Pointer(bp + 8)) = Tpthread_cond_t{}
  6590. *(*int32)(unsafe.Pointer(bp + 8)) = 0
  6591. _insert_reader(tls, c+64+4224, bp+56, request, bp+8)
  6592. for !(_poll_for_reply(tls, c, request, bp, e) != 0) {
  6593. if !(X_xcb_conn_wait(tls, c, bp+8, uintptr(0), uintptr(0)) != 0) {
  6594. break
  6595. }
  6596. }
  6597. _remove_reader(tls, c+64+4224, bp+56)
  6598. libc.Xpthread_cond_destroy(tls, bp+8)
  6599. }
  6600. X_xcb_in_wake_up_next_reader(tls, c)
  6601. return *(*uintptr)(unsafe.Pointer(bp))
  6602. }
  6603. func _widen(tls *libc.TLS, c uintptr, request uint32) (r Tuint64_t) {
  6604. var widened_request Tuint64_t
  6605. _ = widened_request
  6606. widened_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest&uint64(0xffffffff00000000) | uint64(request)
  6607. if widened_request > (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest {
  6608. widened_request -= libc.Uint64FromUint64(1) << libc.Int32FromInt32(32)
  6609. }
  6610. return widened_request
  6611. }
  6612. /* Public interface */
  6613. func Xxcb_wait_for_reply(tls *libc.TLS, c uintptr, request uint32, e uintptr) (r uintptr) {
  6614. var ret uintptr
  6615. _ = ret
  6616. if e != 0 {
  6617. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6618. }
  6619. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6620. return uintptr(0)
  6621. }
  6622. libc.Xpthread_mutex_lock(tls, c+24)
  6623. ret = _wait_for_reply(tls, c, _widen(tls, c, request), e)
  6624. libc.Xpthread_mutex_unlock(tls, c+24)
  6625. return ret
  6626. }
  6627. func Xxcb_wait_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, e uintptr) (r uintptr) {
  6628. var ret uintptr
  6629. _ = ret
  6630. if e != 0 {
  6631. *(*uintptr)(unsafe.Pointer(e)) = uintptr(0)
  6632. }
  6633. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6634. return uintptr(0)
  6635. }
  6636. libc.Xpthread_mutex_lock(tls, c+24)
  6637. ret = _wait_for_reply(tls, c, request, e)
  6638. libc.Xpthread_mutex_unlock(tls, c+24)
  6639. return ret
  6640. }
  6641. func Xxcb_get_reply_fds(tls *libc.TLS, c uintptr, reply uintptr, reply_size Tsize_t) (r uintptr) {
  6642. return reply + uintptr(reply_size)
  6643. }
  6644. func _insert_pending_discard(tls *libc.TLS, c uintptr, prev_next uintptr, seq Tuint64_t) {
  6645. var pend uintptr
  6646. _ = pend
  6647. pend = libc.Xmalloc(tls, uint64(32))
  6648. if !(pend != 0) {
  6649. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  6650. return
  6651. }
  6652. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = seq
  6653. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = seq
  6654. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = 0
  6655. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = int32(_XCB_REQUEST_DISCARD_REPLY)
  6656. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = *(*uintptr)(unsafe.Pointer(prev_next))
  6657. *(*uintptr)(unsafe.Pointer(prev_next)) = pend
  6658. if !((*Tpending_reply)(unsafe.Pointer(pend)).Fnext != 0) {
  6659. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  6660. }
  6661. }
  6662. func _discard_reply(tls *libc.TLS, c uintptr, request Tuint64_t) {
  6663. bp := tls.Alloc(16)
  6664. defer tls.Free(16)
  6665. var prev_pend uintptr
  6666. var _ /* reply at bp+0 */ uintptr
  6667. _ = prev_pend
  6668. /* Free any replies or errors that we've already read. Stop if
  6669. * xcb_wait_for_reply would block or we've run out of replies. */
  6670. for _poll_for_reply(tls, c, request, bp, uintptr(0)) != 0 && *(*uintptr)(unsafe.Pointer(bp)) != 0 {
  6671. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp)))
  6672. }
  6673. /* If we've proven there are no more responses coming, we're done. */
  6674. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) <= 0 {
  6675. return
  6676. }
  6677. /* Walk the list of pending requests. Mark the first match for deletion. */
  6678. prev_pend = c + 64 + 4240
  6679. for {
  6680. if !(*(*uintptr)(unsafe.Pointer(prev_pend)) != 0) {
  6681. break
  6682. }
  6683. if libc.Int64FromUint64((*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request-request) > 0 {
  6684. break
  6685. }
  6686. if (*Tpending_reply)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)))).Ffirst_request == request {
  6687. /* Pending reply found. Mark for discard: */
  6688. *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(prev_pend)) + 20)) |= int32(_XCB_REQUEST_DISCARD_REPLY)
  6689. return
  6690. }
  6691. goto _1
  6692. _1:
  6693. ;
  6694. prev_pend = *(*uintptr)(unsafe.Pointer(prev_pend)) + 24
  6695. }
  6696. /* Pending reply not found (likely due to _unchecked request). Create one: */
  6697. _insert_pending_discard(tls, c, prev_pend, request)
  6698. }
  6699. func Xxcb_discard_reply(tls *libc.TLS, c uintptr, sequence uint32) {
  6700. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6701. return
  6702. }
  6703. /* If an error occurred when issuing the request, fail immediately. */
  6704. if !(sequence != 0) {
  6705. return
  6706. }
  6707. libc.Xpthread_mutex_lock(tls, c+24)
  6708. _discard_reply(tls, c, _widen(tls, c, sequence))
  6709. libc.Xpthread_mutex_unlock(tls, c+24)
  6710. }
  6711. func Xxcb_discard_reply64(tls *libc.TLS, c uintptr, sequence Tuint64_t) {
  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, sequence)
  6721. libc.Xpthread_mutex_unlock(tls, c+24)
  6722. }
  6723. func Xxcb_poll_for_reply(tls *libc.TLS, c uintptr, request uint32, reply uintptr, error1 uintptr) (r int32) {
  6724. var ret int32
  6725. _ = ret
  6726. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6727. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6728. if error1 != 0 {
  6729. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6730. }
  6731. return int32(1) /* would not block */
  6732. }
  6733. libc.Xpthread_mutex_lock(tls, c+24)
  6734. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6735. 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 */
  6736. ret = _poll_for_reply(tls, c, _widen(tls, c, request), reply, error1)
  6737. }
  6738. libc.Xpthread_mutex_unlock(tls, c+24)
  6739. return ret
  6740. }
  6741. func Xxcb_poll_for_reply64(tls *libc.TLS, c uintptr, request Tuint64_t, reply uintptr, error1 uintptr) (r int32) {
  6742. var ret int32
  6743. _ = ret
  6744. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6745. *(*uintptr)(unsafe.Pointer(reply)) = uintptr(0)
  6746. if error1 != 0 {
  6747. *(*uintptr)(unsafe.Pointer(error1)) = uintptr(0)
  6748. }
  6749. return int32(1) /* would not block */
  6750. }
  6751. libc.Xpthread_mutex_lock(tls, c+24)
  6752. ret = _poll_for_reply(tls, c, request, reply, error1)
  6753. 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 */
  6754. ret = _poll_for_reply(tls, c, request, reply, error1)
  6755. }
  6756. libc.Xpthread_mutex_unlock(tls, c+24)
  6757. return ret
  6758. }
  6759. func Xxcb_wait_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6760. var ret, v1 uintptr
  6761. _, _ = ret, v1
  6762. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6763. return uintptr(0)
  6764. }
  6765. libc.Xpthread_mutex_lock(tls, c+24)
  6766. /* get_event returns 0 on empty list. */
  6767. for {
  6768. v1 = _get_event(tls, c)
  6769. ret = v1
  6770. if !!(v1 != 0) {
  6771. break
  6772. }
  6773. if !(X_xcb_conn_wait(tls, c, c+64, uintptr(0), uintptr(0)) != 0) {
  6774. break
  6775. }
  6776. }
  6777. X_xcb_in_wake_up_next_reader(tls, c)
  6778. libc.Xpthread_mutex_unlock(tls, c+24)
  6779. return ret
  6780. }
  6781. func _poll_for_next_event(tls *libc.TLS, c uintptr, queued int32) (r uintptr) {
  6782. var ret uintptr
  6783. _ = ret
  6784. ret = uintptr(0)
  6785. if !((*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0) {
  6786. libc.Xpthread_mutex_lock(tls, c+24)
  6787. /* FIXME: follow X meets Z architecture changes. */
  6788. ret = _get_event(tls, c)
  6789. 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 */
  6790. ret = _get_event(tls, c)
  6791. }
  6792. libc.Xpthread_mutex_unlock(tls, c+24)
  6793. }
  6794. return ret
  6795. }
  6796. func Xxcb_poll_for_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6797. return _poll_for_next_event(tls, c, 0)
  6798. }
  6799. func Xxcb_poll_for_queued_event(tls *libc.TLS, c uintptr) (r uintptr) {
  6800. return _poll_for_next_event(tls, c, int32(1))
  6801. }
  6802. func Xxcb_request_check(tls *libc.TLS, c uintptr, cookie Txcb_void_cookie_t) (r uintptr) {
  6803. bp := tls.Alloc(16)
  6804. defer tls.Free(16)
  6805. var reply uintptr
  6806. var request Tuint64_t
  6807. var _ /* ret at bp+0 */ uintptr
  6808. _, _ = reply, request
  6809. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(0)
  6810. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6811. return uintptr(0)
  6812. }
  6813. libc.Xpthread_mutex_lock(tls, c+24)
  6814. request = _widen(tls, c, cookie.Fsequence)
  6815. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_completed) > 0 {
  6816. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Frequest_expected) >= 0 {
  6817. X_xcb_out_send_sync(tls, c)
  6818. }
  6819. if libc.Int64FromUint64(request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest_expected_written) >= 0 {
  6820. X_xcb_out_flush_to(tls, c, (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest)
  6821. }
  6822. }
  6823. reply = _wait_for_reply(tls, c, request, bp)
  6824. libc.Xpthread_mutex_unlock(tls, c+24)
  6825. return *(*uintptr)(unsafe.Pointer(bp))
  6826. }
  6827. func _get_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6828. var event, events, v1, v2 uintptr
  6829. _, _, _, _ = event, events, v1, v2
  6830. event = libc.UintptrFromInt32(0)
  6831. v1 = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6832. events = v1
  6833. if v1 != libc.UintptrFromInt32(0) {
  6834. event = (*Tevent_list)(unsafe.Pointer(events)).Fevent
  6835. v2 = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6836. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = v2
  6837. if !(v2 != 0) {
  6838. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6839. }
  6840. libc.Xfree(tls, events)
  6841. }
  6842. return event
  6843. }
  6844. func Xxcb_poll_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6845. var event uintptr
  6846. _ = event
  6847. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6848. return uintptr(0)
  6849. }
  6850. libc.Xpthread_mutex_lock(tls, c+24)
  6851. event = _get_special_event(tls, c, se)
  6852. 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 */
  6853. event = _get_special_event(tls, c, se)
  6854. }
  6855. libc.Xpthread_mutex_unlock(tls, c+24)
  6856. return event
  6857. }
  6858. func Xxcb_wait_for_special_event(tls *libc.TLS, c uintptr, se uintptr) (r uintptr) {
  6859. bp := tls.Alloc(16)
  6860. defer tls.Free(16)
  6861. var event, v1 uintptr
  6862. var _ /* special at bp+0 */ Tspecial_list
  6863. _, _ = event, v1
  6864. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6865. return uintptr(0)
  6866. }
  6867. libc.Xpthread_mutex_lock(tls, c+24)
  6868. _insert_special(tls, c+64+4232, bp, se)
  6869. /* get_special_event returns 0 on empty list. */
  6870. for {
  6871. v1 = _get_special_event(tls, c, se)
  6872. event = v1
  6873. if !!(v1 != 0) {
  6874. break
  6875. }
  6876. if !(X_xcb_conn_wait(tls, c, se+40, uintptr(0), uintptr(0)) != 0) {
  6877. break
  6878. }
  6879. }
  6880. _remove_special(tls, c+64+4232, bp)
  6881. X_xcb_in_wake_up_next_reader(tls, c)
  6882. libc.Xpthread_mutex_unlock(tls, c+24)
  6883. return event
  6884. }
  6885. func Xxcb_register_for_special_xge(tls *libc.TLS, c uintptr, ext uintptr, eid Tuint32_t, stamp uintptr) (r uintptr) {
  6886. var ext_reply, se uintptr
  6887. _, _ = ext_reply, se
  6888. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6889. return libc.UintptrFromInt32(0)
  6890. }
  6891. ext_reply = Xxcb_get_extension_data(tls, c, ext)
  6892. if !(ext_reply != 0) {
  6893. return libc.UintptrFromInt32(0)
  6894. }
  6895. libc.Xpthread_mutex_lock(tls, c+24)
  6896. se = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6897. for {
  6898. if !(se != 0) {
  6899. break
  6900. }
  6901. 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 {
  6902. libc.Xpthread_mutex_unlock(tls, c+24)
  6903. return libc.UintptrFromInt32(0)
  6904. }
  6905. goto _1
  6906. _1:
  6907. ;
  6908. se = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6909. }
  6910. se = libc.Xcalloc(tls, uint64(1), uint64(88))
  6911. if !(se != 0) {
  6912. libc.Xpthread_mutex_unlock(tls, c+24)
  6913. return libc.UintptrFromInt32(0)
  6914. }
  6915. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fextension = (*Txcb_query_extension_reply_t)(unsafe.Pointer(ext_reply)).Fmajor_opcode
  6916. (*Txcb_special_event_t)(unsafe.Pointer(se)).Feid = eid
  6917. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents = libc.UintptrFromInt32(0)
  6918. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents_tail = se + 24
  6919. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fstamp = stamp
  6920. libc.Xpthread_cond_init(tls, se+40, uintptr(0))
  6921. (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events
  6922. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_events = se
  6923. libc.Xpthread_mutex_unlock(tls, c+24)
  6924. return se
  6925. }
  6926. func Xxcb_unregister_for_special_event(tls *libc.TLS, c uintptr, se uintptr) {
  6927. var events, next, prev, s, v2 uintptr
  6928. _, _, _, _, _ = events, next, prev, s, v2
  6929. if !(se != 0) {
  6930. return
  6931. }
  6932. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  6933. return
  6934. }
  6935. libc.Xpthread_mutex_lock(tls, c+24)
  6936. prev = c + 64 + 4328
  6937. for {
  6938. v2 = *(*uintptr)(unsafe.Pointer(prev))
  6939. s = v2
  6940. if !(v2 != libc.UintptrFromInt32(0)) {
  6941. break
  6942. }
  6943. if s == se {
  6944. *(*uintptr)(unsafe.Pointer(prev)) = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fnext
  6945. events = (*Txcb_special_event_t)(unsafe.Pointer(se)).Fevents
  6946. for {
  6947. if !(events != 0) {
  6948. break
  6949. }
  6950. next = (*Tevent_list)(unsafe.Pointer(events)).Fnext
  6951. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(events)).Fevent)
  6952. libc.Xfree(tls, events)
  6953. goto _3
  6954. _3:
  6955. ;
  6956. events = next
  6957. }
  6958. libc.Xpthread_cond_destroy(tls, se+40)
  6959. libc.Xfree(tls, se)
  6960. break
  6961. }
  6962. goto _1
  6963. _1:
  6964. ;
  6965. prev = s
  6966. }
  6967. libc.Xpthread_mutex_unlock(tls, c+24)
  6968. }
  6969. /* Private interface */
  6970. func X_xcb_in_init(tls *libc.TLS, in uintptr) (r int32) {
  6971. if libc.Xpthread_cond_init(tls, in, uintptr(0)) != 0 {
  6972. return 0
  6973. }
  6974. (*T_xcb_in)(unsafe.Pointer(in)).Freading = 0
  6975. (*T_xcb_in)(unsafe.Pointer(in)).Fqueue_len = 0
  6976. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_read = uint64(0)
  6977. (*T_xcb_in)(unsafe.Pointer(in)).Frequest_completed = uint64(0)
  6978. (*T_xcb_in)(unsafe.Pointer(in)).Freplies = X_xcb_map_new(tls)
  6979. if !((*T_xcb_in)(unsafe.Pointer(in)).Freplies != 0) {
  6980. return 0
  6981. }
  6982. (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply_tail = in + 4184
  6983. (*T_xcb_in)(unsafe.Pointer(in)).Fevents_tail = in + 4208
  6984. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies_tail = in + 4240
  6985. return int32(1)
  6986. }
  6987. func X_xcb_in_destroy(tls *libc.TLS, in uintptr) {
  6988. var e, pend uintptr
  6989. _, _ = e, pend
  6990. libc.Xpthread_cond_destroy(tls, in)
  6991. _free_reply_list(tls, (*T_xcb_in)(unsafe.Pointer(in)).Fcurrent_reply)
  6992. X_xcb_map_delete(tls, (*T_xcb_in)(unsafe.Pointer(in)).Freplies, __ccgo_fp(_free_reply_list))
  6993. for (*T_xcb_in)(unsafe.Pointer(in)).Fevents != 0 {
  6994. e = (*T_xcb_in)(unsafe.Pointer(in)).Fevents
  6995. (*T_xcb_in)(unsafe.Pointer(in)).Fevents = (*Tevent_list)(unsafe.Pointer(e)).Fnext
  6996. libc.Xfree(tls, (*Tevent_list)(unsafe.Pointer(e)).Fevent)
  6997. libc.Xfree(tls, e)
  6998. }
  6999. for (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies != 0 {
  7000. pend = (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies
  7001. (*T_xcb_in)(unsafe.Pointer(in)).Fpending_replies = (*Tpending_reply)(unsafe.Pointer(pend)).Fnext
  7002. libc.Xfree(tls, pend)
  7003. }
  7004. }
  7005. func X_xcb_in_wake_up_next_reader(tls *libc.TLS, c uintptr) {
  7006. var pthreadret int32
  7007. _ = pthreadret
  7008. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders != 0 {
  7009. pthreadret = libc.Xpthread_cond_signal(tls, (*Treader_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Freaders)).Fdata)
  7010. } else {
  7011. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters != 0 {
  7012. pthreadret = libc.Xpthread_cond_signal(tls, (*Tspecial_list1)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fspecial_waiters)).Fse+40)
  7013. } else {
  7014. pthreadret = libc.Xpthread_cond_signal(tls, c+64)
  7015. }
  7016. }
  7017. }
  7018. func X_xcb_in_expect_reply(tls *libc.TLS, c uintptr, request Tuint64_t, workaround _workarounds, flags int32) (r int32) {
  7019. var pend uintptr
  7020. var v1 Tuint64_t
  7021. _, _ = pend, v1
  7022. pend = libc.Xmalloc(tls, uint64(32))
  7023. if !(pend != 0) {
  7024. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_MEM_INSUFFICIENT))
  7025. return 0
  7026. }
  7027. v1 = request
  7028. (*Tpending_reply)(unsafe.Pointer(pend)).Flast_request = v1
  7029. (*Tpending_reply)(unsafe.Pointer(pend)).Ffirst_request = v1
  7030. (*Tpending_reply)(unsafe.Pointer(pend)).Fworkaround = workaround
  7031. (*Tpending_reply)(unsafe.Pointer(pend)).Fflags = flags
  7032. (*Tpending_reply)(unsafe.Pointer(pend)).Fnext = uintptr(0)
  7033. *(*uintptr)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail)) = pend
  7034. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = pend + 24
  7035. return int32(1)
  7036. }
  7037. func X_xcb_in_replies_done(tls *libc.TLS, c uintptr) {
  7038. var pend, prev_next uintptr
  7039. _, _ = pend, prev_next
  7040. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail != c+64+4240 {
  7041. pend = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail - uintptr(Tsize_t(libc.UintptrFromInt32(0)+24))
  7042. if (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround == int32(_WORKAROUND_EXTERNAL_SOCKET_OWNER) {
  7043. if libc.Int64FromUint64((*Tpending_reply1)(unsafe.Pointer(pend)).Ffirst_request-(*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest) <= 0 {
  7044. (*Tpending_reply1)(unsafe.Pointer(pend)).Flast_request = (*Txcb_connection_t)(unsafe.Pointer(c)).Fout.Frequest
  7045. (*Tpending_reply1)(unsafe.Pointer(pend)).Fworkaround = int32(_WORKAROUND_NONE)
  7046. } else {
  7047. /* The socket was taken, but no requests were actually sent
  7048. * so just discard the pending_reply that was created.
  7049. */
  7050. prev_next = c + 64 + 4240
  7051. for *(*uintptr)(unsafe.Pointer(prev_next)) != pend {
  7052. prev_next = *(*uintptr)(unsafe.Pointer(prev_next)) + 24
  7053. }
  7054. *(*uintptr)(unsafe.Pointer(prev_next)) = libc.UintptrFromInt32(0)
  7055. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fpending_replies_tail = prev_next
  7056. libc.Xfree(tls, pend)
  7057. }
  7058. }
  7059. }
  7060. }
  7061. func X_xcb_in_read(tls *libc.TLS, c uintptr) (r int32) {
  7062. bp := tls.Alloc(160)
  7063. defer tls.Free(160)
  7064. var hdr, v2, v3 uintptr
  7065. var i, n, nfd int32
  7066. var _ /* cmsgbuf at bp+16 */ struct {
  7067. Fbuf [0][80]uint8
  7068. Fcmsghdr Tcmsghdr
  7069. F__ccgo_pad2 [64]byte
  7070. }
  7071. var _ /* iov at bp+0 */ Tiovec
  7072. var _ /* msg at bp+96 */ Tmsghdr
  7073. _, _, _, _, _, _ = hdr, i, n, nfd, v2, v3
  7074. *(*Tiovec)(unsafe.Pointer(bp)) = Tiovec{
  7075. Fiov_base: c + 64 + 52 + uintptr((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7076. Fiov_len: uint64(4096) - libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len),
  7077. }
  7078. *(*Tmsghdr)(unsafe.Pointer(bp + 96)) = Tmsghdr{
  7079. Fmsg_iov: bp,
  7080. Fmsg_iovlen: int32(1),
  7081. Fmsg_control: bp + 16,
  7082. 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))),
  7083. }
  7084. n = int32(libc.Xrecvmsg(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, bp+96, 0))
  7085. /* Check for truncation errors. Only MSG_CTRUNC is
  7086. * probably possible here, which would indicate that
  7087. * the sender tried to transmit more than XCB_MAX_PASS_FD
  7088. * file descriptors.
  7089. */
  7090. if (*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_flags&(libc.Int32FromInt32(m_MSG_TRUNC1)|libc.Int32FromInt32(m_MSG_CTRUNC1)) != 0 {
  7091. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7092. return 0
  7093. }
  7094. if n > 0 {
  7095. if uint64((*(*Tmsghdr)(unsafe.Pointer(bp + 96))).Fmsg_controllen) >= uint64(16) {
  7096. if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) {
  7097. v2 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control
  7098. } else {
  7099. v2 = libc.UintptrFromInt32(0)
  7100. }
  7101. hdr = v2
  7102. for {
  7103. if !(hdr != 0) {
  7104. break
  7105. }
  7106. if (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_level == int32(m_SOL_SOCKET) && (*Tcmsghdr)(unsafe.Pointer(hdr)).Fcmsg_type == int32(m_SCM_RIGHTS) {
  7107. 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))
  7108. 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))
  7109. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd += nfd
  7110. }
  7111. goto _1
  7112. _1:
  7113. ;
  7114. 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)) {
  7115. v3 = uintptr(0)
  7116. } else {
  7117. 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))))
  7118. }
  7119. hdr = v3
  7120. }
  7121. }
  7122. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Ftotal_read += libc.Uint64FromInt32(n)
  7123. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len += n
  7124. }
  7125. for _read_packet(tls, c) != 0 {
  7126. /* empty */
  7127. }
  7128. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7129. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd -= (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd
  7130. 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))
  7131. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fifd = 0
  7132. /* If we have any left-over file descriptors after emptying
  7133. * the input buffer, then the server sent some that we weren't
  7134. * expecting. Close them and mark the connection as broken;
  7135. */
  7136. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len == 0 && (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd != 0 {
  7137. i = 0
  7138. for {
  7139. if !(i < (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fin_fd.Fnfd) {
  7140. break
  7141. }
  7142. libc.Xclose(tls, *(*int32)(unsafe.Pointer(c + 64 + 4256 + uintptr(i)*4)))
  7143. goto _4
  7144. _4:
  7145. ;
  7146. i++
  7147. }
  7148. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_CLOSED_FDPASSING_FAILED))
  7149. return 0
  7150. }
  7151. }
  7152. 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)) {
  7153. return int32(1)
  7154. }
  7155. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7156. return 0
  7157. }
  7158. func X_xcb_in_read_block(tls *libc.TLS, c uintptr, buf uintptr, len1 int32) (r int32) {
  7159. var done, ret int32
  7160. _, _ = done, ret
  7161. done = (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len
  7162. if len1 < done {
  7163. done = len1
  7164. }
  7165. libc.Xmemcpy(tls, buf, c+64+52, libc.Uint64FromInt32(done))
  7166. (*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len -= done
  7167. libc.Xmemmove(tls, c+64+52, c+64+52+uintptr(done), libc.Uint64FromInt32((*Txcb_connection_t)(unsafe.Pointer(c)).Fin.Fqueue_len))
  7168. if len1 > done {
  7169. ret = _read_block(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Ffd, buf+uintptr(done), int64(len1-done))
  7170. if ret <= 0 {
  7171. X_xcb_conn_shutdown(tls, c, int32(m_XCB_CONN_ERROR))
  7172. return ret
  7173. }
  7174. }
  7175. return len1
  7176. }
  7177. type Tpending_reply1 = struct {
  7178. Ffirst_request Tuint64_t
  7179. Flast_request Tuint64_t
  7180. Fworkaround _workarounds
  7181. Fflags int32
  7182. Fnext uintptr
  7183. }
  7184. type Treader_list1 = struct {
  7185. Frequest Tuint64_t
  7186. Fdata uintptr
  7187. Fnext uintptr
  7188. }
  7189. type Tspecial_list1 = struct {
  7190. Fse uintptr
  7191. Fnext uintptr
  7192. }
  7193. type Txcb_ge_special_event_t1 = struct {
  7194. Fresponse_type Tuint8_t
  7195. Fextension Tuint8_t
  7196. Fsequence Tuint16_t
  7197. Flength Tuint32_t
  7198. Fevtype Tuint16_t
  7199. Fpad0 [2]Tuint8_t
  7200. Feid Tuint32_t
  7201. Fpad1 [16]Tuint8_t
  7202. }
  7203. const m_INT32_MAX2 = 0x7fffffff
  7204. const m_UINT32_MAX2 = "0xffffffffu"
  7205. type Tlazyreply = struct {
  7206. Ftag _lazy_reply_tag
  7207. Fvalue struct {
  7208. Freply [0]uintptr
  7209. Fcookie Txcb_query_extension_cookie_t
  7210. F__ccgo_pad2 [4]byte
  7211. }
  7212. }
  7213. func _get_index(tls *libc.TLS, c uintptr, idx int32) (r uintptr) {
  7214. var new_extensions uintptr
  7215. var new_size int32
  7216. _, _ = new_extensions, new_size
  7217. if idx > (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size {
  7218. new_size = idx << int32(1)
  7219. new_extensions = libc.Xrealloc(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions, uint64(16)*libc.Uint64FromInt32(new_size))
  7220. if !(new_extensions != 0) {
  7221. return uintptr(0)
  7222. }
  7223. 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))
  7224. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions = new_extensions
  7225. (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions_size = new_size
  7226. }
  7227. return (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions + uintptr(idx)*16 - uintptr(1)*16
  7228. }
  7229. func _get_lazyreply(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7230. var data uintptr
  7231. var v1 int32
  7232. _, _ = data, v1
  7233. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7234. if !((*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id != 0) {
  7235. _next_global_id++
  7236. v1 = _next_global_id
  7237. (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id = v1
  7238. }
  7239. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_global_lock)))
  7240. data = _get_index(tls, c, (*Txcb_extension_t)(unsafe.Pointer(ext)).Fglobal_id)
  7241. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_NONE) {
  7242. /* cache miss: query the server */
  7243. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_COOKIE)
  7244. (*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)
  7245. }
  7246. return data
  7247. }
  7248. var _global_lock = Tpthread_mutex_t{}
  7249. var _next_global_id int32
  7250. /* Public interface */
  7251. // C documentation
  7252. //
  7253. // /* Do not free the returned xcb_query_extension_reply_t - on return, it's aliased
  7254. // * from the cache. */
  7255. func Xxcb_get_extension_data(tls *libc.TLS, c uintptr, ext uintptr) (r uintptr) {
  7256. var data, v1 uintptr
  7257. _, _ = data, v1
  7258. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7259. return uintptr(0)
  7260. }
  7261. libc.Xpthread_mutex_lock(tls, c+21064)
  7262. data = _get_lazyreply(tls, c, ext)
  7263. if data != 0 && (*Tlazyreply)(unsafe.Pointer(data)).Ftag == int32(_LAZY_COOKIE) {
  7264. (*Tlazyreply)(unsafe.Pointer(data)).Ftag = int32(_LAZY_FORCED)
  7265. *(*uintptr)(unsafe.Pointer(data + 8)) = Xxcb_query_extension_reply(tls, c, (*Tlazyreply)(unsafe.Pointer(data)).Fvalue.Fcookie, uintptr(0))
  7266. }
  7267. libc.Xpthread_mutex_unlock(tls, c+21064)
  7268. if data != 0 {
  7269. v1 = *(*uintptr)(unsafe.Pointer(data + 8))
  7270. } else {
  7271. v1 = uintptr(0)
  7272. }
  7273. return v1
  7274. }
  7275. func Xxcb_prefetch_extension_data(tls *libc.TLS, c uintptr, ext uintptr) {
  7276. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7277. return
  7278. }
  7279. libc.Xpthread_mutex_lock(tls, c+21064)
  7280. _get_lazyreply(tls, c, ext)
  7281. libc.Xpthread_mutex_unlock(tls, c+21064)
  7282. }
  7283. /* Private interface */
  7284. func X_xcb_ext_init(tls *libc.TLS, c uintptr) (r int32) {
  7285. if libc.Xpthread_mutex_init(tls, c+21064, uintptr(0)) != 0 {
  7286. return 0
  7287. }
  7288. return int32(1)
  7289. }
  7290. func X_xcb_ext_destroy(tls *libc.TLS, c uintptr) {
  7291. var v1 int32
  7292. var v2 uintptr
  7293. _, _ = v1, v2
  7294. libc.Xpthread_mutex_destroy(tls, c+21064)
  7295. for {
  7296. v2 = c + 21064 + 48
  7297. v1 = *(*int32)(unsafe.Pointer(v2))
  7298. *(*int32)(unsafe.Pointer(v2))--
  7299. if !(v1 > 0) {
  7300. break
  7301. }
  7302. 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) {
  7303. 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)))
  7304. }
  7305. }
  7306. libc.Xfree(tls, (*Txcb_connection_t)(unsafe.Pointer(c)).Fext.Fextensions)
  7307. }
  7308. type Tlazyreply1 = struct {
  7309. Ftag _lazy_reply_tag
  7310. Fvalue struct {
  7311. Freply [0]uintptr
  7312. Fcookie Txcb_query_extension_cookie_t
  7313. F__ccgo_pad2 [4]byte
  7314. }
  7315. }
  7316. const m_XCB_XCMISC_MAJOR_VERSION = 1
  7317. const m_XCB_XCMISC_MINOR_VERSION = 1
  7318. const m_XCB_XC_MISC_GET_VERSION = 0
  7319. const m_XCB_XC_MISC_GET_XID_LIST = 2
  7320. const m_XCB_XC_MISC_GET_XID_RANGE = 1
  7321. type Txcb_xc_misc_get_version_cookie_t = struct {
  7322. Fsequence uint32
  7323. }
  7324. type Txcb_xc_misc_get_version_request_t = struct {
  7325. Fmajor_opcode Tuint8_t
  7326. Fminor_opcode Tuint8_t
  7327. Flength Tuint16_t
  7328. Fclient_major_version Tuint16_t
  7329. Fclient_minor_version Tuint16_t
  7330. }
  7331. type Txcb_xc_misc_get_version_reply_t = struct {
  7332. Fresponse_type Tuint8_t
  7333. Fpad0 Tuint8_t
  7334. Fsequence Tuint16_t
  7335. Flength Tuint32_t
  7336. Fserver_major_version Tuint16_t
  7337. Fserver_minor_version Tuint16_t
  7338. }
  7339. type Txcb_xc_misc_get_xid_range_cookie_t = struct {
  7340. Fsequence uint32
  7341. }
  7342. type Txcb_xc_misc_get_xid_range_request_t = struct {
  7343. Fmajor_opcode Tuint8_t
  7344. Fminor_opcode Tuint8_t
  7345. Flength Tuint16_t
  7346. }
  7347. type Txcb_xc_misc_get_xid_range_reply_t = struct {
  7348. Fresponse_type Tuint8_t
  7349. Fpad0 Tuint8_t
  7350. Fsequence Tuint16_t
  7351. Flength Tuint32_t
  7352. Fstart_id Tuint32_t
  7353. Fcount Tuint32_t
  7354. }
  7355. type Txcb_xc_misc_get_xid_list_cookie_t = struct {
  7356. Fsequence uint32
  7357. }
  7358. type Txcb_xc_misc_get_xid_list_request_t = struct {
  7359. Fmajor_opcode Tuint8_t
  7360. Fminor_opcode Tuint8_t
  7361. Flength Tuint16_t
  7362. Fcount Tuint32_t
  7363. }
  7364. type Txcb_xc_misc_get_xid_list_reply_t = struct {
  7365. Fresponse_type Tuint8_t
  7366. Fpad0 Tuint8_t
  7367. Fsequence Tuint16_t
  7368. Flength Tuint32_t
  7369. Fids_len Tuint32_t
  7370. Fpad1 [20]Tuint8_t
  7371. }
  7372. /**
  7373. * @}
  7374. */
  7375. /* Public interface */
  7376. func Xxcb_generate_id(tls *libc.TLS, c uintptr) (r Tuint32_t) {
  7377. var range1, xc_misc_reply uintptr
  7378. var ret Tuint32_t
  7379. _, _, _ = range1, ret, xc_misc_reply
  7380. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  7381. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7382. }
  7383. libc.Xpthread_mutex_lock(tls, c+21120)
  7384. 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) {
  7385. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast == uint32(0) {
  7386. /* finish setting up initial range */
  7387. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_mask
  7388. } else {
  7389. /* check for extension */
  7390. xc_misc_reply = Xxcb_get_extension_data(tls, c, uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)))
  7391. if !(xc_misc_reply != 0) || !((*Txcb_query_extension_reply_t)(unsafe.Pointer(xc_misc_reply)).Fpresent != 0) {
  7392. libc.Xpthread_mutex_unlock(tls, c+21120)
  7393. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7394. }
  7395. /* get new range */
  7396. range1 = Xxcb_xc_misc_get_xid_range_reply(tls, c, Xxcb_xc_misc_get_xid_range(tls, c), uintptr(0))
  7397. /* XXX The latter disjunct is what the server returns
  7398. when it is out of XIDs. Sweet. */
  7399. 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) {
  7400. libc.Xpthread_mutex_unlock(tls, c+21120)
  7401. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  7402. }
  7403. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = (*Txcb_xc_misc_get_xid_range_reply_t)(unsafe.Pointer(range1)).Fstart_id
  7404. (*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
  7405. libc.Xfree(tls, range1)
  7406. }
  7407. } else {
  7408. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast += (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Finc
  7409. }
  7410. ret = (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast | (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase
  7411. libc.Xpthread_mutex_unlock(tls, c+21120)
  7412. return ret
  7413. }
  7414. /* Private interface */
  7415. func X_xcb_xid_init(tls *libc.TLS, c uintptr) (r int32) {
  7416. if libc.Xpthread_mutex_init(tls, c+21120, uintptr(0)) != 0 {
  7417. return 0
  7418. }
  7419. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Flast = uint32(0)
  7420. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fmax = uint32(0)
  7421. (*Txcb_connection_t)(unsafe.Pointer(c)).Fxid.Fbase = (*Txcb_setup_t)(unsafe.Pointer((*Txcb_connection_t)(unsafe.Pointer(c)).Fsetup)).Fresource_id_base
  7422. (*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
  7423. return int32(1)
  7424. }
  7425. func X_xcb_xid_destroy(tls *libc.TLS, c uintptr) {
  7426. libc.Xpthread_mutex_destroy(tls, c+21120)
  7427. }
  7428. type T_xcb_map = struct {
  7429. Fhead uintptr
  7430. Ftail uintptr
  7431. }
  7432. type Tnode = struct {
  7433. Fnext uintptr
  7434. Fkey Tuint64_t
  7435. Fdata uintptr
  7436. }
  7437. type T_xcb_map1 = struct {
  7438. Fhead uintptr
  7439. Ftail uintptr
  7440. }
  7441. /* Private interface */
  7442. func X_xcb_map_new(tls *libc.TLS) (r uintptr) {
  7443. var list uintptr
  7444. _ = list
  7445. list = libc.Xmalloc(tls, uint64(16))
  7446. if !(list != 0) {
  7447. return uintptr(0)
  7448. }
  7449. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = uintptr(0)
  7450. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = list
  7451. return list
  7452. }
  7453. func X_xcb_map_delete(tls *libc.TLS, list uintptr, do_free Txcb_list_free_func_t) {
  7454. var cur uintptr
  7455. _ = cur
  7456. if !(list != 0) {
  7457. return
  7458. }
  7459. for (*T_xcb_map)(unsafe.Pointer(list)).Fhead != 0 {
  7460. cur = (*T_xcb_map)(unsafe.Pointer(list)).Fhead
  7461. if do_free != 0 {
  7462. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{do_free})))(tls, (*Tnode)(unsafe.Pointer(cur)).Fdata)
  7463. }
  7464. (*T_xcb_map)(unsafe.Pointer(list)).Fhead = (*Tnode)(unsafe.Pointer(cur)).Fnext
  7465. libc.Xfree(tls, cur)
  7466. }
  7467. libc.Xfree(tls, list)
  7468. }
  7469. func X_xcb_map_put(tls *libc.TLS, list uintptr, key Tuint64_t, data uintptr) (r int32) {
  7470. var cur uintptr
  7471. _ = cur
  7472. cur = libc.Xmalloc(tls, uint64(24))
  7473. if !(cur != 0) {
  7474. return 0
  7475. }
  7476. (*Tnode)(unsafe.Pointer(cur)).Fkey = key
  7477. (*Tnode)(unsafe.Pointer(cur)).Fdata = data
  7478. (*Tnode)(unsafe.Pointer(cur)).Fnext = uintptr(0)
  7479. *(*uintptr)(unsafe.Pointer((*T_xcb_map)(unsafe.Pointer(list)).Ftail)) = cur
  7480. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7481. return int32(1)
  7482. }
  7483. func X_xcb_map_remove(tls *libc.TLS, list uintptr, key Tuint64_t) (r uintptr) {
  7484. var cur, ret, tmp uintptr
  7485. _, _, _ = cur, ret, tmp
  7486. cur = list
  7487. for {
  7488. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7489. break
  7490. }
  7491. if (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fkey == key {
  7492. tmp = *(*uintptr)(unsafe.Pointer(cur))
  7493. ret = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fdata
  7494. *(*uintptr)(unsafe.Pointer(cur)) = (*Tnode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(cur)))).Fnext
  7495. if !(*(*uintptr)(unsafe.Pointer(cur)) != 0) {
  7496. (*T_xcb_map)(unsafe.Pointer(list)).Ftail = cur
  7497. }
  7498. libc.Xfree(tls, tmp)
  7499. return ret
  7500. }
  7501. goto _1
  7502. _1:
  7503. ;
  7504. cur = *(*uintptr)(unsafe.Pointer(cur))
  7505. }
  7506. return uintptr(0)
  7507. }
  7508. const m_AI_ADDRCONFIG = 0x20
  7509. const m_AI_ALL = 0x10
  7510. const m_AI_CANONNAME = 0x02
  7511. const m_AI_NUMERICHOST = 4
  7512. const m_AI_NUMERICSERV = 1024
  7513. const m_AI_PASSIVE = 0x01
  7514. const m_AI_V4MAPPED = 0x08
  7515. const m_HOST_NOT_FOUND = 1
  7516. const m_INT_MAX1 = 2147483647
  7517. const m_MSG_CTRUNC2 = 0x0008
  7518. const m_MSG_TRUNC2 = 0x0020
  7519. const m_NI_DGRAM = 0x10
  7520. const m_NI_MAXHOST = 255
  7521. const m_NI_MAXSERV = 32
  7522. const m_NI_NAMEREQD = 0x08
  7523. const m_NI_NOFQDN = 0x04
  7524. const m_NI_NUMERICHOST = 0x01
  7525. const m_NI_NUMERICSCOPE = 0x100
  7526. const m_NI_NUMERICSERV = 0x02
  7527. const m_NO_ADDRESS = "NO_DATA"
  7528. const m_NO_DATA = 4
  7529. const m_NO_RECOVERY = 3
  7530. const m_O_NONBLOCK1 = 04000
  7531. const m_SCM_RIGHTS1 = 0x01
  7532. const m_SOCK_CLOEXEC1 = 524288
  7533. const m_SOL_TCP = 6
  7534. const m_STATX_ALL = 0xfff
  7535. const m_STATX_ATIME = 0x20
  7536. const m_STATX_BASIC_STATS = 0x7ff
  7537. const m_STATX_BLOCKS = 0x400
  7538. const m_STATX_BTIME = 0x800
  7539. const m_STATX_CTIME = 0x80
  7540. const m_STATX_GID = 0x10
  7541. const m_STATX_INO = 0x100
  7542. const m_STATX_MODE = 2
  7543. const m_STATX_MTIME = 0x40
  7544. const m_STATX_NLINK = 4
  7545. const m_STATX_SIZE = 0x200
  7546. const m_STATX_TYPE = 1
  7547. const m_STATX_UID = 8
  7548. const m_S_IEXEC = "S_IXUSR"
  7549. const m_S_IFBLK = 0060000
  7550. const m_S_IFCHR = 0020000
  7551. const m_S_IFDIR = 0040000
  7552. const m_S_IFIFO = 0010000
  7553. const m_S_IFLNK = 0120000
  7554. const m_S_IFMT = 0170000
  7555. const m_S_IFREG = 0100000
  7556. const m_S_IFSOCK = 0140000
  7557. const m_S_IREAD = "S_IRUSR"
  7558. const m_S_IWRITE = "S_IWUSR"
  7559. const m_TCPI_OPT_ECN = 8
  7560. const m_TCPI_OPT_SACK = 2
  7561. const m_TCPI_OPT_TIMESTAMPS = 1
  7562. const m_TCPI_OPT_WSCALE = 4
  7563. const m_TCPOLEN_MAXSEG = 4
  7564. const m_TCPOLEN_SACK_PERMITTED = 2
  7565. const m_TCPOLEN_TIMESTAMP = 10
  7566. const m_TCPOLEN_WINDOW = 3
  7567. const m_TCPOPT_EOL = 0
  7568. const m_TCPOPT_MAXSEG = 2
  7569. const m_TCPOPT_NOP = 1
  7570. const m_TCPOPT_SACK = 5
  7571. const m_TCPOPT_SACK_PERMITTED = 4
  7572. const m_TCPOPT_TIMESTAMP = 8
  7573. const m_TCPOPT_WINDOW = 3
  7574. const m_TCP_CA_CWR = 2
  7575. const m_TCP_CA_Disorder = 1
  7576. const m_TCP_CA_Loss = 4
  7577. const m_TCP_CA_Open = 0
  7578. const m_TCP_CA_Recovery = 3
  7579. const m_TCP_CC_INFO = 26
  7580. const m_TCP_CLOSE = 7
  7581. const m_TCP_CLOSE_WAIT = 8
  7582. const m_TCP_CLOSING = 11
  7583. const m_TCP_CM_INQ = "TCP_INQ"
  7584. const m_TCP_CONGESTION = 13
  7585. const m_TCP_CORK = 3
  7586. const m_TCP_DEFER_ACCEPT = 9
  7587. const m_TCP_ESTABLISHED = 1
  7588. const m_TCP_FASTOPEN = 23
  7589. const m_TCP_FASTOPEN_CONNECT = 30
  7590. const m_TCP_FASTOPEN_KEY = 33
  7591. const m_TCP_FASTOPEN_NO_COOKIE = 34
  7592. const m_TCP_FIN_WAIT1 = 4
  7593. const m_TCP_FIN_WAIT2 = 5
  7594. const m_TCP_INFO = 11
  7595. const m_TCP_INQ = 36
  7596. const m_TCP_KEEPCNT = 6
  7597. const m_TCP_KEEPIDLE = 4
  7598. const m_TCP_KEEPINTVL = 5
  7599. const m_TCP_LAST_ACK = 9
  7600. const m_TCP_LINGER2 = 8
  7601. const m_TCP_LISTEN = 10
  7602. const m_TCP_MAXSEG = 2
  7603. const m_TCP_MD5SIG = 14
  7604. const m_TCP_MD5SIG_EXT = 32
  7605. const m_TCP_MD5SIG_FLAG_IFINDEX = 0x2
  7606. const m_TCP_MD5SIG_FLAG_PREFIX = 0x1
  7607. const m_TCP_MD5SIG_MAXKEYLEN = 80
  7608. const m_TCP_NODELAY = 1
  7609. const m_TCP_NOTSENT_LOWAT = 25
  7610. const m_TCP_QUEUE_SEQ = 21
  7611. const m_TCP_QUICKACK = 12
  7612. const m_TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT = 0x1
  7613. const m_TCP_REPAIR = 19
  7614. const m_TCP_REPAIR_OFF = 0
  7615. const m_TCP_REPAIR_ON = 1
  7616. const m_TCP_REPAIR_OPTIONS = 22
  7617. const m_TCP_REPAIR_QUEUE = 20
  7618. const m_TCP_REPAIR_WINDOW = 29
  7619. const m_TCP_SAVED_SYN = 28
  7620. const m_TCP_SAVE_SYN = 27
  7621. const m_TCP_SYNCNT = 7
  7622. const m_TCP_SYN_RECV = 3
  7623. const m_TCP_SYN_SENT = 2
  7624. const m_TCP_THIN_DUPACK = 17
  7625. const m_TCP_THIN_LINEAR_TIMEOUTS = 16
  7626. const m_TCP_TIMESTAMP = 24
  7627. const m_TCP_TIME_WAIT = 6
  7628. const m_TCP_TX_DELAY = 37
  7629. const m_TCP_ULP = 31
  7630. const m_TCP_USER_TIMEOUT = 18
  7631. const m_TCP_WINDOW_CLAMP = 10
  7632. const m_TCP_ZEROCOPY_RECEIVE = 35
  7633. const m_TH_ACK = 0x10
  7634. const m_TH_FIN = 0x01
  7635. const m_TH_PUSH = 0x08
  7636. const m_TH_RST = 0x04
  7637. const m_TH_SYN = 0x02
  7638. const m_TH_URG = 0x20
  7639. const m_TRY_AGAIN = 2
  7640. const m_UTIME_NOW = 0x3fffffff
  7641. const m_UTIME_OMIT = 0x3ffffffe
  7642. type Tmax_align_t = struct {
  7643. F__ll int64
  7644. F__ld float64
  7645. }
  7646. type Tptrdiff_t = int64
  7647. type Tsockaddr_un = struct {
  7648. Fsun_family Tsa_family_t
  7649. Fsun_path [108]uint8
  7650. }
  7651. const _TCP_NLA_PAD = 0
  7652. const _TCP_NLA_BUSY = 1
  7653. const _TCP_NLA_RWND_LIMITED = 2
  7654. const _TCP_NLA_SNDBUF_LIMITED = 3
  7655. const _TCP_NLA_DATA_SEGS_OUT = 4
  7656. const _TCP_NLA_TOTAL_RETRANS = 5
  7657. const _TCP_NLA_PACING_RATE = 6
  7658. const _TCP_NLA_DELIVERY_RATE = 7
  7659. const _TCP_NLA_SND_CWND = 8
  7660. const _TCP_NLA_REORDERING = 9
  7661. const _TCP_NLA_MIN_RTT = 10
  7662. const _TCP_NLA_RECUR_RETRANS = 11
  7663. const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12
  7664. const _TCP_NLA_SNDQ_SIZE = 13
  7665. const _TCP_NLA_CA_STATE = 14
  7666. const _TCP_NLA_SND_SSTHRESH = 15
  7667. const _TCP_NLA_DELIVERED = 16
  7668. const _TCP_NLA_DELIVERED_CE = 17
  7669. const _TCP_NLA_BYTES_SENT = 18
  7670. const _TCP_NLA_BYTES_RETRANS = 19
  7671. const _TCP_NLA_DSACK_DUPS = 20
  7672. const _TCP_NLA_REORD_SEEN = 21
  7673. const _TCP_NLA_SRTT = 22
  7674. const _TCP_NLA_TIMEOUT_REHASH = 23
  7675. const _TCP_NLA_BYTES_NOTSENT = 24
  7676. const _TCP_NLA_EDT = 25
  7677. const _TCP_NLA_TTL = 26
  7678. type Ttcp_seq = uint32
  7679. type Ttcphdr = struct {
  7680. F__ccgo0_0 struct {
  7681. F__ccgo1_0 [0]struct {
  7682. Fth_sport Tuint16_t
  7683. Fth_dport Tuint16_t
  7684. Fth_seq Tuint32_t
  7685. Fth_ack Tuint32_t
  7686. F__ccgo12 uint8
  7687. Fth_flags Tuint8_t
  7688. Fth_win Tuint16_t
  7689. Fth_sum Tuint16_t
  7690. Fth_urp Tuint16_t
  7691. }
  7692. F__ccgo0_0 struct {
  7693. Fsource Tuint16_t
  7694. Fdest Tuint16_t
  7695. Fseq Tuint32_t
  7696. Fack_seq Tuint32_t
  7697. F__ccgo12 uint16
  7698. Fwindow Tuint16_t
  7699. Fcheck Tuint16_t
  7700. Furg_ptr Tuint16_t
  7701. }
  7702. }
  7703. }
  7704. type _tcp_fastopen_client_fail = int32
  7705. const _TFO_STATUS_UNSPEC = 0
  7706. const _TFO_COOKIE_UNAVAILABLE = 1
  7707. const _TFO_DATA_NOT_ACKED = 2
  7708. const _TFO_SYN_RETRANSMITTED = 3
  7709. type Ttcp_info = struct {
  7710. Ftcpi_state Tuint8_t
  7711. Ftcpi_ca_state Tuint8_t
  7712. Ftcpi_retransmits Tuint8_t
  7713. Ftcpi_probes Tuint8_t
  7714. Ftcpi_backoff Tuint8_t
  7715. Ftcpi_options Tuint8_t
  7716. F__ccgo6 uint8
  7717. F__ccgo7 uint8
  7718. Ftcpi_rto Tuint32_t
  7719. Ftcpi_ato Tuint32_t
  7720. Ftcpi_snd_mss Tuint32_t
  7721. Ftcpi_rcv_mss Tuint32_t
  7722. Ftcpi_unacked Tuint32_t
  7723. Ftcpi_sacked Tuint32_t
  7724. Ftcpi_lost Tuint32_t
  7725. Ftcpi_retrans Tuint32_t
  7726. Ftcpi_fackets Tuint32_t
  7727. Ftcpi_last_data_sent Tuint32_t
  7728. Ftcpi_last_ack_sent Tuint32_t
  7729. Ftcpi_last_data_recv Tuint32_t
  7730. Ftcpi_last_ack_recv Tuint32_t
  7731. Ftcpi_pmtu Tuint32_t
  7732. Ftcpi_rcv_ssthresh Tuint32_t
  7733. Ftcpi_rtt Tuint32_t
  7734. Ftcpi_rttvar Tuint32_t
  7735. Ftcpi_snd_ssthresh Tuint32_t
  7736. Ftcpi_snd_cwnd Tuint32_t
  7737. Ftcpi_advmss Tuint32_t
  7738. Ftcpi_reordering Tuint32_t
  7739. Ftcpi_rcv_rtt Tuint32_t
  7740. Ftcpi_rcv_space Tuint32_t
  7741. Ftcpi_total_retrans Tuint32_t
  7742. Ftcpi_pacing_rate Tuint64_t
  7743. Ftcpi_max_pacing_rate Tuint64_t
  7744. Ftcpi_bytes_acked Tuint64_t
  7745. Ftcpi_bytes_received Tuint64_t
  7746. Ftcpi_segs_out Tuint32_t
  7747. Ftcpi_segs_in Tuint32_t
  7748. Ftcpi_notsent_bytes Tuint32_t
  7749. Ftcpi_min_rtt Tuint32_t
  7750. Ftcpi_data_segs_in Tuint32_t
  7751. Ftcpi_data_segs_out Tuint32_t
  7752. Ftcpi_delivery_rate Tuint64_t
  7753. Ftcpi_busy_time Tuint64_t
  7754. Ftcpi_rwnd_limited Tuint64_t
  7755. Ftcpi_sndbuf_limited Tuint64_t
  7756. Ftcpi_delivered Tuint32_t
  7757. Ftcpi_delivered_ce Tuint32_t
  7758. Ftcpi_bytes_sent Tuint64_t
  7759. Ftcpi_bytes_retrans Tuint64_t
  7760. Ftcpi_dsack_dups Tuint32_t
  7761. Ftcpi_reord_seen Tuint32_t
  7762. Ftcpi_rcv_ooopack Tuint32_t
  7763. Ftcpi_snd_wnd Tuint32_t
  7764. }
  7765. type Ttcp_md5sig = struct {
  7766. Ftcpm_addr Tsockaddr_storage
  7767. Ftcpm_flags Tuint8_t
  7768. Ftcpm_prefixlen Tuint8_t
  7769. Ftcpm_keylen Tuint16_t
  7770. Ftcpm_ifindex int32
  7771. Ftcpm_key [80]Tuint8_t
  7772. }
  7773. type Ttcp_diag_md5sig = struct {
  7774. Ftcpm_family Tuint8_t
  7775. Ftcpm_prefixlen Tuint8_t
  7776. Ftcpm_keylen Tuint16_t
  7777. Ftcpm_addr [4]Tuint32_t
  7778. Ftcpm_key [80]Tuint8_t
  7779. }
  7780. type Ttcp_repair_window = struct {
  7781. Fsnd_wl1 Tuint32_t
  7782. Fsnd_wnd Tuint32_t
  7783. Fmax_window Tuint32_t
  7784. Frcv_wnd Tuint32_t
  7785. Frcv_wup Tuint32_t
  7786. }
  7787. type Ttcp_zerocopy_receive = struct {
  7788. Faddress Tuint64_t
  7789. Flength Tuint32_t
  7790. Frecv_skip_hint Tuint32_t
  7791. Finq Tuint32_t
  7792. Ferr Tint32_t
  7793. Fcopybuf_address Tuint64_t
  7794. Fcopybuf_len Tint32_t
  7795. Fflags Tuint32_t
  7796. Fmsg_control Tuint64_t
  7797. Fmsg_controllen Tuint64_t
  7798. Fmsg_flags Tuint32_t
  7799. Freserved Tuint32_t
  7800. }
  7801. type Taddrinfo = struct {
  7802. Fai_flags int32
  7803. Fai_family int32
  7804. Fai_socktype int32
  7805. Fai_protocol int32
  7806. Fai_addrlen Tsocklen_t
  7807. Fai_addr uintptr
  7808. Fai_canonname uintptr
  7809. Fai_next uintptr
  7810. }
  7811. type Tnetent = struct {
  7812. Fn_name uintptr
  7813. Fn_aliases uintptr
  7814. Fn_addrtype int32
  7815. Fn_net Tuint32_t
  7816. }
  7817. type Thostent = struct {
  7818. Fh_name uintptr
  7819. Fh_aliases uintptr
  7820. Fh_addrtype int32
  7821. Fh_length int32
  7822. Fh_addr_list uintptr
  7823. }
  7824. type Tservent = struct {
  7825. Fs_name uintptr
  7826. Fs_aliases uintptr
  7827. Fs_port int32
  7828. Fs_proto uintptr
  7829. }
  7830. type Tprotoent = struct {
  7831. Fp_name uintptr
  7832. Fp_aliases uintptr
  7833. Fp_proto int32
  7834. }
  7835. type Tstat = struct {
  7836. Fst_dev Tdev_t
  7837. Fst_ino Tino_t
  7838. Fst_mode Tmode_t
  7839. Fst_nlink Tnlink_t
  7840. Fst_uid Tuid_t
  7841. Fst_gid Tgid_t
  7842. Fst_rdev Tdev_t
  7843. F__pad uint64
  7844. Fst_size Toff_t
  7845. Fst_blksize Tblksize_t
  7846. F__pad2 int32
  7847. Fst_blocks Tblkcnt_t
  7848. Fst_atim Ttimespec
  7849. Fst_mtim Ttimespec
  7850. Fst_ctim Ttimespec
  7851. F__unused [2]uint32
  7852. }
  7853. type Tstatx_timestamp = struct {
  7854. Ftv_sec Tint64_t
  7855. Ftv_nsec Tuint32_t
  7856. F__pad Tuint32_t
  7857. }
  7858. type Tstatx = struct {
  7859. Fstx_mask Tuint32_t
  7860. Fstx_blksize Tuint32_t
  7861. Fstx_attributes Tuint64_t
  7862. Fstx_nlink Tuint32_t
  7863. Fstx_uid Tuint32_t
  7864. Fstx_gid Tuint32_t
  7865. Fstx_mode Tuint16_t
  7866. F__pad0 [1]Tuint16_t
  7867. Fstx_ino Tuint64_t
  7868. Fstx_size Tuint64_t
  7869. Fstx_blocks Tuint64_t
  7870. Fstx_attributes_mask Tuint64_t
  7871. Fstx_atime Tstatx_timestamp
  7872. Fstx_btime Tstatx_timestamp
  7873. Fstx_ctime Tstatx_timestamp
  7874. Fstx_mtime Tstatx_timestamp
  7875. Fstx_rdev_major Tuint32_t
  7876. Fstx_rdev_minor Tuint32_t
  7877. Fstx_dev_major Tuint32_t
  7878. Fstx_dev_minor Tuint32_t
  7879. F__pad1 [14]Tuint64_t
  7880. }
  7881. func Xxcb_popcount(tls *libc.TLS, mask Tuint32_t) (r int32) {
  7882. var y Tuint32_t
  7883. _ = y
  7884. y = mask >> libc.Int32FromInt32(1) & uint32(033333333333)
  7885. y = mask - y - y>>libc.Int32FromInt32(1)&uint32(033333333333)
  7886. return libc.Int32FromUint32((y + y>>libc.Int32FromInt32(3)) & uint32(030707070707) % uint32(077))
  7887. }
  7888. func Xxcb_sumof(tls *libc.TLS, list uintptr, len1 int32) (r int32) {
  7889. var i, s int32
  7890. _, _ = i, s
  7891. s = 0
  7892. i = 0
  7893. for {
  7894. if !(i < len1) {
  7895. break
  7896. }
  7897. s += libc.Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(list)))
  7898. list++
  7899. goto _1
  7900. _1:
  7901. ;
  7902. i++
  7903. }
  7904. return s
  7905. }
  7906. // C documentation
  7907. //
  7908. // /* Return true and parse if name matches <path to socket>[.<screen>]
  7909. // * Upon success:
  7910. // * host = <path to socket>
  7911. // * protocol = "unix"
  7912. // * display = 0
  7913. // * screen = <screen>
  7914. // */
  7915. func __xcb_parse_display_path_to_socket(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7916. bp := tls.Alloc(4240)
  7917. defer tls.Free(4240)
  7918. var _screen, res int32
  7919. var dot uintptr
  7920. var len1 Tsize_t
  7921. var lscreen uint64
  7922. var _ /* endptr at bp+4224 */ uintptr
  7923. var _ /* path at bp+128 */ [4096]uint8
  7924. var _ /* sbuf at bp+0 */ Tstat
  7925. _, _, _, _, _ = _screen, dot, len1, lscreen, res
  7926. _screen = 0
  7927. len1 = libc.Xstrlen(tls, name)
  7928. if len1 >= uint64(4096) {
  7929. return 0
  7930. }
  7931. libc.Xmemcpy(tls, bp+128, name, len1+uint64(1))
  7932. res = libc.Xstat(tls, bp+128, bp)
  7933. if 0 != res {
  7934. if res != -int32(1) || *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != int32(m_ENOENT) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != int32(m_ENOTDIR) {
  7935. return 0
  7936. }
  7937. dot = libc.Xstrrchr(tls, bp+128, int32('.'))
  7938. if !(dot != 0) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(dot + 1))) < int32('1') || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(dot + 1))) > int32('9') {
  7939. return 0
  7940. }
  7941. *(*uint8)(unsafe.Pointer(dot)) = uint8('\000')
  7942. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = 0
  7943. lscreen = libc.Xstrtoul(tls, dot+uintptr(1), bp+4224, int32(10))
  7944. if lscreen > uint64(m_INT_MAX1) || !(*(*uintptr)(unsafe.Pointer(bp + 4224)) != 0) || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 4224)))) != 0 || *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) != 0 {
  7945. return 0
  7946. }
  7947. if 0 != libc.Xstat(tls, bp+128, bp) {
  7948. return 0
  7949. }
  7950. _screen = libc.Int32FromUint64(lscreen)
  7951. }
  7952. if host != 0 {
  7953. *(*uintptr)(unsafe.Pointer(host)) = libc.Xstrdup(tls, bp+128)
  7954. if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
  7955. return 0
  7956. }
  7957. }
  7958. if protocol != 0 {
  7959. *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xstrdup(tls, __ccgo_ts+4)
  7960. if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
  7961. if host != 0 {
  7962. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(host)))
  7963. }
  7964. return 0
  7965. }
  7966. }
  7967. if displayp != 0 {
  7968. *(*int32)(unsafe.Pointer(displayp)) = 0
  7969. }
  7970. if screenp != 0 {
  7971. *(*int32)(unsafe.Pointer(screenp)) = _screen
  7972. }
  7973. return int32(1)
  7974. }
  7975. func __xcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, protocol uintptr, displayp uintptr, screenp uintptr) (r int32) {
  7976. bp := tls.Alloc(16)
  7977. defer tls.Free(16)
  7978. var colon, slash uintptr
  7979. var display, len1, screen int32
  7980. var _ /* dot at bp+0 */ uintptr
  7981. var _ /* end at bp+8 */ uintptr
  7982. _, _, _, _, _ = colon, display, len1, screen, slash
  7983. if !(name != 0) || !(*(*uint8)(unsafe.Pointer(name)) != 0) {
  7984. name = libc.Xgetenv(tls, __ccgo_ts+9)
  7985. }
  7986. if !(name != 0) {
  7987. return 0
  7988. }
  7989. /* First check for <path to socket>[.<screen>] */
  7990. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(name))) == int32('/') {
  7991. return __xcb_parse_display_path_to_socket(tls, name, host, protocol, displayp, screenp)
  7992. }
  7993. if libc.Xstrncmp(tls, name, __ccgo_ts+17, uint64(5)) == 0 {
  7994. return __xcb_parse_display_path_to_socket(tls, name+uintptr(5), host, protocol, displayp, screenp)
  7995. }
  7996. slash = libc.Xstrrchr(tls, name, int32('/'))
  7997. if slash != 0 {
  7998. len1 = int32(int64(slash) - int64(name))
  7999. if protocol != 0 {
  8000. *(*uintptr)(unsafe.Pointer(protocol)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  8001. if !(*(*uintptr)(unsafe.Pointer(protocol)) != 0) {
  8002. return 0
  8003. }
  8004. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(protocol)), name, libc.Uint64FromInt32(len1))
  8005. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(protocol)) + uintptr(len1))) = uint8('\000')
  8006. }
  8007. name = slash + uintptr(1)
  8008. } else {
  8009. if protocol != 0 {
  8010. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  8011. }
  8012. }
  8013. colon = libc.Xstrrchr(tls, name, int32(':'))
  8014. if !(colon != 0) {
  8015. goto error_out
  8016. }
  8017. len1 = int32(int64(colon) - int64(name))
  8018. colon++
  8019. display = libc.Int32FromUint64(libc.Xstrtoul(tls, colon, bp, int32(10)))
  8020. if *(*uintptr)(unsafe.Pointer(bp)) == colon {
  8021. goto error_out
  8022. }
  8023. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('\000') {
  8024. screen = 0
  8025. } else {
  8026. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('.') {
  8027. goto error_out
  8028. }
  8029. *(*uintptr)(unsafe.Pointer(bp))++
  8030. screen = libc.Int32FromUint64(libc.Xstrtoul(tls, *(*uintptr)(unsafe.Pointer(bp)), bp+8, int32(10)))
  8031. if *(*uintptr)(unsafe.Pointer(bp + 8)) == *(*uintptr)(unsafe.Pointer(bp)) || libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))) != int32('\000') {
  8032. goto error_out
  8033. }
  8034. }
  8035. /* At this point, the display string is fully parsed and valid, but
  8036. * the caller's memory is untouched. */
  8037. *(*uintptr)(unsafe.Pointer(host)) = libc.Xmalloc(tls, libc.Uint64FromInt32(len1+int32(1)))
  8038. if !(*(*uintptr)(unsafe.Pointer(host)) != 0) {
  8039. goto error_out
  8040. }
  8041. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(host)), name, libc.Uint64FromInt32(len1))
  8042. *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(host)) + uintptr(len1))) = uint8('\000')
  8043. *(*int32)(unsafe.Pointer(displayp)) = display
  8044. if screenp != 0 {
  8045. *(*int32)(unsafe.Pointer(screenp)) = screen
  8046. }
  8047. return int32(1)
  8048. goto error_out
  8049. error_out:
  8050. ;
  8051. if protocol != 0 {
  8052. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(protocol)))
  8053. *(*uintptr)(unsafe.Pointer(protocol)) = libc.UintptrFromInt32(0)
  8054. }
  8055. return 0
  8056. }
  8057. func Xxcb_parse_display(tls *libc.TLS, name uintptr, host uintptr, displayp uintptr, screenp uintptr) (r int32) {
  8058. return __xcb_parse_display(tls, name, host, libc.UintptrFromInt32(0), displayp, screenp)
  8059. }
  8060. func __xcb_open(tls *libc.TLS, host uintptr, protocol uintptr, display int32) (r int32) {
  8061. bp := tls.Alloc(32)
  8062. defer tls.Free(32)
  8063. var actual_filelen, fd int32
  8064. var base, file uintptr
  8065. var filelen Tsize_t
  8066. var port, port1 uint16
  8067. var v1 uint64
  8068. _, _, _, _, _, _, _, _ = actual_filelen, base, fd, file, filelen, port, port1, v1
  8069. base = uintptr(unsafe.Pointer(&_unix_base))
  8070. file = libc.UintptrFromInt32(0)
  8071. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+4, protocol) == 0 && host != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('/') {
  8072. /* Full path to socket provided, ignore everything else */
  8073. filelen = libc.Xstrlen(tls, host) + uint64(1)
  8074. if filelen > uint64(m_INT_MAX1) {
  8075. return -int32(1)
  8076. }
  8077. file = libc.Xmalloc(tls, filelen)
  8078. if file == libc.UintptrFromInt32(0) {
  8079. return -int32(1)
  8080. }
  8081. libc.Xmemcpy(tls, file, host, filelen)
  8082. actual_filelen = libc.Int32FromUint64(filelen - libc.Uint64FromInt32(1))
  8083. } else {
  8084. /* If protocol or host is "unix", fall through to Unix socket code below */
  8085. if (!(protocol != 0) || libc.Xstrcmp(tls, __ccgo_ts+4, protocol) != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) != int32('\000') && libc.Xstrcmp(tls, __ccgo_ts+4, host) != 0 {
  8086. /* display specifies TCP */
  8087. port = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  8088. return __xcb_open_tcp(tls, host, protocol, port)
  8089. }
  8090. filelen = libc.Xstrlen(tls, base) + uint64(1) + libc.Uint64FromInt64(4)*libc.Uint64FromInt32(3) + uint64(1)
  8091. file = libc.Xmalloc(tls, filelen)
  8092. if file == libc.UintptrFromInt32(0) {
  8093. return -int32(1)
  8094. }
  8095. /* display specifies Unix socket */
  8096. actual_filelen = libc.X__builtin_snprintf(tls, file, filelen, __ccgo_ts+23, libc.VaList(bp+8, base, display))
  8097. if actual_filelen < 0 {
  8098. libc.Xfree(tls, file)
  8099. return -int32(1)
  8100. }
  8101. /* snprintf may truncate the file */
  8102. if libc.Uint64FromInt32(actual_filelen) < filelen-uint64(1) {
  8103. v1 = libc.Uint64FromInt32(actual_filelen)
  8104. } else {
  8105. v1 = filelen - uint64(1)
  8106. }
  8107. filelen = v1
  8108. fd = __xcb_open_abstract(tls, protocol, file, filelen)
  8109. 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) {
  8110. libc.Xfree(tls, file)
  8111. return fd
  8112. }
  8113. }
  8114. fd = __xcb_open_unix(tls, protocol, file)
  8115. libc.Xfree(tls, file)
  8116. if fd < 0 && !(protocol != 0) && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  8117. port1 = libc.Uint16FromInt32(int32(m_X_TCP_PORT) + display)
  8118. fd = __xcb_open_tcp(tls, host, protocol, port1)
  8119. }
  8120. return fd
  8121. return -int32(1) /* if control reaches here then something has gone wrong */
  8122. }
  8123. var _unix_base = [17]uint8{'/', 't', 'm', 'p', '/', '.', 'X', '1', '1', '-', 'u', 'n', 'i', 'x', '/', 'X'}
  8124. func __xcb_socket(tls *libc.TLS, family int32, type1 int32, proto int32) (r int32) {
  8125. bp := tls.Alloc(16)
  8126. defer tls.Free(16)
  8127. var fd int32
  8128. _ = fd
  8129. fd = libc.Xsocket(tls, family, type1|int32(m_SOCK_CLOEXEC1), proto)
  8130. if fd == -int32(1) && *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) == int32(m_EINVAL) {
  8131. fd = libc.Xsocket(tls, family, type1, proto)
  8132. if fd >= 0 {
  8133. libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
  8134. }
  8135. }
  8136. return fd
  8137. }
  8138. func __xcb_do_connect(tls *libc.TLS, fd int32, addr uintptr, addrlen int32) (r int32) {
  8139. bp := tls.Alloc(16)
  8140. defer tls.Free(16)
  8141. var _ /* on at bp+0 */ int32
  8142. *(*int32)(unsafe.Pointer(bp)) = int32(1)
  8143. if fd < 0 {
  8144. return -int32(1)
  8145. }
  8146. libc.Xsetsockopt(tls, fd, int32(m_IPPROTO_TCP), int32(m_TCP_NODELAY), bp, uint32(4))
  8147. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_KEEPALIVE), bp, uint32(4))
  8148. return libc.Xconnect(tls, fd, addr, libc.Uint32FromInt32(addrlen))
  8149. }
  8150. func __xcb_open_tcp(tls *libc.TLS, host uintptr, protocol uintptr, port uint16) (r int32) {
  8151. bp := tls.Alloc(80)
  8152. defer tls.Free(80)
  8153. var addr, bracket, v1 uintptr
  8154. var fd int32
  8155. var v2 bool
  8156. var _ /* hints at bp+0 */ Taddrinfo
  8157. var _ /* results at bp+56 */ uintptr
  8158. var _ /* service at bp+48 */ [6]uint8
  8159. _, _, _, _, _ = addr, bracket, fd, v1, v2
  8160. fd = -int32(1)
  8161. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+28, protocol) != 0 && libc.Xstrcmp(tls, __ccgo_ts+32, protocol) != 0 && libc.Xstrcmp(tls, __ccgo_ts+37, protocol) != 0 {
  8162. return -int32(1)
  8163. }
  8164. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('\000') {
  8165. host = __ccgo_ts + 43
  8166. }
  8167. libc.Xmemset(tls, bp, 0, uint64(48))
  8168. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICSERV)
  8169. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = m_PF_UNSPEC
  8170. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_socktype = int32(m_SOCK_STREAM)
  8171. /* Allow IPv6 addresses enclosed in brackets. */
  8172. if v2 = libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(host))) == int32('['); v2 {
  8173. v1 = libc.Xstrrchr(tls, host, int32(']'))
  8174. bracket = v1
  8175. }
  8176. if v2 && v1 != 0 && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bracket + 1))) == int32('\000') {
  8177. *(*uint8)(unsafe.Pointer(bracket)) = uint8('\000')
  8178. host++
  8179. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_flags |= int32(m_AI_NUMERICHOST)
  8180. (*(*Taddrinfo)(unsafe.Pointer(bp))).Fai_family = int32(m_PF_INET6)
  8181. }
  8182. libc.X__builtin_snprintf(tls, bp+48, uint64(6), __ccgo_ts+53, libc.VaList(bp+72, libc.Int32FromUint16(port)))
  8183. if libc.Xgetaddrinfo(tls, host, bp+48, bp, bp+56) != 0 {
  8184. /* FIXME: use gai_strerror, and fill in error connection */
  8185. return -int32(1)
  8186. }
  8187. addr = *(*uintptr)(unsafe.Pointer(bp + 56))
  8188. for {
  8189. if !(addr != 0) {
  8190. break
  8191. }
  8192. fd = __xcb_socket(tls, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_family, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_socktype, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_protocol)
  8193. if __xcb_do_connect(tls, fd, (*Taddrinfo)(unsafe.Pointer(addr)).Fai_addr, libc.Int32FromUint32((*Taddrinfo)(unsafe.Pointer(addr)).Fai_addrlen)) >= 0 {
  8194. break
  8195. }
  8196. libc.Xclose(tls, fd)
  8197. fd = -int32(1)
  8198. goto _3
  8199. _3:
  8200. ;
  8201. addr = (*Taddrinfo)(unsafe.Pointer(addr)).Fai_next
  8202. }
  8203. libc.Xfreeaddrinfo(tls, *(*uintptr)(unsafe.Pointer(bp + 56)))
  8204. return fd
  8205. }
  8206. func __xcb_open_unix(tls *libc.TLS, protocol uintptr, file uintptr) (r int32) {
  8207. bp := tls.Alloc(128)
  8208. defer tls.Free(128)
  8209. var fd int32
  8210. var _ /* addr at bp+0 */ Tsockaddr_un
  8211. var _ /* len at bp+112 */ Tsocklen_t
  8212. var _ /* val at bp+116 */ int32
  8213. _ = fd
  8214. *(*Tsocklen_t)(unsafe.Pointer(bp + 112)) = uint32(4)
  8215. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+4, protocol) != 0 {
  8216. return -int32(1)
  8217. }
  8218. libc.Xstrcpy(tls, bp+2, file)
  8219. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8220. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8221. if fd == -int32(1) {
  8222. return -int32(1)
  8223. }
  8224. 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) {
  8225. *(*int32)(unsafe.Pointer(bp + 116)) = libc.Int32FromInt32(64) * libc.Int32FromInt32(1024)
  8226. libc.Xsetsockopt(tls, fd, int32(m_SOL_SOCKET), int32(m_SO_SNDBUF), bp+116, uint32(4))
  8227. }
  8228. if libc.Xconnect(tls, fd, bp, uint32(110)) == -int32(1) {
  8229. libc.Xclose(tls, fd)
  8230. return -int32(1)
  8231. }
  8232. return fd
  8233. }
  8234. func __xcb_open_abstract(tls *libc.TLS, protocol uintptr, file uintptr, filelen Tsize_t) (r int32) {
  8235. bp := tls.Alloc(112)
  8236. defer tls.Free(112)
  8237. var fd int32
  8238. var namelen Tsocklen_t
  8239. var _ /* addr at bp+0 */ Tsockaddr_un
  8240. _, _ = fd, namelen
  8241. *(*Tsockaddr_un)(unsafe.Pointer(bp)) = Tsockaddr_un{}
  8242. if protocol != 0 && libc.Xstrcmp(tls, __ccgo_ts+4, protocol) != 0 {
  8243. return -int32(1)
  8244. }
  8245. libc.Xstrcpy(tls, bp+2+uintptr(1), file)
  8246. (*(*Tsockaddr_un)(unsafe.Pointer(bp))).Fsun_family = uint16(m_PF_LOCAL)
  8247. namelen = uint32(uint64(libc.UintptrFromInt32(0)+2) + libc.Uint64FromInt32(1) + filelen)
  8248. fd = __xcb_socket(tls, int32(m_PF_LOCAL), int32(m_SOCK_STREAM), 0)
  8249. if fd == -int32(1) {
  8250. return -int32(1)
  8251. }
  8252. if libc.Xconnect(tls, fd, bp, namelen) == -int32(1) {
  8253. libc.Xclose(tls, fd)
  8254. return -int32(1)
  8255. }
  8256. return fd
  8257. }
  8258. func Xxcb_connect(tls *libc.TLS, displayname uintptr, screenp uintptr) (r uintptr) {
  8259. return Xxcb_connect_to_display_with_auth_info(tls, displayname, libc.UintptrFromInt32(0), screenp)
  8260. }
  8261. func Xxcb_connect_to_display_with_auth_info(tls *libc.TLS, displayname uintptr, auth uintptr, screenp uintptr) (r uintptr) {
  8262. bp := tls.Alloc(64)
  8263. defer tls.Free(64)
  8264. var c uintptr
  8265. var fd, parsed int32
  8266. var _ /* display at bp+0 */ int32
  8267. var _ /* host at bp+8 */ uintptr
  8268. var _ /* ourauth at bp+24 */ Txcb_auth_info_t
  8269. var _ /* protocol at bp+16 */ uintptr
  8270. _, _, _ = c, fd, parsed
  8271. *(*int32)(unsafe.Pointer(bp)) = 0
  8272. *(*uintptr)(unsafe.Pointer(bp + 8)) = libc.UintptrFromInt32(0)
  8273. *(*uintptr)(unsafe.Pointer(bp + 16)) = libc.UintptrFromInt32(0)
  8274. parsed = __xcb_parse_display(tls, displayname, bp+8, bp+16, bp, screenp)
  8275. if !(parsed != 0) {
  8276. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_PARSE_ERR))
  8277. goto out
  8278. }
  8279. fd = __xcb_open(tls, *(*uintptr)(unsafe.Pointer(bp + 8)), *(*uintptr)(unsafe.Pointer(bp + 16)), *(*int32)(unsafe.Pointer(bp)))
  8280. if fd == -int32(1) {
  8281. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_ERROR))
  8282. goto out
  8283. }
  8284. if auth != 0 {
  8285. c = Xxcb_connect_to_fd(tls, fd, auth)
  8286. } else {
  8287. if X_xcb_get_auth_info(tls, fd, bp+24, *(*int32)(unsafe.Pointer(bp))) != 0 {
  8288. c = Xxcb_connect_to_fd(tls, fd, bp+24)
  8289. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fname)
  8290. libc.Xfree(tls, (*(*Txcb_auth_info_t)(unsafe.Pointer(bp + 24))).Fdata)
  8291. } else {
  8292. c = Xxcb_connect_to_fd(tls, fd, uintptr(0))
  8293. }
  8294. }
  8295. if (*Txcb_connection_t)(unsafe.Pointer(c)).Fhas_error != 0 {
  8296. goto out
  8297. }
  8298. /* Make sure requested screen number is in bounds for this server */
  8299. 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) {
  8300. Xxcb_disconnect(tls, c)
  8301. c = X_xcb_conn_ret_error(tls, int32(m_XCB_CONN_CLOSED_INVALID_SCREEN))
  8302. goto out
  8303. }
  8304. goto out
  8305. out:
  8306. ;
  8307. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 8)))
  8308. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 16)))
  8309. return c
  8310. }
  8311. const m_AUTH_PROTO_MIT_MAGIC_COOKIE = "MIT-MAGIC-COOKIE-1"
  8312. const m_AUTH_PROTO_XDM_AUTHORIZATION = "XDM-AUTHORIZATION-1"
  8313. const m_CANBSIZ = 255
  8314. const m_DEV_BSIZE = 512
  8315. const m_FALSE = 0
  8316. const m_FUNCPROTO = 15
  8317. const m_FamilyKrb5Principal = 253
  8318. const m_FamilyLocal = 256
  8319. const m_FamilyLocalHost = 252
  8320. const m_FamilyNetname = 254
  8321. const m_FamilyWild = 65535
  8322. const m_INITIAL_SOCKNAME_SLACK = 108
  8323. const m_INT_MAX2 = 0x7fffffff
  8324. const m_ITIMER_PROF = 2
  8325. const m_ITIMER_REAL = 0
  8326. const m_ITIMER_VIRTUAL = 1
  8327. const m_LOCK_ERROR = 1
  8328. const m_LOCK_SUCCESS = 0
  8329. const m_LOCK_TIMEOUT = 2
  8330. const m_MAXHOSTNAMELEN = 64
  8331. const m_MAXNAMLEN = 255
  8332. const m_MAXPATHLEN = 4096
  8333. const m_MAXSYMLINKS = 20
  8334. const m_NBBY = 8
  8335. const m_NCARGS = 131072
  8336. const m_NGROUPS = 32
  8337. const m_NOFILE = 256
  8338. const m_NeedFunctionPrototypes = 1
  8339. const m_NeedNestedPrototypes = 1
  8340. const m_NeedVarargsPrototypes = 1
  8341. const m_NeedWidePrototypes = 0
  8342. const m_PRIO_MAX = 20
  8343. const m_PRIO_PGRP = 1
  8344. const m_PRIO_PROCESS = 0
  8345. const m_PRIO_USER = 2
  8346. const m_RLIMIT_AS = 9
  8347. const m_RLIMIT_CORE = 4
  8348. const m_RLIMIT_CPU = 0
  8349. const m_RLIMIT_DATA = 2
  8350. const m_RLIMIT_FSIZE = 1
  8351. const m_RLIMIT_LOCKS = 10
  8352. const m_RLIMIT_MEMLOCK = 8
  8353. const m_RLIMIT_MSGQUEUE = 12
  8354. const m_RLIMIT_NICE = 13
  8355. const m_RLIMIT_NLIMITS = 16
  8356. const m_RLIMIT_NOFILE = 7
  8357. const m_RLIMIT_NPROC = 6
  8358. const m_RLIMIT_RSS = 5
  8359. const m_RLIMIT_RTPRIO = 14
  8360. const m_RLIMIT_RTTIME = 15
  8361. const m_RLIMIT_SIGPENDING = 11
  8362. const m_RLIMIT_STACK = 3
  8363. const m_RLIM_NLIMITS = "RLIMIT_NLIMITS"
  8364. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  8365. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  8366. const m_RUSAGE_SELF = 0
  8367. const m_RUSAGE_THREAD = 1
  8368. const m_SOCK_CLOEXEC2 = 02000000
  8369. const m_TRUE = 1
  8370. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  8371. const m_XDM_KA_RTX_LIMIT = 4
  8372. const m_XDM_MAX_MSGLEN = 8192
  8373. const m_XDM_MAX_RTX = 32
  8374. const m_XDM_MIN_RTX = 2
  8375. const m_XDM_PROTOCOL_VERSION = 1
  8376. const m_XDM_RTX_LIMIT = 7
  8377. const m_XDM_UDP_PORT = 177
  8378. const m_XMD_H = 1
  8379. const m__X_INLINE = "inline"
  8380. const m__X_RESTRICT_KYWD = "restrict"
  8381. const m__Xconst = "const"
  8382. const m_prlimit64 = "prlimit"
  8383. type TXauth = struct {
  8384. Ffamily uint16
  8385. Faddress_length uint16
  8386. Faddress uintptr
  8387. Fnumber_length uint16
  8388. Fnumber uintptr
  8389. Fname_length uint16
  8390. Fname uintptr
  8391. Fdata_length uint16
  8392. Fdata uintptr
  8393. }
  8394. type Txauth = TXauth
  8395. type Titimerval = struct {
  8396. Fit_interval Ttimeval
  8397. Fit_value Ttimeval
  8398. }
  8399. type Ttimezone = struct {
  8400. Ftz_minuteswest int32
  8401. Ftz_dsttime int32
  8402. }
  8403. type Trlim_t = uint64
  8404. type Trlimit = struct {
  8405. Frlim_cur Trlim_t
  8406. Frlim_max Trlim_t
  8407. }
  8408. type Trusage = struct {
  8409. Fru_utime Ttimeval
  8410. Fru_stime Ttimeval
  8411. Fru_maxrss int64
  8412. Fru_ixrss int64
  8413. Fru_idrss int64
  8414. Fru_isrss int64
  8415. Fru_minflt int64
  8416. Fru_majflt int64
  8417. Fru_nswap int64
  8418. Fru_inblock int64
  8419. Fru_oublock int64
  8420. Fru_msgsnd int64
  8421. Fru_msgrcv int64
  8422. Fru_nsignals int64
  8423. Fru_nvcsw int64
  8424. Fru_nivcsw int64
  8425. F__reserved [16]int64
  8426. }
  8427. type TINT64 = int64
  8428. type TINT32 = int32
  8429. type TINT16 = int16
  8430. type TINT8 = int8
  8431. type TCARD64 = uint64
  8432. type TCARD32 = uint32
  8433. type TCARD16 = uint16
  8434. type TCARD8 = uint8
  8435. type TBITS32 = uint32
  8436. type TBITS16 = uint16
  8437. type TBYTE = uint8
  8438. type TBOOL = uint8
  8439. type TxdmOpCode = int32
  8440. const _BROADCAST_QUERY = 1
  8441. const _QUERY = 2
  8442. const _INDIRECT_QUERY = 3
  8443. const _FORWARD_QUERY = 4
  8444. const _WILLING = 5
  8445. const _UNWILLING = 6
  8446. const _REQUEST = 7
  8447. const _ACCEPT = 8
  8448. const _DECLINE = 9
  8449. const _MANAGE = 10
  8450. const _REFUSE = 11
  8451. const _FAILED = 12
  8452. const _KEEPALIVE = 13
  8453. const _ALIVE = 14
  8454. type Txdmcp_states = int32
  8455. const _XDM_QUERY = 0
  8456. const _XDM_BROADCAST = 1
  8457. const _XDM_INDIRECT = 2
  8458. const _XDM_COLLECT_QUERY = 3
  8459. const _XDM_COLLECT_BROADCAST_QUERY = 4
  8460. const _XDM_COLLECT_INDIRECT_QUERY = 5
  8461. const _XDM_START_CONNECTION = 6
  8462. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  8463. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  8464. const _XDM_MANAGE = 9
  8465. const _XDM_RUN_SESSION = 10
  8466. const _XDM_OFF = 11
  8467. const _XDM_AWAIT_USER_INPUT = 12
  8468. const _XDM_KEEPALIVE = 13
  8469. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  8470. const _XDM_KEEP_ME_LAST = 15
  8471. type TCARD8Ptr = uintptr
  8472. type TCARD16Ptr = uintptr
  8473. type TCARD32Ptr = uintptr
  8474. type TARRAY8 = struct {
  8475. Flength TCARD16
  8476. Fdata TCARD8Ptr
  8477. }
  8478. type T_ARRAY8 = TARRAY8
  8479. type TARRAY8Ptr = uintptr
  8480. type TARRAY16 = struct {
  8481. Flength TCARD8
  8482. Fdata TCARD16Ptr
  8483. }
  8484. type T_ARRAY16 = TARRAY16
  8485. type TARRAY16Ptr = uintptr
  8486. type TARRAY32 = struct {
  8487. Flength TCARD8
  8488. Fdata TCARD32Ptr
  8489. }
  8490. type T_ARRAY32 = TARRAY32
  8491. type TARRAY32Ptr = uintptr
  8492. type TARRAYofARRAY8 = struct {
  8493. Flength TCARD8
  8494. Fdata TARRAY8Ptr
  8495. }
  8496. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  8497. type TARRAYofARRAY8Ptr = uintptr
  8498. type TXdmcpHeader = struct {
  8499. Fversion TCARD16
  8500. Fopcode TCARD16
  8501. Flength TCARD16
  8502. }
  8503. type T_XdmcpHeader = TXdmcpHeader
  8504. type TXdmcpHeaderPtr = uintptr
  8505. type TXdmcpBuffer = struct {
  8506. Fdata uintptr
  8507. Fsize int32
  8508. Fpointer int32
  8509. Fcount int32
  8510. }
  8511. type T_XdmcpBuffer = TXdmcpBuffer
  8512. type TXdmcpBufferPtr = uintptr
  8513. type TXdmAuthKeyRec = struct {
  8514. Fdata [8]TBYTE
  8515. }
  8516. type T_XdmAuthKey = TXdmAuthKeyRec
  8517. type TXdmAuthKeyPtr = uintptr
  8518. type TXdmcpNetaddr = uintptr
  8519. type _auth_protos = int32
  8520. const _AUTH_XA1 = 0
  8521. const _AUTH_MC1 = 1
  8522. const _N_AUTH_PROTOS = 2
  8523. var _authnames = [2]uintptr{
  8524. 0: __ccgo_ts + 57,
  8525. 1: __ccgo_ts + 77,
  8526. }
  8527. var _authnameslen = [2]int32{
  8528. 0: libc.Int32FromUint64(libc.Uint64FromInt64(20) - libc.Uint64FromInt32(1)),
  8529. 1: libc.Int32FromUint64(libc.Uint64FromInt64(19) - libc.Uint64FromInt32(1)),
  8530. }
  8531. func _memdup(tls *libc.TLS, dst uintptr, src uintptr, len1 Tsize_t) (r Tsize_t) {
  8532. if len1 != 0 {
  8533. *(*uintptr)(unsafe.Pointer(dst)) = libc.Xmalloc(tls, len1)
  8534. } else {
  8535. *(*uintptr)(unsafe.Pointer(dst)) = uintptr(0)
  8536. }
  8537. if !(*(*uintptr)(unsafe.Pointer(dst)) != 0) {
  8538. return uint64(0)
  8539. }
  8540. libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(dst)), src, len1)
  8541. return len1
  8542. }
  8543. func _authname_match(tls *libc.TLS, kind _auth_protos, name uintptr, namelen Tsize_t) (r int32) {
  8544. if libc.Uint64FromInt32(_authnameslen[kind]) != namelen {
  8545. return 0
  8546. }
  8547. if libc.Xmemcmp(tls, _authnames[kind], name, namelen) != 0 {
  8548. return 0
  8549. }
  8550. return int32(1)
  8551. }
  8552. func _get_authptr(tls *libc.TLS, sockname uintptr, display int32) (r uintptr) {
  8553. bp := tls.Alloc(320)
  8554. defer tls.Free(320)
  8555. var addr uintptr
  8556. var addrlen, dispbuflen int32
  8557. var family uint16
  8558. var v1 uint64
  8559. var _ /* dispbuf at bp+256 */ [40]uint8
  8560. var _ /* hostnamebuf at bp+0 */ [256]uint8
  8561. _, _, _, _, _ = addr, addrlen, dispbuflen, family, v1
  8562. addr = uintptr(0)
  8563. addrlen = 0
  8564. family = libc.Uint16FromInt32(libc.Int32FromInt32(m_FamilyLocal)) /* 256 */
  8565. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8566. case int32(m_PF_INET6):
  8567. addr = sockname + 8
  8568. addrlen = int32(16)
  8569. 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)) {
  8570. 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)) {
  8571. family = uint16(_XCB_FAMILY_INTERNET_6)
  8572. }
  8573. break
  8574. }
  8575. addr += uintptr(12)
  8576. /* if v4-mapped, fall through. */
  8577. fallthrough
  8578. case int32(m_PF_INET):
  8579. if !(addr != 0) {
  8580. addr = sockname + 4
  8581. }
  8582. addrlen = int32(4)
  8583. if *(*Tin_addr_t)(unsafe.Pointer(addr)) != libc.Xhtonl(tls, libc.Uint32FromInt32(0x7f000001)) {
  8584. family = uint16(_XCB_FAMILY_INTERNET)
  8585. }
  8586. case int32(m_PF_LOCAL):
  8587. default:
  8588. return uintptr(0) /* cannot authenticate this family */
  8589. }
  8590. dispbuflen = libc.X__builtin_snprintf(tls, bp+256, uint64(40), __ccgo_ts+96, libc.VaList(bp+304, display))
  8591. if dispbuflen < 0 {
  8592. return uintptr(0)
  8593. }
  8594. /* snprintf may have truncate our text */
  8595. if libc.Uint64FromInt32(dispbuflen) < libc.Uint64FromInt64(40)-libc.Uint64FromInt32(1) {
  8596. v1 = libc.Uint64FromInt32(dispbuflen)
  8597. } else {
  8598. v1 = libc.Uint64FromInt64(40) - libc.Uint64FromInt32(1)
  8599. }
  8600. dispbuflen = libc.Int32FromUint64(v1)
  8601. if libc.Int32FromUint16(family) == int32(m_FamilyLocal) {
  8602. if libc.Xgethostname(tls, bp, uint64(256)) == -int32(1) {
  8603. return uintptr(0)
  8604. } /* do not know own hostname */
  8605. addr = bp
  8606. addrlen = libc.Int32FromUint64(libc.Xstrlen(tls, addr))
  8607. }
  8608. 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)))
  8609. }
  8610. func _next_nonce(tls *libc.TLS) (r int32) {
  8611. var ret, v1 int32
  8612. _, _ = ret, v1
  8613. libc.Xpthread_mutex_lock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8614. v1 = _nonce
  8615. _nonce++
  8616. ret = v1
  8617. libc.Xpthread_mutex_unlock(tls, uintptr(unsafe.Pointer(&_nonce_mutex)))
  8618. return ret
  8619. }
  8620. var _nonce int32
  8621. var _nonce_mutex = Tpthread_mutex_t{}
  8622. func _do_append(tls *libc.TLS, buf uintptr, idxp uintptr, val uintptr, valsize Tsize_t) {
  8623. var p1 uintptr
  8624. _ = p1
  8625. libc.Xmemcpy(tls, buf+uintptr(*(*int32)(unsafe.Pointer(idxp))), val, valsize)
  8626. p1 = idxp
  8627. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + valsize)
  8628. }
  8629. func _compute_auth(tls *libc.TLS, info uintptr, authptr uintptr, sockname uintptr) (r int32) {
  8630. bp := tls.Alloc(32)
  8631. defer tls.Free(32)
  8632. var si, si6 uintptr
  8633. var v2 int32
  8634. var _ /* fakeaddr at bp+12 */ Tuint32_t
  8635. var _ /* fakeaddr at bp+4 */ Tuint32_t
  8636. var _ /* fakeport at bp+16 */ Tuint16_t
  8637. var _ /* fakeport at bp+8 */ Tuint16_t
  8638. var _ /* j at bp+0 */ int32
  8639. var _ /* now at bp+20 */ Tuint32_t
  8640. _, _, _ = si, si6, v2
  8641. if _authname_match(tls, int32(_AUTH_MC1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8642. (*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)))
  8643. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen != 0) {
  8644. return 0
  8645. }
  8646. return int32(1)
  8647. }
  8648. if _authname_match(tls, int32(_AUTH_XA1), (*TXauth)(unsafe.Pointer(authptr)).Fname, uint64((*TXauth)(unsafe.Pointer(authptr)).Fname_length)) != 0 {
  8649. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(192)/libc.Int32FromInt32(8)))
  8650. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata != 0) {
  8651. return 0
  8652. }
  8653. *(*int32)(unsafe.Pointer(bp)) = 0
  8654. for {
  8655. if !(*(*int32)(unsafe.Pointer(bp)) < int32(8)) {
  8656. break
  8657. }
  8658. *(*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)))))
  8659. goto _1
  8660. _1:
  8661. ;
  8662. *(*int32)(unsafe.Pointer(bp))++
  8663. }
  8664. switch libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) {
  8665. case int32(m_PF_INET):
  8666. /*block*/
  8667. si = sockname
  8668. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+4, uint64(4))
  8669. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si+2, uint64(2))
  8670. case int32(m_PF_INET6):
  8671. /*block*/
  8672. si6 = sockname
  8673. 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) {
  8674. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+8+12, uint64(4))
  8675. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, si6+2, uint64(2))
  8676. } else {
  8677. /* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
  8678. same thing Xlib does: use all zeroes for the 4-byte address
  8679. and 2-byte port number. */
  8680. *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uint32(0)
  8681. *(*Tuint16_t)(unsafe.Pointer(bp + 8)) = uint16(0)
  8682. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+4, uint64(4))
  8683. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+8, uint64(2))
  8684. }
  8685. case int32(m_PF_LOCAL):
  8686. /*block*/
  8687. *(*Tuint32_t)(unsafe.Pointer(bp + 12)) = libc.Xhtonl(tls, uint32(0xffffffff)-libc.Uint32FromInt32(_next_nonce(tls)))
  8688. *(*Tuint16_t)(unsafe.Pointer(bp + 16)) = libc.Xhtons(tls, libc.Uint16FromInt32(libc.Xgetpid(tls)))
  8689. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+12, uint64(4))
  8690. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+16, uint64(2))
  8691. default:
  8692. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata)
  8693. return 0 /* do not know how to build this */
  8694. }
  8695. *(*Tuint32_t)(unsafe.Pointer(bp + 20)) = libc.Xhtonl(tls, libc.Uint32FromInt64(libc.Xtime(tls, uintptr(0))))
  8696. _do_append(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata, bp, bp+20, uint64(4))
  8697. for *(*int32)(unsafe.Pointer(bp)) < libc.Int32FromInt32(192)/libc.Int32FromInt32(8) {
  8698. v2 = *(*int32)(unsafe.Pointer(bp))
  8699. *(*int32)(unsafe.Pointer(bp))++
  8700. *(*uint8)(unsafe.Pointer((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdata + uintptr(v2))) = uint8(0)
  8701. }
  8702. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fdatalen = *(*int32)(unsafe.Pointer(bp))
  8703. 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)
  8704. return int32(1)
  8705. }
  8706. return 0 /* Unknown authorization type */
  8707. }
  8708. /* `sockaddr_un.sun_path' typical size usually ranges between 92 and 108 */
  8709. // C documentation
  8710. //
  8711. // /* Return a dynamically allocated socket address structure according
  8712. // to the value returned by either getpeername() or getsockname()
  8713. // (according to POSIX, applications should not assume a particular
  8714. // length for `sockaddr_un.sun_path') */
  8715. func _get_peer_sock_name(tls *libc.TLS, socket_func uintptr, fd int32) (r uintptr) {
  8716. bp := tls.Alloc(16)
  8717. defer tls.Free(16)
  8718. var new_sockname, sockname, v1 uintptr
  8719. var socknamelen Tsocklen_t
  8720. var _ /* actual_socknamelen at bp+0 */ Tsocklen_t
  8721. _, _, _, _ = new_sockname, sockname, socknamelen, v1
  8722. socknamelen = uint32(libc.Uint64FromInt64(16) + libc.Uint64FromInt32(m_INITIAL_SOCKNAME_SLACK))
  8723. *(*Tsocklen_t)(unsafe.Pointer(bp)) = socknamelen
  8724. sockname = libc.Xmalloc(tls, uint64(socknamelen))
  8725. if sockname == libc.UintptrFromInt32(0) {
  8726. return libc.UintptrFromInt32(0)
  8727. }
  8728. /* Both getpeername() and getsockname() truncates sockname if
  8729. there is not enough space and set the required length in
  8730. actual_socknamelen */
  8731. if (*(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{socket_func})))(tls, fd, sockname, bp) == -int32(1) {
  8732. goto sock_or_realloc_error
  8733. }
  8734. if *(*Tsocklen_t)(unsafe.Pointer(bp)) > socknamelen {
  8735. new_sockname = libc.UintptrFromInt32(0)
  8736. socknamelen = *(*Tsocklen_t)(unsafe.Pointer(bp))
  8737. v1 = libc.Xrealloc(tls, sockname, uint64(*(*Tsocklen_t)(unsafe.Pointer(bp))))
  8738. new_sockname = v1
  8739. if v1 == libc.UintptrFromInt32(0) {
  8740. goto sock_or_realloc_error
  8741. }
  8742. sockname = new_sockname
  8743. 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 {
  8744. goto sock_or_realloc_error
  8745. }
  8746. }
  8747. return sockname
  8748. goto sock_or_realloc_error
  8749. sock_or_realloc_error:
  8750. ;
  8751. libc.Xfree(tls, sockname)
  8752. return libc.UintptrFromInt32(0)
  8753. }
  8754. func X_xcb_get_auth_info(tls *libc.TLS, fd int32, info uintptr, display int32) (r int32) {
  8755. var authptr, sockname, v1, v2, v3 uintptr
  8756. var gotsockname, ret int32
  8757. _, _, _, _, _, _, _ = authptr, gotsockname, ret, sockname, v1, v2, v3
  8758. /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
  8759. xtrans/Xtransutils.c */
  8760. sockname = libc.UintptrFromInt32(0)
  8761. gotsockname = 0
  8762. authptr = uintptr(0)
  8763. ret = int32(1)
  8764. /* Some systems like hpux or Hurd do not expose peer names
  8765. * for UNIX Domain Sockets, but this is irrelevant,
  8766. * since compute_auth() ignores the peer name in this
  8767. * case anyway.*/
  8768. v1 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetpeername), fd)
  8769. sockname = v1
  8770. if v1 == libc.UintptrFromInt32(0) {
  8771. v2 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8772. sockname = v2
  8773. if v2 == libc.UintptrFromInt32(0) {
  8774. return 0
  8775. } /* can only authenticate sockets */
  8776. if libc.Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sockname)).Fsa_family) != int32(m_PF_LOCAL) {
  8777. libc.Xfree(tls, sockname)
  8778. return 0 /* except for AF_UNIX, sockets should have peernames */
  8779. }
  8780. gotsockname = int32(1)
  8781. }
  8782. authptr = _get_authptr(tls, sockname, display)
  8783. if authptr == uintptr(0) {
  8784. libc.Xfree(tls, sockname)
  8785. return 0 /* cannot find good auth data */
  8786. }
  8787. (*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)))
  8788. if !((*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen != 0) {
  8789. goto no_auth
  8790. } /* out of memory */
  8791. if !(gotsockname != 0) {
  8792. libc.Xfree(tls, sockname)
  8793. v3 = _get_peer_sock_name(tls, __ccgo_fp(libc.Xgetsockname), fd)
  8794. sockname = v3
  8795. if v3 == libc.UintptrFromInt32(0) {
  8796. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8797. goto no_auth /* can only authenticate sockets */
  8798. }
  8799. }
  8800. ret = _compute_auth(tls, info, authptr, sockname)
  8801. if !(ret != 0) {
  8802. libc.Xfree(tls, (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname)
  8803. goto no_auth /* cannot build auth record */
  8804. }
  8805. libc.Xfree(tls, sockname)
  8806. sockname = libc.UintptrFromInt32(0)
  8807. libxau.XXauDisposeAuth(tls, authptr)
  8808. return ret
  8809. goto no_auth
  8810. no_auth:
  8811. ;
  8812. libc.Xfree(tls, sockname)
  8813. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fname = uintptr(0)
  8814. (*Txcb_auth_info_t)(unsafe.Pointer(info)).Fnamelen = 0
  8815. libxau.XXauDisposeAuth(tls, authptr)
  8816. return 0
  8817. }
  8818. /*
  8819. * This file generated automatically from xproto.xml by c_client.py.
  8820. * Edit at your peril.
  8821. */
  8822. /**
  8823. * @defgroup XCB__API XCB API
  8824. * @brief XCB Protocol Implementation.
  8825. * @{
  8826. **/
  8827. /**
  8828. * @}
  8829. */
  8830. func Xxcb_char2b_next(tls *libc.TLS, i uintptr) {
  8831. var p1 uintptr
  8832. _ = p1
  8833. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Frem--
  8834. (*Txcb_char2b_iterator_t)(unsafe.Pointer(i)).Fdata += 2
  8835. p1 = i + 12
  8836. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(2))
  8837. }
  8838. func Xxcb_char2b_end(tls *libc.TLS, i Txcb_char2b_iterator_t) (r Txcb_generic_iterator_t) {
  8839. var ret Txcb_generic_iterator_t
  8840. _ = ret
  8841. ret.Fdata = i.Fdata + uintptr(i.Frem)*2
  8842. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8843. ret.Frem = 0
  8844. return ret
  8845. }
  8846. func Xxcb_window_next(tls *libc.TLS, i uintptr) {
  8847. var p1 uintptr
  8848. _ = p1
  8849. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Frem--
  8850. (*Txcb_window_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8851. p1 = i + 12
  8852. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8853. }
  8854. func Xxcb_window_end(tls *libc.TLS, i Txcb_window_iterator_t) (r Txcb_generic_iterator_t) {
  8855. var ret Txcb_generic_iterator_t
  8856. _ = ret
  8857. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8858. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8859. ret.Frem = 0
  8860. return ret
  8861. }
  8862. func Xxcb_pixmap_next(tls *libc.TLS, i uintptr) {
  8863. var p1 uintptr
  8864. _ = p1
  8865. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Frem--
  8866. (*Txcb_pixmap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8867. p1 = i + 12
  8868. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8869. }
  8870. func Xxcb_pixmap_end(tls *libc.TLS, i Txcb_pixmap_iterator_t) (r Txcb_generic_iterator_t) {
  8871. var ret Txcb_generic_iterator_t
  8872. _ = ret
  8873. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8874. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8875. ret.Frem = 0
  8876. return ret
  8877. }
  8878. func Xxcb_cursor_next(tls *libc.TLS, i uintptr) {
  8879. var p1 uintptr
  8880. _ = p1
  8881. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Frem--
  8882. (*Txcb_cursor_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8883. p1 = i + 12
  8884. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8885. }
  8886. func Xxcb_cursor_end(tls *libc.TLS, i Txcb_cursor_iterator_t) (r Txcb_generic_iterator_t) {
  8887. var ret Txcb_generic_iterator_t
  8888. _ = ret
  8889. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8890. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8891. ret.Frem = 0
  8892. return ret
  8893. }
  8894. func Xxcb_font_next(tls *libc.TLS, i uintptr) {
  8895. var p1 uintptr
  8896. _ = p1
  8897. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Frem--
  8898. (*Txcb_font_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8899. p1 = i + 12
  8900. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8901. }
  8902. func Xxcb_font_end(tls *libc.TLS, i Txcb_font_iterator_t) (r Txcb_generic_iterator_t) {
  8903. var ret Txcb_generic_iterator_t
  8904. _ = ret
  8905. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8906. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8907. ret.Frem = 0
  8908. return ret
  8909. }
  8910. func Xxcb_gcontext_next(tls *libc.TLS, i uintptr) {
  8911. var p1 uintptr
  8912. _ = p1
  8913. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Frem--
  8914. (*Txcb_gcontext_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8915. p1 = i + 12
  8916. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8917. }
  8918. func Xxcb_gcontext_end(tls *libc.TLS, i Txcb_gcontext_iterator_t) (r Txcb_generic_iterator_t) {
  8919. var ret Txcb_generic_iterator_t
  8920. _ = ret
  8921. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8922. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8923. ret.Frem = 0
  8924. return ret
  8925. }
  8926. func Xxcb_colormap_next(tls *libc.TLS, i uintptr) {
  8927. var p1 uintptr
  8928. _ = p1
  8929. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Frem--
  8930. (*Txcb_colormap_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8931. p1 = i + 12
  8932. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8933. }
  8934. func Xxcb_colormap_end(tls *libc.TLS, i Txcb_colormap_iterator_t) (r Txcb_generic_iterator_t) {
  8935. var ret Txcb_generic_iterator_t
  8936. _ = ret
  8937. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8938. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8939. ret.Frem = 0
  8940. return ret
  8941. }
  8942. func Xxcb_atom_next(tls *libc.TLS, i uintptr) {
  8943. var p1 uintptr
  8944. _ = p1
  8945. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Frem--
  8946. (*Txcb_atom_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8947. p1 = i + 12
  8948. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8949. }
  8950. func Xxcb_atom_end(tls *libc.TLS, i Txcb_atom_iterator_t) (r Txcb_generic_iterator_t) {
  8951. var ret Txcb_generic_iterator_t
  8952. _ = ret
  8953. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8954. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8955. ret.Frem = 0
  8956. return ret
  8957. }
  8958. func Xxcb_drawable_next(tls *libc.TLS, i uintptr) {
  8959. var p1 uintptr
  8960. _ = p1
  8961. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Frem--
  8962. (*Txcb_drawable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8963. p1 = i + 12
  8964. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8965. }
  8966. func Xxcb_drawable_end(tls *libc.TLS, i Txcb_drawable_iterator_t) (r Txcb_generic_iterator_t) {
  8967. var ret Txcb_generic_iterator_t
  8968. _ = ret
  8969. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8970. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8971. ret.Frem = 0
  8972. return ret
  8973. }
  8974. func Xxcb_fontable_next(tls *libc.TLS, i uintptr) {
  8975. var p1 uintptr
  8976. _ = p1
  8977. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Frem--
  8978. (*Txcb_fontable_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8979. p1 = i + 12
  8980. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8981. }
  8982. func Xxcb_fontable_end(tls *libc.TLS, i Txcb_fontable_iterator_t) (r Txcb_generic_iterator_t) {
  8983. var ret Txcb_generic_iterator_t
  8984. _ = ret
  8985. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  8986. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  8987. ret.Frem = 0
  8988. return ret
  8989. }
  8990. func Xxcb_bool32_next(tls *libc.TLS, i uintptr) {
  8991. var p1 uintptr
  8992. _ = p1
  8993. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Frem--
  8994. (*Txcb_bool32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  8995. p1 = i + 12
  8996. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  8997. }
  8998. func Xxcb_bool32_end(tls *libc.TLS, i Txcb_bool32_iterator_t) (r Txcb_generic_iterator_t) {
  8999. var ret Txcb_generic_iterator_t
  9000. _ = ret
  9001. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9002. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9003. ret.Frem = 0
  9004. return ret
  9005. }
  9006. func Xxcb_visualid_next(tls *libc.TLS, i uintptr) {
  9007. var p1 uintptr
  9008. _ = p1
  9009. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Frem--
  9010. (*Txcb_visualid_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  9011. p1 = i + 12
  9012. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  9013. }
  9014. func Xxcb_visualid_end(tls *libc.TLS, i Txcb_visualid_iterator_t) (r Txcb_generic_iterator_t) {
  9015. var ret Txcb_generic_iterator_t
  9016. _ = ret
  9017. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9018. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9019. ret.Frem = 0
  9020. return ret
  9021. }
  9022. func Xxcb_timestamp_next(tls *libc.TLS, i uintptr) {
  9023. var p1 uintptr
  9024. _ = p1
  9025. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Frem--
  9026. (*Txcb_timestamp_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  9027. p1 = i + 12
  9028. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  9029. }
  9030. func Xxcb_timestamp_end(tls *libc.TLS, i Txcb_timestamp_iterator_t) (r Txcb_generic_iterator_t) {
  9031. var ret Txcb_generic_iterator_t
  9032. _ = ret
  9033. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9034. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9035. ret.Frem = 0
  9036. return ret
  9037. }
  9038. func Xxcb_keysym_next(tls *libc.TLS, i uintptr) {
  9039. var p1 uintptr
  9040. _ = p1
  9041. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Frem--
  9042. (*Txcb_keysym_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  9043. p1 = i + 12
  9044. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  9045. }
  9046. func Xxcb_keysym_end(tls *libc.TLS, i Txcb_keysym_iterator_t) (r Txcb_generic_iterator_t) {
  9047. var ret Txcb_generic_iterator_t
  9048. _ = ret
  9049. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9050. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9051. ret.Frem = 0
  9052. return ret
  9053. }
  9054. func Xxcb_keycode_next(tls *libc.TLS, i uintptr) {
  9055. var p1 uintptr
  9056. _ = p1
  9057. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Frem--
  9058. (*Txcb_keycode_iterator_t)(unsafe.Pointer(i)).Fdata++
  9059. p1 = i + 12
  9060. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  9061. }
  9062. func Xxcb_keycode_end(tls *libc.TLS, i Txcb_keycode_iterator_t) (r Txcb_generic_iterator_t) {
  9063. var ret Txcb_generic_iterator_t
  9064. _ = ret
  9065. ret.Fdata = i.Fdata + uintptr(i.Frem)
  9066. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9067. ret.Frem = 0
  9068. return ret
  9069. }
  9070. func Xxcb_keycode32_next(tls *libc.TLS, i uintptr) {
  9071. var p1 uintptr
  9072. _ = p1
  9073. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Frem--
  9074. (*Txcb_keycode32_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  9075. p1 = i + 12
  9076. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  9077. }
  9078. func Xxcb_keycode32_end(tls *libc.TLS, i Txcb_keycode32_iterator_t) (r Txcb_generic_iterator_t) {
  9079. var ret Txcb_generic_iterator_t
  9080. _ = ret
  9081. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9082. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9083. ret.Frem = 0
  9084. return ret
  9085. }
  9086. func Xxcb_button_next(tls *libc.TLS, i uintptr) {
  9087. var p1 uintptr
  9088. _ = p1
  9089. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Frem--
  9090. (*Txcb_button_iterator_t)(unsafe.Pointer(i)).Fdata++
  9091. p1 = i + 12
  9092. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(1))
  9093. }
  9094. func Xxcb_button_end(tls *libc.TLS, i Txcb_button_iterator_t) (r Txcb_generic_iterator_t) {
  9095. var ret Txcb_generic_iterator_t
  9096. _ = ret
  9097. ret.Fdata = i.Fdata + uintptr(i.Frem)
  9098. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9099. ret.Frem = 0
  9100. return ret
  9101. }
  9102. func Xxcb_point_next(tls *libc.TLS, i uintptr) {
  9103. var p1 uintptr
  9104. _ = p1
  9105. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Frem--
  9106. (*Txcb_point_iterator_t)(unsafe.Pointer(i)).Fdata += 4
  9107. p1 = i + 12
  9108. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(4))
  9109. }
  9110. func Xxcb_point_end(tls *libc.TLS, i Txcb_point_iterator_t) (r Txcb_generic_iterator_t) {
  9111. var ret Txcb_generic_iterator_t
  9112. _ = ret
  9113. ret.Fdata = i.Fdata + uintptr(i.Frem)*4
  9114. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9115. ret.Frem = 0
  9116. return ret
  9117. }
  9118. func Xxcb_rectangle_next(tls *libc.TLS, i uintptr) {
  9119. var p1 uintptr
  9120. _ = p1
  9121. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Frem--
  9122. (*Txcb_rectangle_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  9123. p1 = i + 12
  9124. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  9125. }
  9126. func Xxcb_rectangle_end(tls *libc.TLS, i Txcb_rectangle_iterator_t) (r Txcb_generic_iterator_t) {
  9127. var ret Txcb_generic_iterator_t
  9128. _ = ret
  9129. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9130. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9131. ret.Frem = 0
  9132. return ret
  9133. }
  9134. func Xxcb_arc_next(tls *libc.TLS, i uintptr) {
  9135. var p1 uintptr
  9136. _ = p1
  9137. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Frem--
  9138. (*Txcb_arc_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  9139. p1 = i + 12
  9140. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  9141. }
  9142. func Xxcb_arc_end(tls *libc.TLS, i Txcb_arc_iterator_t) (r Txcb_generic_iterator_t) {
  9143. var ret Txcb_generic_iterator_t
  9144. _ = ret
  9145. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  9146. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9147. ret.Frem = 0
  9148. return ret
  9149. }
  9150. func Xxcb_format_next(tls *libc.TLS, i uintptr) {
  9151. var p1 uintptr
  9152. _ = p1
  9153. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Frem--
  9154. (*Txcb_format_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  9155. p1 = i + 12
  9156. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  9157. }
  9158. func Xxcb_format_end(tls *libc.TLS, i Txcb_format_iterator_t) (r Txcb_generic_iterator_t) {
  9159. var ret Txcb_generic_iterator_t
  9160. _ = ret
  9161. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  9162. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9163. ret.Frem = 0
  9164. return ret
  9165. }
  9166. func Xxcb_visualtype_next(tls *libc.TLS, i uintptr) {
  9167. var p1 uintptr
  9168. _ = p1
  9169. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Frem--
  9170. (*Txcb_visualtype_iterator_t)(unsafe.Pointer(i)).Fdata += 24
  9171. p1 = i + 12
  9172. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(24))
  9173. }
  9174. func Xxcb_visualtype_end(tls *libc.TLS, i Txcb_visualtype_iterator_t) (r Txcb_generic_iterator_t) {
  9175. var ret Txcb_generic_iterator_t
  9176. _ = ret
  9177. ret.Fdata = i.Fdata + uintptr(i.Frem)*24
  9178. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9179. ret.Frem = 0
  9180. return ret
  9181. }
  9182. func Xxcb_depth_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9183. var _aux, xcb_tmp uintptr
  9184. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9185. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9186. xcb_tmp = _buffer
  9187. _aux = _buffer
  9188. xcb_buffer_len = uint32(0)
  9189. xcb_block_len = uint32(0)
  9190. xcb_pad = uint32(0)
  9191. xcb_align_to = uint32(0)
  9192. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9193. xcb_tmp += uintptr(xcb_block_len)
  9194. xcb_buffer_len += xcb_block_len
  9195. xcb_block_len = uint32(0)
  9196. /* visuals */
  9197. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_depth_t)(unsafe.Pointer(_aux)).Fvisuals_len)*libc.Uint64FromInt64(24))
  9198. xcb_tmp += uintptr(xcb_block_len)
  9199. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9200. /* insert padding */
  9201. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9202. xcb_buffer_len += xcb_block_len + xcb_pad
  9203. if uint32(0) != xcb_pad {
  9204. xcb_tmp += uintptr(xcb_pad)
  9205. xcb_pad = uint32(0)
  9206. }
  9207. xcb_block_len = uint32(0)
  9208. return libc.Int32FromUint32(xcb_buffer_len)
  9209. }
  9210. func Xxcb_depth_visuals(tls *libc.TLS, R uintptr) (r uintptr) {
  9211. return R + libc.UintptrFromInt32(1)*8
  9212. }
  9213. func Xxcb_depth_visuals_length(tls *libc.TLS, R uintptr) (r int32) {
  9214. return libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9215. }
  9216. func Xxcb_depth_visuals_iterator(tls *libc.TLS, R uintptr) (r Txcb_visualtype_iterator_t) {
  9217. var i Txcb_visualtype_iterator_t
  9218. _ = i
  9219. i.Fdata = R + libc.UintptrFromInt32(1)*8
  9220. i.Frem = libc.Int32FromUint16((*Txcb_depth_t)(unsafe.Pointer(R)).Fvisuals_len)
  9221. i.Findex = int32(int64(i.Fdata) - int64(R))
  9222. return i
  9223. }
  9224. func Xxcb_depth_next(tls *libc.TLS, i uintptr) {
  9225. var R uintptr
  9226. var child Txcb_generic_iterator_t
  9227. _, _ = R, child
  9228. R = (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata
  9229. child.Fdata = R + uintptr(Xxcb_depth_sizeof(tls, R))
  9230. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata))
  9231. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Frem--
  9232. (*Txcb_depth_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9233. }
  9234. func Xxcb_depth_end(tls *libc.TLS, _i Txcb_depth_iterator_t) (r Txcb_generic_iterator_t) {
  9235. bp := tls.Alloc(16)
  9236. defer tls.Free(16)
  9237. *(*Txcb_depth_iterator_t)(unsafe.Pointer(bp)) = _i
  9238. var ret Txcb_generic_iterator_t
  9239. _ = ret
  9240. for (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9241. Xxcb_depth_next(tls, bp)
  9242. }
  9243. ret.Fdata = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Fdata
  9244. ret.Frem = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Frem
  9245. ret.Findex = (*(*Txcb_depth_iterator_t)(unsafe.Pointer(bp))).Findex
  9246. return ret
  9247. }
  9248. func Xxcb_screen_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9249. var _aux, xcb_tmp uintptr
  9250. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9251. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9252. xcb_tmp = _buffer
  9253. _aux = _buffer
  9254. xcb_buffer_len = uint32(0)
  9255. xcb_block_len = uint32(0)
  9256. xcb_pad = uint32(0)
  9257. xcb_align_to = uint32(0)
  9258. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9259. xcb_tmp += uintptr(xcb_block_len)
  9260. xcb_buffer_len += xcb_block_len
  9261. xcb_block_len = uint32(0)
  9262. /* allowed_depths */
  9263. i = uint32(0)
  9264. for {
  9265. if !(i < uint32((*Txcb_screen_t)(unsafe.Pointer(_aux)).Fallowed_depths_len)) {
  9266. break
  9267. }
  9268. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_depth_sizeof(tls, xcb_tmp))
  9269. xcb_block_len += xcb_tmp_len
  9270. xcb_tmp += uintptr(xcb_tmp_len)
  9271. goto _1
  9272. _1:
  9273. ;
  9274. i++
  9275. }
  9276. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  9277. /* insert padding */
  9278. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9279. xcb_buffer_len += xcb_block_len + xcb_pad
  9280. if uint32(0) != xcb_pad {
  9281. xcb_tmp += uintptr(xcb_pad)
  9282. xcb_pad = uint32(0)
  9283. }
  9284. xcb_block_len = uint32(0)
  9285. return libc.Int32FromUint32(xcb_buffer_len)
  9286. }
  9287. func Xxcb_screen_allowed_depths_length(tls *libc.TLS, R uintptr) (r int32) {
  9288. return libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9289. }
  9290. func Xxcb_screen_allowed_depths_iterator(tls *libc.TLS, R uintptr) (r Txcb_depth_iterator_t) {
  9291. var i Txcb_depth_iterator_t
  9292. _ = i
  9293. i.Fdata = R + libc.UintptrFromInt32(1)*40
  9294. i.Frem = libc.Int32FromUint8((*Txcb_screen_t)(unsafe.Pointer(R)).Fallowed_depths_len)
  9295. i.Findex = int32(int64(i.Fdata) - int64(R))
  9296. return i
  9297. }
  9298. func Xxcb_screen_next(tls *libc.TLS, i uintptr) {
  9299. var R uintptr
  9300. var child Txcb_generic_iterator_t
  9301. _, _ = R, child
  9302. R = (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata
  9303. child.Fdata = R + uintptr(Xxcb_screen_sizeof(tls, R))
  9304. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata))
  9305. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Frem--
  9306. (*Txcb_screen_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9307. }
  9308. func Xxcb_screen_end(tls *libc.TLS, _i Txcb_screen_iterator_t) (r Txcb_generic_iterator_t) {
  9309. bp := tls.Alloc(16)
  9310. defer tls.Free(16)
  9311. *(*Txcb_screen_iterator_t)(unsafe.Pointer(bp)) = _i
  9312. var ret Txcb_generic_iterator_t
  9313. _ = ret
  9314. for (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9315. Xxcb_screen_next(tls, bp)
  9316. }
  9317. ret.Fdata = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Fdata
  9318. ret.Frem = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Frem
  9319. ret.Findex = (*(*Txcb_screen_iterator_t)(unsafe.Pointer(bp))).Findex
  9320. return ret
  9321. }
  9322. func Xxcb_setup_request_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9323. var _aux, xcb_tmp uintptr
  9324. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9325. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9326. xcb_tmp = _buffer
  9327. _aux = _buffer
  9328. xcb_buffer_len = uint32(0)
  9329. xcb_block_len = uint32(0)
  9330. xcb_pad = uint32(0)
  9331. xcb_align_to = uint32(0)
  9332. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  9333. xcb_tmp += uintptr(xcb_block_len)
  9334. xcb_buffer_len += xcb_block_len
  9335. xcb_block_len = uint32(0)
  9336. /* authorization_protocol_name */
  9337. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_name_len)*libc.Uint64FromInt64(1))
  9338. xcb_tmp += uintptr(xcb_block_len)
  9339. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9340. xcb_align_to = uint32(4)
  9341. /* insert padding */
  9342. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9343. xcb_buffer_len += xcb_block_len + xcb_pad
  9344. if uint32(0) != xcb_pad {
  9345. xcb_tmp += uintptr(xcb_pad)
  9346. xcb_pad = uint32(0)
  9347. }
  9348. xcb_block_len = uint32(0)
  9349. /* insert padding */
  9350. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9351. xcb_buffer_len += xcb_block_len + xcb_pad
  9352. if uint32(0) != xcb_pad {
  9353. xcb_tmp += uintptr(xcb_pad)
  9354. xcb_pad = uint32(0)
  9355. }
  9356. xcb_block_len = uint32(0)
  9357. /* authorization_protocol_data */
  9358. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_request_t)(unsafe.Pointer(_aux)).Fauthorization_protocol_data_len)*libc.Uint64FromInt64(1))
  9359. xcb_tmp += uintptr(xcb_block_len)
  9360. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9361. xcb_align_to = uint32(4)
  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. /* insert padding */
  9371. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9372. xcb_buffer_len += xcb_block_len + xcb_pad
  9373. if uint32(0) != xcb_pad {
  9374. xcb_tmp += uintptr(xcb_pad)
  9375. xcb_pad = uint32(0)
  9376. }
  9377. xcb_block_len = uint32(0)
  9378. return libc.Int32FromUint32(xcb_buffer_len)
  9379. }
  9380. func Xxcb_setup_request_authorization_protocol_name(tls *libc.TLS, R uintptr) (r uintptr) {
  9381. return R + libc.UintptrFromInt32(1)*12
  9382. }
  9383. func Xxcb_setup_request_authorization_protocol_name_length(tls *libc.TLS, R uintptr) (r int32) {
  9384. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9385. }
  9386. func Xxcb_setup_request_authorization_protocol_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9387. var i Txcb_generic_iterator_t
  9388. _ = i
  9389. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_name_len)
  9390. i.Frem = 0
  9391. i.Findex = int32(int64(i.Fdata) - int64(R))
  9392. return i
  9393. }
  9394. func Xxcb_setup_request_authorization_protocol_data(tls *libc.TLS, R uintptr) (r uintptr) {
  9395. var prev Txcb_generic_iterator_t
  9396. _ = prev
  9397. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9398. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9399. }
  9400. func Xxcb_setup_request_authorization_protocol_data_length(tls *libc.TLS, R uintptr) (r int32) {
  9401. return libc.Int32FromUint16((*Txcb_setup_request_t)(unsafe.Pointer(R)).Fauthorization_protocol_data_len)
  9402. }
  9403. func Xxcb_setup_request_authorization_protocol_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9404. var i, prev Txcb_generic_iterator_t
  9405. _, _ = i, prev
  9406. prev = Xxcb_setup_request_authorization_protocol_name_end(tls, R)
  9407. 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)
  9408. i.Frem = 0
  9409. i.Findex = int32(int64(i.Fdata) - int64(R))
  9410. return i
  9411. }
  9412. func Xxcb_setup_request_next(tls *libc.TLS, i uintptr) {
  9413. var R uintptr
  9414. var child Txcb_generic_iterator_t
  9415. _, _ = R, child
  9416. R = (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata
  9417. child.Fdata = R + uintptr(Xxcb_setup_request_sizeof(tls, R))
  9418. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata))
  9419. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Frem--
  9420. (*Txcb_setup_request_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9421. }
  9422. func Xxcb_setup_request_end(tls *libc.TLS, _i Txcb_setup_request_iterator_t) (r Txcb_generic_iterator_t) {
  9423. bp := tls.Alloc(16)
  9424. defer tls.Free(16)
  9425. *(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp)) = _i
  9426. var ret Txcb_generic_iterator_t
  9427. _ = ret
  9428. for (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9429. Xxcb_setup_request_next(tls, bp)
  9430. }
  9431. ret.Fdata = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Fdata
  9432. ret.Frem = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Frem
  9433. ret.Findex = (*(*Txcb_setup_request_iterator_t)(unsafe.Pointer(bp))).Findex
  9434. return ret
  9435. }
  9436. func Xxcb_setup_failed_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9437. var _aux, xcb_tmp uintptr
  9438. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9439. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9440. xcb_tmp = _buffer
  9441. _aux = _buffer
  9442. xcb_buffer_len = uint32(0)
  9443. xcb_block_len = uint32(0)
  9444. xcb_pad = uint32(0)
  9445. xcb_align_to = uint32(0)
  9446. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9447. xcb_tmp += uintptr(xcb_block_len)
  9448. xcb_buffer_len += xcb_block_len
  9449. xcb_block_len = uint32(0)
  9450. /* reason */
  9451. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_failed_t)(unsafe.Pointer(_aux)).Freason_len)*libc.Uint64FromInt64(1))
  9452. xcb_tmp += uintptr(xcb_block_len)
  9453. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9454. /* insert padding */
  9455. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9456. xcb_buffer_len += xcb_block_len + xcb_pad
  9457. if uint32(0) != xcb_pad {
  9458. xcb_tmp += uintptr(xcb_pad)
  9459. xcb_pad = uint32(0)
  9460. }
  9461. xcb_block_len = uint32(0)
  9462. return libc.Int32FromUint32(xcb_buffer_len)
  9463. }
  9464. func Xxcb_setup_failed_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9465. return R + libc.UintptrFromInt32(1)*8
  9466. }
  9467. func Xxcb_setup_failed_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9468. return libc.Int32FromUint8((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9469. }
  9470. func Xxcb_setup_failed_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9471. var i Txcb_generic_iterator_t
  9472. _ = i
  9473. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_setup_failed_t)(unsafe.Pointer(R)).Freason_len)
  9474. i.Frem = 0
  9475. i.Findex = int32(int64(i.Fdata) - int64(R))
  9476. return i
  9477. }
  9478. func Xxcb_setup_failed_next(tls *libc.TLS, i uintptr) {
  9479. var R uintptr
  9480. var child Txcb_generic_iterator_t
  9481. _, _ = R, child
  9482. R = (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata
  9483. child.Fdata = R + uintptr(Xxcb_setup_failed_sizeof(tls, R))
  9484. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata))
  9485. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Frem--
  9486. (*Txcb_setup_failed_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9487. }
  9488. func Xxcb_setup_failed_end(tls *libc.TLS, _i Txcb_setup_failed_iterator_t) (r Txcb_generic_iterator_t) {
  9489. bp := tls.Alloc(16)
  9490. defer tls.Free(16)
  9491. *(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp)) = _i
  9492. var ret Txcb_generic_iterator_t
  9493. _ = ret
  9494. for (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9495. Xxcb_setup_failed_next(tls, bp)
  9496. }
  9497. ret.Fdata = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Fdata
  9498. ret.Frem = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Frem
  9499. ret.Findex = (*(*Txcb_setup_failed_iterator_t)(unsafe.Pointer(bp))).Findex
  9500. return ret
  9501. }
  9502. func Xxcb_setup_authenticate_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9503. var _aux, xcb_tmp uintptr
  9504. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  9505. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  9506. xcb_tmp = _buffer
  9507. _aux = _buffer
  9508. xcb_buffer_len = uint32(0)
  9509. xcb_block_len = uint32(0)
  9510. xcb_pad = uint32(0)
  9511. xcb_align_to = uint32(0)
  9512. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  9513. xcb_tmp += uintptr(xcb_block_len)
  9514. xcb_buffer_len += xcb_block_len
  9515. xcb_block_len = uint32(0)
  9516. /* reason */
  9517. 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))
  9518. xcb_tmp += uintptr(xcb_block_len)
  9519. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9520. /* insert padding */
  9521. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9522. xcb_buffer_len += xcb_block_len + xcb_pad
  9523. if uint32(0) != xcb_pad {
  9524. xcb_tmp += uintptr(xcb_pad)
  9525. xcb_pad = uint32(0)
  9526. }
  9527. xcb_block_len = uint32(0)
  9528. return libc.Int32FromUint32(xcb_buffer_len)
  9529. }
  9530. func Xxcb_setup_authenticate_reason(tls *libc.TLS, R uintptr) (r uintptr) {
  9531. return R + libc.UintptrFromInt32(1)*8
  9532. }
  9533. func Xxcb_setup_authenticate_reason_length(tls *libc.TLS, R uintptr) (r int32) {
  9534. return libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength) * int32(4)
  9535. }
  9536. func Xxcb_setup_authenticate_reason_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9537. var i Txcb_generic_iterator_t
  9538. _ = i
  9539. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr(libc.Int32FromUint16((*Txcb_setup_authenticate_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))
  9540. i.Frem = 0
  9541. i.Findex = int32(int64(i.Fdata) - int64(R))
  9542. return i
  9543. }
  9544. func Xxcb_setup_authenticate_next(tls *libc.TLS, i uintptr) {
  9545. var R uintptr
  9546. var child Txcb_generic_iterator_t
  9547. _, _ = R, child
  9548. R = (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata
  9549. child.Fdata = R + uintptr(Xxcb_setup_authenticate_sizeof(tls, R))
  9550. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata))
  9551. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Frem--
  9552. (*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9553. }
  9554. func Xxcb_setup_authenticate_end(tls *libc.TLS, _i Txcb_setup_authenticate_iterator_t) (r Txcb_generic_iterator_t) {
  9555. bp := tls.Alloc(16)
  9556. defer tls.Free(16)
  9557. *(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp)) = _i
  9558. var ret Txcb_generic_iterator_t
  9559. _ = ret
  9560. for (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9561. Xxcb_setup_authenticate_next(tls, bp)
  9562. }
  9563. ret.Fdata = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Fdata
  9564. ret.Frem = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Frem
  9565. ret.Findex = (*(*Txcb_setup_authenticate_iterator_t)(unsafe.Pointer(bp))).Findex
  9566. return ret
  9567. }
  9568. func Xxcb_setup_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  9569. var _aux, xcb_tmp uintptr
  9570. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  9571. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  9572. xcb_tmp = _buffer
  9573. _aux = _buffer
  9574. xcb_buffer_len = uint32(0)
  9575. xcb_block_len = uint32(0)
  9576. xcb_pad = uint32(0)
  9577. xcb_align_to = uint32(0)
  9578. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(40))
  9579. xcb_tmp += uintptr(xcb_block_len)
  9580. xcb_buffer_len += xcb_block_len
  9581. xcb_block_len = uint32(0)
  9582. /* vendor */
  9583. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fvendor_len)*libc.Uint64FromInt64(1))
  9584. xcb_tmp += uintptr(xcb_block_len)
  9585. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9586. xcb_align_to = uint32(4)
  9587. /* insert padding */
  9588. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9589. xcb_buffer_len += xcb_block_len + xcb_pad
  9590. if uint32(0) != xcb_pad {
  9591. xcb_tmp += uintptr(xcb_pad)
  9592. xcb_pad = uint32(0)
  9593. }
  9594. xcb_block_len = uint32(0)
  9595. /* insert padding */
  9596. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9597. xcb_buffer_len += xcb_block_len + xcb_pad
  9598. if uint32(0) != xcb_pad {
  9599. xcb_tmp += uintptr(xcb_pad)
  9600. xcb_pad = uint32(0)
  9601. }
  9602. xcb_block_len = uint32(0)
  9603. /* pixmap_formats */
  9604. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_setup_t)(unsafe.Pointer(_aux)).Fpixmap_formats_len)*libc.Uint64FromInt64(8))
  9605. xcb_tmp += uintptr(xcb_block_len)
  9606. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  9607. /* insert padding */
  9608. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9609. xcb_buffer_len += xcb_block_len + xcb_pad
  9610. if uint32(0) != xcb_pad {
  9611. xcb_tmp += uintptr(xcb_pad)
  9612. xcb_pad = uint32(0)
  9613. }
  9614. xcb_block_len = uint32(0)
  9615. /* roots */
  9616. i = uint32(0)
  9617. for {
  9618. if !(i < uint32((*Txcb_setup_t)(unsafe.Pointer(_aux)).Froots_len)) {
  9619. break
  9620. }
  9621. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_screen_sizeof(tls, xcb_tmp))
  9622. xcb_block_len += xcb_tmp_len
  9623. xcb_tmp += uintptr(xcb_tmp_len)
  9624. goto _1
  9625. _1:
  9626. ;
  9627. i++
  9628. }
  9629. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9630. /* insert padding */
  9631. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  9632. xcb_buffer_len += xcb_block_len + xcb_pad
  9633. if uint32(0) != xcb_pad {
  9634. xcb_tmp += uintptr(xcb_pad)
  9635. xcb_pad = uint32(0)
  9636. }
  9637. xcb_block_len = uint32(0)
  9638. return libc.Int32FromUint32(xcb_buffer_len)
  9639. }
  9640. func Xxcb_setup_vendor(tls *libc.TLS, R uintptr) (r uintptr) {
  9641. return R + libc.UintptrFromInt32(1)*40
  9642. }
  9643. func Xxcb_setup_vendor_length(tls *libc.TLS, R uintptr) (r int32) {
  9644. return libc.Int32FromUint16((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9645. }
  9646. func Xxcb_setup_vendor_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  9647. var i Txcb_generic_iterator_t
  9648. _ = i
  9649. i.Fdata = R + libc.UintptrFromInt32(1)*40 + uintptr((*Txcb_setup_t)(unsafe.Pointer(R)).Fvendor_len)
  9650. i.Frem = 0
  9651. i.Findex = int32(int64(i.Fdata) - int64(R))
  9652. return i
  9653. }
  9654. func Xxcb_setup_pixmap_formats(tls *libc.TLS, R uintptr) (r uintptr) {
  9655. var prev Txcb_generic_iterator_t
  9656. _ = prev
  9657. prev = Xxcb_setup_vendor_end(tls, R)
  9658. return prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1))) + libc.UintptrFromInt32(0)
  9659. }
  9660. func Xxcb_setup_pixmap_formats_length(tls *libc.TLS, R uintptr) (r int32) {
  9661. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9662. }
  9663. func Xxcb_setup_pixmap_formats_iterator(tls *libc.TLS, R uintptr) (r Txcb_format_iterator_t) {
  9664. var i Txcb_format_iterator_t
  9665. var prev Txcb_generic_iterator_t
  9666. _, _ = i, prev
  9667. prev = Xxcb_setup_vendor_end(tls, R)
  9668. i.Fdata = prev.Fdata + uintptr(-prev.Findex&(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)))
  9669. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Fpixmap_formats_len)
  9670. i.Findex = int32(int64(i.Fdata) - int64(R))
  9671. return i
  9672. }
  9673. func Xxcb_setup_roots_length(tls *libc.TLS, R uintptr) (r int32) {
  9674. return libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9675. }
  9676. func Xxcb_setup_roots_iterator(tls *libc.TLS, R uintptr) (r Txcb_screen_iterator_t) {
  9677. var i Txcb_screen_iterator_t
  9678. var prev Txcb_generic_iterator_t
  9679. _, _ = i, prev
  9680. prev = Xxcb_format_end(tls, Xxcb_setup_pixmap_formats_iterator(tls, R))
  9681. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  9682. i.Frem = libc.Int32FromUint8((*Txcb_setup_t)(unsafe.Pointer(R)).Froots_len)
  9683. i.Findex = int32(int64(i.Fdata) - int64(R))
  9684. return i
  9685. }
  9686. func Xxcb_setup_next(tls *libc.TLS, i uintptr) {
  9687. var R uintptr
  9688. var child Txcb_generic_iterator_t
  9689. _, _ = R, child
  9690. R = (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata
  9691. child.Fdata = R + uintptr(Xxcb_setup_sizeof(tls, R))
  9692. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata))
  9693. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Frem--
  9694. (*Txcb_setup_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  9695. }
  9696. func Xxcb_setup_end(tls *libc.TLS, _i Txcb_setup_iterator_t) (r Txcb_generic_iterator_t) {
  9697. bp := tls.Alloc(16)
  9698. defer tls.Free(16)
  9699. *(*Txcb_setup_iterator_t)(unsafe.Pointer(bp)) = _i
  9700. var ret Txcb_generic_iterator_t
  9701. _ = ret
  9702. for (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  9703. Xxcb_setup_next(tls, bp)
  9704. }
  9705. ret.Fdata = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Fdata
  9706. ret.Frem = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Frem
  9707. ret.Findex = (*(*Txcb_setup_iterator_t)(unsafe.Pointer(bp))).Findex
  9708. return ret
  9709. }
  9710. func Xxcb_client_message_data_next(tls *libc.TLS, i uintptr) {
  9711. var p1 uintptr
  9712. _ = p1
  9713. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Frem--
  9714. (*Txcb_client_message_data_iterator_t)(unsafe.Pointer(i)).Fdata += 20
  9715. p1 = i + 12
  9716. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(20))
  9717. }
  9718. func Xxcb_client_message_data_end(tls *libc.TLS, i Txcb_client_message_data_iterator_t) (r Txcb_generic_iterator_t) {
  9719. var ret Txcb_generic_iterator_t
  9720. _ = ret
  9721. ret.Fdata = i.Fdata + uintptr(i.Frem)*20
  9722. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  9723. ret.Frem = 0
  9724. return ret
  9725. }
  9726. func Xxcb_create_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9727. bp := tls.Alloc(16)
  9728. defer tls.Free(16)
  9729. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  9730. var xcb_out, xcb_tmp uintptr
  9731. var xcb_parts [16]Tiovec
  9732. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  9733. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  9734. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  9735. xcb_buffer_len = uint32(0)
  9736. xcb_align_to = uint32(0)
  9737. xcb_padding_offset = uint32(0)
  9738. xcb_pad = uint32(0)
  9739. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  9740. xcb_parts_idx = uint32(0)
  9741. xcb_block_len = uint32(0)
  9742. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9743. /* xcb_create_window_value_list_t.background_pixmap */
  9744. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  9745. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9746. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9747. xcb_parts_idx++
  9748. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9749. }
  9750. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9751. /* xcb_create_window_value_list_t.background_pixel */
  9752. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  9753. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9754. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9755. xcb_parts_idx++
  9756. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9757. }
  9758. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9759. /* xcb_create_window_value_list_t.border_pixmap */
  9760. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  9761. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9762. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9763. xcb_parts_idx++
  9764. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9765. }
  9766. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9767. /* xcb_create_window_value_list_t.border_pixel */
  9768. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  9769. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9770. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9771. xcb_parts_idx++
  9772. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9773. }
  9774. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9775. /* xcb_create_window_value_list_t.bit_gravity */
  9776. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  9777. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9778. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9779. xcb_parts_idx++
  9780. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9781. }
  9782. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9783. /* xcb_create_window_value_list_t.win_gravity */
  9784. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  9785. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9786. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9787. xcb_parts_idx++
  9788. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9789. }
  9790. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9791. /* xcb_create_window_value_list_t.backing_store */
  9792. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  9793. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9794. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9795. xcb_parts_idx++
  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. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  9801. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9802. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9803. xcb_parts_idx++
  9804. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9805. }
  9806. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9807. /* xcb_create_window_value_list_t.backing_pixel */
  9808. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  9809. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9810. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9811. xcb_parts_idx++
  9812. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9813. }
  9814. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9815. /* xcb_create_window_value_list_t.override_redirect */
  9816. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  9817. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9818. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9819. xcb_parts_idx++
  9820. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9821. }
  9822. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9823. /* xcb_create_window_value_list_t.save_under */
  9824. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  9825. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9826. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9827. xcb_parts_idx++
  9828. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9829. }
  9830. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9831. /* xcb_create_window_value_list_t.event_mask */
  9832. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  9833. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9834. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9835. xcb_parts_idx++
  9836. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9837. }
  9838. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9839. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9840. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  9841. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9842. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9843. xcb_parts_idx++
  9844. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9845. }
  9846. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9847. /* xcb_create_window_value_list_t.colormap */
  9848. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  9849. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9850. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9851. xcb_parts_idx++
  9852. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9853. }
  9854. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  9855. /* xcb_create_window_value_list_t.cursor */
  9856. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  9857. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9858. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  9859. xcb_parts_idx++
  9860. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9861. }
  9862. /* insert padding */
  9863. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  9864. xcb_buffer_len += xcb_block_len + xcb_pad
  9865. if uint32(0) != xcb_pad {
  9866. xcb_parts[xcb_parts_idx].Fiov_base = bp
  9867. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  9868. xcb_parts_idx++
  9869. xcb_pad = uint32(0)
  9870. }
  9871. xcb_block_len = uint32(0)
  9872. xcb_padding_offset = uint32(0)
  9873. if libc.UintptrFromInt32(0) == xcb_out {
  9874. /* allocate memory */
  9875. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  9876. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  9877. }
  9878. xcb_tmp = xcb_out
  9879. i = uint32(0)
  9880. for {
  9881. if !(i < xcb_parts_idx) {
  9882. break
  9883. }
  9884. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  9885. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  9886. }
  9887. if uint64(0) != xcb_parts[i].Fiov_len {
  9888. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  9889. }
  9890. goto _1
  9891. _1:
  9892. ;
  9893. i++
  9894. }
  9895. return libc.Int32FromUint32(xcb_buffer_len)
  9896. }
  9897. func Xxcb_create_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  9898. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  9899. var xcb_tmp uintptr
  9900. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  9901. xcb_tmp = _buffer
  9902. xcb_buffer_len = uint32(0)
  9903. xcb_block_len = uint32(0)
  9904. xcb_pad = uint32(0)
  9905. xcb_align_to = uint32(0)
  9906. xcb_padding_offset = uint32(0)
  9907. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  9908. /* xcb_create_window_value_list_t.background_pixmap */
  9909. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9910. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9911. xcb_tmp += uintptr(4)
  9912. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9913. }
  9914. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  9915. /* xcb_create_window_value_list_t.background_pixel */
  9916. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9917. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9918. xcb_tmp += uintptr(4)
  9919. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9920. }
  9921. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  9922. /* xcb_create_window_value_list_t.border_pixmap */
  9923. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  9924. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9925. xcb_tmp += uintptr(4)
  9926. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9927. }
  9928. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  9929. /* xcb_create_window_value_list_t.border_pixel */
  9930. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9931. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9932. xcb_tmp += uintptr(4)
  9933. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9934. }
  9935. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  9936. /* xcb_create_window_value_list_t.bit_gravity */
  9937. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9938. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9939. xcb_tmp += uintptr(4)
  9940. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9941. }
  9942. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  9943. /* xcb_create_window_value_list_t.win_gravity */
  9944. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9945. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9946. xcb_tmp += uintptr(4)
  9947. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9948. }
  9949. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  9950. /* xcb_create_window_value_list_t.backing_store */
  9951. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9952. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9953. xcb_tmp += uintptr(4)
  9954. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9955. }
  9956. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  9957. /* xcb_create_window_value_list_t.backing_planes */
  9958. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9959. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9960. xcb_tmp += uintptr(4)
  9961. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9962. }
  9963. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  9964. /* xcb_create_window_value_list_t.backing_pixel */
  9965. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9966. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9967. xcb_tmp += uintptr(4)
  9968. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9969. }
  9970. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  9971. /* xcb_create_window_value_list_t.override_redirect */
  9972. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9973. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9974. xcb_tmp += uintptr(4)
  9975. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9976. }
  9977. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  9978. /* xcb_create_window_value_list_t.save_under */
  9979. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  9980. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9981. xcb_tmp += uintptr(4)
  9982. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9983. }
  9984. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  9985. /* xcb_create_window_value_list_t.event_mask */
  9986. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9987. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9988. xcb_tmp += uintptr(4)
  9989. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9990. }
  9991. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  9992. /* xcb_create_window_value_list_t.do_not_propogate_mask */
  9993. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  9994. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  9995. xcb_tmp += uintptr(4)
  9996. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  9997. }
  9998. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  9999. /* xcb_create_window_value_list_t.colormap */
  10000. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  10001. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10002. xcb_tmp += uintptr(4)
  10003. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10004. }
  10005. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10006. /* xcb_create_window_value_list_t.cursor */
  10007. (*Txcb_create_window_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  10008. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10009. xcb_tmp += uintptr(4)
  10010. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10011. }
  10012. /* insert padding */
  10013. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10014. xcb_buffer_len += xcb_block_len + xcb_pad
  10015. if uint32(0) != xcb_pad {
  10016. xcb_tmp += uintptr(xcb_pad)
  10017. xcb_pad = uint32(0)
  10018. }
  10019. xcb_block_len = uint32(0)
  10020. xcb_padding_offset = uint32(0)
  10021. return libc.Int32FromUint32(xcb_buffer_len)
  10022. }
  10023. func Xxcb_create_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  10024. bp := tls.Alloc(64)
  10025. defer tls.Free(64)
  10026. var _ /* _aux at bp+0 */ Txcb_create_window_value_list_t
  10027. return Xxcb_create_window_value_list_unpack(tls, _buffer, value_mask, bp)
  10028. }
  10029. func Xxcb_create_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10030. var _aux, xcb_tmp uintptr
  10031. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10032. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10033. xcb_tmp = _buffer
  10034. _aux = _buffer
  10035. xcb_buffer_len = uint32(0)
  10036. xcb_block_len = uint32(0)
  10037. xcb_pad = uint32(0)
  10038. xcb_align_to = uint32(0)
  10039. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  10040. xcb_tmp += uintptr(xcb_block_len)
  10041. xcb_buffer_len += xcb_block_len
  10042. xcb_block_len = uint32(0)
  10043. /* value_list */
  10044. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  10045. xcb_tmp += uintptr(xcb_block_len)
  10046. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  10047. /* insert padding */
  10048. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10049. xcb_buffer_len += xcb_block_len + xcb_pad
  10050. if uint32(0) != xcb_pad {
  10051. xcb_tmp += uintptr(xcb_pad)
  10052. xcb_pad = uint32(0)
  10053. }
  10054. xcb_block_len = uint32(0)
  10055. return libc.Int32FromUint32(xcb_buffer_len)
  10056. }
  10057. 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) {
  10058. bp := tls.Alloc(112)
  10059. defer tls.Free(112)
  10060. var xcb_ret Txcb_void_cookie_t
  10061. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10062. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10063. _ = xcb_ret
  10064. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10065. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10066. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10067. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10068. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10069. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10070. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10071. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10072. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10073. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10074. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10075. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10076. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10077. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10078. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10079. /* xcb_create_window_value_list_t value_list */
  10080. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10081. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  10082. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req)))
  10083. return xcb_ret
  10084. }
  10085. var _xcb_req = Txcb_protocol_request_t{
  10086. Fcount: uint64(3),
  10087. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10088. Fisvoid: uint8(1),
  10089. }
  10090. 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) {
  10091. bp := tls.Alloc(112)
  10092. defer tls.Free(112)
  10093. var xcb_ret Txcb_void_cookie_t
  10094. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10095. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10096. _ = xcb_ret
  10097. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10098. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10099. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10100. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10101. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10102. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10103. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10104. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10105. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10106. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10107. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10108. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10109. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10110. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10111. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10112. /* xcb_create_window_value_list_t value_list */
  10113. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10114. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_sizeof(tls, value_list, value_mask))
  10115. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req1)))
  10116. return xcb_ret
  10117. }
  10118. var _xcb_req1 = Txcb_protocol_request_t{
  10119. Fcount: uint64(3),
  10120. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10121. Fisvoid: uint8(1),
  10122. }
  10123. 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) {
  10124. bp := tls.Alloc(128)
  10125. defer tls.Free(128)
  10126. var xcb_ret Txcb_void_cookie_t
  10127. var _ /* xcb_aux0 at bp+112 */ uintptr
  10128. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10129. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10130. _ = xcb_ret
  10131. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  10132. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10133. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10134. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10135. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10136. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10137. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10138. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10139. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10140. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10141. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10142. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10143. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10144. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10145. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10146. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10147. /* xcb_create_window_value_list_t value_list */
  10148. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  10149. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  10150. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req2)))
  10151. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  10152. return xcb_ret
  10153. }
  10154. var _xcb_req2 = Txcb_protocol_request_t{
  10155. Fcount: uint64(3),
  10156. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10157. Fisvoid: uint8(1),
  10158. }
  10159. 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) {
  10160. bp := tls.Alloc(128)
  10161. defer tls.Free(128)
  10162. var xcb_ret Txcb_void_cookie_t
  10163. var _ /* xcb_aux0 at bp+112 */ uintptr
  10164. var _ /* xcb_out at bp+80 */ Txcb_create_window_request_t
  10165. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10166. _ = xcb_ret
  10167. *(*uintptr)(unsafe.Pointer(bp + 112)) = uintptr(0)
  10168. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fdepth = depth
  10169. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwid = wid
  10170. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fparent = parent
  10171. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fx = x
  10172. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fy = y
  10173. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fwidth = width
  10174. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fheight = height
  10175. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fborder_width = border_width
  10176. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).F_class = _class
  10177. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvisual = visual
  10178. (*(*Txcb_create_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10179. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10180. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  10181. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10182. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10183. /* xcb_create_window_value_list_t value_list */
  10184. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_window_value_list_serialize(tls, bp+112, value_mask, value_list))
  10185. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 112))
  10186. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req3)))
  10187. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 112)))
  10188. return xcb_ret
  10189. }
  10190. var _xcb_req3 = Txcb_protocol_request_t{
  10191. Fcount: uint64(3),
  10192. Fopcode: uint8(m_XCB_CREATE_WINDOW),
  10193. Fisvoid: uint8(1),
  10194. }
  10195. func Xxcb_create_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10196. return R + libc.UintptrFromInt32(1)*32
  10197. }
  10198. func Xxcb_change_window_attributes_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10199. bp := tls.Alloc(16)
  10200. defer tls.Free(16)
  10201. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  10202. var xcb_out, xcb_tmp uintptr
  10203. var xcb_parts [16]Tiovec
  10204. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  10205. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  10206. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  10207. xcb_buffer_len = uint32(0)
  10208. xcb_align_to = uint32(0)
  10209. xcb_padding_offset = uint32(0)
  10210. xcb_pad = uint32(0)
  10211. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  10212. xcb_parts_idx = uint32(0)
  10213. xcb_block_len = uint32(0)
  10214. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10215. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10216. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  10217. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10218. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10219. xcb_parts_idx++
  10220. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10221. }
  10222. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10223. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10224. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  10225. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10226. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10227. xcb_parts_idx++
  10228. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10229. }
  10230. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10231. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10232. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  10233. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10234. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10235. xcb_parts_idx++
  10236. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10237. }
  10238. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10239. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10240. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  10241. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10242. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10243. xcb_parts_idx++
  10244. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10245. }
  10246. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10247. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10248. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  10249. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10250. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10251. xcb_parts_idx++
  10252. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10253. }
  10254. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10255. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10256. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  10257. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10258. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10259. xcb_parts_idx++
  10260. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10261. }
  10262. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10263. /* xcb_change_window_attributes_value_list_t.backing_store */
  10264. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  10265. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10266. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10267. xcb_parts_idx++
  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. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  10273. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10274. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10275. xcb_parts_idx++
  10276. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10277. }
  10278. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10279. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10280. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  10281. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10282. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10283. xcb_parts_idx++
  10284. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10285. }
  10286. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10287. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10288. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  10289. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10290. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10291. xcb_parts_idx++
  10292. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10293. }
  10294. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10295. /* xcb_change_window_attributes_value_list_t.save_under */
  10296. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  10297. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10298. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10299. xcb_parts_idx++
  10300. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10301. }
  10302. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10303. /* xcb_change_window_attributes_value_list_t.event_mask */
  10304. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  10305. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10306. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10307. xcb_parts_idx++
  10308. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10309. }
  10310. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10311. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10312. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  10313. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10314. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10315. xcb_parts_idx++
  10316. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10317. }
  10318. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10319. /* xcb_change_window_attributes_value_list_t.colormap */
  10320. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  10321. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10322. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10323. xcb_parts_idx++
  10324. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10325. }
  10326. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10327. /* xcb_change_window_attributes_value_list_t.cursor */
  10328. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  10329. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10330. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  10331. xcb_parts_idx++
  10332. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10333. }
  10334. /* insert padding */
  10335. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10336. xcb_buffer_len += xcb_block_len + xcb_pad
  10337. if uint32(0) != xcb_pad {
  10338. xcb_parts[xcb_parts_idx].Fiov_base = bp
  10339. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  10340. xcb_parts_idx++
  10341. xcb_pad = uint32(0)
  10342. }
  10343. xcb_block_len = uint32(0)
  10344. xcb_padding_offset = uint32(0)
  10345. if libc.UintptrFromInt32(0) == xcb_out {
  10346. /* allocate memory */
  10347. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  10348. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  10349. }
  10350. xcb_tmp = xcb_out
  10351. i = uint32(0)
  10352. for {
  10353. if !(i < xcb_parts_idx) {
  10354. break
  10355. }
  10356. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  10357. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  10358. }
  10359. if uint64(0) != xcb_parts[i].Fiov_len {
  10360. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  10361. }
  10362. goto _1
  10363. _1:
  10364. ;
  10365. i++
  10366. }
  10367. return libc.Int32FromUint32(xcb_buffer_len)
  10368. }
  10369. func Xxcb_change_window_attributes_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  10370. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  10371. var xcb_tmp uintptr
  10372. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  10373. xcb_tmp = _buffer
  10374. xcb_buffer_len = uint32(0)
  10375. xcb_block_len = uint32(0)
  10376. xcb_pad = uint32(0)
  10377. xcb_align_to = uint32(0)
  10378. xcb_padding_offset = uint32(0)
  10379. if value_mask&uint32(_XCB_CW_BACK_PIXMAP) != 0 {
  10380. /* xcb_change_window_attributes_value_list_t.background_pixmap */
  10381. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10382. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10383. xcb_tmp += uintptr(4)
  10384. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10385. }
  10386. if value_mask&uint32(_XCB_CW_BACK_PIXEL) != 0 {
  10387. /* xcb_change_window_attributes_value_list_t.background_pixel */
  10388. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbackground_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10389. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10390. xcb_tmp += uintptr(4)
  10391. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10392. }
  10393. if value_mask&uint32(_XCB_CW_BORDER_PIXMAP) != 0 {
  10394. /* xcb_change_window_attributes_value_list_t.border_pixmap */
  10395. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixmap = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  10396. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10397. xcb_tmp += uintptr(4)
  10398. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10399. }
  10400. if value_mask&uint32(_XCB_CW_BORDER_PIXEL) != 0 {
  10401. /* xcb_change_window_attributes_value_list_t.border_pixel */
  10402. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fborder_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10403. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10404. xcb_tmp += uintptr(4)
  10405. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10406. }
  10407. if value_mask&uint32(_XCB_CW_BIT_GRAVITY) != 0 {
  10408. /* xcb_change_window_attributes_value_list_t.bit_gravity */
  10409. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbit_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10410. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10411. xcb_tmp += uintptr(4)
  10412. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10413. }
  10414. if value_mask&uint32(_XCB_CW_WIN_GRAVITY) != 0 {
  10415. /* xcb_change_window_attributes_value_list_t.win_gravity */
  10416. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fwin_gravity = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10417. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10418. xcb_tmp += uintptr(4)
  10419. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10420. }
  10421. if value_mask&uint32(_XCB_CW_BACKING_STORE) != 0 {
  10422. /* xcb_change_window_attributes_value_list_t.backing_store */
  10423. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_store = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10424. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10425. xcb_tmp += uintptr(4)
  10426. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10427. }
  10428. if value_mask&uint32(_XCB_CW_BACKING_PLANES) != 0 {
  10429. /* xcb_change_window_attributes_value_list_t.backing_planes */
  10430. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_planes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10431. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10432. xcb_tmp += uintptr(4)
  10433. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10434. }
  10435. if value_mask&uint32(_XCB_CW_BACKING_PIXEL) != 0 {
  10436. /* xcb_change_window_attributes_value_list_t.backing_pixel */
  10437. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fbacking_pixel = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10438. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10439. xcb_tmp += uintptr(4)
  10440. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10441. }
  10442. if value_mask&uint32(_XCB_CW_OVERRIDE_REDIRECT) != 0 {
  10443. /* xcb_change_window_attributes_value_list_t.override_redirect */
  10444. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Foverride_redirect = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10445. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10446. xcb_tmp += uintptr(4)
  10447. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10448. }
  10449. if value_mask&uint32(_XCB_CW_SAVE_UNDER) != 0 {
  10450. /* xcb_change_window_attributes_value_list_t.save_under */
  10451. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fsave_under = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  10452. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10453. xcb_tmp += uintptr(4)
  10454. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10455. }
  10456. if value_mask&uint32(_XCB_CW_EVENT_MASK) != 0 {
  10457. /* xcb_change_window_attributes_value_list_t.event_mask */
  10458. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fevent_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10459. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10460. xcb_tmp += uintptr(4)
  10461. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10462. }
  10463. if value_mask&uint32(_XCB_CW_DONT_PROPAGATE) != 0 {
  10464. /* xcb_change_window_attributes_value_list_t.do_not_propogate_mask */
  10465. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fdo_not_propogate_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  10466. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10467. xcb_tmp += uintptr(4)
  10468. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10469. }
  10470. if value_mask&uint32(_XCB_CW_COLORMAP) != 0 {
  10471. /* xcb_change_window_attributes_value_list_t.colormap */
  10472. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcolormap = *(*Txcb_colormap_t)(unsafe.Pointer(xcb_tmp))
  10473. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10474. xcb_tmp += uintptr(4)
  10475. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10476. }
  10477. if value_mask&uint32(_XCB_CW_CURSOR) != 0 {
  10478. /* xcb_change_window_attributes_value_list_t.cursor */
  10479. (*Txcb_change_window_attributes_value_list_t)(unsafe.Pointer(_aux)).Fcursor = *(*Txcb_cursor_t)(unsafe.Pointer(xcb_tmp))
  10480. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  10481. xcb_tmp += uintptr(4)
  10482. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  10483. }
  10484. /* insert padding */
  10485. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  10486. xcb_buffer_len += xcb_block_len + xcb_pad
  10487. if uint32(0) != xcb_pad {
  10488. xcb_tmp += uintptr(xcb_pad)
  10489. xcb_pad = uint32(0)
  10490. }
  10491. xcb_block_len = uint32(0)
  10492. xcb_padding_offset = uint32(0)
  10493. return libc.Int32FromUint32(xcb_buffer_len)
  10494. }
  10495. func Xxcb_change_window_attributes_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  10496. bp := tls.Alloc(64)
  10497. defer tls.Free(64)
  10498. var _ /* _aux at bp+0 */ Txcb_change_window_attributes_value_list_t
  10499. return Xxcb_change_window_attributes_value_list_unpack(tls, _buffer, value_mask, bp)
  10500. }
  10501. func Xxcb_change_window_attributes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  10502. var _aux, xcb_tmp uintptr
  10503. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  10504. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  10505. xcb_tmp = _buffer
  10506. _aux = _buffer
  10507. xcb_buffer_len = uint32(0)
  10508. xcb_block_len = uint32(0)
  10509. xcb_pad = uint32(0)
  10510. xcb_align_to = uint32(0)
  10511. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  10512. xcb_tmp += uintptr(xcb_block_len)
  10513. xcb_buffer_len += xcb_block_len
  10514. xcb_block_len = uint32(0)
  10515. /* value_list */
  10516. 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))
  10517. xcb_tmp += uintptr(xcb_block_len)
  10518. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  10519. /* insert padding */
  10520. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  10521. xcb_buffer_len += xcb_block_len + xcb_pad
  10522. if uint32(0) != xcb_pad {
  10523. xcb_tmp += uintptr(xcb_pad)
  10524. xcb_pad = uint32(0)
  10525. }
  10526. xcb_block_len = uint32(0)
  10527. return libc.Int32FromUint32(xcb_buffer_len)
  10528. }
  10529. 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) {
  10530. bp := tls.Alloc(96)
  10531. defer tls.Free(96)
  10532. var xcb_ret Txcb_void_cookie_t
  10533. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10534. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10535. _ = xcb_ret
  10536. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10537. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10538. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10539. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10540. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10541. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10542. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10543. /* xcb_change_window_attributes_value_list_t value_list */
  10544. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10545. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10546. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req4)))
  10547. return xcb_ret
  10548. }
  10549. var _xcb_req4 = Txcb_protocol_request_t{
  10550. Fcount: uint64(3),
  10551. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10552. Fisvoid: uint8(1),
  10553. }
  10554. 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) {
  10555. bp := tls.Alloc(96)
  10556. defer tls.Free(96)
  10557. var xcb_ret Txcb_void_cookie_t
  10558. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10559. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10560. _ = xcb_ret
  10561. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10562. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10563. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10564. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10565. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10566. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10567. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10568. /* xcb_change_window_attributes_value_list_t value_list */
  10569. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  10570. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_window_attributes_value_list_sizeof(tls, value_list, value_mask))
  10571. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req5)))
  10572. return xcb_ret
  10573. }
  10574. var _xcb_req5 = Txcb_protocol_request_t{
  10575. Fcount: uint64(3),
  10576. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10577. Fisvoid: uint8(1),
  10578. }
  10579. 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) {
  10580. bp := tls.Alloc(112)
  10581. defer tls.Free(112)
  10582. var xcb_ret Txcb_void_cookie_t
  10583. var _ /* xcb_aux0 at bp+96 */ uintptr
  10584. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10585. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10586. _ = xcb_ret
  10587. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10588. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10589. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10590. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10591. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10592. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10593. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10594. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10595. /* xcb_change_window_attributes_value_list_t value_list */
  10596. (*(*[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))
  10597. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10598. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req6)))
  10599. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10600. return xcb_ret
  10601. }
  10602. var _xcb_req6 = Txcb_protocol_request_t{
  10603. Fcount: uint64(3),
  10604. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10605. Fisvoid: uint8(1),
  10606. }
  10607. 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) {
  10608. bp := tls.Alloc(112)
  10609. defer tls.Free(112)
  10610. var xcb_ret Txcb_void_cookie_t
  10611. var _ /* xcb_aux0 at bp+96 */ uintptr
  10612. var _ /* xcb_out at bp+80 */ Txcb_change_window_attributes_request_t
  10613. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  10614. _ = xcb_ret
  10615. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  10616. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  10617. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  10618. (*(*Txcb_change_window_attributes_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  10619. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  10620. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  10621. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10622. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10623. /* xcb_change_window_attributes_value_list_t value_list */
  10624. (*(*[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))
  10625. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  10626. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req7)))
  10627. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  10628. return xcb_ret
  10629. }
  10630. var _xcb_req7 = Txcb_protocol_request_t{
  10631. Fcount: uint64(3),
  10632. Fopcode: uint8(m_XCB_CHANGE_WINDOW_ATTRIBUTES),
  10633. Fisvoid: uint8(1),
  10634. }
  10635. func Xxcb_change_window_attributes_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  10636. return R + libc.UintptrFromInt32(1)*12
  10637. }
  10638. func Xxcb_get_window_attributes(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10639. bp := tls.Alloc(80)
  10640. defer tls.Free(80)
  10641. var xcb_ret Txcb_get_window_attributes_cookie_t
  10642. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10643. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10644. _ = xcb_ret
  10645. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10646. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10647. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10648. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10649. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10650. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10651. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req8)))
  10652. return xcb_ret
  10653. }
  10654. var _xcb_req8 = Txcb_protocol_request_t{
  10655. Fcount: uint64(2),
  10656. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10657. }
  10658. func Xxcb_get_window_attributes_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_get_window_attributes_cookie_t) {
  10659. bp := tls.Alloc(80)
  10660. defer tls.Free(80)
  10661. var xcb_ret Txcb_get_window_attributes_cookie_t
  10662. var _ /* xcb_out at bp+64 */ Txcb_get_window_attributes_request_t
  10663. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10664. _ = xcb_ret
  10665. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10666. (*(*Txcb_get_window_attributes_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10667. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10668. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10669. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10670. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10671. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req9)))
  10672. return xcb_ret
  10673. }
  10674. var _xcb_req9 = Txcb_protocol_request_t{
  10675. Fcount: uint64(2),
  10676. Fopcode: uint8(m_XCB_GET_WINDOW_ATTRIBUTES),
  10677. }
  10678. func Xxcb_get_window_attributes_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_window_attributes_cookie_t, e uintptr) (r uintptr) {
  10679. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  10680. }
  10681. func Xxcb_destroy_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10682. bp := tls.Alloc(80)
  10683. defer tls.Free(80)
  10684. var xcb_ret Txcb_void_cookie_t
  10685. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10686. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10687. _ = xcb_ret
  10688. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10689. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10690. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10691. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10692. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10693. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10694. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req10)))
  10695. return xcb_ret
  10696. }
  10697. var _xcb_req10 = Txcb_protocol_request_t{
  10698. Fcount: uint64(2),
  10699. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10700. Fisvoid: uint8(1),
  10701. }
  10702. func Xxcb_destroy_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10703. bp := tls.Alloc(80)
  10704. defer tls.Free(80)
  10705. var xcb_ret Txcb_void_cookie_t
  10706. var _ /* xcb_out at bp+64 */ Txcb_destroy_window_request_t
  10707. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10708. _ = xcb_ret
  10709. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10710. (*(*Txcb_destroy_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10711. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10712. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10713. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10714. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10715. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req11)))
  10716. return xcb_ret
  10717. }
  10718. var _xcb_req11 = Txcb_protocol_request_t{
  10719. Fcount: uint64(2),
  10720. Fopcode: uint8(m_XCB_DESTROY_WINDOW),
  10721. Fisvoid: uint8(1),
  10722. }
  10723. func Xxcb_destroy_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10724. bp := tls.Alloc(80)
  10725. defer tls.Free(80)
  10726. var xcb_ret Txcb_void_cookie_t
  10727. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10728. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10729. _ = xcb_ret
  10730. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10731. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10732. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10733. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10734. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10735. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10736. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req12)))
  10737. return xcb_ret
  10738. }
  10739. var _xcb_req12 = Txcb_protocol_request_t{
  10740. Fcount: uint64(2),
  10741. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10742. Fisvoid: uint8(1),
  10743. }
  10744. func Xxcb_destroy_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10745. bp := tls.Alloc(80)
  10746. defer tls.Free(80)
  10747. var xcb_ret Txcb_void_cookie_t
  10748. var _ /* xcb_out at bp+64 */ Txcb_destroy_subwindows_request_t
  10749. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10750. _ = xcb_ret
  10751. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10752. (*(*Txcb_destroy_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10753. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10754. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10755. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10756. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10757. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req13)))
  10758. return xcb_ret
  10759. }
  10760. var _xcb_req13 = Txcb_protocol_request_t{
  10761. Fcount: uint64(2),
  10762. Fopcode: uint8(m_XCB_DESTROY_SUBWINDOWS),
  10763. Fisvoid: uint8(1),
  10764. }
  10765. func Xxcb_change_save_set_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10766. bp := tls.Alloc(80)
  10767. defer tls.Free(80)
  10768. var xcb_ret Txcb_void_cookie_t
  10769. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10770. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10771. _ = xcb_ret
  10772. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10773. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10774. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10777. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10778. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req14)))
  10779. return xcb_ret
  10780. }
  10781. var _xcb_req14 = Txcb_protocol_request_t{
  10782. Fcount: uint64(2),
  10783. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10784. Fisvoid: uint8(1),
  10785. }
  10786. func Xxcb_change_save_set(tls *libc.TLS, c uintptr, mode Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10787. bp := tls.Alloc(80)
  10788. defer tls.Free(80)
  10789. var xcb_ret Txcb_void_cookie_t
  10790. var _ /* xcb_out at bp+64 */ Txcb_change_save_set_request_t
  10791. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10792. _ = xcb_ret
  10793. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  10794. (*(*Txcb_change_save_set_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10795. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10796. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10797. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10798. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10799. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req15)))
  10800. return xcb_ret
  10801. }
  10802. var _xcb_req15 = Txcb_protocol_request_t{
  10803. Fcount: uint64(2),
  10804. Fopcode: uint8(m_XCB_CHANGE_SAVE_SET),
  10805. Fisvoid: uint8(1),
  10806. }
  10807. 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) {
  10808. bp := tls.Alloc(80)
  10809. defer tls.Free(80)
  10810. var xcb_ret Txcb_void_cookie_t
  10811. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10812. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10813. _ = xcb_ret
  10814. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10815. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10816. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10817. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10818. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10819. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10820. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10821. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10822. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10823. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req16)))
  10824. return xcb_ret
  10825. }
  10826. var _xcb_req16 = Txcb_protocol_request_t{
  10827. Fcount: uint64(2),
  10828. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10829. Fisvoid: uint8(1),
  10830. }
  10831. 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) {
  10832. bp := tls.Alloc(80)
  10833. defer tls.Free(80)
  10834. var xcb_ret Txcb_void_cookie_t
  10835. var _ /* xcb_out at bp+64 */ Txcb_reparent_window_request_t
  10836. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10837. _ = xcb_ret
  10838. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10839. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10840. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fparent = parent
  10841. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  10842. (*(*Txcb_reparent_window_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  10843. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10844. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  10845. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10846. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10847. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req17)))
  10848. return xcb_ret
  10849. }
  10850. var _xcb_req17 = Txcb_protocol_request_t{
  10851. Fcount: uint64(2),
  10852. Fopcode: uint8(m_XCB_REPARENT_WINDOW),
  10853. Fisvoid: uint8(1),
  10854. }
  10855. func Xxcb_map_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10856. bp := tls.Alloc(80)
  10857. defer tls.Free(80)
  10858. var xcb_ret Txcb_void_cookie_t
  10859. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10860. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10861. _ = xcb_ret
  10862. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10863. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10864. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10865. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10866. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10867. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10868. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req18)))
  10869. return xcb_ret
  10870. }
  10871. var _xcb_req18 = Txcb_protocol_request_t{
  10872. Fcount: uint64(2),
  10873. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10874. Fisvoid: uint8(1),
  10875. }
  10876. func Xxcb_map_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10877. bp := tls.Alloc(80)
  10878. defer tls.Free(80)
  10879. var xcb_ret Txcb_void_cookie_t
  10880. var _ /* xcb_out at bp+64 */ Txcb_map_window_request_t
  10881. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10882. _ = xcb_ret
  10883. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10884. (*(*Txcb_map_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10885. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10886. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10887. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10888. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10889. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req19)))
  10890. return xcb_ret
  10891. }
  10892. var _xcb_req19 = Txcb_protocol_request_t{
  10893. Fcount: uint64(2),
  10894. Fopcode: uint8(m_XCB_MAP_WINDOW),
  10895. Fisvoid: uint8(1),
  10896. }
  10897. func Xxcb_map_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10898. bp := tls.Alloc(80)
  10899. defer tls.Free(80)
  10900. var xcb_ret Txcb_void_cookie_t
  10901. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10902. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10903. _ = xcb_ret
  10904. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10905. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10906. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10907. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10908. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10909. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10910. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req20)))
  10911. return xcb_ret
  10912. }
  10913. var _xcb_req20 = Txcb_protocol_request_t{
  10914. Fcount: uint64(2),
  10915. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10916. Fisvoid: uint8(1),
  10917. }
  10918. func Xxcb_map_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10919. bp := tls.Alloc(80)
  10920. defer tls.Free(80)
  10921. var xcb_ret Txcb_void_cookie_t
  10922. var _ /* xcb_out at bp+64 */ Txcb_map_subwindows_request_t
  10923. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10924. _ = xcb_ret
  10925. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10926. (*(*Txcb_map_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10927. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10928. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10929. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10930. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10931. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req21)))
  10932. return xcb_ret
  10933. }
  10934. var _xcb_req21 = Txcb_protocol_request_t{
  10935. Fcount: uint64(2),
  10936. Fopcode: uint8(m_XCB_MAP_SUBWINDOWS),
  10937. Fisvoid: uint8(1),
  10938. }
  10939. func Xxcb_unmap_window_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10940. bp := tls.Alloc(80)
  10941. defer tls.Free(80)
  10942. var xcb_ret Txcb_void_cookie_t
  10943. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10944. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10945. _ = xcb_ret
  10946. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10947. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10948. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10949. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10950. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10951. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10952. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req22)))
  10953. return xcb_ret
  10954. }
  10955. var _xcb_req22 = Txcb_protocol_request_t{
  10956. Fcount: uint64(2),
  10957. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10958. Fisvoid: uint8(1),
  10959. }
  10960. func Xxcb_unmap_window(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10961. bp := tls.Alloc(80)
  10962. defer tls.Free(80)
  10963. var xcb_ret Txcb_void_cookie_t
  10964. var _ /* xcb_out at bp+64 */ Txcb_unmap_window_request_t
  10965. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10966. _ = xcb_ret
  10967. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10968. (*(*Txcb_unmap_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10969. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10970. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10971. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10972. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10973. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req23)))
  10974. return xcb_ret
  10975. }
  10976. var _xcb_req23 = Txcb_protocol_request_t{
  10977. Fcount: uint64(2),
  10978. Fopcode: uint8(m_XCB_UNMAP_WINDOW),
  10979. Fisvoid: uint8(1),
  10980. }
  10981. func Xxcb_unmap_subwindows_checked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  10982. bp := tls.Alloc(80)
  10983. defer tls.Free(80)
  10984. var xcb_ret Txcb_void_cookie_t
  10985. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  10986. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  10987. _ = xcb_ret
  10988. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  10989. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  10990. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  10991. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  10992. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  10993. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  10994. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req24)))
  10995. return xcb_ret
  10996. }
  10997. var _xcb_req24 = Txcb_protocol_request_t{
  10998. Fcount: uint64(2),
  10999. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  11000. Fisvoid: uint8(1),
  11001. }
  11002. func Xxcb_unmap_subwindows(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11003. bp := tls.Alloc(80)
  11004. defer tls.Free(80)
  11005. var xcb_ret Txcb_void_cookie_t
  11006. var _ /* xcb_out at bp+64 */ Txcb_unmap_subwindows_request_t
  11007. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11008. _ = xcb_ret
  11009. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11010. (*(*Txcb_unmap_subwindows_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11011. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11012. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11013. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11014. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11015. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req25)))
  11016. return xcb_ret
  11017. }
  11018. var _xcb_req25 = Txcb_protocol_request_t{
  11019. Fcount: uint64(2),
  11020. Fopcode: uint8(m_XCB_UNMAP_SUBWINDOWS),
  11021. Fisvoid: uint8(1),
  11022. }
  11023. func Xxcb_configure_window_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  11024. bp := tls.Alloc(16)
  11025. defer tls.Free(16)
  11026. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  11027. var xcb_out, xcb_tmp uintptr
  11028. var xcb_parts [8]Tiovec
  11029. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  11030. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  11031. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  11032. xcb_buffer_len = uint32(0)
  11033. xcb_align_to = uint32(0)
  11034. xcb_padding_offset = uint32(0)
  11035. xcb_pad = uint32(0)
  11036. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  11037. xcb_parts_idx = uint32(0)
  11038. xcb_block_len = uint32(0)
  11039. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  11040. /* xcb_configure_window_value_list_t.x */
  11041. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  11042. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11043. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  11044. xcb_parts_idx++
  11045. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11046. }
  11047. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  11048. /* xcb_configure_window_value_list_t.y */
  11049. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  11050. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11051. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  11052. xcb_parts_idx++
  11053. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11054. }
  11055. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  11056. /* xcb_configure_window_value_list_t.width */
  11057. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  11058. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11059. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  11060. xcb_parts_idx++
  11061. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11062. }
  11063. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  11064. /* xcb_configure_window_value_list_t.height */
  11065. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  11066. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11067. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  11068. xcb_parts_idx++
  11069. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11070. }
  11071. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  11072. /* xcb_configure_window_value_list_t.border_width */
  11073. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  11074. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11075. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  11076. xcb_parts_idx++
  11077. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11078. }
  11079. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  11080. /* xcb_configure_window_value_list_t.sibling */
  11081. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  11082. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11083. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  11084. xcb_parts_idx++
  11085. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11086. }
  11087. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  11088. /* xcb_configure_window_value_list_t.stack_mode */
  11089. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  11090. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11091. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  11092. xcb_parts_idx++
  11093. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11094. }
  11095. /* insert padding */
  11096. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  11097. xcb_buffer_len += xcb_block_len + xcb_pad
  11098. if uint32(0) != xcb_pad {
  11099. xcb_parts[xcb_parts_idx].Fiov_base = bp
  11100. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  11101. xcb_parts_idx++
  11102. xcb_pad = uint32(0)
  11103. }
  11104. xcb_block_len = uint32(0)
  11105. xcb_padding_offset = uint32(0)
  11106. if libc.UintptrFromInt32(0) == xcb_out {
  11107. /* allocate memory */
  11108. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  11109. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  11110. }
  11111. xcb_tmp = xcb_out
  11112. i = uint32(0)
  11113. for {
  11114. if !(i < xcb_parts_idx) {
  11115. break
  11116. }
  11117. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  11118. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  11119. }
  11120. if uint64(0) != xcb_parts[i].Fiov_len {
  11121. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  11122. }
  11123. goto _1
  11124. _1:
  11125. ;
  11126. i++
  11127. }
  11128. return libc.Int32FromUint32(xcb_buffer_len)
  11129. }
  11130. func Xxcb_configure_window_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t, _aux uintptr) (r int32) {
  11131. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  11132. var xcb_tmp uintptr
  11133. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  11134. xcb_tmp = _buffer
  11135. xcb_buffer_len = uint32(0)
  11136. xcb_block_len = uint32(0)
  11137. xcb_pad = uint32(0)
  11138. xcb_align_to = uint32(0)
  11139. xcb_padding_offset = uint32(0)
  11140. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_X) != 0 {
  11141. /* xcb_configure_window_value_list_t.x */
  11142. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fx = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  11143. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11144. xcb_tmp += uintptr(4)
  11145. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11146. }
  11147. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_Y) != 0 {
  11148. /* xcb_configure_window_value_list_t.y */
  11149. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fy = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  11150. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11151. xcb_tmp += uintptr(4)
  11152. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11153. }
  11154. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_WIDTH) != 0 {
  11155. /* xcb_configure_window_value_list_t.width */
  11156. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fwidth = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11157. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11158. xcb_tmp += uintptr(4)
  11159. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11160. }
  11161. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_HEIGHT) != 0 {
  11162. /* xcb_configure_window_value_list_t.height */
  11163. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fheight = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11164. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11165. xcb_tmp += uintptr(4)
  11166. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11167. }
  11168. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_BORDER_WIDTH) != 0 {
  11169. /* xcb_configure_window_value_list_t.border_width */
  11170. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fborder_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11171. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11172. xcb_tmp += uintptr(4)
  11173. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11174. }
  11175. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_SIBLING) != 0 {
  11176. /* xcb_configure_window_value_list_t.sibling */
  11177. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fsibling = *(*Txcb_window_t)(unsafe.Pointer(xcb_tmp))
  11178. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11179. xcb_tmp += uintptr(4)
  11180. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11181. }
  11182. if libc.Int32FromUint16(value_mask)&int32(_XCB_CONFIG_WINDOW_STACK_MODE) != 0 {
  11183. /* xcb_configure_window_value_list_t.stack_mode */
  11184. (*Txcb_configure_window_value_list_t)(unsafe.Pointer(_aux)).Fstack_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  11185. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  11186. xcb_tmp += uintptr(4)
  11187. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11188. }
  11189. /* insert padding */
  11190. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  11191. xcb_buffer_len += xcb_block_len + xcb_pad
  11192. if uint32(0) != xcb_pad {
  11193. xcb_tmp += uintptr(xcb_pad)
  11194. xcb_pad = uint32(0)
  11195. }
  11196. xcb_block_len = uint32(0)
  11197. xcb_padding_offset = uint32(0)
  11198. return libc.Int32FromUint32(xcb_buffer_len)
  11199. }
  11200. func Xxcb_configure_window_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint16_t) (r int32) {
  11201. bp := tls.Alloc(32)
  11202. defer tls.Free(32)
  11203. var _ /* _aux at bp+0 */ Txcb_configure_window_value_list_t
  11204. return Xxcb_configure_window_value_list_unpack(tls, _buffer, value_mask, bp)
  11205. }
  11206. func Xxcb_configure_window_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11207. var _aux, xcb_tmp uintptr
  11208. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11209. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11210. xcb_tmp = _buffer
  11211. _aux = _buffer
  11212. xcb_buffer_len = uint32(0)
  11213. xcb_block_len = uint32(0)
  11214. xcb_pad = uint32(0)
  11215. xcb_align_to = uint32(0)
  11216. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  11217. xcb_tmp += uintptr(xcb_block_len)
  11218. xcb_buffer_len += xcb_block_len
  11219. xcb_block_len = uint32(0)
  11220. /* value_list */
  11221. xcb_block_len += libc.Uint32FromInt32(Xxcb_configure_window_value_list_sizeof(tls, xcb_tmp, (*Txcb_configure_window_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  11222. xcb_tmp += uintptr(xcb_block_len)
  11223. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11224. /* insert padding */
  11225. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11226. xcb_buffer_len += xcb_block_len + xcb_pad
  11227. if uint32(0) != xcb_pad {
  11228. xcb_tmp += uintptr(xcb_pad)
  11229. xcb_pad = uint32(0)
  11230. }
  11231. xcb_block_len = uint32(0)
  11232. return libc.Int32FromUint32(xcb_buffer_len)
  11233. }
  11234. 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) {
  11235. bp := tls.Alloc(96)
  11236. defer tls.Free(96)
  11237. var xcb_ret Txcb_void_cookie_t
  11238. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11239. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11240. _ = xcb_ret
  11241. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11242. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11243. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11244. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11245. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11246. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11247. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11248. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11249. /* xcb_configure_window_value_list_t value_list */
  11250. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11251. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11252. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req26)))
  11253. return xcb_ret
  11254. }
  11255. var _xcb_req26 = Txcb_protocol_request_t{
  11256. Fcount: uint64(3),
  11257. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11258. Fisvoid: uint8(1),
  11259. }
  11260. 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) {
  11261. bp := tls.Alloc(96)
  11262. defer tls.Free(96)
  11263. var xcb_ret Txcb_void_cookie_t
  11264. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11265. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11266. _ = xcb_ret
  11267. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11268. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11269. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11270. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11271. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11272. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11273. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11274. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11275. /* xcb_configure_window_value_list_t value_list */
  11276. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  11277. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_sizeof(tls, value_list, value_mask))
  11278. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req27)))
  11279. return xcb_ret
  11280. }
  11281. var _xcb_req27 = Txcb_protocol_request_t{
  11282. Fcount: uint64(3),
  11283. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11284. Fisvoid: uint8(1),
  11285. }
  11286. 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) {
  11287. bp := tls.Alloc(112)
  11288. defer tls.Free(112)
  11289. var xcb_ret Txcb_void_cookie_t
  11290. var _ /* xcb_aux0 at bp+96 */ uintptr
  11291. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11292. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11293. _ = xcb_ret
  11294. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11295. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11296. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11297. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11298. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11299. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11300. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11301. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11302. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11303. /* xcb_configure_window_value_list_t value_list */
  11304. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11305. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11306. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req28)))
  11307. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11308. return xcb_ret
  11309. }
  11310. var _xcb_req28 = Txcb_protocol_request_t{
  11311. Fcount: uint64(3),
  11312. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11313. Fisvoid: uint8(1),
  11314. }
  11315. 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) {
  11316. bp := tls.Alloc(112)
  11317. defer tls.Free(112)
  11318. var xcb_ret Txcb_void_cookie_t
  11319. var _ /* xcb_aux0 at bp+96 */ uintptr
  11320. var _ /* xcb_out at bp+80 */ Txcb_configure_window_request_t
  11321. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  11322. _ = xcb_ret
  11323. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  11324. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  11325. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fwindow = window
  11326. (*(*Txcb_configure_window_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  11327. libc.Xmemset(tls, bp+80+10, 0, uint64(2))
  11328. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  11329. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11330. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11331. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11332. /* xcb_configure_window_value_list_t value_list */
  11333. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_configure_window_value_list_serialize(tls, bp+96, value_mask, value_list))
  11334. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  11335. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req29)))
  11336. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  11337. return xcb_ret
  11338. }
  11339. var _xcb_req29 = Txcb_protocol_request_t{
  11340. Fcount: uint64(3),
  11341. Fopcode: uint8(m_XCB_CONFIGURE_WINDOW),
  11342. Fisvoid: uint8(1),
  11343. }
  11344. func Xxcb_configure_window_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  11345. return R + libc.UintptrFromInt32(1)*12
  11346. }
  11347. func Xxcb_circulate_window_checked(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11348. bp := tls.Alloc(80)
  11349. defer tls.Free(80)
  11350. var xcb_ret Txcb_void_cookie_t
  11351. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11352. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11353. _ = xcb_ret
  11354. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11355. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11356. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11357. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11360. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req30)))
  11361. return xcb_ret
  11362. }
  11363. var _xcb_req30 = Txcb_protocol_request_t{
  11364. Fcount: uint64(2),
  11365. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11366. Fisvoid: uint8(1),
  11367. }
  11368. func Xxcb_circulate_window(tls *libc.TLS, c uintptr, direction Tuint8_t, window Txcb_window_t) (r Txcb_void_cookie_t) {
  11369. bp := tls.Alloc(80)
  11370. defer tls.Free(80)
  11371. var xcb_ret Txcb_void_cookie_t
  11372. var _ /* xcb_out at bp+64 */ Txcb_circulate_window_request_t
  11373. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11374. _ = xcb_ret
  11375. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fdirection = direction
  11376. (*(*Txcb_circulate_window_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11377. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11378. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11379. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11380. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11381. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req31)))
  11382. return xcb_ret
  11383. }
  11384. var _xcb_req31 = Txcb_protocol_request_t{
  11385. Fcount: uint64(2),
  11386. Fopcode: uint8(m_XCB_CIRCULATE_WINDOW),
  11387. Fisvoid: uint8(1),
  11388. }
  11389. func Xxcb_get_geometry(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11390. bp := tls.Alloc(80)
  11391. defer tls.Free(80)
  11392. var xcb_ret Txcb_get_geometry_cookie_t
  11393. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11394. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11395. _ = xcb_ret
  11396. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11397. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11398. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11399. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11400. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11401. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11402. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req32)))
  11403. return xcb_ret
  11404. }
  11405. var _xcb_req32 = Txcb_protocol_request_t{
  11406. Fcount: uint64(2),
  11407. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11408. }
  11409. func Xxcb_get_geometry_unchecked(tls *libc.TLS, c uintptr, drawable Txcb_drawable_t) (r Txcb_get_geometry_cookie_t) {
  11410. bp := tls.Alloc(80)
  11411. defer tls.Free(80)
  11412. var xcb_ret Txcb_get_geometry_cookie_t
  11413. var _ /* xcb_out at bp+64 */ Txcb_get_geometry_request_t
  11414. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11415. _ = xcb_ret
  11416. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11417. (*(*Txcb_get_geometry_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  11418. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11419. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11420. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11421. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11422. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req33)))
  11423. return xcb_ret
  11424. }
  11425. var _xcb_req33 = Txcb_protocol_request_t{
  11426. Fcount: uint64(2),
  11427. Fopcode: uint8(m_XCB_GET_GEOMETRY),
  11428. }
  11429. func Xxcb_get_geometry_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_geometry_cookie_t, e uintptr) (r uintptr) {
  11430. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11431. }
  11432. func Xxcb_query_tree_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11433. var _aux, xcb_tmp uintptr
  11434. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11435. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11436. xcb_tmp = _buffer
  11437. _aux = _buffer
  11438. xcb_buffer_len = uint32(0)
  11439. xcb_block_len = uint32(0)
  11440. xcb_pad = uint32(0)
  11441. xcb_align_to = uint32(0)
  11442. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11443. xcb_tmp += uintptr(xcb_block_len)
  11444. xcb_buffer_len += xcb_block_len
  11445. xcb_block_len = uint32(0)
  11446. /* children */
  11447. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_tree_reply_t)(unsafe.Pointer(_aux)).Fchildren_len)*libc.Uint64FromInt64(4))
  11448. xcb_tmp += uintptr(xcb_block_len)
  11449. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11450. /* insert padding */
  11451. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11452. xcb_buffer_len += xcb_block_len + xcb_pad
  11453. if uint32(0) != xcb_pad {
  11454. xcb_tmp += uintptr(xcb_pad)
  11455. xcb_pad = uint32(0)
  11456. }
  11457. xcb_block_len = uint32(0)
  11458. return libc.Int32FromUint32(xcb_buffer_len)
  11459. }
  11460. func Xxcb_query_tree(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11461. bp := tls.Alloc(80)
  11462. defer tls.Free(80)
  11463. var xcb_ret Txcb_query_tree_cookie_t
  11464. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11465. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11466. _ = xcb_ret
  11467. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11468. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11469. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11470. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11471. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11473. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req34)))
  11474. return xcb_ret
  11475. }
  11476. var _xcb_req34 = Txcb_protocol_request_t{
  11477. Fcount: uint64(2),
  11478. Fopcode: uint8(m_XCB_QUERY_TREE),
  11479. }
  11480. func Xxcb_query_tree_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_tree_cookie_t) {
  11481. bp := tls.Alloc(80)
  11482. defer tls.Free(80)
  11483. var xcb_ret Txcb_query_tree_cookie_t
  11484. var _ /* xcb_out at bp+64 */ Txcb_query_tree_request_t
  11485. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11486. _ = xcb_ret
  11487. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11488. (*(*Txcb_query_tree_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11489. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11490. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11491. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11492. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11493. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req35)))
  11494. return xcb_ret
  11495. }
  11496. var _xcb_req35 = Txcb_protocol_request_t{
  11497. Fcount: uint64(2),
  11498. Fopcode: uint8(m_XCB_QUERY_TREE),
  11499. }
  11500. func Xxcb_query_tree_children(tls *libc.TLS, R uintptr) (r uintptr) {
  11501. return R + libc.UintptrFromInt32(1)*32
  11502. }
  11503. func Xxcb_query_tree_children_length(tls *libc.TLS, R uintptr) (r int32) {
  11504. return libc.Int32FromUint16((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)
  11505. }
  11506. func Xxcb_query_tree_children_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11507. var i Txcb_generic_iterator_t
  11508. _ = i
  11509. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_query_tree_reply_t)(unsafe.Pointer(R)).Fchildren_len)*4
  11510. i.Frem = 0
  11511. i.Findex = int32(int64(i.Fdata) - int64(R))
  11512. return i
  11513. }
  11514. func Xxcb_query_tree_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_tree_cookie_t, e uintptr) (r uintptr) {
  11515. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11516. }
  11517. func Xxcb_intern_atom_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11518. var _aux, xcb_tmp uintptr
  11519. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11520. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11521. xcb_tmp = _buffer
  11522. _aux = _buffer
  11523. xcb_buffer_len = uint32(0)
  11524. xcb_block_len = uint32(0)
  11525. xcb_pad = uint32(0)
  11526. xcb_align_to = uint32(0)
  11527. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  11528. xcb_tmp += uintptr(xcb_block_len)
  11529. xcb_buffer_len += xcb_block_len
  11530. xcb_block_len = uint32(0)
  11531. /* name */
  11532. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_intern_atom_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11533. xcb_tmp += uintptr(xcb_block_len)
  11534. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11535. /* insert padding */
  11536. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11537. xcb_buffer_len += xcb_block_len + xcb_pad
  11538. if uint32(0) != xcb_pad {
  11539. xcb_tmp += uintptr(xcb_pad)
  11540. xcb_pad = uint32(0)
  11541. }
  11542. xcb_block_len = uint32(0)
  11543. return libc.Int32FromUint32(xcb_buffer_len)
  11544. }
  11545. 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) {
  11546. bp := tls.Alloc(112)
  11547. defer tls.Free(112)
  11548. var xcb_ret Txcb_intern_atom_cookie_t
  11549. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11550. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11551. _ = xcb_ret
  11552. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11553. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11554. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11555. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11556. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11557. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11558. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11559. /* char name */
  11560. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11561. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11562. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11563. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11564. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req36)))
  11565. return xcb_ret
  11566. }
  11567. var _xcb_req36 = Txcb_protocol_request_t{
  11568. Fcount: uint64(4),
  11569. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11570. }
  11571. 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) {
  11572. bp := tls.Alloc(112)
  11573. defer tls.Free(112)
  11574. var xcb_ret Txcb_intern_atom_cookie_t
  11575. var _ /* xcb_out at bp+96 */ Txcb_intern_atom_request_t
  11576. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11577. _ = xcb_ret
  11578. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fonly_if_exists = only_if_exists
  11579. (*(*Txcb_intern_atom_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  11580. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  11581. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11582. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11583. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11584. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11585. /* char name */
  11586. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  11587. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  11588. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11589. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11590. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req37)))
  11591. return xcb_ret
  11592. }
  11593. var _xcb_req37 = Txcb_protocol_request_t{
  11594. Fcount: uint64(4),
  11595. Fopcode: uint8(m_XCB_INTERN_ATOM),
  11596. }
  11597. func Xxcb_intern_atom_reply(tls *libc.TLS, c uintptr, cookie Txcb_intern_atom_cookie_t, e uintptr) (r uintptr) {
  11598. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11599. }
  11600. func Xxcb_get_atom_name_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11601. var _aux, xcb_tmp uintptr
  11602. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11603. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11604. xcb_tmp = _buffer
  11605. _aux = _buffer
  11606. xcb_buffer_len = uint32(0)
  11607. xcb_block_len = uint32(0)
  11608. xcb_pad = uint32(0)
  11609. xcb_align_to = uint32(0)
  11610. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11611. xcb_tmp += uintptr(xcb_block_len)
  11612. xcb_buffer_len += xcb_block_len
  11613. xcb_block_len = uint32(0)
  11614. /* name */
  11615. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  11616. xcb_tmp += uintptr(xcb_block_len)
  11617. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11618. /* insert padding */
  11619. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11620. xcb_buffer_len += xcb_block_len + xcb_pad
  11621. if uint32(0) != xcb_pad {
  11622. xcb_tmp += uintptr(xcb_pad)
  11623. xcb_pad = uint32(0)
  11624. }
  11625. xcb_block_len = uint32(0)
  11626. return libc.Int32FromUint32(xcb_buffer_len)
  11627. }
  11628. func Xxcb_get_atom_name(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11629. bp := tls.Alloc(80)
  11630. defer tls.Free(80)
  11631. var xcb_ret Txcb_get_atom_name_cookie_t
  11632. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11633. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11634. _ = xcb_ret
  11635. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11636. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11637. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11638. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11639. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11640. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11641. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req38)))
  11642. return xcb_ret
  11643. }
  11644. var _xcb_req38 = Txcb_protocol_request_t{
  11645. Fcount: uint64(2),
  11646. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11647. }
  11648. func Xxcb_get_atom_name_unchecked(tls *libc.TLS, c uintptr, atom Txcb_atom_t) (r Txcb_get_atom_name_cookie_t) {
  11649. bp := tls.Alloc(80)
  11650. defer tls.Free(80)
  11651. var xcb_ret Txcb_get_atom_name_cookie_t
  11652. var _ /* xcb_out at bp+64 */ Txcb_get_atom_name_request_t
  11653. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11654. _ = xcb_ret
  11655. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11656. (*(*Txcb_get_atom_name_request_t)(unsafe.Pointer(bp + 64))).Fatom = atom
  11657. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11658. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11659. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11660. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11661. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req39)))
  11662. return xcb_ret
  11663. }
  11664. var _xcb_req39 = Txcb_protocol_request_t{
  11665. Fcount: uint64(2),
  11666. Fopcode: uint8(m_XCB_GET_ATOM_NAME),
  11667. }
  11668. func Xxcb_get_atom_name_name(tls *libc.TLS, R uintptr) (r uintptr) {
  11669. return R + libc.UintptrFromInt32(1)*32
  11670. }
  11671. func Xxcb_get_atom_name_name_length(tls *libc.TLS, R uintptr) (r int32) {
  11672. return libc.Int32FromUint16((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11673. }
  11674. func Xxcb_get_atom_name_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11675. var i Txcb_generic_iterator_t
  11676. _ = i
  11677. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_atom_name_reply_t)(unsafe.Pointer(R)).Fname_len)
  11678. i.Frem = 0
  11679. i.Findex = int32(int64(i.Fdata) - int64(R))
  11680. return i
  11681. }
  11682. func Xxcb_get_atom_name_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_atom_name_cookie_t, e uintptr) (r uintptr) {
  11683. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11684. }
  11685. func Xxcb_change_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11686. var _aux, xcb_tmp uintptr
  11687. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11688. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11689. xcb_tmp = _buffer
  11690. _aux = _buffer
  11691. xcb_buffer_len = uint32(0)
  11692. xcb_block_len = uint32(0)
  11693. xcb_pad = uint32(0)
  11694. xcb_align_to = uint32(0)
  11695. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  11696. xcb_tmp += uintptr(xcb_block_len)
  11697. xcb_buffer_len += xcb_block_len
  11698. xcb_block_len = uint32(0)
  11699. /* data */
  11700. 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))
  11701. xcb_tmp += uintptr(xcb_block_len)
  11702. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11703. /* insert padding */
  11704. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11705. xcb_buffer_len += xcb_block_len + xcb_pad
  11706. if uint32(0) != xcb_pad {
  11707. xcb_tmp += uintptr(xcb_pad)
  11708. xcb_pad = uint32(0)
  11709. }
  11710. xcb_block_len = uint32(0)
  11711. return libc.Int32FromUint32(xcb_buffer_len)
  11712. }
  11713. 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) {
  11714. bp := tls.Alloc(128)
  11715. defer tls.Free(128)
  11716. var xcb_ret Txcb_void_cookie_t
  11717. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11718. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11719. _ = xcb_ret
  11720. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11721. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11722. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11723. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11724. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11725. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11726. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11727. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11728. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11729. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11730. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11731. /* void data */
  11732. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11733. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11734. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11735. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11736. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req40)))
  11737. return xcb_ret
  11738. }
  11739. var _xcb_req40 = Txcb_protocol_request_t{
  11740. Fcount: uint64(4),
  11741. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11742. Fisvoid: uint8(1),
  11743. }
  11744. 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) {
  11745. bp := tls.Alloc(128)
  11746. defer tls.Free(128)
  11747. var xcb_ret Txcb_void_cookie_t
  11748. var _ /* xcb_out at bp+96 */ Txcb_change_property_request_t
  11749. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  11750. _ = xcb_ret
  11751. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  11752. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  11753. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fproperty = property
  11754. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Ftype1 = type1
  11755. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  11756. libc.Xmemset(tls, bp+96+17, 0, uint64(3))
  11757. (*(*Txcb_change_property_request_t)(unsafe.Pointer(bp + 96))).Fdata_len = data_len
  11758. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  11759. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11760. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11761. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11762. /* void data */
  11763. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  11764. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len*uint32(format)/libc.Uint32FromInt32(8)) * uint64(1)
  11765. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  11766. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  11767. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req41)))
  11768. return xcb_ret
  11769. }
  11770. var _xcb_req41 = Txcb_protocol_request_t{
  11771. Fcount: uint64(4),
  11772. Fopcode: uint8(m_XCB_CHANGE_PROPERTY),
  11773. Fisvoid: uint8(1),
  11774. }
  11775. func Xxcb_change_property_data(tls *libc.TLS, R uintptr) (r uintptr) {
  11776. return R + libc.UintptrFromInt32(1)*24
  11777. }
  11778. func Xxcb_change_property_data_length(tls *libc.TLS, R uintptr) (r int32) {
  11779. 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))
  11780. }
  11781. func Xxcb_change_property_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11782. var i Txcb_generic_iterator_t
  11783. _ = i
  11784. 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))
  11785. i.Frem = 0
  11786. i.Findex = int32(int64(i.Fdata) - int64(R))
  11787. return i
  11788. }
  11789. func Xxcb_delete_property_checked(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11790. bp := tls.Alloc(80)
  11791. defer tls.Free(80)
  11792. var xcb_ret Txcb_void_cookie_t
  11793. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11794. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11795. _ = xcb_ret
  11796. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11797. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11798. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11799. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11800. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11801. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11802. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11803. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req42)))
  11804. return xcb_ret
  11805. }
  11806. var _xcb_req42 = Txcb_protocol_request_t{
  11807. Fcount: uint64(2),
  11808. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11809. Fisvoid: uint8(1),
  11810. }
  11811. func Xxcb_delete_property(tls *libc.TLS, c uintptr, window Txcb_window_t, property Txcb_atom_t) (r Txcb_void_cookie_t) {
  11812. bp := tls.Alloc(80)
  11813. defer tls.Free(80)
  11814. var xcb_ret Txcb_void_cookie_t
  11815. var _ /* xcb_out at bp+64 */ Txcb_delete_property_request_t
  11816. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11817. _ = xcb_ret
  11818. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11819. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11820. (*(*Txcb_delete_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11821. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11822. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  11823. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11824. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11825. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req43)))
  11826. return xcb_ret
  11827. }
  11828. var _xcb_req43 = Txcb_protocol_request_t{
  11829. Fcount: uint64(2),
  11830. Fopcode: uint8(m_XCB_DELETE_PROPERTY),
  11831. Fisvoid: uint8(1),
  11832. }
  11833. func Xxcb_get_property_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11834. var _aux, xcb_tmp uintptr
  11835. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11836. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11837. xcb_tmp = _buffer
  11838. _aux = _buffer
  11839. xcb_buffer_len = uint32(0)
  11840. xcb_block_len = uint32(0)
  11841. xcb_pad = uint32(0)
  11842. xcb_align_to = uint32(0)
  11843. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11844. xcb_tmp += uintptr(xcb_block_len)
  11845. xcb_buffer_len += xcb_block_len
  11846. xcb_block_len = uint32(0)
  11847. /* value */
  11848. 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))
  11849. xcb_tmp += uintptr(xcb_block_len)
  11850. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  11851. /* insert padding */
  11852. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11853. xcb_buffer_len += xcb_block_len + xcb_pad
  11854. if uint32(0) != xcb_pad {
  11855. xcb_tmp += uintptr(xcb_pad)
  11856. xcb_pad = uint32(0)
  11857. }
  11858. xcb_block_len = uint32(0)
  11859. return libc.Int32FromUint32(xcb_buffer_len)
  11860. }
  11861. 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) {
  11862. bp := tls.Alloc(96)
  11863. defer tls.Free(96)
  11864. var xcb_ret Txcb_get_property_cookie_t
  11865. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11866. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11867. _ = xcb_ret
  11868. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11869. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11870. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11871. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11872. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11873. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11874. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11875. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11876. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11877. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11878. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req44)))
  11879. return xcb_ret
  11880. }
  11881. var _xcb_req44 = Txcb_protocol_request_t{
  11882. Fcount: uint64(2),
  11883. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11884. }
  11885. 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) {
  11886. bp := tls.Alloc(96)
  11887. defer tls.Free(96)
  11888. var xcb_ret Txcb_get_property_cookie_t
  11889. var _ /* xcb_out at bp+64 */ Txcb_get_property_request_t
  11890. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11891. _ = xcb_ret
  11892. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).F_delete = _delete
  11893. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11894. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  11895. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Ftype1 = type1
  11896. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_offset = long_offset
  11897. (*(*Txcb_get_property_request_t)(unsafe.Pointer(bp + 64))).Flong_length = long_length
  11898. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11899. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  11900. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11901. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11902. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req45)))
  11903. return xcb_ret
  11904. }
  11905. var _xcb_req45 = Txcb_protocol_request_t{
  11906. Fcount: uint64(2),
  11907. Fopcode: uint8(m_XCB_GET_PROPERTY),
  11908. }
  11909. func Xxcb_get_property_value(tls *libc.TLS, R uintptr) (r uintptr) {
  11910. return R + libc.UintptrFromInt32(1)*32
  11911. }
  11912. func Xxcb_get_property_value_length(tls *libc.TLS, R uintptr) (r int32) {
  11913. 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)))
  11914. }
  11915. func Xxcb_get_property_value_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  11916. var i Txcb_generic_iterator_t
  11917. _ = i
  11918. 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)))
  11919. i.Frem = 0
  11920. i.Findex = int32(int64(i.Fdata) - int64(R))
  11921. return i
  11922. }
  11923. func Xxcb_get_property_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_property_cookie_t, e uintptr) (r uintptr) {
  11924. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  11925. }
  11926. func Xxcb_list_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  11927. var _aux, xcb_tmp uintptr
  11928. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  11929. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  11930. xcb_tmp = _buffer
  11931. _aux = _buffer
  11932. xcb_buffer_len = uint32(0)
  11933. xcb_block_len = uint32(0)
  11934. xcb_pad = uint32(0)
  11935. xcb_align_to = uint32(0)
  11936. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  11937. xcb_tmp += uintptr(xcb_block_len)
  11938. xcb_buffer_len += xcb_block_len
  11939. xcb_block_len = uint32(0)
  11940. /* atoms */
  11941. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_properties_reply_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  11942. xcb_tmp += uintptr(xcb_block_len)
  11943. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  11944. /* insert padding */
  11945. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  11946. xcb_buffer_len += xcb_block_len + xcb_pad
  11947. if uint32(0) != xcb_pad {
  11948. xcb_tmp += uintptr(xcb_pad)
  11949. xcb_pad = uint32(0)
  11950. }
  11951. xcb_block_len = uint32(0)
  11952. return libc.Int32FromUint32(xcb_buffer_len)
  11953. }
  11954. func Xxcb_list_properties(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11955. bp := tls.Alloc(80)
  11956. defer tls.Free(80)
  11957. var xcb_ret Txcb_list_properties_cookie_t
  11958. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11959. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11960. _ = xcb_ret
  11961. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11962. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11967. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req46)))
  11968. return xcb_ret
  11969. }
  11970. var _xcb_req46 = Txcb_protocol_request_t{
  11971. Fcount: uint64(2),
  11972. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11973. }
  11974. func Xxcb_list_properties_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_properties_cookie_t) {
  11975. bp := tls.Alloc(80)
  11976. defer tls.Free(80)
  11977. var xcb_ret Txcb_list_properties_cookie_t
  11978. var _ /* xcb_out at bp+64 */ Txcb_list_properties_request_t
  11979. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  11980. _ = xcb_ret
  11981. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  11982. (*(*Txcb_list_properties_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  11983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  11984. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  11985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  11986. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  11987. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req47)))
  11988. return xcb_ret
  11989. }
  11990. var _xcb_req47 = Txcb_protocol_request_t{
  11991. Fcount: uint64(2),
  11992. Fopcode: uint8(m_XCB_LIST_PROPERTIES),
  11993. }
  11994. func Xxcb_list_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  11995. return R + libc.UintptrFromInt32(1)*32
  11996. }
  11997. func Xxcb_list_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  11998. return libc.Int32FromUint16((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)
  11999. }
  12000. func Xxcb_list_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  12001. var i Txcb_generic_iterator_t
  12002. _ = i
  12003. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_properties_reply_t)(unsafe.Pointer(R)).Fatoms_len)*4
  12004. i.Frem = 0
  12005. i.Findex = int32(int64(i.Fdata) - int64(R))
  12006. return i
  12007. }
  12008. func Xxcb_list_properties_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_properties_cookie_t, e uintptr) (r uintptr) {
  12009. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12010. }
  12011. 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) {
  12012. bp := tls.Alloc(80)
  12013. defer tls.Free(80)
  12014. var xcb_ret Txcb_void_cookie_t
  12015. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  12016. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12017. _ = xcb_ret
  12018. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12019. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  12020. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12021. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12022. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12023. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12024. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12025. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12026. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req48)))
  12027. return xcb_ret
  12028. }
  12029. var _xcb_req48 = Txcb_protocol_request_t{
  12030. Fcount: uint64(2),
  12031. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  12032. Fisvoid: uint8(1),
  12033. }
  12034. 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) {
  12035. bp := tls.Alloc(80)
  12036. defer tls.Free(80)
  12037. var xcb_ret Txcb_void_cookie_t
  12038. var _ /* xcb_out at bp+64 */ Txcb_set_selection_owner_request_t
  12039. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12040. _ = xcb_ret
  12041. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12042. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fowner = owner
  12043. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12044. (*(*Txcb_set_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12045. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12046. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12047. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12048. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12049. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req49)))
  12050. return xcb_ret
  12051. }
  12052. var _xcb_req49 = Txcb_protocol_request_t{
  12053. Fcount: uint64(2),
  12054. Fopcode: uint8(m_XCB_SET_SELECTION_OWNER),
  12055. Fisvoid: uint8(1),
  12056. }
  12057. func Xxcb_get_selection_owner(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  12058. bp := tls.Alloc(80)
  12059. defer tls.Free(80)
  12060. var xcb_ret Txcb_get_selection_owner_cookie_t
  12061. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  12062. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12063. _ = xcb_ret
  12064. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12065. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12066. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12067. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12068. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12069. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12070. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req50)))
  12071. return xcb_ret
  12072. }
  12073. var _xcb_req50 = Txcb_protocol_request_t{
  12074. Fcount: uint64(2),
  12075. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  12076. }
  12077. func Xxcb_get_selection_owner_unchecked(tls *libc.TLS, c uintptr, selection Txcb_atom_t) (r Txcb_get_selection_owner_cookie_t) {
  12078. bp := tls.Alloc(80)
  12079. defer tls.Free(80)
  12080. var xcb_ret Txcb_get_selection_owner_cookie_t
  12081. var _ /* xcb_out at bp+64 */ Txcb_get_selection_owner_request_t
  12082. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12083. _ = xcb_ret
  12084. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12085. (*(*Txcb_get_selection_owner_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12086. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12087. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12088. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12089. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12090. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req51)))
  12091. return xcb_ret
  12092. }
  12093. var _xcb_req51 = Txcb_protocol_request_t{
  12094. Fcount: uint64(2),
  12095. Fopcode: uint8(m_XCB_GET_SELECTION_OWNER),
  12096. }
  12097. func Xxcb_get_selection_owner_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_selection_owner_cookie_t, e uintptr) (r uintptr) {
  12098. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12099. }
  12100. 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) {
  12101. bp := tls.Alloc(96)
  12102. defer tls.Free(96)
  12103. var xcb_ret Txcb_void_cookie_t
  12104. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  12105. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12106. _ = xcb_ret
  12107. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12108. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  12109. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12110. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  12111. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  12112. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12113. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12114. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12115. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12116. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12117. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req52)))
  12118. return xcb_ret
  12119. }
  12120. var _xcb_req52 = Txcb_protocol_request_t{
  12121. Fcount: uint64(2),
  12122. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  12123. Fisvoid: uint8(1),
  12124. }
  12125. 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) {
  12126. bp := tls.Alloc(96)
  12127. defer tls.Free(96)
  12128. var xcb_ret Txcb_void_cookie_t
  12129. var _ /* xcb_out at bp+64 */ Txcb_convert_selection_request_t
  12130. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12131. _ = xcb_ret
  12132. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12133. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Frequestor = requestor
  12134. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fselection = selection
  12135. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftarget = target
  12136. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Fproperty = property
  12137. (*(*Txcb_convert_selection_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12138. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12139. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12140. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12141. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12142. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req53)))
  12143. return xcb_ret
  12144. }
  12145. var _xcb_req53 = Txcb_protocol_request_t{
  12146. Fcount: uint64(2),
  12147. Fopcode: uint8(m_XCB_CONVERT_SELECTION),
  12148. Fisvoid: uint8(1),
  12149. }
  12150. 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) {
  12151. bp := tls.Alloc(112)
  12152. defer tls.Free(112)
  12153. var xcb_ret Txcb_void_cookie_t
  12154. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  12155. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12156. _ = xcb_ret
  12157. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  12158. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  12159. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12160. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12161. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12162. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12163. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12164. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12165. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req54)))
  12166. return xcb_ret
  12167. }
  12168. var _xcb_req54 = Txcb_protocol_request_t{
  12169. Fcount: uint64(2),
  12170. Fopcode: uint8(m_XCB_SEND_EVENT),
  12171. Fisvoid: uint8(1),
  12172. }
  12173. 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) {
  12174. bp := tls.Alloc(112)
  12175. defer tls.Free(112)
  12176. var xcb_ret Txcb_void_cookie_t
  12177. var _ /* xcb_out at bp+64 */ Txcb_send_event_request_t
  12178. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12179. _ = xcb_ret
  12180. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fpropagate = propagate
  12181. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fdestination = destination
  12182. (*(*Txcb_send_event_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12183. libc.Xmemcpy(tls, bp+64+12, event, uint64(32))
  12184. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12185. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(44)
  12186. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12187. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12188. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req55)))
  12189. return xcb_ret
  12190. }
  12191. var _xcb_req55 = Txcb_protocol_request_t{
  12192. Fcount: uint64(2),
  12193. Fopcode: uint8(m_XCB_SEND_EVENT),
  12194. Fisvoid: uint8(1),
  12195. }
  12196. 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) {
  12197. bp := tls.Alloc(96)
  12198. defer tls.Free(96)
  12199. var xcb_ret Txcb_grab_pointer_cookie_t
  12200. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12201. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12202. _ = xcb_ret
  12203. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12204. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12205. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12206. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12207. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12208. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12209. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12210. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12213. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12214. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12215. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req56)))
  12216. return xcb_ret
  12217. }
  12218. var _xcb_req56 = Txcb_protocol_request_t{
  12219. Fcount: uint64(2),
  12220. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12221. }
  12222. 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) {
  12223. bp := tls.Alloc(96)
  12224. defer tls.Free(96)
  12225. var xcb_ret Txcb_grab_pointer_cookie_t
  12226. var _ /* xcb_out at bp+64 */ Txcb_grab_pointer_request_t
  12227. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12228. _ = xcb_ret
  12229. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12230. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12231. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12232. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12233. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12234. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12235. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12236. (*(*Txcb_grab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12237. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12238. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12241. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req57)))
  12242. return xcb_ret
  12243. }
  12244. var _xcb_req57 = Txcb_protocol_request_t{
  12245. Fcount: uint64(2),
  12246. Fopcode: uint8(m_XCB_GRAB_POINTER),
  12247. }
  12248. func Xxcb_grab_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_pointer_cookie_t, e uintptr) (r uintptr) {
  12249. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12250. }
  12251. func Xxcb_ungrab_pointer_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12252. bp := tls.Alloc(80)
  12253. defer tls.Free(80)
  12254. var xcb_ret Txcb_void_cookie_t
  12255. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12256. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12257. _ = xcb_ret
  12258. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12259. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12262. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12263. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12264. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req58)))
  12265. return xcb_ret
  12266. }
  12267. var _xcb_req58 = Txcb_protocol_request_t{
  12268. Fcount: uint64(2),
  12269. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12270. Fisvoid: uint8(1),
  12271. }
  12272. func Xxcb_ungrab_pointer(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12273. bp := tls.Alloc(80)
  12274. defer tls.Free(80)
  12275. var xcb_ret Txcb_void_cookie_t
  12276. var _ /* xcb_out at bp+64 */ Txcb_ungrab_pointer_request_t
  12277. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12278. _ = xcb_ret
  12279. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12280. (*(*Txcb_ungrab_pointer_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12281. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12282. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12283. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12284. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12285. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req59)))
  12286. return xcb_ret
  12287. }
  12288. var _xcb_req59 = Txcb_protocol_request_t{
  12289. Fcount: uint64(2),
  12290. Fopcode: uint8(m_XCB_UNGRAB_POINTER),
  12291. Fisvoid: uint8(1),
  12292. }
  12293. 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) {
  12294. bp := tls.Alloc(96)
  12295. defer tls.Free(96)
  12296. var xcb_ret Txcb_void_cookie_t
  12297. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12298. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12299. _ = xcb_ret
  12300. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12301. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12302. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12303. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12304. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12305. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12306. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12307. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12308. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12309. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12313. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12314. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req60)))
  12315. return xcb_ret
  12316. }
  12317. var _xcb_req60 = Txcb_protocol_request_t{
  12318. Fcount: uint64(2),
  12319. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12320. Fisvoid: uint8(1),
  12321. }
  12322. 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) {
  12323. bp := tls.Alloc(96)
  12324. defer tls.Free(96)
  12325. var xcb_ret Txcb_void_cookie_t
  12326. var _ /* xcb_out at bp+64 */ Txcb_grab_button_request_t
  12327. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12328. _ = xcb_ret
  12329. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12330. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12331. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12332. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12333. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12334. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fconfine_to = confine_to
  12335. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12336. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12337. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12338. (*(*Txcb_grab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12339. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12340. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12341. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12342. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12343. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req61)))
  12344. return xcb_ret
  12345. }
  12346. var _xcb_req61 = Txcb_protocol_request_t{
  12347. Fcount: uint64(2),
  12348. Fopcode: uint8(m_XCB_GRAB_BUTTON),
  12349. Fisvoid: uint8(1),
  12350. }
  12351. 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) {
  12352. bp := tls.Alloc(80)
  12353. defer tls.Free(80)
  12354. var xcb_ret Txcb_void_cookie_t
  12355. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12356. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12357. _ = xcb_ret
  12358. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12359. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12360. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12361. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12362. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12363. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12364. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12365. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12366. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req62)))
  12367. return xcb_ret
  12368. }
  12369. var _xcb_req62 = Txcb_protocol_request_t{
  12370. Fcount: uint64(2),
  12371. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12372. Fisvoid: uint8(1),
  12373. }
  12374. 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) {
  12375. bp := tls.Alloc(80)
  12376. defer tls.Free(80)
  12377. var xcb_ret Txcb_void_cookie_t
  12378. var _ /* xcb_out at bp+64 */ Txcb_ungrab_button_request_t
  12379. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12380. _ = xcb_ret
  12381. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fbutton = button
  12382. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12383. (*(*Txcb_ungrab_button_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12384. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12385. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12386. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12387. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12388. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12389. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req63)))
  12390. return xcb_ret
  12391. }
  12392. var _xcb_req63 = Txcb_protocol_request_t{
  12393. Fcount: uint64(2),
  12394. Fopcode: uint8(m_XCB_UNGRAB_BUTTON),
  12395. Fisvoid: uint8(1),
  12396. }
  12397. 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) {
  12398. bp := tls.Alloc(80)
  12399. defer tls.Free(80)
  12400. var xcb_ret Txcb_void_cookie_t
  12401. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12402. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12403. _ = xcb_ret
  12404. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12405. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12406. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12407. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12408. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12409. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12411. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12412. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12413. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req64)))
  12414. return xcb_ret
  12415. }
  12416. var _xcb_req64 = Txcb_protocol_request_t{
  12417. Fcount: uint64(2),
  12418. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12419. Fisvoid: uint8(1),
  12420. }
  12421. 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) {
  12422. bp := tls.Alloc(80)
  12423. defer tls.Free(80)
  12424. var xcb_ret Txcb_void_cookie_t
  12425. var _ /* xcb_out at bp+64 */ Txcb_change_active_pointer_grab_request_t
  12426. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12427. _ = xcb_ret
  12428. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12429. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  12430. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12431. (*(*Txcb_change_active_pointer_grab_request_t)(unsafe.Pointer(bp + 64))).Fevent_mask = event_mask
  12432. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12433. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12434. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12435. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12436. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12437. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req65)))
  12438. return xcb_ret
  12439. }
  12440. var _xcb_req65 = Txcb_protocol_request_t{
  12441. Fcount: uint64(2),
  12442. Fopcode: uint8(m_XCB_CHANGE_ACTIVE_POINTER_GRAB),
  12443. Fisvoid: uint8(1),
  12444. }
  12445. 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) {
  12446. bp := tls.Alloc(80)
  12447. defer tls.Free(80)
  12448. var xcb_ret Txcb_grab_keyboard_cookie_t
  12449. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12450. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12451. _ = xcb_ret
  12452. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12453. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12454. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12455. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12456. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12457. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12458. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12459. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12460. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12461. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12462. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req66)))
  12463. return xcb_ret
  12464. }
  12465. var _xcb_req66 = Txcb_protocol_request_t{
  12466. Fcount: uint64(2),
  12467. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12468. }
  12469. 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) {
  12470. bp := tls.Alloc(80)
  12471. defer tls.Free(80)
  12472. var xcb_ret Txcb_grab_keyboard_cookie_t
  12473. var _ /* xcb_out at bp+64 */ Txcb_grab_keyboard_request_t
  12474. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12475. _ = xcb_ret
  12476. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12477. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12478. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12479. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12480. (*(*Txcb_grab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12481. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  12482. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12483. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12484. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12485. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12486. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req67)))
  12487. return xcb_ret
  12488. }
  12489. var _xcb_req67 = Txcb_protocol_request_t{
  12490. Fcount: uint64(2),
  12491. Fopcode: uint8(m_XCB_GRAB_KEYBOARD),
  12492. }
  12493. func Xxcb_grab_keyboard_reply(tls *libc.TLS, c uintptr, cookie Txcb_grab_keyboard_cookie_t, e uintptr) (r uintptr) {
  12494. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12495. }
  12496. func Xxcb_ungrab_keyboard_checked(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12497. bp := tls.Alloc(80)
  12498. defer tls.Free(80)
  12499. var xcb_ret Txcb_void_cookie_t
  12500. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12501. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12502. _ = xcb_ret
  12503. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12504. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12505. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12506. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12507. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12508. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12509. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req68)))
  12510. return xcb_ret
  12511. }
  12512. var _xcb_req68 = Txcb_protocol_request_t{
  12513. Fcount: uint64(2),
  12514. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12515. Fisvoid: uint8(1),
  12516. }
  12517. func Xxcb_ungrab_keyboard(tls *libc.TLS, c uintptr, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12518. bp := tls.Alloc(80)
  12519. defer tls.Free(80)
  12520. var xcb_ret Txcb_void_cookie_t
  12521. var _ /* xcb_out at bp+64 */ Txcb_ungrab_keyboard_request_t
  12522. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12523. _ = xcb_ret
  12524. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12525. (*(*Txcb_ungrab_keyboard_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12526. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12527. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12528. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12529. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12530. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req69)))
  12531. return xcb_ret
  12532. }
  12533. var _xcb_req69 = Txcb_protocol_request_t{
  12534. Fcount: uint64(2),
  12535. Fopcode: uint8(m_XCB_UNGRAB_KEYBOARD),
  12536. Fisvoid: uint8(1),
  12537. }
  12538. 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) {
  12539. bp := tls.Alloc(80)
  12540. defer tls.Free(80)
  12541. var xcb_ret Txcb_void_cookie_t
  12542. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12543. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12544. _ = xcb_ret
  12545. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12546. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12547. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12548. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12549. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12550. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12551. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12552. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12553. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12554. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12555. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12556. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req70)))
  12557. return xcb_ret
  12558. }
  12559. var _xcb_req70 = Txcb_protocol_request_t{
  12560. Fcount: uint64(2),
  12561. Fopcode: uint8(m_XCB_GRAB_KEY),
  12562. Fisvoid: uint8(1),
  12563. }
  12564. 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) {
  12565. bp := tls.Alloc(80)
  12566. defer tls.Free(80)
  12567. var xcb_ret Txcb_void_cookie_t
  12568. var _ /* xcb_out at bp+64 */ Txcb_grab_key_request_t
  12569. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12570. _ = xcb_ret
  12571. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fowner_events = owner_events
  12572. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12573. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12574. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12575. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fpointer_mode = pointer_mode
  12576. (*(*Txcb_grab_key_request_t)(unsafe.Pointer(bp + 64))).Fkeyboard_mode = keyboard_mode
  12577. libc.Xmemset(tls, bp+64+13, 0, uint64(3))
  12578. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12579. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12580. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12581. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12582. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req71)))
  12583. return xcb_ret
  12584. }
  12585. var _xcb_req71 = Txcb_protocol_request_t{
  12586. Fcount: uint64(2),
  12587. Fopcode: uint8(m_XCB_GRAB_KEY),
  12588. Fisvoid: uint8(1),
  12589. }
  12590. 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) {
  12591. bp := tls.Alloc(80)
  12592. defer tls.Free(80)
  12593. var xcb_ret Txcb_void_cookie_t
  12594. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12595. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12596. _ = xcb_ret
  12597. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12598. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12599. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12600. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12601. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12602. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12603. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12604. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12605. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req72)))
  12606. return xcb_ret
  12607. }
  12608. var _xcb_req72 = Txcb_protocol_request_t{
  12609. Fcount: uint64(2),
  12610. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12611. Fisvoid: uint8(1),
  12612. }
  12613. 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) {
  12614. bp := tls.Alloc(80)
  12615. defer tls.Free(80)
  12616. var xcb_ret Txcb_void_cookie_t
  12617. var _ /* xcb_out at bp+64 */ Txcb_ungrab_key_request_t
  12618. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12619. _ = xcb_ret
  12620. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fkey = key
  12621. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fgrab_window = grab_window
  12622. (*(*Txcb_ungrab_key_request_t)(unsafe.Pointer(bp + 64))).Fmodifiers = modifiers
  12623. libc.Xmemset(tls, bp+64+10, 0, uint64(2))
  12624. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12625. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  12626. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12627. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12628. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req73)))
  12629. return xcb_ret
  12630. }
  12631. var _xcb_req73 = Txcb_protocol_request_t{
  12632. Fcount: uint64(2),
  12633. Fopcode: uint8(m_XCB_UNGRAB_KEY),
  12634. Fisvoid: uint8(1),
  12635. }
  12636. func Xxcb_allow_events_checked(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12637. bp := tls.Alloc(80)
  12638. defer tls.Free(80)
  12639. var xcb_ret Txcb_void_cookie_t
  12640. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12641. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12642. _ = xcb_ret
  12643. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12644. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12645. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12646. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12647. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12648. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12649. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req74)))
  12650. return xcb_ret
  12651. }
  12652. var _xcb_req74 = Txcb_protocol_request_t{
  12653. Fcount: uint64(2),
  12654. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12655. Fisvoid: uint8(1),
  12656. }
  12657. func Xxcb_allow_events(tls *libc.TLS, c uintptr, mode Tuint8_t, time Txcb_timestamp_t) (r Txcb_void_cookie_t) {
  12658. bp := tls.Alloc(80)
  12659. defer tls.Free(80)
  12660. var xcb_ret Txcb_void_cookie_t
  12661. var _ /* xcb_out at bp+64 */ Txcb_allow_events_request_t
  12662. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12663. _ = xcb_ret
  12664. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  12665. (*(*Txcb_allow_events_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  12666. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12667. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12668. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12669. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12670. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req75)))
  12671. return xcb_ret
  12672. }
  12673. var _xcb_req75 = Txcb_protocol_request_t{
  12674. Fcount: uint64(2),
  12675. Fopcode: uint8(m_XCB_ALLOW_EVENTS),
  12676. Fisvoid: uint8(1),
  12677. }
  12678. func Xxcb_grab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12679. bp := tls.Alloc(80)
  12680. defer tls.Free(80)
  12681. var xcb_ret Txcb_void_cookie_t
  12682. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12683. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12684. _ = xcb_ret
  12685. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12686. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12687. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12688. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12689. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12690. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req76)))
  12691. return xcb_ret
  12692. }
  12693. var _xcb_req76 = Txcb_protocol_request_t{
  12694. Fcount: uint64(2),
  12695. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12696. Fisvoid: uint8(1),
  12697. }
  12698. func Xxcb_grab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12699. bp := tls.Alloc(80)
  12700. defer tls.Free(80)
  12701. var xcb_ret Txcb_void_cookie_t
  12702. var _ /* xcb_out at bp+64 */ Txcb_grab_server_request_t
  12703. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12704. _ = xcb_ret
  12705. (*(*Txcb_grab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12706. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12707. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12708. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12709. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12710. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req77)))
  12711. return xcb_ret
  12712. }
  12713. var _xcb_req77 = Txcb_protocol_request_t{
  12714. Fcount: uint64(2),
  12715. Fopcode: uint8(m_XCB_GRAB_SERVER),
  12716. Fisvoid: uint8(1),
  12717. }
  12718. func Xxcb_ungrab_server_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12719. bp := tls.Alloc(80)
  12720. defer tls.Free(80)
  12721. var xcb_ret Txcb_void_cookie_t
  12722. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12723. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12724. _ = xcb_ret
  12725. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12726. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12727. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12728. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12729. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12730. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req78)))
  12731. return xcb_ret
  12732. }
  12733. var _xcb_req78 = Txcb_protocol_request_t{
  12734. Fcount: uint64(2),
  12735. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12736. Fisvoid: uint8(1),
  12737. }
  12738. func Xxcb_ungrab_server(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  12739. bp := tls.Alloc(80)
  12740. defer tls.Free(80)
  12741. var xcb_ret Txcb_void_cookie_t
  12742. var _ /* xcb_out at bp+64 */ Txcb_ungrab_server_request_t
  12743. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12744. _ = xcb_ret
  12745. (*(*Txcb_ungrab_server_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12746. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12747. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  12748. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12749. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12750. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req79)))
  12751. return xcb_ret
  12752. }
  12753. var _xcb_req79 = Txcb_protocol_request_t{
  12754. Fcount: uint64(2),
  12755. Fopcode: uint8(m_XCB_UNGRAB_SERVER),
  12756. Fisvoid: uint8(1),
  12757. }
  12758. func Xxcb_query_pointer(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12759. bp := tls.Alloc(80)
  12760. defer tls.Free(80)
  12761. var xcb_ret Txcb_query_pointer_cookie_t
  12762. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12763. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12764. _ = xcb_ret
  12765. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12766. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12767. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12768. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12769. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12770. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12771. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req80)))
  12772. return xcb_ret
  12773. }
  12774. var _xcb_req80 = Txcb_protocol_request_t{
  12775. Fcount: uint64(2),
  12776. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12777. }
  12778. func Xxcb_query_pointer_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_query_pointer_cookie_t) {
  12779. bp := tls.Alloc(80)
  12780. defer tls.Free(80)
  12781. var xcb_ret Txcb_query_pointer_cookie_t
  12782. var _ /* xcb_out at bp+64 */ Txcb_query_pointer_request_t
  12783. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12784. _ = xcb_ret
  12785. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12786. (*(*Txcb_query_pointer_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12787. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12788. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  12789. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12790. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12791. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req81)))
  12792. return xcb_ret
  12793. }
  12794. var _xcb_req81 = Txcb_protocol_request_t{
  12795. Fcount: uint64(2),
  12796. Fopcode: uint8(m_XCB_QUERY_POINTER),
  12797. }
  12798. func Xxcb_query_pointer_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_pointer_cookie_t, e uintptr) (r uintptr) {
  12799. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12800. }
  12801. func Xxcb_timecoord_next(tls *libc.TLS, i uintptr) {
  12802. var p1 uintptr
  12803. _ = p1
  12804. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Frem--
  12805. (*Txcb_timecoord_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  12806. p1 = i + 12
  12807. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  12808. }
  12809. func Xxcb_timecoord_end(tls *libc.TLS, i Txcb_timecoord_iterator_t) (r Txcb_generic_iterator_t) {
  12810. var ret Txcb_generic_iterator_t
  12811. _ = ret
  12812. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  12813. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  12814. ret.Frem = 0
  12815. return ret
  12816. }
  12817. func Xxcb_get_motion_events_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  12818. var _aux, xcb_tmp uintptr
  12819. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  12820. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  12821. xcb_tmp = _buffer
  12822. _aux = _buffer
  12823. xcb_buffer_len = uint32(0)
  12824. xcb_block_len = uint32(0)
  12825. xcb_pad = uint32(0)
  12826. xcb_align_to = uint32(0)
  12827. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  12828. xcb_tmp += uintptr(xcb_block_len)
  12829. xcb_buffer_len += xcb_block_len
  12830. xcb_block_len = uint32(0)
  12831. /* events */
  12832. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(_aux)).Fevents_len)*libc.Uint64FromInt64(8))
  12833. xcb_tmp += uintptr(xcb_block_len)
  12834. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  12835. /* insert padding */
  12836. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  12837. xcb_buffer_len += xcb_block_len + xcb_pad
  12838. if uint32(0) != xcb_pad {
  12839. xcb_tmp += uintptr(xcb_pad)
  12840. xcb_pad = uint32(0)
  12841. }
  12842. xcb_block_len = uint32(0)
  12843. return libc.Int32FromUint32(xcb_buffer_len)
  12844. }
  12845. 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) {
  12846. bp := tls.Alloc(80)
  12847. defer tls.Free(80)
  12848. var xcb_ret Txcb_get_motion_events_cookie_t
  12849. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12850. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12851. _ = xcb_ret
  12852. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12853. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12854. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12855. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12856. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12857. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12858. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12859. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12860. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req82)))
  12861. return xcb_ret
  12862. }
  12863. var _xcb_req82 = Txcb_protocol_request_t{
  12864. Fcount: uint64(2),
  12865. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12866. }
  12867. 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) {
  12868. bp := tls.Alloc(80)
  12869. defer tls.Free(80)
  12870. var xcb_ret Txcb_get_motion_events_cookie_t
  12871. var _ /* xcb_out at bp+64 */ Txcb_get_motion_events_request_t
  12872. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12873. _ = xcb_ret
  12874. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12875. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  12876. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstart = start
  12877. (*(*Txcb_get_motion_events_request_t)(unsafe.Pointer(bp + 64))).Fstop = stop
  12878. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12879. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12880. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12881. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12882. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req83)))
  12883. return xcb_ret
  12884. }
  12885. var _xcb_req83 = Txcb_protocol_request_t{
  12886. Fcount: uint64(2),
  12887. Fopcode: uint8(m_XCB_GET_MOTION_EVENTS),
  12888. }
  12889. func Xxcb_get_motion_events_events(tls *libc.TLS, R uintptr) (r uintptr) {
  12890. return R + libc.UintptrFromInt32(1)*32
  12891. }
  12892. func Xxcb_get_motion_events_events_length(tls *libc.TLS, R uintptr) (r int32) {
  12893. return libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12894. }
  12895. func Xxcb_get_motion_events_events_iterator(tls *libc.TLS, R uintptr) (r Txcb_timecoord_iterator_t) {
  12896. var i Txcb_timecoord_iterator_t
  12897. _ = i
  12898. i.Fdata = R + libc.UintptrFromInt32(1)*32
  12899. i.Frem = libc.Int32FromUint32((*Txcb_get_motion_events_reply_t)(unsafe.Pointer(R)).Fevents_len)
  12900. i.Findex = int32(int64(i.Fdata) - int64(R))
  12901. return i
  12902. }
  12903. func Xxcb_get_motion_events_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_motion_events_cookie_t, e uintptr) (r uintptr) {
  12904. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12905. }
  12906. 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) {
  12907. bp := tls.Alloc(80)
  12908. defer tls.Free(80)
  12909. var xcb_ret Txcb_translate_coordinates_cookie_t
  12910. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12911. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12912. _ = xcb_ret
  12913. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12914. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12915. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12916. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12917. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12918. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12919. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12920. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12921. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12922. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req84)))
  12923. return xcb_ret
  12924. }
  12925. var _xcb_req84 = Txcb_protocol_request_t{
  12926. Fcount: uint64(2),
  12927. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12928. }
  12929. 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) {
  12930. bp := tls.Alloc(80)
  12931. defer tls.Free(80)
  12932. var xcb_ret Txcb_translate_coordinates_cookie_t
  12933. var _ /* xcb_out at bp+64 */ Txcb_translate_coordinates_request_t
  12934. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12935. _ = xcb_ret
  12936. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12937. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12938. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12939. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12940. (*(*Txcb_translate_coordinates_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12941. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12942. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  12943. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12944. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12945. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req85)))
  12946. return xcb_ret
  12947. }
  12948. var _xcb_req85 = Txcb_protocol_request_t{
  12949. Fcount: uint64(2),
  12950. Fopcode: uint8(m_XCB_TRANSLATE_COORDINATES),
  12951. }
  12952. func Xxcb_translate_coordinates_reply(tls *libc.TLS, c uintptr, cookie Txcb_translate_coordinates_cookie_t, e uintptr) (r uintptr) {
  12953. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  12954. }
  12955. 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) {
  12956. bp := tls.Alloc(96)
  12957. defer tls.Free(96)
  12958. var xcb_ret Txcb_void_cookie_t
  12959. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12960. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12961. _ = xcb_ret
  12962. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12963. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12964. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12965. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12966. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12967. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12968. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12969. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12970. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12971. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  12972. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  12973. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  12974. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  12975. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req86)))
  12976. return xcb_ret
  12977. }
  12978. var _xcb_req86 = Txcb_protocol_request_t{
  12979. Fcount: uint64(2),
  12980. Fopcode: uint8(m_XCB_WARP_POINTER),
  12981. Fisvoid: uint8(1),
  12982. }
  12983. 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) {
  12984. bp := tls.Alloc(96)
  12985. defer tls.Free(96)
  12986. var xcb_ret Txcb_void_cookie_t
  12987. var _ /* xcb_out at bp+64 */ Txcb_warp_pointer_request_t
  12988. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  12989. _ = xcb_ret
  12990. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  12991. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_window = src_window
  12992. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_window = dst_window
  12993. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  12994. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  12995. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_width = src_width
  12996. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fsrc_height = src_height
  12997. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  12998. (*(*Txcb_warp_pointer_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  12999. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13000. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  13001. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13002. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13003. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req87)))
  13004. return xcb_ret
  13005. }
  13006. var _xcb_req87 = Txcb_protocol_request_t{
  13007. Fcount: uint64(2),
  13008. Fopcode: uint8(m_XCB_WARP_POINTER),
  13009. Fisvoid: uint8(1),
  13010. }
  13011. 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) {
  13012. bp := tls.Alloc(80)
  13013. defer tls.Free(80)
  13014. var xcb_ret Txcb_void_cookie_t
  13015. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  13016. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13017. _ = xcb_ret
  13018. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  13019. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  13020. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  13021. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13022. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13023. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13024. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13025. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req88)))
  13026. return xcb_ret
  13027. }
  13028. var _xcb_req88 = Txcb_protocol_request_t{
  13029. Fcount: uint64(2),
  13030. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  13031. Fisvoid: uint8(1),
  13032. }
  13033. 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) {
  13034. bp := tls.Alloc(80)
  13035. defer tls.Free(80)
  13036. var xcb_ret Txcb_void_cookie_t
  13037. var _ /* xcb_out at bp+64 */ Txcb_set_input_focus_request_t
  13038. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13039. _ = xcb_ret
  13040. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Frevert_to = revert_to
  13041. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ffocus = focus
  13042. (*(*Txcb_set_input_focus_request_t)(unsafe.Pointer(bp + 64))).Ftime = time
  13043. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13044. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13045. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13046. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13047. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req89)))
  13048. return xcb_ret
  13049. }
  13050. var _xcb_req89 = Txcb_protocol_request_t{
  13051. Fcount: uint64(2),
  13052. Fopcode: uint8(m_XCB_SET_INPUT_FOCUS),
  13053. Fisvoid: uint8(1),
  13054. }
  13055. func Xxcb_get_input_focus(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  13056. bp := tls.Alloc(80)
  13057. defer tls.Free(80)
  13058. var xcb_ret Txcb_get_input_focus_cookie_t
  13059. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  13060. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13061. _ = xcb_ret
  13062. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13066. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13067. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req90)))
  13068. return xcb_ret
  13069. }
  13070. var _xcb_req90 = Txcb_protocol_request_t{
  13071. Fcount: uint64(2),
  13072. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  13073. }
  13074. func Xxcb_get_input_focus_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_input_focus_cookie_t) {
  13075. bp := tls.Alloc(80)
  13076. defer tls.Free(80)
  13077. var xcb_ret Txcb_get_input_focus_cookie_t
  13078. var _ /* xcb_out at bp+64 */ Txcb_get_input_focus_request_t
  13079. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13080. _ = xcb_ret
  13081. (*(*Txcb_get_input_focus_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13082. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13083. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13084. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13085. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13086. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req91)))
  13087. return xcb_ret
  13088. }
  13089. var _xcb_req91 = Txcb_protocol_request_t{
  13090. Fcount: uint64(2),
  13091. Fopcode: uint8(m_XCB_GET_INPUT_FOCUS),
  13092. }
  13093. func Xxcb_get_input_focus_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_input_focus_cookie_t, e uintptr) (r uintptr) {
  13094. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13095. }
  13096. func Xxcb_query_keymap(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  13097. bp := tls.Alloc(80)
  13098. defer tls.Free(80)
  13099. var xcb_ret Txcb_query_keymap_cookie_t
  13100. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  13101. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13102. _ = xcb_ret
  13103. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13104. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13105. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13106. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13107. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13108. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req92)))
  13109. return xcb_ret
  13110. }
  13111. var _xcb_req92 = Txcb_protocol_request_t{
  13112. Fcount: uint64(2),
  13113. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  13114. }
  13115. func Xxcb_query_keymap_unchecked(tls *libc.TLS, c uintptr) (r Txcb_query_keymap_cookie_t) {
  13116. bp := tls.Alloc(80)
  13117. defer tls.Free(80)
  13118. var xcb_ret Txcb_query_keymap_cookie_t
  13119. var _ /* xcb_out at bp+64 */ Txcb_query_keymap_request_t
  13120. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13121. _ = xcb_ret
  13122. (*(*Txcb_query_keymap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13123. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13124. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13125. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13126. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13127. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req93)))
  13128. return xcb_ret
  13129. }
  13130. var _xcb_req93 = Txcb_protocol_request_t{
  13131. Fcount: uint64(2),
  13132. Fopcode: uint8(m_XCB_QUERY_KEYMAP),
  13133. }
  13134. func Xxcb_query_keymap_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_keymap_cookie_t, e uintptr) (r uintptr) {
  13135. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13136. }
  13137. func Xxcb_open_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13138. var _aux, xcb_tmp uintptr
  13139. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13140. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13141. xcb_tmp = _buffer
  13142. _aux = _buffer
  13143. xcb_buffer_len = uint32(0)
  13144. xcb_block_len = uint32(0)
  13145. xcb_pad = uint32(0)
  13146. xcb_align_to = uint32(0)
  13147. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  13148. xcb_tmp += uintptr(xcb_block_len)
  13149. xcb_buffer_len += xcb_block_len
  13150. xcb_block_len = uint32(0)
  13151. /* name */
  13152. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_open_font_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  13153. xcb_tmp += uintptr(xcb_block_len)
  13154. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13155. /* insert padding */
  13156. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13157. xcb_buffer_len += xcb_block_len + xcb_pad
  13158. if uint32(0) != xcb_pad {
  13159. xcb_tmp += uintptr(xcb_pad)
  13160. xcb_pad = uint32(0)
  13161. }
  13162. xcb_block_len = uint32(0)
  13163. return libc.Int32FromUint32(xcb_buffer_len)
  13164. }
  13165. 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) {
  13166. bp := tls.Alloc(112)
  13167. defer tls.Free(112)
  13168. var xcb_ret Txcb_void_cookie_t
  13169. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13170. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13171. _ = xcb_ret
  13172. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13173. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13174. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13175. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13176. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13177. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13178. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13179. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13180. /* char name */
  13181. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13182. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13183. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13184. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13185. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req94)))
  13186. return xcb_ret
  13187. }
  13188. var _xcb_req94 = Txcb_protocol_request_t{
  13189. Fcount: uint64(4),
  13190. Fopcode: uint8(m_XCB_OPEN_FONT),
  13191. Fisvoid: uint8(1),
  13192. }
  13193. func Xxcb_open_font(tls *libc.TLS, c uintptr, fid Txcb_font_t, name_len Tuint16_t, name uintptr) (r Txcb_void_cookie_t) {
  13194. bp := tls.Alloc(112)
  13195. defer tls.Free(112)
  13196. var xcb_ret Txcb_void_cookie_t
  13197. var _ /* xcb_out at bp+96 */ Txcb_open_font_request_t
  13198. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13199. _ = xcb_ret
  13200. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13201. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Ffid = fid
  13202. (*(*Txcb_open_font_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  13203. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  13204. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13205. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  13206. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13207. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13208. /* char name */
  13209. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  13210. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  13211. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13212. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13213. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req95)))
  13214. return xcb_ret
  13215. }
  13216. var _xcb_req95 = Txcb_protocol_request_t{
  13217. Fcount: uint64(4),
  13218. Fopcode: uint8(m_XCB_OPEN_FONT),
  13219. Fisvoid: uint8(1),
  13220. }
  13221. func Xxcb_open_font_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13222. return R + libc.UintptrFromInt32(1)*12
  13223. }
  13224. func Xxcb_open_font_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13225. return libc.Int32FromUint16((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13226. }
  13227. func Xxcb_open_font_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13228. var i Txcb_generic_iterator_t
  13229. _ = i
  13230. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_open_font_request_t)(unsafe.Pointer(R)).Fname_len)
  13231. i.Frem = 0
  13232. i.Findex = int32(int64(i.Fdata) - int64(R))
  13233. return i
  13234. }
  13235. func Xxcb_close_font_checked(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13236. bp := tls.Alloc(80)
  13237. defer tls.Free(80)
  13238. var xcb_ret Txcb_void_cookie_t
  13239. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13240. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13241. _ = xcb_ret
  13242. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13243. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13244. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13245. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13246. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13247. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13248. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req96)))
  13249. return xcb_ret
  13250. }
  13251. var _xcb_req96 = Txcb_protocol_request_t{
  13252. Fcount: uint64(2),
  13253. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13254. Fisvoid: uint8(1),
  13255. }
  13256. func Xxcb_close_font(tls *libc.TLS, c uintptr, font Txcb_font_t) (r Txcb_void_cookie_t) {
  13257. bp := tls.Alloc(80)
  13258. defer tls.Free(80)
  13259. var xcb_ret Txcb_void_cookie_t
  13260. var _ /* xcb_out at bp+64 */ Txcb_close_font_request_t
  13261. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13262. _ = xcb_ret
  13263. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13264. (*(*Txcb_close_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13265. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13266. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13267. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13268. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13269. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req97)))
  13270. return xcb_ret
  13271. }
  13272. var _xcb_req97 = Txcb_protocol_request_t{
  13273. Fcount: uint64(2),
  13274. Fopcode: uint8(m_XCB_CLOSE_FONT),
  13275. Fisvoid: uint8(1),
  13276. }
  13277. func Xxcb_fontprop_next(tls *libc.TLS, i uintptr) {
  13278. var p1 uintptr
  13279. _ = p1
  13280. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Frem--
  13281. (*Txcb_fontprop_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  13282. p1 = i + 12
  13283. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  13284. }
  13285. func Xxcb_fontprop_end(tls *libc.TLS, i Txcb_fontprop_iterator_t) (r Txcb_generic_iterator_t) {
  13286. var ret Txcb_generic_iterator_t
  13287. _ = ret
  13288. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  13289. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13290. ret.Frem = 0
  13291. return ret
  13292. }
  13293. func Xxcb_charinfo_next(tls *libc.TLS, i uintptr) {
  13294. var p1 uintptr
  13295. _ = p1
  13296. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Frem--
  13297. (*Txcb_charinfo_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  13298. p1 = i + 12
  13299. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  13300. }
  13301. func Xxcb_charinfo_end(tls *libc.TLS, i Txcb_charinfo_iterator_t) (r Txcb_generic_iterator_t) {
  13302. var ret Txcb_generic_iterator_t
  13303. _ = ret
  13304. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  13305. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  13306. ret.Frem = 0
  13307. return ret
  13308. }
  13309. func Xxcb_query_font_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13310. var _aux, xcb_tmp uintptr
  13311. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13312. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13313. xcb_tmp = _buffer
  13314. _aux = _buffer
  13315. xcb_buffer_len = uint32(0)
  13316. xcb_block_len = uint32(0)
  13317. xcb_pad = uint32(0)
  13318. xcb_align_to = uint32(0)
  13319. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(60))
  13320. xcb_tmp += uintptr(xcb_block_len)
  13321. xcb_buffer_len += xcb_block_len
  13322. xcb_block_len = uint32(0)
  13323. /* properties */
  13324. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fproperties_len)*libc.Uint64FromInt64(8))
  13325. xcb_tmp += uintptr(xcb_block_len)
  13326. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  13327. /* insert padding */
  13328. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13329. xcb_buffer_len += xcb_block_len + xcb_pad
  13330. if uint32(0) != xcb_pad {
  13331. xcb_tmp += uintptr(xcb_pad)
  13332. xcb_pad = uint32(0)
  13333. }
  13334. xcb_block_len = uint32(0)
  13335. /* char_infos */
  13336. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_font_reply_t)(unsafe.Pointer(_aux)).Fchar_infos_len)*libc.Uint64FromInt64(12))
  13337. xcb_tmp += uintptr(xcb_block_len)
  13338. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  13339. /* insert padding */
  13340. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13341. xcb_buffer_len += xcb_block_len + xcb_pad
  13342. if uint32(0) != xcb_pad {
  13343. xcb_tmp += uintptr(xcb_pad)
  13344. xcb_pad = uint32(0)
  13345. }
  13346. xcb_block_len = uint32(0)
  13347. return libc.Int32FromUint32(xcb_buffer_len)
  13348. }
  13349. func Xxcb_query_font(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13350. bp := tls.Alloc(80)
  13351. defer tls.Free(80)
  13352. var xcb_ret Txcb_query_font_cookie_t
  13353. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13354. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13355. _ = xcb_ret
  13356. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13357. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13360. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13361. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13362. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req98)))
  13363. return xcb_ret
  13364. }
  13365. var _xcb_req98 = Txcb_protocol_request_t{
  13366. Fcount: uint64(2),
  13367. Fopcode: uint8(m_XCB_QUERY_FONT),
  13368. }
  13369. func Xxcb_query_font_unchecked(tls *libc.TLS, c uintptr, font Txcb_fontable_t) (r Txcb_query_font_cookie_t) {
  13370. bp := tls.Alloc(80)
  13371. defer tls.Free(80)
  13372. var xcb_ret Txcb_query_font_cookie_t
  13373. var _ /* xcb_out at bp+64 */ Txcb_query_font_request_t
  13374. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13375. _ = xcb_ret
  13376. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13377. (*(*Txcb_query_font_request_t)(unsafe.Pointer(bp + 64))).Ffont = font
  13378. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13379. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13380. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13381. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13382. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req99)))
  13383. return xcb_ret
  13384. }
  13385. var _xcb_req99 = Txcb_protocol_request_t{
  13386. Fcount: uint64(2),
  13387. Fopcode: uint8(m_XCB_QUERY_FONT),
  13388. }
  13389. func Xxcb_query_font_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13390. return R + libc.UintptrFromInt32(1)*60
  13391. }
  13392. func Xxcb_query_font_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13393. return libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13394. }
  13395. func Xxcb_query_font_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13396. var i Txcb_fontprop_iterator_t
  13397. _ = i
  13398. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13399. i.Frem = libc.Int32FromUint16((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13400. i.Findex = int32(int64(i.Fdata) - int64(R))
  13401. return i
  13402. }
  13403. func Xxcb_query_font_char_infos(tls *libc.TLS, R uintptr) (r uintptr) {
  13404. var prev Txcb_generic_iterator_t
  13405. _ = prev
  13406. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13407. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3)) + libc.UintptrFromInt32(0)
  13408. }
  13409. func Xxcb_query_font_char_infos_length(tls *libc.TLS, R uintptr) (r int32) {
  13410. return libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13411. }
  13412. func Xxcb_query_font_char_infos_iterator(tls *libc.TLS, R uintptr) (r Txcb_charinfo_iterator_t) {
  13413. var i Txcb_charinfo_iterator_t
  13414. var prev Txcb_generic_iterator_t
  13415. _, _ = i, prev
  13416. prev = Xxcb_fontprop_end(tls, Xxcb_query_font_properties_iterator(tls, R))
  13417. i.Fdata = prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&libc.Uint64FromInt32(3))
  13418. i.Frem = libc.Int32FromUint32((*Txcb_query_font_reply_t)(unsafe.Pointer(R)).Fchar_infos_len)
  13419. i.Findex = int32(int64(i.Fdata) - int64(R))
  13420. return i
  13421. }
  13422. func Xxcb_query_font_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_font_cookie_t, e uintptr) (r uintptr) {
  13423. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13424. }
  13425. func Xxcb_query_text_extents_sizeof(tls *libc.TLS, _buffer uintptr, string_len Tuint32_t) (r int32) {
  13426. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13427. var xcb_tmp uintptr
  13428. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13429. xcb_tmp = _buffer
  13430. xcb_buffer_len = uint32(0)
  13431. xcb_block_len = uint32(0)
  13432. xcb_pad = uint32(0)
  13433. xcb_align_to = uint32(0)
  13434. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13435. xcb_tmp += uintptr(xcb_block_len)
  13436. xcb_buffer_len += xcb_block_len
  13437. xcb_block_len = uint32(0)
  13438. /* string */
  13439. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(string_len)*libc.Uint64FromInt64(2))
  13440. xcb_tmp += uintptr(xcb_block_len)
  13441. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13442. /* insert padding */
  13443. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13444. xcb_buffer_len += xcb_block_len + xcb_pad
  13445. if uint32(0) != xcb_pad {
  13446. xcb_tmp += uintptr(xcb_pad)
  13447. xcb_pad = uint32(0)
  13448. }
  13449. xcb_block_len = uint32(0)
  13450. return libc.Int32FromUint32(xcb_buffer_len)
  13451. }
  13452. 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) {
  13453. bp := tls.Alloc(112)
  13454. defer tls.Free(112)
  13455. var xcb_ret Txcb_query_text_extents_cookie_t
  13456. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13457. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13458. _ = xcb_ret
  13459. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13460. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13461. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13462. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13463. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13464. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13465. /* xcb_char2b_t string */
  13466. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13467. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13468. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13469. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13470. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req100)))
  13471. return xcb_ret
  13472. }
  13473. var _xcb_req100 = Txcb_protocol_request_t{
  13474. Fcount: uint64(4),
  13475. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13476. }
  13477. 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) {
  13478. bp := tls.Alloc(112)
  13479. defer tls.Free(112)
  13480. var xcb_ret Txcb_query_text_extents_cookie_t
  13481. var _ /* xcb_out at bp+96 */ Txcb_query_text_extents_request_t
  13482. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13483. _ = xcb_ret
  13484. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Fodd_length = uint8(string_len & libc.Uint32FromInt32(1))
  13485. (*(*Txcb_query_text_extents_request_t)(unsafe.Pointer(bp + 96))).Ffont = font
  13486. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13487. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13488. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13489. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13490. /* xcb_char2b_t string */
  13491. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  13492. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  13493. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13494. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13495. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req101)))
  13496. return xcb_ret
  13497. }
  13498. var _xcb_req101 = Txcb_protocol_request_t{
  13499. Fcount: uint64(4),
  13500. Fopcode: uint8(m_XCB_QUERY_TEXT_EXTENTS),
  13501. }
  13502. func Xxcb_query_text_extents_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_text_extents_cookie_t, e uintptr) (r uintptr) {
  13503. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13504. }
  13505. func Xxcb_str_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13506. var _aux, xcb_tmp uintptr
  13507. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13508. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13509. xcb_tmp = _buffer
  13510. _aux = _buffer
  13511. xcb_buffer_len = uint32(0)
  13512. xcb_block_len = uint32(0)
  13513. xcb_pad = uint32(0)
  13514. xcb_align_to = uint32(0)
  13515. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(1))
  13516. xcb_tmp += uintptr(xcb_block_len)
  13517. xcb_buffer_len += xcb_block_len
  13518. xcb_block_len = uint32(0)
  13519. /* name */
  13520. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_str_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  13521. xcb_tmp += uintptr(xcb_block_len)
  13522. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13523. /* insert padding */
  13524. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13525. xcb_buffer_len += xcb_block_len + xcb_pad
  13526. if uint32(0) != xcb_pad {
  13527. xcb_tmp += uintptr(xcb_pad)
  13528. xcb_pad = uint32(0)
  13529. }
  13530. xcb_block_len = uint32(0)
  13531. return libc.Int32FromUint32(xcb_buffer_len)
  13532. }
  13533. func Xxcb_str_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13534. return R + libc.UintptrFromInt32(1)
  13535. }
  13536. func Xxcb_str_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13537. return libc.Int32FromUint8((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13538. }
  13539. func Xxcb_str_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13540. var i Txcb_generic_iterator_t
  13541. _ = i
  13542. i.Fdata = R + libc.UintptrFromInt32(1) + uintptr((*Txcb_str_t)(unsafe.Pointer(R)).Fname_len)
  13543. i.Frem = 0
  13544. i.Findex = int32(int64(i.Fdata) - int64(R))
  13545. return i
  13546. }
  13547. func Xxcb_str_next(tls *libc.TLS, i uintptr) {
  13548. var R uintptr
  13549. var child Txcb_generic_iterator_t
  13550. _, _ = R, child
  13551. R = (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata
  13552. child.Fdata = R + uintptr(Xxcb_str_sizeof(tls, R))
  13553. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata))
  13554. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Frem--
  13555. (*Txcb_str_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  13556. }
  13557. func Xxcb_str_end(tls *libc.TLS, _i Txcb_str_iterator_t) (r Txcb_generic_iterator_t) {
  13558. bp := tls.Alloc(16)
  13559. defer tls.Free(16)
  13560. *(*Txcb_str_iterator_t)(unsafe.Pointer(bp)) = _i
  13561. var ret Txcb_generic_iterator_t
  13562. _ = ret
  13563. for (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  13564. Xxcb_str_next(tls, bp)
  13565. }
  13566. ret.Fdata = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Fdata
  13567. ret.Frem = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Frem
  13568. ret.Findex = (*(*Txcb_str_iterator_t)(unsafe.Pointer(bp))).Findex
  13569. return ret
  13570. }
  13571. func Xxcb_list_fonts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13572. var _aux, xcb_tmp uintptr
  13573. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13574. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13575. xcb_tmp = _buffer
  13576. _aux = _buffer
  13577. xcb_buffer_len = uint32(0)
  13578. xcb_block_len = uint32(0)
  13579. xcb_pad = uint32(0)
  13580. xcb_align_to = uint32(0)
  13581. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13582. xcb_tmp += uintptr(xcb_block_len)
  13583. xcb_buffer_len += xcb_block_len
  13584. xcb_block_len = uint32(0)
  13585. /* pattern */
  13586. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13587. xcb_tmp += uintptr(xcb_block_len)
  13588. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13589. /* insert padding */
  13590. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13591. xcb_buffer_len += xcb_block_len + xcb_pad
  13592. if uint32(0) != xcb_pad {
  13593. xcb_tmp += uintptr(xcb_pad)
  13594. xcb_pad = uint32(0)
  13595. }
  13596. xcb_block_len = uint32(0)
  13597. return libc.Int32FromUint32(xcb_buffer_len)
  13598. }
  13599. 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) {
  13600. bp := tls.Alloc(112)
  13601. defer tls.Free(112)
  13602. var xcb_ret Txcb_list_fonts_cookie_t
  13603. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13604. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13605. _ = xcb_ret
  13606. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13607. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13608. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13609. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13610. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13611. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13612. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13613. /* char pattern */
  13614. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13615. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13616. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13617. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13618. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req102)))
  13619. return xcb_ret
  13620. }
  13621. var _xcb_req102 = Txcb_protocol_request_t{
  13622. Fcount: uint64(4),
  13623. Fopcode: uint8(m_XCB_LIST_FONTS),
  13624. }
  13625. 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) {
  13626. bp := tls.Alloc(112)
  13627. defer tls.Free(112)
  13628. var xcb_ret Txcb_list_fonts_cookie_t
  13629. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_request_t
  13630. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13631. _ = xcb_ret
  13632. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13633. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13634. (*(*Txcb_list_fonts_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13635. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13636. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13637. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13638. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13639. /* char pattern */
  13640. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13641. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13642. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13643. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13644. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req103)))
  13645. return xcb_ret
  13646. }
  13647. var _xcb_req103 = Txcb_protocol_request_t{
  13648. Fcount: uint64(4),
  13649. Fopcode: uint8(m_XCB_LIST_FONTS),
  13650. }
  13651. func Xxcb_list_fonts_names_length(tls *libc.TLS, R uintptr) (r int32) {
  13652. return libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13653. }
  13654. func Xxcb_list_fonts_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13655. var i Txcb_str_iterator_t
  13656. _ = i
  13657. i.Fdata = R + libc.UintptrFromInt32(1)*32
  13658. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_reply_t)(unsafe.Pointer(R)).Fnames_len)
  13659. i.Findex = int32(int64(i.Fdata) - int64(R))
  13660. return i
  13661. }
  13662. func Xxcb_list_fonts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_cookie_t, e uintptr) (r uintptr) {
  13663. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13664. }
  13665. func Xxcb_list_fonts_with_info_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13666. var _aux, xcb_tmp uintptr
  13667. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  13668. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  13669. xcb_tmp = _buffer
  13670. _aux = _buffer
  13671. xcb_buffer_len = uint32(0)
  13672. xcb_block_len = uint32(0)
  13673. xcb_pad = uint32(0)
  13674. xcb_align_to = uint32(0)
  13675. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13676. xcb_tmp += uintptr(xcb_block_len)
  13677. xcb_buffer_len += xcb_block_len
  13678. xcb_block_len = uint32(0)
  13679. /* pattern */
  13680. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(_aux)).Fpattern_len)*libc.Uint64FromInt64(1))
  13681. xcb_tmp += uintptr(xcb_block_len)
  13682. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13683. /* insert padding */
  13684. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13685. xcb_buffer_len += xcb_block_len + xcb_pad
  13686. if uint32(0) != xcb_pad {
  13687. xcb_tmp += uintptr(xcb_pad)
  13688. xcb_pad = uint32(0)
  13689. }
  13690. xcb_block_len = uint32(0)
  13691. return libc.Int32FromUint32(xcb_buffer_len)
  13692. }
  13693. 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) {
  13694. bp := tls.Alloc(112)
  13695. defer tls.Free(112)
  13696. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13697. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13698. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13699. _ = xcb_ret
  13700. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13701. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13702. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13703. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13704. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13705. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13706. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13707. /* char pattern */
  13708. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13709. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13710. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13711. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13712. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req104)))
  13713. return xcb_ret
  13714. }
  13715. var _xcb_req104 = Txcb_protocol_request_t{
  13716. Fcount: uint64(4),
  13717. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13718. }
  13719. 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) {
  13720. bp := tls.Alloc(112)
  13721. defer tls.Free(112)
  13722. var xcb_ret Txcb_list_fonts_with_info_cookie_t
  13723. var _ /* xcb_out at bp+96 */ Txcb_list_fonts_with_info_request_t
  13724. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13725. _ = xcb_ret
  13726. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13727. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fmax_names = max_names
  13728. (*(*Txcb_list_fonts_with_info_request_t)(unsafe.Pointer(bp + 96))).Fpattern_len = pattern_len
  13729. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13730. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13731. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13732. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13733. /* char pattern */
  13734. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pattern
  13735. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pattern_len) * uint64(1)
  13736. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13738. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req105)))
  13739. return xcb_ret
  13740. }
  13741. var _xcb_req105 = Txcb_protocol_request_t{
  13742. Fcount: uint64(4),
  13743. Fopcode: uint8(m_XCB_LIST_FONTS_WITH_INFO),
  13744. }
  13745. func Xxcb_list_fonts_with_info_properties(tls *libc.TLS, R uintptr) (r uintptr) {
  13746. return R + libc.UintptrFromInt32(1)*60
  13747. }
  13748. func Xxcb_list_fonts_with_info_properties_length(tls *libc.TLS, R uintptr) (r int32) {
  13749. return libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13750. }
  13751. func Xxcb_list_fonts_with_info_properties_iterator(tls *libc.TLS, R uintptr) (r Txcb_fontprop_iterator_t) {
  13752. var i Txcb_fontprop_iterator_t
  13753. _ = i
  13754. i.Fdata = R + libc.UintptrFromInt32(1)*60
  13755. i.Frem = libc.Int32FromUint16((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fproperties_len)
  13756. i.Findex = int32(int64(i.Fdata) - int64(R))
  13757. return i
  13758. }
  13759. func Xxcb_list_fonts_with_info_name(tls *libc.TLS, R uintptr) (r uintptr) {
  13760. var prev Txcb_generic_iterator_t
  13761. _ = prev
  13762. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13763. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(1)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  13764. }
  13765. func Xxcb_list_fonts_with_info_name_length(tls *libc.TLS, R uintptr) (r int32) {
  13766. return libc.Int32FromUint8((*Txcb_list_fonts_with_info_reply_t)(unsafe.Pointer(R)).Fname_len)
  13767. }
  13768. func Xxcb_list_fonts_with_info_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  13769. var i, prev Txcb_generic_iterator_t
  13770. _, _ = i, prev
  13771. prev = Xxcb_fontprop_end(tls, Xxcb_list_fonts_with_info_properties_iterator(tls, R))
  13772. 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)
  13773. i.Frem = 0
  13774. i.Findex = int32(int64(i.Fdata) - int64(R))
  13775. return i
  13776. }
  13777. func Xxcb_list_fonts_with_info_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_fonts_with_info_cookie_t, e uintptr) (r uintptr) {
  13778. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  13779. }
  13780. func Xxcb_set_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13781. var _aux, xcb_tmp uintptr
  13782. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13783. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13784. xcb_tmp = _buffer
  13785. _aux = _buffer
  13786. xcb_buffer_len = uint32(0)
  13787. xcb_block_len = uint32(0)
  13788. xcb_pad = uint32(0)
  13789. xcb_align_to = uint32(0)
  13790. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  13791. xcb_tmp += uintptr(xcb_block_len)
  13792. xcb_buffer_len += xcb_block_len
  13793. xcb_block_len = uint32(0)
  13794. /* font */
  13795. i = uint32(0)
  13796. for {
  13797. if !(i < uint32((*Txcb_set_font_path_request_t)(unsafe.Pointer(_aux)).Ffont_qty)) {
  13798. break
  13799. }
  13800. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13801. xcb_block_len += xcb_tmp_len
  13802. xcb_tmp += uintptr(xcb_tmp_len)
  13803. goto _1
  13804. _1:
  13805. ;
  13806. i++
  13807. }
  13808. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13809. /* insert padding */
  13810. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13811. xcb_buffer_len += xcb_block_len + xcb_pad
  13812. if uint32(0) != xcb_pad {
  13813. xcb_tmp += uintptr(xcb_pad)
  13814. xcb_pad = uint32(0)
  13815. }
  13816. xcb_block_len = uint32(0)
  13817. return libc.Int32FromUint32(xcb_buffer_len)
  13818. }
  13819. func Xxcb_set_font_path_checked(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13820. bp := tls.Alloc(112)
  13821. defer tls.Free(112)
  13822. var i, xcb_tmp_len uint32
  13823. var xcb_ret Txcb_void_cookie_t
  13824. var xcb_tmp uintptr
  13825. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13826. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13827. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13828. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13829. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13830. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13831. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13832. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13833. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13834. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13835. /* xcb_str_t font */
  13836. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13837. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13838. xcb_tmp = font
  13839. i = uint32(0)
  13840. for {
  13841. if !(i < uint32(font_qty)) {
  13842. break
  13843. }
  13844. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13845. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13846. xcb_tmp += uintptr(xcb_tmp_len)
  13847. goto _1
  13848. _1:
  13849. ;
  13850. i++
  13851. }
  13852. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13853. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13854. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req106)))
  13855. return xcb_ret
  13856. }
  13857. var _xcb_req106 = Txcb_protocol_request_t{
  13858. Fcount: uint64(4),
  13859. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13860. Fisvoid: uint8(1),
  13861. }
  13862. func Xxcb_set_font_path(tls *libc.TLS, c uintptr, font_qty Tuint16_t, font uintptr) (r Txcb_void_cookie_t) {
  13863. bp := tls.Alloc(112)
  13864. defer tls.Free(112)
  13865. var i, xcb_tmp_len uint32
  13866. var xcb_ret Txcb_void_cookie_t
  13867. var xcb_tmp uintptr
  13868. var _ /* xcb_out at bp+96 */ Txcb_set_font_path_request_t
  13869. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  13870. _, _, _, _ = i, xcb_ret, xcb_tmp, xcb_tmp_len
  13871. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  13872. (*(*Txcb_set_font_path_request_t)(unsafe.Pointer(bp + 96))).Ffont_qty = font_qty
  13873. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  13874. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  13875. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  13876. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13877. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13878. /* xcb_str_t font */
  13879. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = font
  13880. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(0)
  13881. xcb_tmp = font
  13882. i = uint32(0)
  13883. for {
  13884. if !(i < uint32(font_qty)) {
  13885. break
  13886. }
  13887. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13888. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len += uint64(xcb_tmp_len)
  13889. xcb_tmp += uintptr(xcb_tmp_len)
  13890. goto _1
  13891. _1:
  13892. ;
  13893. i++
  13894. }
  13895. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  13896. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  13897. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req107)))
  13898. return xcb_ret
  13899. }
  13900. var _xcb_req107 = Txcb_protocol_request_t{
  13901. Fcount: uint64(4),
  13902. Fopcode: uint8(m_XCB_SET_FONT_PATH),
  13903. Fisvoid: uint8(1),
  13904. }
  13905. func Xxcb_set_font_path_font_length(tls *libc.TLS, R uintptr) (r int32) {
  13906. return libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13907. }
  13908. func Xxcb_set_font_path_font_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13909. var i Txcb_str_iterator_t
  13910. _ = i
  13911. i.Fdata = R + libc.UintptrFromInt32(1)*8
  13912. i.Frem = libc.Int32FromUint16((*Txcb_set_font_path_request_t)(unsafe.Pointer(R)).Ffont_qty)
  13913. i.Findex = int32(int64(i.Fdata) - int64(R))
  13914. return i
  13915. }
  13916. func Xxcb_get_font_path_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  13917. var _aux, xcb_tmp uintptr
  13918. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  13919. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  13920. xcb_tmp = _buffer
  13921. _aux = _buffer
  13922. xcb_buffer_len = uint32(0)
  13923. xcb_block_len = uint32(0)
  13924. xcb_pad = uint32(0)
  13925. xcb_align_to = uint32(0)
  13926. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  13927. xcb_tmp += uintptr(xcb_block_len)
  13928. xcb_buffer_len += xcb_block_len
  13929. xcb_block_len = uint32(0)
  13930. /* path */
  13931. i = uint32(0)
  13932. for {
  13933. if !(i < uint32((*Txcb_get_font_path_reply_t)(unsafe.Pointer(_aux)).Fpath_len)) {
  13934. break
  13935. }
  13936. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  13937. xcb_block_len += xcb_tmp_len
  13938. xcb_tmp += uintptr(xcb_tmp_len)
  13939. goto _1
  13940. _1:
  13941. ;
  13942. i++
  13943. }
  13944. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  13945. /* insert padding */
  13946. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  13947. xcb_buffer_len += xcb_block_len + xcb_pad
  13948. if uint32(0) != xcb_pad {
  13949. xcb_tmp += uintptr(xcb_pad)
  13950. xcb_pad = uint32(0)
  13951. }
  13952. xcb_block_len = uint32(0)
  13953. return libc.Int32FromUint32(xcb_buffer_len)
  13954. }
  13955. func Xxcb_get_font_path(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13956. bp := tls.Alloc(80)
  13957. defer tls.Free(80)
  13958. var xcb_ret Txcb_get_font_path_cookie_t
  13959. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13960. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13961. _ = xcb_ret
  13962. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13963. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13964. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13965. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13966. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13967. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req108)))
  13968. return xcb_ret
  13969. }
  13970. var _xcb_req108 = Txcb_protocol_request_t{
  13971. Fcount: uint64(2),
  13972. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13973. }
  13974. func Xxcb_get_font_path_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_font_path_cookie_t) {
  13975. bp := tls.Alloc(80)
  13976. defer tls.Free(80)
  13977. var xcb_ret Txcb_get_font_path_cookie_t
  13978. var _ /* xcb_out at bp+64 */ Txcb_get_font_path_request_t
  13979. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  13980. _ = xcb_ret
  13981. (*(*Txcb_get_font_path_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  13982. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  13983. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  13984. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  13985. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  13986. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req109)))
  13987. return xcb_ret
  13988. }
  13989. var _xcb_req109 = Txcb_protocol_request_t{
  13990. Fcount: uint64(2),
  13991. Fopcode: uint8(m_XCB_GET_FONT_PATH),
  13992. }
  13993. func Xxcb_get_font_path_path_length(tls *libc.TLS, R uintptr) (r int32) {
  13994. return libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  13995. }
  13996. func Xxcb_get_font_path_path_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  13997. var i Txcb_str_iterator_t
  13998. _ = i
  13999. i.Fdata = R + libc.UintptrFromInt32(1)*32
  14000. i.Frem = libc.Int32FromUint16((*Txcb_get_font_path_reply_t)(unsafe.Pointer(R)).Fpath_len)
  14001. i.Findex = int32(int64(i.Fdata) - int64(R))
  14002. return i
  14003. }
  14004. func Xxcb_get_font_path_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_font_path_cookie_t, e uintptr) (r uintptr) {
  14005. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  14006. }
  14007. 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) {
  14008. bp := tls.Alloc(80)
  14009. defer tls.Free(80)
  14010. var xcb_ret Txcb_void_cookie_t
  14011. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  14012. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  14013. _ = xcb_ret
  14014. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  14015. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  14016. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  14017. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  14018. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  14019. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  14020. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14021. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14022. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14023. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req110)))
  14024. return xcb_ret
  14025. }
  14026. var _xcb_req110 = Txcb_protocol_request_t{
  14027. Fcount: uint64(2),
  14028. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  14029. Fisvoid: uint8(1),
  14030. }
  14031. 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) {
  14032. bp := tls.Alloc(80)
  14033. defer tls.Free(80)
  14034. var xcb_ret Txcb_void_cookie_t
  14035. var _ /* xcb_out at bp+64 */ Txcb_create_pixmap_request_t
  14036. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  14037. _ = xcb_ret
  14038. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdepth = depth
  14039. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpid = pid
  14040. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  14041. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  14042. (*(*Txcb_create_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  14043. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  14044. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14045. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14046. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14047. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req111)))
  14048. return xcb_ret
  14049. }
  14050. var _xcb_req111 = Txcb_protocol_request_t{
  14051. Fcount: uint64(2),
  14052. Fopcode: uint8(m_XCB_CREATE_PIXMAP),
  14053. Fisvoid: uint8(1),
  14054. }
  14055. func Xxcb_free_pixmap_checked(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  14056. bp := tls.Alloc(80)
  14057. defer tls.Free(80)
  14058. var xcb_ret Txcb_void_cookie_t
  14059. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  14060. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  14061. _ = xcb_ret
  14062. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  14063. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  14064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  14065. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  14066. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14067. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14068. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req112)))
  14069. return xcb_ret
  14070. }
  14071. var _xcb_req112 = Txcb_protocol_request_t{
  14072. Fcount: uint64(2),
  14073. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  14074. Fisvoid: uint8(1),
  14075. }
  14076. func Xxcb_free_pixmap(tls *libc.TLS, c uintptr, pixmap Txcb_pixmap_t) (r Txcb_void_cookie_t) {
  14077. bp := tls.Alloc(80)
  14078. defer tls.Free(80)
  14079. var xcb_ret Txcb_void_cookie_t
  14080. var _ /* xcb_out at bp+64 */ Txcb_free_pixmap_request_t
  14081. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  14082. _ = xcb_ret
  14083. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  14084. (*(*Txcb_free_pixmap_request_t)(unsafe.Pointer(bp + 64))).Fpixmap = pixmap
  14085. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  14086. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  14087. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14088. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14089. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req113)))
  14090. return xcb_ret
  14091. }
  14092. var _xcb_req113 = Txcb_protocol_request_t{
  14093. Fcount: uint64(2),
  14094. Fopcode: uint8(m_XCB_FREE_PIXMAP),
  14095. Fisvoid: uint8(1),
  14096. }
  14097. func Xxcb_create_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14098. bp := tls.Alloc(16)
  14099. defer tls.Free(16)
  14100. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14101. var xcb_out, xcb_tmp uintptr
  14102. var xcb_parts [24]Tiovec
  14103. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  14104. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14105. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14106. xcb_buffer_len = uint32(0)
  14107. xcb_align_to = uint32(0)
  14108. xcb_padding_offset = uint32(0)
  14109. xcb_pad = uint32(0)
  14110. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  14111. xcb_parts_idx = uint32(0)
  14112. xcb_block_len = uint32(0)
  14113. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14114. /* xcb_create_gc_value_list_t.function */
  14115. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14116. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14117. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14118. xcb_parts_idx++
  14119. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14120. }
  14121. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14122. /* xcb_create_gc_value_list_t.plane_mask */
  14123. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14124. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14125. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14126. xcb_parts_idx++
  14127. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14128. }
  14129. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14130. /* xcb_create_gc_value_list_t.foreground */
  14131. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14132. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14133. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14134. xcb_parts_idx++
  14135. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14136. }
  14137. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14138. /* xcb_create_gc_value_list_t.background */
  14139. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14140. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14141. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14142. xcb_parts_idx++
  14143. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14144. }
  14145. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14146. /* xcb_create_gc_value_list_t.line_width */
  14147. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14148. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14149. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14150. xcb_parts_idx++
  14151. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14152. }
  14153. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14154. /* xcb_create_gc_value_list_t.line_style */
  14155. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14156. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14157. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14158. xcb_parts_idx++
  14159. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14160. }
  14161. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14162. /* xcb_create_gc_value_list_t.cap_style */
  14163. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14164. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14165. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14166. xcb_parts_idx++
  14167. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14168. }
  14169. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14170. /* xcb_create_gc_value_list_t.join_style */
  14171. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14172. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14173. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14174. xcb_parts_idx++
  14175. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14176. }
  14177. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14178. /* xcb_create_gc_value_list_t.fill_style */
  14179. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14180. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14181. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14182. xcb_parts_idx++
  14183. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14184. }
  14185. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14186. /* xcb_create_gc_value_list_t.fill_rule */
  14187. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14188. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14189. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14190. xcb_parts_idx++
  14191. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14192. }
  14193. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14194. /* xcb_create_gc_value_list_t.tile */
  14195. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14196. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14197. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14198. xcb_parts_idx++
  14199. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14200. }
  14201. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14202. /* xcb_create_gc_value_list_t.stipple */
  14203. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14204. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14205. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14206. xcb_parts_idx++
  14207. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14208. }
  14209. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14210. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14211. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14212. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14213. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14214. xcb_parts_idx++
  14215. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14216. }
  14217. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14218. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14219. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14220. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14221. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14222. xcb_parts_idx++
  14223. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14224. }
  14225. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14226. /* xcb_create_gc_value_list_t.font */
  14227. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14228. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14229. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14230. xcb_parts_idx++
  14231. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14232. }
  14233. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14234. /* xcb_create_gc_value_list_t.subwindow_mode */
  14235. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14236. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14237. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14238. xcb_parts_idx++
  14239. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14240. }
  14241. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14242. /* xcb_create_gc_value_list_t.graphics_exposures */
  14243. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14244. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14245. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14246. xcb_parts_idx++
  14247. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14248. }
  14249. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14250. /* xcb_create_gc_value_list_t.clip_x_origin */
  14251. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14252. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14253. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14254. xcb_parts_idx++
  14255. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14256. }
  14257. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14258. /* xcb_create_gc_value_list_t.clip_y_origin */
  14259. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14260. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14261. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14262. xcb_parts_idx++
  14263. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14264. }
  14265. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14266. /* xcb_create_gc_value_list_t.clip_mask */
  14267. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14268. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14269. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14270. xcb_parts_idx++
  14271. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14272. }
  14273. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14274. /* xcb_create_gc_value_list_t.dash_offset */
  14275. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14276. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14277. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14278. xcb_parts_idx++
  14279. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14280. }
  14281. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14282. /* xcb_create_gc_value_list_t.dashes */
  14283. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14284. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14285. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14286. xcb_parts_idx++
  14287. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14288. }
  14289. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14290. /* xcb_create_gc_value_list_t.arc_mode */
  14291. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14292. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14293. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14294. xcb_parts_idx++
  14295. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14296. }
  14297. /* insert padding */
  14298. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14299. xcb_buffer_len += xcb_block_len + xcb_pad
  14300. if uint32(0) != xcb_pad {
  14301. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14302. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14303. xcb_parts_idx++
  14304. xcb_pad = uint32(0)
  14305. }
  14306. xcb_block_len = uint32(0)
  14307. xcb_padding_offset = uint32(0)
  14308. if libc.UintptrFromInt32(0) == xcb_out {
  14309. /* allocate memory */
  14310. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14311. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14312. }
  14313. xcb_tmp = xcb_out
  14314. i = uint32(0)
  14315. for {
  14316. if !(i < xcb_parts_idx) {
  14317. break
  14318. }
  14319. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14320. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14321. }
  14322. if uint64(0) != xcb_parts[i].Fiov_len {
  14323. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14324. }
  14325. goto _1
  14326. _1:
  14327. ;
  14328. i++
  14329. }
  14330. return libc.Int32FromUint32(xcb_buffer_len)
  14331. }
  14332. func Xxcb_create_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14333. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14334. var xcb_tmp uintptr
  14335. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14336. xcb_tmp = _buffer
  14337. xcb_buffer_len = uint32(0)
  14338. xcb_block_len = uint32(0)
  14339. xcb_pad = uint32(0)
  14340. xcb_align_to = uint32(0)
  14341. xcb_padding_offset = uint32(0)
  14342. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14343. /* xcb_create_gc_value_list_t.function */
  14344. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14345. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14346. xcb_tmp += uintptr(4)
  14347. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14348. }
  14349. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14350. /* xcb_create_gc_value_list_t.plane_mask */
  14351. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14352. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14353. xcb_tmp += uintptr(4)
  14354. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14355. }
  14356. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14357. /* xcb_create_gc_value_list_t.foreground */
  14358. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14359. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14360. xcb_tmp += uintptr(4)
  14361. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14362. }
  14363. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14364. /* xcb_create_gc_value_list_t.background */
  14365. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14366. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14367. xcb_tmp += uintptr(4)
  14368. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14369. }
  14370. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14371. /* xcb_create_gc_value_list_t.line_width */
  14372. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14373. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14374. xcb_tmp += uintptr(4)
  14375. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14376. }
  14377. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14378. /* xcb_create_gc_value_list_t.line_style */
  14379. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14380. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14381. xcb_tmp += uintptr(4)
  14382. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14383. }
  14384. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14385. /* xcb_create_gc_value_list_t.cap_style */
  14386. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14387. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14388. xcb_tmp += uintptr(4)
  14389. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14390. }
  14391. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14392. /* xcb_create_gc_value_list_t.join_style */
  14393. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14394. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14395. xcb_tmp += uintptr(4)
  14396. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14397. }
  14398. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14399. /* xcb_create_gc_value_list_t.fill_style */
  14400. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14401. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14402. xcb_tmp += uintptr(4)
  14403. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14404. }
  14405. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14406. /* xcb_create_gc_value_list_t.fill_rule */
  14407. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14408. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14409. xcb_tmp += uintptr(4)
  14410. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14411. }
  14412. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14413. /* xcb_create_gc_value_list_t.tile */
  14414. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14415. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14416. xcb_tmp += uintptr(4)
  14417. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14418. }
  14419. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14420. /* xcb_create_gc_value_list_t.stipple */
  14421. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14422. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14423. xcb_tmp += uintptr(4)
  14424. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14425. }
  14426. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14427. /* xcb_create_gc_value_list_t.tile_stipple_x_origin */
  14428. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14429. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14430. xcb_tmp += uintptr(4)
  14431. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14432. }
  14433. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14434. /* xcb_create_gc_value_list_t.tile_stipple_y_origin */
  14435. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14436. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14437. xcb_tmp += uintptr(4)
  14438. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14439. }
  14440. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14441. /* xcb_create_gc_value_list_t.font */
  14442. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  14443. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14444. xcb_tmp += uintptr(4)
  14445. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14446. }
  14447. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14448. /* xcb_create_gc_value_list_t.subwindow_mode */
  14449. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14450. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14451. xcb_tmp += uintptr(4)
  14452. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14453. }
  14454. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14455. /* xcb_create_gc_value_list_t.graphics_exposures */
  14456. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  14457. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14458. xcb_tmp += uintptr(4)
  14459. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14460. }
  14461. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14462. /* xcb_create_gc_value_list_t.clip_x_origin */
  14463. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14464. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14465. xcb_tmp += uintptr(4)
  14466. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14467. }
  14468. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14469. /* xcb_create_gc_value_list_t.clip_y_origin */
  14470. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14471. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14472. xcb_tmp += uintptr(4)
  14473. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14474. }
  14475. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14476. /* xcb_create_gc_value_list_t.clip_mask */
  14477. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14478. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14479. xcb_tmp += uintptr(4)
  14480. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14481. }
  14482. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14483. /* xcb_create_gc_value_list_t.dash_offset */
  14484. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14485. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14486. xcb_tmp += uintptr(4)
  14487. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14488. }
  14489. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14490. /* xcb_create_gc_value_list_t.dashes */
  14491. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14492. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14493. xcb_tmp += uintptr(4)
  14494. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14495. }
  14496. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14497. /* xcb_create_gc_value_list_t.arc_mode */
  14498. (*Txcb_create_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14499. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14500. xcb_tmp += uintptr(4)
  14501. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14502. }
  14503. /* insert padding */
  14504. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14505. xcb_buffer_len += xcb_block_len + xcb_pad
  14506. if uint32(0) != xcb_pad {
  14507. xcb_tmp += uintptr(xcb_pad)
  14508. xcb_pad = uint32(0)
  14509. }
  14510. xcb_block_len = uint32(0)
  14511. xcb_padding_offset = uint32(0)
  14512. return libc.Int32FromUint32(xcb_buffer_len)
  14513. }
  14514. func Xxcb_create_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  14515. bp := tls.Alloc(96)
  14516. defer tls.Free(96)
  14517. var _ /* _aux at bp+0 */ Txcb_create_gc_value_list_t
  14518. return Xxcb_create_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  14519. }
  14520. func Xxcb_create_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  14521. var _aux, xcb_tmp uintptr
  14522. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  14523. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  14524. xcb_tmp = _buffer
  14525. _aux = _buffer
  14526. xcb_buffer_len = uint32(0)
  14527. xcb_block_len = uint32(0)
  14528. xcb_pad = uint32(0)
  14529. xcb_align_to = uint32(0)
  14530. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  14531. xcb_tmp += uintptr(xcb_block_len)
  14532. xcb_buffer_len += xcb_block_len
  14533. xcb_block_len = uint32(0)
  14534. /* value_list */
  14535. xcb_block_len += libc.Uint32FromInt32(Xxcb_create_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_create_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  14536. xcb_tmp += uintptr(xcb_block_len)
  14537. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  14538. /* insert padding */
  14539. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  14540. xcb_buffer_len += xcb_block_len + xcb_pad
  14541. if uint32(0) != xcb_pad {
  14542. xcb_tmp += uintptr(xcb_pad)
  14543. xcb_pad = uint32(0)
  14544. }
  14545. xcb_block_len = uint32(0)
  14546. return libc.Int32FromUint32(xcb_buffer_len)
  14547. }
  14548. 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) {
  14549. bp := tls.Alloc(96)
  14550. defer tls.Free(96)
  14551. var xcb_ret Txcb_void_cookie_t
  14552. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14553. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14554. _ = xcb_ret
  14555. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14556. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14557. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14558. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14559. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14560. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14561. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14562. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14563. /* xcb_create_gc_value_list_t value_list */
  14564. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14565. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14566. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req114)))
  14567. return xcb_ret
  14568. }
  14569. var _xcb_req114 = Txcb_protocol_request_t{
  14570. Fcount: uint64(3),
  14571. Fopcode: uint8(m_XCB_CREATE_GC),
  14572. Fisvoid: uint8(1),
  14573. }
  14574. 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) {
  14575. bp := tls.Alloc(96)
  14576. defer tls.Free(96)
  14577. var xcb_ret Txcb_void_cookie_t
  14578. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14579. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14580. _ = xcb_ret
  14581. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14582. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14583. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14584. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14585. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14586. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14587. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14588. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14589. /* xcb_create_gc_value_list_t value_list */
  14590. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  14591. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_sizeof(tls, value_list, value_mask))
  14592. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req115)))
  14593. return xcb_ret
  14594. }
  14595. var _xcb_req115 = Txcb_protocol_request_t{
  14596. Fcount: uint64(3),
  14597. Fopcode: uint8(m_XCB_CREATE_GC),
  14598. Fisvoid: uint8(1),
  14599. }
  14600. 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) {
  14601. bp := tls.Alloc(112)
  14602. defer tls.Free(112)
  14603. var xcb_ret Txcb_void_cookie_t
  14604. var _ /* xcb_aux0 at bp+96 */ uintptr
  14605. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14606. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14607. _ = xcb_ret
  14608. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14609. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14610. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14611. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14612. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14613. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14614. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14615. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14616. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14617. /* xcb_create_gc_value_list_t value_list */
  14618. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14619. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14620. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req116)))
  14621. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14622. return xcb_ret
  14623. }
  14624. var _xcb_req116 = Txcb_protocol_request_t{
  14625. Fcount: uint64(3),
  14626. Fopcode: uint8(m_XCB_CREATE_GC),
  14627. Fisvoid: uint8(1),
  14628. }
  14629. 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) {
  14630. bp := tls.Alloc(112)
  14631. defer tls.Free(112)
  14632. var xcb_ret Txcb_void_cookie_t
  14633. var _ /* xcb_aux0 at bp+96 */ uintptr
  14634. var _ /* xcb_out at bp+80 */ Txcb_create_gc_request_t
  14635. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  14636. _ = xcb_ret
  14637. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  14638. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  14639. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fcid = cid
  14640. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fdrawable = drawable
  14641. (*(*Txcb_create_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  14642. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  14643. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  14644. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  14645. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  14646. /* xcb_create_gc_value_list_t value_list */
  14647. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_create_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  14648. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  14649. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req117)))
  14650. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  14651. return xcb_ret
  14652. }
  14653. var _xcb_req117 = Txcb_protocol_request_t{
  14654. Fcount: uint64(3),
  14655. Fopcode: uint8(m_XCB_CREATE_GC),
  14656. Fisvoid: uint8(1),
  14657. }
  14658. func Xxcb_create_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  14659. return R + libc.UintptrFromInt32(1)*16
  14660. }
  14661. func Xxcb_change_gc_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14662. bp := tls.Alloc(16)
  14663. defer tls.Free(16)
  14664. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  14665. var xcb_out, xcb_tmp uintptr
  14666. var xcb_parts [24]Tiovec
  14667. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  14668. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  14669. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  14670. xcb_buffer_len = uint32(0)
  14671. xcb_align_to = uint32(0)
  14672. xcb_padding_offset = uint32(0)
  14673. xcb_pad = uint32(0)
  14674. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  14675. xcb_parts_idx = uint32(0)
  14676. xcb_block_len = uint32(0)
  14677. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14678. /* xcb_change_gc_value_list_t.function */
  14679. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  14680. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14681. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14682. xcb_parts_idx++
  14683. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14684. }
  14685. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14686. /* xcb_change_gc_value_list_t.plane_mask */
  14687. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  14688. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14689. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14690. xcb_parts_idx++
  14691. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14692. }
  14693. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14694. /* xcb_change_gc_value_list_t.foreground */
  14695. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  14696. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14697. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14698. xcb_parts_idx++
  14699. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14700. }
  14701. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14702. /* xcb_change_gc_value_list_t.background */
  14703. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  14704. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14705. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14706. xcb_parts_idx++
  14707. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14708. }
  14709. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14710. /* xcb_change_gc_value_list_t.line_width */
  14711. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  14712. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14713. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14714. xcb_parts_idx++
  14715. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14716. }
  14717. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14718. /* xcb_change_gc_value_list_t.line_style */
  14719. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  14720. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14721. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14722. xcb_parts_idx++
  14723. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14724. }
  14725. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14726. /* xcb_change_gc_value_list_t.cap_style */
  14727. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  14728. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14729. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14730. xcb_parts_idx++
  14731. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14732. }
  14733. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14734. /* xcb_change_gc_value_list_t.join_style */
  14735. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  14736. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14737. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14738. xcb_parts_idx++
  14739. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14740. }
  14741. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14742. /* xcb_change_gc_value_list_t.fill_style */
  14743. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 32
  14744. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14745. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14746. xcb_parts_idx++
  14747. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14748. }
  14749. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14750. /* xcb_change_gc_value_list_t.fill_rule */
  14751. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 36
  14752. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14753. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14754. xcb_parts_idx++
  14755. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14756. }
  14757. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14758. /* xcb_change_gc_value_list_t.tile */
  14759. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 40
  14760. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14761. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14762. xcb_parts_idx++
  14763. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14764. }
  14765. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14766. /* xcb_change_gc_value_list_t.stipple */
  14767. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 44
  14768. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14769. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14770. xcb_parts_idx++
  14771. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14772. }
  14773. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14774. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14775. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 48
  14776. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14777. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14778. xcb_parts_idx++
  14779. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14780. }
  14781. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14782. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14783. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 52
  14784. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14785. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14786. xcb_parts_idx++
  14787. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14788. }
  14789. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  14790. /* xcb_change_gc_value_list_t.font */
  14791. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 56
  14792. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14793. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14794. xcb_parts_idx++
  14795. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14796. }
  14797. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  14798. /* xcb_change_gc_value_list_t.subwindow_mode */
  14799. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 60
  14800. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14801. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14802. xcb_parts_idx++
  14803. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14804. }
  14805. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  14806. /* xcb_change_gc_value_list_t.graphics_exposures */
  14807. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 64
  14808. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14809. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14810. xcb_parts_idx++
  14811. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14812. }
  14813. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  14814. /* xcb_change_gc_value_list_t.clip_x_origin */
  14815. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 68
  14816. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14817. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14818. xcb_parts_idx++
  14819. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14820. }
  14821. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  14822. /* xcb_change_gc_value_list_t.clip_y_origin */
  14823. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 72
  14824. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14825. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14826. xcb_parts_idx++
  14827. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14828. }
  14829. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  14830. /* xcb_change_gc_value_list_t.clip_mask */
  14831. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 76
  14832. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14833. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14834. xcb_parts_idx++
  14835. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14836. }
  14837. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  14838. /* xcb_change_gc_value_list_t.dash_offset */
  14839. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 80
  14840. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14841. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14842. xcb_parts_idx++
  14843. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14844. }
  14845. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  14846. /* xcb_change_gc_value_list_t.dashes */
  14847. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 84
  14848. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14849. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14850. xcb_parts_idx++
  14851. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14852. }
  14853. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  14854. /* xcb_change_gc_value_list_t.arc_mode */
  14855. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 88
  14856. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14857. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  14858. xcb_parts_idx++
  14859. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14860. }
  14861. /* insert padding */
  14862. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  14863. xcb_buffer_len += xcb_block_len + xcb_pad
  14864. if uint32(0) != xcb_pad {
  14865. xcb_parts[xcb_parts_idx].Fiov_base = bp
  14866. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  14867. xcb_parts_idx++
  14868. xcb_pad = uint32(0)
  14869. }
  14870. xcb_block_len = uint32(0)
  14871. xcb_padding_offset = uint32(0)
  14872. if libc.UintptrFromInt32(0) == xcb_out {
  14873. /* allocate memory */
  14874. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  14875. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  14876. }
  14877. xcb_tmp = xcb_out
  14878. i = uint32(0)
  14879. for {
  14880. if !(i < xcb_parts_idx) {
  14881. break
  14882. }
  14883. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  14884. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  14885. }
  14886. if uint64(0) != xcb_parts[i].Fiov_len {
  14887. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  14888. }
  14889. goto _1
  14890. _1:
  14891. ;
  14892. i++
  14893. }
  14894. return libc.Int32FromUint32(xcb_buffer_len)
  14895. }
  14896. func Xxcb_change_gc_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  14897. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  14898. var xcb_tmp uintptr
  14899. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  14900. xcb_tmp = _buffer
  14901. xcb_buffer_len = uint32(0)
  14902. xcb_block_len = uint32(0)
  14903. xcb_pad = uint32(0)
  14904. xcb_align_to = uint32(0)
  14905. xcb_padding_offset = uint32(0)
  14906. if value_mask&uint32(_XCB_GC_FUNCTION) != 0 {
  14907. /* xcb_change_gc_value_list_t.function */
  14908. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffunction = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14909. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14910. xcb_tmp += uintptr(4)
  14911. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14912. }
  14913. if value_mask&uint32(_XCB_GC_PLANE_MASK) != 0 {
  14914. /* xcb_change_gc_value_list_t.plane_mask */
  14915. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fplane_mask = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14916. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14917. xcb_tmp += uintptr(4)
  14918. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14919. }
  14920. if value_mask&uint32(_XCB_GC_FOREGROUND) != 0 {
  14921. /* xcb_change_gc_value_list_t.foreground */
  14922. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fforeground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14923. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14924. xcb_tmp += uintptr(4)
  14925. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14926. }
  14927. if value_mask&uint32(_XCB_GC_BACKGROUND) != 0 {
  14928. /* xcb_change_gc_value_list_t.background */
  14929. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fbackground = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14930. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14931. xcb_tmp += uintptr(4)
  14932. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14933. }
  14934. if value_mask&uint32(_XCB_GC_LINE_WIDTH) != 0 {
  14935. /* xcb_change_gc_value_list_t.line_width */
  14936. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_width = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14937. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14938. xcb_tmp += uintptr(4)
  14939. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14940. }
  14941. if value_mask&uint32(_XCB_GC_LINE_STYLE) != 0 {
  14942. /* xcb_change_gc_value_list_t.line_style */
  14943. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fline_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14944. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14945. xcb_tmp += uintptr(4)
  14946. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14947. }
  14948. if value_mask&uint32(_XCB_GC_CAP_STYLE) != 0 {
  14949. /* xcb_change_gc_value_list_t.cap_style */
  14950. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fcap_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14951. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14952. xcb_tmp += uintptr(4)
  14953. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14954. }
  14955. if value_mask&uint32(_XCB_GC_JOIN_STYLE) != 0 {
  14956. /* xcb_change_gc_value_list_t.join_style */
  14957. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fjoin_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14958. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14959. xcb_tmp += uintptr(4)
  14960. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14961. }
  14962. if value_mask&uint32(_XCB_GC_FILL_STYLE) != 0 {
  14963. /* xcb_change_gc_value_list_t.fill_style */
  14964. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_style = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14965. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14966. xcb_tmp += uintptr(4)
  14967. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14968. }
  14969. if value_mask&uint32(_XCB_GC_FILL_RULE) != 0 {
  14970. /* xcb_change_gc_value_list_t.fill_rule */
  14971. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffill_rule = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  14972. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14973. xcb_tmp += uintptr(4)
  14974. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14975. }
  14976. if value_mask&uint32(_XCB_GC_TILE) != 0 {
  14977. /* xcb_change_gc_value_list_t.tile */
  14978. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14979. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14980. xcb_tmp += uintptr(4)
  14981. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14982. }
  14983. if value_mask&uint32(_XCB_GC_STIPPLE) != 0 {
  14984. /* xcb_change_gc_value_list_t.stipple */
  14985. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fstipple = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  14986. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14987. xcb_tmp += uintptr(4)
  14988. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14989. }
  14990. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_X) != 0 {
  14991. /* xcb_change_gc_value_list_t.tile_stipple_x_origin */
  14992. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  14993. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  14994. xcb_tmp += uintptr(4)
  14995. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  14996. }
  14997. if value_mask&uint32(_XCB_GC_TILE_STIPPLE_ORIGIN_Y) != 0 {
  14998. /* xcb_change_gc_value_list_t.tile_stipple_y_origin */
  14999. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ftile_stipple_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  15000. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15001. xcb_tmp += uintptr(4)
  15002. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15003. }
  15004. if value_mask&uint32(_XCB_GC_FONT) != 0 {
  15005. /* xcb_change_gc_value_list_t.font */
  15006. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Ffont = *(*Txcb_font_t)(unsafe.Pointer(xcb_tmp))
  15007. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15008. xcb_tmp += uintptr(4)
  15009. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15010. }
  15011. if value_mask&uint32(_XCB_GC_SUBWINDOW_MODE) != 0 {
  15012. /* xcb_change_gc_value_list_t.subwindow_mode */
  15013. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fsubwindow_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  15014. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15015. xcb_tmp += uintptr(4)
  15016. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15017. }
  15018. if value_mask&uint32(_XCB_GC_GRAPHICS_EXPOSURES) != 0 {
  15019. /* xcb_change_gc_value_list_t.graphics_exposures */
  15020. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fgraphics_exposures = *(*Txcb_bool32_t)(unsafe.Pointer(xcb_tmp))
  15021. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15022. xcb_tmp += uintptr(4)
  15023. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15024. }
  15025. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_X) != 0 {
  15026. /* xcb_change_gc_value_list_t.clip_x_origin */
  15027. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_x_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  15028. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15029. xcb_tmp += uintptr(4)
  15030. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15031. }
  15032. if value_mask&uint32(_XCB_GC_CLIP_ORIGIN_Y) != 0 {
  15033. /* xcb_change_gc_value_list_t.clip_y_origin */
  15034. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_y_origin = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  15035. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15036. xcb_tmp += uintptr(4)
  15037. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15038. }
  15039. if value_mask&uint32(_XCB_GC_CLIP_MASK) != 0 {
  15040. /* xcb_change_gc_value_list_t.clip_mask */
  15041. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fclip_mask = *(*Txcb_pixmap_t)(unsafe.Pointer(xcb_tmp))
  15042. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15043. xcb_tmp += uintptr(4)
  15044. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15045. }
  15046. if value_mask&uint32(_XCB_GC_DASH_OFFSET) != 0 {
  15047. /* xcb_change_gc_value_list_t.dash_offset */
  15048. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdash_offset = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  15049. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15050. xcb_tmp += uintptr(4)
  15051. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15052. }
  15053. if value_mask&uint32(_XCB_GC_DASH_LIST) != 0 {
  15054. /* xcb_change_gc_value_list_t.dashes */
  15055. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Fdashes = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  15056. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15057. xcb_tmp += uintptr(4)
  15058. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15059. }
  15060. if value_mask&uint32(_XCB_GC_ARC_MODE) != 0 {
  15061. /* xcb_change_gc_value_list_t.arc_mode */
  15062. (*Txcb_change_gc_value_list_t)(unsafe.Pointer(_aux)).Farc_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  15063. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  15064. xcb_tmp += uintptr(4)
  15065. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  15066. }
  15067. /* insert padding */
  15068. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  15069. xcb_buffer_len += xcb_block_len + xcb_pad
  15070. if uint32(0) != xcb_pad {
  15071. xcb_tmp += uintptr(xcb_pad)
  15072. xcb_pad = uint32(0)
  15073. }
  15074. xcb_block_len = uint32(0)
  15075. xcb_padding_offset = uint32(0)
  15076. return libc.Int32FromUint32(xcb_buffer_len)
  15077. }
  15078. func Xxcb_change_gc_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  15079. bp := tls.Alloc(96)
  15080. defer tls.Free(96)
  15081. var _ /* _aux at bp+0 */ Txcb_change_gc_value_list_t
  15082. return Xxcb_change_gc_value_list_unpack(tls, _buffer, value_mask, bp)
  15083. }
  15084. func Xxcb_change_gc_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15085. var _aux, xcb_tmp uintptr
  15086. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15087. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15088. xcb_tmp = _buffer
  15089. _aux = _buffer
  15090. xcb_buffer_len = uint32(0)
  15091. xcb_block_len = uint32(0)
  15092. xcb_pad = uint32(0)
  15093. xcb_align_to = uint32(0)
  15094. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15095. xcb_tmp += uintptr(xcb_block_len)
  15096. xcb_buffer_len += xcb_block_len
  15097. xcb_block_len = uint32(0)
  15098. /* value_list */
  15099. xcb_block_len += libc.Uint32FromInt32(Xxcb_change_gc_value_list_sizeof(tls, xcb_tmp, (*Txcb_change_gc_request_t)(unsafe.Pointer(_aux)).Fvalue_mask))
  15100. xcb_tmp += uintptr(xcb_block_len)
  15101. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  15102. /* insert padding */
  15103. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15104. xcb_buffer_len += xcb_block_len + xcb_pad
  15105. if uint32(0) != xcb_pad {
  15106. xcb_tmp += uintptr(xcb_pad)
  15107. xcb_pad = uint32(0)
  15108. }
  15109. xcb_block_len = uint32(0)
  15110. return libc.Int32FromUint32(xcb_buffer_len)
  15111. }
  15112. 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) {
  15113. bp := tls.Alloc(96)
  15114. defer tls.Free(96)
  15115. var xcb_ret Txcb_void_cookie_t
  15116. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15117. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15118. _ = xcb_ret
  15119. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15120. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15121. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15122. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15123. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15124. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15125. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15126. /* xcb_change_gc_value_list_t value_list */
  15127. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  15128. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  15129. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req118)))
  15130. return xcb_ret
  15131. }
  15132. var _xcb_req118 = Txcb_protocol_request_t{
  15133. Fcount: uint64(3),
  15134. Fopcode: uint8(m_XCB_CHANGE_GC),
  15135. Fisvoid: uint8(1),
  15136. }
  15137. 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) {
  15138. bp := tls.Alloc(96)
  15139. defer tls.Free(96)
  15140. var xcb_ret Txcb_void_cookie_t
  15141. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15142. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15143. _ = xcb_ret
  15144. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15145. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15146. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15147. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15148. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15149. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15150. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15151. /* xcb_change_gc_value_list_t value_list */
  15152. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  15153. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_sizeof(tls, value_list, value_mask))
  15154. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req119)))
  15155. return xcb_ret
  15156. }
  15157. var _xcb_req119 = Txcb_protocol_request_t{
  15158. Fcount: uint64(3),
  15159. Fopcode: uint8(m_XCB_CHANGE_GC),
  15160. Fisvoid: uint8(1),
  15161. }
  15162. 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) {
  15163. bp := tls.Alloc(112)
  15164. defer tls.Free(112)
  15165. var xcb_ret Txcb_void_cookie_t
  15166. var _ /* xcb_aux0 at bp+96 */ uintptr
  15167. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15168. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15169. _ = xcb_ret
  15170. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15171. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15172. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15173. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15174. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15175. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15176. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15177. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15178. /* xcb_change_gc_value_list_t value_list */
  15179. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15180. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15181. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req120)))
  15182. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15183. return xcb_ret
  15184. }
  15185. var _xcb_req120 = Txcb_protocol_request_t{
  15186. Fcount: uint64(3),
  15187. Fopcode: uint8(m_XCB_CHANGE_GC),
  15188. Fisvoid: uint8(1),
  15189. }
  15190. 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) {
  15191. bp := tls.Alloc(112)
  15192. defer tls.Free(112)
  15193. var xcb_ret Txcb_void_cookie_t
  15194. var _ /* xcb_aux0 at bp+96 */ uintptr
  15195. var _ /* xcb_out at bp+80 */ Txcb_change_gc_request_t
  15196. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  15197. _ = xcb_ret
  15198. *(*uintptr)(unsafe.Pointer(bp + 96)) = uintptr(0)
  15199. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  15200. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fgc = gc
  15201. (*(*Txcb_change_gc_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  15202. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  15203. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15204. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15205. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15206. /* xcb_change_gc_value_list_t value_list */
  15207. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_gc_value_list_serialize(tls, bp+96, value_mask, value_list))
  15208. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 96))
  15209. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req121)))
  15210. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 96)))
  15211. return xcb_ret
  15212. }
  15213. var _xcb_req121 = Txcb_protocol_request_t{
  15214. Fcount: uint64(3),
  15215. Fopcode: uint8(m_XCB_CHANGE_GC),
  15216. Fisvoid: uint8(1),
  15217. }
  15218. func Xxcb_change_gc_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  15219. return R + libc.UintptrFromInt32(1)*12
  15220. }
  15221. 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) {
  15222. bp := tls.Alloc(80)
  15223. defer tls.Free(80)
  15224. var xcb_ret Txcb_void_cookie_t
  15225. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15226. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15227. _ = xcb_ret
  15228. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15229. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15230. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15231. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15232. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15233. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15234. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15235. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15236. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req122)))
  15237. return xcb_ret
  15238. }
  15239. var _xcb_req122 = Txcb_protocol_request_t{
  15240. Fcount: uint64(2),
  15241. Fopcode: uint8(m_XCB_COPY_GC),
  15242. Fisvoid: uint8(1),
  15243. }
  15244. 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) {
  15245. bp := tls.Alloc(80)
  15246. defer tls.Free(80)
  15247. var xcb_ret Txcb_void_cookie_t
  15248. var _ /* xcb_out at bp+64 */ Txcb_copy_gc_request_t
  15249. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15250. _ = xcb_ret
  15251. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15252. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fsrc_gc = src_gc
  15253. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fdst_gc = dst_gc
  15254. (*(*Txcb_copy_gc_request_t)(unsafe.Pointer(bp + 64))).Fvalue_mask = value_mask
  15255. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15256. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15259. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req123)))
  15260. return xcb_ret
  15261. }
  15262. var _xcb_req123 = Txcb_protocol_request_t{
  15263. Fcount: uint64(2),
  15264. Fopcode: uint8(m_XCB_COPY_GC),
  15265. Fisvoid: uint8(1),
  15266. }
  15267. func Xxcb_set_dashes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  15268. var _aux, xcb_tmp uintptr
  15269. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15270. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15271. xcb_tmp = _buffer
  15272. _aux = _buffer
  15273. xcb_buffer_len = uint32(0)
  15274. xcb_block_len = uint32(0)
  15275. xcb_pad = uint32(0)
  15276. xcb_align_to = uint32(0)
  15277. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15278. xcb_tmp += uintptr(xcb_block_len)
  15279. xcb_buffer_len += xcb_block_len
  15280. xcb_block_len = uint32(0)
  15281. /* dashes */
  15282. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_dashes_request_t)(unsafe.Pointer(_aux)).Fdashes_len)*libc.Uint64FromInt64(1))
  15283. xcb_tmp += uintptr(xcb_block_len)
  15284. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  15285. /* insert padding */
  15286. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15287. xcb_buffer_len += xcb_block_len + xcb_pad
  15288. if uint32(0) != xcb_pad {
  15289. xcb_tmp += uintptr(xcb_pad)
  15290. xcb_pad = uint32(0)
  15291. }
  15292. xcb_block_len = uint32(0)
  15293. return libc.Int32FromUint32(xcb_buffer_len)
  15294. }
  15295. 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) {
  15296. bp := tls.Alloc(112)
  15297. defer tls.Free(112)
  15298. var xcb_ret Txcb_void_cookie_t
  15299. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15300. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15301. _ = xcb_ret
  15302. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15303. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15304. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15305. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15306. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15307. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15309. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15310. /* uint8_t dashes */
  15311. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15312. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15313. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15314. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15315. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req124)))
  15316. return xcb_ret
  15317. }
  15318. var _xcb_req124 = Txcb_protocol_request_t{
  15319. Fcount: uint64(4),
  15320. Fopcode: uint8(m_XCB_SET_DASHES),
  15321. Fisvoid: uint8(1),
  15322. }
  15323. 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) {
  15324. bp := tls.Alloc(112)
  15325. defer tls.Free(112)
  15326. var xcb_ret Txcb_void_cookie_t
  15327. var _ /* xcb_out at bp+96 */ Txcb_set_dashes_request_t
  15328. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15329. _ = xcb_ret
  15330. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15331. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15332. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdash_offset = dash_offset
  15333. (*(*Txcb_set_dashes_request_t)(unsafe.Pointer(bp + 96))).Fdashes_len = dashes_len
  15334. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15335. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15336. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15337. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15338. /* uint8_t dashes */
  15339. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = dashes
  15340. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(dashes_len) * uint64(1)
  15341. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15342. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15343. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req125)))
  15344. return xcb_ret
  15345. }
  15346. var _xcb_req125 = Txcb_protocol_request_t{
  15347. Fcount: uint64(4),
  15348. Fopcode: uint8(m_XCB_SET_DASHES),
  15349. Fisvoid: uint8(1),
  15350. }
  15351. func Xxcb_set_dashes_dashes(tls *libc.TLS, R uintptr) (r uintptr) {
  15352. return R + libc.UintptrFromInt32(1)*12
  15353. }
  15354. func Xxcb_set_dashes_dashes_length(tls *libc.TLS, R uintptr) (r int32) {
  15355. return libc.Int32FromUint16((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15356. }
  15357. func Xxcb_set_dashes_dashes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  15358. var i Txcb_generic_iterator_t
  15359. _ = i
  15360. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_set_dashes_request_t)(unsafe.Pointer(R)).Fdashes_len)
  15361. i.Frem = 0
  15362. i.Findex = int32(int64(i.Fdata) - int64(R))
  15363. return i
  15364. }
  15365. func Xxcb_set_clip_rectangles_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15366. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15367. var xcb_tmp uintptr
  15368. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15369. xcb_tmp = _buffer
  15370. xcb_buffer_len = uint32(0)
  15371. xcb_block_len = uint32(0)
  15372. xcb_pad = uint32(0)
  15373. xcb_align_to = uint32(0)
  15374. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15375. xcb_tmp += uintptr(xcb_block_len)
  15376. xcb_buffer_len += xcb_block_len
  15377. xcb_block_len = uint32(0)
  15378. /* rectangles */
  15379. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15380. xcb_tmp += uintptr(xcb_block_len)
  15381. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15382. /* insert padding */
  15383. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15384. xcb_buffer_len += xcb_block_len + xcb_pad
  15385. if uint32(0) != xcb_pad {
  15386. xcb_tmp += uintptr(xcb_pad)
  15387. xcb_pad = uint32(0)
  15388. }
  15389. xcb_block_len = uint32(0)
  15390. return libc.Int32FromUint32(xcb_buffer_len)
  15391. }
  15392. 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) {
  15393. bp := tls.Alloc(112)
  15394. defer tls.Free(112)
  15395. var xcb_ret Txcb_void_cookie_t
  15396. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15397. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15398. _ = xcb_ret
  15399. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15400. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15401. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15402. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15403. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15404. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15405. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15406. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15407. /* xcb_rectangle_t rectangles */
  15408. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15409. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15410. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15411. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15412. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req126)))
  15413. return xcb_ret
  15414. }
  15415. var _xcb_req126 = Txcb_protocol_request_t{
  15416. Fcount: uint64(4),
  15417. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15418. Fisvoid: uint8(1),
  15419. }
  15420. 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) {
  15421. bp := tls.Alloc(112)
  15422. defer tls.Free(112)
  15423. var xcb_ret Txcb_void_cookie_t
  15424. var _ /* xcb_out at bp+96 */ Txcb_set_clip_rectangles_request_t
  15425. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15426. _ = xcb_ret
  15427. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fordering = ordering
  15428. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15429. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_x_origin = clip_x_origin
  15430. (*(*Txcb_set_clip_rectangles_request_t)(unsafe.Pointer(bp + 96))).Fclip_y_origin = clip_y_origin
  15431. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15432. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15433. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15434. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15435. /* xcb_rectangle_t rectangles */
  15436. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  15437. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  15438. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15439. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15440. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req127)))
  15441. return xcb_ret
  15442. }
  15443. var _xcb_req127 = Txcb_protocol_request_t{
  15444. Fcount: uint64(4),
  15445. Fopcode: uint8(m_XCB_SET_CLIP_RECTANGLES),
  15446. Fisvoid: uint8(1),
  15447. }
  15448. func Xxcb_set_clip_rectangles_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  15449. return R + libc.UintptrFromInt32(1)*12
  15450. }
  15451. func Xxcb_set_clip_rectangles_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  15452. 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))
  15453. }
  15454. func Xxcb_set_clip_rectangles_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  15455. var i Txcb_rectangle_iterator_t
  15456. _ = i
  15457. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15458. 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))
  15459. i.Findex = int32(int64(i.Fdata) - int64(R))
  15460. return i
  15461. }
  15462. func Xxcb_free_gc_checked(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15463. bp := tls.Alloc(80)
  15464. defer tls.Free(80)
  15465. var xcb_ret Txcb_void_cookie_t
  15466. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15467. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15468. _ = xcb_ret
  15469. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15470. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15471. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15473. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15474. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15475. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req128)))
  15476. return xcb_ret
  15477. }
  15478. var _xcb_req128 = Txcb_protocol_request_t{
  15479. Fcount: uint64(2),
  15480. Fopcode: uint8(m_XCB_FREE_GC),
  15481. Fisvoid: uint8(1),
  15482. }
  15483. func Xxcb_free_gc(tls *libc.TLS, c uintptr, gc Txcb_gcontext_t) (r Txcb_void_cookie_t) {
  15484. bp := tls.Alloc(80)
  15485. defer tls.Free(80)
  15486. var xcb_ret Txcb_void_cookie_t
  15487. var _ /* xcb_out at bp+64 */ Txcb_free_gc_request_t
  15488. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15489. _ = xcb_ret
  15490. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15491. (*(*Txcb_free_gc_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15492. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15493. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  15494. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15495. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15496. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req129)))
  15497. return xcb_ret
  15498. }
  15499. var _xcb_req129 = Txcb_protocol_request_t{
  15500. Fcount: uint64(2),
  15501. Fopcode: uint8(m_XCB_FREE_GC),
  15502. Fisvoid: uint8(1),
  15503. }
  15504. 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) {
  15505. bp := tls.Alloc(80)
  15506. defer tls.Free(80)
  15507. var xcb_ret Txcb_void_cookie_t
  15508. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15509. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15510. _ = xcb_ret
  15511. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15512. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15513. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15514. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15515. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15516. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15517. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15518. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15519. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15520. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15521. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req130)))
  15522. return xcb_ret
  15523. }
  15524. var _xcb_req130 = Txcb_protocol_request_t{
  15525. Fcount: uint64(2),
  15526. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15527. Fisvoid: uint8(1),
  15528. }
  15529. 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) {
  15530. bp := tls.Alloc(80)
  15531. defer tls.Free(80)
  15532. var xcb_ret Txcb_void_cookie_t
  15533. var _ /* xcb_out at bp+64 */ Txcb_clear_area_request_t
  15534. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15535. _ = xcb_ret
  15536. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fexposures = exposures
  15537. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  15538. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  15539. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  15540. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15541. (*(*Txcb_clear_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15542. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15543. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  15544. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15545. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15546. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req131)))
  15547. return xcb_ret
  15548. }
  15549. var _xcb_req131 = Txcb_protocol_request_t{
  15550. Fcount: uint64(2),
  15551. Fopcode: uint8(m_XCB_CLEAR_AREA),
  15552. Fisvoid: uint8(1),
  15553. }
  15554. 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) {
  15555. bp := tls.Alloc(96)
  15556. defer tls.Free(96)
  15557. var xcb_ret Txcb_void_cookie_t
  15558. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15559. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15560. _ = xcb_ret
  15561. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15562. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15563. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15564. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15565. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15566. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15567. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15568. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15569. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15570. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15571. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15572. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15573. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15574. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15575. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req132)))
  15576. return xcb_ret
  15577. }
  15578. var _xcb_req132 = Txcb_protocol_request_t{
  15579. Fcount: uint64(2),
  15580. Fopcode: uint8(m_XCB_COPY_AREA),
  15581. Fisvoid: uint8(1),
  15582. }
  15583. 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) {
  15584. bp := tls.Alloc(96)
  15585. defer tls.Free(96)
  15586. var xcb_ret Txcb_void_cookie_t
  15587. var _ /* xcb_out at bp+64 */ Txcb_copy_area_request_t
  15588. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15589. _ = xcb_ret
  15590. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15591. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15592. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15593. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15594. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15595. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15596. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15597. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15598. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15599. (*(*Txcb_copy_area_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15600. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15601. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(28)
  15602. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15603. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15604. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req133)))
  15605. return xcb_ret
  15606. }
  15607. var _xcb_req133 = Txcb_protocol_request_t{
  15608. Fcount: uint64(2),
  15609. Fopcode: uint8(m_XCB_COPY_AREA),
  15610. Fisvoid: uint8(1),
  15611. }
  15612. 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) {
  15613. bp := tls.Alloc(96)
  15614. defer tls.Free(96)
  15615. var xcb_ret Txcb_void_cookie_t
  15616. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15617. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15618. _ = xcb_ret
  15619. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15620. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15621. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15622. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15623. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15624. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15625. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15626. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15627. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15628. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15629. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15630. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15631. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15632. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15633. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15634. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req134)))
  15635. return xcb_ret
  15636. }
  15637. var _xcb_req134 = Txcb_protocol_request_t{
  15638. Fcount: uint64(2),
  15639. Fopcode: uint8(m_XCB_COPY_PLANE),
  15640. Fisvoid: uint8(1),
  15641. }
  15642. 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) {
  15643. bp := tls.Alloc(96)
  15644. defer tls.Free(96)
  15645. var xcb_ret Txcb_void_cookie_t
  15646. var _ /* xcb_out at bp+64 */ Txcb_copy_plane_request_t
  15647. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  15648. _ = xcb_ret
  15649. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  15650. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_drawable = src_drawable
  15651. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_drawable = dst_drawable
  15652. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fgc = gc
  15653. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_x = src_x
  15654. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fsrc_y = src_y
  15655. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_x = dst_x
  15656. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fdst_y = dst_y
  15657. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  15658. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  15659. (*(*Txcb_copy_plane_request_t)(unsafe.Pointer(bp + 64))).Fbit_plane = bit_plane
  15660. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  15661. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  15662. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15663. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15664. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req135)))
  15665. return xcb_ret
  15666. }
  15667. var _xcb_req135 = Txcb_protocol_request_t{
  15668. Fcount: uint64(2),
  15669. Fopcode: uint8(m_XCB_COPY_PLANE),
  15670. Fisvoid: uint8(1),
  15671. }
  15672. func Xxcb_poly_point_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15673. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15674. var xcb_tmp uintptr
  15675. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15676. xcb_tmp = _buffer
  15677. xcb_buffer_len = uint32(0)
  15678. xcb_block_len = uint32(0)
  15679. xcb_pad = uint32(0)
  15680. xcb_align_to = uint32(0)
  15681. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15682. xcb_tmp += uintptr(xcb_block_len)
  15683. xcb_buffer_len += xcb_block_len
  15684. xcb_block_len = uint32(0)
  15685. /* points */
  15686. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15687. xcb_tmp += uintptr(xcb_block_len)
  15688. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15689. /* insert padding */
  15690. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15691. xcb_buffer_len += xcb_block_len + xcb_pad
  15692. if uint32(0) != xcb_pad {
  15693. xcb_tmp += uintptr(xcb_pad)
  15694. xcb_pad = uint32(0)
  15695. }
  15696. xcb_block_len = uint32(0)
  15697. return libc.Int32FromUint32(xcb_buffer_len)
  15698. }
  15699. 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) {
  15700. bp := tls.Alloc(112)
  15701. defer tls.Free(112)
  15702. var xcb_ret Txcb_void_cookie_t
  15703. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15704. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15705. _ = xcb_ret
  15706. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15707. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15708. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15709. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15710. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15711. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15712. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15713. /* xcb_point_t points */
  15714. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15715. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15716. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15717. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15718. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req136)))
  15719. return xcb_ret
  15720. }
  15721. var _xcb_req136 = Txcb_protocol_request_t{
  15722. Fcount: uint64(4),
  15723. Fopcode: uint8(m_XCB_POLY_POINT),
  15724. Fisvoid: uint8(1),
  15725. }
  15726. 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) {
  15727. bp := tls.Alloc(112)
  15728. defer tls.Free(112)
  15729. var xcb_ret Txcb_void_cookie_t
  15730. var _ /* xcb_out at bp+96 */ Txcb_poly_point_request_t
  15731. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15732. _ = xcb_ret
  15733. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15734. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15735. (*(*Txcb_poly_point_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15736. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15737. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15738. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15739. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15740. /* xcb_point_t points */
  15741. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15742. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15743. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15744. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15745. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req137)))
  15746. return xcb_ret
  15747. }
  15748. var _xcb_req137 = Txcb_protocol_request_t{
  15749. Fcount: uint64(4),
  15750. Fopcode: uint8(m_XCB_POLY_POINT),
  15751. Fisvoid: uint8(1),
  15752. }
  15753. func Xxcb_poly_point_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15754. return R + libc.UintptrFromInt32(1)*12
  15755. }
  15756. func Xxcb_poly_point_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15757. 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))
  15758. }
  15759. func Xxcb_poly_point_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15760. var i Txcb_point_iterator_t
  15761. _ = i
  15762. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15763. 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))
  15764. i.Findex = int32(int64(i.Fdata) - int64(R))
  15765. return i
  15766. }
  15767. func Xxcb_poly_line_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  15768. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15769. var xcb_tmp uintptr
  15770. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15771. xcb_tmp = _buffer
  15772. xcb_buffer_len = uint32(0)
  15773. xcb_block_len = uint32(0)
  15774. xcb_pad = uint32(0)
  15775. xcb_align_to = uint32(0)
  15776. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15777. xcb_tmp += uintptr(xcb_block_len)
  15778. xcb_buffer_len += xcb_block_len
  15779. xcb_block_len = uint32(0)
  15780. /* points */
  15781. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  15782. xcb_tmp += uintptr(xcb_block_len)
  15783. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15784. /* insert padding */
  15785. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15786. xcb_buffer_len += xcb_block_len + xcb_pad
  15787. if uint32(0) != xcb_pad {
  15788. xcb_tmp += uintptr(xcb_pad)
  15789. xcb_pad = uint32(0)
  15790. }
  15791. xcb_block_len = uint32(0)
  15792. return libc.Int32FromUint32(xcb_buffer_len)
  15793. }
  15794. 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) {
  15795. bp := tls.Alloc(112)
  15796. defer tls.Free(112)
  15797. var xcb_ret Txcb_void_cookie_t
  15798. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15799. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15800. _ = xcb_ret
  15801. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15802. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15803. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15804. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15805. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15806. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15807. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15808. /* xcb_point_t points */
  15809. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15810. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15811. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15812. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15813. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req138)))
  15814. return xcb_ret
  15815. }
  15816. var _xcb_req138 = Txcb_protocol_request_t{
  15817. Fcount: uint64(4),
  15818. Fopcode: uint8(m_XCB_POLY_LINE),
  15819. Fisvoid: uint8(1),
  15820. }
  15821. 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) {
  15822. bp := tls.Alloc(112)
  15823. defer tls.Free(112)
  15824. var xcb_ret Txcb_void_cookie_t
  15825. var _ /* xcb_out at bp+96 */ Txcb_poly_line_request_t
  15826. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15827. _ = xcb_ret
  15828. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  15829. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15830. (*(*Txcb_poly_line_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15831. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15832. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15833. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15834. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15835. /* xcb_point_t points */
  15836. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  15837. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  15838. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15839. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15840. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req139)))
  15841. return xcb_ret
  15842. }
  15843. var _xcb_req139 = Txcb_protocol_request_t{
  15844. Fcount: uint64(4),
  15845. Fopcode: uint8(m_XCB_POLY_LINE),
  15846. Fisvoid: uint8(1),
  15847. }
  15848. func Xxcb_poly_line_points(tls *libc.TLS, R uintptr) (r uintptr) {
  15849. return R + libc.UintptrFromInt32(1)*12
  15850. }
  15851. func Xxcb_poly_line_points_length(tls *libc.TLS, R uintptr) (r int32) {
  15852. 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))
  15853. }
  15854. func Xxcb_poly_line_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  15855. var i Txcb_point_iterator_t
  15856. _ = i
  15857. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15858. 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))
  15859. i.Findex = int32(int64(i.Fdata) - int64(R))
  15860. return i
  15861. }
  15862. func Xxcb_segment_next(tls *libc.TLS, i uintptr) {
  15863. var p1 uintptr
  15864. _ = p1
  15865. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Frem--
  15866. (*Txcb_segment_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  15867. p1 = i + 12
  15868. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  15869. }
  15870. func Xxcb_segment_end(tls *libc.TLS, i Txcb_segment_iterator_t) (r Txcb_generic_iterator_t) {
  15871. var ret Txcb_generic_iterator_t
  15872. _ = ret
  15873. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  15874. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  15875. ret.Frem = 0
  15876. return ret
  15877. }
  15878. func Xxcb_poly_segment_sizeof(tls *libc.TLS, _buffer uintptr, segments_len Tuint32_t) (r int32) {
  15879. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15880. var xcb_tmp uintptr
  15881. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15882. xcb_tmp = _buffer
  15883. xcb_buffer_len = uint32(0)
  15884. xcb_block_len = uint32(0)
  15885. xcb_pad = uint32(0)
  15886. xcb_align_to = uint32(0)
  15887. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15888. xcb_tmp += uintptr(xcb_block_len)
  15889. xcb_buffer_len += xcb_block_len
  15890. xcb_block_len = uint32(0)
  15891. /* segments */
  15892. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(segments_len)*libc.Uint64FromInt64(8))
  15893. xcb_tmp += uintptr(xcb_block_len)
  15894. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15895. /* insert padding */
  15896. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15897. xcb_buffer_len += xcb_block_len + xcb_pad
  15898. if uint32(0) != xcb_pad {
  15899. xcb_tmp += uintptr(xcb_pad)
  15900. xcb_pad = uint32(0)
  15901. }
  15902. xcb_block_len = uint32(0)
  15903. return libc.Int32FromUint32(xcb_buffer_len)
  15904. }
  15905. 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) {
  15906. bp := tls.Alloc(112)
  15907. defer tls.Free(112)
  15908. var xcb_ret Txcb_void_cookie_t
  15909. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15910. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15911. _ = xcb_ret
  15912. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15913. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15914. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15915. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15916. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15917. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15918. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15919. /* xcb_segment_t segments */
  15920. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15921. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15922. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15923. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15924. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req140)))
  15925. return xcb_ret
  15926. }
  15927. var _xcb_req140 = Txcb_protocol_request_t{
  15928. Fcount: uint64(4),
  15929. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15930. Fisvoid: uint8(1),
  15931. }
  15932. 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) {
  15933. bp := tls.Alloc(112)
  15934. defer tls.Free(112)
  15935. var xcb_ret Txcb_void_cookie_t
  15936. var _ /* xcb_out at bp+96 */ Txcb_poly_segment_request_t
  15937. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  15938. _ = xcb_ret
  15939. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  15940. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  15941. (*(*Txcb_poly_segment_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  15942. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  15943. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  15944. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  15945. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  15946. /* xcb_segment_t segments */
  15947. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = segments
  15948. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(segments_len) * uint64(8)
  15949. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  15950. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  15951. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req141)))
  15952. return xcb_ret
  15953. }
  15954. var _xcb_req141 = Txcb_protocol_request_t{
  15955. Fcount: uint64(4),
  15956. Fopcode: uint8(m_XCB_POLY_SEGMENT),
  15957. Fisvoid: uint8(1),
  15958. }
  15959. func Xxcb_poly_segment_segments(tls *libc.TLS, R uintptr) (r uintptr) {
  15960. return R + libc.UintptrFromInt32(1)*12
  15961. }
  15962. func Xxcb_poly_segment_segments_length(tls *libc.TLS, R uintptr) (r int32) {
  15963. 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))
  15964. }
  15965. func Xxcb_poly_segment_segments_iterator(tls *libc.TLS, R uintptr) (r Txcb_segment_iterator_t) {
  15966. var i Txcb_segment_iterator_t
  15967. _ = i
  15968. i.Fdata = R + libc.UintptrFromInt32(1)*12
  15969. 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))
  15970. i.Findex = int32(int64(i.Fdata) - int64(R))
  15971. return i
  15972. }
  15973. func Xxcb_poly_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  15974. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  15975. var xcb_tmp uintptr
  15976. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  15977. xcb_tmp = _buffer
  15978. xcb_buffer_len = uint32(0)
  15979. xcb_block_len = uint32(0)
  15980. xcb_pad = uint32(0)
  15981. xcb_align_to = uint32(0)
  15982. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  15983. xcb_tmp += uintptr(xcb_block_len)
  15984. xcb_buffer_len += xcb_block_len
  15985. xcb_block_len = uint32(0)
  15986. /* rectangles */
  15987. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  15988. xcb_tmp += uintptr(xcb_block_len)
  15989. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  15990. /* insert padding */
  15991. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  15992. xcb_buffer_len += xcb_block_len + xcb_pad
  15993. if uint32(0) != xcb_pad {
  15994. xcb_tmp += uintptr(xcb_pad)
  15995. xcb_pad = uint32(0)
  15996. }
  15997. xcb_block_len = uint32(0)
  15998. return libc.Int32FromUint32(xcb_buffer_len)
  15999. }
  16000. 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) {
  16001. bp := tls.Alloc(112)
  16002. defer tls.Free(112)
  16003. var xcb_ret Txcb_void_cookie_t
  16004. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  16005. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16006. _ = xcb_ret
  16007. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16008. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16009. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16010. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16011. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16012. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16013. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16014. /* xcb_rectangle_t rectangles */
  16015. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16016. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16017. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16018. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16019. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req142)))
  16020. return xcb_ret
  16021. }
  16022. var _xcb_req142 = Txcb_protocol_request_t{
  16023. Fcount: uint64(4),
  16024. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  16025. Fisvoid: uint8(1),
  16026. }
  16027. 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) {
  16028. bp := tls.Alloc(112)
  16029. defer tls.Free(112)
  16030. var xcb_ret Txcb_void_cookie_t
  16031. var _ /* xcb_out at bp+96 */ Txcb_poly_rectangle_request_t
  16032. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16033. _ = xcb_ret
  16034. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16035. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16036. (*(*Txcb_poly_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16037. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16038. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16039. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16040. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16041. /* xcb_rectangle_t rectangles */
  16042. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16043. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16044. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16045. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16046. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req143)))
  16047. return xcb_ret
  16048. }
  16049. var _xcb_req143 = Txcb_protocol_request_t{
  16050. Fcount: uint64(4),
  16051. Fopcode: uint8(m_XCB_POLY_RECTANGLE),
  16052. Fisvoid: uint8(1),
  16053. }
  16054. func Xxcb_poly_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  16055. return R + libc.UintptrFromInt32(1)*12
  16056. }
  16057. func Xxcb_poly_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  16058. 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))
  16059. }
  16060. func Xxcb_poly_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  16061. var i Txcb_rectangle_iterator_t
  16062. _ = i
  16063. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16064. 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))
  16065. i.Findex = int32(int64(i.Fdata) - int64(R))
  16066. return i
  16067. }
  16068. func Xxcb_poly_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  16069. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16070. var xcb_tmp uintptr
  16071. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16072. xcb_tmp = _buffer
  16073. xcb_buffer_len = uint32(0)
  16074. xcb_block_len = uint32(0)
  16075. xcb_pad = uint32(0)
  16076. xcb_align_to = uint32(0)
  16077. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16078. xcb_tmp += uintptr(xcb_block_len)
  16079. xcb_buffer_len += xcb_block_len
  16080. xcb_block_len = uint32(0)
  16081. /* arcs */
  16082. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  16083. xcb_tmp += uintptr(xcb_block_len)
  16084. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16085. /* insert padding */
  16086. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16087. xcb_buffer_len += xcb_block_len + xcb_pad
  16088. if uint32(0) != xcb_pad {
  16089. xcb_tmp += uintptr(xcb_pad)
  16090. xcb_pad = uint32(0)
  16091. }
  16092. xcb_block_len = uint32(0)
  16093. return libc.Int32FromUint32(xcb_buffer_len)
  16094. }
  16095. 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) {
  16096. bp := tls.Alloc(112)
  16097. defer tls.Free(112)
  16098. var xcb_ret Txcb_void_cookie_t
  16099. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  16100. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16101. _ = xcb_ret
  16102. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16103. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16104. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16105. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16106. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16107. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16108. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16109. /* xcb_arc_t arcs */
  16110. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16111. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16112. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16113. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16114. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req144)))
  16115. return xcb_ret
  16116. }
  16117. var _xcb_req144 = Txcb_protocol_request_t{
  16118. Fcount: uint64(4),
  16119. Fopcode: uint8(m_XCB_POLY_ARC),
  16120. Fisvoid: uint8(1),
  16121. }
  16122. 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) {
  16123. bp := tls.Alloc(112)
  16124. defer tls.Free(112)
  16125. var xcb_ret Txcb_void_cookie_t
  16126. var _ /* xcb_out at bp+96 */ Txcb_poly_arc_request_t
  16127. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16128. _ = xcb_ret
  16129. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16130. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16131. (*(*Txcb_poly_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16132. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16133. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16134. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16135. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16136. /* xcb_arc_t arcs */
  16137. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16138. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16139. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16140. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16141. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req145)))
  16142. return xcb_ret
  16143. }
  16144. var _xcb_req145 = Txcb_protocol_request_t{
  16145. Fcount: uint64(4),
  16146. Fopcode: uint8(m_XCB_POLY_ARC),
  16147. Fisvoid: uint8(1),
  16148. }
  16149. func Xxcb_poly_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16150. return R + libc.UintptrFromInt32(1)*12
  16151. }
  16152. func Xxcb_poly_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16153. 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))
  16154. }
  16155. func Xxcb_poly_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16156. var i Txcb_arc_iterator_t
  16157. _ = i
  16158. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16159. 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))
  16160. i.Findex = int32(int64(i.Fdata) - int64(R))
  16161. return i
  16162. }
  16163. func Xxcb_fill_poly_sizeof(tls *libc.TLS, _buffer uintptr, points_len Tuint32_t) (r int32) {
  16164. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16165. var xcb_tmp uintptr
  16166. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16167. xcb_tmp = _buffer
  16168. xcb_buffer_len = uint32(0)
  16169. xcb_block_len = uint32(0)
  16170. xcb_pad = uint32(0)
  16171. xcb_align_to = uint32(0)
  16172. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16173. xcb_tmp += uintptr(xcb_block_len)
  16174. xcb_buffer_len += xcb_block_len
  16175. xcb_block_len = uint32(0)
  16176. /* points */
  16177. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(points_len)*libc.Uint64FromInt64(4))
  16178. xcb_tmp += uintptr(xcb_block_len)
  16179. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16180. /* insert padding */
  16181. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16182. xcb_buffer_len += xcb_block_len + xcb_pad
  16183. if uint32(0) != xcb_pad {
  16184. xcb_tmp += uintptr(xcb_pad)
  16185. xcb_pad = uint32(0)
  16186. }
  16187. xcb_block_len = uint32(0)
  16188. return libc.Int32FromUint32(xcb_buffer_len)
  16189. }
  16190. 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) {
  16191. bp := tls.Alloc(112)
  16192. defer tls.Free(112)
  16193. var xcb_ret Txcb_void_cookie_t
  16194. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16195. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16196. _ = xcb_ret
  16197. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16198. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16199. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16200. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16201. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16202. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16203. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16204. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16205. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16206. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16207. /* xcb_point_t points */
  16208. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16209. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16210. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16211. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16212. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req146)))
  16213. return xcb_ret
  16214. }
  16215. var _xcb_req146 = Txcb_protocol_request_t{
  16216. Fcount: uint64(4),
  16217. Fopcode: uint8(m_XCB_FILL_POLY),
  16218. Fisvoid: uint8(1),
  16219. }
  16220. 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) {
  16221. bp := tls.Alloc(112)
  16222. defer tls.Free(112)
  16223. var xcb_ret Txcb_void_cookie_t
  16224. var _ /* xcb_out at bp+96 */ Txcb_fill_poly_request_t
  16225. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16226. _ = xcb_ret
  16227. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16228. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16229. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16230. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fshape = shape
  16231. (*(*Txcb_fill_poly_request_t)(unsafe.Pointer(bp + 96))).Fcoordinate_mode = coordinate_mode
  16232. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  16233. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16234. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16235. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16236. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16237. /* xcb_point_t points */
  16238. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = points
  16239. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(points_len) * uint64(4)
  16240. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16241. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16242. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req147)))
  16243. return xcb_ret
  16244. }
  16245. var _xcb_req147 = Txcb_protocol_request_t{
  16246. Fcount: uint64(4),
  16247. Fopcode: uint8(m_XCB_FILL_POLY),
  16248. Fisvoid: uint8(1),
  16249. }
  16250. func Xxcb_fill_poly_points(tls *libc.TLS, R uintptr) (r uintptr) {
  16251. return R + libc.UintptrFromInt32(1)*16
  16252. }
  16253. func Xxcb_fill_poly_points_length(tls *libc.TLS, R uintptr) (r int32) {
  16254. 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))
  16255. }
  16256. func Xxcb_fill_poly_points_iterator(tls *libc.TLS, R uintptr) (r Txcb_point_iterator_t) {
  16257. var i Txcb_point_iterator_t
  16258. _ = i
  16259. i.Fdata = R + libc.UintptrFromInt32(1)*16
  16260. 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))
  16261. i.Findex = int32(int64(i.Fdata) - int64(R))
  16262. return i
  16263. }
  16264. func Xxcb_poly_fill_rectangle_sizeof(tls *libc.TLS, _buffer uintptr, rectangles_len Tuint32_t) (r int32) {
  16265. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16266. var xcb_tmp uintptr
  16267. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16268. xcb_tmp = _buffer
  16269. xcb_buffer_len = uint32(0)
  16270. xcb_block_len = uint32(0)
  16271. xcb_pad = uint32(0)
  16272. xcb_align_to = uint32(0)
  16273. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16274. xcb_tmp += uintptr(xcb_block_len)
  16275. xcb_buffer_len += xcb_block_len
  16276. xcb_block_len = uint32(0)
  16277. /* rectangles */
  16278. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(rectangles_len)*libc.Uint64FromInt64(8))
  16279. xcb_tmp += uintptr(xcb_block_len)
  16280. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16281. /* insert padding */
  16282. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16283. xcb_buffer_len += xcb_block_len + xcb_pad
  16284. if uint32(0) != xcb_pad {
  16285. xcb_tmp += uintptr(xcb_pad)
  16286. xcb_pad = uint32(0)
  16287. }
  16288. xcb_block_len = uint32(0)
  16289. return libc.Int32FromUint32(xcb_buffer_len)
  16290. }
  16291. 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) {
  16292. bp := tls.Alloc(112)
  16293. defer tls.Free(112)
  16294. var xcb_ret Txcb_void_cookie_t
  16295. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16296. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16297. _ = xcb_ret
  16298. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16299. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16300. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16301. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16302. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16303. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16304. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16305. /* xcb_rectangle_t rectangles */
  16306. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16307. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16308. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16309. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16310. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req148)))
  16311. return xcb_ret
  16312. }
  16313. var _xcb_req148 = Txcb_protocol_request_t{
  16314. Fcount: uint64(4),
  16315. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16316. Fisvoid: uint8(1),
  16317. }
  16318. 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) {
  16319. bp := tls.Alloc(112)
  16320. defer tls.Free(112)
  16321. var xcb_ret Txcb_void_cookie_t
  16322. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_rectangle_request_t
  16323. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16324. _ = xcb_ret
  16325. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16326. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16327. (*(*Txcb_poly_fill_rectangle_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16328. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16329. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16330. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16331. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16332. /* xcb_rectangle_t rectangles */
  16333. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = rectangles
  16334. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(rectangles_len) * uint64(8)
  16335. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16336. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16337. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req149)))
  16338. return xcb_ret
  16339. }
  16340. var _xcb_req149 = Txcb_protocol_request_t{
  16341. Fcount: uint64(4),
  16342. Fopcode: uint8(m_XCB_POLY_FILL_RECTANGLE),
  16343. Fisvoid: uint8(1),
  16344. }
  16345. func Xxcb_poly_fill_rectangle_rectangles(tls *libc.TLS, R uintptr) (r uintptr) {
  16346. return R + libc.UintptrFromInt32(1)*12
  16347. }
  16348. func Xxcb_poly_fill_rectangle_rectangles_length(tls *libc.TLS, R uintptr) (r int32) {
  16349. 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))
  16350. }
  16351. func Xxcb_poly_fill_rectangle_rectangles_iterator(tls *libc.TLS, R uintptr) (r Txcb_rectangle_iterator_t) {
  16352. var i Txcb_rectangle_iterator_t
  16353. _ = i
  16354. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16355. 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))
  16356. i.Findex = int32(int64(i.Fdata) - int64(R))
  16357. return i
  16358. }
  16359. func Xxcb_poly_fill_arc_sizeof(tls *libc.TLS, _buffer uintptr, arcs_len Tuint32_t) (r int32) {
  16360. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16361. var xcb_tmp uintptr
  16362. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16363. xcb_tmp = _buffer
  16364. xcb_buffer_len = uint32(0)
  16365. xcb_block_len = uint32(0)
  16366. xcb_pad = uint32(0)
  16367. xcb_align_to = uint32(0)
  16368. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  16369. xcb_tmp += uintptr(xcb_block_len)
  16370. xcb_buffer_len += xcb_block_len
  16371. xcb_block_len = uint32(0)
  16372. /* arcs */
  16373. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(arcs_len)*libc.Uint64FromInt64(12))
  16374. xcb_tmp += uintptr(xcb_block_len)
  16375. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  16376. /* insert padding */
  16377. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16378. xcb_buffer_len += xcb_block_len + xcb_pad
  16379. if uint32(0) != xcb_pad {
  16380. xcb_tmp += uintptr(xcb_pad)
  16381. xcb_pad = uint32(0)
  16382. }
  16383. xcb_block_len = uint32(0)
  16384. return libc.Int32FromUint32(xcb_buffer_len)
  16385. }
  16386. 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) {
  16387. bp := tls.Alloc(112)
  16388. defer tls.Free(112)
  16389. var xcb_ret Txcb_void_cookie_t
  16390. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16391. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16392. _ = xcb_ret
  16393. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16394. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16395. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16396. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16397. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16398. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16399. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16400. /* xcb_arc_t arcs */
  16401. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16402. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16403. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16404. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16405. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req150)))
  16406. return xcb_ret
  16407. }
  16408. var _xcb_req150 = Txcb_protocol_request_t{
  16409. Fcount: uint64(4),
  16410. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16411. Fisvoid: uint8(1),
  16412. }
  16413. 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) {
  16414. bp := tls.Alloc(112)
  16415. defer tls.Free(112)
  16416. var xcb_ret Txcb_void_cookie_t
  16417. var _ /* xcb_out at bp+96 */ Txcb_poly_fill_arc_request_t
  16418. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16419. _ = xcb_ret
  16420. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16421. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16422. (*(*Txcb_poly_fill_arc_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16423. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16424. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  16425. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16426. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16427. /* xcb_arc_t arcs */
  16428. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = arcs
  16429. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(arcs_len) * uint64(12)
  16430. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16431. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16432. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req151)))
  16433. return xcb_ret
  16434. }
  16435. var _xcb_req151 = Txcb_protocol_request_t{
  16436. Fcount: uint64(4),
  16437. Fopcode: uint8(m_XCB_POLY_FILL_ARC),
  16438. Fisvoid: uint8(1),
  16439. }
  16440. func Xxcb_poly_fill_arc_arcs(tls *libc.TLS, R uintptr) (r uintptr) {
  16441. return R + libc.UintptrFromInt32(1)*12
  16442. }
  16443. func Xxcb_poly_fill_arc_arcs_length(tls *libc.TLS, R uintptr) (r int32) {
  16444. 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))
  16445. }
  16446. func Xxcb_poly_fill_arc_arcs_iterator(tls *libc.TLS, R uintptr) (r Txcb_arc_iterator_t) {
  16447. var i Txcb_arc_iterator_t
  16448. _ = i
  16449. i.Fdata = R + libc.UintptrFromInt32(1)*12
  16450. 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))
  16451. i.Findex = int32(int64(i.Fdata) - int64(R))
  16452. return i
  16453. }
  16454. func Xxcb_put_image_sizeof(tls *libc.TLS, _buffer uintptr, data_len Tuint32_t) (r int32) {
  16455. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16456. var xcb_tmp uintptr
  16457. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16458. xcb_tmp = _buffer
  16459. xcb_buffer_len = uint32(0)
  16460. xcb_block_len = uint32(0)
  16461. xcb_pad = uint32(0)
  16462. xcb_align_to = uint32(0)
  16463. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(24))
  16464. xcb_tmp += uintptr(xcb_block_len)
  16465. xcb_buffer_len += xcb_block_len
  16466. xcb_block_len = uint32(0)
  16467. /* data */
  16468. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(data_len)*libc.Uint64FromInt64(1))
  16469. xcb_tmp += uintptr(xcb_block_len)
  16470. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16471. /* insert padding */
  16472. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16473. xcb_buffer_len += xcb_block_len + xcb_pad
  16474. if uint32(0) != xcb_pad {
  16475. xcb_tmp += uintptr(xcb_pad)
  16476. xcb_pad = uint32(0)
  16477. }
  16478. xcb_block_len = uint32(0)
  16479. return libc.Int32FromUint32(xcb_buffer_len)
  16480. }
  16481. 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) {
  16482. bp := tls.Alloc(128)
  16483. defer tls.Free(128)
  16484. var xcb_ret Txcb_void_cookie_t
  16485. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16486. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16487. _ = xcb_ret
  16488. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16489. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16490. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16491. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16492. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16493. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16494. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16495. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16496. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16497. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16498. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16499. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16500. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16501. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16502. /* uint8_t data */
  16503. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16504. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16505. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16506. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16507. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req152)))
  16508. return xcb_ret
  16509. }
  16510. var _xcb_req152 = Txcb_protocol_request_t{
  16511. Fcount: uint64(4),
  16512. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16513. Fisvoid: uint8(1),
  16514. }
  16515. 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) {
  16516. bp := tls.Alloc(128)
  16517. defer tls.Free(128)
  16518. var xcb_ret Txcb_void_cookie_t
  16519. var _ /* xcb_out at bp+96 */ Txcb_put_image_request_t
  16520. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16521. _ = xcb_ret
  16522. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fformat = format
  16523. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16524. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16525. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fwidth = width
  16526. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fheight = height
  16527. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_x = dst_x
  16528. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdst_y = dst_y
  16529. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fleft_pad = left_pad
  16530. (*(*Txcb_put_image_request_t)(unsafe.Pointer(bp + 96))).Fdepth = depth
  16531. libc.Xmemset(tls, bp+96+22, 0, uint64(2))
  16532. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16533. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(24)
  16534. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16535. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16536. /* uint8_t data */
  16537. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = data
  16538. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(data_len) * uint64(1)
  16539. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16540. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16541. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req153)))
  16542. return xcb_ret
  16543. }
  16544. var _xcb_req153 = Txcb_protocol_request_t{
  16545. Fcount: uint64(4),
  16546. Fopcode: uint8(m_XCB_PUT_IMAGE),
  16547. Fisvoid: uint8(1),
  16548. }
  16549. func Xxcb_put_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16550. return R + libc.UintptrFromInt32(1)*24
  16551. }
  16552. func Xxcb_put_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16553. 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))
  16554. }
  16555. func Xxcb_put_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16556. var i Txcb_generic_iterator_t
  16557. _ = i
  16558. 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))
  16559. i.Frem = 0
  16560. i.Findex = int32(int64(i.Fdata) - int64(R))
  16561. return i
  16562. }
  16563. func Xxcb_get_image_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16564. var _aux, xcb_tmp uintptr
  16565. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16566. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16567. xcb_tmp = _buffer
  16568. _aux = _buffer
  16569. xcb_buffer_len = uint32(0)
  16570. xcb_block_len = uint32(0)
  16571. xcb_pad = uint32(0)
  16572. xcb_align_to = uint32(0)
  16573. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  16574. xcb_tmp += uintptr(xcb_block_len)
  16575. xcb_buffer_len += xcb_block_len
  16576. xcb_block_len = uint32(0)
  16577. /* data */
  16578. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_image_reply_t)(unsafe.Pointer(_aux)).Flength*libc.Uint32FromInt32(4))*libc.Uint64FromInt64(1))
  16579. xcb_tmp += uintptr(xcb_block_len)
  16580. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16581. /* insert padding */
  16582. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16583. xcb_buffer_len += xcb_block_len + xcb_pad
  16584. if uint32(0) != xcb_pad {
  16585. xcb_tmp += uintptr(xcb_pad)
  16586. xcb_pad = uint32(0)
  16587. }
  16588. xcb_block_len = uint32(0)
  16589. return libc.Int32FromUint32(xcb_buffer_len)
  16590. }
  16591. 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) {
  16592. bp := tls.Alloc(96)
  16593. defer tls.Free(96)
  16594. var xcb_ret Txcb_get_image_cookie_t
  16595. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16596. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16597. _ = xcb_ret
  16598. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16599. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16600. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16601. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16602. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16603. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16604. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16605. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16606. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16607. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16608. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16609. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req154)))
  16610. return xcb_ret
  16611. }
  16612. var _xcb_req154 = Txcb_protocol_request_t{
  16613. Fcount: uint64(2),
  16614. Fopcode: uint8(m_XCB_GET_IMAGE),
  16615. }
  16616. 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) {
  16617. bp := tls.Alloc(96)
  16618. defer tls.Free(96)
  16619. var xcb_ret Txcb_get_image_cookie_t
  16620. var _ /* xcb_out at bp+64 */ Txcb_get_image_request_t
  16621. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  16622. _ = xcb_ret
  16623. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fformat = format
  16624. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  16625. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  16626. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  16627. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  16628. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  16629. (*(*Txcb_get_image_request_t)(unsafe.Pointer(bp + 64))).Fplane_mask = plane_mask
  16630. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  16631. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  16632. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16633. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16634. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req155)))
  16635. return xcb_ret
  16636. }
  16637. var _xcb_req155 = Txcb_protocol_request_t{
  16638. Fcount: uint64(2),
  16639. Fopcode: uint8(m_XCB_GET_IMAGE),
  16640. }
  16641. func Xxcb_get_image_data(tls *libc.TLS, R uintptr) (r uintptr) {
  16642. return R + libc.UintptrFromInt32(1)*32
  16643. }
  16644. func Xxcb_get_image_data_length(tls *libc.TLS, R uintptr) (r int32) {
  16645. return libc.Int32FromUint32((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength * libc.Uint32FromInt32(4))
  16646. }
  16647. func Xxcb_get_image_data_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16648. var i Txcb_generic_iterator_t
  16649. _ = i
  16650. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_image_reply_t)(unsafe.Pointer(R)).Flength*libc.Uint32FromInt32(4))
  16651. i.Frem = 0
  16652. i.Findex = int32(int64(i.Fdata) - int64(R))
  16653. return i
  16654. }
  16655. func Xxcb_get_image_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_image_cookie_t, e uintptr) (r uintptr) {
  16656. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  16657. }
  16658. func Xxcb_poly_text_8_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16659. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16660. var xcb_tmp uintptr
  16661. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16662. xcb_tmp = _buffer
  16663. xcb_buffer_len = uint32(0)
  16664. xcb_block_len = uint32(0)
  16665. xcb_pad = uint32(0)
  16666. xcb_align_to = uint32(0)
  16667. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16668. xcb_tmp += uintptr(xcb_block_len)
  16669. xcb_buffer_len += xcb_block_len
  16670. xcb_block_len = uint32(0)
  16671. /* items */
  16672. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16673. xcb_tmp += uintptr(xcb_block_len)
  16674. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16675. /* insert padding */
  16676. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16677. xcb_buffer_len += xcb_block_len + xcb_pad
  16678. if uint32(0) != xcb_pad {
  16679. xcb_tmp += uintptr(xcb_pad)
  16680. xcb_pad = uint32(0)
  16681. }
  16682. xcb_block_len = uint32(0)
  16683. return libc.Int32FromUint32(xcb_buffer_len)
  16684. }
  16685. 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) {
  16686. bp := tls.Alloc(112)
  16687. defer tls.Free(112)
  16688. var xcb_ret Txcb_void_cookie_t
  16689. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16690. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16691. _ = xcb_ret
  16692. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16693. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16694. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16695. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16696. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16697. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16698. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16699. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16700. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16701. /* uint8_t items */
  16702. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16703. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16704. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16705. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16706. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req156)))
  16707. return xcb_ret
  16708. }
  16709. var _xcb_req156 = Txcb_protocol_request_t{
  16710. Fcount: uint64(4),
  16711. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16712. Fisvoid: uint8(1),
  16713. }
  16714. 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) {
  16715. bp := tls.Alloc(112)
  16716. defer tls.Free(112)
  16717. var xcb_ret Txcb_void_cookie_t
  16718. var _ /* xcb_out at bp+96 */ Txcb_poly_text_8_request_t
  16719. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16720. _ = xcb_ret
  16721. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16722. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16723. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16724. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16725. (*(*Txcb_poly_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16726. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16727. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16728. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16729. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16730. /* uint8_t items */
  16731. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16732. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16733. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16734. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16735. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req157)))
  16736. return xcb_ret
  16737. }
  16738. var _xcb_req157 = Txcb_protocol_request_t{
  16739. Fcount: uint64(4),
  16740. Fopcode: uint8(m_XCB_POLY_TEXT_8),
  16741. Fisvoid: uint8(1),
  16742. }
  16743. func Xxcb_poly_text_8_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16744. return R + libc.UintptrFromInt32(1)*16
  16745. }
  16746. func Xxcb_poly_text_8_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16747. 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))
  16748. }
  16749. func Xxcb_poly_text_8_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16750. var i Txcb_generic_iterator_t
  16751. _ = i
  16752. 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))
  16753. i.Frem = 0
  16754. i.Findex = int32(int64(i.Fdata) - int64(R))
  16755. return i
  16756. }
  16757. func Xxcb_poly_text_16_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  16758. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16759. var xcb_tmp uintptr
  16760. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16761. xcb_tmp = _buffer
  16762. xcb_buffer_len = uint32(0)
  16763. xcb_block_len = uint32(0)
  16764. xcb_pad = uint32(0)
  16765. xcb_align_to = uint32(0)
  16766. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16767. xcb_tmp += uintptr(xcb_block_len)
  16768. xcb_buffer_len += xcb_block_len
  16769. xcb_block_len = uint32(0)
  16770. /* items */
  16771. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(1))
  16772. xcb_tmp += uintptr(xcb_block_len)
  16773. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16774. /* insert padding */
  16775. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16776. xcb_buffer_len += xcb_block_len + xcb_pad
  16777. if uint32(0) != xcb_pad {
  16778. xcb_tmp += uintptr(xcb_pad)
  16779. xcb_pad = uint32(0)
  16780. }
  16781. xcb_block_len = uint32(0)
  16782. return libc.Int32FromUint32(xcb_buffer_len)
  16783. }
  16784. func Xxcb_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) {
  16785. bp := tls.Alloc(112)
  16786. defer tls.Free(112)
  16787. var xcb_ret Txcb_void_cookie_t
  16788. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16789. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16790. _ = xcb_ret
  16791. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16792. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16793. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16794. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16795. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16796. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16797. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16798. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16799. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16800. /* uint8_t items */
  16801. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16802. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16803. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16804. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16805. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req158)))
  16806. return xcb_ret
  16807. }
  16808. var _xcb_req158 = Txcb_protocol_request_t{
  16809. Fcount: uint64(4),
  16810. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16811. Fisvoid: uint8(1),
  16812. }
  16813. 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) {
  16814. bp := tls.Alloc(112)
  16815. defer tls.Free(112)
  16816. var xcb_ret Txcb_void_cookie_t
  16817. var _ /* xcb_out at bp+96 */ Txcb_poly_text_16_request_t
  16818. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16819. _ = xcb_ret
  16820. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  16821. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16822. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16823. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16824. (*(*Txcb_poly_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16825. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16826. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16827. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16828. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16829. /* uint8_t items */
  16830. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  16831. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(1)
  16832. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16833. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16834. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req159)))
  16835. return xcb_ret
  16836. }
  16837. var _xcb_req159 = Txcb_protocol_request_t{
  16838. Fcount: uint64(4),
  16839. Fopcode: uint8(m_XCB_POLY_TEXT_16),
  16840. Fisvoid: uint8(1),
  16841. }
  16842. func Xxcb_poly_text_16_items(tls *libc.TLS, R uintptr) (r uintptr) {
  16843. return R + libc.UintptrFromInt32(1)*16
  16844. }
  16845. func Xxcb_poly_text_16_items_length(tls *libc.TLS, R uintptr) (r int32) {
  16846. 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))
  16847. }
  16848. func Xxcb_poly_text_16_items_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16849. var i Txcb_generic_iterator_t
  16850. _ = i
  16851. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((libc.Uint64FromInt32(libc.Int32FromUint16((*Txcb_poly_text_16_request_t)(unsafe.Pointer(R)).Flength)*libc.Int32FromInt32(4))-libc.Uint64FromInt64(16))/libc.Uint64FromInt64(1))
  16852. i.Frem = 0
  16853. i.Findex = int32(int64(i.Fdata) - int64(R))
  16854. return i
  16855. }
  16856. func Xxcb_image_text_8_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16857. var _aux, xcb_tmp uintptr
  16858. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16859. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16860. xcb_tmp = _buffer
  16861. _aux = _buffer
  16862. xcb_buffer_len = uint32(0)
  16863. xcb_block_len = uint32(0)
  16864. xcb_pad = uint32(0)
  16865. xcb_align_to = uint32(0)
  16866. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16867. xcb_tmp += uintptr(xcb_block_len)
  16868. xcb_buffer_len += xcb_block_len
  16869. xcb_block_len = uint32(0)
  16870. /* string */
  16871. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_8_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(1))
  16872. xcb_tmp += uintptr(xcb_block_len)
  16873. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16874. /* insert padding */
  16875. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16876. xcb_buffer_len += xcb_block_len + xcb_pad
  16877. if uint32(0) != xcb_pad {
  16878. xcb_tmp += uintptr(xcb_pad)
  16879. xcb_pad = uint32(0)
  16880. }
  16881. xcb_block_len = uint32(0)
  16882. return libc.Int32FromUint32(xcb_buffer_len)
  16883. }
  16884. func Xxcb_image_text_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) {
  16885. bp := tls.Alloc(112)
  16886. defer tls.Free(112)
  16887. var xcb_ret Txcb_void_cookie_t
  16888. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16889. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16890. _ = xcb_ret
  16891. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16892. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16893. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16894. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16895. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16896. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16897. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16898. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16899. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16900. /* char string */
  16901. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16902. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16903. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16904. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16905. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req160)))
  16906. return xcb_ret
  16907. }
  16908. var _xcb_req160 = Txcb_protocol_request_t{
  16909. Fcount: uint64(4),
  16910. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16911. Fisvoid: uint8(1),
  16912. }
  16913. 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) {
  16914. bp := tls.Alloc(112)
  16915. defer tls.Free(112)
  16916. var xcb_ret Txcb_void_cookie_t
  16917. var _ /* xcb_out at bp+96 */ Txcb_image_text_8_request_t
  16918. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16919. _ = xcb_ret
  16920. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16921. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16922. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16923. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16924. (*(*Txcb_image_text_8_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16925. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16926. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16927. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16928. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  16929. /* char string */
  16930. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  16931. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(1)
  16932. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  16933. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  16934. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req161)))
  16935. return xcb_ret
  16936. }
  16937. var _xcb_req161 = Txcb_protocol_request_t{
  16938. Fcount: uint64(4),
  16939. Fopcode: uint8(m_XCB_IMAGE_TEXT_8),
  16940. Fisvoid: uint8(1),
  16941. }
  16942. func Xxcb_image_text_8_string(tls *libc.TLS, R uintptr) (r uintptr) {
  16943. return R + libc.UintptrFromInt32(1)*16
  16944. }
  16945. func Xxcb_image_text_8_string_length(tls *libc.TLS, R uintptr) (r int32) {
  16946. return libc.Int32FromUint8((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16947. }
  16948. func Xxcb_image_text_8_string_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  16949. var i Txcb_generic_iterator_t
  16950. _ = i
  16951. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_image_text_8_request_t)(unsafe.Pointer(R)).Fstring_len)
  16952. i.Frem = 0
  16953. i.Findex = int32(int64(i.Fdata) - int64(R))
  16954. return i
  16955. }
  16956. func Xxcb_image_text_16_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  16957. var _aux, xcb_tmp uintptr
  16958. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  16959. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  16960. xcb_tmp = _buffer
  16961. _aux = _buffer
  16962. xcb_buffer_len = uint32(0)
  16963. xcb_block_len = uint32(0)
  16964. xcb_pad = uint32(0)
  16965. xcb_align_to = uint32(0)
  16966. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  16967. xcb_tmp += uintptr(xcb_block_len)
  16968. xcb_buffer_len += xcb_block_len
  16969. xcb_block_len = uint32(0)
  16970. /* string */
  16971. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_image_text_16_request_t)(unsafe.Pointer(_aux)).Fstring_len)*libc.Uint64FromInt64(2))
  16972. xcb_tmp += uintptr(xcb_block_len)
  16973. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  16974. /* insert padding */
  16975. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  16976. xcb_buffer_len += xcb_block_len + xcb_pad
  16977. if uint32(0) != xcb_pad {
  16978. xcb_tmp += uintptr(xcb_pad)
  16979. xcb_pad = uint32(0)
  16980. }
  16981. xcb_block_len = uint32(0)
  16982. return libc.Int32FromUint32(xcb_buffer_len)
  16983. }
  16984. 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) {
  16985. bp := tls.Alloc(112)
  16986. defer tls.Free(112)
  16987. var xcb_ret Txcb_void_cookie_t
  16988. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  16989. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  16990. _ = xcb_ret
  16991. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  16992. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  16993. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  16994. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  16995. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  16996. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  16997. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  16998. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  16999. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17000. /* xcb_char2b_t string */
  17001. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  17002. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  17003. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17004. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17005. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req162)))
  17006. return xcb_ret
  17007. }
  17008. var _xcb_req162 = Txcb_protocol_request_t{
  17009. Fcount: uint64(4),
  17010. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  17011. Fisvoid: uint8(1),
  17012. }
  17013. 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) {
  17014. bp := tls.Alloc(112)
  17015. defer tls.Free(112)
  17016. var xcb_ret Txcb_void_cookie_t
  17017. var _ /* xcb_out at bp+96 */ Txcb_image_text_16_request_t
  17018. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17019. _ = xcb_ret
  17020. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fstring_len = string_len
  17021. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fdrawable = drawable
  17022. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fgc = gc
  17023. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fx = x
  17024. (*(*Txcb_image_text_16_request_t)(unsafe.Pointer(bp + 96))).Fy = y
  17025. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17026. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17027. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17028. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17029. /* xcb_char2b_t string */
  17030. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = string1
  17031. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(string_len) * uint64(2)
  17032. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17033. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17034. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req163)))
  17035. return xcb_ret
  17036. }
  17037. var _xcb_req163 = Txcb_protocol_request_t{
  17038. Fcount: uint64(4),
  17039. Fopcode: uint8(m_XCB_IMAGE_TEXT_16),
  17040. Fisvoid: uint8(1),
  17041. }
  17042. func Xxcb_image_text_16_string(tls *libc.TLS, R uintptr) (r uintptr) {
  17043. return R + libc.UintptrFromInt32(1)*16
  17044. }
  17045. func Xxcb_image_text_16_string_length(tls *libc.TLS, R uintptr) (r int32) {
  17046. return libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  17047. }
  17048. func Xxcb_image_text_16_string_iterator(tls *libc.TLS, R uintptr) (r Txcb_char2b_iterator_t) {
  17049. var i Txcb_char2b_iterator_t
  17050. _ = i
  17051. i.Fdata = R + libc.UintptrFromInt32(1)*16
  17052. i.Frem = libc.Int32FromUint8((*Txcb_image_text_16_request_t)(unsafe.Pointer(R)).Fstring_len)
  17053. i.Findex = int32(int64(i.Fdata) - int64(R))
  17054. return i
  17055. }
  17056. 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) {
  17057. bp := tls.Alloc(80)
  17058. defer tls.Free(80)
  17059. var xcb_ret Txcb_void_cookie_t
  17060. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  17061. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17062. _ = xcb_ret
  17063. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  17064. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17065. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17066. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  17067. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17068. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17069. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17070. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17071. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req164)))
  17072. return xcb_ret
  17073. }
  17074. var _xcb_req164 = Txcb_protocol_request_t{
  17075. Fcount: uint64(2),
  17076. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  17077. Fisvoid: uint8(1),
  17078. }
  17079. 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) {
  17080. bp := tls.Alloc(80)
  17081. defer tls.Free(80)
  17082. var xcb_ret Txcb_void_cookie_t
  17083. var _ /* xcb_out at bp+64 */ Txcb_create_colormap_request_t
  17084. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17085. _ = xcb_ret
  17086. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Falloc = alloc
  17087. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17088. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17089. (*(*Txcb_create_colormap_request_t)(unsafe.Pointer(bp + 64))).Fvisual = visual
  17090. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17091. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17092. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17093. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17094. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req165)))
  17095. return xcb_ret
  17096. }
  17097. var _xcb_req165 = Txcb_protocol_request_t{
  17098. Fcount: uint64(2),
  17099. Fopcode: uint8(m_XCB_CREATE_COLORMAP),
  17100. Fisvoid: uint8(1),
  17101. }
  17102. func Xxcb_free_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17103. bp := tls.Alloc(80)
  17104. defer tls.Free(80)
  17105. var xcb_ret Txcb_void_cookie_t
  17106. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  17107. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17108. _ = xcb_ret
  17109. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17110. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17111. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17112. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17113. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17114. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17115. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req166)))
  17116. return xcb_ret
  17117. }
  17118. var _xcb_req166 = Txcb_protocol_request_t{
  17119. Fcount: uint64(2),
  17120. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  17121. Fisvoid: uint8(1),
  17122. }
  17123. func Xxcb_free_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17124. bp := tls.Alloc(80)
  17125. defer tls.Free(80)
  17126. var xcb_ret Txcb_void_cookie_t
  17127. var _ /* xcb_out at bp+64 */ Txcb_free_colormap_request_t
  17128. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17129. _ = xcb_ret
  17130. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17131. (*(*Txcb_free_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17132. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17133. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17134. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17135. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17136. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req167)))
  17137. return xcb_ret
  17138. }
  17139. var _xcb_req167 = Txcb_protocol_request_t{
  17140. Fcount: uint64(2),
  17141. Fopcode: uint8(m_XCB_FREE_COLORMAP),
  17142. Fisvoid: uint8(1),
  17143. }
  17144. 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) {
  17145. bp := tls.Alloc(80)
  17146. defer tls.Free(80)
  17147. var xcb_ret Txcb_void_cookie_t
  17148. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  17149. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17150. _ = xcb_ret
  17151. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17152. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17153. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  17154. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17155. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17156. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17157. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17158. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req168)))
  17159. return xcb_ret
  17160. }
  17161. var _xcb_req168 = Txcb_protocol_request_t{
  17162. Fcount: uint64(2),
  17163. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17164. Fisvoid: uint8(1),
  17165. }
  17166. 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) {
  17167. bp := tls.Alloc(80)
  17168. defer tls.Free(80)
  17169. var xcb_ret Txcb_void_cookie_t
  17170. var _ /* xcb_out at bp+64 */ Txcb_copy_colormap_and_free_request_t
  17171. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17172. _ = xcb_ret
  17173. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17174. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fmid = mid
  17175. (*(*Txcb_copy_colormap_and_free_request_t)(unsafe.Pointer(bp + 64))).Fsrc_cmap = src_cmap
  17176. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17177. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17178. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17179. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17180. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req169)))
  17181. return xcb_ret
  17182. }
  17183. var _xcb_req169 = Txcb_protocol_request_t{
  17184. Fcount: uint64(2),
  17185. Fopcode: uint8(m_XCB_COPY_COLORMAP_AND_FREE),
  17186. Fisvoid: uint8(1),
  17187. }
  17188. func Xxcb_install_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17189. bp := tls.Alloc(80)
  17190. defer tls.Free(80)
  17191. var xcb_ret Txcb_void_cookie_t
  17192. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17193. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17194. _ = xcb_ret
  17195. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17196. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17197. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17198. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17199. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17200. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17201. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req170)))
  17202. return xcb_ret
  17203. }
  17204. var _xcb_req170 = Txcb_protocol_request_t{
  17205. Fcount: uint64(2),
  17206. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17207. Fisvoid: uint8(1),
  17208. }
  17209. func Xxcb_install_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17210. bp := tls.Alloc(80)
  17211. defer tls.Free(80)
  17212. var xcb_ret Txcb_void_cookie_t
  17213. var _ /* xcb_out at bp+64 */ Txcb_install_colormap_request_t
  17214. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17215. _ = xcb_ret
  17216. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17217. (*(*Txcb_install_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17218. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17219. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17220. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17221. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17222. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req171)))
  17223. return xcb_ret
  17224. }
  17225. var _xcb_req171 = Txcb_protocol_request_t{
  17226. Fcount: uint64(2),
  17227. Fopcode: uint8(m_XCB_INSTALL_COLORMAP),
  17228. Fisvoid: uint8(1),
  17229. }
  17230. func Xxcb_uninstall_colormap_checked(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17231. bp := tls.Alloc(80)
  17232. defer tls.Free(80)
  17233. var xcb_ret Txcb_void_cookie_t
  17234. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17235. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17236. _ = xcb_ret
  17237. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17238. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17239. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17240. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17241. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17242. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17243. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req172)))
  17244. return xcb_ret
  17245. }
  17246. var _xcb_req172 = Txcb_protocol_request_t{
  17247. Fcount: uint64(2),
  17248. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17249. Fisvoid: uint8(1),
  17250. }
  17251. func Xxcb_uninstall_colormap(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t) (r Txcb_void_cookie_t) {
  17252. bp := tls.Alloc(80)
  17253. defer tls.Free(80)
  17254. var xcb_ret Txcb_void_cookie_t
  17255. var _ /* xcb_out at bp+64 */ Txcb_uninstall_colormap_request_t
  17256. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17257. _ = xcb_ret
  17258. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17259. (*(*Txcb_uninstall_colormap_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17260. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17261. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17262. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17263. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17264. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req173)))
  17265. return xcb_ret
  17266. }
  17267. var _xcb_req173 = Txcb_protocol_request_t{
  17268. Fcount: uint64(2),
  17269. Fopcode: uint8(m_XCB_UNINSTALL_COLORMAP),
  17270. Fisvoid: uint8(1),
  17271. }
  17272. func Xxcb_list_installed_colormaps_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17273. var _aux, xcb_tmp uintptr
  17274. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17275. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17276. xcb_tmp = _buffer
  17277. _aux = _buffer
  17278. xcb_buffer_len = uint32(0)
  17279. xcb_block_len = uint32(0)
  17280. xcb_pad = uint32(0)
  17281. xcb_align_to = uint32(0)
  17282. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17283. xcb_tmp += uintptr(xcb_block_len)
  17284. xcb_buffer_len += xcb_block_len
  17285. xcb_block_len = uint32(0)
  17286. /* cmaps */
  17287. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(_aux)).Fcmaps_len)*libc.Uint64FromInt64(4))
  17288. xcb_tmp += uintptr(xcb_block_len)
  17289. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17290. /* insert padding */
  17291. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17292. xcb_buffer_len += xcb_block_len + xcb_pad
  17293. if uint32(0) != xcb_pad {
  17294. xcb_tmp += uintptr(xcb_pad)
  17295. xcb_pad = uint32(0)
  17296. }
  17297. xcb_block_len = uint32(0)
  17298. return libc.Int32FromUint32(xcb_buffer_len)
  17299. }
  17300. func Xxcb_list_installed_colormaps(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17301. bp := tls.Alloc(80)
  17302. defer tls.Free(80)
  17303. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17304. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17305. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17306. _ = xcb_ret
  17307. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17308. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17309. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17310. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17311. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17312. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17313. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req174)))
  17314. return xcb_ret
  17315. }
  17316. var _xcb_req174 = Txcb_protocol_request_t{
  17317. Fcount: uint64(2),
  17318. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17319. }
  17320. func Xxcb_list_installed_colormaps_unchecked(tls *libc.TLS, c uintptr, window Txcb_window_t) (r Txcb_list_installed_colormaps_cookie_t) {
  17321. bp := tls.Alloc(80)
  17322. defer tls.Free(80)
  17323. var xcb_ret Txcb_list_installed_colormaps_cookie_t
  17324. var _ /* xcb_out at bp+64 */ Txcb_list_installed_colormaps_request_t
  17325. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17326. _ = xcb_ret
  17327. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17328. (*(*Txcb_list_installed_colormaps_request_t)(unsafe.Pointer(bp + 64))).Fwindow = window
  17329. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17330. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17331. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17332. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17333. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req175)))
  17334. return xcb_ret
  17335. }
  17336. var _xcb_req175 = Txcb_protocol_request_t{
  17337. Fcount: uint64(2),
  17338. Fopcode: uint8(m_XCB_LIST_INSTALLED_COLORMAPS),
  17339. }
  17340. func Xxcb_list_installed_colormaps_cmaps(tls *libc.TLS, R uintptr) (r uintptr) {
  17341. return R + libc.UintptrFromInt32(1)*32
  17342. }
  17343. func Xxcb_list_installed_colormaps_cmaps_length(tls *libc.TLS, R uintptr) (r int32) {
  17344. return libc.Int32FromUint16((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)
  17345. }
  17346. func Xxcb_list_installed_colormaps_cmaps_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17347. var i Txcb_generic_iterator_t
  17348. _ = i
  17349. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_list_installed_colormaps_reply_t)(unsafe.Pointer(R)).Fcmaps_len)*4
  17350. i.Frem = 0
  17351. i.Findex = int32(int64(i.Fdata) - int64(R))
  17352. return i
  17353. }
  17354. func Xxcb_list_installed_colormaps_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_installed_colormaps_cookie_t, e uintptr) (r uintptr) {
  17355. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17356. }
  17357. 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) {
  17358. bp := tls.Alloc(80)
  17359. defer tls.Free(80)
  17360. var xcb_ret Txcb_alloc_color_cookie_t
  17361. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17362. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17363. _ = xcb_ret
  17364. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17365. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17366. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17367. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17368. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17369. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17370. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17371. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17372. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17373. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17374. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req176)))
  17375. return xcb_ret
  17376. }
  17377. var _xcb_req176 = Txcb_protocol_request_t{
  17378. Fcount: uint64(2),
  17379. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17380. }
  17381. 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) {
  17382. bp := tls.Alloc(80)
  17383. defer tls.Free(80)
  17384. var xcb_ret Txcb_alloc_color_cookie_t
  17385. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_request_t
  17386. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17387. _ = xcb_ret
  17388. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  17389. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17390. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fred = red
  17391. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fgreen = green
  17392. (*(*Txcb_alloc_color_request_t)(unsafe.Pointer(bp + 64))).Fblue = blue
  17393. libc.Xmemset(tls, bp+64+14, 0, uint64(2))
  17394. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17395. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17396. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17397. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17398. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req177)))
  17399. return xcb_ret
  17400. }
  17401. var _xcb_req177 = Txcb_protocol_request_t{
  17402. Fcount: uint64(2),
  17403. Fopcode: uint8(m_XCB_ALLOC_COLOR),
  17404. }
  17405. func Xxcb_alloc_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cookie_t, e uintptr) (r uintptr) {
  17406. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17407. }
  17408. func Xxcb_alloc_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17409. var _aux, xcb_tmp uintptr
  17410. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17411. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17412. xcb_tmp = _buffer
  17413. _aux = _buffer
  17414. xcb_buffer_len = uint32(0)
  17415. xcb_block_len = uint32(0)
  17416. xcb_pad = uint32(0)
  17417. xcb_align_to = uint32(0)
  17418. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17419. xcb_tmp += uintptr(xcb_block_len)
  17420. xcb_buffer_len += xcb_block_len
  17421. xcb_block_len = uint32(0)
  17422. /* name */
  17423. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17424. xcb_tmp += uintptr(xcb_block_len)
  17425. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17426. /* insert padding */
  17427. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17428. xcb_buffer_len += xcb_block_len + xcb_pad
  17429. if uint32(0) != xcb_pad {
  17430. xcb_tmp += uintptr(xcb_pad)
  17431. xcb_pad = uint32(0)
  17432. }
  17433. xcb_block_len = uint32(0)
  17434. return libc.Int32FromUint32(xcb_buffer_len)
  17435. }
  17436. 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) {
  17437. bp := tls.Alloc(112)
  17438. defer tls.Free(112)
  17439. var xcb_ret Txcb_alloc_named_color_cookie_t
  17440. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17441. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17442. _ = xcb_ret
  17443. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17444. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17445. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17446. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17447. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17448. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17449. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17450. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17451. /* char name */
  17452. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17453. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17454. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17455. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17456. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req178)))
  17457. return xcb_ret
  17458. }
  17459. var _xcb_req178 = Txcb_protocol_request_t{
  17460. Fcount: uint64(4),
  17461. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17462. }
  17463. 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) {
  17464. bp := tls.Alloc(112)
  17465. defer tls.Free(112)
  17466. var xcb_ret Txcb_alloc_named_color_cookie_t
  17467. var _ /* xcb_out at bp+96 */ Txcb_alloc_named_color_request_t
  17468. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17469. _ = xcb_ret
  17470. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17471. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17472. (*(*Txcb_alloc_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17473. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  17474. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17475. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17476. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17477. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17478. /* char name */
  17479. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17480. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17481. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17482. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17483. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req179)))
  17484. return xcb_ret
  17485. }
  17486. var _xcb_req179 = Txcb_protocol_request_t{
  17487. Fcount: uint64(4),
  17488. Fopcode: uint8(m_XCB_ALLOC_NAMED_COLOR),
  17489. }
  17490. func Xxcb_alloc_named_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_named_color_cookie_t, e uintptr) (r uintptr) {
  17491. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17492. }
  17493. func Xxcb_alloc_color_cells_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17494. var _aux, xcb_tmp uintptr
  17495. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17496. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17497. xcb_tmp = _buffer
  17498. _aux = _buffer
  17499. xcb_buffer_len = uint32(0)
  17500. xcb_block_len = uint32(0)
  17501. xcb_pad = uint32(0)
  17502. xcb_align_to = uint32(0)
  17503. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17504. xcb_tmp += uintptr(xcb_block_len)
  17505. xcb_buffer_len += xcb_block_len
  17506. xcb_block_len = uint32(0)
  17507. /* pixels */
  17508. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17509. xcb_tmp += uintptr(xcb_block_len)
  17510. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17511. /* insert padding */
  17512. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17513. xcb_buffer_len += xcb_block_len + xcb_pad
  17514. if uint32(0) != xcb_pad {
  17515. xcb_tmp += uintptr(xcb_pad)
  17516. xcb_pad = uint32(0)
  17517. }
  17518. xcb_block_len = uint32(0)
  17519. /* masks */
  17520. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(_aux)).Fmasks_len)*libc.Uint64FromInt64(4))
  17521. xcb_tmp += uintptr(xcb_block_len)
  17522. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17523. /* insert padding */
  17524. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17525. xcb_buffer_len += xcb_block_len + xcb_pad
  17526. if uint32(0) != xcb_pad {
  17527. xcb_tmp += uintptr(xcb_pad)
  17528. xcb_pad = uint32(0)
  17529. }
  17530. xcb_block_len = uint32(0)
  17531. return libc.Int32FromUint32(xcb_buffer_len)
  17532. }
  17533. 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) {
  17534. bp := tls.Alloc(80)
  17535. defer tls.Free(80)
  17536. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17537. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17538. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17539. _ = xcb_ret
  17540. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17541. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17542. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17543. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17544. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17545. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17546. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17547. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17548. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req180)))
  17549. return xcb_ret
  17550. }
  17551. var _xcb_req180 = Txcb_protocol_request_t{
  17552. Fcount: uint64(2),
  17553. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17554. }
  17555. 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) {
  17556. bp := tls.Alloc(80)
  17557. defer tls.Free(80)
  17558. var xcb_ret Txcb_alloc_color_cells_cookie_t
  17559. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_cells_request_t
  17560. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17561. _ = xcb_ret
  17562. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17563. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17564. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17565. (*(*Txcb_alloc_color_cells_request_t)(unsafe.Pointer(bp + 64))).Fplanes = planes
  17566. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17567. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17568. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17569. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17570. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req181)))
  17571. return xcb_ret
  17572. }
  17573. var _xcb_req181 = Txcb_protocol_request_t{
  17574. Fcount: uint64(2),
  17575. Fopcode: uint8(m_XCB_ALLOC_COLOR_CELLS),
  17576. }
  17577. func Xxcb_alloc_color_cells_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17578. return R + libc.UintptrFromInt32(1)*32
  17579. }
  17580. func Xxcb_alloc_color_cells_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17581. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17582. }
  17583. func Xxcb_alloc_color_cells_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17584. var i Txcb_generic_iterator_t
  17585. _ = i
  17586. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17587. i.Frem = 0
  17588. i.Findex = int32(int64(i.Fdata) - int64(R))
  17589. return i
  17590. }
  17591. func Xxcb_alloc_color_cells_masks(tls *libc.TLS, R uintptr) (r uintptr) {
  17592. var prev Txcb_generic_iterator_t
  17593. _ = prev
  17594. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17595. return prev.Fdata + uintptr(libc.Uint64FromInt32(-prev.Findex)&(libc.Uint64FromInt64(4)-libc.Uint64FromInt32(1))) + libc.UintptrFromInt32(0)
  17596. }
  17597. func Xxcb_alloc_color_cells_masks_length(tls *libc.TLS, R uintptr) (r int32) {
  17598. return libc.Int32FromUint16((*Txcb_alloc_color_cells_reply_t)(unsafe.Pointer(R)).Fmasks_len)
  17599. }
  17600. func Xxcb_alloc_color_cells_masks_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17601. var i, prev Txcb_generic_iterator_t
  17602. _, _ = i, prev
  17603. prev = Xxcb_alloc_color_cells_pixels_end(tls, R)
  17604. 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
  17605. i.Frem = 0
  17606. i.Findex = int32(int64(i.Fdata) - int64(R))
  17607. return i
  17608. }
  17609. func Xxcb_alloc_color_cells_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_cells_cookie_t, e uintptr) (r uintptr) {
  17610. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17611. }
  17612. func Xxcb_alloc_color_planes_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17613. var _aux, xcb_tmp uintptr
  17614. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17615. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17616. xcb_tmp = _buffer
  17617. _aux = _buffer
  17618. xcb_buffer_len = uint32(0)
  17619. xcb_block_len = uint32(0)
  17620. xcb_pad = uint32(0)
  17621. xcb_align_to = uint32(0)
  17622. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  17623. xcb_tmp += uintptr(xcb_block_len)
  17624. xcb_buffer_len += xcb_block_len
  17625. xcb_block_len = uint32(0)
  17626. /* pixels */
  17627. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(_aux)).Fpixels_len)*libc.Uint64FromInt64(4))
  17628. xcb_tmp += uintptr(xcb_block_len)
  17629. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17630. /* insert padding */
  17631. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17632. xcb_buffer_len += xcb_block_len + xcb_pad
  17633. if uint32(0) != xcb_pad {
  17634. xcb_tmp += uintptr(xcb_pad)
  17635. xcb_pad = uint32(0)
  17636. }
  17637. xcb_block_len = uint32(0)
  17638. return libc.Int32FromUint32(xcb_buffer_len)
  17639. }
  17640. 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) {
  17641. bp := tls.Alloc(80)
  17642. defer tls.Free(80)
  17643. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17644. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17645. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17646. _ = xcb_ret
  17647. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17648. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17649. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17650. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17651. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17652. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17653. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17654. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17655. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17656. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17657. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req182)))
  17658. return xcb_ret
  17659. }
  17660. var _xcb_req182 = Txcb_protocol_request_t{
  17661. Fcount: uint64(2),
  17662. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17663. }
  17664. 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) {
  17665. bp := tls.Alloc(80)
  17666. defer tls.Free(80)
  17667. var xcb_ret Txcb_alloc_color_planes_cookie_t
  17668. var _ /* xcb_out at bp+64 */ Txcb_alloc_color_planes_request_t
  17669. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  17670. _ = xcb_ret
  17671. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcontiguous = contiguous
  17672. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcmap = cmap
  17673. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fcolors = colors
  17674. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Freds = reds
  17675. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fgreens = greens
  17676. (*(*Txcb_alloc_color_planes_request_t)(unsafe.Pointer(bp + 64))).Fblues = blues
  17677. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  17678. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17679. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17680. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17681. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req183)))
  17682. return xcb_ret
  17683. }
  17684. var _xcb_req183 = Txcb_protocol_request_t{
  17685. Fcount: uint64(2),
  17686. Fopcode: uint8(m_XCB_ALLOC_COLOR_PLANES),
  17687. }
  17688. func Xxcb_alloc_color_planes_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17689. return R + libc.UintptrFromInt32(1)*32
  17690. }
  17691. func Xxcb_alloc_color_planes_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17692. return libc.Int32FromUint16((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)
  17693. }
  17694. func Xxcb_alloc_color_planes_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17695. var i Txcb_generic_iterator_t
  17696. _ = i
  17697. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_alloc_color_planes_reply_t)(unsafe.Pointer(R)).Fpixels_len)*4
  17698. i.Frem = 0
  17699. i.Findex = int32(int64(i.Fdata) - int64(R))
  17700. return i
  17701. }
  17702. func Xxcb_alloc_color_planes_reply(tls *libc.TLS, c uintptr, cookie Txcb_alloc_color_planes_cookie_t, e uintptr) (r uintptr) {
  17703. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  17704. }
  17705. func Xxcb_free_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  17706. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17707. var xcb_tmp uintptr
  17708. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17709. xcb_tmp = _buffer
  17710. xcb_buffer_len = uint32(0)
  17711. xcb_block_len = uint32(0)
  17712. xcb_pad = uint32(0)
  17713. xcb_align_to = uint32(0)
  17714. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  17715. xcb_tmp += uintptr(xcb_block_len)
  17716. xcb_buffer_len += xcb_block_len
  17717. xcb_block_len = uint32(0)
  17718. /* pixels */
  17719. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  17720. xcb_tmp += uintptr(xcb_block_len)
  17721. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17722. /* insert padding */
  17723. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17724. xcb_buffer_len += xcb_block_len + xcb_pad
  17725. if uint32(0) != xcb_pad {
  17726. xcb_tmp += uintptr(xcb_pad)
  17727. xcb_pad = uint32(0)
  17728. }
  17729. xcb_block_len = uint32(0)
  17730. return libc.Int32FromUint32(xcb_buffer_len)
  17731. }
  17732. 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) {
  17733. bp := tls.Alloc(112)
  17734. defer tls.Free(112)
  17735. var xcb_ret Txcb_void_cookie_t
  17736. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17737. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17738. _ = xcb_ret
  17739. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17740. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17741. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17742. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17743. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17744. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17745. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17746. /* uint32_t pixels */
  17747. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17748. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17749. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17750. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17751. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req184)))
  17752. return xcb_ret
  17753. }
  17754. var _xcb_req184 = Txcb_protocol_request_t{
  17755. Fcount: uint64(4),
  17756. Fopcode: uint8(m_XCB_FREE_COLORS),
  17757. Fisvoid: uint8(1),
  17758. }
  17759. 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) {
  17760. bp := tls.Alloc(112)
  17761. defer tls.Free(112)
  17762. var xcb_ret Txcb_void_cookie_t
  17763. var _ /* xcb_out at bp+96 */ Txcb_free_colors_request_t
  17764. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17765. _ = xcb_ret
  17766. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17767. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17768. (*(*Txcb_free_colors_request_t)(unsafe.Pointer(bp + 96))).Fplane_mask = plane_mask
  17769. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17770. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  17771. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17772. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17773. /* uint32_t pixels */
  17774. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  17775. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  17776. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17777. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17778. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req185)))
  17779. return xcb_ret
  17780. }
  17781. var _xcb_req185 = Txcb_protocol_request_t{
  17782. Fcount: uint64(4),
  17783. Fopcode: uint8(m_XCB_FREE_COLORS),
  17784. Fisvoid: uint8(1),
  17785. }
  17786. func Xxcb_free_colors_pixels(tls *libc.TLS, R uintptr) (r uintptr) {
  17787. return R + libc.UintptrFromInt32(1)*12
  17788. }
  17789. func Xxcb_free_colors_pixels_length(tls *libc.TLS, R uintptr) (r int32) {
  17790. 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))
  17791. }
  17792. func Xxcb_free_colors_pixels_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  17793. var i Txcb_generic_iterator_t
  17794. _ = i
  17795. 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
  17796. i.Frem = 0
  17797. i.Findex = int32(int64(i.Fdata) - int64(R))
  17798. return i
  17799. }
  17800. func Xxcb_coloritem_next(tls *libc.TLS, i uintptr) {
  17801. var p1 uintptr
  17802. _ = p1
  17803. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Frem--
  17804. (*Txcb_coloritem_iterator_t)(unsafe.Pointer(i)).Fdata += 12
  17805. p1 = i + 12
  17806. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(12))
  17807. }
  17808. func Xxcb_coloritem_end(tls *libc.TLS, i Txcb_coloritem_iterator_t) (r Txcb_generic_iterator_t) {
  17809. var ret Txcb_generic_iterator_t
  17810. _ = ret
  17811. ret.Fdata = i.Fdata + uintptr(i.Frem)*12
  17812. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  17813. ret.Frem = 0
  17814. return ret
  17815. }
  17816. func Xxcb_store_colors_sizeof(tls *libc.TLS, _buffer uintptr, items_len Tuint32_t) (r int32) {
  17817. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17818. var xcb_tmp uintptr
  17819. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17820. xcb_tmp = _buffer
  17821. xcb_buffer_len = uint32(0)
  17822. xcb_block_len = uint32(0)
  17823. xcb_pad = uint32(0)
  17824. xcb_align_to = uint32(0)
  17825. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  17826. xcb_tmp += uintptr(xcb_block_len)
  17827. xcb_buffer_len += xcb_block_len
  17828. xcb_block_len = uint32(0)
  17829. /* items */
  17830. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(items_len)*libc.Uint64FromInt64(12))
  17831. xcb_tmp += uintptr(xcb_block_len)
  17832. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  17833. /* insert padding */
  17834. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17835. xcb_buffer_len += xcb_block_len + xcb_pad
  17836. if uint32(0) != xcb_pad {
  17837. xcb_tmp += uintptr(xcb_pad)
  17838. xcb_pad = uint32(0)
  17839. }
  17840. xcb_block_len = uint32(0)
  17841. return libc.Int32FromUint32(xcb_buffer_len)
  17842. }
  17843. 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) {
  17844. bp := tls.Alloc(112)
  17845. defer tls.Free(112)
  17846. var xcb_ret Txcb_void_cookie_t
  17847. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17848. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17849. _ = xcb_ret
  17850. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17851. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17852. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17853. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17854. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17855. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17856. /* xcb_coloritem_t items */
  17857. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17858. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17859. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17860. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17861. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req186)))
  17862. return xcb_ret
  17863. }
  17864. var _xcb_req186 = Txcb_protocol_request_t{
  17865. Fcount: uint64(4),
  17866. Fopcode: uint8(m_XCB_STORE_COLORS),
  17867. Fisvoid: uint8(1),
  17868. }
  17869. func Xxcb_store_colors(tls *libc.TLS, c uintptr, cmap Txcb_colormap_t, items_len Tuint32_t, items uintptr) (r Txcb_void_cookie_t) {
  17870. bp := tls.Alloc(112)
  17871. defer tls.Free(112)
  17872. var xcb_ret Txcb_void_cookie_t
  17873. var _ /* xcb_out at bp+96 */ Txcb_store_colors_request_t
  17874. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17875. _ = xcb_ret
  17876. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  17877. (*(*Txcb_store_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17878. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17879. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  17880. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17881. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17882. /* xcb_coloritem_t items */
  17883. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = items
  17884. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(items_len) * uint64(12)
  17885. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17886. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17887. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req187)))
  17888. return xcb_ret
  17889. }
  17890. var _xcb_req187 = Txcb_protocol_request_t{
  17891. Fcount: uint64(4),
  17892. Fopcode: uint8(m_XCB_STORE_COLORS),
  17893. Fisvoid: uint8(1),
  17894. }
  17895. func Xxcb_store_colors_items(tls *libc.TLS, R uintptr) (r uintptr) {
  17896. return R + libc.UintptrFromInt32(1)*8
  17897. }
  17898. func Xxcb_store_colors_items_length(tls *libc.TLS, R uintptr) (r int32) {
  17899. 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))
  17900. }
  17901. func Xxcb_store_colors_items_iterator(tls *libc.TLS, R uintptr) (r Txcb_coloritem_iterator_t) {
  17902. var i Txcb_coloritem_iterator_t
  17903. _ = i
  17904. i.Fdata = R + libc.UintptrFromInt32(1)*8
  17905. 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))
  17906. i.Findex = int32(int64(i.Fdata) - int64(R))
  17907. return i
  17908. }
  17909. func Xxcb_store_named_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  17910. var _aux, xcb_tmp uintptr
  17911. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  17912. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  17913. xcb_tmp = _buffer
  17914. _aux = _buffer
  17915. xcb_buffer_len = uint32(0)
  17916. xcb_block_len = uint32(0)
  17917. xcb_pad = uint32(0)
  17918. xcb_align_to = uint32(0)
  17919. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(16))
  17920. xcb_tmp += uintptr(xcb_block_len)
  17921. xcb_buffer_len += xcb_block_len
  17922. xcb_block_len = uint32(0)
  17923. /* name */
  17924. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_store_named_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  17925. xcb_tmp += uintptr(xcb_block_len)
  17926. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  17927. /* insert padding */
  17928. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  17929. xcb_buffer_len += xcb_block_len + xcb_pad
  17930. if uint32(0) != xcb_pad {
  17931. xcb_tmp += uintptr(xcb_pad)
  17932. xcb_pad = uint32(0)
  17933. }
  17934. xcb_block_len = uint32(0)
  17935. return libc.Int32FromUint32(xcb_buffer_len)
  17936. }
  17937. 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) {
  17938. bp := tls.Alloc(112)
  17939. defer tls.Free(112)
  17940. var xcb_ret Txcb_void_cookie_t
  17941. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17942. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17943. _ = xcb_ret
  17944. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17945. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17946. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17947. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17948. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17949. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17950. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17951. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17952. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17953. /* char name */
  17954. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17955. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17956. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17957. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17958. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req188)))
  17959. return xcb_ret
  17960. }
  17961. var _xcb_req188 = Txcb_protocol_request_t{
  17962. Fcount: uint64(4),
  17963. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17964. Fisvoid: uint8(1),
  17965. }
  17966. 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) {
  17967. bp := tls.Alloc(112)
  17968. defer tls.Free(112)
  17969. var xcb_ret Txcb_void_cookie_t
  17970. var _ /* xcb_out at bp+96 */ Txcb_store_named_color_request_t
  17971. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  17972. _ = xcb_ret
  17973. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fflags = flags
  17974. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  17975. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fpixel = pixel
  17976. (*(*Txcb_store_named_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  17977. libc.Xmemset(tls, bp+96+14, 0, uint64(2))
  17978. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  17979. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(16)
  17980. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  17981. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  17982. /* char name */
  17983. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  17984. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  17985. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  17986. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  17987. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req189)))
  17988. return xcb_ret
  17989. }
  17990. var _xcb_req189 = Txcb_protocol_request_t{
  17991. Fcount: uint64(4),
  17992. Fopcode: uint8(m_XCB_STORE_NAMED_COLOR),
  17993. Fisvoid: uint8(1),
  17994. }
  17995. func Xxcb_store_named_color_name(tls *libc.TLS, R uintptr) (r uintptr) {
  17996. return R + libc.UintptrFromInt32(1)*16
  17997. }
  17998. func Xxcb_store_named_color_name_length(tls *libc.TLS, R uintptr) (r int32) {
  17999. return libc.Int32FromUint16((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  18000. }
  18001. func Xxcb_store_named_color_name_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18002. var i Txcb_generic_iterator_t
  18003. _ = i
  18004. i.Fdata = R + libc.UintptrFromInt32(1)*16 + uintptr((*Txcb_store_named_color_request_t)(unsafe.Pointer(R)).Fname_len)
  18005. i.Frem = 0
  18006. i.Findex = int32(int64(i.Fdata) - int64(R))
  18007. return i
  18008. }
  18009. func Xxcb_rgb_next(tls *libc.TLS, i uintptr) {
  18010. var p1 uintptr
  18011. _ = p1
  18012. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Frem--
  18013. (*Txcb_rgb_iterator_t)(unsafe.Pointer(i)).Fdata += 8
  18014. p1 = i + 12
  18015. *(*int32)(unsafe.Pointer(p1)) = int32(uint64(*(*int32)(unsafe.Pointer(p1))) + libc.Uint64FromInt64(8))
  18016. }
  18017. func Xxcb_rgb_end(tls *libc.TLS, i Txcb_rgb_iterator_t) (r Txcb_generic_iterator_t) {
  18018. var ret Txcb_generic_iterator_t
  18019. _ = ret
  18020. ret.Fdata = i.Fdata + uintptr(i.Frem)*8
  18021. ret.Findex = int32(int64(i.Findex) + (int64(ret.Fdata) - int64(i.Fdata)))
  18022. ret.Frem = 0
  18023. return ret
  18024. }
  18025. func Xxcb_query_colors_sizeof(tls *libc.TLS, _buffer uintptr, pixels_len Tuint32_t) (r int32) {
  18026. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18027. var xcb_tmp uintptr
  18028. _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18029. xcb_tmp = _buffer
  18030. xcb_buffer_len = uint32(0)
  18031. xcb_block_len = uint32(0)
  18032. xcb_pad = uint32(0)
  18033. xcb_align_to = uint32(0)
  18034. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18035. xcb_tmp += uintptr(xcb_block_len)
  18036. xcb_buffer_len += xcb_block_len
  18037. xcb_block_len = uint32(0)
  18038. /* pixels */
  18039. xcb_block_len = uint32(uint64(xcb_block_len) + uint64(pixels_len)*libc.Uint64FromInt64(4))
  18040. xcb_tmp += uintptr(xcb_block_len)
  18041. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18042. /* insert padding */
  18043. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18044. xcb_buffer_len += xcb_block_len + xcb_pad
  18045. if uint32(0) != xcb_pad {
  18046. xcb_tmp += uintptr(xcb_pad)
  18047. xcb_pad = uint32(0)
  18048. }
  18049. xcb_block_len = uint32(0)
  18050. return libc.Int32FromUint32(xcb_buffer_len)
  18051. }
  18052. 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) {
  18053. bp := tls.Alloc(112)
  18054. defer tls.Free(112)
  18055. var xcb_ret Txcb_query_colors_cookie_t
  18056. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  18057. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18058. _ = xcb_ret
  18059. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18060. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18061. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18062. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18063. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18064. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18065. /* uint32_t pixels */
  18066. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  18067. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  18068. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18069. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18070. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req190)))
  18071. return xcb_ret
  18072. }
  18073. var _xcb_req190 = Txcb_protocol_request_t{
  18074. Fcount: uint64(4),
  18075. Fopcode: uint8(m_XCB_QUERY_COLORS),
  18076. }
  18077. 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) {
  18078. bp := tls.Alloc(112)
  18079. defer tls.Free(112)
  18080. var xcb_ret Txcb_query_colors_cookie_t
  18081. var _ /* xcb_out at bp+96 */ Txcb_query_colors_request_t
  18082. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18083. _ = xcb_ret
  18084. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18085. (*(*Txcb_query_colors_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18086. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18087. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18088. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18089. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18090. /* uint32_t pixels */
  18091. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = pixels
  18092. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(pixels_len) * uint64(4)
  18093. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18094. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18095. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req191)))
  18096. return xcb_ret
  18097. }
  18098. var _xcb_req191 = Txcb_protocol_request_t{
  18099. Fcount: uint64(4),
  18100. Fopcode: uint8(m_XCB_QUERY_COLORS),
  18101. }
  18102. func Xxcb_query_colors_colors(tls *libc.TLS, R uintptr) (r uintptr) {
  18103. return R + libc.UintptrFromInt32(1)*32
  18104. }
  18105. func Xxcb_query_colors_colors_length(tls *libc.TLS, R uintptr) (r int32) {
  18106. return libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  18107. }
  18108. func Xxcb_query_colors_colors_iterator(tls *libc.TLS, R uintptr) (r Txcb_rgb_iterator_t) {
  18109. var i Txcb_rgb_iterator_t
  18110. _ = i
  18111. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18112. i.Frem = libc.Int32FromUint16((*Txcb_query_colors_reply_t)(unsafe.Pointer(R)).Fcolors_len)
  18113. i.Findex = int32(int64(i.Fdata) - int64(R))
  18114. return i
  18115. }
  18116. func Xxcb_query_colors_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_colors_cookie_t, e uintptr) (r uintptr) {
  18117. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18118. }
  18119. func Xxcb_lookup_color_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18120. var _aux, xcb_tmp uintptr
  18121. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18122. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18123. xcb_tmp = _buffer
  18124. _aux = _buffer
  18125. xcb_buffer_len = uint32(0)
  18126. xcb_block_len = uint32(0)
  18127. xcb_pad = uint32(0)
  18128. xcb_align_to = uint32(0)
  18129. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  18130. xcb_tmp += uintptr(xcb_block_len)
  18131. xcb_buffer_len += xcb_block_len
  18132. xcb_block_len = uint32(0)
  18133. /* name */
  18134. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_lookup_color_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  18135. xcb_tmp += uintptr(xcb_block_len)
  18136. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18137. /* insert padding */
  18138. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18139. xcb_buffer_len += xcb_block_len + xcb_pad
  18140. if uint32(0) != xcb_pad {
  18141. xcb_tmp += uintptr(xcb_pad)
  18142. xcb_pad = uint32(0)
  18143. }
  18144. xcb_block_len = uint32(0)
  18145. return libc.Int32FromUint32(xcb_buffer_len)
  18146. }
  18147. 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) {
  18148. bp := tls.Alloc(112)
  18149. defer tls.Free(112)
  18150. var xcb_ret Txcb_lookup_color_cookie_t
  18151. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  18152. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18153. _ = xcb_ret
  18154. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18155. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18156. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18157. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  18158. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18159. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18160. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18161. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18162. /* char name */
  18163. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18164. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18165. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18166. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18167. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req192)))
  18168. return xcb_ret
  18169. }
  18170. var _xcb_req192 = Txcb_protocol_request_t{
  18171. Fcount: uint64(4),
  18172. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18173. }
  18174. 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) {
  18175. bp := tls.Alloc(112)
  18176. defer tls.Free(112)
  18177. var xcb_ret Txcb_lookup_color_cookie_t
  18178. var _ /* xcb_out at bp+96 */ Txcb_lookup_color_request_t
  18179. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18180. _ = xcb_ret
  18181. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18182. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fcmap = cmap
  18183. (*(*Txcb_lookup_color_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18184. libc.Xmemset(tls, bp+96+10, 0, uint64(2))
  18185. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18186. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18187. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18188. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18189. /* char name */
  18190. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18191. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18192. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18193. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18194. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req193)))
  18195. return xcb_ret
  18196. }
  18197. var _xcb_req193 = Txcb_protocol_request_t{
  18198. Fcount: uint64(4),
  18199. Fopcode: uint8(m_XCB_LOOKUP_COLOR),
  18200. }
  18201. func Xxcb_lookup_color_reply(tls *libc.TLS, c uintptr, cookie Txcb_lookup_color_cookie_t, e uintptr) (r uintptr) {
  18202. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18203. }
  18204. 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) {
  18205. bp := tls.Alloc(96)
  18206. defer tls.Free(96)
  18207. var xcb_ret Txcb_void_cookie_t
  18208. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18209. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18210. _ = xcb_ret
  18211. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18212. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18213. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18214. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18215. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18216. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18217. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18218. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18219. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18220. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18221. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18222. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18223. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18224. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18225. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18226. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18227. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req194)))
  18228. return xcb_ret
  18229. }
  18230. var _xcb_req194 = Txcb_protocol_request_t{
  18231. Fcount: uint64(2),
  18232. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18233. Fisvoid: uint8(1),
  18234. }
  18235. 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) {
  18236. bp := tls.Alloc(96)
  18237. defer tls.Free(96)
  18238. var xcb_ret Txcb_void_cookie_t
  18239. var _ /* xcb_out at bp+64 */ Txcb_create_cursor_request_t
  18240. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18241. _ = xcb_ret
  18242. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18243. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18244. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource = source
  18245. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask = mask
  18246. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18247. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18248. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18249. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18250. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18251. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18252. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fx = x
  18253. (*(*Txcb_create_cursor_request_t)(unsafe.Pointer(bp + 64))).Fy = y
  18254. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18255. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  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_req195)))
  18259. return xcb_ret
  18260. }
  18261. var _xcb_req195 = Txcb_protocol_request_t{
  18262. Fcount: uint64(2),
  18263. Fopcode: uint8(m_XCB_CREATE_CURSOR),
  18264. Fisvoid: uint8(1),
  18265. }
  18266. 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) {
  18267. bp := tls.Alloc(96)
  18268. defer tls.Free(96)
  18269. var xcb_ret Txcb_void_cookie_t
  18270. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18271. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18272. _ = xcb_ret
  18273. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18274. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18275. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18276. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18277. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18278. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18279. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18280. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18281. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18282. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18283. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18284. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18285. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18286. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18287. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18288. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18289. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req196)))
  18290. return xcb_ret
  18291. }
  18292. var _xcb_req196 = Txcb_protocol_request_t{
  18293. Fcount: uint64(2),
  18294. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18295. Fisvoid: uint8(1),
  18296. }
  18297. 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) {
  18298. bp := tls.Alloc(96)
  18299. defer tls.Free(96)
  18300. var xcb_ret Txcb_void_cookie_t
  18301. var _ /* xcb_out at bp+64 */ Txcb_create_glyph_cursor_request_t
  18302. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18303. _ = xcb_ret
  18304. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18305. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcid = cid
  18306. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_font = source_font
  18307. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_font = mask_font
  18308. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fsource_char = source_char
  18309. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fmask_char = mask_char
  18310. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18311. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18312. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18313. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18314. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18315. (*(*Txcb_create_glyph_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18316. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18317. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(32)
  18318. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18320. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req197)))
  18321. return xcb_ret
  18322. }
  18323. var _xcb_req197 = Txcb_protocol_request_t{
  18324. Fcount: uint64(2),
  18325. Fopcode: uint8(m_XCB_CREATE_GLYPH_CURSOR),
  18326. Fisvoid: uint8(1),
  18327. }
  18328. func Xxcb_free_cursor_checked(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18329. bp := tls.Alloc(80)
  18330. defer tls.Free(80)
  18331. var xcb_ret Txcb_void_cookie_t
  18332. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18333. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18334. _ = xcb_ret
  18335. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18336. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18337. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18338. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18339. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18340. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18341. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req198)))
  18342. return xcb_ret
  18343. }
  18344. var _xcb_req198 = Txcb_protocol_request_t{
  18345. Fcount: uint64(2),
  18346. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18347. Fisvoid: uint8(1),
  18348. }
  18349. func Xxcb_free_cursor(tls *libc.TLS, c uintptr, cursor Txcb_cursor_t) (r Txcb_void_cookie_t) {
  18350. bp := tls.Alloc(80)
  18351. defer tls.Free(80)
  18352. var xcb_ret Txcb_void_cookie_t
  18353. var _ /* xcb_out at bp+64 */ Txcb_free_cursor_request_t
  18354. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18355. _ = xcb_ret
  18356. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18357. (*(*Txcb_free_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18360. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18361. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18362. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req199)))
  18363. return xcb_ret
  18364. }
  18365. var _xcb_req199 = Txcb_protocol_request_t{
  18366. Fcount: uint64(2),
  18367. Fopcode: uint8(m_XCB_FREE_CURSOR),
  18368. Fisvoid: uint8(1),
  18369. }
  18370. 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) {
  18371. bp := tls.Alloc(96)
  18372. defer tls.Free(96)
  18373. var xcb_ret Txcb_void_cookie_t
  18374. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18375. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18376. _ = xcb_ret
  18377. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18378. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18379. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18380. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18381. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18382. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18383. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18384. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18385. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18386. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18387. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18388. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18389. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req200)))
  18390. return xcb_ret
  18391. }
  18392. var _xcb_req200 = Txcb_protocol_request_t{
  18393. Fcount: uint64(2),
  18394. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18395. Fisvoid: uint8(1),
  18396. }
  18397. 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) {
  18398. bp := tls.Alloc(96)
  18399. defer tls.Free(96)
  18400. var xcb_ret Txcb_void_cookie_t
  18401. var _ /* xcb_out at bp+64 */ Txcb_recolor_cursor_request_t
  18402. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18403. _ = xcb_ret
  18404. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18405. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fcursor = cursor
  18406. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_red = fore_red
  18407. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_green = fore_green
  18408. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Ffore_blue = fore_blue
  18409. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_red = back_red
  18410. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_green = back_green
  18411. (*(*Txcb_recolor_cursor_request_t)(unsafe.Pointer(bp + 64))).Fback_blue = back_blue
  18412. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18413. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(20)
  18414. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18415. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18416. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req201)))
  18417. return xcb_ret
  18418. }
  18419. var _xcb_req201 = Txcb_protocol_request_t{
  18420. Fcount: uint64(2),
  18421. Fopcode: uint8(m_XCB_RECOLOR_CURSOR),
  18422. Fisvoid: uint8(1),
  18423. }
  18424. 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) {
  18425. bp := tls.Alloc(80)
  18426. defer tls.Free(80)
  18427. var xcb_ret Txcb_query_best_size_cookie_t
  18428. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18429. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18430. _ = xcb_ret
  18431. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18432. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18433. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18434. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18435. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18436. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18437. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18438. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18439. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req202)))
  18440. return xcb_ret
  18441. }
  18442. var _xcb_req202 = Txcb_protocol_request_t{
  18443. Fcount: uint64(2),
  18444. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18445. }
  18446. 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) {
  18447. bp := tls.Alloc(80)
  18448. defer tls.Free(80)
  18449. var xcb_ret Txcb_query_best_size_cookie_t
  18450. var _ /* xcb_out at bp+64 */ Txcb_query_best_size_request_t
  18451. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18452. _ = xcb_ret
  18453. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).F_class = _class
  18454. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fdrawable = drawable
  18455. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fwidth = width
  18456. (*(*Txcb_query_best_size_request_t)(unsafe.Pointer(bp + 64))).Fheight = height
  18457. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18458. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  18459. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18460. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18461. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req203)))
  18462. return xcb_ret
  18463. }
  18464. var _xcb_req203 = Txcb_protocol_request_t{
  18465. Fcount: uint64(2),
  18466. Fopcode: uint8(m_XCB_QUERY_BEST_SIZE),
  18467. }
  18468. func Xxcb_query_best_size_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_best_size_cookie_t, e uintptr) (r uintptr) {
  18469. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18470. }
  18471. func Xxcb_query_extension_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18472. var _aux, xcb_tmp uintptr
  18473. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18474. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18475. xcb_tmp = _buffer
  18476. _aux = _buffer
  18477. xcb_buffer_len = uint32(0)
  18478. xcb_block_len = uint32(0)
  18479. xcb_pad = uint32(0)
  18480. xcb_align_to = uint32(0)
  18481. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18482. xcb_tmp += uintptr(xcb_block_len)
  18483. xcb_buffer_len += xcb_block_len
  18484. xcb_block_len = uint32(0)
  18485. /* name */
  18486. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_query_extension_request_t)(unsafe.Pointer(_aux)).Fname_len)*libc.Uint64FromInt64(1))
  18487. xcb_tmp += uintptr(xcb_block_len)
  18488. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18489. /* insert padding */
  18490. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18491. xcb_buffer_len += xcb_block_len + xcb_pad
  18492. if uint32(0) != xcb_pad {
  18493. xcb_tmp += uintptr(xcb_pad)
  18494. xcb_pad = uint32(0)
  18495. }
  18496. xcb_block_len = uint32(0)
  18497. return libc.Int32FromUint32(xcb_buffer_len)
  18498. }
  18499. func Xxcb_query_extension(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18500. bp := tls.Alloc(112)
  18501. defer tls.Free(112)
  18502. var xcb_ret Txcb_query_extension_cookie_t
  18503. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18504. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18505. _ = xcb_ret
  18506. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18507. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18508. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18509. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18510. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18511. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18512. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18513. /* char name */
  18514. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18515. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18516. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18517. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18518. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req204)))
  18519. return xcb_ret
  18520. }
  18521. var _xcb_req204 = Txcb_protocol_request_t{
  18522. Fcount: uint64(4),
  18523. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18524. }
  18525. func Xxcb_query_extension_unchecked(tls *libc.TLS, c uintptr, name_len Tuint16_t, name uintptr) (r Txcb_query_extension_cookie_t) {
  18526. bp := tls.Alloc(112)
  18527. defer tls.Free(112)
  18528. var xcb_ret Txcb_query_extension_cookie_t
  18529. var _ /* xcb_out at bp+96 */ Txcb_query_extension_request_t
  18530. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18531. _ = xcb_ret
  18532. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  18533. (*(*Txcb_query_extension_request_t)(unsafe.Pointer(bp + 96))).Fname_len = name_len
  18534. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18535. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18536. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18537. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18538. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18539. /* char name */
  18540. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = name
  18541. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(name_len) * uint64(1)
  18542. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18543. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18544. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req205)))
  18545. return xcb_ret
  18546. }
  18547. var _xcb_req205 = Txcb_protocol_request_t{
  18548. Fcount: uint64(4),
  18549. Fopcode: uint8(m_XCB_QUERY_EXTENSION),
  18550. }
  18551. func Xxcb_query_extension_reply(tls *libc.TLS, c uintptr, cookie Txcb_query_extension_cookie_t, e uintptr) (r uintptr) {
  18552. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18553. }
  18554. func Xxcb_list_extensions_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18555. var _aux, xcb_tmp uintptr
  18556. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  18557. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  18558. xcb_tmp = _buffer
  18559. _aux = _buffer
  18560. xcb_buffer_len = uint32(0)
  18561. xcb_block_len = uint32(0)
  18562. xcb_pad = uint32(0)
  18563. xcb_align_to = uint32(0)
  18564. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18565. xcb_tmp += uintptr(xcb_block_len)
  18566. xcb_buffer_len += xcb_block_len
  18567. xcb_block_len = uint32(0)
  18568. /* names */
  18569. i = uint32(0)
  18570. for {
  18571. if !(i < uint32((*Txcb_list_extensions_reply_t)(unsafe.Pointer(_aux)).Fnames_len)) {
  18572. break
  18573. }
  18574. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_str_sizeof(tls, xcb_tmp))
  18575. xcb_block_len += xcb_tmp_len
  18576. xcb_tmp += uintptr(xcb_tmp_len)
  18577. goto _1
  18578. _1:
  18579. ;
  18580. i++
  18581. }
  18582. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  18583. /* insert padding */
  18584. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18585. xcb_buffer_len += xcb_block_len + xcb_pad
  18586. if uint32(0) != xcb_pad {
  18587. xcb_tmp += uintptr(xcb_pad)
  18588. xcb_pad = uint32(0)
  18589. }
  18590. xcb_block_len = uint32(0)
  18591. return libc.Int32FromUint32(xcb_buffer_len)
  18592. }
  18593. func Xxcb_list_extensions(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18594. bp := tls.Alloc(80)
  18595. defer tls.Free(80)
  18596. var xcb_ret Txcb_list_extensions_cookie_t
  18597. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18598. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18599. _ = xcb_ret
  18600. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18601. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18602. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18603. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18604. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18605. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req206)))
  18606. return xcb_ret
  18607. }
  18608. var _xcb_req206 = Txcb_protocol_request_t{
  18609. Fcount: uint64(2),
  18610. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18611. }
  18612. func Xxcb_list_extensions_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_extensions_cookie_t) {
  18613. bp := tls.Alloc(80)
  18614. defer tls.Free(80)
  18615. var xcb_ret Txcb_list_extensions_cookie_t
  18616. var _ /* xcb_out at bp+64 */ Txcb_list_extensions_request_t
  18617. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18618. _ = xcb_ret
  18619. (*(*Txcb_list_extensions_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  18620. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  18621. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  18622. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18623. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18624. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req207)))
  18625. return xcb_ret
  18626. }
  18627. var _xcb_req207 = Txcb_protocol_request_t{
  18628. Fcount: uint64(2),
  18629. Fopcode: uint8(m_XCB_LIST_EXTENSIONS),
  18630. }
  18631. func Xxcb_list_extensions_names_length(tls *libc.TLS, R uintptr) (r int32) {
  18632. return libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18633. }
  18634. func Xxcb_list_extensions_names_iterator(tls *libc.TLS, R uintptr) (r Txcb_str_iterator_t) {
  18635. var i Txcb_str_iterator_t
  18636. _ = i
  18637. i.Fdata = R + libc.UintptrFromInt32(1)*32
  18638. i.Frem = libc.Int32FromUint8((*Txcb_list_extensions_reply_t)(unsafe.Pointer(R)).Fnames_len)
  18639. i.Findex = int32(int64(i.Fdata) - int64(R))
  18640. return i
  18641. }
  18642. func Xxcb_list_extensions_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_extensions_cookie_t, e uintptr) (r uintptr) {
  18643. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18644. }
  18645. func Xxcb_change_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18646. var _aux, xcb_tmp uintptr
  18647. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18648. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18649. xcb_tmp = _buffer
  18650. _aux = _buffer
  18651. xcb_buffer_len = uint32(0)
  18652. xcb_block_len = uint32(0)
  18653. xcb_pad = uint32(0)
  18654. xcb_align_to = uint32(0)
  18655. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  18656. xcb_tmp += uintptr(xcb_block_len)
  18657. xcb_buffer_len += xcb_block_len
  18658. xcb_block_len = uint32(0)
  18659. /* keysyms */
  18660. 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))
  18661. xcb_tmp += uintptr(xcb_block_len)
  18662. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18663. /* insert padding */
  18664. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18665. xcb_buffer_len += xcb_block_len + xcb_pad
  18666. if uint32(0) != xcb_pad {
  18667. xcb_tmp += uintptr(xcb_pad)
  18668. xcb_pad = uint32(0)
  18669. }
  18670. xcb_block_len = uint32(0)
  18671. return libc.Int32FromUint32(xcb_buffer_len)
  18672. }
  18673. 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) {
  18674. bp := tls.Alloc(112)
  18675. defer tls.Free(112)
  18676. var xcb_ret Txcb_void_cookie_t
  18677. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18678. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18679. _ = xcb_ret
  18680. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18681. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18682. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18683. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18684. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18685. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18686. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18687. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18688. /* xcb_keysym_t keysyms */
  18689. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18690. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18691. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18692. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18693. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req208)))
  18694. return xcb_ret
  18695. }
  18696. var _xcb_req208 = Txcb_protocol_request_t{
  18697. Fcount: uint64(4),
  18698. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18699. Fisvoid: uint8(1),
  18700. }
  18701. 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) {
  18702. bp := tls.Alloc(112)
  18703. defer tls.Free(112)
  18704. var xcb_ret Txcb_void_cookie_t
  18705. var _ /* xcb_out at bp+96 */ Txcb_change_keyboard_mapping_request_t
  18706. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  18707. _ = xcb_ret
  18708. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycode_count = keycode_count
  18709. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Ffirst_keycode = first_keycode
  18710. (*(*Txcb_change_keyboard_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeysyms_per_keycode = keysyms_per_keycode
  18711. libc.Xmemset(tls, bp+96+6, 0, uint64(2))
  18712. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  18713. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  18714. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18715. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18716. /* xcb_keysym_t keysyms */
  18717. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keysyms
  18718. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycode_count)*libc.Int32FromUint8(keysyms_per_keycode)) * uint64(4)
  18719. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  18720. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  18721. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req209)))
  18722. return xcb_ret
  18723. }
  18724. var _xcb_req209 = Txcb_protocol_request_t{
  18725. Fcount: uint64(4),
  18726. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_MAPPING),
  18727. Fisvoid: uint8(1),
  18728. }
  18729. func Xxcb_change_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18730. return R + libc.UintptrFromInt32(1)*8
  18731. }
  18732. func Xxcb_change_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18733. 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)
  18734. }
  18735. func Xxcb_change_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18736. var i Txcb_generic_iterator_t
  18737. _ = i
  18738. 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
  18739. i.Frem = 0
  18740. i.Findex = int32(int64(i.Fdata) - int64(R))
  18741. return i
  18742. }
  18743. func Xxcb_get_keyboard_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  18744. var _aux, xcb_tmp uintptr
  18745. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  18746. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  18747. xcb_tmp = _buffer
  18748. _aux = _buffer
  18749. xcb_buffer_len = uint32(0)
  18750. xcb_block_len = uint32(0)
  18751. xcb_pad = uint32(0)
  18752. xcb_align_to = uint32(0)
  18753. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  18754. xcb_tmp += uintptr(xcb_block_len)
  18755. xcb_buffer_len += xcb_block_len
  18756. xcb_block_len = uint32(0)
  18757. /* keysyms */
  18758. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(_aux)).Flength)*libc.Uint64FromInt64(4))
  18759. xcb_tmp += uintptr(xcb_block_len)
  18760. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18761. /* insert padding */
  18762. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  18763. xcb_buffer_len += xcb_block_len + xcb_pad
  18764. if uint32(0) != xcb_pad {
  18765. xcb_tmp += uintptr(xcb_pad)
  18766. xcb_pad = uint32(0)
  18767. }
  18768. xcb_block_len = uint32(0)
  18769. return libc.Int32FromUint32(xcb_buffer_len)
  18770. }
  18771. 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) {
  18772. bp := tls.Alloc(80)
  18773. defer tls.Free(80)
  18774. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18775. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18776. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18777. _ = xcb_ret
  18778. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18779. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18780. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18781. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18782. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18783. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18784. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18785. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req210)))
  18786. return xcb_ret
  18787. }
  18788. var _xcb_req210 = Txcb_protocol_request_t{
  18789. Fcount: uint64(2),
  18790. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18791. }
  18792. 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) {
  18793. bp := tls.Alloc(80)
  18794. defer tls.Free(80)
  18795. var xcb_ret Txcb_get_keyboard_mapping_cookie_t
  18796. var _ /* xcb_out at bp+66 */ Txcb_get_keyboard_mapping_request_t
  18797. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  18798. _ = xcb_ret
  18799. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fpad0 = uint8(0)
  18800. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Ffirst_keycode = first_keycode
  18801. (*(*Txcb_get_keyboard_mapping_request_t)(unsafe.Pointer(bp + 66))).Fcount = count
  18802. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 66
  18803. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(6)
  18804. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  18805. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  18806. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req211)))
  18807. return xcb_ret
  18808. }
  18809. var _xcb_req211 = Txcb_protocol_request_t{
  18810. Fcount: uint64(2),
  18811. Fopcode: uint8(m_XCB_GET_KEYBOARD_MAPPING),
  18812. }
  18813. func Xxcb_get_keyboard_mapping_keysyms(tls *libc.TLS, R uintptr) (r uintptr) {
  18814. return R + libc.UintptrFromInt32(1)*32
  18815. }
  18816. func Xxcb_get_keyboard_mapping_keysyms_length(tls *libc.TLS, R uintptr) (r int32) {
  18817. return libc.Int32FromUint32((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)
  18818. }
  18819. func Xxcb_get_keyboard_mapping_keysyms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  18820. var i Txcb_generic_iterator_t
  18821. _ = i
  18822. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_keyboard_mapping_reply_t)(unsafe.Pointer(R)).Flength)*4
  18823. i.Frem = 0
  18824. i.Findex = int32(int64(i.Fdata) - int64(R))
  18825. return i
  18826. }
  18827. func Xxcb_get_keyboard_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_mapping_cookie_t, e uintptr) (r uintptr) {
  18828. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  18829. }
  18830. func Xxcb_change_keyboard_control_value_list_serialize(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18831. bp := tls.Alloc(16)
  18832. defer tls.Free(16)
  18833. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_parts_idx uint32
  18834. var xcb_out, xcb_tmp uintptr
  18835. var xcb_parts [9]Tiovec
  18836. var _ /* xcb_pad0 at bp+0 */ [3]uint8
  18837. _, _, _, _, _, _, _, _, _, _ = i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_out, xcb_pad, xcb_padding_offset, xcb_parts, xcb_parts_idx, xcb_tmp
  18838. xcb_out = *(*uintptr)(unsafe.Pointer(_buffer))
  18839. xcb_buffer_len = uint32(0)
  18840. xcb_align_to = uint32(0)
  18841. xcb_padding_offset = uint32(0)
  18842. xcb_pad = uint32(0)
  18843. *(*[3]uint8)(unsafe.Pointer(bp)) = [3]uint8{}
  18844. xcb_parts_idx = uint32(0)
  18845. xcb_block_len = uint32(0)
  18846. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18847. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18848. xcb_parts[xcb_parts_idx].Fiov_base = _aux
  18849. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18850. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18851. xcb_parts_idx++
  18852. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18853. }
  18854. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18855. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18856. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 4
  18857. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18858. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18859. xcb_parts_idx++
  18860. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18861. }
  18862. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18863. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18864. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 8
  18865. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18866. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18867. xcb_parts_idx++
  18868. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18869. }
  18870. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18871. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18872. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 12
  18873. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18874. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18875. xcb_parts_idx++
  18876. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18877. }
  18878. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18879. /* xcb_change_keyboard_control_value_list_t.led */
  18880. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 16
  18881. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18882. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18883. xcb_parts_idx++
  18884. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18885. }
  18886. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18887. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18888. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 20
  18889. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18890. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18891. xcb_parts_idx++
  18892. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18893. }
  18894. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18895. /* xcb_change_keyboard_control_value_list_t.key */
  18896. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 24
  18897. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18898. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18899. xcb_parts_idx++
  18900. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18901. }
  18902. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  18903. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  18904. xcb_parts[xcb_parts_idx].Fiov_base = _aux + 28
  18905. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18906. xcb_parts[xcb_parts_idx].Fiov_len = uint64(4)
  18907. xcb_parts_idx++
  18908. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18909. }
  18910. /* insert padding */
  18911. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  18912. xcb_buffer_len += xcb_block_len + xcb_pad
  18913. if uint32(0) != xcb_pad {
  18914. xcb_parts[xcb_parts_idx].Fiov_base = bp
  18915. xcb_parts[xcb_parts_idx].Fiov_len = uint64(xcb_pad)
  18916. xcb_parts_idx++
  18917. xcb_pad = uint32(0)
  18918. }
  18919. xcb_block_len = uint32(0)
  18920. xcb_padding_offset = uint32(0)
  18921. if libc.UintptrFromInt32(0) == xcb_out {
  18922. /* allocate memory */
  18923. xcb_out = libc.Xmalloc(tls, uint64(xcb_buffer_len))
  18924. *(*uintptr)(unsafe.Pointer(_buffer)) = xcb_out
  18925. }
  18926. xcb_tmp = xcb_out
  18927. i = uint32(0)
  18928. for {
  18929. if !(i < xcb_parts_idx) {
  18930. break
  18931. }
  18932. if uintptr(0) != xcb_parts[i].Fiov_base && uint64(0) != xcb_parts[i].Fiov_len {
  18933. libc.Xmemcpy(tls, xcb_tmp, xcb_parts[i].Fiov_base, xcb_parts[i].Fiov_len)
  18934. }
  18935. if uint64(0) != xcb_parts[i].Fiov_len {
  18936. xcb_tmp += uintptr(xcb_parts[i].Fiov_len)
  18937. }
  18938. goto _1
  18939. _1:
  18940. ;
  18941. i++
  18942. }
  18943. return libc.Int32FromUint32(xcb_buffer_len)
  18944. }
  18945. func Xxcb_change_keyboard_control_value_list_unpack(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t, _aux uintptr) (r int32) {
  18946. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset uint32
  18947. var xcb_tmp uintptr
  18948. _, _, _, _, _, _ = xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_padding_offset, xcb_tmp
  18949. xcb_tmp = _buffer
  18950. xcb_buffer_len = uint32(0)
  18951. xcb_block_len = uint32(0)
  18952. xcb_pad = uint32(0)
  18953. xcb_align_to = uint32(0)
  18954. xcb_padding_offset = uint32(0)
  18955. if value_mask&uint32(_XCB_KB_KEY_CLICK_PERCENT) != 0 {
  18956. /* xcb_change_keyboard_control_value_list_t.key_click_percent */
  18957. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey_click_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18958. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18959. xcb_tmp += uintptr(4)
  18960. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18961. }
  18962. if value_mask&uint32(_XCB_KB_BELL_PERCENT) != 0 {
  18963. /* xcb_change_keyboard_control_value_list_t.bell_percent */
  18964. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_percent = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18965. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18966. xcb_tmp += uintptr(4)
  18967. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18968. }
  18969. if value_mask&uint32(_XCB_KB_BELL_PITCH) != 0 {
  18970. /* xcb_change_keyboard_control_value_list_t.bell_pitch */
  18971. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_pitch = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18972. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18973. xcb_tmp += uintptr(4)
  18974. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18975. }
  18976. if value_mask&uint32(_XCB_KB_BELL_DURATION) != 0 {
  18977. /* xcb_change_keyboard_control_value_list_t.bell_duration */
  18978. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fbell_duration = *(*Tint32_t)(unsafe.Pointer(xcb_tmp))
  18979. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18980. xcb_tmp += uintptr(4)
  18981. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18982. }
  18983. if value_mask&uint32(_XCB_KB_LED) != 0 {
  18984. /* xcb_change_keyboard_control_value_list_t.led */
  18985. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18986. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18987. xcb_tmp += uintptr(4)
  18988. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18989. }
  18990. if value_mask&uint32(_XCB_KB_LED_MODE) != 0 {
  18991. /* xcb_change_keyboard_control_value_list_t.led_mode */
  18992. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fled_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  18993. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  18994. xcb_tmp += uintptr(4)
  18995. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  18996. }
  18997. if value_mask&uint32(_XCB_KB_KEY) != 0 {
  18998. /* xcb_change_keyboard_control_value_list_t.key */
  18999. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fkey = *(*Txcb_keycode32_t)(unsafe.Pointer(xcb_tmp))
  19000. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19001. xcb_tmp += uintptr(4)
  19002. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  19003. }
  19004. if value_mask&uint32(_XCB_KB_AUTO_REPEAT_MODE) != 0 {
  19005. /* xcb_change_keyboard_control_value_list_t.auto_repeat_mode */
  19006. (*Txcb_change_keyboard_control_value_list_t)(unsafe.Pointer(_aux)).Fauto_repeat_mode = *(*Tuint32_t)(unsafe.Pointer(xcb_tmp))
  19007. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19008. xcb_tmp += uintptr(4)
  19009. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  19010. }
  19011. /* insert padding */
  19012. xcb_pad = -(xcb_block_len + xcb_padding_offset) & (xcb_align_to - uint32(1))
  19013. xcb_buffer_len += xcb_block_len + xcb_pad
  19014. if uint32(0) != xcb_pad {
  19015. xcb_tmp += uintptr(xcb_pad)
  19016. xcb_pad = uint32(0)
  19017. }
  19018. xcb_block_len = uint32(0)
  19019. xcb_padding_offset = uint32(0)
  19020. return libc.Int32FromUint32(xcb_buffer_len)
  19021. }
  19022. func Xxcb_change_keyboard_control_value_list_sizeof(tls *libc.TLS, _buffer uintptr, value_mask Tuint32_t) (r int32) {
  19023. bp := tls.Alloc(32)
  19024. defer tls.Free(32)
  19025. var _ /* _aux at bp+0 */ Txcb_change_keyboard_control_value_list_t
  19026. return Xxcb_change_keyboard_control_value_list_unpack(tls, _buffer, value_mask, bp)
  19027. }
  19028. func Xxcb_change_keyboard_control_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19029. var _aux, xcb_tmp uintptr
  19030. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19031. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19032. xcb_tmp = _buffer
  19033. _aux = _buffer
  19034. xcb_buffer_len = uint32(0)
  19035. xcb_block_len = uint32(0)
  19036. xcb_pad = uint32(0)
  19037. xcb_align_to = uint32(0)
  19038. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  19039. xcb_tmp += uintptr(xcb_block_len)
  19040. xcb_buffer_len += xcb_block_len
  19041. xcb_block_len = uint32(0)
  19042. /* value_list */
  19043. 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))
  19044. xcb_tmp += uintptr(xcb_block_len)
  19045. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19046. /* insert padding */
  19047. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19048. xcb_buffer_len += xcb_block_len + xcb_pad
  19049. if uint32(0) != xcb_pad {
  19050. xcb_tmp += uintptr(xcb_pad)
  19051. xcb_pad = uint32(0)
  19052. }
  19053. xcb_block_len = uint32(0)
  19054. return libc.Int32FromUint32(xcb_buffer_len)
  19055. }
  19056. func Xxcb_change_keyboard_control_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19057. bp := tls.Alloc(96)
  19058. defer tls.Free(96)
  19059. var xcb_ret Txcb_void_cookie_t
  19060. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  19061. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19062. _ = xcb_ret
  19063. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  19064. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  19065. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  19066. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19067. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19068. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19069. /* xcb_change_keyboard_control_value_list_t value_list */
  19070. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  19071. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  19072. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req212)))
  19073. return xcb_ret
  19074. }
  19075. var _xcb_req212 = Txcb_protocol_request_t{
  19076. Fcount: uint64(3),
  19077. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19078. Fisvoid: uint8(1),
  19079. }
  19080. func Xxcb_change_keyboard_control(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19081. bp := tls.Alloc(96)
  19082. defer tls.Free(96)
  19083. var xcb_ret Txcb_void_cookie_t
  19084. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  19085. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19086. _ = xcb_ret
  19087. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  19088. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  19089. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  19090. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19091. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19092. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19093. /* xcb_change_keyboard_control_value_list_t value_list */
  19094. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = value_list
  19095. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(Xxcb_change_keyboard_control_value_list_sizeof(tls, value_list, value_mask))
  19096. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req213)))
  19097. return xcb_ret
  19098. }
  19099. var _xcb_req213 = Txcb_protocol_request_t{
  19100. Fcount: uint64(3),
  19101. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19102. Fisvoid: uint8(1),
  19103. }
  19104. func Xxcb_change_keyboard_control_aux_checked(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19105. bp := tls.Alloc(96)
  19106. defer tls.Free(96)
  19107. var xcb_ret Txcb_void_cookie_t
  19108. var _ /* xcb_aux0 at bp+88 */ uintptr
  19109. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  19110. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19111. _ = xcb_ret
  19112. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  19113. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  19114. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  19115. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  19116. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19117. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19118. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19119. /* xcb_change_keyboard_control_value_list_t value_list */
  19120. (*(*[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))
  19121. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  19122. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req214)))
  19123. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  19124. return xcb_ret
  19125. }
  19126. var _xcb_req214 = Txcb_protocol_request_t{
  19127. Fcount: uint64(3),
  19128. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19129. Fisvoid: uint8(1),
  19130. }
  19131. func Xxcb_change_keyboard_control_aux(tls *libc.TLS, c uintptr, value_mask Tuint32_t, value_list uintptr) (r Txcb_void_cookie_t) {
  19132. bp := tls.Alloc(96)
  19133. defer tls.Free(96)
  19134. var xcb_ret Txcb_void_cookie_t
  19135. var _ /* xcb_aux0 at bp+88 */ uintptr
  19136. var _ /* xcb_out at bp+80 */ Txcb_change_keyboard_control_request_t
  19137. var _ /* xcb_parts at bp+0 */ [5]Tiovec
  19138. _ = xcb_ret
  19139. *(*uintptr)(unsafe.Pointer(bp + 88)) = uintptr(0)
  19140. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fpad0 = uint8(0)
  19141. (*(*Txcb_change_keyboard_control_request_t)(unsafe.Pointer(bp + 80))).Fvalue_mask = value_mask
  19142. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 80
  19143. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19144. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19145. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19146. /* xcb_change_keyboard_control_value_list_t value_list */
  19147. (*(*[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))
  19148. (*(*[5]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = *(*uintptr)(unsafe.Pointer(bp + 88))
  19149. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req215)))
  19150. libc.Xfree(tls, *(*uintptr)(unsafe.Pointer(bp + 88)))
  19151. return xcb_ret
  19152. }
  19153. var _xcb_req215 = Txcb_protocol_request_t{
  19154. Fcount: uint64(3),
  19155. Fopcode: uint8(m_XCB_CHANGE_KEYBOARD_CONTROL),
  19156. Fisvoid: uint8(1),
  19157. }
  19158. func Xxcb_change_keyboard_control_value_list(tls *libc.TLS, R uintptr) (r uintptr) {
  19159. return R + libc.UintptrFromInt32(1)*8
  19160. }
  19161. func Xxcb_get_keyboard_control(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19162. bp := tls.Alloc(80)
  19163. defer tls.Free(80)
  19164. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19165. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19166. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19167. _ = xcb_ret
  19168. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19169. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19170. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19171. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19172. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19173. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req216)))
  19174. return xcb_ret
  19175. }
  19176. var _xcb_req216 = Txcb_protocol_request_t{
  19177. Fcount: uint64(2),
  19178. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19179. }
  19180. func Xxcb_get_keyboard_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_keyboard_control_cookie_t) {
  19181. bp := tls.Alloc(80)
  19182. defer tls.Free(80)
  19183. var xcb_ret Txcb_get_keyboard_control_cookie_t
  19184. var _ /* xcb_out at bp+64 */ Txcb_get_keyboard_control_request_t
  19185. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19186. _ = xcb_ret
  19187. (*(*Txcb_get_keyboard_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19188. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19189. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19190. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19191. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19192. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req217)))
  19193. return xcb_ret
  19194. }
  19195. var _xcb_req217 = Txcb_protocol_request_t{
  19196. Fcount: uint64(2),
  19197. Fopcode: uint8(m_XCB_GET_KEYBOARD_CONTROL),
  19198. }
  19199. func Xxcb_get_keyboard_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_keyboard_control_cookie_t, e uintptr) (r uintptr) {
  19200. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19201. }
  19202. func Xxcb_bell_checked(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19203. bp := tls.Alloc(80)
  19204. defer tls.Free(80)
  19205. var xcb_ret Txcb_void_cookie_t
  19206. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19207. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19208. _ = xcb_ret
  19209. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19210. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19211. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19212. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19213. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19214. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req218)))
  19215. return xcb_ret
  19216. }
  19217. var _xcb_req218 = Txcb_protocol_request_t{
  19218. Fcount: uint64(2),
  19219. Fopcode: uint8(m_XCB_BELL),
  19220. Fisvoid: uint8(1),
  19221. }
  19222. func Xxcb_bell(tls *libc.TLS, c uintptr, percent Tint8_t) (r Txcb_void_cookie_t) {
  19223. bp := tls.Alloc(80)
  19224. defer tls.Free(80)
  19225. var xcb_ret Txcb_void_cookie_t
  19226. var _ /* xcb_out at bp+64 */ Txcb_bell_request_t
  19227. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19228. _ = xcb_ret
  19229. (*(*Txcb_bell_request_t)(unsafe.Pointer(bp + 64))).Fpercent = percent
  19230. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19231. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19232. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19233. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19234. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req219)))
  19235. return xcb_ret
  19236. }
  19237. var _xcb_req219 = Txcb_protocol_request_t{
  19238. Fcount: uint64(2),
  19239. Fopcode: uint8(m_XCB_BELL),
  19240. Fisvoid: uint8(1),
  19241. }
  19242. 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) {
  19243. bp := tls.Alloc(80)
  19244. defer tls.Free(80)
  19245. var xcb_ret Txcb_void_cookie_t
  19246. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19247. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19248. _ = xcb_ret
  19249. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19250. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19251. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19252. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19253. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19254. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19255. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19256. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19257. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19258. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19259. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req220)))
  19260. return xcb_ret
  19261. }
  19262. var _xcb_req220 = Txcb_protocol_request_t{
  19263. Fcount: uint64(2),
  19264. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19265. Fisvoid: uint8(1),
  19266. }
  19267. 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) {
  19268. bp := tls.Alloc(80)
  19269. defer tls.Free(80)
  19270. var xcb_ret Txcb_void_cookie_t
  19271. var _ /* xcb_out at bp+64 */ Txcb_change_pointer_control_request_t
  19272. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19273. _ = xcb_ret
  19274. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19275. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_numerator = acceleration_numerator
  19276. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Facceleration_denominator = acceleration_denominator
  19277. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fthreshold = threshold
  19278. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_acceleration = do_acceleration
  19279. (*(*Txcb_change_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fdo_threshold = do_threshold
  19280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19281. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19282. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19283. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19284. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req221)))
  19285. return xcb_ret
  19286. }
  19287. var _xcb_req221 = Txcb_protocol_request_t{
  19288. Fcount: uint64(2),
  19289. Fopcode: uint8(m_XCB_CHANGE_POINTER_CONTROL),
  19290. Fisvoid: uint8(1),
  19291. }
  19292. func Xxcb_get_pointer_control(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19293. bp := tls.Alloc(80)
  19294. defer tls.Free(80)
  19295. var xcb_ret Txcb_get_pointer_control_cookie_t
  19296. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19297. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19298. _ = xcb_ret
  19299. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19301. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19302. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19303. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19304. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req222)))
  19305. return xcb_ret
  19306. }
  19307. var _xcb_req222 = Txcb_protocol_request_t{
  19308. Fcount: uint64(2),
  19309. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19310. }
  19311. func Xxcb_get_pointer_control_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_control_cookie_t) {
  19312. bp := tls.Alloc(80)
  19313. defer tls.Free(80)
  19314. var xcb_ret Txcb_get_pointer_control_cookie_t
  19315. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_control_request_t
  19316. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19317. _ = xcb_ret
  19318. (*(*Txcb_get_pointer_control_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19320. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19321. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19322. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19323. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req223)))
  19324. return xcb_ret
  19325. }
  19326. var _xcb_req223 = Txcb_protocol_request_t{
  19327. Fcount: uint64(2),
  19328. Fopcode: uint8(m_XCB_GET_POINTER_CONTROL),
  19329. }
  19330. func Xxcb_get_pointer_control_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_control_cookie_t, e uintptr) (r uintptr) {
  19331. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19332. }
  19333. 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) {
  19334. bp := tls.Alloc(80)
  19335. defer tls.Free(80)
  19336. var xcb_ret Txcb_void_cookie_t
  19337. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19338. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19339. _ = xcb_ret
  19340. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19341. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19342. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19343. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19344. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19345. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19346. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19347. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19348. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19349. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req224)))
  19350. return xcb_ret
  19351. }
  19352. var _xcb_req224 = Txcb_protocol_request_t{
  19353. Fcount: uint64(2),
  19354. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19355. Fisvoid: uint8(1),
  19356. }
  19357. 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) {
  19358. bp := tls.Alloc(80)
  19359. defer tls.Free(80)
  19360. var xcb_ret Txcb_void_cookie_t
  19361. var _ /* xcb_out at bp+64 */ Txcb_set_screen_saver_request_t
  19362. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19363. _ = xcb_ret
  19364. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19365. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Ftimeout = timeout
  19366. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Finterval = interval
  19367. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fprefer_blanking = prefer_blanking
  19368. (*(*Txcb_set_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fallow_exposures = allow_exposures
  19369. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19370. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(10)
  19371. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19372. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19373. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req225)))
  19374. return xcb_ret
  19375. }
  19376. var _xcb_req225 = Txcb_protocol_request_t{
  19377. Fcount: uint64(2),
  19378. Fopcode: uint8(m_XCB_SET_SCREEN_SAVER),
  19379. Fisvoid: uint8(1),
  19380. }
  19381. func Xxcb_get_screen_saver(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19382. bp := tls.Alloc(80)
  19383. defer tls.Free(80)
  19384. var xcb_ret Txcb_get_screen_saver_cookie_t
  19385. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19386. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19387. _ = xcb_ret
  19388. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19389. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19390. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19391. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19392. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19393. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req226)))
  19394. return xcb_ret
  19395. }
  19396. var _xcb_req226 = Txcb_protocol_request_t{
  19397. Fcount: uint64(2),
  19398. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19399. }
  19400. func Xxcb_get_screen_saver_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_screen_saver_cookie_t) {
  19401. bp := tls.Alloc(80)
  19402. defer tls.Free(80)
  19403. var xcb_ret Txcb_get_screen_saver_cookie_t
  19404. var _ /* xcb_out at bp+64 */ Txcb_get_screen_saver_request_t
  19405. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19406. _ = xcb_ret
  19407. (*(*Txcb_get_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19408. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19409. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19410. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19411. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19412. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req227)))
  19413. return xcb_ret
  19414. }
  19415. var _xcb_req227 = Txcb_protocol_request_t{
  19416. Fcount: uint64(2),
  19417. Fopcode: uint8(m_XCB_GET_SCREEN_SAVER),
  19418. }
  19419. func Xxcb_get_screen_saver_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_screen_saver_cookie_t, e uintptr) (r uintptr) {
  19420. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19421. }
  19422. func Xxcb_change_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19423. var _aux, xcb_tmp uintptr
  19424. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19425. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19426. xcb_tmp = _buffer
  19427. _aux = _buffer
  19428. xcb_buffer_len = uint32(0)
  19429. xcb_block_len = uint32(0)
  19430. xcb_pad = uint32(0)
  19431. xcb_align_to = uint32(0)
  19432. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(8))
  19433. xcb_tmp += uintptr(xcb_block_len)
  19434. xcb_buffer_len += xcb_block_len
  19435. xcb_block_len = uint32(0)
  19436. /* address */
  19437. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_change_hosts_request_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19438. xcb_tmp += uintptr(xcb_block_len)
  19439. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19440. /* insert padding */
  19441. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19442. xcb_buffer_len += xcb_block_len + xcb_pad
  19443. if uint32(0) != xcb_pad {
  19444. xcb_tmp += uintptr(xcb_pad)
  19445. xcb_pad = uint32(0)
  19446. }
  19447. xcb_block_len = uint32(0)
  19448. return libc.Int32FromUint32(xcb_buffer_len)
  19449. }
  19450. 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) {
  19451. bp := tls.Alloc(112)
  19452. defer tls.Free(112)
  19453. var xcb_ret Txcb_void_cookie_t
  19454. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19455. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19456. _ = xcb_ret
  19457. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19458. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19459. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19460. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19461. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19462. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19463. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19464. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19465. /* uint8_t address */
  19466. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19467. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19468. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19469. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19470. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req228)))
  19471. return xcb_ret
  19472. }
  19473. var _xcb_req228 = Txcb_protocol_request_t{
  19474. Fcount: uint64(4),
  19475. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19476. Fisvoid: uint8(1),
  19477. }
  19478. 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) {
  19479. bp := tls.Alloc(112)
  19480. defer tls.Free(112)
  19481. var xcb_ret Txcb_void_cookie_t
  19482. var _ /* xcb_out at bp+96 */ Txcb_change_hosts_request_t
  19483. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19484. _ = xcb_ret
  19485. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fmode = mode
  19486. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Ffamily = family
  19487. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19488. (*(*Txcb_change_hosts_request_t)(unsafe.Pointer(bp + 96))).Faddress_len = address_len
  19489. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19490. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19491. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19492. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19493. /* uint8_t address */
  19494. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = address
  19495. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(address_len) * uint64(1)
  19496. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19497. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19498. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req229)))
  19499. return xcb_ret
  19500. }
  19501. var _xcb_req229 = Txcb_protocol_request_t{
  19502. Fcount: uint64(4),
  19503. Fopcode: uint8(m_XCB_CHANGE_HOSTS),
  19504. Fisvoid: uint8(1),
  19505. }
  19506. func Xxcb_change_hosts_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19507. return R + libc.UintptrFromInt32(1)*8
  19508. }
  19509. func Xxcb_change_hosts_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19510. return libc.Int32FromUint16((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19511. }
  19512. func Xxcb_change_hosts_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19513. var i Txcb_generic_iterator_t
  19514. _ = i
  19515. i.Fdata = R + libc.UintptrFromInt32(1)*8 + uintptr((*Txcb_change_hosts_request_t)(unsafe.Pointer(R)).Faddress_len)
  19516. i.Frem = 0
  19517. i.Findex = int32(int64(i.Fdata) - int64(R))
  19518. return i
  19519. }
  19520. func Xxcb_host_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19521. var _aux, xcb_tmp uintptr
  19522. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19523. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19524. xcb_tmp = _buffer
  19525. _aux = _buffer
  19526. xcb_buffer_len = uint32(0)
  19527. xcb_block_len = uint32(0)
  19528. xcb_pad = uint32(0)
  19529. xcb_align_to = uint32(0)
  19530. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19531. xcb_tmp += uintptr(xcb_block_len)
  19532. xcb_buffer_len += xcb_block_len
  19533. xcb_block_len = uint32(0)
  19534. /* address */
  19535. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_host_t)(unsafe.Pointer(_aux)).Faddress_len)*libc.Uint64FromInt64(1))
  19536. xcb_tmp += uintptr(xcb_block_len)
  19537. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19538. xcb_align_to = uint32(4)
  19539. /* insert padding */
  19540. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19541. xcb_buffer_len += xcb_block_len + xcb_pad
  19542. if uint32(0) != xcb_pad {
  19543. xcb_tmp += uintptr(xcb_pad)
  19544. xcb_pad = uint32(0)
  19545. }
  19546. xcb_block_len = uint32(0)
  19547. /* insert padding */
  19548. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19549. xcb_buffer_len += xcb_block_len + xcb_pad
  19550. if uint32(0) != xcb_pad {
  19551. xcb_tmp += uintptr(xcb_pad)
  19552. xcb_pad = uint32(0)
  19553. }
  19554. xcb_block_len = uint32(0)
  19555. return libc.Int32FromUint32(xcb_buffer_len)
  19556. }
  19557. func Xxcb_host_address(tls *libc.TLS, R uintptr) (r uintptr) {
  19558. return R + libc.UintptrFromInt32(1)*4
  19559. }
  19560. func Xxcb_host_address_length(tls *libc.TLS, R uintptr) (r int32) {
  19561. return libc.Int32FromUint16((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19562. }
  19563. func Xxcb_host_address_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19564. var i Txcb_generic_iterator_t
  19565. _ = i
  19566. i.Fdata = R + libc.UintptrFromInt32(1)*4 + uintptr((*Txcb_host_t)(unsafe.Pointer(R)).Faddress_len)
  19567. i.Frem = 0
  19568. i.Findex = int32(int64(i.Fdata) - int64(R))
  19569. return i
  19570. }
  19571. func Xxcb_host_next(tls *libc.TLS, i uintptr) {
  19572. var R uintptr
  19573. var child Txcb_generic_iterator_t
  19574. _, _ = R, child
  19575. R = (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata
  19576. child.Fdata = R + uintptr(Xxcb_host_sizeof(tls, R))
  19577. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Findex = int32(int64(child.Fdata) - int64((*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata))
  19578. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Frem--
  19579. (*Txcb_host_iterator_t)(unsafe.Pointer(i)).Fdata = child.Fdata
  19580. }
  19581. func Xxcb_host_end(tls *libc.TLS, _i Txcb_host_iterator_t) (r Txcb_generic_iterator_t) {
  19582. bp := tls.Alloc(16)
  19583. defer tls.Free(16)
  19584. *(*Txcb_host_iterator_t)(unsafe.Pointer(bp)) = _i
  19585. var ret Txcb_generic_iterator_t
  19586. _ = ret
  19587. for (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem > 0 {
  19588. Xxcb_host_next(tls, bp)
  19589. }
  19590. ret.Fdata = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Fdata
  19591. ret.Frem = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Frem
  19592. ret.Findex = (*(*Txcb_host_iterator_t)(unsafe.Pointer(bp))).Findex
  19593. return ret
  19594. }
  19595. func Xxcb_list_hosts_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19596. var _aux, xcb_tmp uintptr
  19597. var i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp_len uint32
  19598. _, _, _, _, _, _, _, _ = _aux, i, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp, xcb_tmp_len
  19599. xcb_tmp = _buffer
  19600. _aux = _buffer
  19601. xcb_buffer_len = uint32(0)
  19602. xcb_block_len = uint32(0)
  19603. xcb_pad = uint32(0)
  19604. xcb_align_to = uint32(0)
  19605. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  19606. xcb_tmp += uintptr(xcb_block_len)
  19607. xcb_buffer_len += xcb_block_len
  19608. xcb_block_len = uint32(0)
  19609. /* hosts */
  19610. i = uint32(0)
  19611. for {
  19612. if !(i < uint32((*Txcb_list_hosts_reply_t)(unsafe.Pointer(_aux)).Fhosts_len)) {
  19613. break
  19614. }
  19615. xcb_tmp_len = libc.Uint32FromInt32(Xxcb_host_sizeof(tls, xcb_tmp))
  19616. xcb_block_len += xcb_tmp_len
  19617. xcb_tmp += uintptr(xcb_tmp_len)
  19618. goto _1
  19619. _1:
  19620. ;
  19621. i++
  19622. }
  19623. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 2))
  19624. /* insert padding */
  19625. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19626. xcb_buffer_len += xcb_block_len + xcb_pad
  19627. if uint32(0) != xcb_pad {
  19628. xcb_tmp += uintptr(xcb_pad)
  19629. xcb_pad = uint32(0)
  19630. }
  19631. xcb_block_len = uint32(0)
  19632. return libc.Int32FromUint32(xcb_buffer_len)
  19633. }
  19634. func Xxcb_list_hosts(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19635. bp := tls.Alloc(80)
  19636. defer tls.Free(80)
  19637. var xcb_ret Txcb_list_hosts_cookie_t
  19638. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19639. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19640. _ = xcb_ret
  19641. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19642. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19643. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19644. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19645. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19646. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req230)))
  19647. return xcb_ret
  19648. }
  19649. var _xcb_req230 = Txcb_protocol_request_t{
  19650. Fcount: uint64(2),
  19651. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19652. }
  19653. func Xxcb_list_hosts_unchecked(tls *libc.TLS, c uintptr) (r Txcb_list_hosts_cookie_t) {
  19654. bp := tls.Alloc(80)
  19655. defer tls.Free(80)
  19656. var xcb_ret Txcb_list_hosts_cookie_t
  19657. var _ /* xcb_out at bp+64 */ Txcb_list_hosts_request_t
  19658. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19659. _ = xcb_ret
  19660. (*(*Txcb_list_hosts_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19661. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19662. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19663. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19664. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19665. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req231)))
  19666. return xcb_ret
  19667. }
  19668. var _xcb_req231 = Txcb_protocol_request_t{
  19669. Fcount: uint64(2),
  19670. Fopcode: uint8(m_XCB_LIST_HOSTS),
  19671. }
  19672. func Xxcb_list_hosts_hosts_length(tls *libc.TLS, R uintptr) (r int32) {
  19673. return libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19674. }
  19675. func Xxcb_list_hosts_hosts_iterator(tls *libc.TLS, R uintptr) (r Txcb_host_iterator_t) {
  19676. var i Txcb_host_iterator_t
  19677. _ = i
  19678. i.Fdata = R + libc.UintptrFromInt32(1)*32
  19679. i.Frem = libc.Int32FromUint16((*Txcb_list_hosts_reply_t)(unsafe.Pointer(R)).Fhosts_len)
  19680. i.Findex = int32(int64(i.Fdata) - int64(R))
  19681. return i
  19682. }
  19683. func Xxcb_list_hosts_reply(tls *libc.TLS, c uintptr, cookie Txcb_list_hosts_cookie_t, e uintptr) (r uintptr) {
  19684. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  19685. }
  19686. func Xxcb_set_access_control_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19687. bp := tls.Alloc(80)
  19688. defer tls.Free(80)
  19689. var xcb_ret Txcb_void_cookie_t
  19690. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19691. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19692. _ = xcb_ret
  19693. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19694. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19695. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19696. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19697. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].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_req232)))
  19699. return xcb_ret
  19700. }
  19701. var _xcb_req232 = Txcb_protocol_request_t{
  19702. Fcount: uint64(2),
  19703. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19704. Fisvoid: uint8(1),
  19705. }
  19706. func Xxcb_set_access_control(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19707. bp := tls.Alloc(80)
  19708. defer tls.Free(80)
  19709. var xcb_ret Txcb_void_cookie_t
  19710. var _ /* xcb_out at bp+64 */ Txcb_set_access_control_request_t
  19711. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19712. _ = xcb_ret
  19713. (*(*Txcb_set_access_control_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19714. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19715. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19716. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19717. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19718. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req233)))
  19719. return xcb_ret
  19720. }
  19721. var _xcb_req233 = Txcb_protocol_request_t{
  19722. Fcount: uint64(2),
  19723. Fopcode: uint8(m_XCB_SET_ACCESS_CONTROL),
  19724. Fisvoid: uint8(1),
  19725. }
  19726. func Xxcb_set_close_down_mode_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19727. bp := tls.Alloc(80)
  19728. defer tls.Free(80)
  19729. var xcb_ret Txcb_void_cookie_t
  19730. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19731. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19732. _ = xcb_ret
  19733. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19734. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19735. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19736. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19737. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19738. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req234)))
  19739. return xcb_ret
  19740. }
  19741. var _xcb_req234 = Txcb_protocol_request_t{
  19742. Fcount: uint64(2),
  19743. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19744. Fisvoid: uint8(1),
  19745. }
  19746. func Xxcb_set_close_down_mode(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19747. bp := tls.Alloc(80)
  19748. defer tls.Free(80)
  19749. var xcb_ret Txcb_void_cookie_t
  19750. var _ /* xcb_out at bp+64 */ Txcb_set_close_down_mode_request_t
  19751. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19752. _ = xcb_ret
  19753. (*(*Txcb_set_close_down_mode_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19754. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19755. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19756. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19757. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19758. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req235)))
  19759. return xcb_ret
  19760. }
  19761. var _xcb_req235 = Txcb_protocol_request_t{
  19762. Fcount: uint64(2),
  19763. Fopcode: uint8(m_XCB_SET_CLOSE_DOWN_MODE),
  19764. Fisvoid: uint8(1),
  19765. }
  19766. func Xxcb_kill_client_checked(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19767. bp := tls.Alloc(80)
  19768. defer tls.Free(80)
  19769. var xcb_ret Txcb_void_cookie_t
  19770. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19771. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19772. _ = xcb_ret
  19773. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19774. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19775. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19776. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19777. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19778. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19779. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req236)))
  19780. return xcb_ret
  19781. }
  19782. var _xcb_req236 = Txcb_protocol_request_t{
  19783. Fcount: uint64(2),
  19784. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19785. Fisvoid: uint8(1),
  19786. }
  19787. func Xxcb_kill_client(tls *libc.TLS, c uintptr, resource Tuint32_t) (r Txcb_void_cookie_t) {
  19788. bp := tls.Alloc(80)
  19789. defer tls.Free(80)
  19790. var xcb_ret Txcb_void_cookie_t
  19791. var _ /* xcb_out at bp+64 */ Txcb_kill_client_request_t
  19792. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19793. _ = xcb_ret
  19794. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  19795. (*(*Txcb_kill_client_request_t)(unsafe.Pointer(bp + 64))).Fresource = resource
  19796. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19797. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  19798. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19799. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19800. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req237)))
  19801. return xcb_ret
  19802. }
  19803. var _xcb_req237 = Txcb_protocol_request_t{
  19804. Fcount: uint64(2),
  19805. Fopcode: uint8(m_XCB_KILL_CLIENT),
  19806. Fisvoid: uint8(1),
  19807. }
  19808. func Xxcb_rotate_properties_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19809. var _aux, xcb_tmp uintptr
  19810. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19811. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19812. xcb_tmp = _buffer
  19813. _aux = _buffer
  19814. xcb_buffer_len = uint32(0)
  19815. xcb_block_len = uint32(0)
  19816. xcb_pad = uint32(0)
  19817. xcb_align_to = uint32(0)
  19818. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(12))
  19819. xcb_tmp += uintptr(xcb_block_len)
  19820. xcb_buffer_len += xcb_block_len
  19821. xcb_block_len = uint32(0)
  19822. /* atoms */
  19823. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_rotate_properties_request_t)(unsafe.Pointer(_aux)).Fatoms_len)*libc.Uint64FromInt64(4))
  19824. xcb_tmp += uintptr(xcb_block_len)
  19825. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  19826. /* insert padding */
  19827. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19828. xcb_buffer_len += xcb_block_len + xcb_pad
  19829. if uint32(0) != xcb_pad {
  19830. xcb_tmp += uintptr(xcb_pad)
  19831. xcb_pad = uint32(0)
  19832. }
  19833. xcb_block_len = uint32(0)
  19834. return libc.Int32FromUint32(xcb_buffer_len)
  19835. }
  19836. 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) {
  19837. bp := tls.Alloc(112)
  19838. defer tls.Free(112)
  19839. var xcb_ret Txcb_void_cookie_t
  19840. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19841. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19842. _ = xcb_ret
  19843. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19844. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19845. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19846. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19847. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19848. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19849. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19850. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19851. /* xcb_atom_t atoms */
  19852. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19853. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19854. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19855. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19856. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req238)))
  19857. return xcb_ret
  19858. }
  19859. var _xcb_req238 = Txcb_protocol_request_t{
  19860. Fcount: uint64(4),
  19861. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19862. Fisvoid: uint8(1),
  19863. }
  19864. 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) {
  19865. bp := tls.Alloc(112)
  19866. defer tls.Free(112)
  19867. var xcb_ret Txcb_void_cookie_t
  19868. var _ /* xcb_out at bp+96 */ Txcb_rotate_properties_request_t
  19869. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19870. _ = xcb_ret
  19871. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fpad0 = uint8(0)
  19872. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fwindow = window
  19873. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fatoms_len = atoms_len
  19874. (*(*Txcb_rotate_properties_request_t)(unsafe.Pointer(bp + 96))).Fdelta = delta
  19875. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19876. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(12)
  19877. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19878. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19879. /* xcb_atom_t atoms */
  19880. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = atoms
  19881. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(atoms_len) * uint64(4)
  19882. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19883. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19884. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req239)))
  19885. return xcb_ret
  19886. }
  19887. var _xcb_req239 = Txcb_protocol_request_t{
  19888. Fcount: uint64(4),
  19889. Fopcode: uint8(m_XCB_ROTATE_PROPERTIES),
  19890. Fisvoid: uint8(1),
  19891. }
  19892. func Xxcb_rotate_properties_atoms(tls *libc.TLS, R uintptr) (r uintptr) {
  19893. return R + libc.UintptrFromInt32(1)*12
  19894. }
  19895. func Xxcb_rotate_properties_atoms_length(tls *libc.TLS, R uintptr) (r int32) {
  19896. return libc.Int32FromUint16((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)
  19897. }
  19898. func Xxcb_rotate_properties_atoms_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  19899. var i Txcb_generic_iterator_t
  19900. _ = i
  19901. i.Fdata = R + libc.UintptrFromInt32(1)*12 + uintptr((*Txcb_rotate_properties_request_t)(unsafe.Pointer(R)).Fatoms_len)*4
  19902. i.Frem = 0
  19903. i.Findex = int32(int64(i.Fdata) - int64(R))
  19904. return i
  19905. }
  19906. func Xxcb_force_screen_saver_checked(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19907. bp := tls.Alloc(80)
  19908. defer tls.Free(80)
  19909. var xcb_ret Txcb_void_cookie_t
  19910. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19911. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19912. _ = xcb_ret
  19913. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19914. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19915. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19916. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19917. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19918. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req240)))
  19919. return xcb_ret
  19920. }
  19921. var _xcb_req240 = Txcb_protocol_request_t{
  19922. Fcount: uint64(2),
  19923. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19924. Fisvoid: uint8(1),
  19925. }
  19926. func Xxcb_force_screen_saver(tls *libc.TLS, c uintptr, mode Tuint8_t) (r Txcb_void_cookie_t) {
  19927. bp := tls.Alloc(80)
  19928. defer tls.Free(80)
  19929. var xcb_ret Txcb_void_cookie_t
  19930. var _ /* xcb_out at bp+64 */ Txcb_force_screen_saver_request_t
  19931. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  19932. _ = xcb_ret
  19933. (*(*Txcb_force_screen_saver_request_t)(unsafe.Pointer(bp + 64))).Fmode = mode
  19934. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  19935. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19936. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19937. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19938. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req241)))
  19939. return xcb_ret
  19940. }
  19941. var _xcb_req241 = Txcb_protocol_request_t{
  19942. Fcount: uint64(2),
  19943. Fopcode: uint8(m_XCB_FORCE_SCREEN_SAVER),
  19944. Fisvoid: uint8(1),
  19945. }
  19946. func Xxcb_set_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  19947. var _aux, xcb_tmp uintptr
  19948. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  19949. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  19950. xcb_tmp = _buffer
  19951. _aux = _buffer
  19952. xcb_buffer_len = uint32(0)
  19953. xcb_block_len = uint32(0)
  19954. xcb_pad = uint32(0)
  19955. xcb_align_to = uint32(0)
  19956. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  19957. xcb_tmp += uintptr(xcb_block_len)
  19958. xcb_buffer_len += xcb_block_len
  19959. xcb_block_len = uint32(0)
  19960. /* map */
  19961. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  19962. xcb_tmp += uintptr(xcb_block_len)
  19963. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  19964. /* insert padding */
  19965. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  19966. xcb_buffer_len += xcb_block_len + xcb_pad
  19967. if uint32(0) != xcb_pad {
  19968. xcb_tmp += uintptr(xcb_pad)
  19969. xcb_pad = uint32(0)
  19970. }
  19971. xcb_block_len = uint32(0)
  19972. return libc.Int32FromUint32(xcb_buffer_len)
  19973. }
  19974. func Xxcb_set_pointer_mapping(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19975. bp := tls.Alloc(112)
  19976. defer tls.Free(112)
  19977. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  19978. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  19979. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  19980. _ = xcb_ret
  19981. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  19982. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  19983. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  19984. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  19985. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  19986. /* uint8_t map */
  19987. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  19988. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  19989. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  19990. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  19991. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req242)))
  19992. return xcb_ret
  19993. }
  19994. var _xcb_req242 = Txcb_protocol_request_t{
  19995. Fcount: uint64(4),
  19996. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  19997. }
  19998. func Xxcb_set_pointer_mapping_unchecked(tls *libc.TLS, c uintptr, map_len Tuint8_t, map1 uintptr) (r Txcb_set_pointer_mapping_cookie_t) {
  19999. bp := tls.Alloc(112)
  20000. defer tls.Free(112)
  20001. var xcb_ret Txcb_set_pointer_mapping_cookie_t
  20002. var _ /* xcb_out at bp+96 */ Txcb_set_pointer_mapping_request_t
  20003. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20004. _ = xcb_ret
  20005. (*(*Txcb_set_pointer_mapping_request_t)(unsafe.Pointer(bp + 96))).Fmap_len = map_len
  20006. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  20007. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20008. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20009. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20010. /* uint8_t map */
  20011. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = map1
  20012. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = uint64(map_len) * uint64(1)
  20013. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20014. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  20015. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req243)))
  20016. return xcb_ret
  20017. }
  20018. var _xcb_req243 = Txcb_protocol_request_t{
  20019. Fcount: uint64(4),
  20020. Fopcode: uint8(m_XCB_SET_POINTER_MAPPING),
  20021. }
  20022. func Xxcb_set_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  20023. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20024. }
  20025. func Xxcb_get_pointer_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20026. var _aux, xcb_tmp uintptr
  20027. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20028. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20029. xcb_tmp = _buffer
  20030. _aux = _buffer
  20031. xcb_buffer_len = uint32(0)
  20032. xcb_block_len = uint32(0)
  20033. xcb_pad = uint32(0)
  20034. xcb_align_to = uint32(0)
  20035. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20036. xcb_tmp += uintptr(xcb_block_len)
  20037. xcb_buffer_len += xcb_block_len
  20038. xcb_block_len = uint32(0)
  20039. /* map */
  20040. xcb_block_len = uint32(uint64(xcb_block_len) + uint64((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(_aux)).Fmap_len)*libc.Uint64FromInt64(1))
  20041. xcb_tmp += uintptr(xcb_block_len)
  20042. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  20043. /* insert padding */
  20044. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20045. xcb_buffer_len += xcb_block_len + xcb_pad
  20046. if uint32(0) != xcb_pad {
  20047. xcb_tmp += uintptr(xcb_pad)
  20048. xcb_pad = uint32(0)
  20049. }
  20050. xcb_block_len = uint32(0)
  20051. return libc.Int32FromUint32(xcb_buffer_len)
  20052. }
  20053. func Xxcb_get_pointer_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  20054. bp := tls.Alloc(80)
  20055. defer tls.Free(80)
  20056. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  20057. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  20058. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20059. _ = xcb_ret
  20060. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20061. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20062. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20063. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20064. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20065. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req244)))
  20066. return xcb_ret
  20067. }
  20068. var _xcb_req244 = Txcb_protocol_request_t{
  20069. Fcount: uint64(2),
  20070. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  20071. }
  20072. func Xxcb_get_pointer_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_pointer_mapping_cookie_t) {
  20073. bp := tls.Alloc(80)
  20074. defer tls.Free(80)
  20075. var xcb_ret Txcb_get_pointer_mapping_cookie_t
  20076. var _ /* xcb_out at bp+64 */ Txcb_get_pointer_mapping_request_t
  20077. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20078. _ = xcb_ret
  20079. (*(*Txcb_get_pointer_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20080. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20081. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20082. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20083. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20084. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req245)))
  20085. return xcb_ret
  20086. }
  20087. var _xcb_req245 = Txcb_protocol_request_t{
  20088. Fcount: uint64(2),
  20089. Fopcode: uint8(m_XCB_GET_POINTER_MAPPING),
  20090. }
  20091. func Xxcb_get_pointer_mapping_map(tls *libc.TLS, R uintptr) (r uintptr) {
  20092. return R + libc.UintptrFromInt32(1)*32
  20093. }
  20094. func Xxcb_get_pointer_mapping_map_length(tls *libc.TLS, R uintptr) (r int32) {
  20095. return libc.Int32FromUint8((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  20096. }
  20097. func Xxcb_get_pointer_mapping_map_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20098. var i Txcb_generic_iterator_t
  20099. _ = i
  20100. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_get_pointer_mapping_reply_t)(unsafe.Pointer(R)).Fmap_len)
  20101. i.Frem = 0
  20102. i.Findex = int32(int64(i.Fdata) - int64(R))
  20103. return i
  20104. }
  20105. func Xxcb_get_pointer_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_pointer_mapping_cookie_t, e uintptr) (r uintptr) {
  20106. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20107. }
  20108. func Xxcb_set_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20109. var _aux, xcb_tmp uintptr
  20110. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20111. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20112. xcb_tmp = _buffer
  20113. _aux = _buffer
  20114. xcb_buffer_len = uint32(0)
  20115. xcb_block_len = uint32(0)
  20116. xcb_pad = uint32(0)
  20117. xcb_align_to = uint32(0)
  20118. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(4))
  20119. xcb_tmp += uintptr(xcb_block_len)
  20120. xcb_buffer_len += xcb_block_len
  20121. xcb_block_len = uint32(0)
  20122. /* keycodes */
  20123. 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))
  20124. xcb_tmp += uintptr(xcb_block_len)
  20125. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  20126. /* insert padding */
  20127. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20128. xcb_buffer_len += xcb_block_len + xcb_pad
  20129. if uint32(0) != xcb_pad {
  20130. xcb_tmp += uintptr(xcb_pad)
  20131. xcb_pad = uint32(0)
  20132. }
  20133. xcb_block_len = uint32(0)
  20134. return libc.Int32FromUint32(xcb_buffer_len)
  20135. }
  20136. func Xxcb_set_modifier_mapping(tls *libc.TLS, c uintptr, keycodes_per_modifier Tuint8_t, keycodes uintptr) (r Txcb_set_modifier_mapping_cookie_t) {
  20137. bp := tls.Alloc(112)
  20138. defer tls.Free(112)
  20139. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20140. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  20141. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20142. _ = xcb_ret
  20143. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  20144. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  20145. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20146. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20147. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20148. /* xcb_keycode_t keycodes */
  20149. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20150. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  20151. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20152. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  20153. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req246)))
  20154. return xcb_ret
  20155. }
  20156. var _xcb_req246 = Txcb_protocol_request_t{
  20157. Fcount: uint64(4),
  20158. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20159. }
  20160. 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) {
  20161. bp := tls.Alloc(112)
  20162. defer tls.Free(112)
  20163. var xcb_ret Txcb_set_modifier_mapping_cookie_t
  20164. var _ /* xcb_out at bp+96 */ Txcb_set_modifier_mapping_request_t
  20165. var _ /* xcb_parts at bp+0 */ [6]Tiovec
  20166. _ = xcb_ret
  20167. (*(*Txcb_set_modifier_mapping_request_t)(unsafe.Pointer(bp + 96))).Fkeycodes_per_modifier = keycodes_per_modifier
  20168. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 96
  20169. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20170. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20171. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20172. /* xcb_keycode_t keycodes */
  20173. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_base = keycodes
  20174. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len = libc.Uint64FromInt32(libc.Int32FromUint8(keycodes_per_modifier)*libc.Int32FromInt32(8)) * uint64(1)
  20175. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_base = uintptr(0)
  20176. (*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(5)].Fiov_len = -(*(*[6]Tiovec)(unsafe.Pointer(bp)))[int32(4)].Fiov_len & uint64(3)
  20177. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req247)))
  20178. return xcb_ret
  20179. }
  20180. var _xcb_req247 = Txcb_protocol_request_t{
  20181. Fcount: uint64(4),
  20182. Fopcode: uint8(m_XCB_SET_MODIFIER_MAPPING),
  20183. }
  20184. func Xxcb_set_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_set_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20185. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20186. }
  20187. func Xxcb_get_modifier_mapping_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20188. var _aux, xcb_tmp uintptr
  20189. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20190. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20191. xcb_tmp = _buffer
  20192. _aux = _buffer
  20193. xcb_buffer_len = uint32(0)
  20194. xcb_block_len = uint32(0)
  20195. xcb_pad = uint32(0)
  20196. xcb_align_to = uint32(0)
  20197. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20198. xcb_tmp += uintptr(xcb_block_len)
  20199. xcb_buffer_len += xcb_block_len
  20200. xcb_block_len = uint32(0)
  20201. /* keycodes */
  20202. 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))
  20203. xcb_tmp += uintptr(xcb_block_len)
  20204. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 1))
  20205. /* insert padding */
  20206. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20207. xcb_buffer_len += xcb_block_len + xcb_pad
  20208. if uint32(0) != xcb_pad {
  20209. xcb_tmp += uintptr(xcb_pad)
  20210. xcb_pad = uint32(0)
  20211. }
  20212. xcb_block_len = uint32(0)
  20213. return libc.Int32FromUint32(xcb_buffer_len)
  20214. }
  20215. func Xxcb_get_modifier_mapping(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20216. bp := tls.Alloc(80)
  20217. defer tls.Free(80)
  20218. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20219. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20220. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20221. _ = xcb_ret
  20222. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20223. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20224. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20225. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20226. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20227. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req248)))
  20228. return xcb_ret
  20229. }
  20230. var _xcb_req248 = Txcb_protocol_request_t{
  20231. Fcount: uint64(2),
  20232. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20233. }
  20234. func Xxcb_get_modifier_mapping_unchecked(tls *libc.TLS, c uintptr) (r Txcb_get_modifier_mapping_cookie_t) {
  20235. bp := tls.Alloc(80)
  20236. defer tls.Free(80)
  20237. var xcb_ret Txcb_get_modifier_mapping_cookie_t
  20238. var _ /* xcb_out at bp+64 */ Txcb_get_modifier_mapping_request_t
  20239. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20240. _ = xcb_ret
  20241. (*(*Txcb_get_modifier_mapping_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20242. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20243. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20244. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20245. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20246. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req249)))
  20247. return xcb_ret
  20248. }
  20249. var _xcb_req249 = Txcb_protocol_request_t{
  20250. Fcount: uint64(2),
  20251. Fopcode: uint8(m_XCB_GET_MODIFIER_MAPPING),
  20252. }
  20253. func Xxcb_get_modifier_mapping_keycodes(tls *libc.TLS, R uintptr) (r uintptr) {
  20254. return R + libc.UintptrFromInt32(1)*32
  20255. }
  20256. func Xxcb_get_modifier_mapping_keycodes_length(tls *libc.TLS, R uintptr) (r int32) {
  20257. return libc.Int32FromUint8((*Txcb_get_modifier_mapping_reply_t)(unsafe.Pointer(R)).Fkeycodes_per_modifier) * int32(8)
  20258. }
  20259. func Xxcb_get_modifier_mapping_keycodes_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20260. var i Txcb_generic_iterator_t
  20261. _ = i
  20262. 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))
  20263. i.Frem = 0
  20264. i.Findex = int32(int64(i.Fdata) - int64(R))
  20265. return i
  20266. }
  20267. func Xxcb_get_modifier_mapping_reply(tls *libc.TLS, c uintptr, cookie Txcb_get_modifier_mapping_cookie_t, e uintptr) (r uintptr) {
  20268. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20269. }
  20270. func Xxcb_no_operation_checked(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20271. bp := tls.Alloc(80)
  20272. defer tls.Free(80)
  20273. var xcb_ret Txcb_void_cookie_t
  20274. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20275. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20276. _ = xcb_ret
  20277. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20278. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20279. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20280. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20281. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20282. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req250)))
  20283. return xcb_ret
  20284. }
  20285. var _xcb_req250 = Txcb_protocol_request_t{
  20286. Fcount: uint64(2),
  20287. Fopcode: uint8(m_XCB_NO_OPERATION),
  20288. Fisvoid: uint8(1),
  20289. }
  20290. func Xxcb_no_operation(tls *libc.TLS, c uintptr) (r Txcb_void_cookie_t) {
  20291. bp := tls.Alloc(80)
  20292. defer tls.Free(80)
  20293. var xcb_ret Txcb_void_cookie_t
  20294. var _ /* xcb_out at bp+64 */ Txcb_no_operation_request_t
  20295. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20296. _ = xcb_ret
  20297. (*(*Txcb_no_operation_request_t)(unsafe.Pointer(bp + 64))).Fpad0 = uint8(0)
  20298. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20299. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20300. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20301. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20302. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req251)))
  20303. return xcb_ret
  20304. }
  20305. var _xcb_req251 = Txcb_protocol_request_t{
  20306. Fcount: uint64(2),
  20307. Fopcode: uint8(m_XCB_NO_OPERATION),
  20308. Fisvoid: uint8(1),
  20309. }
  20310. func Xxcb_big_requests_enable(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20311. bp := tls.Alloc(80)
  20312. defer tls.Free(80)
  20313. var xcb_ret Txcb_big_requests_enable_cookie_t
  20314. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20315. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20316. _ = xcb_ret
  20317. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20318. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20319. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20320. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20321. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req252)))
  20322. return xcb_ret
  20323. }
  20324. var _xcb_req252 = Txcb_protocol_request_t{
  20325. Fcount: uint64(2),
  20326. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20327. }
  20328. func Xxcb_big_requests_enable_unchecked(tls *libc.TLS, c uintptr) (r Txcb_big_requests_enable_cookie_t) {
  20329. bp := tls.Alloc(80)
  20330. defer tls.Free(80)
  20331. var xcb_ret Txcb_big_requests_enable_cookie_t
  20332. var _ /* xcb_out at bp+64 */ Txcb_big_requests_enable_request_t
  20333. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20334. _ = xcb_ret
  20335. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20336. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20337. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20338. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20339. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req253)))
  20340. return xcb_ret
  20341. }
  20342. var _xcb_req253 = Txcb_protocol_request_t{
  20343. Fcount: uint64(2),
  20344. Fext: uintptr(unsafe.Pointer(&Xxcb_big_requests_id)),
  20345. }
  20346. func Xxcb_big_requests_enable_reply(tls *libc.TLS, c uintptr, cookie Txcb_big_requests_enable_cookie_t, e uintptr) (r uintptr) {
  20347. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20348. }
  20349. 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) {
  20350. bp := tls.Alloc(80)
  20351. defer tls.Free(80)
  20352. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20353. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20354. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20355. _ = xcb_ret
  20356. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20357. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20358. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20359. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20360. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20361. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20362. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req254)))
  20363. return xcb_ret
  20364. }
  20365. var _xcb_req254 = Txcb_protocol_request_t{
  20366. Fcount: uint64(2),
  20367. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20368. }
  20369. 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) {
  20370. bp := tls.Alloc(80)
  20371. defer tls.Free(80)
  20372. var xcb_ret Txcb_xc_misc_get_version_cookie_t
  20373. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_version_request_t
  20374. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20375. _ = xcb_ret
  20376. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_major_version = client_major_version
  20377. (*(*Txcb_xc_misc_get_version_request_t)(unsafe.Pointer(bp + 64))).Fclient_minor_version = client_minor_version
  20378. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20379. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20380. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20381. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20382. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req255)))
  20383. return xcb_ret
  20384. }
  20385. var _xcb_req255 = Txcb_protocol_request_t{
  20386. Fcount: uint64(2),
  20387. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20388. }
  20389. func Xxcb_xc_misc_get_version_reply(tls *libc.TLS, c uintptr, cookie Txcb_xc_misc_get_version_cookie_t, e uintptr) (r uintptr) {
  20390. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20391. }
  20392. func Xxcb_xc_misc_get_xid_range(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20393. bp := tls.Alloc(80)
  20394. defer tls.Free(80)
  20395. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20396. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20397. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20398. _ = xcb_ret
  20399. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20400. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20401. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20402. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20403. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req256)))
  20404. return xcb_ret
  20405. }
  20406. var _xcb_req256 = Txcb_protocol_request_t{
  20407. Fcount: uint64(2),
  20408. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20409. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20410. }
  20411. func Xxcb_xc_misc_get_xid_range_unchecked(tls *libc.TLS, c uintptr) (r Txcb_xc_misc_get_xid_range_cookie_t) {
  20412. bp := tls.Alloc(80)
  20413. defer tls.Free(80)
  20414. var xcb_ret Txcb_xc_misc_get_xid_range_cookie_t
  20415. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_range_request_t
  20416. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20417. _ = xcb_ret
  20418. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20419. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(4)
  20420. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20421. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20422. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req257)))
  20423. return xcb_ret
  20424. }
  20425. var _xcb_req257 = Txcb_protocol_request_t{
  20426. Fcount: uint64(2),
  20427. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20428. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_RANGE),
  20429. }
  20430. 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) {
  20431. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20432. }
  20433. func Xxcb_xc_misc_get_xid_list_sizeof(tls *libc.TLS, _buffer uintptr) (r int32) {
  20434. var _aux, xcb_tmp uintptr
  20435. var xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad uint32
  20436. _, _, _, _, _, _ = _aux, xcb_align_to, xcb_block_len, xcb_buffer_len, xcb_pad, xcb_tmp
  20437. xcb_tmp = _buffer
  20438. _aux = _buffer
  20439. xcb_buffer_len = uint32(0)
  20440. xcb_block_len = uint32(0)
  20441. xcb_pad = uint32(0)
  20442. xcb_align_to = uint32(0)
  20443. xcb_block_len = uint32(uint64(xcb_block_len) + libc.Uint64FromInt64(32))
  20444. xcb_tmp += uintptr(xcb_block_len)
  20445. xcb_buffer_len += xcb_block_len
  20446. xcb_block_len = uint32(0)
  20447. /* ids */
  20448. 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))
  20449. xcb_tmp += uintptr(xcb_block_len)
  20450. xcb_align_to = uint32(uint64(libc.UintptrFromInt32(0) + 4))
  20451. /* insert padding */
  20452. xcb_pad = -xcb_block_len & (xcb_align_to - uint32(1))
  20453. xcb_buffer_len += xcb_block_len + xcb_pad
  20454. if uint32(0) != xcb_pad {
  20455. xcb_tmp += uintptr(xcb_pad)
  20456. xcb_pad = uint32(0)
  20457. }
  20458. xcb_block_len = uint32(0)
  20459. return libc.Int32FromUint32(xcb_buffer_len)
  20460. }
  20461. func Xxcb_xc_misc_get_xid_list(tls *libc.TLS, c uintptr, count Tuint32_t) (r Txcb_xc_misc_get_xid_list_cookie_t) {
  20462. bp := tls.Alloc(80)
  20463. defer tls.Free(80)
  20464. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20465. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20466. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20467. _ = xcb_ret
  20468. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20469. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20470. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20471. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20472. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20473. xcb_ret.Fsequence = Xxcb_send_request(tls, c, int32(_XCB_REQUEST_CHECKED), bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req258)))
  20474. return xcb_ret
  20475. }
  20476. var _xcb_req258 = Txcb_protocol_request_t{
  20477. Fcount: uint64(2),
  20478. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20479. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20480. }
  20481. 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) {
  20482. bp := tls.Alloc(80)
  20483. defer tls.Free(80)
  20484. var xcb_ret Txcb_xc_misc_get_xid_list_cookie_t
  20485. var _ /* xcb_out at bp+64 */ Txcb_xc_misc_get_xid_list_request_t
  20486. var _ /* xcb_parts at bp+0 */ [4]Tiovec
  20487. _ = xcb_ret
  20488. (*(*Txcb_xc_misc_get_xid_list_request_t)(unsafe.Pointer(bp + 64))).Fcount = count
  20489. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_base = bp + 64
  20490. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len = uint64(8)
  20491. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_base = uintptr(0)
  20492. (*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(3)].Fiov_len = -(*(*[4]Tiovec)(unsafe.Pointer(bp)))[int32(2)].Fiov_len & uint64(3)
  20493. xcb_ret.Fsequence = Xxcb_send_request(tls, c, 0, bp+uintptr(2)*16, uintptr(unsafe.Pointer(&_xcb_req259)))
  20494. return xcb_ret
  20495. }
  20496. var _xcb_req259 = Txcb_protocol_request_t{
  20497. Fcount: uint64(2),
  20498. Fext: uintptr(unsafe.Pointer(&Xxcb_xc_misc_id)),
  20499. Fopcode: uint8(m_XCB_XC_MISC_GET_XID_LIST),
  20500. }
  20501. func Xxcb_xc_misc_get_xid_list_ids(tls *libc.TLS, R uintptr) (r uintptr) {
  20502. return R + libc.UintptrFromInt32(1)*32
  20503. }
  20504. func Xxcb_xc_misc_get_xid_list_ids_length(tls *libc.TLS, R uintptr) (r int32) {
  20505. return libc.Int32FromUint32((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)
  20506. }
  20507. func Xxcb_xc_misc_get_xid_list_ids_end(tls *libc.TLS, R uintptr) (r Txcb_generic_iterator_t) {
  20508. var i Txcb_generic_iterator_t
  20509. _ = i
  20510. i.Fdata = R + libc.UintptrFromInt32(1)*32 + uintptr((*Txcb_xc_misc_get_xid_list_reply_t)(unsafe.Pointer(R)).Fids_len)*4
  20511. i.Frem = 0
  20512. i.Findex = int32(int64(i.Fdata) - int64(R))
  20513. return i
  20514. }
  20515. 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) {
  20516. return Xxcb_wait_for_reply(tls, c, cookie.Fsequence, e)
  20517. }
  20518. func __ccgo_fp(f interface{}) uintptr {
  20519. type iface [2]uintptr
  20520. return (*iface)(unsafe.Pointer(&f))[1]
  20521. }
  20522. /**
  20523. * @}
  20524. */
  20525. var Xxcb_big_requests_id = Txcb_extension_t{
  20526. Fname: __ccgo_ts + 99,
  20527. }
  20528. /**
  20529. * @}
  20530. */
  20531. var Xxcb_xc_misc_id = Txcb_extension_t{
  20532. Fname: __ccgo_ts + 112,
  20533. }
  20534. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  20535. var __ccgo_ts1 = "GLX\x00unix\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"