aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xf86dri/xf86dri.go
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-09-30 16:32:47 +0200
committerPřemysl Janouch <p@janouch.name>2018-09-30 17:34:27 +0200
commite6e4e9443661bab3bb69a6c32dacfaf0e54f32ef (patch)
tree1f81f1a54e9469424463f4fdd17f6d19094d241d /nexgb/xf86dri/xf86dri.go
parent7051829581b426a410a3817921564d950f839768 (diff)
downloadhaven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.gz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.xz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.zip
nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
Diffstat (limited to 'nexgb/xf86dri/xf86dri.go')
-rw-r--r--nexgb/xf86dri/xf86dri.go96
1 files changed, 42 insertions, 54 deletions
diff --git a/nexgb/xf86dri/xf86dri.go b/nexgb/xf86dri/xf86dri.go
index 42f04d1..6f93b7e 100644
--- a/nexgb/xf86dri/xf86dri.go
+++ b/nexgb/xf86dri/xf86dri.go
@@ -139,8 +139,8 @@ 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 an error occurs, it will be returned with the reply by calling AuthConnectionCookie.Reply.
+func AuthConnection(c *xgb.Conn, Screen, Magic uint32) AuthConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -153,7 +153,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 {
+func AuthConnectionUnchecked(c *xgb.Conn, Screen, Magic uint32) AuthConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -203,9 +203,8 @@ func authConnectionReply(buf []byte) *AuthConnectionReply {
return v
}
-// Write request to wire for AuthConnection
-// authConnectionRequest writes a AuthConnection request to a byte slice.
-func authConnectionRequest(c *xgb.Conn, Screen uint32, Magic uint32) []byte {
+// authConnectionRequest writes a AuthConnection request to a byte slice for transfer.
+func authConnectionRequest(c *xgb.Conn, Screen, Magic uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -249,7 +248,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()
+// If an error occurs, it can be retrieved using CloseConnectionCookie.Check.
func CloseConnectionChecked(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -267,8 +266,7 @@ func (cook CloseConnectionCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for CloseConnection
-// closeConnectionRequest writes a CloseConnection request to a byte slice.
+// closeConnectionRequest writes a CloseConnection request to a byte slice for transfer.
func closeConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@@ -297,8 +295,8 @@ 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 an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply.
+func CreateContext(c *xgb.Conn, Screen, Visual, Context uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -311,7 +309,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 {
+func CreateContextUnchecked(c *xgb.Conn, Screen, Visual, Context uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -361,9 +359,8 @@ func createContextReply(buf []byte) *CreateContextReply {
return v
}
-// Write request to wire for CreateContext
-// createContextRequest writes a CreateContext request to a byte slice.
-func createContextRequest(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) []byte {
+// createContextRequest writes a CreateContext request to a byte slice for transfer.
+func createContextRequest(c *xgb.Conn, Screen, Visual, Context uint32) []byte {
size := 16
b := 0
buf := make([]byte, size)
@@ -397,8 +394,8 @@ 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 an error occurs, it will be returned with the reply by calling CreateDrawableCookie.Reply.
+func CreateDrawable(c *xgb.Conn, Screen, Drawable uint32) CreateDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -411,7 +408,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 {
+func CreateDrawableUnchecked(c *xgb.Conn, Screen, Drawable uint32) CreateDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -461,9 +458,8 @@ func createDrawableReply(buf []byte) *CreateDrawableReply {
return v
}
-// Write request to wire for CreateDrawable
-// createDrawableRequest writes a CreateDrawable request to a byte slice.
-func createDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
+// createDrawableRequest writes a CreateDrawable request to a byte slice for transfer.
+func createDrawableRequest(c *xgb.Conn, Screen, Drawable uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -495,7 +491,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 {
+func DestroyContext(c *xgb.Conn, Screen, Context uint32) DestroyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -507,8 +503,8 @@ 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 an error occurs, it can be retrieved using DestroyContextCookie.Check.
+func DestroyContextChecked(c *xgb.Conn, Screen, Context uint32) DestroyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -525,9 +521,8 @@ func (cook DestroyContextCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DestroyContext
-// destroyContextRequest writes a DestroyContext request to a byte slice.
-func destroyContextRequest(c *xgb.Conn, Screen uint32, Context uint32) []byte {
+// destroyContextRequest writes a DestroyContext request to a byte slice for transfer.
+func destroyContextRequest(c *xgb.Conn, Screen, Context uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -559,7 +554,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 {
+func DestroyDrawable(c *xgb.Conn, Screen, Drawable uint32) DestroyDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -571,8 +566,8 @@ 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 an error occurs, it can be retrieved using DestroyDrawableCookie.Check.
+func DestroyDrawableChecked(c *xgb.Conn, Screen, Drawable uint32) DestroyDrawableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -589,9 +584,8 @@ func (cook DestroyDrawableCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DestroyDrawable
-// destroyDrawableRequest writes a DestroyDrawable request to a byte slice.
-func destroyDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
+// destroyDrawableRequest writes a DestroyDrawable request to a byte slice for transfer.
+func destroyDrawableRequest(c *xgb.Conn, Screen, Drawable uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -622,7 +616,7 @@ type GetClientDriverNameCookie struct {
}
// GetClientDriverName sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply.
func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -709,8 +703,7 @@ func getClientDriverNameReply(buf []byte) *GetClientDriverNameReply {
return v
}
-// Write request to wire for GetClientDriverName
-// getClientDriverNameRequest writes a GetClientDriverName request to a byte slice.
+// getClientDriverNameRequest writes a GetClientDriverName request to a byte slice for transfer.
func getClientDriverNameRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@@ -739,7 +732,7 @@ type GetDeviceInfoCookie struct {
}
// GetDeviceInfo sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply.
func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -830,8 +823,7 @@ func getDeviceInfoReply(buf []byte) *GetDeviceInfoReply {
return v
}
-// Write request to wire for GetDeviceInfo
-// getDeviceInfoRequest writes a GetDeviceInfo request to a byte slice.
+// getDeviceInfoRequest writes a GetDeviceInfo request to a byte slice for transfer.
func getDeviceInfoRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@@ -860,8 +852,8 @@ 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 an error occurs, it will be returned with the reply by calling GetDrawableInfoCookie.Reply.
+func GetDrawableInfo(c *xgb.Conn, Screen, Drawable uint32) GetDrawableInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -874,7 +866,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 {
+func GetDrawableInfoUnchecked(c *xgb.Conn, Screen, Drawable uint32) GetDrawableInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
@@ -968,9 +960,8 @@ func getDrawableInfoReply(buf []byte) *GetDrawableInfoReply {
return v
}
-// Write request to wire for GetDrawableInfo
-// getDrawableInfoRequest writes a GetDrawableInfo request to a byte slice.
-func getDrawableInfoRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
+// getDrawableInfoRequest writes a GetDrawableInfo request to a byte slice for transfer.
+func getDrawableInfoRequest(c *xgb.Conn, Screen, Drawable uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -1001,7 +992,7 @@ type OpenConnectionCookie struct {
}
// OpenConnection sends a checked request.
-// If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply.
func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1084,8 +1075,7 @@ func openConnectionReply(buf []byte) *OpenConnectionReply {
return v
}
-// Write request to wire for OpenConnection
-// openConnectionRequest writes a OpenConnection request to a byte slice.
+// openConnectionRequest writes a OpenConnection request to a byte slice for transfer.
func openConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@@ -1114,7 +1104,7 @@ type QueryDirectRenderingCapableCookie struct {
}
// QueryDirectRenderingCapable sends a checked request.
-// If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply.
func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1182,8 +1172,7 @@ func queryDirectRenderingCapableReply(buf []byte) *QueryDirectRenderingCapableRe
return v
}
-// Write request to wire for QueryDirectRenderingCapable
-// queryDirectRenderingCapableRequest writes a QueryDirectRenderingCapable request to a byte slice.
+// queryDirectRenderingCapableRequest writes a QueryDirectRenderingCapable request to a byte slice for transfer.
func queryDirectRenderingCapableRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0
@@ -1212,7 +1201,7 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
-// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1284,8 +1273,7 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
-// Write request to wire for QueryVersion
-// queryVersionRequest writes a QueryVersion request to a byte slice.
+// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0