diff options
| author | Jason Ekstrand <jason@jlekstrand.net> | 2013-06-27 20:09:19 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-02 15:52:47 -0400 |
| commit | d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4 (patch) | |
| tree | ecc7640fa2b7490c9223aee851659e6b9d185a80 /src/scanner.c | |
| parent | server: Make wl_object and wl_resource opaque structs (diff) | |
| download | wayland-d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4.tar wayland-d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4.tar.gz wayland-d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4.tar.bz2 wayland-d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4.tar.lz wayland-d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4.tar.xz wayland-d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4.tar.zst wayland-d35b6278c0a4b731fcd2464c848a1c3ab5ec93a4.zip | |
Add version information to wl_message signatures.
This commit adds version information to wl_message signatures and a
wl_message_get_since function to retrieve. The since version comes in the
form of a (possible) integer at the begining of the message. If the
message starts with an integer, then it specifies the "since" version of
that message. Messages present in version one do not get this "since"
information. In this way we can run-time detect the version information
for a structure on a per-message basis.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/scanner.c')
| -rw-r--r-- | src/scanner.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scanner.c b/src/scanner.c index c63c908..cc3a745 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -1033,6 +1033,10 @@ emit_messages(struct wl_list *message_list, wl_list_for_each(m, message_list, link) { printf("\t{ \"%s\", \"", m->name); + + if (m->since > 1) + printf("%d", m->since); + wl_list_for_each(a, &m->arg_list, link) { if (is_nullable_type(a) && a->nullable) printf("?"); |
