manage NetDevice objects with refcounts
This commit is contained in:
1 parent
3a5cc38cea
commit
9a3b39648a
14 files changed
+54
-39
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user