From 77199be682daa1797a4518b3958d58c133dd88f2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 18 Mar 2013 03:34:12 +0100 Subject: Rename context data structures, define more of the module API --- include/mmss/protocol.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/mmss') diff --git a/include/mmss/protocol.h b/include/mmss/protocol.h index 4030ef0..502a923 100644 --- a/include/mmss/protocol.h +++ b/include/mmss/protocol.h @@ -34,7 +34,8 @@ typedef struct mmss_protocol { const char *name; const char *version; - gmrf_protocol_t* (*init)(gmrf_context_t *ctx); + gmrf_context_t* (*init)(gmrf_t *gmrf); + 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); } mmss_protocol_t; #endif /* _GMRF_MMSS_PROTOCOL_H_ */ -- cgit v1.2.3