summaryrefslogtreecommitdiffstats
path: root/mmss/iface.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-29 02:11:08 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-29 02:11:08 +0200
commitb15c16f12ca6838e5ebefc80c11dcf7933bce8bc (patch)
tree62e0b4028d99d3ef4aa06a65b8b6379b2fee6cc6 /mmss/iface.hpp
parent37c21678743c752cbbc2297871c47a3117303309 (diff)
downloadgmrf-b15c16f12ca6838e5ebefc80c11dcf7933bce8bc.tar
gmrf-b15c16f12ca6838e5ebefc80c11dcf7933bce8bc.zip
Move protocol-specific interface state into iface_t
Diffstat (limited to 'mmss/iface.hpp')
-rw-r--r--mmss/iface.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/mmss/iface.hpp b/mmss/iface.hpp
index 2f464bd..3b8cc0b 100644
--- a/mmss/iface.hpp
+++ b/mmss/iface.hpp
@@ -42,6 +42,8 @@ private:
std::string name;
gmrf_addr_t address;
+ gmrf_iface_state *state;
+
void enqueue(context_t *mmss, const std::shared_ptr<iface_t> &dest, const void *data, size_t len);
iface_t(node_t *node0, network_t *net0, const std::string &name0, const gmrf_addr_t *address0)
@@ -64,6 +66,10 @@ public:
return &address;
}
+ gmrf_iface_state* get_state() const {
+ return state;
+ }
+
void send(const void *data, size_t len, const gmrf_addr_t *dest) {
net->send(data, len, this, dest);
}