diff options
Diffstat (limited to 'include/gmrf/gmrf.h')
-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; |