diff src/dnssrv.h @ 12686:5f65a0cca87c

[gaim-migrate @ 15029] Clean up the STUN / SRV API a bit. I don't use this stuff, so there was no testing beyond compiling it. I think it's right, though I couldn't find where the STUN discovery status was ever set to 1 (discovering). Anyone know something about that? committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 03 Jan 2006 00:23:24 +0000
parents 9563b768e8e2
children
line wrap: on
line diff
--- a/src/dnssrv.h	Mon Jan 02 23:07:46 2006 +0000
+++ b/src/dnssrv.h	Tue Jan 03 00:23:24 2006 +0000
@@ -23,14 +23,16 @@
 #ifndef _GAIM_DNSSRV_H
 #define _GAIM_DNSSRV_H
 
-struct srv_response {
+typedef struct _GaimSrvResponse GaimSrvResponse;
+
+struct _GaimSrvResponse {
 	char hostname[256];
 	int port;
 	int weight;
 	int pref;
 };
 
-typedef void (*SRVCallback)(struct srv_response *resp, int results, gpointer data);
+typedef void (*GaimSRVCallback)(GaimSrvResponse *resp, int results, gpointer data);
 
 /**
  * Queries an SRV record.
@@ -41,6 +43,6 @@
  * @param cb A callback which will be called with the results
  * @param extradata Extra data to be passed to the callback
  */
-void gaim_srv_resolve(const char *protocol, const char *transport, const char *domain, SRVCallback cb, gpointer extradata);
+void gaim_srv_resolve(const char *protocol, const char *transport, const char *domain, GaimSRVCallback cb, gpointer extradata);
 
 #endif /* _GAIM_DNSSRV_H */