record

package
v0.0.0-...-7ad2634 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTypeFromServerTime     = 1
	HTypeFromClientTime     = 2
	HTypeFromClientSequence = 4
)

enum HType

View Source
const (
	CSCurrentClients = 1
	CSFutureClients  = 2
	CSAllClients     = 3
)

enum CS

View Source
const BadContextErrorCode = 0
View Source
const CreateContextOpcode = 1
View Source
const DisableContextOpcode = 6
View Source
const EnableContextOpcode = 5
View Source
const FreeContextOpcode = 7
View Source
const GetContextOpcode = 4
View Source
const MajorVersion = 1

_ns.ext_name: Record

View Source
const MinorVersion = 13
View Source
const QueryVersionOpcode = 0
View Source
const RegisterClientsOpcode = 2
View Source
const UnregisterClientsOpcode = 3

Variables

This section is empty.

Functions

func CreateContext

func CreateContext(conn *x.Conn, context Context, elementHeader ElementHeader, clientSpecs []ClientSpec, ranges []Range)

func CreateContextChecked

func CreateContextChecked(conn *x.Conn, context Context, elementHeader ElementHeader, clientSpecs []ClientSpec, ranges []Range) x.VoidCookie

func DisableContext

func DisableContext(conn *x.Conn, context Context)

func DisableContextChecked

func DisableContextChecked(conn *x.Conn, context Context) x.VoidCookie

func Ext

func Ext() *x.Extension

func FreeContext

func FreeContext(conn *x.Conn, context Context)

func FreeContextChecked

func FreeContextChecked(conn *x.Conn, context Context) x.VoidCookie

func RegisterClients

func RegisterClients(conn *x.Conn, context Context, elementHeader ElementHeader, clientSpecs []ClientSpec, ranges []Range)

func RegisterClientsChecked

func RegisterClientsChecked(conn *x.Conn, context Context, elementHeader ElementHeader, clientSpecs []ClientSpec, ranges []Range) x.VoidCookie

func UnregisterClients

func UnregisterClients(conn *x.Conn, context Context, clientSpecs []ClientSpec)

func UnregisterClientsChecked

func UnregisterClientsChecked(conn *x.Conn, context Context, clientSpecs []ClientSpec) x.VoidCookie

Types

type ClientInfo

type ClientInfo struct {
	ClientResource      ClientSpec
	InterceptedProtocol []Range
}

type ClientSpec

type ClientSpec uint32

simple ('xcb', 'Record', 'ClientSpec')

type Context

type Context uint32

simple ('xcb', 'Record', 'CONTEXT')

type ElementHeader

type ElementHeader uint8

simple ('xcb', 'Record', 'ElementHeader')

type EnableContextCookie

type EnableContextCookie x.SeqNum

func EnableContext

func EnableContext(conn *x.Conn, context Context) EnableContextCookie

func (EnableContextCookie) Reply

func (cookie EnableContextCookie) Reply(conn *x.Conn) (*EnableContextReply, error)

type EnableContextReply

type EnableContextReply struct {
	Category       uint8
	ElementHeader  ElementHeader
	ClientSwapped  bool
	XidBase        uint32
	ServerTime     x.Timestamp
	RecSequenceNum uint32
	Data           []uint8
}

type ExtRange

type ExtRange struct {
	Major Range8
	Minor Range16
}

size: 6b

type GetContextCookie

type GetContextCookie x.SeqNum

func GetContext

func GetContext(conn *x.Conn, context Context) GetContextCookie

func (GetContextCookie) Reply

func (cookie GetContextCookie) Reply(conn *x.Conn) (*GetContextReply, error)

type GetContextReply

type GetContextReply struct {
	Enabled            bool
	ElementHeader      ElementHeader
	InterceptedClients []ClientInfo
}

type QueryVersionCookie

type QueryVersionCookie x.SeqNum

func QueryVersion

func QueryVersion(conn *x.Conn, majorVersion, minorVersion uint16) QueryVersionCookie

func (QueryVersionCookie) Reply

func (cookie QueryVersionCookie) Reply(conn *x.Conn) (*QueryVersionReply, error)

type QueryVersionReply

type QueryVersionReply struct {
	MajorVersion uint16
	MinorVersion uint16
}

type Range

type Range struct {
	CoreRequests    Range8
	CoreReplies     Range8
	ExtRequests     ExtRange
	ExtReplies      ExtRange
	DeliveredEvents Range8
	DeviceEvents    Range8
	Errors          Range8
	ClientStarted   bool
	ClientDied      bool
}

size: 6 * 4b

type Range16

type Range16 struct {
	First uint16
	Last  uint16
}

size: 4b

type Range8

type Range8 struct {
	First uint8
	Last  uint8
}

size: 2b

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL