data handler: add close method
Add the close method which, when called should turn off whatever bridge
was used.
Change-Id: Idbf16bd6777d0b9c3f537d0b9d3fdff22e7c319e
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/data_handler.hpp b/data_handler.hpp
index 6c660c8..1bee432 100644
--- a/data_handler.hpp
+++ b/data_handler.hpp
@@ -23,6 +23,13 @@
virtual bool open() = 0;
/**
+ * Close the data transport mechanism.
+ *
+ * @return true if successful
+ */
+ virtual bool close() = 0;
+
+ /**
* Copy bytes from external interface (blocking call).
*
* @param[in] length - number of bytes to copy