client: drop wl_resource typedef

this conflicts with some custom wl extension headers

todo: stop using 'wl_resource' in client code altogether...
This commit is contained in:
Vaxry 2024-12-29 18:02:59 +01:00
parent 4d7367b6ee
commit c0c13f07a0

View file

@ -254,7 +254,7 @@ void parseHeader() {
)#", )#",
(clientCode ? "#include <wayland-client.h>" : "#include <wayland-server.h>"), (clientCode ? "#include <wayland-client.h>" : "#include <wayland-server.h>"),
(clientCode ? "struct wl_proxy;\ntypedef wl_proxy wl_resource;" : "struct wl_client;\nstruct wl_resource;")); (clientCode ? "struct wl_proxy;\n#define wl_resource wl_proxy" : "struct wl_client;\nstruct wl_resource;"));
// parse all enums // parse all enums
if (!waylandEnums) { if (!waylandEnums) {
@ -503,7 +503,7 @@ class {} {{
HEADER += "\n};\n\n"; HEADER += "\n};\n\n";
} }
HEADER += "\n\n#undef F\n"; HEADER += "\n\n#undef F\n#undef wl_resource\n";
} }
void parseSource() { void parseSource() {