mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
scanner: Include weston-client.h as the inline functions require it
This commit is contained in:
parent
b4aff6b79f
commit
e7e1296682
1 changed files with 3 additions and 2 deletions
|
|
@ -868,11 +868,12 @@ emit_header(struct protocol *protocol, int server)
|
||||||
"\n"
|
"\n"
|
||||||
"#include <stdint.h>\n"
|
"#include <stdint.h>\n"
|
||||||
"#include <stddef.h>\n"
|
"#include <stddef.h>\n"
|
||||||
"#include \"wayland-util.h\"\n\n"
|
"#include \"%s\"\n\n"
|
||||||
"struct wl_client;\n"
|
"struct wl_client;\n"
|
||||||
"struct wl_resource;\n\n",
|
"struct wl_resource;\n\n",
|
||||||
protocol->uppercase_name, s,
|
protocol->uppercase_name, s,
|
||||||
protocol->uppercase_name, s);
|
protocol->uppercase_name, s,
|
||||||
|
server ? "wayland-util.h" : "wayland-client.h");
|
||||||
|
|
||||||
wl_list_for_each(i, &protocol->interface_list, link)
|
wl_list_for_each(i, &protocol->interface_list, link)
|
||||||
printf("struct %s;\n", i->name);
|
printf("struct %s;\n", i->name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue