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:
Thomas Haller
2021-05-06 17:04:34 +02:00
parent f5685e5bc9
commit 72e8336fdc
3 changed files with 24 additions and 0 deletions

View File

@@ -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