aboutsummaryrefslogtreecommitdiff
path: root/nexgb/dpms
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/dpms
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/dpms')
-rw-r--r--nexgb/dpms/dpms.go52
1 files changed, 22 insertions, 30 deletions
diff --git a/nexgb/dpms/dpms.go b/nexgb/dpms/dpms.go
index 3c4b7ce..e8c02e8 100644
--- a/nexgb/dpms/dpms.go
+++ b/nexgb/dpms/dpms.go
@@ -78,7 +78,7 @@ type CapableCookie struct {
}
// Capable sends a checked request.
-// If an error occurs, it will be returned with the reply by calling CapableCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling CapableCookie.Reply.
func Capable(c *xgb.Conn) CapableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -149,8 +149,7 @@ func capableReply(buf []byte) *CapableReply {
return v
}
-// Write request to wire for Capable
-// capableRequest writes a Capable request to a byte slice.
+// capableRequest writes a Capable request to a byte slice for transfer.
func capableRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -189,7 +188,7 @@ func Disable(c *xgb.Conn) DisableCookie {
}
// DisableChecked sends a checked request.
-// If an error occurs, it can be retrieved using DisableCookie.Check()
+// If an error occurs, it can be retrieved using DisableCookie.Check.
func DisableChecked(c *xgb.Conn) DisableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -207,8 +206,7 @@ func (cook DisableCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for Disable
-// disableRequest writes a Disable request to a byte slice.
+// disableRequest writes a Disable request to a byte slice for transfer.
func disableRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -247,7 +245,7 @@ func Enable(c *xgb.Conn) EnableCookie {
}
// EnableChecked sends a checked request.
-// If an error occurs, it can be retrieved using EnableCookie.Check()
+// If an error occurs, it can be retrieved using EnableCookie.Check.
func EnableChecked(c *xgb.Conn) EnableCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -265,8 +263,7 @@ func (cook EnableCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for Enable
-// enableRequest writes a Enable request to a byte slice.
+// enableRequest writes a Enable request to a byte slice for transfer.
func enableRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -305,7 +302,7 @@ func ForceLevel(c *xgb.Conn, PowerLevel uint16) ForceLevelCookie {
}
// ForceLevelChecked sends a checked request.
-// If an error occurs, it can be retrieved using ForceLevelCookie.Check()
+// If an error occurs, it can be retrieved using ForceLevelCookie.Check.
func ForceLevelChecked(c *xgb.Conn, PowerLevel uint16) ForceLevelCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -323,8 +320,7 @@ func (cook ForceLevelCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for ForceLevel
-// forceLevelRequest writes a ForceLevel request to a byte slice.
+// forceLevelRequest writes a ForceLevel request to a byte slice for transfer.
func forceLevelRequest(c *xgb.Conn, PowerLevel uint16) []byte {
size := 8
b := 0
@@ -353,7 +349,7 @@ type GetTimeoutsCookie struct {
}
// GetTimeouts sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetTimeoutsCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetTimeoutsCookie.Reply.
func GetTimeouts(c *xgb.Conn) GetTimeoutsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -428,8 +424,7 @@ func getTimeoutsReply(buf []byte) *GetTimeoutsReply {
return v
}
-// Write request to wire for GetTimeouts
-// getTimeoutsRequest writes a GetTimeouts request to a byte slice.
+// getTimeoutsRequest writes a GetTimeouts request to a byte slice for transfer.
func getTimeoutsRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -455,8 +450,8 @@ type GetVersionCookie struct {
}
// GetVersion sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()
-func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
+// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply.
+func GetVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@@ -469,7 +464,7 @@ func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint1
// GetVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
+func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) GetVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@@ -523,9 +518,8 @@ func getVersionReply(buf []byte) *GetVersionReply {
return v
}
-// Write request to wire for GetVersion
-// getVersionRequest writes a GetVersion request to a byte slice.
-func getVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) []byte {
+// getVersionRequest writes a GetVersion request to a byte slice for transfer.
+func getVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint16) []byte {
size := 8
b := 0
buf := make([]byte, size)
@@ -556,7 +550,7 @@ type InfoCookie struct {
}
// Info sends a checked request.
-// If an error occurs, it will be returned with the reply by calling InfoCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling InfoCookie.Reply.
func Info(c *xgb.Conn) InfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -631,8 +625,7 @@ func infoReply(buf []byte) *InfoReply {
return v
}
-// Write request to wire for Info
-// infoRequest writes a Info request to a byte slice.
+// infoRequest writes a Info request to a byte slice for transfer.
func infoRequest(c *xgb.Conn) []byte {
size := 4
b := 0
@@ -659,7 +652,7 @@ type SetTimeoutsCookie struct {
// SetTimeouts sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetTimeouts(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) SetTimeoutsCookie {
+func SetTimeouts(c *xgb.Conn, StandbyTimeout, SuspendTimeout, OffTimeout uint16) SetTimeoutsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@@ -671,8 +664,8 @@ func SetTimeouts(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffT
}
// SetTimeoutsChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetTimeoutsCookie.Check()
-func SetTimeoutsChecked(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) SetTimeoutsCookie {
+// If an error occurs, it can be retrieved using SetTimeoutsCookie.Check.
+func SetTimeoutsChecked(c *xgb.Conn, StandbyTimeout, SuspendTimeout, OffTimeout uint16) SetTimeoutsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["DPMS"]; !ok {
@@ -689,9 +682,8 @@ func (cook SetTimeoutsCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetTimeouts
-// setTimeoutsRequest writes a SetTimeouts request to a byte slice.
-func setTimeoutsRequest(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) []byte {
+// setTimeoutsRequest writes a SetTimeouts request to a byte slice for transfer.
+func setTimeoutsRequest(c *xgb.Conn, StandbyTimeout, SuspendTimeout, OffTimeout uint16) []byte {
size := 12
b := 0
buf := make([]byte, size)