diff options
Diffstat (limited to 'tests/data/example-code.c')
| -rw-r--r-- | tests/data/example-code.c | 240 |
1 files changed, 120 insertions, 120 deletions
diff --git a/tests/data/example-code.c b/tests/data/example-code.c index bc03fe5..2055c88 100644 --- a/tests/data/example-code.c +++ b/tests/data/example-code.c @@ -48,7 +48,7 @@ extern const struct wl_interface wl_subsurface_interface; extern const struct wl_interface wl_surface_interface; extern const struct wl_interface wl_touch_interface; -static const struct wl_interface *types[] = { +static const struct wl_interface *wayland_types[] = { NULL, NULL, NULL, @@ -147,13 +147,13 @@ static const struct wl_interface *types[] = { }; static const struct wl_message wl_display_requests[] = { - { "sync", "n", types + 8 }, - { "get_registry", "n", types + 9 }, + { "sync", "n", wayland_types + 8 }, + { "get_registry", "n", wayland_types + 9 }, }; static const struct wl_message wl_display_events[] = { - { "error", "ous", types + 0 }, - { "delete_id", "u", types + 0 }, + { "error", "ous", wayland_types + 0 }, + { "delete_id", "u", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_display_interface = { @@ -163,12 +163,12 @@ WL_EXPORT const struct wl_interface wl_display_interface = { }; static const struct wl_message wl_registry_requests[] = { - { "bind", "usun", types + 0 }, + { "bind", "usun", wayland_types + 0 }, }; static const struct wl_message wl_registry_events[] = { - { "global", "usu", types + 0 }, - { "global_remove", "u", types + 0 }, + { "global", "usu", wayland_types + 0 }, + { "global_remove", "u", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_registry_interface = { @@ -178,7 +178,7 @@ WL_EXPORT const struct wl_interface wl_registry_interface = { }; static const struct wl_message wl_callback_events[] = { - { "done", "u", types + 0 }, + { "done", "u", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_callback_interface = { @@ -188,8 +188,8 @@ WL_EXPORT const struct wl_interface wl_callback_interface = { }; static const struct wl_message wl_compositor_requests[] = { - { "create_surface", "n", types + 10 }, - { "create_region", "n", types + 11 }, + { "create_surface", "n", wayland_types + 10 }, + { "create_region", "n", wayland_types + 11 }, }; WL_EXPORT const struct wl_interface wl_compositor_interface = { @@ -199,9 +199,9 @@ WL_EXPORT const struct wl_interface wl_compositor_interface = { }; static const struct wl_message wl_shm_pool_requests[] = { - { "create_buffer", "niiiiu", types + 12 }, - { "destroy", "", types + 0 }, - { "resize", "i", types + 0 }, + { "create_buffer", "niiiiu", wayland_types + 12 }, + { "destroy", "", wayland_types + 0 }, + { "resize", "i", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_shm_pool_interface = { @@ -211,11 +211,11 @@ WL_EXPORT const struct wl_interface wl_shm_pool_interface = { }; static const struct wl_message wl_shm_requests[] = { - { "create_pool", "nhi", types + 18 }, + { "create_pool", "nhi", wayland_types + 18 }, }; static const struct wl_message wl_shm_events[] = { - { "format", "u", types + 0 }, + { "format", "u", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_shm_interface = { @@ -225,11 +225,11 @@ WL_EXPORT const struct wl_interface wl_shm_interface = { }; static const struct wl_message wl_buffer_requests[] = { - { "destroy", "", types + 0 }, + { "destroy", "", wayland_types + 0 }, }; static const struct wl_message wl_buffer_events[] = { - { "release", "", types + 0 }, + { "release", "", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_buffer_interface = { @@ -239,17 +239,17 @@ WL_EXPORT const struct wl_interface wl_buffer_interface = { }; static const struct wl_message wl_data_offer_requests[] = { - { "accept", "u?s", types + 0 }, - { "receive", "sh", types + 0 }, - { "destroy", "", types + 0 }, - { "finish", "3", types + 0 }, - { "set_actions", "3uu", types + 0 }, + { "accept", "u?s", wayland_types + 0 }, + { "receive", "sh", wayland_types + 0 }, + { "destroy", "", wayland_types + 0 }, + { "finish", "3", wayland_types + 0 }, + { "set_actions", "3uu", wayland_types + 0 }, }; static const struct wl_message wl_data_offer_events[] = { - { "offer", "s", types + 0 }, - { "source_actions", "3u", types + 0 }, - { "action", "3u", types + 0 }, + { "offer", "s", wayland_types + 0 }, + { "source_actions", "3u", wayland_types + 0 }, + { "action", "3u", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_data_offer_interface = { @@ -259,18 +259,18 @@ WL_EXPORT const struct wl_interface wl_data_offer_interface = { }; static const struct wl_message wl_data_source_requests[] = { - { "offer", "s", types + 0 }, - { "destroy", "", types + 0 }, - { "set_actions", "3u", types + 0 }, + { "offer", "s", wayland_types + 0 }, + { "destroy", "", wayland_types + 0 }, + { "set_actions", "3u", wayland_types + 0 }, }; static const struct wl_message wl_data_source_events[] = { - { "target", "?s", types + 0 }, - { "send", "sh", types + 0 }, - { "cancelled", "", types + 0 }, - { "dnd_drop_performed", "3", types + 0 }, - { "dnd_finished", "3", types + 0 }, - { "action", "3u", types + 0 }, + { "target", "?s", wayland_types + 0 }, + { "send", "sh", wayland_types + 0 }, + { "cancelled", "", wayland_types + 0 }, + { "dnd_drop_performed", "3", wayland_types + 0 }, + { "dnd_finished", "3", wayland_types + 0 }, + { "action", "3u", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_data_source_interface = { @@ -280,18 +280,18 @@ WL_EXPORT const struct wl_interface wl_data_source_interface = { }; static const struct wl_message wl_data_device_requests[] = { - { "start_drag", "?oo?ou", types + 21 }, - { "set_selection", "?ou", types + 25 }, - { "release", "2", types + 0 }, + { "start_drag", "?oo?ou", wayland_types + 21 }, + { "set_selection", "?ou", wayland_types + 25 }, + { "release", "2", wayland_types + 0 }, }; static const struct wl_message wl_data_device_events[] = { - { "data_offer", "n", types + 27 }, - { "enter", "uoff?o", types + 28 }, - { "leave", "", types + 0 }, - { "motion", "uff", types + 0 }, - { "drop", "", types + 0 }, - { "selection", "?o", types + 33 }, + { "data_offer", "n", wayland_types + 27 }, + { "enter", "uoff?o", wayland_types + 28 }, + { "leave", "", wayland_types + 0 }, + { "motion", "uff", wayland_types + 0 }, + { "drop", "", wayland_types + 0 }, + { "selection", "?o", wayland_types + 33 }, }; WL_EXPORT const struct wl_interface wl_data_device_interface = { @@ -301,8 +301,8 @@ WL_EXPORT const struct wl_interface wl_data_device_interface = { }; static const struct wl_message wl_data_device_manager_requests[] = { - { "create_data_source", "n", types + 34 }, - { "get_data_device", "no", types + 35 }, + { "create_data_source", "n", wayland_types + 34 }, + { "get_data_device", "no", wayland_types + 35 }, }; WL_EXPORT const struct wl_interface wl_data_device_manager_interface = { @@ -312,7 +312,7 @@ WL_EXPORT const struct wl_interface wl_data_device_manager_interface = { }; static const struct wl_message wl_shell_requests[] = { - { "get_shell_surface", "no", types + 37 }, + { "get_shell_surface", "no", wayland_types + 37 }, }; WL_EXPORT const struct wl_interface wl_shell_interface = { @@ -322,22 +322,22 @@ WL_EXPORT const struct wl_interface wl_shell_interface = { }; static const struct wl_message wl_shell_surface_requests[] = { - { "pong", "u", types + 0 }, - { "move", "ou", types + 39 }, - { "resize", "ouu", types + 41 }, - { "set_toplevel", "", types + 0 }, - { "set_transient", "oiiu", types + 44 }, - { "set_fullscreen", "uu?o", types + 48 }, - { "set_popup", "ouoiiu", types + 51 }, - { "set_maximized", "?o", types + 57 }, - { "set_title", "s", types + 0 }, - { "set_class", "s", types + 0 }, + { "pong", "u", wayland_types + 0 }, + { "move", "ou", wayland_types + 39 }, + { "resize", "ouu", wayland_types + 41 }, + { "set_toplevel", "", wayland_types + 0 }, + { "set_transient", "oiiu", wayland_types + 44 }, + { "set_fullscreen", "uu?o", wayland_types + 48 }, + { "set_popup", "ouoiiu", wayland_types + 51 }, + { "set_maximized", "?o", wayland_types + 57 }, + { "set_title", "s", wayland_types + 0 }, + { "set_class", "s", wayland_types + 0 }, }; static const struct wl_message wl_shell_surface_events[] = { - { "ping", "u", types + 0 }, - { "configure", "uii", types + 0 }, - { "popup_done", "", types + 0 }, + { "ping", "u", wayland_types + 0 }, + { "configure", "uii", wayland_types + 0 }, + { "popup_done", "", wayland_types + 0 }, }; WL_EXPORT const struct wl_interface wl_shell_surface_interface = { @@ -347,21 +347,21 @@ WL_EXPORT const struct wl_interface wl_shell_surface_interface = { }; static const struct wl_message wl_surface_requests[] = { - { "destroy", "", types + 0 }, - { "attach", "?oii", types + 58 }, - { "damage", "iiii", types + 0 }, - { "frame", "n", types + 61 }, - { "set_opaque_region", "?o", types + 62 }, - { "set_input_region", "?o", types + 63 }, - { "commit", "", types + 0 }, - { "set_buffer_transform", "2i", types + 0 }, - { "set_buffer_scale", "3i", types + 0 }, - { "damage_buffer", "4iiii", types + 0 }, + { "destroy", "", wayland_types + 0 }, + { "attach", "?oii", wayland_types + 58 }, + { "damage", "iiii", wayland_types + 0 }, + { "frame", "n", wayland_types + 61 }, + { "set_opaque_region", "?o", wayland_types + 62 }, + { "set_input_region", "?o", wayland_types + 63 }, + { "commit", "", wayland_types + 0 }, + { "set_buffer_transform", "2i", wayland_types + 0 }, + { "set_buffer_scale", "3i", wayland_types + 0 }, + { "damage_buffer", "4iiii", wayland_types + 0 }, }; static const struct wl_message wl_surface_events[] = { - { "enter", "o", types + 64 }, - { "leave", "o", types + 65 }, + { "enter", "o", wayland_types + 64 }, + { "leave", "o", wayland_types + 65 }, }; WL_EXPORT const struct wl_interface wl_surface_interface = { @@ -371,15 +371,15 @@ WL_EXPORT const struct wl_interface wl_surface_interface = { }; static const struct wl_message wl_seat_requests[] = { - { "get_pointer", "n", types + 66 }, - { "get_keyboard", "n", types + 67 }, - { "get_touch", "n", types + 68 }, - { "release", "5", types + 0 }, + { "get_pointer", "n", wayland_types + 66 }, + { "get_keyboard", "n", wayland_types + 67 }, + { "get_touch", "n", wayland_types + 68 }, + { "release", "5", wayland_types + 0 }, }; static const struct wl_message wl_seat_events[] = { |
