diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-28 12:00:51 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-01-29 16:37:02 +0100 |
commit | b2f35949dec2251aeb162324864292cdd7596c9b (patch) | |
tree | 2538baca7bd4ab3c47e74ad1a1642409cc0371ce /NK_C_API.cc | |
parent | d82829f6fc0f55d3eddcf26d14637883541ce452 (diff) | |
download | libnitrokey-b2f35949dec2251aeb162324864292cdd7596c9b.tar.gz libnitrokey-b2f35949dec2251aeb162324864292cdd7596c9b.tar.bz2 |
Replace NK_status with NK_get_status_as_string
For naming consistency, this patch adds the NK_get_status_as_string
function to replace NK_status and marks NK_status as deprecated.
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 6905ef4..e560c3f 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -252,6 +252,10 @@ extern "C" { NK_C_API char * NK_status() { + return NK_get_status_as_string(); + } + + NK_C_API char * NK_get_status_as_string() { auto m = NitrokeyManager::instance(); return get_with_string_result([&]() { string && s = m->get_status_as_string(); |