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

@@ -513,7 +513,7 @@ type QueryClientIdsCookie struct {
}
// QueryClientIds sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientIdsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientIdsCookie.Reply.
func QueryClientIds(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) QueryClientIdsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -584,8 +584,7 @@ func queryClientIdsReply(buf []byte) *QueryClientIdsReply {
return v
}
// Write request to wire for QueryClientIds
// queryClientIdsRequest writes a QueryClientIds request to a byte slice.
// queryClientIdsRequest writes a QueryClientIds request to a byte slice for transfer.
func queryClientIdsRequest(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) []byte {
size := xgb.Pad((8 + xgb.Pad((int(NumSpecs) * 8))))
b := 0
@@ -616,7 +615,7 @@ type QueryClientPixmapBytesCookie struct {
}
// QueryClientPixmapBytes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientPixmapBytesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientPixmapBytesCookie.Reply.
func QueryClientPixmapBytes(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -684,8 +683,7 @@ func queryClientPixmapBytesReply(buf []byte) *QueryClientPixmapBytesReply {
return v
}
// Write request to wire for QueryClientPixmapBytes
// queryClientPixmapBytesRequest writes a QueryClientPixmapBytes request to a byte slice.
// queryClientPixmapBytesRequest writes a QueryClientPixmapBytes request to a byte slice for transfer.
func queryClientPixmapBytesRequest(c *xgb.Conn, Xid uint32) []byte {
size := 8
b := 0
@@ -714,7 +712,7 @@ type QueryClientResourcesCookie struct {
}
// QueryClientResources sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientResourcesCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientResourcesCookie.Reply.
func QueryClientResources(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -785,8 +783,7 @@ func queryClientResourcesReply(buf []byte) *QueryClientResourcesReply {
return v
}
// Write request to wire for QueryClientResources
// queryClientResourcesRequest writes a QueryClientResources request to a byte slice.
// queryClientResourcesRequest writes a QueryClientResources request to a byte slice for transfer.
func queryClientResourcesRequest(c *xgb.Conn, Xid uint32) []byte {
size := 8
b := 0
@@ -815,7 +812,7 @@ type QueryClientsCookie struct {
}
// QueryClients sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientsCookie.Reply()
// If an error occurs, it will be returned with the reply by calling QueryClientsCookie.Reply.
func QueryClients(c *xgb.Conn) QueryClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -886,8 +883,7 @@ func queryClientsReply(buf []byte) *QueryClientsReply {
return v
}
// Write request to wire for QueryClients
// queryClientsRequest writes a QueryClients request to a byte slice.
// queryClientsRequest writes a QueryClients request to a byte slice for transfer.
func queryClientsRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -913,8 +909,8 @@ type QueryResourceBytesCookie struct {
}
// QueryResourceBytes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryResourceBytesCookie.Reply()
func QueryResourceBytes(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
// If an error occurs, it will be returned with the reply by calling QueryResourceBytesCookie.Reply.
func QueryResourceBytes(c *xgb.Conn, Client, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@@ -927,7 +923,7 @@ func QueryResourceBytes(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []Res
// QueryResourceBytesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryResourceBytesUnchecked(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
func QueryResourceBytesUnchecked(c *xgb.Conn, Client, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@@ -984,9 +980,8 @@ func queryResourceBytesReply(buf []byte) *QueryResourceBytesReply {
return v
}
// Write request to wire for QueryResourceBytes
// queryResourceBytesRequest writes a QueryResourceBytes request to a byte slice.
func queryResourceBytesRequest(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) []byte {
// queryResourceBytesRequest writes a QueryResourceBytes request to a byte slice for transfer.
func queryResourceBytesRequest(c *xgb.Conn, Client, NumSpecs uint32, Specs []ResourceIdSpec) []byte {
size := xgb.Pad((12 + xgb.Pad((int(NumSpecs) * 8))))
b := 0
buf := make([]byte, size)
@@ -1019,8 +1014,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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@@ -1033,7 +1028,7 @@ func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionC
// 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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
func QueryVersionUnchecked(c *xgb.Conn, ClientMajor, ClientMinor byte) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["X-Resource"]; !ok {
@@ -1087,9 +1082,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, ClientMajor byte, ClientMinor byte) []byte {
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn, ClientMajor, ClientMinor byte) []byte {
size := 8
b := 0
buf := make([]byte, size)