comparison src/protocols/rendezvous/mdns.h @ 8629:fdff0f31002d

[gaim-migrate @ 9381] Rendezvous updates: Advertise txt stuff for Gaim; just a step toward having Gaim users show up in iChat rendezvous buddy lists. Also a fix to make away people show up as away and available people to not show up as away. No one should be using this yet. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 11 Apr 2004 03:27:11 +0000
parents 219e9638e8f3
children 7b8f2818f38a
comparison
equal deleted inserted replaced
8628:54baaec95c05 8629:fdff0f31002d
87 int ttl; 87 int ttl;
88 unsigned short rdlength; 88 unsigned short rdlength;
89 void *rdata; 89 void *rdata;
90 } ResourceRecord; 90 } ResourceRecord;
91 91
92 typedef struct _ResourceRecordTXTRDataNode {
93 char *name;
94 char *value;
95 } ResourceRecordTXTRDataNode;
96
97 typedef GSList ResourceRecordTXTRData;
98
92 typedef GHashTable ResourceRecordTXT; 99 typedef GHashTable ResourceRecordTXT;
93 100
94 typedef struct _ResourceRecordSRV { 101 typedef struct _ResourceRecordSRV {
95 unsigned int priority; 102 unsigned int priority;
96 unsigned int weight; 103 unsigned int weight;
144 * @return 0 if sucessful. 151 * @return 0 if sucessful.
145 */ 152 */
146 int mdns_query(int fd, const char *domain); 153 int mdns_query(int fd, const char *domain);
147 154
148 int mdns_advertise_ptr(int fd, const char *name, const char *domain); 155 int mdns_advertise_ptr(int fd, const char *name, const char *domain);
156 int mdns_advertise_txt(int fd, const char *name, const GSList *txt);
149 157
150 /** 158 /**
151 * Read a UDP packet from the given file descriptor and parse it 159 * Read a UDP packet from the given file descriptor and parse it
152 * into a DNSPacket. 160 * into a DNSPacket.
153 * 161 *