Add version information to wl_message signatures.
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 28 Jun 2013 01:09:19 +0000 (20:09 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 2 Jul 2013 19:52:47 +0000 (15:52 -0400)
commitd35b6278c0a4b731fcd2464c848a1c3ab5ec93a4
treeecc7640fa2b7490c9223aee851659e6b9d185a80
parentd94a8722cb29d8b897672be66ff3c9ff79eab6fe
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>
src/connection.c
src/scanner.c
src/wayland-private.h