diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-03-17 17:18:59 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-03-17 17:18:59 +0100 |
commit | 56a8a7465ce8a02148a0e6b1bae4d3d7062c78fa (patch) | |
tree | 277cb3c20b8d4ea6081c73740e5ef577afd7b2c9 /include | |
parent | 99d3b8e788fd55ab02eb883cdc0b97ebe35bf214 (diff) | |
download | gmrf-56a8a7465ce8a02148a0e6b1bae4d3d7062c78fa.tar gmrf-56a8a7465ce8a02148a0e6b1bae4d3d7062c78fa.zip |
Add protocol debug functions
Diffstat (limited to 'include')
-rw-r--r-- | include/gmrf/gmrf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gmrf/gmrf.h b/include/gmrf/gmrf.h index 19f115a..54e9e90 100644 --- a/include/gmrf/gmrf.h +++ b/include/gmrf/gmrf.h @@ -73,6 +73,15 @@ typedef void (*gmrf_scheduled_func)(gmrf_context_t *ctx, void *arg); void gmrf_schedule(gmrf_t *gmrf, gmrf_scheduled_func f, void *arg, unsigned delay); +/* debug and simulation functions */ +void gmrf_debug_init(gmrf_t *gmrf, const uint8_t *node_id, size_t len); + +void gmrf_debug_neigh(gmrf_t *gmrf, gmrf_iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost); +void gmrf_debug_neigh_lost(gmrf_t *gmrf, gmrf_iface_t *iface, const gmrf_addr_t *addr); + +void gmrf_debug_route(gmrf_t *gmrf, const uint8_t *node_id, size_t len, gmrf_iface_t *iface, const gmrf_addr_t *addr, int metric); +void gmrf_debug_route_lost(gmrf_t *gmrf, const uint8_t *node_id, size_t len); + /* implemented by protocol */ extern const char *gmrf_protocol_name; extern const char *gmrf_protocol_version; |