summaryrefslogtreecommitdiffstats
path: root/include/gmrf/gmrf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gmrf/gmrf.h')
-rw-r--r--include/gmrf/gmrf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gmrf/gmrf.h b/include/gmrf/gmrf.h
index 22bed35..d2ecdf5 100644
--- a/include/gmrf/gmrf.h
+++ b/include/gmrf/gmrf.h
@@ -58,6 +58,11 @@ size_t gmrf_iface_get_mtu(gmrf_context_t *ctx, gmrf_iface_t *iface);
bool gmrf_iface_send(gmrf_context_t *ctx, gmrf_iface_t *iface, const void *data, size_t len, const gmrf_addr_t *dest);
bool gmrf_iface_send_bc(gmrf_context_t *ctx, gmrf_iface_t *iface, const void *data, size_t len);
+
typedef void (*gmrf_handle_packet_func)(gmrf_context_t *ctx, gmrf_iface_t *iface, const gmrf_addr_t *source, const void *data, size_t len);
+typedef struct gmrf_protocol {
+ gmrf_handle_packet_func handle_packet;
+} gmrf_protocol_t;
+
#endif /* _GMRF_GMRF_H_ */