Documentation
¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "record.xml"
Index ¶
- Constants
- func ClientInfoListBytes(buf []byte, list []ClientInfo) int
- func ClientInfoListSize(list []ClientInfo) int
- func ClientInfoRead(buf []byte, v *ClientInfo) int
- func ClientInfoReadList(buf []byte, dest []ClientInfo) int
- func CreateContext(c *xgb.XConn, Context Context, ElementHeader ElementHeader, ...) error
- func CreateContextUnchecked(c *xgb.XConn, Context Context, ElementHeader ElementHeader, ...) error
- func DisableContext(c *xgb.XConn, Context Context) error
- func DisableContextUnchecked(c *xgb.XConn, Context Context) error
- func EnableContextUnchecked(c *xgb.XConn, Context Context) error
- func ExtRangeListBytes(buf []byte, list []ExtRange) int
- func ExtRangeRead(buf []byte, v *ExtRange) int
- func ExtRangeReadList(buf []byte, dest []ExtRange) int
- func FreeContext(c *xgb.XConn, Context Context) error
- func FreeContextUnchecked(c *xgb.XConn, Context Context) error
- func GetContextUnchecked(c *xgb.XConn, Context Context) error
- func QueryVersionUnchecked(c *xgb.XConn, MajorVersion uint16, MinorVersion uint16) error
- func Range16ListBytes(buf []byte, list []Range16) int
- func Range16Read(buf []byte, v *Range16) int
- func Range16ReadList(buf []byte, dest []Range16) int
- func Range8ListBytes(buf []byte, list []Range8) int
- func Range8Read(buf []byte, v *Range8) int
- func Range8ReadList(buf []byte, dest []Range8) int
- func RangeListBytes(buf []byte, list []Range) int
- func RangeRead(buf []byte, v *Range) int
- func RangeReadList(buf []byte, dest []Range) int
- func Register(xconn *xgb.XConn) error
- func RegisterClients(c *xgb.XConn, Context Context, ElementHeader ElementHeader, ...) error
- func RegisterClientsUnchecked(c *xgb.XConn, Context Context, ElementHeader ElementHeader, ...) error
- func UnmarshalBadContextError(buf []byte) (xgb.XError, error)
- func UnregisterClients(c *xgb.XConn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) error
- func UnregisterClientsUnchecked(c *xgb.XConn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) error
- type BadContextError
- type ClientInfo
- type ClientSpec
- type Context
- type ElementHeader
- type EnableContextReply
- type ExtRange
- type GetContextReply
- type QueryVersionReply
- type Range
- type Range16
- type Range8
Constants ¶
const ( // ExtName is the user-friendly name string of this X extension. ExtName = "Record" // ExtXName is the name string this extension is known by to the X server. ExtXName = "RECORD" )
const ( CsCurrentClients = 1 CsFutureClients = 2 CsAllClients = 3 )
const ( HTypeFromServerTime = 1 HTypeFromClientTime = 2 HTypeFromClientSequence = 4 )
const BadBadContext = 0
BadBadContext is the error number for a BadBadContext.
Variables ¶
This section is empty.
Functions ¶
func ClientInfoListBytes ¶
func ClientInfoListBytes(buf []byte, list []ClientInfo) int
ClientInfoListBytes writes a list of ClientInfo values to a byte slice.
func ClientInfoListSize ¶
func ClientInfoListSize(list []ClientInfo) int
ClientInfoListSize computes the size (bytes) of a list of ClientInfo values.
func ClientInfoRead ¶
func ClientInfoRead(buf []byte, v *ClientInfo) int
ClientInfoRead reads a byte slice into a ClientInfo value.
func ClientInfoReadList ¶
func ClientInfoReadList(buf []byte, dest []ClientInfo) int
ClientInfoReadList reads a byte slice into a list of ClientInfo values.
func CreateContext ¶
func CreateContext(c *xgb.XConn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) error
CreateContext sends a checked request.
func CreateContextUnchecked ¶ added in v1.1.0
func CreateContextUnchecked(c *xgb.XConn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) error
CreateContextUnchecked sends an unchecked request.
func DisableContext ¶
DisableContext sends a checked request.
func DisableContextUnchecked ¶ added in v1.1.0
DisableContextUnchecked sends an unchecked request.
func EnableContextUnchecked ¶
EnableContextUnchecked sends an unchecked request.
func ExtRangeListBytes ¶
ExtRangeListBytes writes a list of ExtRange values to a byte slice.
func ExtRangeRead ¶
ExtRangeRead reads a byte slice into a ExtRange value.
func ExtRangeReadList ¶
ExtRangeReadList reads a byte slice into a list of ExtRange values.
func FreeContext ¶
FreeContext sends a checked request.
func FreeContextUnchecked ¶ added in v1.1.0
FreeContextUnchecked sends an unchecked request.
func GetContextUnchecked ¶
GetContextUnchecked sends an unchecked request.
func QueryVersionUnchecked ¶
QueryVersionUnchecked sends an unchecked request.
func Range16ListBytes ¶
Range16ListBytes writes a list of Range16 values to a byte slice.
func Range16Read ¶
Range16Read reads a byte slice into a Range16 value.
func Range16ReadList ¶
Range16ReadList reads a byte slice into a list of Range16 values.
func Range8ListBytes ¶
Range8ListBytes writes a list of Range8 values to a byte slice.
func Range8Read ¶
Range8Read reads a byte slice into a Range8 value.
func Range8ReadList ¶
Range8ReadList reads a byte slice into a list of Range8 values.
func RangeListBytes ¶
RangeListBytes writes a list of Range values to a byte slice.
func RangeReadList ¶
RangeReadList reads a byte slice into a list of Range values.
func Register ¶ added in v1.1.0
func Register(xconn *xgb.XConn) error
Register will query the X server for Record extension support, and register relevant extension unmarshalers with the XConn.
func RegisterClients ¶
func RegisterClients(c *xgb.XConn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) error
RegisterClients sends a checked request.
func RegisterClientsUnchecked ¶ added in v1.1.0
func RegisterClientsUnchecked(c *xgb.XConn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) error
RegisterClientsUnchecked sends an unchecked request.
func UnmarshalBadContextError ¶ added in v1.1.0
UnmarshalBadContextError constructs a BadContextError value that implements xgb.Error from a byte slice.
func UnregisterClients ¶
func UnregisterClients(c *xgb.XConn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) error
UnregisterClients sends a checked request.
func UnregisterClientsUnchecked ¶ added in v1.1.0
func UnregisterClientsUnchecked(c *xgb.XConn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) error
UnregisterClientsUnchecked sends an unchecked request.
Types ¶
type BadContextError ¶
func (*BadContextError) BadID ¶ added in v1.1.0
func (err *BadContextError) BadID() uint32
BadID returns the 'BadValue' number if one exists for the BadBadContext error. If no bad value exists, 0 is returned.
func (*BadContextError) Error ¶
func (err *BadContextError) Error() string
Error returns a rudimentary string representation of the BadBadContext error.
func (*BadContextError) SeqID ¶ added in v1.1.0
func (err *BadContextError) SeqID() uint16
SeqID returns the sequence id attached to the BadBadContext error. This is mostly used internally.
type ClientInfo ¶
type ClientInfo struct { ClientResource ClientSpec NumRanges uint32 Ranges []Range // size: internal.Pad4((int(NumRanges) * 24)) }
func (ClientInfo) Bytes ¶
func (v ClientInfo) Bytes() []byte
Bytes writes a ClientInfo value to a byte slice.
type ClientSpec ¶
type ClientSpec uint32
type Context ¶
type Context uint32
func NewContextID ¶ added in v1.1.0
func NewContextID(c *xgb.XConn) Context
type ElementHeader ¶
type ElementHeader byte
type EnableContextReply ¶
type EnableContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Category byte ElementHeader ElementHeader ClientSwapped bool // padding: 2 bytes XidBase uint32 ServerTime uint32 RecSequenceNum uint32 // padding: 8 bytes Data []byte // size: internal.Pad4(((int(Length) * 4) * 1)) }
EnableContextReply represents the data returned from a EnableContext request.
func EnableContext ¶
func EnableContext(c *xgb.XConn, Context Context) (EnableContextReply, error)
EnableContext sends a checked request.
func (*EnableContextReply) Unmarshal ¶ added in v1.1.0
func (v *EnableContextReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a EnableContextReply value.
type GetContextReply ¶
type GetContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Enabled bool ElementHeader ElementHeader // padding: 3 bytes NumInterceptedClients uint32 // padding: 16 bytes InterceptedClients []ClientInfo // size: ClientInfoListSize(InterceptedClients) }
GetContextReply represents the data returned from a GetContext request.
func GetContext ¶
func GetContext(c *xgb.XConn, Context Context) (GetContextReply, error)
GetContext sends a checked request.
func (*GetContextReply) Unmarshal ¶ added in v1.1.0
func (v *GetContextReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a GetContextReply value.
type QueryVersionReply ¶
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes MajorVersion uint16 MinorVersion uint16 }
QueryVersionReply represents the data returned from a QueryVersion request.
func QueryVersion ¶
func QueryVersion(c *xgb.XConn, MajorVersion uint16, MinorVersion uint16) (QueryVersionReply, error)
QueryVersion sends a checked request.
func (*QueryVersionReply) Unmarshal ¶ added in v1.1.0
func (v *QueryVersionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryVersionReply value.