mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-24 14:50:37 +01:00
device: add function nm_device_uses_assumed_connection()
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
0c355ea5a0
commit
f5c0646e1c
2 changed files with 13 additions and 0 deletions
|
|
@ -775,6 +775,17 @@ nm_device_uses_generated_assumed_connection (NMDevice *self)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
nm_device_uses_assumed_connection (NMDevice *self)
|
||||
{
|
||||
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
|
||||
|
||||
if ( priv->act_request
|
||||
&& nm_active_connection_get_assumed (NM_ACTIVE_CONNECTION (priv->act_request)))
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static SlaveInfo *
|
||||
find_slave_info (NMDevice *self, NMDevice *slave)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -275,6 +275,8 @@ gboolean nm_device_complete_connection (NMDevice *device,
|
|||
|
||||
gboolean nm_device_check_connection_compatible (NMDevice *device, NMConnection *connection);
|
||||
|
||||
gboolean nm_device_uses_assumed_connection (NMDevice *device);
|
||||
|
||||
gboolean nm_device_can_assume_active_connection (NMDevice *device);
|
||||
|
||||
gboolean nm_device_spec_match_list (NMDevice *device, const GSList *specs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue