summaryrefslogtreecommitdiffstats
path: root/mmss/gmrf.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-27 22:28:34 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-27 22:28:34 +0200
commit0b696dafb3c8a6efebeaceab64fbdebdb399f7b4 (patch)
tree77b572850e3628d8a36de62e7b327542dfc70cb0 /mmss/gmrf.cpp
parent37566202133915d76179e0fd0c7fad654fc4dda0 (diff)
downloadgmrf-0b696dafb3c8a6efebeaceab64fbdebdb399f7b4.tar
gmrf-0b696dafb3c8a6efebeaceab64fbdebdb399f7b4.zip
Get rid of mmss.hpp
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) {