-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtreeland-protocol-template.xml
More file actions
73 lines (62 loc) · 2.8 KB
/
treeland-protocol-template.xml
File metadata and controls
73 lines (62 loc) · 2.8 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="treeland_example_v1">
<copyright><![CDATA[
SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd.
SPDX-License-Identifier: MIT
]]></copyright>
<description summary="one-line protocol summary">
Replace this description with the protocol's purpose, object model, and
lifecycle guarantees.
If this specification uses RFC 2119 keywords normatively, include the
standard interpretation paragraph here.
</description>
<interface name="treeland_example_manager_v1" version="1">
<description summary="manager global">
Describe what this global creates, any singleton or binding rules,
and a brief high-level workflow for clients.
</description>
<enum name="error">
<entry name="invalid_argument" value="0"
summary="an invalid argument was provided"/>
</enum>
<request name="destroy" type="destructor">
<description summary="destroy the manager object">
Describe whether child objects must be destroyed first.
</description>
</request>
<request name="create_example">
<description summary="create an example object">
Describe ownership, required call scenarios, preconditions, and
lifetime expectations.
</description>
<arg name="id" type="new_id" interface="treeland_example_object_v1"/>
<arg name="surface" type="object" interface="wl_surface"/>
</request>
</interface>
<interface name="treeland_example_object_v1" version="1">
<description summary="example per-object interface">
Describe the object's state, lifetime, and relation to Wayland core objects.
</description>
<enum name="mode">
<entry name="default" value="0" summary="default mode"/>
</enum>
<request name="destroy" type="destructor">
<description summary="destroy the object">
Describe any ordering constraints with related objects.
</description>
</request>
<request name="set_mode">
<description summary="set pending mode">
Describe whether this is immediate or latched until commit.
</description>
<arg name="mode" type="uint" enum="mode" summary="requested mode"/>
</request>
<event name="configured">
<description summary="notify current state">
Describe event meaning, compositor-side trigger timing, and what
the client should do next.
</description>
<arg name="serial" type="uint" summary="configuration serial"/>
</event>
</interface>
</protocol>