summaryrefslogtreecommitdiff
path: root/include/device.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-28 14:36:59 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:58 +0200
commitdebee8aa477fbec7c1c23d5dec565de11241f814 (patch)
tree4e95f150e8936f09c941792c226b625da20f7fcb /include/device.h
parent349b7b65583ec2366511823b0c0f3bac3c23d642 (diff)
downloadlibnitrokey-debee8aa477fbec7c1c23d5dec565de11241f814.tar.gz
libnitrokey-debee8aa477fbec7c1c23d5dec565de11241f814.tar.bz2
Use int instead of CommError
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device.h')
-rw-r--r--include/device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/device.h b/include/device.h
index c4e2747..1c95c56 100644
--- a/include/device.h
+++ b/include/device.h
@@ -31,13 +31,13 @@ class Device {
/*
* Sends packet of HID_REPORT_SIZE.
*/
- virtual CommError send(const void *packet);
+ virtual int send(const void *packet);
/*
* Gets packet of HID_REPORT_SIZE.
* Can sleep. See below.
*/
- virtual CommError recv(void *packet);
+ virtual int recv(void *packet);
int get_retry_count() const { return m_retry_count; };
std::chrono::milliseconds get_retry_timeout() const { return m_retry_timeout; };