wlroots/util/version.c
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

13 lines
217 B
C

#include "wlr/version.h"
int wlr_version_get_major(void) {
return WLR_VERSION_MAJOR;
}
int wlr_version_get_minor(void) {
return WLR_VERSION_MINOR;
}
int wlr_version_get_micro(void) {
return WLR_VERSION_MICRO;
}