aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auto_shm.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/auto_shm.go')
-rw-r--r--nexgb/auto_shm.go22
1 files changed, 13 insertions, 9 deletions
diff --git a/nexgb/auto_shm.go b/nexgb/auto_shm.go
index 514dc03..a6d64a2 100644
--- a/nexgb/auto_shm.go
+++ b/nexgb/auto_shm.go
@@ -1,7 +1,7 @@
package xgb
/*
- This file was generated by shm.xml on May 6 2012 5:48:47pm EDT.
+ This file was generated by shm.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) ShmInit() error {
case err != nil:
return err
case !reply.Present:
- return newError("No extension named MIT-SHM could be found on on the server.")
+ return errorf("No extension named MIT-SHM could be found on on the server.")
}
c.extLock.Lock()
@@ -24,6 +24,9 @@ func (c *Conn) ShmInit() error {
for evNum, fun := range newExtEventFuncs["MIT-SHM"] {
newEventFuncs[int(reply.FirstEvent)+evNum] = fun
}
+ for errNum, fun := range newExtErrorFuncs["MIT-SHM"] {
+ newErrorFuncs[int(reply.FirstError)+errNum] = fun
+ }
c.extLock.Unlock()
return nil
@@ -31,8 +34,15 @@ func (c *Conn) ShmInit() error {
func init() {
newExtEventFuncs["MIT-SHM"] = make(map[int]newEventFun)
+ newExtErrorFuncs["MIT-SHM"] = make(map[int]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 'Id'
@@ -53,12 +63,6 @@ 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 resource definition of 'Seg'
// Event definition ShmCompletion (0)
@@ -194,7 +198,7 @@ func (err ShmBadSegError) Error() string {
}
func init() {
- newErrorFuncs[0] = NewShmBadSegError
+ newExtErrorFuncs["MIT-SHM"][0] = NewShmBadSegError
}
// Request ShmQueryVersion