aboutsummaryrefslogtreecommitdiff
path: root/include/device.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-17 17:49:20 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:48 +0100
commit6061ee1af573147e41a0834d1c6628eda2fa2f7c (patch)
tree6c6472d0d18970b9212d393e722ffba5d02ebb73 /include/device.h
parent5650e48b114529075d89dbdde0330901351b8460 (diff)
downloadlibnitrokey-6061ee1af573147e41a0834d1c6628eda2fa2f7c.tar.gz
libnitrokey-6061ee1af573147e41a0834d1c6628eda2fa2f7c.tar.bz2
Rename is_connected to be more specific
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device.h')
-rw-r--r--include/device.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/device.h b/include/device.h
index 40eb376..5d7ee12 100644
--- a/include/device.h
+++ b/include/device.h
@@ -77,7 +77,12 @@ public:
*/
virtual int recv(void *packet);
- bool is_connected();
+ /***
+ * Returns true if some device is visible by OS with given VID and PID
+ * whether the device is connected through HID API or not.
+ * @return true if visible by OS
+ */
+ bool could_be_enumerated();
void show_stats();
// ErrorCounters get_stats(){ return m_counters; }