diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-02-16 15:17:47 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-02-28 20:07:14 +0100 |
commit | 38c3b4c58e6c6b86d6241183be1814bac2e037d2 (patch) | |
tree | 2f5dd6ea25a64f446133c48209ceb53fd4615d71 /include/NitrokeyManager.h | |
parent | d6ae8192be443749fcd1f593db0f9be4d039da93 (diff) | |
download | libnitrokey-38c3b4c58e6c6b86d6241183be1814bac2e037d2.tar.gz libnitrokey-38c3b4c58e6c6b86d6241183be1814bac2e037d2.tar.bz2 |
Log current device ID
Allow logger to set global prefix
Used to indicate current device
Store USB path when used to connection as well
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/NitrokeyManager.h')
-rw-r--r-- | include/NitrokeyManager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h index 7ce432f..5a76616 100644 --- a/include/NitrokeyManager.h +++ b/include/NitrokeyManager.h @@ -203,6 +203,11 @@ char * strndup(const char* str, size_t maxlen); static shared_ptr <NitrokeyManager> _instance; std::shared_ptr<Device> device; + std::string current_device_id; + public: + const string get_current_device_id() const; + + private: std::unordered_map<std::string, shared_ptr<Device> > connected_devices; std::unordered_map<std::string, shared_ptr<Device> > connected_devices_byID; |