manage NetDevice objects with refcounts

This commit is contained in:
Mathieu Lacage
2007-05-02 10:25:06 +02:00
parent 5f7f31e7c9
commit 1eeab81136
14 changed files with 54 additions and 39 deletions

View File

@@ -72,6 +72,7 @@ Node::SetSystemId(uint32_t s )
uint32_t
Node::AddDevice (NetDevice *device)
{
device->Ref ();
uint32_t index = m_devices.size ();
m_devices.push_back (device);
DoAddDevice (device);