summaryrefslogtreecommitdiff
path: root/libpurple/util.h
diff options
context:
space:
mode:
authorPaul Aurich <darkrain42@pidgin.im>2009-07-11 07:32:27 +0000
committerPaul Aurich <darkrain42@pidgin.im>2009-07-11 07:32:27 +0000
commit42ad1f2a9fc126a4d00981bb9f8c81332ebdfd6c (patch)
treebca2e6b877ec992064481a10d1236a8e8769dff7 /libpurple/util.h
parent958887942c96a6c69d2f327ef92023291c8aeb3e (diff)
downloadpidgin-42ad1f2a9fc126a4d00981bb9f8c81332ebdfd6c.tar.gz
Add purple_ipv6_address_is_valid; guess what it does?
Diffstat (limited to 'libpurple/util.h')
-rw-r--r--libpurple/util.h23
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
*