network: Set the device properties at construct time

We need this for more complicated devices that need to contact other daemons,
for instance ModemManager.
This commit is contained in:
Richard Hughes 2012-07-16 17:34:24 +01:00
parent cd765a1267
commit 3c2a09294c
7 changed files with 22 additions and 67 deletions

View file

@ -219,16 +219,6 @@ state_changed_cb (NMDevice *device,
net_object_refresh (NET_OBJECT (net_device));
}
void
net_device_set_nm_device (NetDevice *device, NMDevice *nm_device)
{
device->priv->nm_device = g_object_ref (nm_device);
g_signal_connect (nm_device,
"state-changed",
G_CALLBACK (state_changed_cb),
device);
}
NMDevice *
net_device_get_nm_device (NetDevice *device)
{