mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02: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
2 changed files with 3 additions and 0 deletions
|
|
@ -3789,6 +3789,8 @@ nm_utils_is_valid_iface_name (const char *name, GError **error)
|
||||||
*
|
*
|
||||||
* Validate the network interface name.
|
* 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.
|
* Returns: %TRUE if interface name is valid, otherwise %FALSE is returned.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ gboolean nm_utils_hwaddr_matches (gconstpointer hwaddr1,
|
||||||
char *nm_utils_bin2hexstr (gconstpointer src, gsize len, int final_len);
|
char *nm_utils_bin2hexstr (gconstpointer src, gsize len, int final_len);
|
||||||
GBytes *nm_utils_hexstr2bin (const char *hex);
|
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);
|
gboolean nm_utils_iface_valid_name (const char *name);
|
||||||
NM_AVAILABLE_IN_1_6
|
NM_AVAILABLE_IN_1_6
|
||||||
gboolean nm_utils_is_valid_iface_name (const char *name, GError **error);
|
gboolean nm_utils_is_valid_iface_name (const char *name, GError **error);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue