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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -79,4 +79,6 @@ gboolean nm_device_interface_activate (NMDeviceInterface *device,
|
||||
|
||||
void nm_device_interface_deactivate (NMDeviceInterface *device);
|
||||
|
||||
NMDeviceState nm_device_interface_get_state (NMDeviceInterface *device);
|
||||
|
||||
#endif /* NM_DEVICE_INTERFACE_H */
|
||||
|
Reference in New Issue
Block a user