summaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-12-06 19:56:14 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-12-06 19:56:42 +0100
commit740b85c7f935029003e205dcbb5d49842eac1ad6 (patch)
tree7cfbc8f2ea79499ee5d3beaf1770746791deed19 /NK_C_API.cc
parentf4b1f29058f55a716cb6e4e8a4f9bf0e6c7332fe (diff)
downloadlibnitrokey-740b85c7f935029003e205dcbb5d49842eac1ad6.tar.gz
libnitrokey-740b85c7f935029003e205dcbb5d49842eac1ad6.tar.bz2
Get major firmware version
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index d42840b..e513a3b 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -471,6 +471,13 @@ extern int NK_get_progress_bar_value() {
});
}
+extern int NK_get_major_firmware_version(){
+ auto m = NitrokeyManager::instance();
+ return get_with_result([&](){
+ return m->get_major_firmware_version();
+ });
+}
+
}