comparison libpurple/util.h @ 27545:8c41a23e6b44

Add purple_ipv6_address_is_valid; guess what it does?
author Paul Aurich <paul@darkrain42.org>
date Sat, 11 Jul 2009 07:32:27 +0000
parents 66425e99d741
children e1cd44c7c7af c9c038529f38
comparison
equal deleted inserted replaced
27544:7980a2bbad35 27545:8c41a23e6b44
1201 * Checks if the given IP address is a syntactically valid IPv4 address. 1201 * Checks if the given IP address is a syntactically valid IPv4 address.
1202 * 1202 *
1203 * @param ip The IP address to validate. 1203 * @param ip The IP address to validate.
1204 * 1204 *
1205 * @return True if the IP address is syntactically correct. 1205 * @return True if the IP address is syntactically correct.
1206 * @deprecated This function will be replaced with one that validates
1207 * as either IPv4 or IPv6 in 3.0.0. If you don't want this,
1208 * behavior, use one of the more specific functions.
1206 */ 1209 */
1207 gboolean purple_ip_address_is_valid(const char *ip); 1210 gboolean purple_ip_address_is_valid(const char *ip);
1211
1212 /**
1213 * Checks if the given IP address is a syntactically valid IPv4 address.
1214 *
1215 * @param ip The IP address to validate.
1216 *
1217 * @return True if the IP address is syntactically correct.
1218 * @since 2.6.0
1219 */
1220 gboolean purple_ipv4_address_is_valid(const char *ip);
1221
1222 /**
1223 * Checks if the given IP address is a syntactically valid IPv6 address.
1224 *
1225 * @param ip The IP address to validate.
1226 *
1227 * @return True if the IP address is syntactically correct.
1228 * @since 2.6.0
1229 */
1230 gboolean purple_ipv6_address_is_valid(const char *ip);
1208 1231
1209 /** 1232 /**
1210 * This function extracts a list of URIs from the a "text/uri-list" 1233 * This function extracts a list of URIs from the a "text/uri-list"
1211 * string. It was "borrowed" from gnome_uri_list_extract_uris 1234 * string. It was "borrowed" from gnome_uri_list_extract_uris
1212 * 1235 *