summaryrefslogtreecommitdiffstats
path: root/include/mmss
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 /include/mmss
parent37c21678743c752cbbc2297871c47a3117303309 (diff)
downloadgmrf-b15c16f12ca6838e5ebefc80c11dcf7933bce8bc.tar
gmrf-b15c16f12ca6838e5ebefc80c11dcf7933bce8bc.zip
Move protocol-specific interface state into iface_t
Diffstat (limited to 'include/mmss')
-rw-r--r--include/mmss/protocol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mmss/protocol.h b/include/mmss/protocol.h
index 3ddd094..277e325 100644
--- a/include/mmss/protocol.h
+++ b/include/mmss/protocol.h
@@ -35,8 +35,8 @@ typedef struct mmss_protocol {
const char* (*get_version)(void);
gmrf_context_t* (*init)(gmrf_t *gmrf);
- void (*add_iface)(gmrf_t *gmrf, gmrf_context_t *ctx, gmrf_iface_t *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);
+ gmrf_iface_state_t* (*add_iface)(gmrf_context_t *ctx, gmrf_iface_t *iface);
+ void (*handle_packet)(gmrf_context_t *ctx, gmrf_iface_state_t *iface, const gmrf_addr_t *source, const void *data, size_t len);
} mmss_protocol_t;
#endif /* _GMRF_MMSS_PROTOCOL_H_ */