aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xevie
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/xevie
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/xevie')
-rw-r--r--nexgb/xevie/xevie.go31
1 files changed, 13 insertions, 18 deletions
diff --git a/nexgb/xevie/xevie.go b/nexgb/xevie/xevie.go
index 76b8e56..5d233ad 100644
--- a/nexgb/xevie/xevie.go
+++ b/nexgb/xevie/xevie.go
@@ -121,7 +121,7 @@ type EndCookie struct {
}
// End sends a checked request.
-// If an error occurs, it will be returned with the reply by calling EndCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling EndCookie.Reply.
func End(c *xgb.Conn, Cmap uint32) EndCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -184,8 +184,7 @@ func endReply(buf []byte) *EndReply {
return v
}
-// Write request to wire for End
-// endRequest writes a End request to a byte slice.
+// endRequest writes a End request to a byte slice for transfer.
func endRequest(c *xgb.Conn, Cmap uint32) []byte {
size := 8
b := 0
@@ -214,8 +213,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["XEVIE"]; !ok {
@@ -228,7 +227,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["XEVIE"]; !ok {
@@ -285,9 +284,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)
@@ -318,7 +316,7 @@ type SelectInputCookie struct {
}
// SelectInput sends a checked request.
-// If an error occurs, it will be returned with the reply by calling SelectInputCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling SelectInputCookie.Reply.
func SelectInput(c *xgb.Conn, EventMask uint32) SelectInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -381,8 +379,7 @@ func selectInputReply(buf []byte) *SelectInputReply {
return v
}
-// Write request to wire for SelectInput
-// selectInputRequest writes a SelectInput request to a byte slice.
+// selectInputRequest writes a SelectInput request to a byte slice for transfer.
func selectInputRequest(c *xgb.Conn, EventMask uint32) []byte {
size := 8
b := 0
@@ -411,7 +408,7 @@ type SendCookie struct {
}
// Send sends a checked request.
-// If an error occurs, it will be returned with the reply by calling SendCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling SendCookie.Reply.
func Send(c *xgb.Conn, Event Event, DataType uint32) SendCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -474,8 +471,7 @@ func sendReply(buf []byte) *SendReply {
return v
}
-// Write request to wire for Send
-// sendRequest writes a Send request to a byte slice.
+// sendRequest writes a Send request to a byte slice for transfer.
func sendRequest(c *xgb.Conn, Event Event, DataType uint32) []byte {
size := 104
b := 0
@@ -512,7 +508,7 @@ type StartCookie struct {
}
// Start sends a checked request.
-// If an error occurs, it will be returned with the reply by calling StartCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling StartCookie.Reply.
func Start(c *xgb.Conn, Screen uint32) StartCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -575,8 +571,7 @@ func startReply(buf []byte) *StartReply {
return v
}
-// Write request to wire for Start
-// startRequest writes a Start request to a byte slice.
+// startRequest writes a Start request to a byte slice for transfer.
func startRequest(c *xgb.Conn, Screen uint32) []byte {
size := 8
b := 0