mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 11:00:18 +01:00
libnm: add _nm_connection_get_settings_arr() helper
This commit is contained in:
parent
207b101238
commit
5aef93355f
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue