aboutsummaryrefslogtreecommitdiff
path: root/nexgb/ge/ge.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/ge/ge.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/ge/ge.go')
-rw-r--r--nexgb/ge/ge.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/nexgb/ge/ge.go b/nexgb/ge/ge.go
index 676a4ed..8830a07 100644
--- a/nexgb/ge/ge.go
+++ b/nexgb/ge/ge.go
@@ -71,8 +71,8 @@ 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, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
+// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
+func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["Generic Event Extension"]; !ok {
@@ -85,7 +85,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uin
// 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, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
+func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["Generic Event Extension"]; !ok {
@@ -142,9 +142,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
-// Write request to wire for QueryVersion
-// queryVersionRequest writes a QueryVersion request to a byte slice.
-func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) []byte {
+// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
+func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)