From e239bb3c68a4981a3916534203c2fbd6b96f593c Mon Sep 17 00:00:00 2001 From: "Andrew Gallant (Ocelot)" Date: Thu, 10 May 2012 12:47:19 -0400 Subject: make resource ids their own individual types. last commit before overhaul to sub-packages --- nexgb/auto_res.go | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'nexgb/auto_res.go') diff --git a/nexgb/auto_res.go b/nexgb/auto_res.go index 3aca143..a2f9914 100644 --- a/nexgb/auto_res.go +++ b/nexgb/auto_res.go @@ -1,7 +1,7 @@ package xgb /* - This file was generated by res.xml on May 8 2012 11:03:24pm EDT. + This file was generated by res.xml on May 10 2012 12:39:33pm EDT. This file is automatically generated. Edit at your peril! */ @@ -37,12 +37,20 @@ func init() { newExtErrorFuncs["X-Resource"] = make(map[int]newErrorFun) } +// Skipping definition for base type 'Int8' + +// Skipping definition for base type 'Card16' + +// Skipping definition for base type 'Char' + +// Skipping definition for base type 'Card32' + +// Skipping definition for base type 'Double' + // Skipping definition for base type 'Bool' // Skipping definition for base type 'Float' -// Skipping definition for base type 'Id' - // Skipping definition for base type 'Card8' // Skipping definition for base type 'Int16' @@ -53,16 +61,6 @@ func init() { // Skipping definition for base type 'Byte' -// Skipping definition for base type 'Int8' - -// Skipping definition for base type 'Card16' - -// Skipping definition for base type 'Char' - -// Skipping definition for base type 'Card32' - -// Skipping definition for base type 'Double' - // 'ResClient' struct definition // Size: 8 type ResClient struct { @@ -122,7 +120,7 @@ func ResClientListBytes(buf []byte, list []ResClient) int { // 'ResType' struct definition // Size: 8 type ResType struct { - ResourceType Id + ResourceType Atom Count uint32 } @@ -130,7 +128,7 @@ type ResType struct { func ReadResType(buf []byte, v *ResType) int { b := 0 - v.ResourceType = Id(Get32(buf[b:])) + v.ResourceType = Atom(Get32(buf[b:])) b += 4 v.Count = Get32(buf[b:]) -- cgit v1.2.3-54-g00ecf