scanner: Generate macros for getting the 'since' version of an event
authorJonas Ådahl <jadahl@gmail.com>
Thu, 8 May 2014 21:39:49 +0000 (23:39 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 9 May 2014 21:33:20 +0000 (14:33 -0700)
commit35be5a7c65a47e3547c5b6250141e135ee109a6d
treeec811ace65611ced95669170dd55ad454c5eb71a
parente2b1218422e37a88e68f75a0d5b2f649330e4d9b
scanner: Generate macros for getting the 'since' version of an event

This could be useful for compositors who need to be able to not send
events if the client bound a version lower than the newest provided.

Event version numbers are exposed as
[INTERFACE_NAME]_[EVENT_NAME]_SINCE_VERSION for example wl_output.scale
will have the version macro WL_OUTPUT_SCALE_SINCE_VERSION.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/scanner.c