aboutsummaryrefslogtreecommitdiff
path: root/nexgb/record/record.go
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-09-30 16:32:47 +0200
committerPřemysl Janouch <p@janouch.name>2018-09-30 17:34:27 +0200
commite6e4e9443661bab3bb69a6c32dacfaf0e54f32ef (patch)
tree1f81f1a54e9469424463f4fdd17f6d19094d241d /nexgb/record/record.go
parent7051829581b426a410a3817921564d950f839768 (diff)
downloadhaven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.gz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.xz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.zip
nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
Diffstat (limited to 'nexgb/record/record.go')
-rw-r--r--nexgb/record/record.go58
1 files changed, 25 insertions, 33 deletions
diff --git a/nexgb/record/record.go b/nexgb/record/record.go
index c981bdd..2c34408 100644
--- a/nexgb/record/record.go
+++ b/nexgb/record/record.go
@@ -526,7 +526,7 @@ type CreateContextCookie struct {
// CreateContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
+func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@@ -538,8 +538,8 @@ func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, Nu
}
// CreateContextChecked sends a checked request.
-// If an error occurs, it can be retrieved using CreateContextCookie.Check()
-func CreateContextChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
+// If an error occurs, it can be retrieved using CreateContextCookie.Check.
+func CreateContextChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@@ -556,9 +556,8 @@ func (cook CreateContextCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for CreateContext
-// createContextRequest writes a CreateContext request to a byte slice.
-func createContextRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
+// createContextRequest writes a CreateContext request to a byte slice for transfer.
+func createContextRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
size := xgb.Pad(((20 + xgb.Pad((int(NumClientSpecs) * 4))) + xgb.Pad((int(NumRanges) * 24))))
b := 0
buf := make([]byte, size)
@@ -617,7 +616,7 @@ func DisableContext(c *xgb.Conn, Context Context) DisableContextCookie {
}
// DisableContextChecked sends a checked request.
-// If an error occurs, it can be retrieved using DisableContextCookie.Check()
+// If an error occurs, it can be retrieved using DisableContextCookie.Check.
func DisableContextChecked(c *xgb.Conn, Context Context) DisableContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -635,8 +634,7 @@ func (cook DisableContextCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DisableContext
-// disableContextRequest writes a DisableContext request to a byte slice.
+// disableContextRequest writes a DisableContext request to a byte slice for transfer.
func disableContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@@ -665,7 +663,7 @@ type EnableContextCookie struct {
}
// EnableContext sends a checked request.
-// If an error occurs, it will be returned with the reply by calling EnableContextCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling EnableContextCookie.Reply.
func EnableContext(c *xgb.Conn, Context Context) EnableContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -761,8 +759,7 @@ func enableContextReply(buf []byte) *EnableContextReply {
return v
}
-// Write request to wire for EnableContext
-// enableContextRequest writes a EnableContext request to a byte slice.
+// enableContextRequest writes a EnableContext request to a byte slice for transfer.
func enableContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@@ -804,7 +801,7 @@ func FreeContext(c *xgb.Conn, Context Context) FreeContextCookie {
}
// FreeContextChecked sends a checked request.
-// If an error occurs, it can be retrieved using FreeContextCookie.Check()
+// If an error occurs, it can be retrieved using FreeContextCookie.Check.
func FreeContextChecked(c *xgb.Conn, Context Context) FreeContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -822,8 +819,7 @@ func (cook FreeContextCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for FreeContext
-// freeContextRequest writes a FreeContext request to a byte slice.
+// freeContextRequest writes a FreeContext request to a byte slice for transfer.
func freeContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@@ -852,7 +848,7 @@ type GetContextCookie struct {
}
// GetContext sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetContextCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetContextCookie.Reply.
func GetContext(c *xgb.Conn, Context Context) GetContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -935,8 +931,7 @@ func getContextReply(buf []byte) *GetContextReply {
return v
}
-// Write request to wire for GetContext
-// getContextRequest writes a GetContext request to a byte slice.
+// getContextRequest writes a GetContext request to a byte slice for transfer.
func getContextRequest(c *xgb.Conn, Context Context) []byte {
size := 8
b := 0
@@ -965,8 +960,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, MajorVersion uint16, MinorVersion uint16) QueryVersionCookie {
+// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
+func QueryVersion(c *xgb.Conn, MajorVersion, MinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@@ -979,7 +974,7 @@ func QueryVersion(c *xgb.Conn, MajorVersion uint16, MinorVersion uint16) QueryVe
// 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, MajorVersion uint16, MinorVersion uint16) QueryVersionCookie {
+func QueryVersionUnchecked(c *xgb.Conn, MajorVersion, MinorVersion uint16) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@@ -1033,9 +1028,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, MajorVersion uint16, MinorVersion uint16) []byte {
+// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
+func queryVersionRequest(c *xgb.Conn, MajorVersion, MinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@@ -1067,7 +1061,7 @@ type RegisterClientsCookie struct {
// RegisterClients sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
+func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@@ -1079,8 +1073,8 @@ func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader,
}
// RegisterClientsChecked sends a checked request.
-// If an error occurs, it can be retrieved using RegisterClientsCookie.Check()
-func RegisterClientsChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
+// If an error occurs, it can be retrieved using RegisterClientsCookie.Check.
+func RegisterClientsChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RECORD"]; !ok {
@@ -1097,9 +1091,8 @@ func (cook RegisterClientsCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for RegisterClients
-// registerClientsRequest writes a RegisterClients request to a byte slice.
-func registerClientsRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
+// registerClientsRequest writes a RegisterClients request to a byte slice for transfer.
+func registerClientsRequest(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) []byte {
size := xgb.Pad(((20 + xgb.Pad((int(NumClientSpecs) * 4))) + xgb.Pad((int(NumRanges) * 24))))
b := 0
buf := make([]byte, size)
@@ -1158,7 +1151,7 @@ func UnregisterClients(c *xgb.Conn, Context Context, NumClientSpecs uint32, Clie
}
// UnregisterClientsChecked sends a checked request.
-// If an error occurs, it can be retrieved using UnregisterClientsCookie.Check()
+// If an error occurs, it can be retrieved using UnregisterClientsCookie.Check.
func UnregisterClientsChecked(c *xgb.Conn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) UnregisterClientsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1176,8 +1169,7 @@ func (cook UnregisterClientsCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for UnregisterClients
-// unregisterClientsRequest writes a UnregisterClients request to a byte slice.
+// unregisterClientsRequest writes a UnregisterClients request to a byte slice for transfer.
func unregisterClientsRequest(c *xgb.Conn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) []byte {
size := xgb.Pad((12 + xgb.Pad((int(NumClientSpecs) * 4))))
b := 0