aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@google.com>2010-08-10 12:18:09 +0100
committerWilmer van der Gaast <wilmer@google.com>2010-08-10 12:18:09 +0100
commitffdf2e71d9e67980727aa994b77fca36ef5246c6 (patch)
tree59277a71581915c3203f879b4bf8276fdb001dbf /lib/misc.h
parentf32c14c649e854fbfb7b8e495e2ebc8459ee5b6f (diff)
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.
Diffstat (limited to 'lib/misc.h')
-rw-r--r--lib/misc.h3
1 files changed, 2 insertions, 1 deletions
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 );