summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2010-07-22 19:57:17 +0000
committerNikolai Kondrashov <spbnick@gmail.com>2010-07-22 19:57:17 +0000
commit6ccaebe047e0516d558fce5ec43da25f2bf6de86 (patch)
treee608289c67fe91fa803eb51038451f1b77735f98 /include
parent17571c90cb9faa230c6b68fd4770c12e905ca409 (diff)
downloadusbhid-dump-6ccaebe047e0516d558fce5ec43da25f2bf6de86.tar.gz
Added transfer cancellation.
Diffstat (limited to 'include')
-rw-r--r--include/hid_dump/iface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hid_dump/iface.h b/include/hid_dump/iface.h
index e5e0e73..35ad615 100644
--- a/include/hid_dump/iface.h
+++ b/include/hid_dump/iface.h
@@ -48,6 +48,15 @@ struct hid_dump_iface {
driver, false otherwise */
bool claimed; /**< True if the interface was
claimed */
+ /*
+ * This is somewhat hackish and doesn't belong here, since theoretically
+ * there could be more than one transfer submitted for an interface.
+ * However, we don't do it yet. This flag is used to track transfer
+ * cancellation during stream dumping.
+ */
+ bool submitted; /**< True if an asynchronous
+ transfer has been submitted
+ for the interface */
};
extern bool hid_dump_iface_valid(const hid_dump_iface *iface);