aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-03 13:51:59 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:29 +0100
commitfe36daa38ab1995c8c7fc6470d06b8595efd2385 (patch)
tree1dd4b5bf18537ed16ac31df331b0983fd9d08a65 /NK_C_API.cc
parent130a33311567a1f0f6a9a2d8707bff20a558eb20 (diff)
downloadlibnitrokey-fe36daa38ab1995c8c7fc6470d06b8595efd2385.tar.gz
libnitrokey-fe36daa38ab1995c8c7fc6470d06b8595efd2385.tar.bz2
Tests: remake fill SD card test. Get progress bar value when busy.
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
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 fc6d3c5..2a28ede 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -464,6 +464,13 @@ extern const char* NK_get_SD_usage_data() {
});
}
+extern int NK_get_progress_bar_value() {
+ auto m = NitrokeyManager::instance();
+ return get_with_result([&](){
+ return m->get_progress_bar_value();
+ });
+}
+
}