From 70e18d99b8e3e77bb37e218d7ac582130156f8ef Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 25 Jan 2024 09:46:18 +0100 Subject: New upstream version 1.45.90 --- src/libnm-core-impl/nm-setting-ethtool.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/libnm-core-impl/nm-setting-ethtool.c') diff --git a/src/libnm-core-impl/nm-setting-ethtool.c b/src/libnm-core-impl/nm-setting-ethtool.c index ab1ed0e2..06c9c12b 100644 --- a/src/libnm-core-impl/nm-setting-ethtool.c +++ b/src/libnm-core-impl/nm-setting-ethtool.c @@ -75,6 +75,37 @@ nm_ethtool_optname_is_ring(const char *optname) return optname && nm_ethtool_id_is_ring(nm_ethtool_id_get_by_name(optname)); } +/** + * nm_ethtool_optname_is_channels: + * @optname: (nullable): the option name to check + * + * Checks whether @optname is a valid option name for a channels setting. + * + * Returns: %TRUE, if @optname is valid + * + * Since: 1.46 + */ +gboolean +nm_ethtool_optname_is_channels(const char *optname) +{ + return optname && nm_ethtool_id_is_channels(nm_ethtool_id_get_by_name(optname)); +} + +/** + * nm_ethtool_optname_is_eee: + * @optname: (nullable): the option name to check + * + * Checks whether @optname is a valid option name for an eee setting. + * + * Returns: %TRUE, if @optname is valid + * + * Since: 1.46 + */ +gboolean +nm_ethtool_optname_is_eee(const char *optname) +{ + return optname && nm_ethtool_id_is_eee(nm_ethtool_id_get_by_name(optname)); +} /** * nm_ethtool_optname_is_pause: * @optname: (nullable): the option name to check -- cgit 1.3.0-6-gf8a5