Rename context data structures, define more of the module API

This commit is contained in:
Matthias Schiffer 2013-03-18 03:34:12 +01:00
parent cdf537c71c
commit 77199be682
8 changed files with 55 additions and 47 deletions

View file

@ -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_ */