aboutsummaryrefslogtreecommitdiff
path: root/rmidevice/rmidevice.cpp
diff options
context:
space:
mode:
authorAndrew Duggan <aduggan@synaptics.com>2016-05-17 13:30:06 -0700
committerAndrew Duggan <aduggan@synaptics.com>2016-05-17 13:30:49 -0700
commitf5c049f2f81e296448b33d1a25b4a00b55b314a3 (patch)
tree9adeb7e0d74ee22fba980b803ba8647cac800b8f /rmidevice/rmidevice.cpp
parent8efee6b49cdcc97054a49f05434e58c1a8ee7ec6 (diff)
downloadrmi4utils-f5c049f2f81e296448b33d1a25b4a00b55b314a3.tar.gz
Make sure the RMIDevice's members are cleared on close
Diffstat (limited to 'rmidevice/rmidevice.cpp')
-rw-r--r--rmidevice/rmidevice.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/rmidevice/rmidevice.cpp b/rmidevice/rmidevice.cpp
index 6926304..668301c 100644
--- a/rmidevice/rmidevice.cpp
+++ b/rmidevice/rmidevice.cpp
@@ -206,6 +206,15 @@ int RMIDevice::QueryBasicProperties()
return 0;
}
+void RMIDevice::Close()
+{
+ m_functionList.clear();
+ m_bCancel = false;
+ m_bytesPerReadRequest = 0;
+ m_page = -1;
+ m_deviceType = RMI_DEVICE_TYPE_ANY;
+}
+
void RMIDevice::PrintProperties()
{
fprintf(stdout, "manufacturerID:\t\t%d\n", m_manufacturerID);