mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 05:10:09 +01:00
libnm: deprecated nm_setting_ethtool_*_feature() API
These are just aliases for the more general nm_setting_option_*() API.
This commit is contained in:
parent
0533ab3c79
commit
482f9c574e
2 changed files with 16 additions and 4 deletions
|
|
@ -135,6 +135,8 @@ _notify_attributes (NMSettingEthtool *self)
|
|||
* is enabled, disabled, or left untouched.
|
||||
*
|
||||
* Since: 1.14
|
||||
*
|
||||
* Deprecated: 1.26: use nm_setting_option_get_boolean() instead.
|
||||
*/
|
||||
NMTernary
|
||||
nm_setting_ethtool_get_feature (NMSettingEthtool *setting,
|
||||
|
|
@ -165,6 +167,8 @@ nm_setting_ethtool_get_feature (NMSettingEthtool *setting,
|
|||
* nm_ethtool_optname_is_feature().
|
||||
*
|
||||
* Since: 1.14
|
||||
*
|
||||
* Deprecated: 1.26: use nm_setting_option_set() or nm_setting_option_set_boolean() instead.
|
||||
*/
|
||||
void
|
||||
nm_setting_ethtool_set_feature (NMSettingEthtool *setting,
|
||||
|
|
@ -190,6 +194,8 @@ nm_setting_ethtool_set_feature (NMSettingEthtool *setting,
|
|||
* Clears all offload features settings
|
||||
*
|
||||
* Since: 1.14
|
||||
*
|
||||
* Deprecated: 1.26: use nm_setting_option_clear_by_name() with nm_ethtool_optname_is_feature() predicate instead.
|
||||
*/
|
||||
void
|
||||
nm_setting_ethtool_clear_features (NMSettingEthtool *setting)
|
||||
|
|
@ -456,6 +462,8 @@ nm_setting_ethtool_clear_ring_all (NMSettingEthtool *setting)
|
|||
* @setting and may get invalidated when @setting gets modified.
|
||||
*
|
||||
* Since: 1.20
|
||||
*
|
||||
* Deprecated: 1.26: use nm_setting_option_get_all_names() instead.
|
||||
*/
|
||||
const char **
|
||||
nm_setting_ethtool_get_optnames (NMSettingEthtool *setting,
|
||||
|
|
|
|||
|
|
@ -129,20 +129,24 @@ NMSetting *nm_setting_ethtool_new (void);
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
NM_AVAILABLE_IN_1_20
|
||||
NM_DEPRECATED_IN_1_26
|
||||
const char ** nm_setting_ethtool_get_optnames (NMSettingEthtool *setting,
|
||||
guint *out_length);
|
||||
|
||||
NM_AVAILABLE_IN_1_14
|
||||
NM_DEPRECATED_IN_1_26
|
||||
NMTernary nm_setting_ethtool_get_feature (NMSettingEthtool *setting,
|
||||
const char *optname);
|
||||
NM_AVAILABLE_IN_1_14
|
||||
NM_DEPRECATED_IN_1_26
|
||||
void nm_setting_ethtool_set_feature (NMSettingEthtool *setting,
|
||||
const char *optname,
|
||||
NMTernary value);
|
||||
NM_AVAILABLE_IN_1_14
|
||||
NM_DEPRECATED_IN_1_26
|
||||
void nm_setting_ethtool_clear_features (NMSettingEthtool *setting);
|
||||
|
||||
NM_AVAILABLE_IN_1_20
|
||||
const char ** nm_setting_ethtool_get_optnames (NMSettingEthtool *setting,
|
||||
guint *out_length);
|
||||
|
||||
NM_AVAILABLE_IN_1_26
|
||||
gboolean nm_setting_ethtool_get_coalesce (NMSettingEthtool *setting,
|
||||
const char *optname,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue