libnm: add internal accessors for _nm_setting_bridge{,_port}_get_vlans()
For internal code, when we control what we are doing, make it possible to directly access the internal GPtrArray.
This commit is contained in:
@@ -281,6 +281,14 @@ nm_setting_bridge_port_clear_vlans(NMSettingBridgePort *setting)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GPtrArray *
|
||||||
|
_nm_setting_bridge_port_get_vlans(NMSettingBridgePort *setting)
|
||||||
|
{
|
||||||
|
nm_assert(NM_IS_SETTING_BRIDGE_PORT(setting));
|
||||||
|
|
||||||
|
return NM_SETTING_BRIDGE_PORT_GET_PRIVATE(setting)->vlans;
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@@ -910,6 +910,16 @@ nm_setting_bridge_clear_vlans(NMSettingBridge *setting)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GPtrArray *
|
||||||
|
_nm_setting_bridge_get_vlans(NMSettingBridge *setting)
|
||||||
|
{
|
||||||
|
nm_assert(NM_IS_SETTING_BRIDGE(setting));
|
||||||
|
|
||||||
|
return NM_SETTING_BRIDGE_GET_PRIVATE(setting)->vlans;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nm_setting_bridge_get_group_address:
|
* nm_setting_bridge_get_group_address:
|
||||||
* @setting: the #NMSettingBridge
|
* @setting: the #NMSettingBridge
|
||||||
|
@@ -509,6 +509,12 @@ gboolean _nm_setting_bond_option_supported(const char *option, NMBondMode mode);
|
|||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
GPtrArray *_nm_setting_bridge_get_vlans(NMSettingBridge *setting);
|
||||||
|
|
||||||
|
GPtrArray *_nm_setting_bridge_port_get_vlans(NMSettingBridgePort *setting);
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
NMSettingBluetooth *_nm_connection_get_setting_bluetooth_for_nap(NMConnection *connection);
|
NMSettingBluetooth *_nm_connection_get_setting_bluetooth_for_nap(NMConnection *connection);
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
Reference in New Issue
Block a user