summaryrefslogtreecommitdiffstats
path: root/include/mmss
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-18 03:34:12 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-18 03:34:12 +0100
commit77199be682daa1797a4518b3958d58c133dd88f2 (patch)
tree60737630a303d0127fdf9db062228289311152fa /include/mmss
parentcdf537c71c29c05fd3d77637a3731de80019d2be (diff)
downloadgmrf-77199be682daa1797a4518b3958d58c133dd88f2.tar
gmrf-77199be682daa1797a4518b3958d58c133dd88f2.zip
Rename context data structures, define more of the module API
Diffstat (limited to 'include/mmss')
-rw-r--r--include/mmss/protocol.h3
1 files changed, 2 insertions, 1 deletions
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_ */