summaryrefslogtreecommitdiff
path: root/PluginControlInterface/include/ControlSender.h
diff options
context:
space:
mode:
Diffstat (limited to 'PluginControlInterface/include/ControlSender.h')
-rw-r--r--PluginControlInterface/include/ControlSender.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/PluginControlInterface/include/ControlSender.h b/PluginControlInterface/include/ControlSender.h
index 834c432..d21856b 100644
--- a/PluginControlInterface/include/ControlSender.h
+++ b/PluginControlInterface/include/ControlSender.h
@@ -82,13 +82,34 @@ public:
private:
ControlReceiveInterface * mControlReceiveInterface;
- struct handleStack
+ struct handleStatus
{
- bool ok;
+ bool status;
am_Handle_s handle;
};
- std::list<handleStack> mListOpenHandles;
- am_mainConnectionID_t mCurrentID;
+
+ struct mainConnectionSet
+ {
+ am_mainConnectionID_t connectionID;
+ std::vector<handleStatus> listHandleStaus;
+ };
+
+ class findHandle
+ {
+ am_Handle_s mHandle;
+ public:
+ explicit findHandle(am_Handle_s handle) :
+ mHandle(handle)
+ {
+ }
+ bool operator()(handleStatus* handle) const
+ {
+ return (handle->handle.handle == mHandle.handle);
+ }
+ };
+
+ std::vector<mainConnectionSet> mListOpenConnections;
+ ;
};
#endif /* CONTROLSENDER_H_ */