wlroots/include/wlr/version.h.in
tokyo4j ba931024a5 Add wlr_version_get_{major,minor,micro}()
Can be used to detect wlroots version at runtime rather than
compile-time.
2025-12-13 11:06:28 +00:00

17 lines
412 B
C

#ifndef WLR_VERSION_H
#define WLR_VERSION_H
#mesondefine WLR_VERSION_STR
#mesondefine WLR_VERSION_MAJOR
#mesondefine WLR_VERSION_MINOR
#mesondefine WLR_VERSION_MICRO
#define WLR_VERSION_NUM ((WLR_VERSION_MAJOR << 16) | (WLR_VERSION_MINOR << 8) | WLR_VERSION_MICRO)
/* For runtime version detection */
int wlr_version_get_major(void);
int wlr_version_get_minor(void);
int wlr_version_get_micro(void);
#endif