mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
scanner: Remove unused forward decs from client protocol
wayland-client-protocol.h had forward declarations for wl_client and wl_resource, yet nothing on the client side references these types. Add a 'side' condition to only generate these forward declarations in the server protocol header. Signed-off-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: <pekka.paalanen@collabora.co.uk> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
cc11b49342
commit
97fef48213
1 changed files with 4 additions and 4 deletions
|
|
@ -1477,13 +1477,13 @@ emit_header(struct protocol *protocol, enum side side)
|
||||||
"#include \"%s\"\n\n"
|
"#include \"%s\"\n\n"
|
||||||
"#ifdef __cplusplus\n"
|
"#ifdef __cplusplus\n"
|
||||||
"extern \"C\" {\n"
|
"extern \"C\" {\n"
|
||||||
"#endif\n"
|
"#endif\n\n",
|
||||||
"\n"
|
|
||||||
"struct wl_client;\n"
|
|
||||||
"struct wl_resource;\n\n",
|
|
||||||
protocol->uppercase_name, s,
|
protocol->uppercase_name, s,
|
||||||
protocol->uppercase_name, s,
|
protocol->uppercase_name, s,
|
||||||
get_include_name(protocol->core_headers, side));
|
get_include_name(protocol->core_headers, side));
|
||||||
|
if (side == SERVER)
|
||||||
|
printf("struct wl_client;\n"
|
||||||
|
"struct wl_resource;\n\n");
|
||||||
|
|
||||||
emit_mainpage_blurb(protocol, side);
|
emit_mainpage_blurb(protocol, side);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue