Documentation ¶
Overview ¶
Package sync is the X client API for the SYNC extension.
Index ¶
- Constants
- func AlarmErrorNew(buf []byte) xgb.Error
- func AlarmNotifyEventNew(buf []byte) xgb.Event
- func CounterErrorNew(buf []byte) xgb.Error
- func CounterNotifyEventNew(buf []byte) xgb.Event
- func Init(c *xgb.Conn) error
- func Int64ListBytes(buf []byte, list []Int64) int
- func Int64Read(buf []byte, v *Int64) int
- func Int64ReadList(buf []byte, dest []Int64) int
- func SystemcounterListBytes(buf []byte, list []Systemcounter) int
- func SystemcounterListSize(list []Systemcounter) int
- func SystemcounterRead(buf []byte, v *Systemcounter) int
- func SystemcounterReadList(buf []byte, dest []Systemcounter) int
- func TriggerListBytes(buf []byte, list []Trigger) int
- func TriggerRead(buf []byte, v *Trigger) int
- func TriggerReadList(buf []byte, dest []Trigger) int
- func WaitconditionListBytes(buf []byte, list []Waitcondition) int
- func WaitconditionRead(buf []byte, v *Waitcondition) int
- func WaitconditionReadList(buf []byte, dest []Waitcondition) int
- type Alarm
- type AlarmError
- type AlarmNotifyEvent
- type AwaitCookie
- type AwaitFenceCookie
- type ChangeAlarmCookie
- type ChangeCounterCookie
- type Counter
- type CounterError
- type CounterNotifyEvent
- type CreateAlarmCookie
- type CreateCounterCookie
- type CreateFenceCookie
- type DestroyAlarmCookie
- type DestroyCounterCookie
- type DestroyFenceCookie
- type Fence
- type GetPriorityCookie
- type GetPriorityReply
- type InitializeCookie
- type InitializeReply
- type Int64
- type ListSystemCountersCookie
- type ListSystemCountersReply
- type QueryAlarmCookie
- type QueryAlarmReply
- type QueryCounterCookie
- type QueryCounterReply
- type QueryFenceCookie
- type QueryFenceReply
- type ResetFenceCookie
- type SetCounterCookie
- type SetPriorityCookie
- type Systemcounter
- type Trigger
- type TriggerFenceCookie
- type Waitcondition
Constants ¶
const ( AlarmstateActive = 0 AlarmstateInactive = 1 AlarmstateDestroyed = 2 )
const ( TesttypePositiveTransition = 0 TesttypeNegativeTransition = 1 TesttypePositiveComparison = 2 TesttypeNegativeComparison = 3 )
const ( ValuetypeAbsolute = 0 ValuetypeRelative = 1 )
const ( CaCounter = 1 CaValueType = 2 CaValue = 4 CaTestType = 8 CaDelta = 16 CaEvents = 32 )
const AlarmNotify = 1
AlarmNotify is the event number for a AlarmNotifyEvent.
const BadAlarm = 1
BadAlarm is the error number for a BadAlarm.
const BadCounter = 0
BadCounter is the error number for a BadCounter.
const CounterNotify = 0
CounterNotify is the event number for a CounterNotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func AlarmErrorNew ¶
AlarmErrorNew constructs a AlarmError value that implements xgb.Error from a byte slice.
func AlarmNotifyEventNew ¶
AlarmNotifyEventNew constructs a AlarmNotifyEvent value that implements xgb.Event from a byte slice.
func CounterErrorNew ¶
CounterErrorNew constructs a CounterError value that implements xgb.Error from a byte slice.
func CounterNotifyEventNew ¶
CounterNotifyEventNew constructs a CounterNotifyEvent value that implements xgb.Event from a byte slice.
func Int64ListBytes ¶
Int64ListBytes writes a list of Int64 values to a byte slice.
func Int64ReadList ¶
Int64ReadList reads a byte slice into a list of Int64 values.
func SystemcounterListBytes ¶
func SystemcounterListBytes(buf []byte, list []Systemcounter) int
SystemcounterListBytes writes a list of Systemcounter values to a byte slice.
func SystemcounterListSize ¶
func SystemcounterListSize(list []Systemcounter) int
SystemcounterListSize computes the size (bytes) of a list of Systemcounter values.
func SystemcounterRead ¶
func SystemcounterRead(buf []byte, v *Systemcounter) int
SystemcounterRead reads a byte slice into a Systemcounter value.
func SystemcounterReadList ¶
func SystemcounterReadList(buf []byte, dest []Systemcounter) int
SystemcounterReadList reads a byte slice into a list of Systemcounter values.
func TriggerListBytes ¶
TriggerListBytes writes a list of Trigger values to a byte slice.
func TriggerRead ¶
TriggerRead reads a byte slice into a Trigger value.
func TriggerReadList ¶
TriggerReadList reads a byte slice into a list of Trigger values.
func WaitconditionListBytes ¶
func WaitconditionListBytes(buf []byte, list []Waitcondition) int
WaitconditionListBytes writes a list of Waitcondition values to a byte slice.
func WaitconditionRead ¶
func WaitconditionRead(buf []byte, v *Waitcondition) int
WaitconditionRead reads a byte slice into a Waitcondition value.
func WaitconditionReadList ¶
func WaitconditionReadList(buf []byte, dest []Waitcondition) int
WaitconditionReadList reads a byte slice into a list of Waitcondition values.
Types ¶
type AlarmError ¶
type AlarmError struct { Sequence uint16 NiceName string BadAlarm uint32 MinorOpcode uint16 MajorOpcode byte }
func (AlarmError) BadId ¶
func (err AlarmError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadAlarm error. If no bad value exists, 0 is returned.
func (AlarmError) Error ¶
func (err AlarmError) Error() string
func (AlarmError) SequenceId ¶
func (err AlarmError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadAlarm error. This is mostly used internally.
type AlarmNotifyEvent ¶
type AlarmNotifyEvent struct { Sequence uint16 Kind byte Alarm Alarm CounterValue Int64 AlarmValue Int64 Timestamp xproto.Timestamp State byte }
func (AlarmNotifyEvent) Bytes ¶
func (v AlarmNotifyEvent) Bytes() []byte
Bytes writes a AlarmNotifyEvent value to a byte slice.
func (AlarmNotifyEvent) SequenceId ¶
func (v AlarmNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the AlarmNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (AlarmNotifyEvent) String ¶
func (v AlarmNotifyEvent) String() string
String is a rudimentary string representation of AlarmNotifyEvent.
type AwaitCookie ¶
AwaitCookie is a cookie used only for Await requests.
func Await ¶
func Await(c *xgb.Conn, WaitList []Waitcondition) AwaitCookie
Await sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AwaitChecked ¶
func AwaitChecked(c *xgb.Conn, WaitList []Waitcondition) AwaitCookie
AwaitChecked sends a checked request. If an error occurs, it can be retrieved using AwaitCookie.Check()
func (AwaitCookie) Check ¶
func (cook AwaitCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type AwaitFenceCookie ¶
AwaitFenceCookie is a cookie used only for AwaitFence requests.
func AwaitFence ¶
func AwaitFence(c *xgb.Conn, FenceList []Fence) AwaitFenceCookie
AwaitFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func AwaitFenceChecked ¶
func AwaitFenceChecked(c *xgb.Conn, FenceList []Fence) AwaitFenceCookie
AwaitFenceChecked sends a checked request. If an error occurs, it can be retrieved using AwaitFenceCookie.Check()
func (AwaitFenceCookie) Check ¶
func (cook AwaitFenceCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type ChangeAlarmCookie ¶
ChangeAlarmCookie is a cookie used only for ChangeAlarm requests.
func ChangeAlarm ¶
ChangeAlarm sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeAlarmChecked ¶
func ChangeAlarmChecked(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) ChangeAlarmCookie
ChangeAlarmChecked sends a checked request. If an error occurs, it can be retrieved using ChangeAlarmCookie.Check()
func (ChangeAlarmCookie) Check ¶
func (cook ChangeAlarmCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type ChangeCounterCookie ¶
ChangeCounterCookie is a cookie used only for ChangeCounter requests.
func ChangeCounter ¶
func ChangeCounter(c *xgb.Conn, Counter Counter, Amount Int64) ChangeCounterCookie
ChangeCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeCounterChecked ¶
func ChangeCounterChecked(c *xgb.Conn, Counter Counter, Amount Int64) ChangeCounterCookie
ChangeCounterChecked sends a checked request. If an error occurs, it can be retrieved using ChangeCounterCookie.Check()
func (ChangeCounterCookie) Check ¶
func (cook ChangeCounterCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type CounterError ¶
type CounterError struct { Sequence uint16 NiceName string BadCounter uint32 MinorOpcode uint16 MajorOpcode byte }
func (CounterError) BadId ¶
func (err CounterError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadCounter error. If no bad value exists, 0 is returned.
func (CounterError) Error ¶
func (err CounterError) Error() string
func (CounterError) SequenceId ¶
func (err CounterError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadCounter error. This is mostly used internally.
type CounterNotifyEvent ¶
type CounterNotifyEvent struct { Sequence uint16 Kind byte Counter Counter WaitValue Int64 CounterValue Int64 Timestamp xproto.Timestamp Count uint16 Destroyed bool }
func (CounterNotifyEvent) Bytes ¶
func (v CounterNotifyEvent) Bytes() []byte
Bytes writes a CounterNotifyEvent value to a byte slice.
func (CounterNotifyEvent) SequenceId ¶
func (v CounterNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the CounterNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (CounterNotifyEvent) String ¶
func (v CounterNotifyEvent) String() string
String is a rudimentary string representation of CounterNotifyEvent.
type CreateAlarmCookie ¶
CreateAlarmCookie is a cookie used only for CreateAlarm requests.
func CreateAlarm ¶
CreateAlarm sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateAlarmChecked ¶
func CreateAlarmChecked(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) CreateAlarmCookie
CreateAlarmChecked sends a checked request. If an error occurs, it can be retrieved using CreateAlarmCookie.Check()
func (CreateAlarmCookie) Check ¶
func (cook CreateAlarmCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type CreateCounterCookie ¶
CreateCounterCookie is a cookie used only for CreateCounter requests.
func CreateCounter ¶
func CreateCounter(c *xgb.Conn, Id Counter, InitialValue Int64) CreateCounterCookie
CreateCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateCounterChecked ¶
func CreateCounterChecked(c *xgb.Conn, Id Counter, InitialValue Int64) CreateCounterCookie
CreateCounterChecked sends a checked request. If an error occurs, it can be retrieved using CreateCounterCookie.Check()
func (CreateCounterCookie) Check ¶
func (cook CreateCounterCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type CreateFenceCookie ¶
CreateFenceCookie is a cookie used only for CreateFence requests.
func CreateFence ¶
func CreateFence(c *xgb.Conn, Drawable xproto.Drawable, Fence Fence, InitiallyTriggered bool) CreateFenceCookie
CreateFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateFenceChecked ¶
func CreateFenceChecked(c *xgb.Conn, Drawable xproto.Drawable, Fence Fence, InitiallyTriggered bool) CreateFenceCookie
CreateFenceChecked sends a checked request. If an error occurs, it can be retrieved using CreateFenceCookie.Check()
func (CreateFenceCookie) Check ¶
func (cook CreateFenceCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type DestroyAlarmCookie ¶
DestroyAlarmCookie is a cookie used only for DestroyAlarm requests.
func DestroyAlarm ¶
func DestroyAlarm(c *xgb.Conn, Alarm Alarm) DestroyAlarmCookie
DestroyAlarm sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyAlarmChecked ¶
func DestroyAlarmChecked(c *xgb.Conn, Alarm Alarm) DestroyAlarmCookie
DestroyAlarmChecked sends a checked request. If an error occurs, it can be retrieved using DestroyAlarmCookie.Check()
func (DestroyAlarmCookie) Check ¶
func (cook DestroyAlarmCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type DestroyCounterCookie ¶
DestroyCounterCookie is a cookie used only for DestroyCounter requests.
func DestroyCounter ¶
func DestroyCounter(c *xgb.Conn, Counter Counter) DestroyCounterCookie
DestroyCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyCounterChecked ¶
func DestroyCounterChecked(c *xgb.Conn, Counter Counter) DestroyCounterCookie
DestroyCounterChecked sends a checked request. If an error occurs, it can be retrieved using DestroyCounterCookie.Check()
func (DestroyCounterCookie) Check ¶
func (cook DestroyCounterCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type DestroyFenceCookie ¶
DestroyFenceCookie is a cookie used only for DestroyFence requests.
func DestroyFence ¶
func DestroyFence(c *xgb.Conn, Fence Fence) DestroyFenceCookie
DestroyFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyFenceChecked ¶
func DestroyFenceChecked(c *xgb.Conn, Fence Fence) DestroyFenceCookie
DestroyFenceChecked sends a checked request. If an error occurs, it can be retrieved using DestroyFenceCookie.Check()
func (DestroyFenceCookie) Check ¶
func (cook DestroyFenceCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type GetPriorityCookie ¶
GetPriorityCookie is a cookie used only for GetPriority requests.
func GetPriority ¶
func GetPriority(c *xgb.Conn, Id uint32) GetPriorityCookie
GetPriority sends a checked request. If an error occurs, it will be returned with the reply by calling GetPriorityCookie.Reply()
func GetPriorityUnchecked ¶
func GetPriorityUnchecked(c *xgb.Conn, Id uint32) GetPriorityCookie
GetPriorityUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (GetPriorityCookie) Reply ¶
func (cook GetPriorityCookie) Reply() (*GetPriorityReply, error)
Reply blocks and returns the reply data for a GetPriority request.
type GetPriorityReply ¶
type GetPriorityReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Priority int32 }
GetPriorityReply represents the data returned from a GetPriority request.
type InitializeCookie ¶
InitializeCookie is a cookie used only for Initialize requests.
func Initialize ¶
func Initialize(c *xgb.Conn, DesiredMajorVersion byte, DesiredMinorVersion byte) InitializeCookie
Initialize sends a checked request. If an error occurs, it will be returned with the reply by calling InitializeCookie.Reply()
func InitializeUnchecked ¶
func InitializeUnchecked(c *xgb.Conn, DesiredMajorVersion byte, DesiredMinorVersion byte) InitializeCookie
InitializeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (InitializeCookie) Reply ¶
func (cook InitializeCookie) Reply() (*InitializeReply, error)
Reply blocks and returns the reply data for a Initialize request.
type InitializeReply ¶
type InitializeReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes MajorVersion byte MinorVersion byte }
InitializeReply represents the data returned from a Initialize request.
type ListSystemCountersCookie ¶
ListSystemCountersCookie is a cookie used only for ListSystemCounters requests.
func ListSystemCounters ¶
func ListSystemCounters(c *xgb.Conn) ListSystemCountersCookie
ListSystemCounters sends a checked request. If an error occurs, it will be returned with the reply by calling ListSystemCountersCookie.Reply()
func ListSystemCountersUnchecked ¶
func ListSystemCountersUnchecked(c *xgb.Conn) ListSystemCountersCookie
ListSystemCountersUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (ListSystemCountersCookie) Reply ¶
func (cook ListSystemCountersCookie) Reply() (*ListSystemCountersReply, error)
Reply blocks and returns the reply data for a ListSystemCounters request.
type ListSystemCountersReply ¶
type ListSystemCountersReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes CountersLen uint32 // padding: 20 bytes Counters []Systemcounter // size: SystemcounterListSize(Counters) }
ListSystemCountersReply represents the data returned from a ListSystemCounters request.
type QueryAlarmCookie ¶
QueryAlarmCookie is a cookie used only for QueryAlarm requests.
func QueryAlarm ¶
func QueryAlarm(c *xgb.Conn, Alarm Alarm) QueryAlarmCookie
QueryAlarm sends a checked request. If an error occurs, it will be returned with the reply by calling QueryAlarmCookie.Reply()
func QueryAlarmUnchecked ¶
func QueryAlarmUnchecked(c *xgb.Conn, Alarm Alarm) QueryAlarmCookie
QueryAlarmUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryAlarmCookie) Reply ¶
func (cook QueryAlarmCookie) Reply() (*QueryAlarmReply, error)
Reply blocks and returns the reply data for a QueryAlarm request.
type QueryAlarmReply ¶
type QueryAlarmReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Trigger Trigger Delta Int64 Events bool State byte }
QueryAlarmReply represents the data returned from a QueryAlarm request.
type QueryCounterCookie ¶
QueryCounterCookie is a cookie used only for QueryCounter requests.
func QueryCounter ¶
func QueryCounter(c *xgb.Conn, Counter Counter) QueryCounterCookie
QueryCounter sends a checked request. If an error occurs, it will be returned with the reply by calling QueryCounterCookie.Reply()
func QueryCounterUnchecked ¶
func QueryCounterUnchecked(c *xgb.Conn, Counter Counter) QueryCounterCookie
QueryCounterUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryCounterCookie) Reply ¶
func (cook QueryCounterCookie) Reply() (*QueryCounterReply, error)
Reply blocks and returns the reply data for a QueryCounter request.
type QueryCounterReply ¶
type QueryCounterReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes CounterValue Int64 }
QueryCounterReply represents the data returned from a QueryCounter request.
type QueryFenceCookie ¶
QueryFenceCookie is a cookie used only for QueryFence requests.
func QueryFence ¶
func QueryFence(c *xgb.Conn, Fence Fence) QueryFenceCookie
QueryFence sends a checked request. If an error occurs, it will be returned with the reply by calling QueryFenceCookie.Reply()
func QueryFenceUnchecked ¶
func QueryFenceUnchecked(c *xgb.Conn, Fence Fence) QueryFenceCookie
QueryFenceUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryFenceCookie) Reply ¶
func (cook QueryFenceCookie) Reply() (*QueryFenceReply, error)
Reply blocks and returns the reply data for a QueryFence request.
type QueryFenceReply ¶
type QueryFenceReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Triggered bool }
QueryFenceReply represents the data returned from a QueryFence request.
type ResetFenceCookie ¶
ResetFenceCookie is a cookie used only for ResetFence requests.
func ResetFence ¶
func ResetFence(c *xgb.Conn, Fence Fence) ResetFenceCookie
ResetFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ResetFenceChecked ¶
func ResetFenceChecked(c *xgb.Conn, Fence Fence) ResetFenceCookie
ResetFenceChecked sends a checked request. If an error occurs, it can be retrieved using ResetFenceCookie.Check()
func (ResetFenceCookie) Check ¶
func (cook ResetFenceCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type SetCounterCookie ¶
SetCounterCookie is a cookie used only for SetCounter requests.
func SetCounter ¶
func SetCounter(c *xgb.Conn, Counter Counter, Value Int64) SetCounterCookie
SetCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetCounterChecked ¶
func SetCounterChecked(c *xgb.Conn, Counter Counter, Value Int64) SetCounterCookie
SetCounterChecked sends a checked request. If an error occurs, it can be retrieved using SetCounterCookie.Check()
func (SetCounterCookie) Check ¶
func (cook SetCounterCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type SetPriorityCookie ¶
SetPriorityCookie is a cookie used only for SetPriority requests.
func SetPriority ¶
func SetPriority(c *xgb.Conn, Id uint32, Priority int32) SetPriorityCookie
SetPriority sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPriorityChecked ¶
func SetPriorityChecked(c *xgb.Conn, Id uint32, Priority int32) SetPriorityCookie
SetPriorityChecked sends a checked request. If an error occurs, it can be retrieved using SetPriorityCookie.Check()
func (SetPriorityCookie) Check ¶
func (cook SetPriorityCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type Systemcounter ¶
type Systemcounter struct { Counter Counter Resolution Int64 NameLen uint16 Name string // size: xgb.Pad((int(NameLen) * 1)) }
func (Systemcounter) Bytes ¶
func (v Systemcounter) Bytes() []byte
Bytes writes a Systemcounter value to a byte slice.
type TriggerFenceCookie ¶
TriggerFenceCookie is a cookie used only for TriggerFence requests.
func TriggerFence ¶
func TriggerFence(c *xgb.Conn, Fence Fence) TriggerFenceCookie
TriggerFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func TriggerFenceChecked ¶
func TriggerFenceChecked(c *xgb.Conn, Fence Fence) TriggerFenceCookie
TriggerFenceChecked sends a checked request. If an error occurs, it can be retrieved using TriggerFenceCookie.Check()
func (TriggerFenceCookie) Check ¶
func (cook TriggerFenceCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type Waitcondition ¶
func (Waitcondition) Bytes ¶
func (v Waitcondition) Bytes() []byte
Bytes writes a Waitcondition value to a byte slice.