diff options
author | Elie Tournier <tournier.elie@gmail.com> | 2017-04-20 14:06:56 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-11-02 16:10:06 +0100 |
commit | dab6f2bcf292dfd6ee629a4ad9b2216e104d7c1d (patch) | |
tree | 5cba9802797b105365d263dcdbce734975553b36 /NK_C_API.h | |
parent | 7797c8fb5fa69068dd659c369bc774ca74f592fe (diff) | |
download | libnitrokey-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |