diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-11-09 19:22:46 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-12-03 16:01:49 +0100 |
commit | 2ba87abdb5c69e3d72b88164030ed5633986a63d (patch) | |
tree | 306d12e51452ed53a09ad7132f19ded512d652f6 /include/device.h | |
parent | b94d61b2f3c446c46ac2f660d954841d740782f5 (diff) | |
download | libnitrokey-2ba87abdb5c69e3d72b88164030ed5633986a63d.tar.gz libnitrokey-2ba87abdb5c69e3d72b88164030ed5633986a63d.tar.bz2 |
Convinient function for checking if authorization command is supported
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device.h')
-rw-r--r-- | include/device.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h index 3f18921..62c4073 100644 --- a/include/device.h +++ b/include/device.h @@ -12,6 +12,15 @@ namespace nitrokey { namespace device { using namespace std::chrono_literals; + struct EnumClassHash + { + template <typename T> + std::size_t operator()(T t) const + { + return static_cast<std::size_t>(t); + } + }; + enum class DeviceModel{ PRO, STORAGE |