mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 18:50:18 +01:00
device: rename priv->is_nm_owned to priv->nm_owned
Only a matter of taste, but nm_device_get_is_nm_owned() sounds strange.
This commit is contained in:
parent
4649ac1a9c
commit
8cce037bf8
3 changed files with 9 additions and 9 deletions
|
|
@ -263,7 +263,7 @@ typedef struct _NMDevicePrivate {
|
|||
|
||||
NMUtilsStableType current_stable_id_type:3;
|
||||
|
||||
bool is_nm_owned:1; /* whether the device is a device owned and created by NM */
|
||||
bool nm_owned:1; /* whether the device is a device owned and created by NM */
|
||||
|
||||
GHashTable * available_connections;
|
||||
char * hw_addr;
|
||||
|
|
@ -2069,7 +2069,7 @@ nm_device_master_release_one_slave (NMDevice *self, NMDevice *slave, gboolean co
|
|||
static gboolean
|
||||
can_unmanaged_external_down (NMDevice *self)
|
||||
{
|
||||
return !NM_DEVICE_GET_PRIVATE (self)->is_nm_owned
|
||||
return !NM_DEVICE_GET_PRIVATE (self)->nm_owned
|
||||
&& nm_device_is_software (self);
|
||||
}
|
||||
|
||||
|
|
@ -2810,9 +2810,9 @@ nm_device_create_and_realize (NMDevice *self,
|
|||
const NMPlatformLink *plink = NULL;
|
||||
|
||||
/* Must be set before device is realized */
|
||||
priv->is_nm_owned = !nm_platform_link_get_by_ifname (nm_device_get_platform (self), priv->iface);
|
||||
priv->nm_owned = !nm_platform_link_get_by_ifname (nm_device_get_platform (self), priv->iface);
|
||||
|
||||
_LOGD (LOGD_DEVICE, "create (is %snm-owned)", priv->is_nm_owned ? "" : "not ");
|
||||
_LOGD (LOGD_DEVICE, "create (is %snm-owned)", priv->nm_owned ? "" : "not ");
|
||||
|
||||
/* Create any resources the device needs */
|
||||
if (NM_DEVICE_GET_CLASS (self)->create_and_realize) {
|
||||
|
|
@ -8619,9 +8619,9 @@ _update_ip4_address (NMDevice *self)
|
|||
}
|
||||
|
||||
gboolean
|
||||
nm_device_get_is_nm_owned (NMDevice *self)
|
||||
nm_device_is_nm_owned (NMDevice *self)
|
||||
{
|
||||
return NM_DEVICE_GET_PRIVATE (self)->is_nm_owned;
|
||||
return NM_DEVICE_GET_PRIVATE (self)->nm_owned;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -8682,7 +8682,7 @@ delete_on_deactivate_check_and_schedule (NMDevice *self, int ifindex)
|
|||
|
||||
if (ifindex <= 0)
|
||||
return;
|
||||
if (!priv->is_nm_owned)
|
||||
if (!priv->nm_owned)
|
||||
return;
|
||||
if (priv->queued_act_request)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -606,7 +606,7 @@ void nm_device_set_unmanaged_by_user_settings (NMDevice *self);
|
|||
void nm_device_set_unmanaged_by_user_udev (NMDevice *self);
|
||||
void nm_device_set_unmanaged_by_quitting (NMDevice *device);
|
||||
|
||||
gboolean nm_device_get_is_nm_owned (NMDevice *device);
|
||||
gboolean nm_device_is_nm_owned (NMDevice *device);
|
||||
|
||||
gboolean nm_device_has_capability (NMDevice *self, NMDeviceCapabilities caps);
|
||||
|
||||
|
|
|
|||
|
|
@ -1841,7 +1841,7 @@ recheck_assume_connection (NMManager *self,
|
|||
g_return_val_if_fail (NM_IS_MANAGER (self), FALSE);
|
||||
g_return_val_if_fail (NM_IS_DEVICE (device), FALSE);
|
||||
|
||||
if (nm_device_get_is_nm_owned (device))
|
||||
if (nm_device_is_nm_owned (device))
|
||||
return FALSE;
|
||||
|
||||
if (!nm_device_get_managed (device, FALSE))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue