aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 12:21:44 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 13:44:31 +0200
commit444a6cb764fbcea3c91ae936b1c76a190f935b10 (patch)
treee71db7c62a71bbe62054adc43ccc707a751e8fcd /libnitrokey
parent4200af146a17398dc7050c92e1f861f2066debec (diff)
downloadlibnitrokey-444a6cb764fbcea3c91ae936b1c76a190f935b10.tar.gz
libnitrokey-444a6cb764fbcea3c91ae936b1c76a190f935b10.tar.bz2
Revert API change
Remove the change to keep binary compatibility. Use the vendor_id field from the dev description.
Diffstat (limited to 'libnitrokey')
-rw-r--r--libnitrokey/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnitrokey/device.h b/libnitrokey/device.h
index d39310a..917e0d0 100644
--- a/libnitrokey/device.h
+++ b/libnitrokey/device.h
@@ -81,6 +81,7 @@ 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);
/**