From b15c16f12ca6838e5ebefc80c11dcf7933bce8bc Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 29 Jul 2013 02:11:08 +0200 Subject: Move protocol-specific interface state into iface_t --- include/mmss/protocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/mmss') 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_ */ -- cgit v1.2.3