diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-01-11 16:04:52 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-01-11 16:04:52 +0100 |
commit | c2d3de8820cc2ad3f394b6672853af257d32e6f6 (patch) | |
tree | 5adebf80eb9ff293694146ac48363c2fc8ae2c30 /NK_C_API.cc | |
parent | 0c6f3234acea5888dd6c3c3aeee8cebcce59ba06 (diff) | |
download | libnitrokey-c2d3de8820cc2ad3f394b6672853af257d32e6f6.tar.gz libnitrokey-c2d3de8820cc2ad3f394b6672853af257d32e6f6.tar.bz2 |
Helper functions for getting device state
get status for Pro and Storage
check is device connected
use make_shared for keeping instance reference
fixed accessing active volume flag
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index e513a3b..224a3a8 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -168,7 +168,7 @@ void clear_string(std::string &s){ extern const char * NK_status() { auto m = NitrokeyManager::instance(); return get_with_string_result([&](){ - string && s = m->get_status(); + string && s = m->get_status_as_string(); char * rs = strdup(s.c_str()); clear_string(s); return rs; |