diff options
| -rw-r--r-- | libnitrokey/device.h | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/libnitrokey/device.h b/libnitrokey/device.h index f6d2380..1183c9c 100644 --- a/libnitrokey/device.h +++ b/libnitrokey/device.h @@ -50,6 +50,27 @@ enum class DeviceModel{      STORAGE  }; +/** + * Information about a connected device. + * + * This struct contains the information about a connected device returned by + * hidapi when enumerating the connected devices. + */ +struct DeviceInfo { +    /** +     * The model of the connected device. +     */ +    DeviceModel m_deviceModel; +    /** +     * The USB connection path for the device. +     */ +    std::string m_path; +    /** +     * The serial number of the device. +     */ +    std::wstring m_serialNumber; +}; +  #include <atomic>  class Device { | 
