annotate libpurple/protocols/bonjour/dns_sd_proxy.h @ 20765:53691c081eab

rlaager noticed that these comments shouldn't be processed by doxygen.
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 03 Oct 2007 18:45:31 +0000
parents fb70e89180a9
children 1c87e81c44fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20765
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
1 /*
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
2 *
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
3 * Purple is the legal property of its developers, whose names are too numerous
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
5 * source distribution.
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
6 *
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
7 * This program is free software; you can redistribute it and/or modify
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
8 * it under the terms of the GNU General Public License as published by
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
10 * (at your option) any later version.
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
11 *
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
12 * This program is distributed in the hope that it will be useful,
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
15 * GNU Library General Public License for more details.
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
16 *
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
17 * You should have received a copy of the GNU General Public License
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
18 * along with this program; if not, write to the Free Software
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
53691c081eab rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 20761
diff changeset
20 */
17495
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
21 #ifndef _DNS_SD_PROXY
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
22 #define _DNS_SD_PROXY
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
23
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
24 #include <stdint.h>
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
25
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
26 /* fixup to make pidgin compile against win32 bonjour */
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
27 #ifdef _WIN32
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
28 #define _MSL_STDINT_H
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
29 #endif
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
30
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
31 #include <dns_sd.h>
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
32
20761
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
33 gboolean dns_sd_available(void);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
34
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
35 #ifndef LINK_DNS_SD_DIRECTLY
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
36
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
37 DNSServiceErrorType _wpurple_DNSServiceAddRecord(DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags,
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
38 uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
39 #define DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
40 _wpurple_DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
41
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
42 DNSServiceErrorType _wpurple_DNSServiceBrowse(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
43 const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
44 #define DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
45 _wpurple_DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
46
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
47 int _wpurple_DNSServiceConstructFullName(char *fullName, const char *service, const char *regtype, const char *domain);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
48 #define DNSServiceConstructFullName(fullName, service, regtype, domain) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
49 _wpurple_DNSServiceConstructFullName(fullName, service, regtype, domain)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
50
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
51 DNSServiceErrorType _wpurple_DNSServiceProcessResult(DNSServiceRef sdRef);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
52 #define DNSServiceProcessResult(sdRef) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
53 _wpurple_DNSServiceProcessResult(sdRef);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
54
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
55 DNSServiceErrorType _wpurple_DNSServiceQueryRecord(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
56 const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
57 #define DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
58 _wpurple_DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
59
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
60 void _wpurple_DNSServiceRefDeallocate(DNSServiceRef sdRef);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
61 #define DNSServiceRefDeallocate(sdRef) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
62 _wpurple_DNSServiceRefDeallocate(sdRef)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
63
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
64 int _wpurple_DNSServiceRefSockFD(DNSServiceRef sdRef);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
65 #define DNSServiceRefSockFD(sdRef) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
66 _wpurple_DNSServiceRefSockFD(sdRef)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
67
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
68 DNSServiceErrorType _wpurple_DNSServiceRegister(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
69 const char *name, const char *regtype, const char *domain, const char *host, uint16_t port, uint16_t txtLen,
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
70 const void *txtRecord, DNSServiceRegisterReply callBack, void *context);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
71 #define DNSServiceRegister(sdRef, flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, callBack, context) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
72 _wpurple_DNSServiceRegister(sdRef, flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, callBack, context)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
73
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
74 DNSServiceErrorType _wpurple_DNSServiceResolve(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name,
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
75 const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
76 #define DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
77 _wpurple_DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
78
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
79 DNSServiceErrorType _wpurple_DNSServiceRemoveRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
80 #define DNSServiceRemoveRecord(sdRef, RecordRef, flags) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
81 _wpurple_DNSServiceRemoveRecord(sdRef, RecordRef, flags)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
82
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
83 DNSServiceErrorType _wpurple_DNSServiceUpdateRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags,
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
84 uint16_t rdlen, const void *rdata, uint32_t ttl);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
85 #define DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
86 _wpurple_DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
87
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
88 void _wpurple_TXTRecordCreate(TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
89 #define TXTRecordCreate(txtRecord, bufferLen, buffer) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
90 _wpurple_TXTRecordCreate(txtRecord, bufferLen, buffer)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
91
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
92 void _wpurple_TXTRecordDeallocate(TXTRecordRef *txtRecord);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
93 #define TXTRecordDeallocate(txtRecord) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
94 _wpurple_TXTRecordDeallocate(txtRecord)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
95
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
96 const void * _wpurple_TXTRecordGetBytesPtr(const TXTRecordRef *txtRecord);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
97 #define TXTRecordGetBytesPtr(txtRecord) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
98 _wpurple_TXTRecordGetBytesPtr(txtRecord)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
99
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
100 uint16_t _wpurple_TXTRecordGetLength(const TXTRecordRef *txtRecord);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
101 #define TXTRecordGetLength(txtRecord) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
102 _wpurple_TXTRecordGetLength(txtRecord)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
103
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
104 const void * _wpurple_TXTRecordGetValuePtr(uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
105 #define TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
106 _wpurple_TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
107
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
108 DNSServiceErrorType _wpurple_TXTRecordSetValue(TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, const void *value);
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
109 #define TXTRecordSetValue(txtRecord, key, valueSize, value) \
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
110 _wpurple_TXTRecordSetValue(txtRecord, key, valueSize, value)
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
111
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
112 #endif /*LINK_DNS_SD_DIRECTLY*/
fb70e89180a9 Don't link the bonjour prpl on win32 directly to the Apple Bonjour library, instead do everything indirectly and display an error message at login time indicating that Bonjour isn't installed. This should make the prpl more discoverable.
Daniel Atallah <daniel.atallah@gmail.com>
parents: 19268
diff changeset
113
17495
d7b50cac1c7a This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
diff changeset
114 #endif