| Summary: | [PATCH] wayland-scanner client-header generates code that needs to include wayland-client.h | ||
|---|---|---|---|
| Product: | Wayland | Reporter: | Robert Ancell <robert.ancell> |
| Component: | wayland | Assignee: | Wayland bug list <wayland-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: | Include weston-client.h as the inline functions require it | ||
|
Description
Robert Ancell
2012-07-04 21:35:41 UTC
Thanks. I committed your patch with a slight change:
diff --git a/src/scanner.c b/src/scanner.c
index 0076d92..50e26c1 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -868,11 +868,12 @@ emit_header(struct protocol *protocol, int server)
"\n"
"#include <stdint.h>\n"
"#include <stddef.h>\n"
- "#include \"wayland-util.h\"\n\n"
+ "#include \"%s\"\n\n"
"struct wl_client;\n"
"struct wl_resource;\n\n",
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)
printf("struct %s;\n", i->name);
since we can't include wayland-client.h in the server side protocol header.
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.