diff options
Diffstat (limited to 'libpurple/util.h')
-rw-r--r-- | libpurple/util.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libpurple/util.h b/libpurple/util.h index b3928d1fd5..e1be673e24 100644 --- a/libpurple/util.h +++ b/libpurple/util.h @@ -1203,10 +1203,33 @@ gboolean purple_email_is_valid(const char *address); * @param ip The IP address to validate. * * @return True if the IP address is syntactically correct. + * @deprecated This function will be replaced with one that validates + * as either IPv4 or IPv6 in 3.0.0. If you don't want this, + * behavior, use one of the more specific functions. */ gboolean purple_ip_address_is_valid(const char *ip); /** + * Checks if the given IP address is a syntactically valid IPv4 address. + * + * @param ip The IP address to validate. + * + * @return True if the IP address is syntactically correct. + * @since 2.6.0 + */ +gboolean purple_ipv4_address_is_valid(const char *ip); + +/** + * Checks if the given IP address is a syntactically valid IPv6 address. + * + * @param ip The IP address to validate. + * + * @return True if the IP address is syntactically correct. + * @since 2.6.0 + */ +gboolean purple_ipv6_address_is_valid(const char *ip); + +/** * This function extracts a list of URIs from the a "text/uri-list" * string. It was "borrowed" from gnome_uri_list_extract_uris * |