Use consistent extension names. Close #6.

This commit is contained in:
Andrew Gallant 2013-12-28 10:13:20 -05:00 committed by Přemysl Janouch
parent 33509dbeb0
commit 76f9adb599
Signed by: p
GPG Key ID: A0420B94F92B9493
11 changed files with 389 additions and 391 deletions

View File

@ -75,7 +75,7 @@ type CreateRegionFromBorderClipCookie struct {
// CreateRegionFromBorderClip sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateRegionFromBorderClip(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) CreateRegionFromBorderClipCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'CreateRegionFromBorderClip' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -86,7 +86,7 @@ func CreateRegionFromBorderClip(c *xgb.Conn, Region xfixes.Region, Window xproto
// CreateRegionFromBorderClipChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateRegionFromBorderClipCookie.Check()
func CreateRegionFromBorderClipChecked(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) CreateRegionFromBorderClipCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'CreateRegionFromBorderClip' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -107,7 +107,7 @@ func createRegionFromBorderClipRequest(c *xgb.Conn, Region xfixes.Region, Window
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 5 // request opcode
@ -133,7 +133,7 @@ type GetOverlayWindowCookie struct {
// GetOverlayWindow sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetOverlayWindowCookie.Reply()
func GetOverlayWindow(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'GetOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -144,7 +144,7 @@ func GetOverlayWindow(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie
// GetOverlayWindowUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetOverlayWindowUnchecked(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'GetOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -201,7 +201,7 @@ func getOverlayWindowRequest(c *xgb.Conn, Window xproto.Window) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 7 // request opcode
@ -224,7 +224,7 @@ type NameWindowPixmapCookie struct {
// NameWindowPixmap sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func NameWindowPixmap(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) NameWindowPixmapCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'NameWindowPixmap' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -235,7 +235,7 @@ func NameWindowPixmap(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) N
// NameWindowPixmapChecked sends a checked request.
// If an error occurs, it can be retrieved using NameWindowPixmapCookie.Check()
func NameWindowPixmapChecked(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) NameWindowPixmapCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'NameWindowPixmap' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -256,7 +256,7 @@ func nameWindowPixmapRequest(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pi
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 6 // request opcode
@ -282,7 +282,7 @@ 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 _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -293,7 +293,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 {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -354,7 +354,7 @@ func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVers
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 0 // request opcode
@ -380,7 +380,7 @@ type RedirectSubwindowsCookie struct {
// RedirectSubwindows sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func RedirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) RedirectSubwindowsCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'RedirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -391,7 +391,7 @@ func RedirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Redirect
// RedirectSubwindowsChecked sends a checked request.
// If an error occurs, it can be retrieved using RedirectSubwindowsCookie.Check()
func RedirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectSubwindowsCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'RedirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -412,7 +412,7 @@ func redirectSubwindowsRequest(c *xgb.Conn, Window xproto.Window, Update byte) [
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 2 // request opcode
@ -440,7 +440,7 @@ type RedirectWindowCookie struct {
// RedirectWindow sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func RedirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'RedirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -451,7 +451,7 @@ func RedirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWind
// RedirectWindowChecked sends a checked request.
// If an error occurs, it can be retrieved using RedirectWindowCookie.Check()
func RedirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'RedirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -472,7 +472,7 @@ func redirectWindowRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byt
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 1 // request opcode
@ -500,7 +500,7 @@ type ReleaseOverlayWindowCookie struct {
// ReleaseOverlayWindow sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ReleaseOverlayWindow(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'ReleaseOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -511,7 +511,7 @@ func ReleaseOverlayWindow(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindo
// ReleaseOverlayWindowChecked sends a checked request.
// If an error occurs, it can be retrieved using ReleaseOverlayWindowCookie.Check()
func ReleaseOverlayWindowChecked(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'ReleaseOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -532,7 +532,7 @@ func releaseOverlayWindowRequest(c *xgb.Conn, Window xproto.Window) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 8 // request opcode
@ -555,7 +555,7 @@ type UnredirectSubwindowsCookie struct {
// UnredirectSubwindows sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UnredirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectSubwindowsCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'UnredirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -566,7 +566,7 @@ func UnredirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Unredi
// UnredirectSubwindowsChecked sends a checked request.
// If an error occurs, it can be retrieved using UnredirectSubwindowsCookie.Check()
func UnredirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectSubwindowsCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'UnredirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -587,7 +587,7 @@ func unredirectSubwindowsRequest(c *xgb.Conn, Window xproto.Window, Update byte)
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 4 // request opcode
@ -615,7 +615,7 @@ type UnredirectWindowCookie struct {
// UnredirectWindow sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UnredirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'UnredirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -626,7 +626,7 @@ func UnredirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) Unredirect
// UnredirectWindowChecked sends a checked request.
// If an error occurs, it can be retrieved using UnredirectWindowCookie.Check()
func UnredirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectWindowCookie {
if _, ok := c.Extensions["COMPOSITE"]; !ok {
if _, ok := c.Extensions["Composite"]; !ok {
panic("Cannot issue request 'UnredirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -647,7 +647,7 @@ func unredirectWindowRequest(c *xgb.Conn, Window xproto.Window, Update byte) []b
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["COMPOSITE"]
buf[b] = c.Extensions["Composite"]
b += 1
buf[b] = 3 // request opcode

View File

@ -69,7 +69,7 @@ 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 _, ok := c.Extensions["GENERIC EVENT EXTENSION"]; !ok {
if _, ok := c.Extensions["Generic Event Extension"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Generic Event Extension'. ge.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -80,7 +80,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 {
if _, ok := c.Extensions["GENERIC EVENT EXTENSION"]; !ok {
if _, ok := c.Extensions["Generic Event Extension"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Generic Event Extension'. ge.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -141,7 +141,7 @@ func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVers
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["GENERIC EVENT EXTENSION"]
buf[b] = c.Extensions["Generic Event Extension"]
b += 1
buf[b] = 0 // request opcode

View File

@ -504,15 +504,6 @@ func ModeInfoListBytes(buf []byte, list []ModeInfo) int {
return xgb.Pad(b)
}
const (
NotifyCrtcChange = 0
NotifyOutputChange = 1
NotifyOutputProperty = 2
NotifyProviderChange = 3
NotifyProviderProperty = 4
NotifyResourceChange = 5
)
// Notify is the event number for a NotifyEvent.
const Notify = 1
@ -581,6 +572,15 @@ func init() {
xgb.NewExtEventFuncs["RANDR"][1] = NotifyEventNew
}
const (
NotifyCrtcChange = 0
NotifyOutputChange = 1
NotifyOutputProperty = 2
NotifyProviderChange = 3
NotifyProviderProperty = 4
NotifyResourceChange = 5
)
// NotifyDataUnion is a represention of the NotifyDataUnion union type.
// Note that to *create* a Union, you should *never* create
// this struct directly (unless you know what you're doing).

View File

@ -513,7 +513,7 @@ type QueryClientIdsCookie struct {
// QueryClientIds sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientIdsCookie.Reply()
func QueryClientIds(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) QueryClientIdsCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClientIds' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -524,7 +524,7 @@ func QueryClientIds(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) QueryCli
// QueryClientIdsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryClientIdsUnchecked(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) QueryClientIdsCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClientIds' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -585,7 +585,7 @@ func queryClientIdsRequest(c *xgb.Conn, NumSpecs uint32, Specs []ClientIdSpec) [
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["X-RESOURCE"]
buf[b] = c.Extensions["X-Resource"]
b += 1
buf[b] = 4 // request opcode
@ -610,7 +610,7 @@ type QueryClientPixmapBytesCookie struct {
// QueryClientPixmapBytes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientPixmapBytesCookie.Reply()
func QueryClientPixmapBytes(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClientPixmapBytes' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -621,7 +621,7 @@ func QueryClientPixmapBytes(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCooki
// QueryClientPixmapBytesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryClientPixmapBytesUnchecked(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClientPixmapBytes' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -679,7 +679,7 @@ func queryClientPixmapBytesRequest(c *xgb.Conn, Xid uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["X-RESOURCE"]
buf[b] = c.Extensions["X-Resource"]
b += 1
buf[b] = 3 // request opcode
@ -702,7 +702,7 @@ type QueryClientResourcesCookie struct {
// QueryClientResources sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientResourcesCookie.Reply()
func QueryClientResources(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClientResources' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -713,7 +713,7 @@ func QueryClientResources(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
// QueryClientResourcesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryClientResourcesUnchecked(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClientResources' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -774,7 +774,7 @@ func queryClientResourcesRequest(c *xgb.Conn, Xid uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["X-RESOURCE"]
buf[b] = c.Extensions["X-Resource"]
b += 1
buf[b] = 2 // request opcode
@ -797,7 +797,7 @@ type QueryClientsCookie struct {
// QueryClients sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryClientsCookie.Reply()
func QueryClients(c *xgb.Conn) QueryClientsCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClients' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -808,7 +808,7 @@ func QueryClients(c *xgb.Conn) QueryClientsCookie {
// QueryClientsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryClientsUnchecked(c *xgb.Conn) QueryClientsCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryClients' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -869,7 +869,7 @@ func queryClientsRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["X-RESOURCE"]
buf[b] = c.Extensions["X-Resource"]
b += 1
buf[b] = 1 // request opcode
@ -889,7 +889,7 @@ type QueryResourceBytesCookie struct {
// QueryResourceBytes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryResourceBytesCookie.Reply()
func QueryResourceBytes(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryResourceBytes' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -900,7 +900,7 @@ func QueryResourceBytes(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []Res
// QueryResourceBytesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryResourceBytesUnchecked(c *xgb.Conn, Client uint32, NumSpecs uint32, Specs []ResourceIdSpec) QueryResourceBytesCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryResourceBytes' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -961,7 +961,7 @@ func queryResourceBytesRequest(c *xgb.Conn, Client uint32, NumSpecs uint32, Spec
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["X-RESOURCE"]
buf[b] = c.Extensions["X-Resource"]
b += 1
buf[b] = 5 // request opcode
@ -989,7 +989,7 @@ 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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1000,7 +1000,7 @@ func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionC
// 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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
if _, ok := c.Extensions["X-Resource"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1058,7 +1058,7 @@ func queryVersionRequest(c *xgb.Conn, ClientMajor byte, ClientMinor byte) []byte
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["X-RESOURCE"]
buf[b] = c.Extensions["X-Resource"]
b += 1
buf[b] = 0 // request opcode

View File

@ -137,7 +137,7 @@ type AuthConnectionCookie struct {
// AuthConnection sends a checked request.
// If an error occurs, it will be returned with the reply by calling AuthConnectionCookie.Reply()
func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'AuthConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -148,7 +148,7 @@ func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCook
// AuthConnectionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AuthConnectionUnchecked(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'AuthConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -202,7 +202,7 @@ func authConnectionRequest(c *xgb.Conn, Screen uint32, Magic uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 11 // request opcode
@ -228,7 +228,7 @@ type CloseConnectionCookie struct {
// CloseConnection sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CloseConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -239,7 +239,7 @@ func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
// CloseConnectionChecked sends a checked request.
// If an error occurs, it can be retrieved using CloseConnectionCookie.Check()
func CloseConnectionChecked(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CloseConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -260,7 +260,7 @@ func closeConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 3 // request opcode
@ -283,7 +283,7 @@ type CreateContextCookie struct {
// CreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()
func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -294,7 +294,7 @@ func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) Cr
// CreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContextUnchecked(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -348,7 +348,7 @@ func createContextRequest(c *xgb.Conn, Screen uint32, Visual uint32, Context uin
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 5 // request opcode
@ -377,7 +377,7 @@ type CreateDrawableCookie struct {
// CreateDrawable sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateDrawableCookie.Reply()
func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -388,7 +388,7 @@ func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableC
// CreateDrawableUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateDrawableUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -442,7 +442,7 @@ func createDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 7 // request opcode
@ -468,7 +468,7 @@ type DestroyContextCookie struct {
// DestroyContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -479,7 +479,7 @@ func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCo
// DestroyContextChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyContextCookie.Check()
func DestroyContextChecked(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -500,7 +500,7 @@ func destroyContextRequest(c *xgb.Conn, Screen uint32, Context uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 6 // request opcode
@ -526,7 +526,7 @@ type DestroyDrawableCookie struct {
// DestroyDrawable sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -537,7 +537,7 @@ func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawabl
// DestroyDrawableChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check()
func DestroyDrawableChecked(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -558,7 +558,7 @@ func destroyDrawableRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 8 // request opcode
@ -584,7 +584,7 @@ type GetClientDriverNameCookie struct {
// GetClientDriverName sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply()
func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetClientDriverName' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -595,7 +595,7 @@ func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
// GetClientDriverNameUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetClientDriverNameUnchecked(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetClientDriverName' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -672,7 +672,7 @@ func getClientDriverNameRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 4 // request opcode
@ -695,7 +695,7 @@ type GetDeviceInfoCookie struct {
// GetDeviceInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply()
func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDeviceInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -706,7 +706,7 @@ func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
// GetDeviceInfoUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDeviceInfoUnchecked(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDeviceInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -788,7 +788,7 @@ func getDeviceInfoRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 10 // request opcode
@ -811,7 +811,7 @@ type GetDrawableInfoCookie struct {
// GetDrawableInfo sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDrawableInfoCookie.Reply()
func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDrawableInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -822,7 +822,7 @@ func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInf
// GetDrawableInfoUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDrawableInfoUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'GetDrawableInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -920,7 +920,7 @@ func getDrawableInfoRequest(c *xgb.Conn, Screen uint32, Drawable uint32) []byte
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 9 // request opcode
@ -946,7 +946,7 @@ type OpenConnectionCookie struct {
// OpenConnection sends a checked request.
// If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply()
func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'OpenConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -957,7 +957,7 @@ func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
// OpenConnectionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func OpenConnectionUnchecked(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'OpenConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1030,7 +1030,7 @@ func openConnectionRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 2 // request opcode
@ -1053,7 +1053,7 @@ type QueryDirectRenderingCapableCookie struct {
// QueryDirectRenderingCapable sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply()
func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryDirectRenderingCapable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1064,7 +1064,7 @@ func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderin
// QueryDirectRenderingCapableUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryDirectRenderingCapableUnchecked(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryDirectRenderingCapable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1122,7 +1122,7 @@ func queryDirectRenderingCapableRequest(c *xgb.Conn, Screen uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 1 // request opcode
@ -1145,7 +1145,7 @@ 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) QueryVersionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1156,7 +1156,7 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
// 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) QueryVersionCookie {
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
if _, ok := c.Extensions["XFree86-DRI"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1218,7 +1218,7 @@ func queryVersionRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-DRI"]
buf[b] = c.Extensions["XFree86-DRI"]
b += 1
buf[b] = 0 // request opcode

View File

@ -554,7 +554,7 @@ type AddModeLineCookie struct {
// AddModeLine sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'AddModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -565,7 +565,7 @@ func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16,
// AddModeLineChecked sends a checked request.
// If an error occurs, it can be retrieved using AddModeLineCookie.Check()
func AddModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'AddModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -586,7 +586,7 @@ func addModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 7 // request opcode
@ -689,7 +689,7 @@ type DeleteModeLineCookie struct {
// DeleteModeLine sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'DeleteModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -700,7 +700,7 @@ func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint
// DeleteModeLineChecked sends a checked request.
// If an error occurs, it can be retrieved using DeleteModeLineCookie.Check()
func DeleteModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'DeleteModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -721,7 +721,7 @@ func deleteModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdispl
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 8 // request opcode
@ -787,7 +787,7 @@ type GetAllModeLinesCookie struct {
// GetAllModeLines sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetAllModeLinesCookie.Reply()
func GetAllModeLines(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetAllModeLines' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -798,7 +798,7 @@ func GetAllModeLines(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie {
// GetAllModeLinesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetAllModeLinesUnchecked(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetAllModeLines' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -859,7 +859,7 @@ func getAllModeLinesRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 6 // request opcode
@ -884,7 +884,7 @@ type GetDotClocksCookie struct {
// GetDotClocks sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDotClocksCookie.Reply()
func GetDotClocks(c *xgb.Conn, Screen uint16) GetDotClocksCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetDotClocks' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -895,7 +895,7 @@ func GetDotClocks(c *xgb.Conn, Screen uint16) GetDotClocksCookie {
// GetDotClocksUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDotClocksUnchecked(c *xgb.Conn, Screen uint16) GetDotClocksCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetDotClocks' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -968,7 +968,7 @@ func getDotClocksRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 13 // request opcode
@ -993,7 +993,7 @@ type GetGammaCookie struct {
// GetGamma sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetGammaCookie.Reply()
func GetGamma(c *xgb.Conn, Screen uint16) GetGammaCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1004,7 +1004,7 @@ func GetGamma(c *xgb.Conn, Screen uint16) GetGammaCookie {
// GetGammaUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetGammaUnchecked(c *xgb.Conn, Screen uint16) GetGammaCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1069,7 +1069,7 @@ func getGammaRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 16 // request opcode
@ -1094,7 +1094,7 @@ type GetGammaRampCookie struct {
// GetGammaRamp sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetGammaRampCookie.Reply()
func GetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1105,7 +1105,7 @@ func GetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
// GetGammaRampUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetGammaRampUnchecked(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1186,7 +1186,7 @@ func getGammaRampRequest(c *xgb.Conn, Screen uint16, Size uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 17 // request opcode
@ -1212,7 +1212,7 @@ type GetGammaRampSizeCookie struct {
// GetGammaRampSize sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetGammaRampSizeCookie.Reply()
func GetGammaRampSize(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetGammaRampSize' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1223,7 +1223,7 @@ func GetGammaRampSize(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie {
// GetGammaRampSizeUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetGammaRampSizeUnchecked(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetGammaRampSize' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1280,7 +1280,7 @@ func getGammaRampSizeRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 19 // request opcode
@ -1305,7 +1305,7 @@ type GetModeLineCookie struct {
// GetModeLine sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetModeLineCookie.Reply()
func GetModeLine(c *xgb.Conn, Screen uint16) GetModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1316,7 +1316,7 @@ func GetModeLine(c *xgb.Conn, Screen uint16) GetModeLineCookie {
// GetModeLineUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetModeLineUnchecked(c *xgb.Conn, Screen uint16) GetModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1425,7 +1425,7 @@ func getModeLineRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 1 // request opcode
@ -1450,7 +1450,7 @@ type GetMonitorCookie struct {
// GetMonitor sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetMonitorCookie.Reply()
func GetMonitor(c *xgb.Conn, Screen uint16) GetMonitorCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetMonitor' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1461,7 +1461,7 @@ func GetMonitor(c *xgb.Conn, Screen uint16) GetMonitorCookie {
// GetMonitorUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetMonitorUnchecked(c *xgb.Conn, Screen uint16) GetMonitorCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetMonitor' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1567,7 +1567,7 @@ func getMonitorRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 4 // request opcode
@ -1592,7 +1592,7 @@ type GetPermissionsCookie struct {
// GetPermissions sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPermissionsCookie.Reply()
func GetPermissions(c *xgb.Conn, Screen uint16) GetPermissionsCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetPermissions' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1603,7 +1603,7 @@ func GetPermissions(c *xgb.Conn, Screen uint16) GetPermissionsCookie {
// GetPermissionsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetPermissionsUnchecked(c *xgb.Conn, Screen uint16) GetPermissionsCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetPermissions' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1660,7 +1660,7 @@ func getPermissionsRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 20 // request opcode
@ -1685,7 +1685,7 @@ type GetViewPortCookie struct {
// GetViewPort sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetViewPortCookie.Reply()
func GetViewPort(c *xgb.Conn, Screen uint16) GetViewPortCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1696,7 +1696,7 @@ func GetViewPort(c *xgb.Conn, Screen uint16) GetViewPortCookie {
// GetViewPortUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetViewPortUnchecked(c *xgb.Conn, Screen uint16) GetViewPortCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'GetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1757,7 +1757,7 @@ func getViewPortRequest(c *xgb.Conn, Screen uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 11 // request opcode
@ -1782,7 +1782,7 @@ type LockModeSwitchCookie struct {
// LockModeSwitch sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func LockModeSwitch(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'LockModeSwitch' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1793,7 +1793,7 @@ func LockModeSwitch(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCooki
// LockModeSwitchChecked sends a checked request.
// If an error occurs, it can be retrieved using LockModeSwitchCookie.Check()
func LockModeSwitchChecked(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'LockModeSwitch' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1814,7 +1814,7 @@ func lockModeSwitchRequest(c *xgb.Conn, Screen uint16, Lock uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 5 // request opcode
@ -1840,7 +1840,7 @@ type ModModeLineCookie struct {
// ModModeLine sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'ModModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1851,7 +1851,7 @@ func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16,
// ModModeLineChecked sends a checked request.
// If an error occurs, it can be retrieved using ModModeLineCookie.Check()
func ModModeLineChecked(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'ModModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1872,7 +1872,7 @@ func modModeLineRequest(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 2 // request opcode
@ -1935,7 +1935,7 @@ 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) QueryVersionCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1946,7 +1946,7 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
// 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) QueryVersionCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2004,7 +2004,7 @@ func queryVersionRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 0 // request opcode
@ -2024,7 +2024,7 @@ type SetClientVersionCookie struct {
// SetClientVersion sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetClientVersion(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetClientVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2035,7 +2035,7 @@ func SetClientVersion(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionC
// SetClientVersionChecked sends a checked request.
// If an error occurs, it can be retrieved using SetClientVersionCookie.Check()
func SetClientVersionChecked(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetClientVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2056,7 +2056,7 @@ func setClientVersionRequest(c *xgb.Conn, Major uint16, Minor uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 14 // request opcode
@ -2082,7 +2082,7 @@ type SetGammaCookie struct {
// SetGamma sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetGamma(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2093,7 +2093,7 @@ func SetGamma(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32)
// SetGammaChecked sends a checked request.
// If an error occurs, it can be retrieved using SetGammaCookie.Check()
func SetGammaChecked(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2114,7 +2114,7 @@ func setGammaRequest(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 15 // request opcode
@ -2150,7 +2150,7 @@ type SetGammaRampCookie struct {
// SetGammaRamp sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2161,7 +2161,7 @@ func SetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green [
// SetGammaRampChecked sends a checked request.
// If an error occurs, it can be retrieved using SetGammaRampCookie.Check()
func SetGammaRampChecked(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2182,7 +2182,7 @@ func setGammaRampRequest(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16,
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 18 // request opcode
@ -2226,7 +2226,7 @@ type SetViewPortCookie struct {
// SetViewPort sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetViewPort(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2237,7 +2237,7 @@ func SetViewPort(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCook
// SetViewPortChecked sends a checked request.
// If an error occurs, it can be retrieved using SetViewPortCookie.Check()
func SetViewPortChecked(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2258,7 +2258,7 @@ func setViewPortRequest(c *xgb.Conn, Screen uint16, X uint32, Y uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 12 // request opcode
@ -2289,7 +2289,7 @@ type SwitchModeCookie struct {
// SwitchMode sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SwitchMode(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SwitchMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2300,7 +2300,7 @@ func SwitchMode(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
// SwitchModeChecked sends a checked request.
// If an error occurs, it can be retrieved using SwitchModeCookie.Check()
func SwitchModeChecked(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SwitchMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2321,7 +2321,7 @@ func switchModeRequest(c *xgb.Conn, Screen uint16, Zoom uint16) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 3 // request opcode
@ -2347,7 +2347,7 @@ type SwitchToModeCookie struct {
// SwitchToMode sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SwitchToMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2358,7 +2358,7 @@ func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16
// SwitchToModeChecked sends a checked request.
// If an error occurs, it can be retrieved using SwitchToModeCookie.Check()
func SwitchToModeChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'SwitchToMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2379,7 +2379,7 @@ func switchToModeRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 10 // request opcode
@ -2445,7 +2445,7 @@ type ValidateModeLineCookie struct {
// ValidateModeLine sends a checked request.
// If an error occurs, it will be returned with the reply by calling ValidateModeLineCookie.Reply()
func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'ValidateModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -2456,7 +2456,7 @@ func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay ui
// ValidateModeLineUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ValidateModeLineUnchecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie {
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
if _, ok := c.Extensions["XFree86-VidModeExtension"]; !ok {
panic("Cannot issue request 'ValidateModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2513,7 +2513,7 @@ func validateModeLineRequest(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdis
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XFREE86-VIDMODEEXTENSION"]
buf[b] = c.Extensions["XFree86-VidModeExtension"]
b += 1
buf[b] = 9 // request opcode

View File

@ -79,8 +79,7 @@ func (r *Request) CheckExt(c *Context) {
if !c.protocol.isExt() {
return
}
c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {",
strings.ToUpper(c.protocol.ExtXName))
c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {", c.protocol.ExtXName)
c.Putln("panic(\"Cannot issue request '%s' using the uninitialized "+
"extension '%s'. %s.Init(connObj) must be called first.\")",
r.SrcName(), c.protocol.ExtXName, c.protocol.PkgName())
@ -155,8 +154,7 @@ func (r *Request) WriteRequest(c *Context) {
c.Putln("buf := make([]byte, size)")
c.Putln("")
if c.protocol.isExt() {
c.Putln("buf[b] = c.Extensions[\"%s\"]",
strings.ToUpper(c.protocol.ExtXName))
c.Putln("buf[b] = c.Extensions[\"%s\"]", c.protocol.ExtXName)
c.Putln("b += 1")
c.Putln("")
}

View File

@ -442,7 +442,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, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) CreateContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -453,7 +453,7 @@ func CreateContext(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleL
// CreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using CreateContextCookie.Check()
func CreateContextChecked(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) CreateContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -474,7 +474,7 @@ func createContextRequest(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32,
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 2 // request opcode
@ -515,7 +515,7 @@ type PrintDestroyContextCookie struct {
// PrintDestroyContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintDestroyContext(c *xgb.Conn, Context uint32) PrintDestroyContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintDestroyContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -526,7 +526,7 @@ func PrintDestroyContext(c *xgb.Conn, Context uint32) PrintDestroyContextCookie
// PrintDestroyContextChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintDestroyContextCookie.Check()
func PrintDestroyContextChecked(c *xgb.Conn, Context uint32) PrintDestroyContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintDestroyContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -547,7 +547,7 @@ func printDestroyContextRequest(c *xgb.Conn, Context uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 5 // request opcode
@ -570,7 +570,7 @@ type PrintEndDocCookie struct {
// PrintEndDoc sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintEndDoc(c *xgb.Conn, Cancel bool) PrintEndDocCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintEndDoc' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -581,7 +581,7 @@ func PrintEndDoc(c *xgb.Conn, Cancel bool) PrintEndDocCookie {
// PrintEndDocChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintEndDocCookie.Check()
func PrintEndDocChecked(c *xgb.Conn, Cancel bool) PrintEndDocCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintEndDoc' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -602,7 +602,7 @@ func printEndDocRequest(c *xgb.Conn, Cancel bool) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 10 // request opcode
@ -629,7 +629,7 @@ type PrintEndJobCookie struct {
// PrintEndJob sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintEndJob(c *xgb.Conn, Cancel bool) PrintEndJobCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintEndJob' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -640,7 +640,7 @@ func PrintEndJob(c *xgb.Conn, Cancel bool) PrintEndJobCookie {
// PrintEndJobChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintEndJobCookie.Check()
func PrintEndJobChecked(c *xgb.Conn, Cancel bool) PrintEndJobCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintEndJob' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -661,7 +661,7 @@ func printEndJobRequest(c *xgb.Conn, Cancel bool) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 8 // request opcode
@ -688,7 +688,7 @@ type PrintEndPageCookie struct {
// PrintEndPage sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintEndPage(c *xgb.Conn, Cancel bool) PrintEndPageCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintEndPage' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -699,7 +699,7 @@ func PrintEndPage(c *xgb.Conn, Cancel bool) PrintEndPageCookie {
// PrintEndPageChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintEndPageCookie.Check()
func PrintEndPageChecked(c *xgb.Conn, Cancel bool) PrintEndPageCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintEndPage' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -720,7 +720,7 @@ func printEndPageRequest(c *xgb.Conn, Cancel bool) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 14 // request opcode
@ -749,7 +749,7 @@ type PrintGetAttributesCookie struct {
// PrintGetAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetAttributesCookie.Reply()
func PrintGetAttributes(c *xgb.Conn, Context Pcontext, Pool byte) PrintGetAttributesCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetAttributes' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -760,7 +760,7 @@ func PrintGetAttributes(c *xgb.Conn, Context Pcontext, Pool byte) PrintGetAttrib
// PrintGetAttributesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetAttributesUnchecked(c *xgb.Conn, Context Pcontext, Pool byte) PrintGetAttributesCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetAttributes' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -821,7 +821,7 @@ func printGetAttributesRequest(c *xgb.Conn, Context Pcontext, Pool byte) []byte
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 17 // request opcode
@ -849,7 +849,7 @@ type PrintGetContextCookie struct {
// PrintGetContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetContextCookie.Reply()
func PrintGetContext(c *xgb.Conn) PrintGetContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -860,7 +860,7 @@ func PrintGetContext(c *xgb.Conn) PrintGetContextCookie {
// PrintGetContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetContextUnchecked(c *xgb.Conn) PrintGetContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -914,7 +914,7 @@ func printGetContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 4 // request opcode
@ -934,7 +934,7 @@ type PrintGetDocumentDataCookie struct {
// PrintGetDocumentData sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetDocumentDataCookie.Reply()
func PrintGetDocumentData(c *xgb.Conn, Context Pcontext, MaxBytes uint32) PrintGetDocumentDataCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetDocumentData' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -945,7 +945,7 @@ func PrintGetDocumentData(c *xgb.Conn, Context Pcontext, MaxBytes uint32) PrintG
// PrintGetDocumentDataUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetDocumentDataUnchecked(c *xgb.Conn, Context Pcontext, MaxBytes uint32) PrintGetDocumentDataCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetDocumentData' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1015,7 +1015,7 @@ func printGetDocumentDataRequest(c *xgb.Conn, Context Pcontext, MaxBytes uint32)
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 12 // request opcode
@ -1041,7 +1041,7 @@ type PrintGetImageResolutionCookie struct {
// PrintGetImageResolution sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetImageResolutionCookie.Reply()
func PrintGetImageResolution(c *xgb.Conn, Context Pcontext) PrintGetImageResolutionCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetImageResolution' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1052,7 +1052,7 @@ func PrintGetImageResolution(c *xgb.Conn, Context Pcontext) PrintGetImageResolut
// PrintGetImageResolutionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetImageResolutionUnchecked(c *xgb.Conn, Context Pcontext) PrintGetImageResolutionCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetImageResolution' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1106,7 +1106,7 @@ func printGetImageResolutionRequest(c *xgb.Conn, Context Pcontext) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 24 // request opcode
@ -1129,7 +1129,7 @@ type PrintGetOneAttributesCookie struct {
// PrintGetOneAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetOneAttributesCookie.Reply()
func PrintGetOneAttributes(c *xgb.Conn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) PrintGetOneAttributesCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetOneAttributes' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1140,7 +1140,7 @@ func PrintGetOneAttributes(c *xgb.Conn, Context Pcontext, NameLen uint32, Pool b
// PrintGetOneAttributesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetOneAttributesUnchecked(c *xgb.Conn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) PrintGetOneAttributesCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetOneAttributes' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1205,7 +1205,7 @@ func printGetOneAttributesRequest(c *xgb.Conn, Context Pcontext, NameLen uint32,
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 19 // request opcode
@ -1242,7 +1242,7 @@ type PrintGetPageDimensionsCookie struct {
// PrintGetPageDimensions sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetPageDimensionsCookie.Reply()
func PrintGetPageDimensions(c *xgb.Conn, Context Pcontext) PrintGetPageDimensionsCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetPageDimensions' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1253,7 +1253,7 @@ func PrintGetPageDimensions(c *xgb.Conn, Context Pcontext) PrintGetPageDimension
// PrintGetPageDimensionsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetPageDimensionsUnchecked(c *xgb.Conn, Context Pcontext) PrintGetPageDimensionsCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetPageDimensions' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1327,7 +1327,7 @@ func printGetPageDimensionsRequest(c *xgb.Conn, Context Pcontext) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 21 // request opcode
@ -1350,7 +1350,7 @@ type PrintGetPrinterListCookie struct {
// PrintGetPrinterList sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetPrinterListCookie.Reply()
func PrintGetPrinterList(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) PrintGetPrinterListCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetPrinterList' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1361,7 +1361,7 @@ func PrintGetPrinterList(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, P
// PrintGetPrinterListUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetPrinterListUnchecked(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) PrintGetPrinterListCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetPrinterList' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1422,7 +1422,7 @@ func printGetPrinterListRequest(c *xgb.Conn, PrinterNameLen uint32, LocaleLen ui
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 1 // request opcode
@ -1460,7 +1460,7 @@ type PrintGetScreenOfContextCookie struct {
// PrintGetScreenOfContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintGetScreenOfContextCookie.Reply()
func PrintGetScreenOfContext(c *xgb.Conn) PrintGetScreenOfContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetScreenOfContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1471,7 +1471,7 @@ func PrintGetScreenOfContext(c *xgb.Conn) PrintGetScreenOfContextCookie {
// PrintGetScreenOfContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintGetScreenOfContextUnchecked(c *xgb.Conn) PrintGetScreenOfContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintGetScreenOfContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1525,7 +1525,7 @@ func printGetScreenOfContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 6 // request opcode
@ -1545,7 +1545,7 @@ type PrintInputSelectedCookie struct {
// PrintInputSelected sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintInputSelectedCookie.Reply()
func PrintInputSelected(c *xgb.Conn, Context Pcontext) PrintInputSelectedCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintInputSelected' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1556,7 +1556,7 @@ func PrintInputSelected(c *xgb.Conn, Context Pcontext) PrintInputSelectedCookie
// PrintInputSelectedUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintInputSelectedUnchecked(c *xgb.Conn, Context Pcontext) PrintInputSelectedCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintInputSelected' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1630,7 +1630,7 @@ func printInputSelectedRequest(c *xgb.Conn, Context Pcontext) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 16 // request opcode
@ -1653,7 +1653,7 @@ type PrintPutDocumentDataCookie struct {
// PrintPutDocumentData sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintPutDocumentData(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) PrintPutDocumentDataCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintPutDocumentData' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1664,7 +1664,7 @@ func PrintPutDocumentData(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32,
// PrintPutDocumentDataChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintPutDocumentDataCookie.Check()
func PrintPutDocumentDataChecked(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) PrintPutDocumentDataCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintPutDocumentData' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1685,7 +1685,7 @@ func printPutDocumentDataRequest(c *xgb.Conn, Drawable xproto.Drawable, LenData
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 11 // request opcode
@ -1732,7 +1732,7 @@ type PrintQueryScreensCookie struct {
// PrintQueryScreens sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintQueryScreensCookie.Reply()
func PrintQueryScreens(c *xgb.Conn) PrintQueryScreensCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintQueryScreens' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1743,7 +1743,7 @@ func PrintQueryScreens(c *xgb.Conn) PrintQueryScreensCookie {
// PrintQueryScreensUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintQueryScreensUnchecked(c *xgb.Conn) PrintQueryScreensCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintQueryScreens' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1808,7 +1808,7 @@ func printQueryScreensRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 22 // request opcode
@ -1828,7 +1828,7 @@ type PrintQueryVersionCookie struct {
// PrintQueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintQueryVersionCookie.Reply()
func PrintQueryVersion(c *xgb.Conn) PrintQueryVersionCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintQueryVersion' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1839,7 +1839,7 @@ func PrintQueryVersion(c *xgb.Conn) PrintQueryVersionCookie {
// PrintQueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintQueryVersionUnchecked(c *xgb.Conn) PrintQueryVersionCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintQueryVersion' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1897,7 +1897,7 @@ func printQueryVersionRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 0 // request opcode
@ -1917,7 +1917,7 @@ type PrintRehashPrinterListCookie struct {
// PrintRehashPrinterList sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintRehashPrinterList(c *xgb.Conn) PrintRehashPrinterListCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintRehashPrinterList' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1928,7 +1928,7 @@ func PrintRehashPrinterList(c *xgb.Conn) PrintRehashPrinterListCookie {
// PrintRehashPrinterListChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintRehashPrinterListCookie.Check()
func PrintRehashPrinterListChecked(c *xgb.Conn) PrintRehashPrinterListCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintRehashPrinterList' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1949,7 +1949,7 @@ func printRehashPrinterListRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 20 // request opcode
@ -1969,7 +1969,7 @@ type PrintSelectInputCookie struct {
// PrintSelectInput sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSelectInput(c *xgb.Conn, Context Pcontext, EventMask uint32, EventList []uint32) PrintSelectInputCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSelectInput' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1980,7 +1980,7 @@ func PrintSelectInput(c *xgb.Conn, Context Pcontext, EventMask uint32, EventList
// PrintSelectInputChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintSelectInputCookie.Check()
func PrintSelectInputChecked(c *xgb.Conn, Context Pcontext, EventMask uint32, EventList []uint32) PrintSelectInputCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSelectInput' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2001,7 +2001,7 @@ func printSelectInputRequest(c *xgb.Conn, Context Pcontext, EventMask uint32, Ev
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 15 // request opcode
@ -2032,7 +2032,7 @@ type PrintSetAttributesCookie struct {
// PrintSetAttributes sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSetAttributes(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) PrintSetAttributesCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSetAttributes' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2043,7 +2043,7 @@ func PrintSetAttributes(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool by
// PrintSetAttributesChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintSetAttributesCookie.Check()
func PrintSetAttributesChecked(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) PrintSetAttributesCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSetAttributes' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2064,7 +2064,7 @@ func printSetAttributesRequest(c *xgb.Conn, Context Pcontext, StringLen uint32,
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 18 // request opcode
@ -2104,7 +2104,7 @@ type PrintSetContextCookie struct {
// PrintSetContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSetContext(c *xgb.Conn, Context uint32) PrintSetContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSetContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2115,7 +2115,7 @@ func PrintSetContext(c *xgb.Conn, Context uint32) PrintSetContextCookie {
// PrintSetContextChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintSetContextCookie.Check()
func PrintSetContextChecked(c *xgb.Conn, Context uint32) PrintSetContextCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSetContext' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2136,7 +2136,7 @@ func printSetContextRequest(c *xgb.Conn, Context uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 3 // request opcode
@ -2159,7 +2159,7 @@ type PrintSetImageResolutionCookie struct {
// PrintSetImageResolution sends a checked request.
// If an error occurs, it will be returned with the reply by calling PrintSetImageResolutionCookie.Reply()
func PrintSetImageResolution(c *xgb.Conn, Context Pcontext, ImageResolution uint16) PrintSetImageResolutionCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSetImageResolution' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -2170,7 +2170,7 @@ func PrintSetImageResolution(c *xgb.Conn, Context Pcontext, ImageResolution uint
// PrintSetImageResolutionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSetImageResolutionUnchecked(c *xgb.Conn, Context Pcontext, ImageResolution uint16) PrintSetImageResolutionCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintSetImageResolution' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2229,7 +2229,7 @@ func printSetImageResolutionRequest(c *xgb.Conn, Context Pcontext, ImageResoluti
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 23 // request opcode
@ -2255,7 +2255,7 @@ type PrintStartDocCookie struct {
// PrintStartDoc sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintStartDoc(c *xgb.Conn, DriverMode byte) PrintStartDocCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintStartDoc' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2266,7 +2266,7 @@ func PrintStartDoc(c *xgb.Conn, DriverMode byte) PrintStartDocCookie {
// PrintStartDocChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintStartDocCookie.Check()
func PrintStartDocChecked(c *xgb.Conn, DriverMode byte) PrintStartDocCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintStartDoc' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2287,7 +2287,7 @@ func printStartDocRequest(c *xgb.Conn, DriverMode byte) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 9 // request opcode
@ -2310,7 +2310,7 @@ type PrintStartJobCookie struct {
// PrintStartJob sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintStartJob(c *xgb.Conn, OutputMode byte) PrintStartJobCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintStartJob' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2321,7 +2321,7 @@ func PrintStartJob(c *xgb.Conn, OutputMode byte) PrintStartJobCookie {
// PrintStartJobChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintStartJobCookie.Check()
func PrintStartJobChecked(c *xgb.Conn, OutputMode byte) PrintStartJobCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintStartJob' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2342,7 +2342,7 @@ func printStartJobRequest(c *xgb.Conn, OutputMode byte) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 7 // request opcode
@ -2365,7 +2365,7 @@ type PrintStartPageCookie struct {
// PrintStartPage sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintStartPage(c *xgb.Conn, Window xproto.Window) PrintStartPageCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintStartPage' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2376,7 +2376,7 @@ func PrintStartPage(c *xgb.Conn, Window xproto.Window) PrintStartPageCookie {
// PrintStartPageChecked sends a checked request.
// If an error occurs, it can be retrieved using PrintStartPageCookie.Check()
func PrintStartPageChecked(c *xgb.Conn, Window xproto.Window) PrintStartPageCookie {
if _, ok := c.Extensions["XPEXTENSION"]; !ok {
if _, ok := c.Extensions["XpExtension"]; !ok {
panic("Cannot issue request 'PrintStartPage' using the uninitialized extension 'XpExtension'. xprint.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2397,7 +2397,7 @@ func printStartPageRequest(c *xgb.Conn, Window xproto.Window) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XPEXTENSION"]
buf[b] = c.Extensions["XpExtension"]
b += 1
buf[b] = 13 // request opcode

View File

@ -161,7 +161,7 @@ type GetClientContextCookie struct {
// GetClientContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetClientContextCookie.Reply()
func GetClientContext(c *xgb.Conn, Resource uint32) GetClientContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetClientContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -172,7 +172,7 @@ func GetClientContext(c *xgb.Conn, Resource uint32) GetClientContextCookie {
// GetClientContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetClientContextUnchecked(c *xgb.Conn, Resource uint32) GetClientContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetClientContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -237,7 +237,7 @@ func getClientContextRequest(c *xgb.Conn, Resource uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 22 // request opcode
@ -260,7 +260,7 @@ type GetDeviceContextCookie struct {
// GetDeviceContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceContextCookie.Reply()
func GetDeviceContext(c *xgb.Conn, Device uint32) GetDeviceContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetDeviceContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -271,7 +271,7 @@ func GetDeviceContext(c *xgb.Conn, Device uint32) GetDeviceContextCookie {
// GetDeviceContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDeviceContextUnchecked(c *xgb.Conn, Device uint32) GetDeviceContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetDeviceContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -336,7 +336,7 @@ func getDeviceContextRequest(c *xgb.Conn, Device uint32) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 4 // request opcode
@ -359,7 +359,7 @@ type GetDeviceCreateContextCookie struct {
// GetDeviceCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetDeviceCreateContextCookie.Reply()
func GetDeviceCreateContext(c *xgb.Conn) GetDeviceCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetDeviceCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -370,7 +370,7 @@ func GetDeviceCreateContext(c *xgb.Conn) GetDeviceCreateContextCookie {
// GetDeviceCreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetDeviceCreateContextUnchecked(c *xgb.Conn) GetDeviceCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetDeviceCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -435,7 +435,7 @@ func getDeviceCreateContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 2 // request opcode
@ -455,7 +455,7 @@ type GetPropertyContextCookie struct {
// GetPropertyContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyContextCookie.Reply()
func GetPropertyContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -466,7 +466,7 @@ func GetPropertyContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom)
// GetPropertyContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetPropertyContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -531,7 +531,7 @@ func getPropertyContextRequest(c *xgb.Conn, Window xproto.Window, Property xprot
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 12 // request opcode
@ -557,7 +557,7 @@ type GetPropertyCreateContextCookie struct {
// GetPropertyCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyCreateContextCookie.Reply()
func GetPropertyCreateContext(c *xgb.Conn) GetPropertyCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -568,7 +568,7 @@ func GetPropertyCreateContext(c *xgb.Conn) GetPropertyCreateContextCookie {
// GetPropertyCreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetPropertyCreateContextUnchecked(c *xgb.Conn) GetPropertyCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -633,7 +633,7 @@ func getPropertyCreateContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 9 // request opcode
@ -653,7 +653,7 @@ type GetPropertyDataContextCookie struct {
// GetPropertyDataContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyDataContextCookie.Reply()
func GetPropertyDataContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyDataContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -664,7 +664,7 @@ func GetPropertyDataContext(c *xgb.Conn, Window xproto.Window, Property xproto.A
// GetPropertyDataContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetPropertyDataContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyDataContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -729,7 +729,7 @@ func getPropertyDataContextRequest(c *xgb.Conn, Window xproto.Window, Property x
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 13 // request opcode
@ -755,7 +755,7 @@ type GetPropertyUseContextCookie struct {
// GetPropertyUseContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPropertyUseContextCookie.Reply()
func GetPropertyUseContext(c *xgb.Conn) GetPropertyUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -766,7 +766,7 @@ func GetPropertyUseContext(c *xgb.Conn) GetPropertyUseContextCookie {
// GetPropertyUseContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetPropertyUseContextUnchecked(c *xgb.Conn) GetPropertyUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetPropertyUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -831,7 +831,7 @@ func getPropertyUseContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 11 // request opcode
@ -851,7 +851,7 @@ type GetSelectionContextCookie struct {
// GetSelectionContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionContextCookie.Reply()
func GetSelectionContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -862,7 +862,7 @@ func GetSelectionContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionContext
// GetSelectionContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetSelectionContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -927,7 +927,7 @@ func getSelectionContextRequest(c *xgb.Conn, Selection xproto.Atom) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 19 // request opcode
@ -950,7 +950,7 @@ type GetSelectionCreateContextCookie struct {
// GetSelectionCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionCreateContextCookie.Reply()
func GetSelectionCreateContext(c *xgb.Conn) GetSelectionCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -961,7 +961,7 @@ func GetSelectionCreateContext(c *xgb.Conn) GetSelectionCreateContextCookie {
// GetSelectionCreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetSelectionCreateContextUnchecked(c *xgb.Conn) GetSelectionCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1026,7 +1026,7 @@ func getSelectionCreateContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 16 // request opcode
@ -1046,7 +1046,7 @@ type GetSelectionDataContextCookie struct {
// GetSelectionDataContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionDataContextCookie.Reply()
func GetSelectionDataContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionDataContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1057,7 +1057,7 @@ func GetSelectionDataContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionDat
// GetSelectionDataContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetSelectionDataContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionDataContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1122,7 +1122,7 @@ func getSelectionDataContextRequest(c *xgb.Conn, Selection xproto.Atom) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 20 // request opcode
@ -1145,7 +1145,7 @@ type GetSelectionUseContextCookie struct {
// GetSelectionUseContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetSelectionUseContextCookie.Reply()
func GetSelectionUseContext(c *xgb.Conn) GetSelectionUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1156,7 +1156,7 @@ func GetSelectionUseContext(c *xgb.Conn) GetSelectionUseContextCookie {
// GetSelectionUseContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetSelectionUseContextUnchecked(c *xgb.Conn) GetSelectionUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetSelectionUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1221,7 +1221,7 @@ func getSelectionUseContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 18 // request opcode
@ -1241,7 +1241,7 @@ type GetWindowContextCookie struct {
// GetWindowContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetWindowContextCookie.Reply()
func GetWindowContext(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetWindowContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1252,7 +1252,7 @@ func GetWindowContext(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie
// GetWindowContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetWindowContextUnchecked(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetWindowContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1317,7 +1317,7 @@ func getWindowContextRequest(c *xgb.Conn, Window xproto.Window) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 7 // request opcode
@ -1340,7 +1340,7 @@ type GetWindowCreateContextCookie struct {
// GetWindowCreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetWindowCreateContextCookie.Reply()
func GetWindowCreateContext(c *xgb.Conn) GetWindowCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetWindowCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1351,7 +1351,7 @@ func GetWindowCreateContext(c *xgb.Conn) GetWindowCreateContextCookie {
// GetWindowCreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetWindowCreateContextUnchecked(c *xgb.Conn) GetWindowCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'GetWindowCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1416,7 +1416,7 @@ func getWindowCreateContextRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 6 // request opcode
@ -1436,7 +1436,7 @@ type ListPropertiesCookie struct {
// ListProperties sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply()
func ListProperties(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'ListProperties' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1447,7 +1447,7 @@ func ListProperties(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie {
// ListPropertiesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ListPropertiesUnchecked(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'ListProperties' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1508,7 +1508,7 @@ func listPropertiesRequest(c *xgb.Conn, Window xproto.Window) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 14 // request opcode
@ -1531,7 +1531,7 @@ type ListSelectionsCookie struct {
// ListSelections sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSelectionsCookie.Reply()
func ListSelections(c *xgb.Conn) ListSelectionsCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'ListSelections' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1542,7 +1542,7 @@ func ListSelections(c *xgb.Conn) ListSelectionsCookie {
// ListSelectionsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ListSelectionsUnchecked(c *xgb.Conn) ListSelectionsCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'ListSelections' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1603,7 +1603,7 @@ func listSelectionsRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 21 // request opcode
@ -1623,7 +1623,7 @@ 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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1634,7 +1634,7 @@ func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionC
// 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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1692,7 +1692,7 @@ func queryVersionRequest(c *xgb.Conn, ClientMajor byte, ClientMinor byte) []byte
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 0 // request opcode
@ -1718,7 +1718,7 @@ type SetDeviceContextCookie struct {
// SetDeviceContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetDeviceContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1729,7 +1729,7 @@ func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context str
// SetDeviceContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetDeviceContextCookie.Check()
func SetDeviceContextChecked(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetDeviceContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1750,7 +1750,7 @@ func setDeviceContextRequest(c *xgb.Conn, Device uint32, ContextLen uint32, Cont
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 3 // request opcode
@ -1779,7 +1779,7 @@ type SetDeviceCreateContextCookie struct {
// SetDeviceCreateContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetDeviceCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetDeviceCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1790,7 +1790,7 @@ func SetDeviceCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetD
// SetDeviceCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetDeviceCreateContextCookie.Check()
func SetDeviceCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetDeviceCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1811,7 +1811,7 @@ func setDeviceCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context strin
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 1 // request opcode
@ -1837,7 +1837,7 @@ type SetPropertyCreateContextCookie struct {
// SetPropertyCreateContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPropertyCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetPropertyCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1848,7 +1848,7 @@ func SetPropertyCreateContext(c *xgb.Conn, ContextLen uint32, Context string) Se
// SetPropertyCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPropertyCreateContextCookie.Check()
func SetPropertyCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetPropertyCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1869,7 +1869,7 @@ func setPropertyCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context str
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 8 // request opcode
@ -1895,7 +1895,7 @@ type SetPropertyUseContextCookie struct {
// SetPropertyUseContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPropertyUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetPropertyUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1906,7 +1906,7 @@ func SetPropertyUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetPr
// SetPropertyUseContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPropertyUseContextCookie.Check()
func SetPropertyUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetPropertyUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1927,7 +1927,7 @@ func setPropertyUseContextRequest(c *xgb.Conn, ContextLen uint32, Context string
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 10 // request opcode
@ -1953,7 +1953,7 @@ type SetSelectionCreateContextCookie struct {
// SetSelectionCreateContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetSelectionCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetSelectionCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1964,7 +1964,7 @@ func SetSelectionCreateContext(c *xgb.Conn, ContextLen uint32, Context string) S
// SetSelectionCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetSelectionCreateContextCookie.Check()
func SetSelectionCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetSelectionCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1985,7 +1985,7 @@ func setSelectionCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context st
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 15 // request opcode
@ -2011,7 +2011,7 @@ type SetSelectionUseContextCookie struct {
// SetSelectionUseContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetSelectionUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetSelectionUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2022,7 +2022,7 @@ func SetSelectionUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetS
// SetSelectionUseContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetSelectionUseContextCookie.Check()
func SetSelectionUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetSelectionUseContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2043,7 +2043,7 @@ func setSelectionUseContextRequest(c *xgb.Conn, ContextLen uint32, Context strin
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 17 // request opcode
@ -2069,7 +2069,7 @@ type SetWindowCreateContextCookie struct {
// SetWindowCreateContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetWindowCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetWindowCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2080,7 +2080,7 @@ func SetWindowCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetW
// SetWindowCreateContextChecked sends a checked request.
// If an error occurs, it can be retrieved using SetWindowCreateContextCookie.Check()
func SetWindowCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie {
if _, ok := c.Extensions["SELINUX"]; !ok {
if _, ok := c.Extensions["SELinux"]; !ok {
panic("Cannot issue request 'SetWindowCreateContext' using the uninitialized extension 'SELinux'. xselinux.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2101,7 +2101,7 @@ func setWindowCreateContextRequest(c *xgb.Conn, ContextLen uint32, Context strin
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["SELINUX"]
buf[b] = c.Extensions["SELinux"]
b += 1
buf[b] = 5 // request opcode

View File

@ -1202,7 +1202,7 @@ type GetPortAttributeCookie struct {
// GetPortAttribute sends a checked request.
// If an error occurs, it will be returned with the reply by calling GetPortAttributeCookie.Reply()
func GetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom) GetPortAttributeCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GetPortAttribute' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1213,7 +1213,7 @@ func GetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom) GetPortAttr
// GetPortAttributeUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetPortAttributeUnchecked(c *xgb.Conn, Port Port, Attribute xproto.Atom) GetPortAttributeCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GetPortAttribute' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1267,7 +1267,7 @@ func getPortAttributeRequest(c *xgb.Conn, Port Port, Attribute xproto.Atom) []by
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 14 // request opcode
@ -1293,7 +1293,7 @@ type GetStillCookie struct {
// GetStill sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetStillCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GetStill' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1304,7 +1304,7 @@ func GetStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
// GetStillChecked sends a checked request.
// If an error occurs, it can be retrieved using GetStillCookie.Check()
func GetStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetStillCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GetStill' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1325,7 +1325,7 @@ func getStillRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 8 // request opcode
@ -1378,7 +1378,7 @@ type GetVideoCookie struct {
// GetVideo sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GetVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetVideoCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GetVideo' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1389,7 +1389,7 @@ func GetVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
// GetVideoChecked sends a checked request.
// If an error occurs, it can be retrieved using GetVideoCookie.Check()
func GetVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) GetVideoCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GetVideo' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1410,7 +1410,7 @@ func getVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 7 // request opcode
@ -1463,7 +1463,7 @@ type GrabPortCookie struct {
// GrabPort sends a checked request.
// If an error occurs, it will be returned with the reply by calling GrabPortCookie.Reply()
func GrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) GrabPortCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GrabPort' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1474,7 +1474,7 @@ func GrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) GrabPortCookie {
// GrabPortUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func GrabPortUnchecked(c *xgb.Conn, Port Port, Time xproto.Timestamp) GrabPortCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'GrabPort' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1525,7 +1525,7 @@ func grabPortRequest(c *xgb.Conn, Port Port, Time xproto.Timestamp) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 3 // request opcode
@ -1551,7 +1551,7 @@ type ListImageFormatsCookie struct {
// ListImageFormats sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListImageFormatsCookie.Reply()
func ListImageFormats(c *xgb.Conn, Port Port) ListImageFormatsCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'ListImageFormats' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1562,7 +1562,7 @@ func ListImageFormats(c *xgb.Conn, Port Port) ListImageFormatsCookie {
// ListImageFormatsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ListImageFormatsUnchecked(c *xgb.Conn, Port Port) ListImageFormatsCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'ListImageFormats' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1623,7 +1623,7 @@ func listImageFormatsRequest(c *xgb.Conn, Port Port) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 16 // request opcode
@ -1646,7 +1646,7 @@ type PutImageCookie struct {
// PutImage sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) PutImageCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'PutImage' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1657,7 +1657,7 @@ func PutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
// PutImageChecked sends a checked request.
// If an error occurs, it can be retrieved using PutImageCookie.Check()
func PutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) PutImageCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'PutImage' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1678,7 +1678,7 @@ func putImageRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 18 // request opcode
@ -1743,7 +1743,7 @@ type PutStillCookie struct {
// PutStill sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutStillCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'PutStill' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1754,7 +1754,7 @@ func PutStill(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
// PutStillChecked sends a checked request.
// If an error occurs, it can be retrieved using PutStillCookie.Check()
func PutStillChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutStillCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'PutStill' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1775,7 +1775,7 @@ func putStillRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 6 // request opcode
@ -1828,7 +1828,7 @@ type PutVideoCookie struct {
// PutVideo sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PutVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutVideoCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'PutVideo' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -1839,7 +1839,7 @@ func PutVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gconte
// PutVideoChecked sends a checked request.
// If an error occurs, it can be retrieved using PutVideoCookie.Check()
func PutVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) PutVideoCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'PutVideo' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -1860,7 +1860,7 @@ func putVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 5 // request opcode
@ -1913,7 +1913,7 @@ type QueryAdaptorsCookie struct {
// QueryAdaptors sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryAdaptorsCookie.Reply()
func QueryAdaptors(c *xgb.Conn, Window xproto.Window) QueryAdaptorsCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryAdaptors' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -1924,7 +1924,7 @@ func QueryAdaptors(c *xgb.Conn, Window xproto.Window) QueryAdaptorsCookie {
// QueryAdaptorsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryAdaptorsUnchecked(c *xgb.Conn, Window xproto.Window) QueryAdaptorsCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryAdaptors' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -1985,7 +1985,7 @@ func queryAdaptorsRequest(c *xgb.Conn, Window xproto.Window) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 1 // request opcode
@ -2008,7 +2008,7 @@ type QueryBestSizeCookie struct {
// QueryBestSize sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryBestSizeCookie.Reply()
func QueryBestSize(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) QueryBestSizeCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryBestSize' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -2019,7 +2019,7 @@ func QueryBestSize(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16
// QueryBestSizeUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryBestSizeUnchecked(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) QueryBestSizeCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryBestSize' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2077,7 +2077,7 @@ func queryBestSizeRequest(c *xgb.Conn, Port Port, VidW uint16, VidH uint16, DrwW
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 12 // request opcode
@ -2121,7 +2121,7 @@ type QueryEncodingsCookie struct {
// QueryEncodings sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryEncodingsCookie.Reply()
func QueryEncodings(c *xgb.Conn, Port Port) QueryEncodingsCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryEncodings' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -2132,7 +2132,7 @@ func QueryEncodings(c *xgb.Conn, Port Port) QueryEncodingsCookie {
// QueryEncodingsUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryEncodingsUnchecked(c *xgb.Conn, Port Port) QueryEncodingsCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryEncodings' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2193,7 +2193,7 @@ func queryEncodingsRequest(c *xgb.Conn, Port Port) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 2 // request opcode
@ -2216,7 +2216,7 @@ type QueryExtensionCookie struct {
// QueryExtension sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryExtensionCookie.Reply()
func QueryExtension(c *xgb.Conn) QueryExtensionCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryExtension' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -2227,7 +2227,7 @@ func QueryExtension(c *xgb.Conn) QueryExtensionCookie {
// QueryExtensionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryExtensionUnchecked(c *xgb.Conn) QueryExtensionCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryExtension' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2285,7 +2285,7 @@ func queryExtensionRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 0 // request opcode
@ -2305,7 +2305,7 @@ type QueryImageAttributesCookie struct {
// QueryImageAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryImageAttributesCookie.Reply()
func QueryImageAttributes(c *xgb.Conn, Port Port, Id uint32, Width uint16, Height uint16) QueryImageAttributesCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryImageAttributes' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -2316,7 +2316,7 @@ func QueryImageAttributes(c *xgb.Conn, Port Port, Id uint32, Width uint16, Heigh
// QueryImageAttributesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryImageAttributesUnchecked(c *xgb.Conn, Port Port, Id uint32, Width uint16, Height uint16) QueryImageAttributesCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryImageAttributes' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2401,7 +2401,7 @@ func queryImageAttributesRequest(c *xgb.Conn, Port Port, Id uint32, Width uint16
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 17 // request opcode
@ -2433,7 +2433,7 @@ type QueryPortAttributesCookie struct {
// QueryPortAttributes sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryPortAttributesCookie.Reply()
func QueryPortAttributes(c *xgb.Conn, Port Port) QueryPortAttributesCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryPortAttributes' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -2444,7 +2444,7 @@ func QueryPortAttributes(c *xgb.Conn, Port Port) QueryPortAttributesCookie {
// QueryPortAttributesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryPortAttributesUnchecked(c *xgb.Conn, Port Port) QueryPortAttributesCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'QueryPortAttributes' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -2509,7 +2509,7 @@ func queryPortAttributesRequest(c *xgb.Conn, Port Port) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 15 // request opcode
@ -2532,7 +2532,7 @@ type SelectPortNotifyCookie struct {
// SelectPortNotify sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SelectPortNotify(c *xgb.Conn, Port Port, Onoff bool) SelectPortNotifyCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'SelectPortNotify' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2543,7 +2543,7 @@ func SelectPortNotify(c *xgb.Conn, Port Port, Onoff bool) SelectPortNotifyCookie
// SelectPortNotifyChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectPortNotifyCookie.Check()
func SelectPortNotifyChecked(c *xgb.Conn, Port Port, Onoff bool) SelectPortNotifyCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'SelectPortNotify' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2564,7 +2564,7 @@ func selectPortNotifyRequest(c *xgb.Conn, Port Port, Onoff bool) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 11 // request opcode
@ -2596,7 +2596,7 @@ type SelectVideoNotifyCookie struct {
// SelectVideoNotify sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SelectVideoNotify(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) SelectVideoNotifyCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'SelectVideoNotify' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2607,7 +2607,7 @@ func SelectVideoNotify(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) Select
// SelectVideoNotifyChecked sends a checked request.
// If an error occurs, it can be retrieved using SelectVideoNotifyCookie.Check()
func SelectVideoNotifyChecked(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool) SelectVideoNotifyCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'SelectVideoNotify' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2628,7 +2628,7 @@ func selectVideoNotifyRequest(c *xgb.Conn, Drawable xproto.Drawable, Onoff bool)
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 10 // request opcode
@ -2660,7 +2660,7 @@ type SetPortAttributeCookie struct {
// SetPortAttribute sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32) SetPortAttributeCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'SetPortAttribute' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2671,7 +2671,7 @@ func SetPortAttribute(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32
// SetPortAttributeChecked sends a checked request.
// If an error occurs, it can be retrieved using SetPortAttributeCookie.Check()
func SetPortAttributeChecked(c *xgb.Conn, Port Port, Attribute xproto.Atom, Value int32) SetPortAttributeCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'SetPortAttribute' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2692,7 +2692,7 @@ func setPortAttributeRequest(c *xgb.Conn, Port Port, Attribute xproto.Atom, Valu
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 13 // request opcode
@ -2721,7 +2721,7 @@ type ShmPutImageCookie struct {
// ShmPutImage sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ShmPutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) ShmPutImageCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'ShmPutImage' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2732,7 +2732,7 @@ func ShmPutImage(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gco
// ShmPutImageChecked sends a checked request.
// If an error occurs, it can be retrieved using ShmPutImageCookie.Check()
func ShmPutImageChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xproto.Gcontext, Shmseg shm.Seg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) ShmPutImageCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'ShmPutImage' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2753,7 +2753,7 @@ func shmPutImageRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable, Gc xpr
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 19 // request opcode
@ -2826,7 +2826,7 @@ type StopVideoCookie struct {
// StopVideo sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func StopVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable) StopVideoCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'StopVideo' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2837,7 +2837,7 @@ func StopVideo(c *xgb.Conn, Port Port, Drawable xproto.Drawable) StopVideoCookie
// StopVideoChecked sends a checked request.
// If an error occurs, it can be retrieved using StopVideoCookie.Check()
func StopVideoChecked(c *xgb.Conn, Port Port, Drawable xproto.Drawable) StopVideoCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'StopVideo' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2858,7 +2858,7 @@ func stopVideoRequest(c *xgb.Conn, Port Port, Drawable xproto.Drawable) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 9 // request opcode
@ -2884,7 +2884,7 @@ type UngrabPortCookie struct {
// UngrabPort sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UngrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) UngrabPortCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'UngrabPort' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -2895,7 +2895,7 @@ func UngrabPort(c *xgb.Conn, Port Port, Time xproto.Timestamp) UngrabPortCookie
// UngrabPortChecked sends a checked request.
// If an error occurs, it can be retrieved using UngrabPortCookie.Check()
func UngrabPortChecked(c *xgb.Conn, Port Port, Time xproto.Timestamp) UngrabPortCookie {
if _, ok := c.Extensions["XVIDEO"]; !ok {
if _, ok := c.Extensions["XVideo"]; !ok {
panic("Cannot issue request 'UngrabPort' using the uninitialized extension 'XVideo'. xv.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -2916,7 +2916,7 @@ func ungrabPortRequest(c *xgb.Conn, Port Port, Time xproto.Timestamp) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO"]
buf[b] = c.Extensions["XVideo"]
b += 1
buf[b] = 4 // request opcode

View File

@ -203,7 +203,7 @@ type CreateContextCookie struct {
// CreateContext sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()
func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -214,7 +214,7 @@ func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Sur
// CreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContextUnchecked(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -287,7 +287,7 @@ func createContextRequest(c *xgb.Conn, ContextId Context, PortId xv.Port, Surfac
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 2 // request opcode
@ -325,7 +325,7 @@ type CreateSubpictureCookie struct {
// CreateSubpicture sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateSubpictureCookie.Reply()
func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -336,7 +336,7 @@ func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, Xvi
// CreateSubpictureUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateSubpictureUnchecked(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -418,7 +418,7 @@ func createSubpictureRequest(c *xgb.Conn, SubpictureId Subpicture, Context Conte
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 6 // request opcode
@ -453,7 +453,7 @@ type CreateSurfaceCookie struct {
// CreateSurface sends a checked request.
// If an error occurs, it will be returned with the reply by calling CreateSurfaceCookie.Reply()
func CreateSurface(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurfaceCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -464,7 +464,7 @@ func CreateSurface(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurf
// CreateSurfaceUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateSurfaceUnchecked(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurfaceCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -525,7 +525,7 @@ func createSurfaceRequest(c *xgb.Conn, SurfaceId Surface, ContextId Context) []b
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 4 // request opcode
@ -551,7 +551,7 @@ type DestroyContextCookie struct {
// DestroyContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyContext(c *xgb.Conn, ContextId Context) DestroyContextCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -562,7 +562,7 @@ func DestroyContext(c *xgb.Conn, ContextId Context) DestroyContextCookie {
// DestroyContextChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroyContextCookie.Check()
func DestroyContextChecked(c *xgb.Conn, ContextId Context) DestroyContextCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -583,7 +583,7 @@ func destroyContextRequest(c *xgb.Conn, ContextId Context) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 3 // request opcode
@ -606,7 +606,7 @@ type DestroySubpictureCookie struct {
// DestroySubpicture sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroySubpicture(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -617,7 +617,7 @@ func DestroySubpicture(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCo
// DestroySubpictureChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroySubpictureCookie.Check()
func DestroySubpictureChecked(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -638,7 +638,7 @@ func destroySubpictureRequest(c *xgb.Conn, SubpictureId Subpicture) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 7 // request opcode
@ -661,7 +661,7 @@ type DestroySurfaceCookie struct {
// DestroySurface sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroySurface(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@ -672,7 +672,7 @@ func DestroySurface(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
// DestroySurfaceChecked sends a checked request.
// If an error occurs, it can be retrieved using DestroySurfaceCookie.Check()
func DestroySurfaceChecked(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@ -693,7 +693,7 @@ func destroySurfaceRequest(c *xgb.Conn, SurfaceId Surface) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 5 // request opcode
@ -716,7 +716,7 @@ type ListSubpictureTypesCookie struct {
// ListSubpictureTypes sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSubpictureTypesCookie.Reply()
func ListSubpictureTypes(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSubpictureTypesCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSubpictureTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -727,7 +727,7 @@ func ListSubpictureTypes(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSub
// ListSubpictureTypesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ListSubpictureTypesUnchecked(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSubpictureTypesCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSubpictureTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -788,7 +788,7 @@ func listSubpictureTypesRequest(c *xgb.Conn, PortId xv.Port, SurfaceId Surface)
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 8 // request opcode
@ -814,7 +814,7 @@ type ListSurfaceTypesCookie struct {
// ListSurfaceTypes sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSurfaceTypesCookie.Reply()
func ListSurfaceTypes(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSurfaceTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -825,7 +825,7 @@ func ListSurfaceTypes(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
// ListSurfaceTypesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ListSurfaceTypesUnchecked(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSurfaceTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -886,7 +886,7 @@ func listSurfaceTypesRequest(c *xgb.Conn, PortId xv.Port) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 1 // request opcode
@ -909,7 +909,7 @@ 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) QueryVersionCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@ -920,7 +920,7 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
// 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) QueryVersionCookie {
if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@ -978,7 +978,7 @@ func queryVersionRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 0 // request opcode