From 3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f Mon Sep 17 00:00:00 2001 From: "Andrew Gallant (Ocelot)" Date: Fri, 11 May 2012 01:58:52 -0400 Subject: [PATCH] add a little more docs for errors --- nexgb/bigreq/bigreq.go | 6 ++--- nexgb/composite/composite.go | 6 ++--- nexgb/damage/damage.go | 21 +++++++++------- nexgb/dpms/dpms.go | 22 ++++++++-------- nexgb/dri2/dri2.go | 18 ++++++------- nexgb/ge/ge.go | 10 ++++---- nexgb/glx/glx.go | 41 ++++++++++++++++++++++++++---- nexgb/randr/randr.go | 11 +++++++- nexgb/record/record.go | 5 +++- nexgb/render/render.go | 41 ++++++++++++++++++++---------- nexgb/res/res.go | 2 +- nexgb/screensaver/screensaver.go | 22 ++++++++-------- nexgb/shape/shape.go | 10 ++++---- nexgb/shm/shm.go | 16 ++++++------ nexgb/sync/sync.go | 8 +++++- nexgb/xcmisc/xcmisc.go | 2 +- nexgb/xevie/xevie.go | 10 ++++---- nexgb/xf86dri/xf86dri.go | 6 ++--- nexgb/xf86vidmode/xf86vidmode.go | 43 ++++++++++++++++++++++++-------- nexgb/xfixes/xfixes.go | 21 +++++++++------- nexgb/xgbgen/go_error.go | 8 ++++++ nexgb/xinerama/xinerama.go | 18 ++++++------- nexgb/xinput/xinput.go | 21 +++++++++++++--- nexgb/xprint/xprint.go | 32 ++++++++++++++---------- nexgb/xproto/xproto.go | 42 ++++++++++++++++++++++++++++--- nexgb/xselinux/xselinux.go | 6 ++--- nexgb/xtest/xtest.go | 22 ++++++++-------- nexgb/xv/xv.go | 19 ++++++++++---- nexgb/xvmc/xvmc.go | 6 ++--- 29 files changed, 331 insertions(+), 164 deletions(-) diff --git a/nexgb/bigreq/bigreq.go b/nexgb/bigreq/bigreq.go index 3913c5f..32dacba 100644 --- a/nexgb/bigreq/bigreq.go +++ b/nexgb/bigreq/bigreq.go @@ -2,7 +2,7 @@ package bigreq /* - This file was generated by bigreq.xml on May 10 2012 11:56:18pm EDT. + This file was generated by bigreq.xml on May 11 2012 1:58:35am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,8 +40,6 @@ func init() { xgb.NewExtErrorFuncs["BIG-REQUESTS"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Float' - // Skipping definition for base type 'Card8' // Skipping definition for base type 'Int16' @@ -64,6 +62,8 @@ func init() { // Skipping definition for base type 'Bool' +// Skipping definition for base type 'Float' + // EnableCookie is a cookie used only for Enable requests. type EnableCookie struct { *xgb.Cookie diff --git a/nexgb/composite/composite.go b/nexgb/composite/composite.go index be56807..4217736 100644 --- a/nexgb/composite/composite.go +++ b/nexgb/composite/composite.go @@ -2,7 +2,7 @@ package composite /* - This file was generated by composite.xml on May 10 2012 11:56:18pm EDT. + This file was generated by composite.xml on May 11 2012 1:58:35am EDT. This file is automatically generated. Edit at your peril! */ @@ -41,8 +41,6 @@ func init() { xgb.NewExtErrorFuncs["Composite"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Int8' - // Skipping definition for base type 'Card16' // Skipping definition for base type 'Char' @@ -65,6 +63,8 @@ func init() { // Skipping definition for base type 'Byte' +// Skipping definition for base type 'Int8' + const ( RedirectAutomatic = 0 RedirectManual = 1 diff --git a/nexgb/damage/damage.go b/nexgb/damage/damage.go index 1c17501..a3ba928 100644 --- a/nexgb/damage/damage.go +++ b/nexgb/damage/damage.go @@ -2,7 +2,7 @@ package damage /* - This file was generated by damage.xml on May 10 2012 11:56:18pm EDT. + This file was generated by damage.xml on May 11 2012 1:58:35am EDT. This file is automatically generated. Edit at your peril! */ @@ -41,14 +41,6 @@ func init() { xgb.NewExtErrorFuncs["DAMAGE"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - -// Skipping definition for base type 'Int8' - // Skipping definition for base type 'Card16' // Skipping definition for base type 'Char' @@ -65,6 +57,14 @@ func init() { // Skipping definition for base type 'Int16' +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + +// Skipping definition for base type 'Int8' + const ( ReportLevelRawRectangles = 0 ReportLevelDeltaRectangles = 1 @@ -212,10 +212,13 @@ func (err BadDamageError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadDamage error. If no bad value exists, 0 is returned. func (err BadDamageError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadDamage error. + func (err BadDamageError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/dpms/dpms.go b/nexgb/dpms/dpms.go index e3e095a..8ffb2ee 100644 --- a/nexgb/dpms/dpms.go +++ b/nexgb/dpms/dpms.go @@ -2,7 +2,7 @@ package dpms /* - This file was generated by dpms.xml on May 10 2012 11:56:18pm EDT. + This file was generated by dpms.xml on May 11 2012 1:58:35am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,16 +40,6 @@ func init() { xgb.NewExtErrorFuncs["DPMS"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Card8' - -// Skipping definition for base type 'Int16' - -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - // Skipping definition for base type 'Int8' // Skipping definition for base type 'Card16' @@ -64,6 +54,16 @@ func init() { // Skipping definition for base type 'Float' +// Skipping definition for base type 'Card8' + +// Skipping definition for base type 'Int16' + +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + const ( DPMSModeOn = 0 DPMSModeStandby = 1 diff --git a/nexgb/dri2/dri2.go b/nexgb/dri2/dri2.go index b6398e1..deffdb6 100644 --- a/nexgb/dri2/dri2.go +++ b/nexgb/dri2/dri2.go @@ -2,7 +2,7 @@ package dri2 /* - This file was generated by dri2.xml on May 10 2012 11:56:18pm EDT. + This file was generated by dri2.xml on May 11 2012 1:58:35am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,6 +40,14 @@ func init() { xgb.NewExtErrorFuncs["DRI2"] = make(map[int]xgb.NewErrorFun) } +// 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 'Card8' @@ -56,14 +64,6 @@ func init() { // 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' - const ( AttachmentBufferFrontLeft = 0 AttachmentBufferBackLeft = 1 diff --git a/nexgb/ge/ge.go b/nexgb/ge/ge.go index 21fdb4b..42a60ea 100644 --- a/nexgb/ge/ge.go +++ b/nexgb/ge/ge.go @@ -2,7 +2,7 @@ package ge /* - This file was generated by ge.xml on May 10 2012 11:56:18pm EDT. + This file was generated by ge.xml on May 11 2012 1:58:35am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,6 +40,10 @@ func init() { xgb.NewExtErrorFuncs["Generic Event Extension"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Card8' + +// Skipping definition for base type 'Int16' + // Skipping definition for base type 'Int32' // Skipping definition for base type 'Void' @@ -60,10 +64,6 @@ func init() { // Skipping definition for base type 'Float' -// Skipping definition for base type 'Card8' - -// Skipping definition for base type 'Int16' - // QueryVersionCookie is a cookie used only for QueryVersion requests. type QueryVersionCookie struct { *xgb.Cookie diff --git a/nexgb/glx/glx.go b/nexgb/glx/glx.go index d351137..6bc3615 100644 --- a/nexgb/glx/glx.go +++ b/nexgb/glx/glx.go @@ -2,7 +2,7 @@ package glx /* - This file was generated by glx.xml on May 10 2012 11:56:18pm EDT. + This file was generated by glx.xml on May 11 2012 1:58:35am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,6 +40,10 @@ func init() { xgb.NewExtErrorFuncs["GLX"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Card16' + +// Skipping definition for base type 'Char' + // Skipping definition for base type 'Card32' // Skipping definition for base type 'Double' @@ -60,10 +64,6 @@ func init() { // Skipping definition for base type 'Int8' -// Skipping definition for base type 'Card16' - -// Skipping definition for base type 'Char' - const ( PbcetDamaged = 32791 PbcetSaved = 32792 @@ -355,10 +355,13 @@ func (err GenericError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadGeneric error. If no bad value exists, 0 is returned. func (err GenericError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadGeneric error. + func (err GenericError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -391,10 +394,12 @@ func (err BadContextError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadContext error. If no bad value exists, 0 is returned. func (err BadContextError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadContext error. func (err BadContextError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -427,10 +432,12 @@ func (err BadContextStateError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadContextState error. If no bad value exists, 0 is returned. func (err BadContextStateError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadContextState error. func (err BadContextStateError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -463,10 +470,12 @@ func (err BadDrawableError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadDrawable error. If no bad value exists, 0 is returned. func (err BadDrawableError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadDrawable error. func (err BadDrawableError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -499,10 +508,12 @@ func (err BadPixmapError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadPixmap error. If no bad value exists, 0 is returned. func (err BadPixmapError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadPixmap error. func (err BadPixmapError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -535,10 +546,12 @@ func (err BadContextTagError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadContextTag error. If no bad value exists, 0 is returned. func (err BadContextTagError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadContextTag error. func (err BadContextTagError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -571,10 +584,12 @@ func (err BadCurrentWindowError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadCurrentWindow error. If no bad value exists, 0 is returned. func (err BadCurrentWindowError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadCurrentWindow error. func (err BadCurrentWindowError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -607,10 +622,12 @@ func (err BadRenderRequestError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadRenderRequest error. If no bad value exists, 0 is returned. func (err BadRenderRequestError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadRenderRequest error. func (err BadRenderRequestError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -643,10 +660,12 @@ func (err BadLargeRequestError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadLargeRequest error. If no bad value exists, 0 is returned. func (err BadLargeRequestError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadLargeRequest error. func (err BadLargeRequestError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -679,10 +698,12 @@ func (err UnsupportedPrivateRequestError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadUnsupportedPrivateRequest error. If no bad value exists, 0 is returned. func (err UnsupportedPrivateRequestError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadUnsupportedPrivateRequest error. func (err UnsupportedPrivateRequestError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -715,10 +736,12 @@ func (err BadFBConfigError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadFBConfig error. If no bad value exists, 0 is returned. func (err BadFBConfigError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadFBConfig error. func (err BadFBConfigError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -751,10 +774,12 @@ func (err BadPbufferError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadPbuffer error. If no bad value exists, 0 is returned. func (err BadPbufferError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadPbuffer error. func (err BadPbufferError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -787,10 +812,12 @@ func (err BadCurrentDrawableError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadCurrentDrawable error. If no bad value exists, 0 is returned. func (err BadCurrentDrawableError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadCurrentDrawable error. func (err BadCurrentDrawableError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -823,10 +850,12 @@ func (err BadWindowError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadWindow error. If no bad value exists, 0 is returned. func (err BadWindowError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadWindow error. func (err BadWindowError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -859,10 +888,12 @@ func (err GLXBadProfileARBError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadGLXBadProfileARB error. If no bad value exists, 0 is returned. func (err GLXBadProfileARBError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadGLXBadProfileARB error. func (err GLXBadProfileARBError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/randr/randr.go b/nexgb/randr/randr.go index 35de3bf..83e7035 100644 --- a/nexgb/randr/randr.go +++ b/nexgb/randr/randr.go @@ -2,7 +2,7 @@ package randr /* - This file was generated by randr.xml on May 10 2012 11:56:19pm EDT. + This file was generated by randr.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -1103,10 +1103,13 @@ func (err BadOutputError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadOutput error. If no bad value exists, 0 is returned. func (err BadOutputError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadOutput error. + func (err BadOutputError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1146,10 +1149,13 @@ func (err BadCrtcError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadCrtc error. If no bad value exists, 0 is returned. func (err BadCrtcError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadCrtc error. + func (err BadCrtcError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1189,10 +1195,13 @@ func (err BadModeError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadMode error. If no bad value exists, 0 is returned. func (err BadModeError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadMode error. + func (err BadModeError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/record/record.go b/nexgb/record/record.go index 28b268e..5623e50 100644 --- a/nexgb/record/record.go +++ b/nexgb/record/record.go @@ -2,7 +2,7 @@ package record /* - This file was generated by record.xml on May 10 2012 11:56:19pm EDT. + This file was generated by record.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -499,10 +499,13 @@ func (err BadContextError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadContext error. If no bad value exists, 0 is returned. func (err BadContextError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadContext error. + func (err BadContextError) Error() string { fieldVals := make([]string, 0, 1) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/render/render.go b/nexgb/render/render.go index 61f0b96..65b0723 100644 --- a/nexgb/render/render.go +++ b/nexgb/render/render.go @@ -2,7 +2,7 @@ package render /* - This file was generated by render.xml on May 10 2012 11:56:19pm EDT. + This file was generated by render.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,18 +40,6 @@ func init() { xgb.NewExtErrorFuncs["RENDER"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// 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' @@ -64,6 +52,18 @@ func init() { // Skipping definition for base type 'Int16' +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + +// Skipping definition for base type 'Int8' + +// Skipping definition for base type 'Card16' + +// Skipping definition for base type 'Char' + const ( PictTypeIndexed = 0 PictTypeDirect = 1 @@ -1375,10 +1375,13 @@ func (err PictFormatError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadPictFormat error. If no bad value exists, 0 is returned. func (err PictFormatError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadPictFormat error. + func (err PictFormatError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1418,10 +1421,13 @@ func (err PictureError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadPicture error. If no bad value exists, 0 is returned. func (err PictureError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadPicture error. + func (err PictureError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1461,10 +1467,13 @@ func (err PictOpError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadPictOp error. If no bad value exists, 0 is returned. func (err PictOpError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadPictOp error. + func (err PictOpError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1504,10 +1513,13 @@ func (err GlyphSetError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadGlyphSet error. If no bad value exists, 0 is returned. func (err GlyphSetError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadGlyphSet error. + func (err GlyphSetError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1547,10 +1559,13 @@ func (err GlyphError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadGlyph error. If no bad value exists, 0 is returned. func (err GlyphError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadGlyph error. + func (err GlyphError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/res/res.go b/nexgb/res/res.go index ccc6192..56f4691 100644 --- a/nexgb/res/res.go +++ b/nexgb/res/res.go @@ -2,7 +2,7 @@ package res /* - This file was generated by res.xml on May 10 2012 11:56:19pm EDT. + This file was generated by res.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ diff --git a/nexgb/screensaver/screensaver.go b/nexgb/screensaver/screensaver.go index 0b6ef23..932e753 100644 --- a/nexgb/screensaver/screensaver.go +++ b/nexgb/screensaver/screensaver.go @@ -2,7 +2,7 @@ package screensaver /* - This file was generated by screensaver.xml on May 10 2012 11:56:19pm EDT. + This file was generated by screensaver.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,16 +40,6 @@ func init() { xgb.NewExtErrorFuncs["MIT-SCREEN-SAVER"] = make(map[int]xgb.NewErrorFun) } -// 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 'Card8' - // Skipping definition for base type 'Int16' // Skipping definition for base type 'Int32' @@ -64,6 +54,16 @@ func init() { // 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 'Card8' + const ( KindBlanked = 0 KindInternal = 1 diff --git a/nexgb/shape/shape.go b/nexgb/shape/shape.go index 664c5f4..8989000 100644 --- a/nexgb/shape/shape.go +++ b/nexgb/shape/shape.go @@ -2,7 +2,7 @@ package shape /* - This file was generated by shape.xml on May 10 2012 11:56:19pm EDT. + This file was generated by shape.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,10 +40,6 @@ func init() { xgb.NewExtErrorFuncs["SHAPE"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Card8' - -// Skipping definition for base type 'Int16' - // Skipping definition for base type 'Int32' // Skipping definition for base type 'Void' @@ -64,6 +60,10 @@ func init() { // Skipping definition for base type 'Float' +// Skipping definition for base type 'Card8' + +// Skipping definition for base type 'Int16' + const ( SoSet = 0 SoUnion = 1 diff --git a/nexgb/shm/shm.go b/nexgb/shm/shm.go index b24be97..6ae886d 100644 --- a/nexgb/shm/shm.go +++ b/nexgb/shm/shm.go @@ -2,7 +2,7 @@ package shm /* - This file was generated by shm.xml on May 10 2012 11:56:19pm EDT. + This file was generated by shm.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,12 +40,6 @@ func init() { xgb.NewExtErrorFuncs["MIT-SHM"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - // Skipping definition for base type 'Int8' // Skipping definition for base type 'Card16' @@ -64,6 +58,12 @@ func init() { // Skipping definition for base type 'Int16' +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + type Seg uint32 func NewSegId(c *xgb.Conn) (Seg, error) { @@ -192,10 +192,12 @@ func (err BadSegError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadSeg error. If no bad value exists, 0 is returned. func (err BadSegError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadSeg error. func (err BadSegError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/sync/sync.go b/nexgb/sync/sync.go index 7a32bc4..1904963 100644 --- a/nexgb/sync/sync.go +++ b/nexgb/sync/sync.go @@ -2,7 +2,7 @@ package sync /* - This file was generated by sync.xml on May 10 2012 11:56:19pm EDT. + This file was generated by sync.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -660,10 +660,13 @@ func (err CounterError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadCounter error. If no bad value exists, 0 is returned. func (err CounterError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadCounter error. + func (err CounterError) Error() string { fieldVals := make([]string, 0, 3) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -718,10 +721,13 @@ func (err AlarmError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadAlarm error. If no bad value exists, 0 is returned. func (err AlarmError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadAlarm error. + func (err AlarmError) Error() string { fieldVals := make([]string, 0, 3) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/xcmisc/xcmisc.go b/nexgb/xcmisc/xcmisc.go index 5157119..7171969 100644 --- a/nexgb/xcmisc/xcmisc.go +++ b/nexgb/xcmisc/xcmisc.go @@ -2,7 +2,7 @@ package xcmisc /* - This file was generated by xc_misc.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xc_misc.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ diff --git a/nexgb/xevie/xevie.go b/nexgb/xevie/xevie.go index 3076680..ef02e2c 100644 --- a/nexgb/xevie/xevie.go +++ b/nexgb/xevie/xevie.go @@ -2,7 +2,7 @@ package xevie /* - This file was generated by xevie.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xevie.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,6 +40,10 @@ func init() { xgb.NewExtErrorFuncs["XEVIE"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + // Skipping definition for base type 'Int8' // Skipping definition for base type 'Card16' @@ -60,10 +64,6 @@ func init() { // Skipping definition for base type 'Int32' -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - const ( DatatypeUnmodified = 0 DatatypeModified = 1 diff --git a/nexgb/xf86dri/xf86dri.go b/nexgb/xf86dri/xf86dri.go index cd3ff35..1d7dd72 100644 --- a/nexgb/xf86dri/xf86dri.go +++ b/nexgb/xf86dri/xf86dri.go @@ -2,7 +2,7 @@ package xf86dri /* - This file was generated by xf86dri.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xf86dri.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,6 +40,8 @@ func init() { xgb.NewExtErrorFuncs["XFree86-DRI"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Bool' + // Skipping definition for base type 'Float' // Skipping definition for base type 'Card8' @@ -62,8 +64,6 @@ func init() { // Skipping definition for base type 'Double' -// Skipping definition for base type 'Bool' - type DrmClipRect struct { X1 int16 Y1 int16 diff --git a/nexgb/xf86vidmode/xf86vidmode.go b/nexgb/xf86vidmode/xf86vidmode.go index 15daeb2..01f271c 100644 --- a/nexgb/xf86vidmode/xf86vidmode.go +++ b/nexgb/xf86vidmode/xf86vidmode.go @@ -2,7 +2,7 @@ package xf86vidmode /* - This file was generated by xf86vidmode.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xf86vidmode.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,16 +40,6 @@ func init() { xgb.NewExtErrorFuncs["XFree86-VidModeExtension"] = make(map[int]xgb.NewErrorFun) } -// 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 'Card8' @@ -64,6 +54,16 @@ func init() { // 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' + const ( ModeFlagPositiveHsync = 1 ModeFlagNegativeHsync = 2 @@ -255,10 +255,13 @@ func (err BadClockError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadClock error. If no bad value exists, 0 is returned. func (err BadClockError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadClock error. + func (err BadClockError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -298,10 +301,13 @@ func (err BadHTimingsError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadHTimings error. If no bad value exists, 0 is returned. func (err BadHTimingsError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadHTimings error. + func (err BadHTimingsError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -341,10 +347,13 @@ func (err BadVTimingsError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadVTimings error. If no bad value exists, 0 is returned. func (err BadVTimingsError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadVTimings error. + func (err BadVTimingsError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -384,10 +393,13 @@ func (err ModeUnsuitableError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadModeUnsuitable error. If no bad value exists, 0 is returned. func (err ModeUnsuitableError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadModeUnsuitable error. + func (err ModeUnsuitableError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -427,10 +439,13 @@ func (err ExtensionDisabledError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadExtensionDisabled error. If no bad value exists, 0 is returned. func (err ExtensionDisabledError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadExtensionDisabled error. + func (err ExtensionDisabledError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -470,10 +485,13 @@ func (err ClientNotLocalError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadClientNotLocal error. If no bad value exists, 0 is returned. func (err ClientNotLocalError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadClientNotLocal error. + func (err ClientNotLocalError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -513,10 +531,13 @@ func (err ZoomLockedError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadZoomLocked error. If no bad value exists, 0 is returned. func (err ZoomLockedError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadZoomLocked error. + func (err ZoomLockedError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/xfixes/xfixes.go b/nexgb/xfixes/xfixes.go index b5d9c14..67dff6a 100644 --- a/nexgb/xfixes/xfixes.go +++ b/nexgb/xfixes/xfixes.go @@ -2,7 +2,7 @@ package xfixes /* - This file was generated by xfixes.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xfixes.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -42,6 +42,14 @@ func init() { xgb.NewExtErrorFuncs["XFIXES"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Int16' + +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + // Skipping definition for base type 'Int8' // Skipping definition for base type 'Card16' @@ -58,14 +66,6 @@ func init() { // Skipping definition for base type 'Card8' -// Skipping definition for base type 'Int16' - -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - const ( SaveSetModeInsert = 0 SaveSetModeDelete = 1 @@ -341,10 +341,13 @@ func (err BadRegionError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadRegion error. If no bad value exists, 0 is returned. func (err BadRegionError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadRegion error. + func (err BadRegionError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/xgbgen/go_error.go b/nexgb/xgbgen/go_error.go index 81a017b..55fd28b 100644 --- a/nexgb/xgbgen/go_error.go +++ b/nexgb/xgbgen/go_error.go @@ -68,6 +68,8 @@ func (e *Error) ImplementsError(c *Context) { c.Putln("return err.Sequence") c.Putln("}") c.Putln("") + c.Putln("// BadId returns the 'BadValue' number if one exists for the "+ + "%s error. If no bad value exists, 0 is returned.", e.ErrConst()) c.Putln("func (err %s) BadId() uint32 {", e.ErrType()) if !c.protocol.isExt() { c.Putln("return err.BadValue") @@ -75,6 +77,8 @@ func (e *Error) ImplementsError(c *Context) { c.Putln("return 0") } c.Putln("}") + c.Putln("// Error returns a rudimentary string representation of the %s "+ + "error.", e.ErrConst()) c.Putln("") c.Putln("func (err %s) Error() string {", e.ErrType()) ErrorFieldString(c, e.Fields, e.ErrConst()) @@ -130,6 +134,8 @@ func (e *ErrorCopy) ImplementsError(c *Context) { c.Putln("return err.Sequence") c.Putln("}") c.Putln("") + c.Putln("// BadId returns the 'BadValue' number if one exists for the "+ + "%s error. If no bad value exists, 0 is returned.", e.ErrConst()) c.Putln("func (err %s) BadId() uint32 {", e.ErrType()) if !c.protocol.isExt() { c.Putln("return err.BadValue") @@ -138,6 +144,8 @@ func (e *ErrorCopy) ImplementsError(c *Context) { } c.Putln("}") c.Putln("") + c.Putln("// Error returns a rudimentary string representation of the %s "+ + "error.", e.ErrConst()) c.Putln("func (err %s) Error() string {", e.ErrType()) ErrorFieldString(c, e.Old.(*Error).Fields, e.ErrConst()) c.Putln("}") diff --git a/nexgb/xinerama/xinerama.go b/nexgb/xinerama/xinerama.go index cc4eaaa..b03a381 100644 --- a/nexgb/xinerama/xinerama.go +++ b/nexgb/xinerama/xinerama.go @@ -2,7 +2,7 @@ package xinerama /* - This file was generated by xinerama.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xinerama.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,14 +40,6 @@ func init() { xgb.NewExtErrorFuncs["XINERAMA"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Int16' - -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - // Skipping definition for base type 'Int8' // Skipping definition for base type 'Card16' @@ -64,6 +56,14 @@ func init() { // Skipping definition for base type 'Card8' +// Skipping definition for base type 'Int16' + +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + type ScreenInfo struct { XOrg int16 YOrg int16 diff --git a/nexgb/xinput/xinput.go b/nexgb/xinput/xinput.go index 2c2247c..0cb711b 100644 --- a/nexgb/xinput/xinput.go +++ b/nexgb/xinput/xinput.go @@ -2,7 +2,7 @@ package xinput /* - This file was generated by xinput.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xinput.xml on May 11 2012 1:58:36am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,6 +40,8 @@ func init() { xgb.NewExtErrorFuncs["XInputExtension"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Float' + // Skipping definition for base type 'Card8' // Skipping definition for base type 'Int16' @@ -62,8 +64,6 @@ func init() { // Skipping definition for base type 'Bool' -// Skipping definition for base type 'Float' - const ( ValuatorModeRelative = 0 ValuatorModeAbsolute = 1 @@ -4372,10 +4372,13 @@ func (err DeviceError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadDevice error. If no bad value exists, 0 is returned. func (err DeviceError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadDevice error. + func (err DeviceError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -4415,10 +4418,13 @@ func (err EventError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadEvent error. If no bad value exists, 0 is returned. func (err EventError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadEvent error. + func (err EventError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -4458,10 +4464,13 @@ func (err ModeError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadMode error. If no bad value exists, 0 is returned. func (err ModeError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadMode error. + func (err ModeError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -4501,10 +4510,13 @@ func (err DeviceBusyError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadDeviceBusy error. If no bad value exists, 0 is returned. func (err DeviceBusyError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadDeviceBusy error. + func (err DeviceBusyError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -4544,10 +4556,13 @@ func (err ClassError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadClass error. If no bad value exists, 0 is returned. func (err ClassError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadClass error. + func (err ClassError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/xprint/xprint.go b/nexgb/xprint/xprint.go index 237b6b5..9f4bd6b 100644 --- a/nexgb/xprint/xprint.go +++ b/nexgb/xprint/xprint.go @@ -2,7 +2,7 @@ package xprint /* - This file was generated by xprint.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xprint.xml on May 11 2012 1:58:37am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,18 +40,6 @@ func init() { xgb.NewExtErrorFuncs["XpExtension"] = make(map[int]xgb.NewErrorFun) } -// 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 'Card8' // Skipping definition for base type 'Int16' @@ -64,6 +52,18 @@ func init() { // 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' + const ( GetDocFinished = 0 GetDocSecondConsumer = 1 @@ -373,10 +373,13 @@ func (err BadContextError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadContext error. If no bad value exists, 0 is returned. func (err BadContextError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadContext error. + func (err BadContextError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -416,10 +419,13 @@ func (err BadSequenceError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadSequence error. If no bad value exists, 0 is returned. func (err BadSequenceError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadSequence error. + func (err BadSequenceError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/xproto/xproto.go b/nexgb/xproto/xproto.go index 6b0fb6b..5378196 100644 --- a/nexgb/xproto/xproto.go +++ b/nexgb/xproto/xproto.go @@ -2,7 +2,7 @@ package xproto /* - This file was generated by xproto.xml on May 10 2012 11:56:19pm EDT. + This file was generated by xproto.xml on May 11 2012 1:58:37am EDT. This file is automatically generated. Edit at your peril! */ @@ -23,8 +23,6 @@ func (s *SetupInfo) DefaultScreen(c *xgb.Conn) *ScreenInfo { return &s.Roots[c.DefaultScreen] } -// Skipping definition for base type 'Card8' - // Skipping definition for base type 'Int16' // Skipping definition for base type 'Int32' @@ -47,6 +45,8 @@ func (s *SetupInfo) DefaultScreen(c *xgb.Conn) *ScreenInfo { // Skipping definition for base type 'Float' +// Skipping definition for base type 'Card8' + const ( VisualClassStaticGray = 0 VisualClassGrayScale = 1 @@ -5749,10 +5749,13 @@ func (err RequestError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadRequest error. If no bad value exists, 0 is returned. func (err RequestError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadRequest error. + func (err RequestError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -5810,10 +5813,13 @@ func (err ValueError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadValue error. If no bad value exists, 0 is returned. func (err ValueError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadValue error. + func (err ValueError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -5846,10 +5852,12 @@ func (err WindowError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadWindow error. If no bad value exists, 0 is returned. func (err WindowError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadWindow error. func (err WindowError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -5882,10 +5890,12 @@ func (err PixmapError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadPixmap error. If no bad value exists, 0 is returned. func (err PixmapError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadPixmap error. func (err PixmapError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -5918,10 +5928,12 @@ func (err AtomError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadAtom error. If no bad value exists, 0 is returned. func (err AtomError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadAtom error. func (err AtomError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -5954,10 +5966,12 @@ func (err CursorError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadCursor error. If no bad value exists, 0 is returned. func (err CursorError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadCursor error. func (err CursorError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -5990,10 +6004,12 @@ func (err FontError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadFont error. If no bad value exists, 0 is returned. func (err FontError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadFont error. func (err FontError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6026,10 +6042,12 @@ func (err MatchError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadMatch error. If no bad value exists, 0 is returned. func (err MatchError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadMatch error. func (err MatchError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6062,10 +6080,12 @@ func (err DrawableError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadDrawable error. If no bad value exists, 0 is returned. func (err DrawableError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadDrawable error. func (err DrawableError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6098,10 +6118,12 @@ func (err AccessError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadAccess error. If no bad value exists, 0 is returned. func (err AccessError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadAccess error. func (err AccessError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6134,10 +6156,12 @@ func (err AllocError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadAlloc error. If no bad value exists, 0 is returned. func (err AllocError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadAlloc error. func (err AllocError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6170,10 +6194,12 @@ func (err ColormapError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadColormap error. If no bad value exists, 0 is returned. func (err ColormapError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadColormap error. func (err ColormapError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6206,10 +6232,12 @@ func (err GContextError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadGContext error. If no bad value exists, 0 is returned. func (err GContextError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadGContext error. func (err GContextError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6242,10 +6270,12 @@ func (err IDChoiceError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadIDChoice error. If no bad value exists, 0 is returned. func (err IDChoiceError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadIDChoice error. func (err IDChoiceError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6278,10 +6308,12 @@ func (err NameError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadName error. If no bad value exists, 0 is returned. func (err NameError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadName error. func (err NameError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6314,10 +6346,12 @@ func (err LengthError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadLength error. If no bad value exists, 0 is returned. func (err LengthError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadLength error. func (err LengthError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -6350,10 +6384,12 @@ func (err ImplementationError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadImplementation error. If no bad value exists, 0 is returned. func (err ImplementationError) BadId() uint32 { return err.BadValue } +// Error returns a rudimentary string representation of the BadImplementation error. func (err ImplementationError) Error() string { fieldVals := make([]string, 0, 4) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/xselinux/xselinux.go b/nexgb/xselinux/xselinux.go index ac11a77..10134ff 100644 --- a/nexgb/xselinux/xselinux.go +++ b/nexgb/xselinux/xselinux.go @@ -2,7 +2,7 @@ package xselinux /* - This file was generated by xselinux.xml on May 10 2012 11:56:20pm EDT. + This file was generated by xselinux.xml on May 11 2012 1:58:37am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,8 +40,6 @@ func init() { xgb.NewExtErrorFuncs["SELinux"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Int8' - // Skipping definition for base type 'Card16' // Skipping definition for base type 'Char' @@ -64,6 +62,8 @@ func init() { // Skipping definition for base type 'Byte' +// Skipping definition for base type 'Int8' + type ListItem struct { Name xproto.Atom ObjectContextLen uint32 diff --git a/nexgb/xtest/xtest.go b/nexgb/xtest/xtest.go index e2a2d80..8f964e4 100644 --- a/nexgb/xtest/xtest.go +++ b/nexgb/xtest/xtest.go @@ -2,7 +2,7 @@ package xtest /* - This file was generated by xtest.xml on May 10 2012 11:56:20pm EDT. + This file was generated by xtest.xml on May 11 2012 1:58:37am EDT. This file is automatically generated. Edit at your peril! */ @@ -40,6 +40,16 @@ func init() { xgb.NewExtErrorFuncs["XTEST"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Card8' + +// Skipping definition for base type 'Int16' + +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + // Skipping definition for base type 'Int8' // Skipping definition for base type 'Card16' @@ -54,16 +64,6 @@ func init() { // Skipping definition for base type 'Float' -// Skipping definition for base type 'Card8' - -// Skipping definition for base type 'Int16' - -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - const ( CursorNone = 0 CursorCurrent = 1 diff --git a/nexgb/xv/xv.go b/nexgb/xv/xv.go index 041b082..c048e88 100644 --- a/nexgb/xv/xv.go +++ b/nexgb/xv/xv.go @@ -2,7 +2,7 @@ package xv /* - This file was generated by xv.xml on May 10 2012 11:56:20pm EDT. + This file was generated by xv.xml on May 11 2012 1:58:37am EDT. This file is automatically generated. Edit at your peril! */ @@ -41,10 +41,6 @@ func init() { xgb.NewExtErrorFuncs["XVideo"] = make(map[int]xgb.NewErrorFun) } -// Skipping definition for base type 'Char' - -// Skipping definition for base type 'Card32' - // Skipping definition for base type 'Double' // Skipping definition for base type 'Bool' @@ -65,6 +61,10 @@ func init() { // Skipping definition for base type 'Card16' +// Skipping definition for base type 'Char' + +// Skipping definition for base type 'Card32' + const ( TypeInputMask = 1 TypeOutputMask = 2 @@ -1087,10 +1087,13 @@ func (err BadPortError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadPort error. If no bad value exists, 0 is returned. func (err BadPortError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadPort error. + func (err BadPortError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1130,10 +1133,13 @@ func (err BadEncodingError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadEncoding error. If no bad value exists, 0 is returned. func (err BadEncodingError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadEncoding error. + func (err BadEncodingError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) @@ -1173,10 +1179,13 @@ func (err BadControlError) SequenceId() uint16 { return err.Sequence } +// BadId returns the 'BadValue' number if one exists for the BadBadControl error. If no bad value exists, 0 is returned. func (err BadControlError) BadId() uint32 { return 0 } +// Error returns a rudimentary string representation of the BadBadControl error. + func (err BadControlError) Error() string { fieldVals := make([]string, 0, 0) fieldVals = append(fieldVals, "NiceName: "+err.NiceName) diff --git a/nexgb/xvmc/xvmc.go b/nexgb/xvmc/xvmc.go index dc9c220..cf794cc 100644 --- a/nexgb/xvmc/xvmc.go +++ b/nexgb/xvmc/xvmc.go @@ -2,7 +2,7 @@ package xvmc /* - This file was generated by xvmc.xml on May 10 2012 11:56:20pm EDT. + This file was generated by xvmc.xml on May 11 2012 1:58:37am EDT. This file is automatically generated. Edit at your peril! */ @@ -41,6 +41,8 @@ func init() { xgb.NewExtErrorFuncs["XVideo-MotionCompensation"] = make(map[int]xgb.NewErrorFun) } +// Skipping definition for base type 'Int8' + // Skipping definition for base type 'Card16' // Skipping definition for base type 'Char' @@ -63,8 +65,6 @@ func init() { // Skipping definition for base type 'Byte' -// Skipping definition for base type 'Int8' - type Context uint32 func NewContextId(c *xgb.Conn) (Context, error) {