mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-20 01:40:52 -05:00
scanner: add defines for wayland interface versions
Currently, it is cumbersome for clients that want to know what version of an interface is supported at compile time. This can especially matter in cases where the compositor and client aren't neccesarily compiled against the same wayland and wayland protocol versions. Provide more information by adding a simple int define for all interfaces that give the version that is already defined in the source xml file. Signed-off-by: Dudemanguy <random342@airmail.cc>
This commit is contained in:
parent
6137c8c213
commit
ab4c580480
9 changed files with 262 additions and 0 deletions
|
|
@ -45,6 +45,11 @@ struct empty_interface {
|
|||
struct wl_resource *resource);
|
||||
};
|
||||
|
||||
/**
|
||||
* @ingroup iface_empty
|
||||
*/
|
||||
#define EMPTY_MAX_VERSION 1
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue