From ffdf2e71d9e67980727aa994b77fca36ef5246c6 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 10 Aug 2010 12:18:09 +0100 Subject: When doing SRV lookups, return an array with all RRs instead of just the first one. The first isn't always the best one and this is currently causing GTalk issues when talk2.l.google.com (which is currently dead) is first. --- lib/misc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/misc.h') diff --git a/lib/misc.h b/lib/misc.h index 12a9edff..83ba9e67 100644 --- a/lib/misc.h +++ b/lib/misc.h @@ -60,7 +60,8 @@ G_MODULE_EXPORT void random_bytes( unsigned char *buf, int count ); G_MODULE_EXPORT int is_bool( char *value ); G_MODULE_EXPORT int bool2int( char *value ); -G_MODULE_EXPORT struct ns_srv_reply *srv_lookup( char *service, char *protocol, char *domain ); +G_MODULE_EXPORT struct ns_srv_reply **srv_lookup( char *service, char *protocol, char *domain ); +G_MODULE_EXPORT void srv_free( struct ns_srv_reply **srv ); G_MODULE_EXPORT char *word_wrap( const char *msg, int line_len ); -- cgit v1.2.3