Add protocol module API library
This commit is contained in:
parent
77199be682
commit
7d4283f8f5
7 changed files with 71 additions and 7 deletions
|
@ -31,8 +31,8 @@
|
|||
|
||||
|
||||
typedef struct mmss_protocol {
|
||||
const char *name;
|
||||
const char *version;
|
||||
const char* (*get_name)(void);
|
||||
const char* (*get_version)(void);
|
||||
|
||||
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);
|
||||
|
|
Reference in a new issue