diff options
author | Wilmer van der Gaast <wilmer@google.com> | 2010-08-10 12:18:09 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@google.com> | 2010-08-10 12:18:09 +0100 |
commit | ffdf2e71d9e67980727aa994b77fca36ef5246c6 (patch) | |
tree | 59277a71581915c3203f879b4bf8276fdb001dbf /lib/misc.h | |
parent | f32c14c649e854fbfb7b8e495e2ebc8459ee5b6f (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 ); |