aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorElie Tournier <tournier.elie@gmail.com>2017-04-20 14:06:56 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-11-02 16:10:06 +0100
commitdab6f2bcf292dfd6ee629a4ad9b2216e104d7c1d (patch)
tree5cba9802797b105365d263dcdbce734975553b36 /NK_C_API.h
parent7797c8fb5fa69068dd659c369bc774ca74f592fe (diff)
downloadlibnitrokey-dab6f2bcf292dfd6ee629a4ad9b2216e104d7c1d.tar.gz
libnitrokey-dab6f2bcf292dfd6ee629a4ad9b2216e104d7c1d.tar.bz2
Add a getter for the library version.
This value is save when running CMake. Signed-off-by: Elie Tournier <tournier.elie@gmail.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r--NK_C_API.h8
1 files changed, 8 insertions, 0 deletions
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