summaryrefslogtreecommitdiffstats
path: root/include/gmrf
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-18 03:06:20 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-18 03:09:08 +0100
commitcdf537c71c29c05fd3d77637a3731de80019d2be (patch)
tree5a2c5a4efc353f6e04477aa5fdb537963e358622 /include/gmrf
parent8a8800c818d06fbf7c1dfd16129757a41731dfe5 (diff)
downloadgmrf-cdf537c71c29c05fd3d77637a3731de80019d2be.tar
gmrf-cdf537c71c29c05fd3d77637a3731de80019d2be.zip
Implement protocol module loading
Diffstat (limited to 'include/gmrf')
-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_ */