src/node/node.cc
changeset 447 180117abfb04
parent 381 83b52d112c99
child 448 a0f005b96cfc
--- a/src/node/node.cc	Mon Apr 30 10:07:53 2007 +0200
+++ b/src/node/node.cc	Mon Apr 30 10:16:04 2007 +0200
@@ -68,6 +68,25 @@
   m_sid = s;
 }
 
+uint32_t 
+Node::AddDevice (NetDevice *device)
+{
+  uint32_t index = m_devices.size ();
+  m_devices.push_back (device);
+  DoAddDevice (device);
+  return index;
+}
+NetDevice *
+Node::GetDevice (uint32_t index) const
+{
+  return m_devices[index];
+}
+uint32_t 
+Node::GetNDevices (void) const
+{
+  return m_devices.size ();
+}
+
 // Node stack creation and management routines.
 Node* Node::Create()
 {