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/damage/damage.go | |
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/damage/damage.go')
-rw-r--r-- | nexgb/damage/damage.go | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/nexgb/damage/damage.go b/nexgb/damage/damage.go index 7edccd2..d385b9e 100644 --- a/nexgb/damage/damage.go +++ b/nexgb/damage/damage.go @@ -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) |