aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xf86dri/xf86dri.go
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2013-12-28 10:13:20 -0500
committerPřemysl Janouch <p@janouch.name>2018-09-08 16:49:21 +0200
commit76f9adb5991081e27ebc6eec82db6bdba36c910f (patch)
treecbf0e38e95853b9fc3c1133f901e7b4c5f6ab435 /nexgb/xf86dri/xf86dri.go
parent33509dbeb0acd7abbbb9e8c434d0c3f0ce8a3230 (diff)
downloadhaven-76f9adb5991081e27ebc6eec82db6bdba36c910f.tar.gz
haven-76f9adb5991081e27ebc6eec82db6bdba36c910f.tar.xz
haven-76f9adb5991081e27ebc6eec82db6bdba36c910f.zip
Use consistent extension names. Close #6.
Diffstat (limited to 'nexgb/xf86dri/xf86dri.go')
-rw-r--r--nexgb/xf86dri/xf86dri.go72
1 files changed, 36 insertions, 36 deletions
diff --git a/nexgb/xf86dri/xf86dri.go b/nexgb/xf86dri/xf86dri.go
index 65fcfa0..d88cc5d 100644
--- a/nexgb/xf86dri/xf86dri.go
+++ b/nexgb/xf86dri/xf86dri.go
@@ -137,7 +137,7 @@ type AuthConnectionCookie struct {
// AuthConnection sends a checked request.
// If an error occurs, it will be returned with the reply by calling AuthConnectionCookie.Reply()
func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'AuthConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -148,7 +148,7 @@ func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCook
// AuthConnectionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AuthConnectionUnchecked(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'AuthConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -202,7 +202,7 @@ func authConnectionRequest(c *xgb.Conn, Screen uint32, Magic uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 11 // request opcode
@@ -228,7 +228,7 @@ type CloseConnectionCookie struct {
// CloseConnection sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CloseConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@@ -239,7 +239,7 @@ func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
// CloseConnectionChecked sends a checked request.
// If an error occurs, it can be retrieved using CloseConnectionCookie.Check()
func CloseConnectionChecked(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CloseConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@@ -260,7 +260,7 @@ func closeConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 3 // request opcode
@@ -283,7 +283,7 @@ type CreateContextCookie struct {
// CreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()
func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -294,7 +294,7 @@ func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) Cr
// CreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContextUnchecked(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -348,7 +348,7 @@ func createContextRequest(c *xgb.Conn, Screen uint32, Visual uint32, Context uin
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 5 // request opcode
@@ -377,7 +377,7 @@ type CreateDrawableCookie struct {
// CreateDrawable sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateDrawableCookie.Reply()
func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -388,7 +388,7 @@ func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableC
// CreateDrawableUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateDrawableUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -442,7 +442,7 @@ func createDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 7 // request opcode
@@ -468,7 +468,7 @@ type DestroyContextCookie struct {
// DestroyContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@@ -479,7 +479,7 @@ func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCo
// DestroyContextChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyContextCookie.Check()
func DestroyContextChecked(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@@ -500,7 +500,7 @@ func destroyContextRequest(c *xgb.Conn, Screen uint32, Context uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 6 // request opcode
@@ -526,7 +526,7 @@ type DestroyDrawableCookie struct {
// DestroyDrawable sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@@ -537,7 +537,7 @@ func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawabl
// DestroyDrawableChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check()
func DestroyDrawableChecked(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@@ -558,7 +558,7 @@ func destroyDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 8 // request opcode
@@ -584,7 +584,7 @@ type GetClientDriverNameCookie struct {
// GetClientDriverName sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply()
func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetClientDriverName' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -595,7 +595,7 @@ func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
// GetClientDriverNameUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetClientDriverNameUnchecked(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetClientDriverName' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -672,7 +672,7 @@ func getClientDriverNameRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 4 // request opcode
@@ -695,7 +695,7 @@ type GetDeviceInfoCookie struct {
// GetDeviceInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply()
func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDeviceInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -706,7 +706,7 @@ func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
// GetDeviceInfoUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDeviceInfoUnchecked(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDeviceInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -788,7 +788,7 @@ func getDeviceInfoRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 10 // request opcode
@@ -811,7 +811,7 @@ type GetDrawableInfoCookie struct {
// GetDrawableInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDrawableInfoCookie.Reply()
func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDrawableInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -822,7 +822,7 @@ func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInf
// GetDrawableInfoUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDrawableInfoUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDrawableInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -920,7 +920,7 @@ func getDrawableInfoRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 9 // request opcode
@@ -946,7 +946,7 @@ type OpenConnectionCookie struct {
// OpenConnection sends a checked request.
// If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply()
func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'OpenConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -957,7 +957,7 @@ func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
// OpenConnectionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func OpenConnectionUnchecked(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'OpenConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -1030,7 +1030,7 @@ func openConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 2 // request opcode
@@ -1053,7 +1053,7 @@ type QueryDirectRenderingCapableCookie struct {
// QueryDirectRenderingCapable sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply()
func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryDirectRenderingCapable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -1064,7 +1064,7 @@ func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderin
// QueryDirectRenderingCapableUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryDirectRenderingCapableUnchecked(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryDirectRenderingCapable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -1122,7 +1122,7 @@ func queryDirectRenderingCapableRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 1 // request opcode
@@ -1145,7 +1145,7 @@ type QueryVersionCookie struct {
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -1156,7 +1156,7 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie {
- if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
+ if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -1218,7 +1218,7 @@ func queryVersionRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XFREE86-DRI"]
+ buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 0 // request opcode