diff options
| author | Přemysl Janouch <p@janouch.name> | 2018-09-30 16:32:47 +0200 | 
|---|---|---|
| committer | Přemysl Janouch <p@janouch.name> | 2018-09-30 17:34:27 +0200 | 
| commit | e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef (patch) | |
| tree | 1f81f1a54e9469424463f4fdd17f6d19094d241d /nexgb/xcmisc | |
| parent | 7051829581b426a410a3817921564d950f839768 (diff) | |
| download | haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.gz haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.xz haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.zip | |
nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
Diffstat (limited to 'nexgb/xcmisc')
| -rw-r--r-- | nexgb/xcmisc/xcmisc.go | 21 | 
1 files changed, 9 insertions, 12 deletions
| 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 | 
