aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auto_xv.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/auto_xv.go')
-rw-r--r--nexgb/auto_xv.go26
1 files changed, 15 insertions, 11 deletions
diff --git a/nexgb/auto_xv.go b/nexgb/auto_xv.go
index 0ce0c64..dc2826b 100644
--- a/nexgb/auto_xv.go
+++ b/nexgb/auto_xv.go
@@ -1,7 +1,7 @@
package xgb
/*
- This file was generated by xv.xml on May 6 2012 5:48:48pm EDT.
+ This file was generated by xv.xml on May 7 2012 9:17:58pm EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -17,7 +17,7 @@ func (c *Conn) XvInit() error {
case err != nil:
return err
case !reply.Present:
- return newError("No extension named XVideo could be found on on the server.")
+ return errorf("No extension named XVideo could be found on on the server.")
}
c.extLock.Lock()
@@ -25,6 +25,9 @@ func (c *Conn) XvInit() error {
for evNum, fun := range newExtEventFuncs["XVideo"] {
newEventFuncs[int(reply.FirstEvent)+evNum] = fun
}
+ for errNum, fun := range newExtErrorFuncs["XVideo"] {
+ newErrorFuncs[int(reply.FirstError)+errNum] = fun
+ }
c.extLock.Unlock()
return nil
@@ -32,14 +35,9 @@ func (c *Conn) XvInit() error {
func init() {
newExtEventFuncs["XVideo"] = make(map[int]newEventFun)
+ newExtErrorFuncs["XVideo"] = make(map[int]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'
// Skipping definition for base type 'Char'
@@ -60,6 +58,12 @@ func init() {
// 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 (
XvTypeInputMask = 1
XvTypeOutputMask = 2
@@ -1094,7 +1098,7 @@ func (err XvBadPortError) Error() string {
}
func init() {
- newErrorFuncs[0] = NewXvBadPortError
+ newExtErrorFuncs["XVideo"][0] = NewXvBadPortError
}
// Error definition XvBadEncoding (1)
@@ -1139,7 +1143,7 @@ func (err XvBadEncodingError) Error() string {
}
func init() {
- newErrorFuncs[1] = NewXvBadEncodingError
+ newExtErrorFuncs["XVideo"][1] = NewXvBadEncodingError
}
// Error definition XvBadControl (2)
@@ -1184,7 +1188,7 @@ func (err XvBadControlError) Error() string {
}
func init() {
- newErrorFuncs[2] = NewXvBadControlError
+ newExtErrorFuncs["XVideo"][2] = NewXvBadControlError
}
// Request XvQueryExtension