File: auto.go

package info (click to toggle)
golang-github-linuxdeepin-go-x11-client 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: python: 944; sh: 38; makefile: 17
file content (77 lines) | stat: -rw-r--r-- 1,659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

package record

import x "github.com/linuxdeepin/go-x11-client"

// _ns.ext_name: Record
const MajorVersion = 1
const MinorVersion = 13

var _ext *x.Extension

func Ext() *x.Extension {
	return _ext
}

// simple ('xcb', 'Record', 'CONTEXT')
type Context uint32

// simple ('xcb', 'Record', 'ElementHeader')
type ElementHeader uint8

// enum HType
const (
	HTypeFromServerTime     = 1
	HTypeFromClientTime     = 2
	HTypeFromClientSequence = 4
)

// simple ('xcb', 'Record', 'ClientSpec')
type ClientSpec uint32

// enum CS
const (
	CSCurrentClients = 1
	CSFutureClients  = 2
	CSAllClients     = 3
)

const BadContextErrorCode = 0
const QueryVersionOpcode = 0

type QueryVersionCookie x.SeqNum

const CreateContextOpcode = 1
const RegisterClientsOpcode = 2
const UnregisterClientsOpcode = 3
const GetContextOpcode = 4

type GetContextCookie x.SeqNum

const EnableContextOpcode = 5

type EnableContextCookie x.SeqNum

const DisableContextOpcode = 6
const FreeContextOpcode = 7

var errorCodeNameMap = map[uint8]string{
	BadContextErrorCode: "BadContext",
}
var requestOpcodeNameMap = map[uint]string{
	QueryVersionOpcode:      "QueryVersion",
	CreateContextOpcode:     "CreateContext",
	RegisterClientsOpcode:   "RegisterClients",
	UnregisterClientsOpcode: "UnregisterClients",
	GetContextOpcode:        "GetContext",
	EnableContextOpcode:     "EnableContext",
	DisableContextOpcode:    "DisableContext",
	FreeContextOpcode:       "FreeContext",
}

func init() {
	_ext = x.NewExtension("RECORD", 0, errorCodeNameMap, requestOpcodeNameMap)
}