aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auto_damage.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/auto_damage.go')
-rw-r--r--nexgb/auto_damage.go26
1 files changed, 15 insertions, 11 deletions
diff --git a/nexgb/auto_damage.go b/nexgb/auto_damage.go
index 8339e6a..c3d2734 100644
--- a/nexgb/auto_damage.go
+++ b/nexgb/auto_damage.go
@@ -1,7 +1,7 @@
package xgb
/*
- This file was generated by damage.xml on May 6 2012 5:48:47pm EDT.
+ This file was generated by damage.xml on May 7 2012 9:17:56pm EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -17,7 +17,7 @@ func (c *Conn) DamageInit() error {
case err != nil:
return err
case !reply.Present:
- return newError("No extension named DAMAGE could be found on on the server.")
+ return errorf("No extension named DAMAGE could be found on on the server.")
}
c.extLock.Lock()
@@ -25,6 +25,9 @@ func (c *Conn) DamageInit() error {
for evNum, fun := range newExtEventFuncs["DAMAGE"] {
newEventFuncs[int(reply.FirstEvent)+evNum] = fun
}
+ for errNum, fun := range newExtErrorFuncs["DAMAGE"] {
+ newErrorFuncs[int(reply.FirstError)+errNum] = fun
+ }
c.extLock.Unlock()
return nil
@@ -32,8 +35,17 @@ func (c *Conn) DamageInit() error {
func init() {
newExtEventFuncs["DAMAGE"] = make(map[int]newEventFun)
+ newExtErrorFuncs["DAMAGE"] = make(map[int]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'
@@ -52,14 +64,6 @@ 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'
-
const (
DamageReportLevelRawRectangles = 0
DamageReportLevelDeltaRectangles = 1
@@ -213,7 +217,7 @@ func (err DamageBadDamageError) Error() string {
}
func init() {
- newErrorFuncs[0] = NewDamageBadDamageError
+ newExtErrorFuncs["DAMAGE"][0] = NewDamageBadDamageError
}
// Request DamageQueryVersion