From dab6f2bcf292dfd6ee629a4ad9b2216e104d7c1d Mon Sep 17 00:00:00 2001 From: Elie Tournier Date: Thu, 20 Apr 2017 14:06:56 +0100 Subject: Add a getter for the library version. This value is save when running CMake. Signed-off-by: Elie Tournier --- NK_C_API.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'NK_C_API.h') diff --git a/NK_C_API.h b/NK_C_API.h index 3742b43..96e5836 100644 --- a/NK_C_API.h +++ b/NK_C_API.h @@ -475,6 +475,14 @@ extern "C" { */ NK_C_API int NK_get_progress_bar_value(); + /** + * Return the version of the library. + * If a git tag is available, return it else return the git version. + * This value is defined at the compilation time. + * @return the version of the library + */ + NK_C_API const char * NK_version(); + #ifdef __cplusplus } #endif -- cgit v1.2.3