mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-14 19:30:24 +01:00
Since introducing the setting ipv[46].dhcp-send-hostname-v2 internally in NM for supporting global default behavior of DHCP send hostname, confusion arises for setting the dhcp-send-hostname-v2 and old dhcp-send-hostname in nmcli. To avoid any confusion from user configuring dhcp-send-hostname-v2 and old dhcp-send-hostname using nmcli, introduce the mapping from nmcli argument dhcp-send-hostname to internal dhcp-send-hostname-v2 property and the mapping from nmcli argument dhcp-send-hostname-deprecated to internal old dhcp-send-hostname property. The change in split_required_fields_for_con_show makes that properties specified with -g or -f are converted to the libnm's "internal" names. The change in _print_fill makes that the names are converted to the "external" user facing names.
40 lines
1.8 KiB
C
40 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2010 - 2014 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef NMC_SETTINGS_H
|
|
#define NMC_SETTINGS_H
|
|
|
|
#include "libnmc-setting/nm-meta-setting-desc.h"
|
|
|
|
#include "nmcli.h"
|
|
|
|
/*****************************************************************************/
|
|
|
|
void nmc_setting_ip4_connect_handlers(NMSettingIPConfig *setting);
|
|
void nmc_setting_ip6_connect_handlers(NMSettingIPConfig *setting);
|
|
void nmc_setting_proxy_connect_handlers(NMSettingProxy *setting);
|
|
void nmc_setting_wireless_connect_handlers(NMSettingWireless *setting);
|
|
void nmc_setting_connection_connect_handlers(NMSettingConnection *setting,
|
|
NMConnection *connection);
|
|
|
|
char **nmc_setting_get_valid_properties(NMSetting *setting);
|
|
char *nmc_setting_get_property_desc(NMSetting *setting, const char *prop);
|
|
const char *const *
|
|
nmc_setting_get_property_allowed_values(NMSetting *setting, const char *prop, char ***out_to_free);
|
|
char *nmc_setting_get_property(NMSetting *setting, const char *prop, GError **error);
|
|
char *nmc_setting_get_property_parsable(NMSetting *setting, const char *prop, GError **error);
|
|
gboolean nmc_setting_set_property(NMClient *client,
|
|
NMSetting *setting,
|
|
const char *prop,
|
|
NMMetaAccessorModifier modifier,
|
|
const char *val,
|
|
GError **error);
|
|
|
|
gboolean setting_details(const NmcConfig *nmc_config, NMSetting *setting, const char *one_prop);
|
|
|
|
const char *nmc_setting_propname_user_to_libnm(const char *setting_name, const char *prop);
|
|
const char *nmc_setting_propname_libnm_to_user(const char *setting_name, const char *prop);
|
|
|
|
#endif /* NMC_SETTINGS_H */
|