add a little more docs for errors

This commit is contained in:
Andrew Gallant (Ocelot) 2012-05-11 01:58:52 -04:00
parent c00652934e
commit 3e6b354493
29 changed files with 331 additions and 164 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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!
*/

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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!
*/

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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("}")

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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) {