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:
@@ -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:
|
||||
* @setting: the #NMSettingBridge
|
||||
|
Reference in New Issue
Block a user