summaryrefslogtreecommitdiffstats
path: root/src/neigh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/neigh.h')
-rw-r--r--src/neigh.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/neigh.h b/src/neigh.h
index 022cffe..54b935e 100644
--- a/src/neigh.h
+++ b/src/neigh.h
@@ -30,7 +30,7 @@
#include "babel.h"
-static inline gp_babel_neigh_t* gp_babel_neigh_find(const gp_babel_iface_t *iface, const gmrf_addr_t *addr) {
+static inline gp_babel_neigh_t* gp_babel_neigh_find(const gmrf_iface_state_t *iface, const gmrf_addr_t *addr) {
gp_babel_neigh_t *neigh;
for (neigh = iface->neighbours; neigh; neigh = neigh->next) {
if (gmrf_addr_equal(addr, &neigh->addr))
@@ -45,13 +45,13 @@ static inline void gp_babel_neigh_ref(gp_babel_neigh_t *neigh) {
}
-gp_babel_neigh_t* gp_babel_neigh_get(gp_babel_iface_t *iface, const gmrf_addr_t *addr);
+gp_babel_neigh_t* gp_babel_neigh_get(gmrf_iface_state_t *iface, const gmrf_addr_t *addr);
void gp_babel_neigh_unref(gp_babel_neigh_t *neigh);
void gp_babel_neigh_unref_list(gp_babel_neigh_t *neigh);
-uint16_t gp_babel_neigh_get_rxcost(gmrf_t *gmrf, const gp_babel_neigh_t *neigh);
-uint16_t gp_babel_neigh_get_txcost(gmrf_t *gmrf, const gp_babel_neigh_t *neigh);
-uint16_t gp_babel_neigh_get_cost(gmrf_t *gmrf, const gp_babel_neigh_t *neigh);
-void gp_babel_neigh_reset(gp_babel_iface_t *iface, gp_babel_neigh_t *neigh);
+uint16_t gp_babel_neigh_get_rxcost(gmrf_context_t *ctx, const gp_babel_neigh_t *neigh);
+uint16_t gp_babel_neigh_get_txcost(gmrf_context_t *ctx, const gp_babel_neigh_t *neigh);
+uint16_t gp_babel_neigh_get_cost(gmrf_context_t *ctx, const gp_babel_neigh_t *neigh);
+void gp_babel_neigh_reset(gmrf_iface_state_t *iface, gp_babel_neigh_t *neigh);
#endif /* _GMRF_PROTO_BABEL_NEIGH_H_ */