diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-11-03 18:22:02 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-11-26 18:56:29 +0100 |
commit | cdd16f3f184b2745094da39de3f815aea6633fdb (patch) | |
tree | ad2a4513b1ad01b225a519ac10cafa3e583a26a1 /NK_C_API.cc | |
parent | 8d4bff3590191e369be02bbe0fbf858ab8930f52 (diff) | |
download | libnitrokey-cdd16f3f184b2745094da39de3f815aea6633fdb.tar.gz libnitrokey-cdd16f3f184b2745094da39de3f815aea6633fdb.tar.bz2 |
Rename methods in API to make string return more obvious
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index aeb6920..d42840b 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -450,17 +450,17 @@ extern int NK_change_update_password(const char* current_update_password, }); } -extern const char* NK_get_status_storage() { +extern const char* NK_get_status_storage_as_string() { auto m = NitrokeyManager::instance(); return get_with_string_result([&](){ - return m->get_status_storage(); + return m->get_status_storage_as_string(); }); } -extern const char* NK_get_SD_usage_data() { +extern const char* NK_get_SD_usage_data_as_string() { auto m = NitrokeyManager::instance(); return get_with_string_result([&](){ - return m->get_SD_usage_data(); + return m->get_SD_usage_data_as_string(); }); } |