diff options
Diffstat (limited to 'mmss/iface.hpp')
-rw-r--r-- | mmss/iface.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mmss/iface.hpp b/mmss/iface.hpp index 45e9d6a..2f464bd 100644 --- a/mmss/iface.hpp +++ b/mmss/iface.hpp @@ -44,10 +44,10 @@ private: void enqueue(context_t *mmss, const std::shared_ptr<iface_t> &dest, const void *data, size_t len); -public: iface_t(node_t *node0, network_t *net0, const std::string &name0, const gmrf_addr_t *address0) : node(node0), net(net0), name(name0), address(*address0) {} +public: node_t* get_node() const { return node; } @@ -71,8 +71,8 @@ public: void send_bc(const void *data, size_t len) { net->send_bc(data, len, this); } -}; -void add_iface(const std::shared_ptr<node_t> &node, const std::shared_ptr<network_t> &net, const std::string &name, const gmrf_addr_t *address); + static std::shared_ptr<iface_t> add(const std::shared_ptr<node_t> &node, const std::shared_ptr<network_t> &net, const std::string &name, const gmrf_addr_t *address); +}; } |