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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user