From e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 30 Sep 2018 16:32:47 +0200 Subject: nexgb: regenerate from xcb-proto 1.12 To refresh documentation. --- nexgb/xcmisc/xcmisc.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'nexgb/xcmisc/xcmisc.go') diff --git a/nexgb/xcmisc/xcmisc.go b/nexgb/xcmisc/xcmisc.go index 7a9d486..d727ec4 100644 --- a/nexgb/xcmisc/xcmisc.go +++ b/nexgb/xcmisc/xcmisc.go @@ -71,8 +71,8 @@ type GetVersionCookie struct { } // GetVersion sends a checked request. -// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply() -func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie { +// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply. +func GetVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() if _, ok := c.Extensions["XC-MISC"]; !ok { @@ -85,7 +85,7 @@ func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint1 // GetVersionUnchecked sends an unchecked request. // If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent. -func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie { +func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() if _, ok := c.Extensions["XC-MISC"]; !ok { @@ -139,9 +139,8 @@ func getVersionReply(buf []byte) *GetVersionReply { return v } -// Write request to wire for GetVersion -// getVersionRequest writes a GetVersion request to a byte slice. -func getVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) []byte { +// getVersionRequest writes a GetVersion request to a byte slice for transfer. +func getVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) []byte { size := 8 b := 0 buf := make([]byte, size) @@ -172,7 +171,7 @@ type GetXIDListCookie struct { } // GetXIDList sends a checked request. -// If an error occurs, it will be returned with the reply by calling GetXIDListCookie.Reply() +// If an error occurs, it will be returned with the reply by calling GetXIDListCookie.Reply. func GetXIDList(c *xgb.Conn, Count uint32) GetXIDListCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -246,8 +245,7 @@ func getXIDListReply(buf []byte) *GetXIDListReply { return v } -// Write request to wire for GetXIDList -// getXIDListRequest writes a GetXIDList request to a byte slice. +// getXIDListRequest writes a GetXIDList request to a byte slice for transfer. func getXIDListRequest(c *xgb.Conn, Count uint32) []byte { size := 8 b := 0 @@ -276,7 +274,7 @@ type GetXIDRangeCookie struct { } // GetXIDRange sends a checked request. -// If an error occurs, it will be returned with the reply by calling GetXIDRangeCookie.Reply() +// If an error occurs, it will be returned with the reply by calling GetXIDRangeCookie.Reply. func GetXIDRange(c *xgb.Conn) GetXIDRangeCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -344,8 +342,7 @@ func getXIDRangeReply(buf []byte) *GetXIDRangeReply { return v } -// Write request to wire for GetXIDRange -// getXIDRangeRequest writes a GetXIDRange request to a byte slice. +// getXIDRangeRequest writes a GetXIDRange request to a byte slice for transfer. func getXIDRangeRequest(c *xgb.Conn) []byte { size := 4 b := 0 -- cgit v1.2.3