aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-03 18:22:02 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:29 +0100
commitcdd16f3f184b2745094da39de3f815aea6633fdb (patch)
treead2a4513b1ad01b225a519ac10cafa3e583a26a1 /NitrokeyManager.cc
parent8d4bff3590191e369be02bbe0fbf858ab8930f52 (diff)
downloadlibnitrokey-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 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index bba06a3..20f4f14 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -491,9 +491,8 @@ namespace nitrokey{
void NitrokeyManager::send_startup(uint64_t seconds_from_epoch){
auto p = get_payload<stick20::SendStartup>();
-// p.set_defaults();
+// p.set_defaults(); //set current time
p.localtime = seconds_from_epoch;
- //auto device_status =
stick20::SendStartup::CommandTransaction::run(*device, p);
}
@@ -547,12 +546,12 @@ namespace nitrokey{
stick20::ChangeUpdatePassword::CommandTransaction::run(*device, p);
}
- const char * NitrokeyManager::get_status_storage(){
+ const char * NitrokeyManager::get_status_storage_as_string(){
auto p = stick20::GetDeviceStatus::CommandTransaction::run(*device);
return strdup(p.data().dissect().c_str());
}
- const char * NitrokeyManager::get_SD_usage_data(){
+ const char * NitrokeyManager::get_SD_usage_data_as_string(){
auto p = stick20::GetSDCardOccupancy::CommandTransaction::run(*device);
return strdup(p.data().dissect().c_str());
}