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:
Lubomir Rintel 2016-12-23 12:52:51 +01:00
parent 260563a7d9
commit f9be6540b0
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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);