mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 02:35:25 +00:00
libnm-core: deprecate nm_utils_iface_valid_name()
We don't use it internally and a better version exists. Not like we could drop it or anything.
This commit is contained in:
parent
260563a7d9
commit
f9be6540b0
|
@ -3789,6 +3789,8 @@ nm_utils_is_valid_iface_name (const char *name, GError **error)
|
|||
*
|
||||
* Validate the network interface name.
|
||||
*
|
||||
* Deprecated: 1.6: use nm_utils_is_valid_iface_name() insteead, with better error reporting.
|
||||
*
|
||||
* Returns: %TRUE if interface name is valid, otherwise %FALSE is returned.
|
||||
*/
|
||||
gboolean
|
||||
|
|
|
@ -177,6 +177,7 @@ gboolean nm_utils_hwaddr_matches (gconstpointer hwaddr1,
|
|||
char *nm_utils_bin2hexstr (gconstpointer src, gsize len, int final_len);
|
||||
GBytes *nm_utils_hexstr2bin (const char *hex);
|
||||
|
||||
NM_DEPRECATED_IN_1_6_FOR(nm_utils_is_valid_iface_name)
|
||||
gboolean nm_utils_iface_valid_name (const char *name);
|
||||
NM_AVAILABLE_IN_1_6
|
||||
gboolean nm_utils_is_valid_iface_name (const char *name, GError **error);
|
||||
|
|
Loading…
Reference in a new issue