nexgb: regenerate from xcb-proto 1.12

To refresh documentation.
This commit is contained in:
2018-09-30 16:32:47 +02:00
parent 7051829581
commit e6e4e94436
26 changed files with 2479 additions and 2300 deletions

View File

@@ -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