aboutsummaryrefslogtreecommitdiffstats
path: root/src/scanner.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2015-10-08 11:00:54 +0800
committerJonas Ådahl <jadahl@gmail.com>2015-10-09 21:02:03 +0800
commit9ebdcab1096acacffc3509888219d28a4c28a57d (patch)
tree674a724565294b79c39d49778629404f9a8866a1 /src/scanner.c
parentclient: Move prepare read documentation to .._prepare_read_queue() (diff)
downloadwayland-9ebdcab1096acacffc3509888219d28a4c28a57d.tar
wayland-9ebdcab1096acacffc3509888219d28a4c28a57d.tar.gz
wayland-9ebdcab1096acacffc3509888219d28a4c28a57d.tar.bz2
wayland-9ebdcab1096acacffc3509888219d28a4c28a57d.tar.lz
wayland-9ebdcab1096acacffc3509888219d28a4c28a57d.tar.xz
wayland-9ebdcab1096acacffc3509888219d28a4c28a57d.tar.zst
wayland-9ebdcab1096acacffc3509888219d28a4c28a57d.zip
scanner: Generate 'since' macros for requests as well
We already generate WL_[INTERFACE]_[REQUEST]_SINCE_VERSION macros for events in the server protocol headers. Lets do the same for requests in the client protocol headers as well. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: David FORT <contact@hardening-consulting.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'src/scanner.c')
-rw-r--r--src/scanner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 5504fce..f456aa5 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1270,6 +1270,7 @@ emit_header(struct protocol *protocol, enum side side)
} else {
emit_structs(&i->event_list, i, side);
emit_opcodes(&i->request_list, i);
+ emit_opcode_versions(&i->request_list, i);
emit_stubs(&i->request_list, i);
}