aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnitrokey/device.h')
-rw-r--r--libnitrokey/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libnitrokey/device.h b/libnitrokey/device.h
index 477640f..8fbb385 100644
--- a/libnitrokey/device.h
+++ b/libnitrokey/device.h
@@ -26,6 +26,7 @@
#include <cstdint>
#include <string>
#include <vector>
+#include "misc.h"
#define HID_REPORT_SIZE 65
@@ -64,6 +65,12 @@ extern const uint16_t NITROKEY_PRO_PID;
extern const uint16_t NITROKEY_STORAGE_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);
+
+/**
* Information about a connected device.
*
* This struct contains the information about a connected device returned by