aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auto_xprint.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/auto_xprint.go')
-rw-r--r--nexgb/auto_xprint.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/nexgb/auto_xprint.go b/nexgb/auto_xprint.go
index 6c9be85..9bb8ea7 100644
--- a/nexgb/auto_xprint.go
+++ b/nexgb/auto_xprint.go
@@ -1,7 +1,7 @@
package xgb
/*
- This file was generated by xprint.xml on May 6 2012 5:48:48pm EDT.
+ This file was generated by xprint.xml on May 7 2012 9:17:57pm EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -16,7 +16,7 @@ func (c *Conn) XprintInit() error {
case err != nil:
return err
case !reply.Present:
- return newError("No extension named XpExtension could be found on on the server.")
+ return errorf("No extension named XpExtension could be found on on the server.")
}
c.extLock.Lock()
@@ -24,6 +24,9 @@ func (c *Conn) XprintInit() error {
for evNum, fun := range newExtEventFuncs["XpExtension"] {
newEventFuncs[int(reply.FirstEvent)+evNum] = fun
}
+ for errNum, fun := range newExtErrorFuncs["XpExtension"] {
+ newErrorFuncs[int(reply.FirstError)+errNum] = fun
+ }
c.extLock.Unlock()
return nil
@@ -31,6 +34,7 @@ func (c *Conn) XprintInit() error {
func init() {
newExtEventFuncs["XpExtension"] = make(map[int]newEventFun)
+ newExtErrorFuncs["XpExtension"] = make(map[int]newErrorFun)
}
// Skipping definition for base type 'Float'
@@ -376,7 +380,7 @@ func (err XprintBadContextError) Error() string {
}
func init() {
- newErrorFuncs[0] = NewXprintBadContextError
+ newExtErrorFuncs["XpExtension"][0] = NewXprintBadContextError
}
// Error definition XprintBadSequence (1)
@@ -421,7 +425,7 @@ func (err XprintBadSequenceError) Error() string {
}
func init() {
- newErrorFuncs[1] = NewXprintBadSequenceError
+ newExtErrorFuncs["XpExtension"][1] = NewXprintBadSequenceError
}
// Request XprintPrintQueryVersion