nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user