Add nm_device_interface_get_state()

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3485 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2008-03-20 21:19:21 +00:00
parent 393685203f
commit ec7a7afade
2 changed files with 11 additions and 0 deletions

View File

@@ -226,3 +226,12 @@ nm_device_interface_deactivate (NMDeviceInterface *device)
NM_DEVICE_INTERFACE_GET_INTERFACE (device)->deactivate (device);
}
NMDeviceState
nm_device_interface_get_state (NMDeviceInterface *device)
{
NMDeviceState state;
g_object_get (G_OBJECT (device), "state", &state, NULL);
return state;
}