|
| 1 | +/* Shared wayland type definitions for vscanner-generated protocols */ |
| 2 | +#ifndef VSCANNER_WL_TYPES_H |
| 3 | +#define VSCANNER_WL_TYPES_H |
| 4 | + |
| 5 | +#include <wayland-client.h> |
| 6 | + |
| 7 | +#ifdef __cplusplus |
| 8 | +extern "C" { |
| 9 | +#endif |
| 10 | + |
| 11 | +/* Define wayland type descriptors */ |
| 12 | +static const struct wl_interface _vs_wl_type_int = { "int", 0, 0, 0, 0, 0 }; |
| 13 | +static const struct wl_interface _vs_wl_type_uint = { "uint", 0, 0, 0, 0, 0 }; |
| 14 | +static const struct wl_interface _vs_wl_type_fixed = { "fixed", 0, 0, 0, 0, 0 }; |
| 15 | +static const struct wl_interface _vs_wl_type_string = { "string", 0, 0, 0, 0, 0 }; |
| 16 | +static const struct wl_interface _vs_wl_type_object = { "object", 0, 0, 0, 0, 0 }; |
| 17 | +static const struct wl_interface _vs_wl_type_new_id = { "new_id", 0, 0, 0, 0, 0 }; |
| 18 | +static const struct wl_interface _vs_wl_type_array = { "array", 0, 0, 0, 0, 0 }; |
| 19 | +static const struct wl_interface _vs_wl_type_fd = { "fd", 0, 0, 0, 0, 0 }; |
| 20 | + |
| 21 | +/* Macros for type references */ |
| 22 | +#define vs_wl_type_int (&_vs_wl_type_int) |
| 23 | +#define vs_wl_type_uint (&_vs_wl_type_uint) |
| 24 | +#define vs_wl_type_fixed (&_vs_wl_type_fixed) |
| 25 | +#define vs_wl_type_string (&_vs_wl_type_string) |
| 26 | +#define vs_wl_type_object (&_vs_wl_type_object) |
| 27 | +#define vs_wl_type_new_id (&_vs_wl_type_new_id) |
| 28 | +#define vs_wl_type_array (&_vs_wl_type_array) |
| 29 | +#define vs_wl_type_fd (&_vs_wl_type_fd) |
| 30 | + |
| 31 | +#ifdef __cplusplus |
| 32 | +} |
| 33 | +#endif |
| 34 | + |
| 35 | +#endif /* VSCANNER_WL_TYPES_H */ |
0 commit comments