diff options
author | Robin Krahl <me@robin-krahl.de> | 2019-01-13 12:03:34 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2019-01-13 12:03:34 +0100 |
commit | 4a7ce051bd4004fb62f1c7022d92efa2ce42b6ab (patch) | |
tree | 35eef9d44c5c9a6413131599ddacb51e5c1ff140 /libnitrokey | |
parent | eb55579c1c0e03ea98372280a344c79bb52a1f1a (diff) | |
download | libnitrokey-4a7ce051bd4004fb62f1c7022d92efa2ce42b6ab.tar.gz libnitrokey-4a7ce051bd4004fb62f1c7022d92efa2ce42b6ab.tar.bz2 |
Change Device::enumerate return type to use DeviceInfo
The return type of Device::enumerate is changed from
std::vector<std::string> to std::vector<DeviceInfo> to expose the
additional information contained in the DeviceInfo struct.
Diffstat (limited to 'libnitrokey')
-rw-r--r-- | libnitrokey/device.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libnitrokey/device.h b/libnitrokey/device.h index 1183c9c..1a84402 100644 --- a/libnitrokey/device.h +++ b/libnitrokey/device.h @@ -127,7 +127,13 @@ public: * @return true if visible by OS */ bool could_be_enumerated(); - std::vector<std::string> enumerate(); + /** + * Returns a vector with all connected Nitrokey devices of the same device + * type as this device. + * + * @return information about all connected devices + */ + std::vector<DeviceInfo> enumerate(); void show_stats(); |