mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 04:40:20 +01:00
libnm: add internal _nm_setting_wired_is_valid_s390_option() helper
This commit is contained in:
parent
fb0ac2e700
commit
ddc41d427a
2 changed files with 5 additions and 4 deletions
|
|
@ -108,8 +108,8 @@ static const char *const valid_s390_opts[] = {
|
|||
NULL,
|
||||
};
|
||||
|
||||
static gboolean
|
||||
valid_s390_opts_check(const char *option)
|
||||
gboolean
|
||||
_nm_setting_wired_is_valid_s390_option(const char *option)
|
||||
{
|
||||
if (NM_MORE_ASSERT_ONCE(10)) {
|
||||
gsize i;
|
||||
|
|
@ -804,7 +804,7 @@ verify(NMSetting *setting, NMConnection *connection, GError **error)
|
|||
|
||||
nm_assert(v->name);
|
||||
|
||||
if (!valid_s390_opts_check(v->name)) {
|
||||
if (!_nm_setting_wired_is_valid_s390_option(v->name)) {
|
||||
g_set_error(error,
|
||||
NM_CONNECTION_ERROR,
|
||||
NM_CONNECTION_ERROR_INVALID_PROPERTY,
|
||||
|
|
|
|||
|
|
@ -309,7 +309,8 @@ typedef gpointer (*NMUtilsCopyFunc)(gpointer);
|
|||
const char **
|
||||
_nm_ip_address_get_attribute_names(const NMIPAddress *addr, gboolean sorted, guint *out_length);
|
||||
|
||||
void _nm_setting_wired_clear_s390_options(NMSettingWired *setting);
|
||||
void _nm_setting_wired_clear_s390_options(NMSettingWired *setting);
|
||||
gboolean _nm_setting_wired_is_valid_s390_option(const char *option);
|
||||
|
||||
gboolean _nm_ip_route_attribute_validate_all(const NMIPRoute *route, GError **error);
|
||||
const char **
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue