Move protocol-specific interface state into iface_t
This commit is contained in:
parent
37c2167874
commit
b15c16f12c
7 changed files with 22 additions and 15 deletions
|
@ -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_ */
|
||||
|
|
Reference in a new issue