summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-03-22 20:11:54 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-03-22 20:11:54 +0100
commit2096f29487ceff44f1c3e6e5b18efa8c7cb573f6 (patch)
treee459152be559c8098e5bca2d23f5352024233e3f
parentdff97425cdcbfbbb0ca4d5c8cf48d7a24111979d (diff)
downloadgmrf-2096f29487ceff44f1c3e6e5b18efa8c7cb573f6.tar
gmrf-2096f29487ceff44f1c3e6e5b18efa8c7cb573f6.zip
Change gmrf_iface_t arguments in monitors to iface_t
-rw-r--r--mmss/context.hpp6
-rw-r--r--mmss/gmrf.cpp6
-rw-r--r--mmss/monitor.hpp6
-rw-r--r--mmss/monitor_log.cpp6
-rw-r--r--mmss/monitor_log.hpp6
5 files changed, 15 insertions, 15 deletions
diff --git a/mmss/context.hpp b/mmss/context.hpp
index 60fa4c3..4c7e478 100644
--- a/mmss/context.hpp
+++ b/mmss/context.hpp
@@ -63,17 +63,17 @@ public:
monitor->handle_init(node, node_id, len);
}
- void node_neigh(node_t *node, gmrf_iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost) {
+ void node_neigh(node_t *node, iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost) {
for (auto monitor : monitors)
monitor->handle_neigh(node, iface, addr, rxcost, txcost);
}
- void node_neigh_lost(node_t *node, gmrf_iface_t *iface, const gmrf_addr_t *addr) {
+ void node_neigh_lost(node_t *node, iface_t *iface, const gmrf_addr_t *addr) {
for (auto monitor : monitors)
monitor->handle_neigh_lost(node, iface, addr);
}
- void node_route(node_t *node, const uint8_t *node_id, size_t len, gmrf_iface_t *iface, const gmrf_addr_t *addr, int metric) {
+ void node_route(node_t *node, const uint8_t *node_id, size_t len, iface_t *iface, const gmrf_addr_t *addr, int metric) {
for (auto monitor : monitors)
monitor->handle_route(node, node_id, len, iface, addr, metric);
}
diff --git a/mmss/gmrf.cpp b/mmss/gmrf.cpp
index a2a60a8..e8bbffb 100644
--- a/mmss/gmrf.cpp
+++ b/mmss/gmrf.cpp
@@ -101,17 +101,17 @@ 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) {
node_t *node = static_cast<node_t*>(gmrf);
- node->get_context()->node_neigh(node, iface, addr, rxcost, txcost);
+ node->get_context()->node_neigh(node, static_cast<iface_t*>(iface), addr, rxcost, txcost);
}
void gmrf_debug_neigh_lost(gmrf_t *gmrf, gmrf_iface_t *iface, const gmrf_addr_t *addr) {
node_t *node = static_cast<node_t*>(gmrf);
- node->get_context()->node_neigh_lost(node, iface, addr);
+ node->get_context()->node_neigh_lost(node, static_cast<iface_t*>(iface), 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) {
node_t *node = static_cast<node_t*>(gmrf);
- node->get_context()->node_route(node, node_id, len, iface, addr, metric);
+ node->get_context()->node_route(node, node_id, len, static_cast<iface_t*>(iface), addr, metric);
}
void gmrf_debug_route_lost(gmrf_t *gmrf, const uint8_t *node_id, size_t len) {
diff --git a/mmss/monitor.hpp b/mmss/monitor.hpp
index 7ce3816..36855af 100644
--- a/mmss/monitor.hpp
+++ b/mmss/monitor.hpp
@@ -41,10 +41,10 @@ public:
virtual void handle_init(node_t *node, const uint8_t *node_id, size_t len) = 0;
- virtual void handle_neigh(node_t *node, gmrf_iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost) = 0;
- virtual void handle_neigh_lost(node_t *node, gmrf_iface_t *iface, const gmrf_addr_t *addr) = 0;
+ virtual void handle_neigh(node_t *node, iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost) = 0;
+ virtual void handle_neigh_lost(node_t *node, iface_t *iface, const gmrf_addr_t *addr) = 0;
- virtual void handle_route(node_t *node, const uint8_t *node_id, size_t len, gmrf_iface_t *iface, const gmrf_addr_t *addr, int metric) = 0;
+ virtual void handle_route(node_t *node, const uint8_t *node_id, size_t len, iface_t *iface, const gmrf_addr_t *addr, int metric) = 0;
virtual void handle_route_lost(node_t *node, const uint8_t *node_id, size_t len) = 0;
};
diff --git a/mmss/monitor_log.cpp b/mmss/monitor_log.cpp
index 4356e24..bbb56a4 100644
--- a/mmss/monitor_log.cpp
+++ b/mmss/monitor_log.cpp
@@ -38,13 +38,13 @@ void monitor_log_t::handle_log(node_t *node, int priority, const std::string &me
void monitor_log_t::handle_init(node_t *node UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED) {
}
-void monitor_log_t::handle_neigh(node_t *node UNUSED, gmrf_iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED, float rxcost UNUSED, float txcost UNUSED) {
+void monitor_log_t::handle_neigh(node_t *node UNUSED, iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED, float rxcost UNUSED, float txcost UNUSED) {
}
-void monitor_log_t::handle_neigh_lost(node_t *node UNUSED, gmrf_iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED) {
+void monitor_log_t::handle_neigh_lost(node_t *node UNUSED, iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED) {
}
-void monitor_log_t::handle_route(node_t *node UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED, gmrf_iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED, int metric UNUSED) {
+void monitor_log_t::handle_route(node_t *node UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED, iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED, int metric UNUSED) {
}
void monitor_log_t::handle_route_lost(node_t *node UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED) {
diff --git a/mmss/monitor_log.hpp b/mmss/monitor_log.hpp
index 960eacb..084e8eb 100644
--- a/mmss/monitor_log.hpp
+++ b/mmss/monitor_log.hpp
@@ -36,10 +36,10 @@ public:
virtual void handle_init(node_t *node, const uint8_t *node_id, size_t len);
- virtual void handle_neigh(node_t *node, gmrf_iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost);
- virtual void handle_neigh_lost(node_t *node, gmrf_iface_t *iface, const gmrf_addr_t *addr);
+ virtual void handle_neigh(node_t *node, iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost);
+ virtual void handle_neigh_lost(node_t *node, iface_t *iface, const gmrf_addr_t *addr);
- virtual void handle_route(node_t *node, const uint8_t *node_id, size_t len, gmrf_iface_t *iface, const gmrf_addr_t *addr, int metric);
+ virtual void handle_route(node_t *node, const uint8_t *node_id, size_t len, iface_t *iface, const gmrf_addr_t *addr, int metric);
virtual void handle_route_lost(node_t *node, const uint8_t *node_id, size_t len);
};