summaryrefslogtreecommitdiffstats
path: root/mmss/protocol.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/protocol.hpp
parent37c21678743c752cbbc2297871c47a3117303309 (diff)
downloadgmrf-b15c16f12ca6838e5ebefc80c11dcf7933bce8bc.tar
gmrf-b15c16f12ca6838e5ebefc80c11dcf7933bce8bc.zip
Move protocol-specific interface state into iface_t
Diffstat (limited to 'mmss/protocol.hpp')
-rw-r--r--mmss/protocol.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mmss/protocol.hpp b/mmss/protocol.hpp
index fcf54ae..0bdc60b 100644
--- a/mmss/protocol.hpp
+++ b/mmss/protocol.hpp
@@ -61,12 +61,12 @@ public:
return proto->init(gmrf);
}
- void add_iface(gmrf_t *gmrf, gmrf_context_t *ctx, gmrf_iface_t *iface) const {
- return proto->add_iface(gmrf, ctx, iface);
+ gmrf_iface_state_t* add_iface(gmrf_context_t *ctx, gmrf_iface_t *iface) const {
+ return proto->add_iface(ctx, iface);
}
- void handle_packet(gmrf_t *gmrf, gmrf_context_t *ctx, gmrf_iface_t *iface, const gmrf_addr_t *source, const void *data, size_t len) const {
- return proto->handle_packet(gmrf, ctx, iface, source, data, len);
+ void handle_packet(gmrf_context_t *ctx, gmrf_iface_state_t *iface, const gmrf_addr_t *source, const void *data, size_t len) const {
+ proto->handle_packet(ctx, iface, source, data, len);
}
static std::shared_ptr<const protocol_t> load(context_t *mmss, const std::string &module);