aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2019-01-13 12:04:42 +0100
committerRobin Krahl <me@robin-krahl.de>2019-01-13 13:26:59 +0100
commit66763febd7990f35d34345175257b2ad9401e829 (patch)
tree837b0f6867dc91ae257067de3d25ba7adc17b4a7 /libnitrokey
parent14635f49813df1699569d3b13456ea33955de54b (diff)
downloadlibnitrokey-66763febd7990f35d34345175257b2ad9401e829.tar.gz
libnitrokey-66763febd7990f35d34345175257b2ad9401e829.tar.bz2
Implement operator<< for DeviceModel
Diffstat (limited to 'libnitrokey')
-rw-r--r--libnitrokey/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnitrokey/device.h b/libnitrokey/device.h
index eab3888..4b1c239 100644
--- a/libnitrokey/device.h
+++ b/libnitrokey/device.h
@@ -26,6 +26,7 @@
#include <cstdint>
#include <memory>
#include <string>
+#include <ostream>
#include <vector>
#include "misc.h"
@@ -52,6 +53,8 @@ enum class DeviceModel{
STORAGE
};
+std::ostream& operator<<(std::ostream& stream, DeviceModel model);
+
/**
* The USB vendor ID for Nitrokey devices.
*/