pidgin: efa5b9f3: Added the function in util.h, forgot it ...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sat Jul 11 04:15:22 EDT 2009
-----------------------------------------------------------------
Revision: efa5b9f380cd930b5cd0dd90be3e938795a6effc
Ancestor: 53a6205270276533c2b97bad11b7b174891399ad
Author: darkrain42 at pidgin.im
Date: 2009-07-11T08:11:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/efa5b9f380cd930b5cd0dd90be3e938795a6effc
Modified files:
libpurple/util.c
ChangeLog:
Added the function in util.h, forgot it here.
-------------- next part --------------
============================================================
--- libpurple/util.c 54c997de15ae828078b7a84bd07f74204b49e823
+++ libpurple/util.c a245ad53a854b490fc9055f290ea197553d77db9
@@ -4446,9 +4446,8 @@ purple_email_is_valid(const char *addres
return ((c - domain) > 3 ? TRUE : FALSE);
}
-/* TODO 3.0.0: Rename this to purple_ipv4_address_is_valid */
gboolean
-purple_ip_address_is_valid(const char *ip)
+purple_ipv4_address_is_valid(const char *ip)
{
int c, o1, o2, o3, o4;
char end;
@@ -4506,6 +4505,13 @@ purple_ipv6_address_is_valid(const gchar
return (double_colon && chunks < 8) || (!double_colon && chunks == 8);
}
+/* TODO 3.0.0: Add ipv6 check, too */
+gboolean
+purple_ip_address_is_valid(const char *ip)
+{
+ return purple_ipv4_address_is_valid(ip);
+}
+
/* Stolen from gnome_uri_list_extract_uris */
GList *
purple_uri_list_extract_uris(const gchar *uri_list)
More information about the Commits
mailing list