Skip to content

Commit

Permalink
add a little more docs for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Gallant (Ocelot) authored and Andrew Gallant (Ocelot) committed May 11, 2012
1 parent 7df5dda commit 9699de4
Show file tree
Hide file tree
Showing 29 changed files with 331 additions and 164 deletions.
6 changes: 3 additions & 3 deletions bigreq/bigreq.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
*/

Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions composite/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
*/

Expand Down Expand Up @@ -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'
Expand All @@ -65,6 +63,8 @@ func init() {

// Skipping definition for base type 'Byte'

// Skipping definition for base type 'Int8'

const (
RedirectAutomatic = 0
RedirectManual = 1
Expand Down
21 changes: 12 additions & 9 deletions damage/damage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
*/

Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down
22 changes: 11 additions & 11 deletions dpms/dpms.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
*/

Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down
18 changes: 9 additions & 9 deletions dri2/dri2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
*/

Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions ge/ge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
*/

Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down
Loading

0 comments on commit 9699de4

Please sign in to comment.