nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
This commit is contained in:
@@ -250,7 +250,7 @@ func Add(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) AddCookie
|
||||
}
|
||||
|
||||
// AddChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AddCookie.Check()
|
||||
// If an error occurs, it can be retrieved using AddCookie.Check.
|
||||
func AddChecked(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) AddCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
@@ -268,8 +268,7 @@ func (cook AddCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for Add
|
||||
// addRequest writes a Add request to a byte slice.
|
||||
// addRequest writes a Add request to a byte slice for transfer.
|
||||
func addRequest(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) []byte {
|
||||
size := 12
|
||||
b := 0
|
||||
@@ -314,7 +313,7 @@ func Create(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) Cr
|
||||
}
|
||||
|
||||
// CreateChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateCookie.Check()
|
||||
// If an error occurs, it can be retrieved using CreateCookie.Check.
|
||||
func CreateChecked(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) CreateCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
@@ -332,8 +331,7 @@ func (cook CreateCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for Create
|
||||
// createRequest writes a Create request to a byte slice.
|
||||
// createRequest writes a Create request to a byte slice for transfer.
|
||||
func createRequest(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) []byte {
|
||||
size := 16
|
||||
b := 0
|
||||
@@ -383,7 +381,7 @@ func Destroy(c *xgb.Conn, Damage Damage) DestroyCookie {
|
||||
}
|
||||
|
||||
// DestroyChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyCookie.Check()
|
||||
// If an error occurs, it can be retrieved using DestroyCookie.Check.
|
||||
func DestroyChecked(c *xgb.Conn, Damage Damage) DestroyCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
@@ -401,8 +399,7 @@ func (cook DestroyCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for Destroy
|
||||
// destroyRequest writes a Destroy request to a byte slice.
|
||||
// destroyRequest writes a Destroy request to a byte slice for transfer.
|
||||
func destroyRequest(c *xgb.Conn, Damage Damage) []byte {
|
||||
size := 8
|
||||
b := 0
|
||||
@@ -431,8 +428,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 uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
|
||||
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
@@ -445,7 +442,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, 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 uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
@@ -502,9 +499,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 uint32, ClientMinorVersion uint32) []byte {
|
||||
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
|
||||
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) []byte {
|
||||
size := 12
|
||||
b := 0
|
||||
buf := make([]byte, size)
|
||||
@@ -536,7 +532,7 @@ type SubtractCookie struct {
|
||||
|
||||
// Subtract sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Subtract(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) SubtractCookie {
|
||||
func Subtract(c *xgb.Conn, Damage Damage, Repair, Parts xfixes.Region) SubtractCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
@@ -548,8 +544,8 @@ func Subtract(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Reg
|
||||
}
|
||||
|
||||
// SubtractChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SubtractCookie.Check()
|
||||
func SubtractChecked(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) SubtractCookie {
|
||||
// If an error occurs, it can be retrieved using SubtractCookie.Check.
|
||||
func SubtractChecked(c *xgb.Conn, Damage Damage, Repair, Parts xfixes.Region) SubtractCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
@@ -566,9 +562,8 @@ func (cook SubtractCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for Subtract
|
||||
// subtractRequest writes a Subtract request to a byte slice.
|
||||
func subtractRequest(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) []byte {
|
||||
// subtractRequest writes a Subtract request to a byte slice for transfer.
|
||||
func subtractRequest(c *xgb.Conn, Damage Damage, Repair, Parts xfixes.Region) []byte {
|
||||
size := 16
|
||||
b := 0
|
||||
buf := make([]byte, size)
|
||||
|
||||
Reference in New Issue
Block a user