diff options
Diffstat (limited to 'mmss/mmss.h')
-rw-r--r-- | mmss/mmss.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/mmss/mmss.h b/mmss/mmss.h index cabd7cd..e7f773e 100644 --- a/mmss/mmss.h +++ b/mmss/mmss.h @@ -28,6 +28,7 @@ #define _GMRF_MMSS_MMSS_H_ #include <gmrf/gmrf.h> +#include <mmss/protocol.h> #include "queue.h" @@ -37,15 +38,6 @@ struct mmss_context { mmss_queue_t packet_queue; }; -struct gmrf_context { - gmrf_context_t *next; - - mmss_context_t *mmss; - gmrf_iface_t *interfaces; - - gmrf_handle_packet_func handle_packet; -}; - struct mmss_network { mmss_network_t *next; @@ -65,6 +57,15 @@ struct mmss_packet { }; +struct gmrf_context { + gmrf_context_t *next; + + mmss_context_t *mmss; + gmrf_iface_t *interfaces; + + gmrf_handle_packet_func handle_packet; +}; + struct gmrf_iface { gmrf_iface_t *node_next; gmrf_iface_t *network_next; @@ -76,4 +77,6 @@ struct gmrf_iface { }; +const mmss_protocol_t* mmss_load_protocol(const char *module); + #endif /* _GMRF_MMSS_MMSS_H_ */ |