mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 14:50:07 +01:00
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:
parent
393685203f
commit
ec7a7afade
2 changed files with 11 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue