libnm: add _nm_connection_get_settings_arr() helper

This commit is contained in:
Thomas Haller 2021-06-14 09:06:15 +02:00
parent 207b101238
commit 5aef93355f
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 10 additions and 0 deletions

View file

@ -2520,6 +2520,14 @@ _nmtst_nm_setting_sort(NMSetting *a, NMSetting *b)
return 0;
}
NMSetting **
_nm_connection_get_settings_arr(NMConnection *connection)
{
nm_assert(NM_IS_CONNECTION(connection));
return NM_CONNECTION_GET_PRIVATE(connection)->settings;
}
/**
* nm_connection_get_settings:
* @connection: the #NMConnection instance

View file

@ -180,6 +180,8 @@ NM_TERNARY_TO_OPTION_BOOL(NMTernary v)
/*****************************************************************************/
NMSetting **_nm_connection_get_settings_arr(NMConnection *connection);
typedef enum { /*< skip >*/
NM_SETTING_PARSE_FLAGS_NONE = 0,
NM_SETTING_PARSE_FLAGS_STRICT = 1LL << 0,