aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey/device.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-06-15 19:15:17 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-06-15 19:15:17 +0200
commit3dd267e062a2f3e182d84f15e13b15b6dd4958e0 (patch)
tree8994b48f6aa359bc52694f1b732c7f1b5ffc4184 /libnitrokey/device.h
parentdd0cdcd2130699be8dde5dbadcf18cd9c00ef78f (diff)
parent89a73d88c9026b6347bea113896d24e419c4370c (diff)
downloadlibnitrokey-3dd267e062a2f3e182d84f15e13b15b6dd4958e0.tar.gz
libnitrokey-3dd267e062a2f3e182d84f15e13b15b6dd4958e0.tar.bz2
Merge branch 'master' into get_status
Update to latest codebase
Diffstat (limited to 'libnitrokey/device.h')
-rw-r--r--libnitrokey/device.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/libnitrokey/device.h b/libnitrokey/device.h
index d50080d..917e0d0 100644
--- a/libnitrokey/device.h
+++ b/libnitrokey/device.h
@@ -50,7 +50,8 @@ namespace device {
enum class DeviceModel{
PRO,
- STORAGE
+ STORAGE,
+ LIBREM
};
std::ostream& operator<<(std::ostream& stream, DeviceModel model);
@@ -67,12 +68,21 @@ extern const uint16_t NITROKEY_PRO_PID;
* The USB product ID for the Nitrokey Storage.
*/
extern const uint16_t NITROKEY_STORAGE_PID;
+/**
+ * The USB vendor ID for Purism devices.
+ */
+extern const uint16_t PURISM_VID;
+/**
+ * The USB product ID for the Librem Key.
+ */
+extern const uint16_t LIBREM_KEY_PID;
/**
* Convert the given USB product ID to a Nitrokey model. If there is no model
* with that ID, return an absent value.
*/
misc::Option<DeviceModel> product_id_to_model(uint16_t product_id);
+misc::Option<DeviceModel> product_id_to_model(uint16_t vendor_id, uint16_t product_id);
/**
* Information about a connected device.
@@ -219,6 +229,12 @@ class Stick20 : public Device {
public:
Stick20();
};
+
+class LibremKey : public Device {
+ public:
+ LibremKey();
+};
+
}
}
#endif