comparison libpurple/util.h @ 32680:4c64383f05cc

purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
author andrew.victor@mxit.com
date Sat, 24 Sep 2011 22:20:58 +0000
parents 904686722499
children 0f94ec89f0bc 5525312cf589
comparison
equal deleted inserted replaced
32679:904686722499 32680:4c64383f05cc
1236 * @return True if the email address is syntactically correct. 1236 * @return True if the email address is syntactically correct.
1237 */ 1237 */
1238 gboolean purple_email_is_valid(const char *address); 1238 gboolean purple_email_is_valid(const char *address);
1239 1239
1240 /** 1240 /**
1241 * Checks if the given IP address is a syntactically valid IPv4 address. 1241 * Checks if the given IP address is a syntactically valid IPv4 or
1242 * IPv6 address.
1243 * If you specifically want to check for an IPv4 address use
1244 * purple_ipv4_address_is_valid(), or for an IPv6 address use
1245 * purple_ipv6_address_is_valid().
1242 * 1246 *
1243 * @param ip The IP address to validate. 1247 * @param ip The IP address to validate.
1244 * 1248 *
1245 * @return True if the IP address is syntactically correct. 1249 * @return True if the IP address is syntactically correct.
1246 * @deprecated This function will be replaced with one that validates
1247 * as either IPv4 or IPv6 in 3.0.0. If you don't want this,
1248 * behavior, use one of the more specific functions.
1249 */ 1250 */
1250 gboolean purple_ip_address_is_valid(const char *ip); 1251 gboolean purple_ip_address_is_valid(const char *ip);
1251 1252
1252 /** 1253 /**
1253 * Checks if the given IP address is a syntactically valid IPv4 address. 1254 * Checks if the given IP address is a syntactically valid IPv4 address.