]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/tymo/RoutingTableInfo.nc
Initial tymo commit
[tinyos-2.x.git] / tos / lib / net / tymo / RoutingTableInfo.nc
diff --git a/tos/lib/net/tymo/RoutingTableInfo.nc b/tos/lib/net/tymo/RoutingTableInfo.nc
new file mode 100644 (file)
index 0000000..d88ea0f
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2007 Romain Thouvenin <romain.thouvenin@gmail.com>
+ * Published under the terms of the GNU General Public License (GPLv2).
+ */
+
+#include "routing_table.h"
+
+typedef nx_struct rt_link {
+  nx_addr_t target;
+  nx_addr_t nexthop;
+} rt_link_t;
+
+interface RoutingTableInfo {
+
+  /**
+   * Size of the table.
+   * @return the number of entries stored in the table
+   */
+  command uint8_t size();
+
+  command uint8_t maxSize();
+
+  command uint8_t getTableContent(rt_info_t * buf);
+
+  command uint8_t getLinks(rt_link_t * buf);
+
+}