summaryrefslogtreecommitdiffstats
path: root/mmss/gmrf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mmss/gmrf.cpp')
-rw-r--r--mmss/gmrf.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/mmss/gmrf.cpp b/mmss/gmrf.cpp
index 0fc8527..c83b184 100644
--- a/mmss/gmrf.cpp
+++ b/mmss/gmrf.cpp
@@ -24,8 +24,10 @@
*/
+#include "context.hpp"
+#include "event.hpp"
#include "iface.hpp"
-#include "mmss.hpp"
+#include "network.hpp"
#include "node.hpp"
@@ -42,7 +44,7 @@ const char* gmrf_iface_get_name(gmrf_t *gmrf, gmrf_iface_t *iface) {
}
size_t gmrf_iface_get_mtu(gmrf_t *gmrf, gmrf_iface_t *iface) {
- return static_cast<iface_t*>(iface)->get_network()->mtu;
+ return static_cast<iface_t*>(iface)->get_network()->get_mtu();
}
bool gmrf_iface_send(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, size_t len, const gmrf_addr_t *dest) {
@@ -78,7 +80,7 @@ void gmrf_schedule(gmrf_t *gmrf, gmrf_scheduled_func f, void *arg, unsigned dela
scheduled->f = f;
scheduled->arg = arg;
- node->get_context()->event_queue.put(std::move(scheduled), node->get_context()->now()+delay);
+ node->get_context()->queue_event(std::move(scheduled), node->get_context()->now()+delay);
}
gmrf_time_t gmrf_now(gmrf_t *gmrf) {