diff src/protocols/rendezvous/mdns.h @ 8806:8212661dc3cc

[gaim-migrate @ 9568] I think mDNS records should be caching now... my iBook isn't booting, so I don't really have a way to test it. I need to fix that. I change some stuff from GHashTables to GSLists, I think, which meant changing a lot of code. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 25 Apr 2004 16:23:20 +0000
parents dbbf5470ba05
children beb7be215db3
line wrap: on
line diff
--- a/src/protocols/rendezvous/mdns.h	Sun Apr 25 13:54:49 2004 +0000
+++ b/src/protocols/rendezvous/mdns.h	Sun Apr 25 16:23:20 2004 +0000
@@ -98,23 +98,18 @@
 typedef GSList ResourceRecordRDataTXT;
 
 typedef struct _ResourceRecordRDataSRV {
-	unsigned short port;
-	char *target;
-} ResourceRecordRDataSRV;
-
-typedef struct _ResourceRecordSRV {
 	unsigned int priority;
 	unsigned int weight;
 	unsigned int port;
 	gchar *target;
-} ResourceRecordSRV;
+} ResourceRecordRDataSRV;
 
 typedef struct _DNSPacket {
 	Header header;
-	Question *questions;
-	ResourceRecord *answers;
-	ResourceRecord *authority;
-	ResourceRecord *additional;
+	GSList *questions;
+	GSList *answers;
+	GSList *authority;
+	GSList *additional;
 } DNSPacket;
 
 /*
@@ -179,5 +174,12 @@
  */
 void mdns_free(DNSPacket *dns);
 void mdns_free_rr(ResourceRecord *rr);
+void mdns_free_rrs(GSList *rrs);
+
+ResourceRecord *mdns_copy_rr(const ResourceRecord *rr);
+
+ResourceRecordRDataTXTNode *mdns_txt_find(const GSList *ret, const char *name);
+GSList *mdns_txt_add(GSList *ret, const char *name, const char *value, gboolean replace);
+
 
 #endif /* _MDNS_H_ */