1
0
Fork 0
forked from wry/wry

autocommit 2022-02-06 03:46:03 CET

This commit is contained in:
Julian Orth 2022-02-06 03:46:03 +01:00
parent 59ce74681a
commit c92346324b
60 changed files with 1292 additions and 1958 deletions

View file

@ -0,0 +1,15 @@
# requests
msg release = 0 {
}
msg request_mode = 1 {
mode: u32,
}
# events
msg mode = 0 {
mode: u32,
}

View file

@ -0,0 +1,12 @@
# requests
msg create = 0 {
id: id(org_kde_kwin_server_decoration),
surface: id(wl_surface),
}
# events
msg default_mode = 0 {
mode: u32,
}

11
wire/wl_buffer.txt Normal file
View file

@ -0,0 +1,11 @@
# requests
msg destroy = 0 {
}
# events
msg release = 0 {
}

5
wire/wl_callback.txt Normal file
View file

@ -0,0 +1,5 @@
# events
msg done = 0 {
callback_data: u32,
}

9
wire/wl_compositor.txt Normal file
View file

@ -0,0 +1,9 @@
# requests
msg create_surface = 0 {
id: id(wl_surface),
}
msg create_region = 1 {
id: id(wl_region),
}

49
wire/wl_data_device.txt Normal file
View file

@ -0,0 +1,49 @@
# requests
msg start_drag = 0 {
source: id(wl_data_source),
origin: id(wl_surface),
icon: id(wl_surface),
serial: u32,
}
msg set_selection = 1 {
source: id(wl_data_source),
serial: u32,
}
msg release = 2 {
}
# events
msg data_offer = 0 {
id: id(wl_data_offer),
}
msg enter = 1 {
serial: u32,
surface: id(wl_surface),
x: fixed,
y: fixed,
id: id(wl_data_offer),
}
msg leave = 2 {
}
msg motion = 3 {
time: u32,
x: fixed,
y: fixed,
}
msg drop = 4 {
}
msg selection = 5 {
id: id(wl_data_offer),
}

View file

@ -0,0 +1,10 @@
# requests
msg create_data_source = 0 {
id: id(wl_data_source),
}
msg get_data_device = 1 {
id: id(wl_data_device),
seat: id(wl_seat),
}

36
wire/wl_data_offer.txt Normal file
View file

@ -0,0 +1,36 @@
# requests
msg accept = 0 {
serial: u32,
mime_type: str,
}
msg receive = 1 {
mime_type: str,
fd: fd,
}
msg destroy = 2 {
}
msg finish = 3 {
}
msg set_actions = 4 {
dnd_actions: u32,
preferred_action: u32,
}
# events
msg offer = 0 {
mime_type: str,
}
msg source_actions = 1 {
source_actions: u32,
}
msg action = 2 {
dnd_action: u32,
}

40
wire/wl_data_source.txt Normal file
View file

@ -0,0 +1,40 @@
# requests
msg offer = 0 {
mime_type: str,
}
msg destroy = 1 {
}
msg set_actions = 2 {
dnd_actions: u32,
}
# events
msg target = 0 {
mime_type: str,
}
msg send = 1 {
mime_type: str,
fd: fd,
}
msg cancelled = 2 {
}
msg dnd_drop_performed = 3 {
}
msg dnd_finished = 4 {
}
msg action = 5 {
dnd_action: u32,
}

21
wire/wl_display.txt Normal file
View file

@ -0,0 +1,21 @@
# requests
msg sync = 0 {
callback: id(wl_callback),
}
msg get_registry = 1 {
registry: id(wl_registry),
}
# events
msg error = 0 {
object_id: id(object),
code: u32,
message: str,
}
msg delete_id = 1 {
id: u32,
}

60
wire/wl_drm.txt Normal file
View file

@ -0,0 +1,60 @@
# requests
msg authenticate = 0 {
id: u32,
}
msg create_buffer = 1 {
id: id(wl_buffer),
name: u32,
width: i32,
height: i32,
stride: u32,
format: u32,
}
msg create_planar_buffer = 2 {
id: id(wl_buffer),
name: u32,
width: i32,
height: i32,
format: u32,
offset0: i32,
stride0: i32,
offset1: i32,
stride1: i32,
offset2: i32,
stride2: i32,
}
msg create_prime_buffer = 3 {
id: id(wl_buffer),
name: fd,
width : i32,
height : i32,
format : u32,
offset0 : i32,
stride0 : i32,
offset1 : i32,
stride1 : i32,
offset2 : i32,
stride2 : i32,
}
# events
msg device = 0 {
name: bstr,
}
msg format = 1 {
format: u32,
}
msg authenticated = 2 {
}
msg capabilities = 3 {
value: u32,
}

44
wire/wl_keyboard.txt Normal file
View file

@ -0,0 +1,44 @@
# requests
msg release = 0 {
}
# events
msg keymap = 0 {
format: u32,
fd: fd,
size: u32,
}
msg enter = 1 {
serial: u32,
surface: id(wl_surface),
keys: array(u32),
}
msg leave = 2 {
serial: u32,
surface: id(wl_surface),
}
msg key = 3 {
serial: u32,
time: u32,
key: u32,
state: u32,
}
msg modifiers = 4 {
serial: u32,
mods_depressed: u32,
mods_latched: u32,
mods_locked: u32,
group: u32,
}
msg repeat_info = 5 {
rate: i32,
delay: i32,
}

41
wire/wl_output.txt Normal file
View file

@ -0,0 +1,41 @@
# requests
msg release = 0 {
}
# events
msg geometry = 0 {
x : i32,
y : i32,
physical_width : i32,
physical_height : i32,
subpixel : i32,
make : str,
model : str,
transform : i32,
}
msg mode = 1 {
flags : u32,
width : i32,
height : i32,
refresh : i32,
}
msg done = 2 {
}
msg scale = 3 {
factor: i32,
}
msg name = 4 {
name: str,
}
msg description = 5 {
description: str,
}

63
wire/wl_pointer.txt Normal file
View file

@ -0,0 +1,63 @@
# requests
msg set_cursor = 0 {
serial: u32,
surface: id(wl_surface),
hotspot_x: i32,
hotspot_y: i32,
}
msg release = 1 {
}
# events
msg enter = 0 {
serial: u32,
surface: id(wl_surface),
surface_x: fixed,
surface_y: fixed,
}
msg leave = 1 {
serial: u32,
surface: id(wl_surface),
}
msg motion = 2 {
time: u32,
surface_x: fixed,
surface_y: fixed,
}
msg button = 3 {
serial: u32,
time: u32,
button: u32,
state: u32,
}
msg axis = 4 {
time: u32,
axis: u32,
value: fixed,
}
msg frame = 5 {
}
msg axis_source = 6 {
axis_source: u32,
}
msg axis_stop = 7 {
time: u32,
axis: u32,
}
msg axis_discrete = 8 {
axis: u32,
discrete: i32,
}

19
wire/wl_region.txt Normal file
View file

@ -0,0 +1,19 @@
# requests
msg destroy = 0 {
}
msg add = 1 {
x: i32,
y: i32,
width: i32,
height: i32,
}
msg subtract = 2 {
x: i32,
y: i32,
width: i32,
height: i32,
}

20
wire/wl_registry.txt Normal file
View file

@ -0,0 +1,20 @@
# requests
msg bind = 0 {
name: u32,
id: id(object),
interface: str,
version: u32,
}
# events
msg global = 0 {
name: u32,
interface: str,
version: u32,
}
msg global_remove = 1 {
name: u32,
}

26
wire/wl_seat.txt Normal file
View file

@ -0,0 +1,26 @@
# requests
msg get_pointer = 0 {
id: id(wl_pointer),
}
msg get_keyboard = 1 {
id: id(wl_keyboard),
}
msg get_touch = 2 {
id: id(wl_touch),
}
msg release = 3 {
}
# events
msg capabilities = 0 {
capabilities: u32,
}
msg name = 1 {
name: str,
}