annotate libpurple/protocols/bonjour/dns_sd_proxy.c @ 23173:faad5c0686a4

German translation update
author Jochen Kemnade <jochenkemnade@web.de>
date Sat, 24 May 2008 08:34:54 +0000
parents 53691c081eab
children 014a58e994da
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 /*
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:
diff changeset
2 *
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:
diff changeset
3 * Purple is the legal property of its developers, whose names are too numerous
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:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
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:
diff changeset
5 * source distribution.
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:
diff changeset
6 *
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:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
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:
diff changeset
8 * it under the terms of the GNU General Public License as published by
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:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
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:
diff changeset
10 * (at your option) any later version.
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:
diff changeset
11 *
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:
diff changeset
12 * This program is distributed in the hope that it will be useful,
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:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
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:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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:
diff changeset
15 * GNU Library General Public License for more details.
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:
diff changeset
16 *
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:
diff changeset
17 * You should have received a copy of the GNU General Public License
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:
diff changeset
18 * along with this program; if not, write to the Free Software
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:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
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:
diff changeset
20 */
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:
diff changeset
21
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:
diff changeset
22 #include "win32dep.h"
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:
diff changeset
23 #include "dns_sd_proxy.h"
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:
diff changeset
24
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:
diff changeset
25 #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:
diff changeset
26 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
27 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:
diff changeset
28 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
29 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:
diff changeset
30 static int (DNSSD_API* _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:
diff changeset
31 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
32 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
33 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:
diff changeset
34 static void (DNSSD_API* _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:
diff changeset
35 static int (DNSSD_API* _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:
diff changeset
36 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
37 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:
diff changeset
38 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:
diff changeset
39 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
40 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:
diff changeset
41 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
42 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
43 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:
diff changeset
44 static void (DNSSD_API* _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:
diff changeset
45 static void (DNSSD_API* _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:
diff changeset
46 static const void * (DNSSD_API* _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:
diff changeset
47 static int16_t (DNSSD_API* _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:
diff changeset
48 static const void * (DNSSD_API* _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:
diff changeset
49 static DNSServiceErrorType (DNSSD_API* _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:
diff changeset
50 #endif
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:
diff changeset
51
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:
diff changeset
52 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:
diff changeset
53 #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:
diff changeset
54 static gboolean initialized = FALSE;
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:
diff changeset
55 static gboolean loaded = FALSE;
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:
diff changeset
56
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:
diff changeset
57 if (!initialized) {
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:
diff changeset
58 initialized = TRUE;
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:
diff changeset
59 if ((_DNSServiceAddRecord = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceAddRecord"))
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:
diff changeset
60 && (_DNSServiceBrowse = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceBrowse"))
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:
diff changeset
61 && (_DNSServiceConstructFullName = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceConstructFullName"))
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:
diff changeset
62 && (_DNSServiceProcessResult = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceProcessResult"))
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:
diff changeset
63 && (_DNSServiceQueryRecord = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceQueryRecord"))
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:
diff changeset
64 && (_DNSServiceRefDeallocate = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceRefDeallocate"))
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:
diff changeset
65 && (_DNSServiceRefSockFD = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceRefSockFD"))
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:
diff changeset
66 && (_DNSServiceRegister = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceRegister"))
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:
diff changeset
67 && (_DNSServiceResolve = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceResolve"))
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:
diff changeset
68 && (_DNSServiceRemoveRecord = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceRemoveRecord"))
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:
diff changeset
69 && (_DNSServiceUpdateRecord = (void *) wpurple_find_and_loadproc("dnssd.dll", "DNSServiceUpdateRecord"))
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:
diff changeset
70 && (_TXTRecordCreate = (void *) wpurple_find_and_loadproc("dnssd.dll", "TXTRecordCreate"))
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:
diff changeset
71 && (_TXTRecordDeallocate = (void *) wpurple_find_and_loadproc("dnssd.dll", "TXTRecordDeallocate"))
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:
diff changeset
72 && (_TXTRecordGetBytesPtr = (void *) wpurple_find_and_loadproc("dnssd.dll", "TXTRecordGetBytesPtr"))
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:
diff changeset
73 && (_TXTRecordGetLength = (void *) wpurple_find_and_loadproc("dnssd.dll", "TXTRecordGetLength"))
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:
diff changeset
74 && (_TXTRecordGetValuePtr = (void *) wpurple_find_and_loadproc("dnssd.dll", "TXTRecordGetValuePtr"))
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:
diff changeset
75 && (_TXTRecordSetValue = (void *) wpurple_find_and_loadproc("dnssd.dll", "TXTRecordSetValue"))) {
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:
diff changeset
76 loaded = TRUE;
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:
diff changeset
77 }
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:
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:
diff changeset
79 return loaded;
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:
diff changeset
80 #else
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:
diff changeset
81 return TRUE;
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:
diff changeset
82 #endif
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:
diff changeset
83 }
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:
diff changeset
84
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:
diff changeset
85 #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:
diff changeset
86
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:
diff changeset
87 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:
diff changeset
88 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:
diff changeset
89 g_return_val_if_fail(_DNSServiceAddRecord != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
90 return (_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:
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:
diff changeset
92
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:
diff changeset
93 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:
diff changeset
94 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:
diff changeset
95 g_return_val_if_fail(_DNSServiceBrowse != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
96 return (_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:
diff changeset
97 }
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:
diff changeset
98
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:
diff changeset
99 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:
diff changeset
100 g_return_val_if_fail(_DNSServiceConstructFullName != NULL, 0);
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:
diff changeset
101 return (_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:
diff changeset
102 }
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:
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:
diff changeset
104 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:
diff changeset
105 g_return_val_if_fail(_DNSServiceProcessResult != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
106 return (_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:
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:
diff changeset
108
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:
diff changeset
109
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:
diff changeset
110 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:
diff changeset
111 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:
diff changeset
112 g_return_val_if_fail(_DNSServiceQueryRecord != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
113 return (_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:
diff changeset
114 }
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:
diff changeset
115
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:
diff changeset
116 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:
diff changeset
117 g_return_if_fail(_DNSServiceRefDeallocate != NULL);
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:
diff changeset
118 (_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:
diff changeset
119 }
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:
diff changeset
120
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:
diff changeset
121 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:
diff changeset
122 g_return_val_if_fail(_DNSServiceRefSockFD != NULL, -1);
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:
diff changeset
123 return (_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:
diff changeset
124 }
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:
diff changeset
125
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:
diff changeset
126 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:
diff changeset
127 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:
diff changeset
128 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:
diff changeset
129 g_return_val_if_fail(_DNSServiceRegister != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
130 return (_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:
diff changeset
131 }
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:
diff changeset
132
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:
diff changeset
133 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:
diff changeset
134 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:
diff changeset
135 g_return_val_if_fail(_DNSServiceResolve != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
136 return (_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:
diff changeset
137 }
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:
diff changeset
138
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:
diff changeset
139 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:
diff changeset
140 g_return_val_if_fail(_DNSServiceRemoveRecord != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
141 return (_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:
diff changeset
142 }
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:
diff changeset
143
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:
diff changeset
144 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:
diff changeset
145 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:
diff changeset
146 g_return_val_if_fail(_DNSServiceUpdateRecord != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
147 return (_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:
diff changeset
148 }
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:
diff changeset
149
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:
diff changeset
150 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:
diff changeset
151 g_return_if_fail(_TXTRecordCreate != NULL);
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:
diff changeset
152 (_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:
diff changeset
153 }
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:
diff changeset
154
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:
diff changeset
155 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:
diff changeset
156 g_return_if_fail(_TXTRecordDeallocate != NULL);
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:
diff changeset
157 (_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:
diff changeset
158 }
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:
diff changeset
159
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:
diff changeset
160 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:
diff changeset
161 g_return_val_if_fail(_TXTRecordGetBytesPtr != NULL, NULL);
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:
diff changeset
162 return (_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:
diff changeset
163 }
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:
diff changeset
164
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:
diff changeset
165 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:
diff changeset
166 g_return_val_if_fail(_TXTRecordGetLength != NULL, 0);
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:
diff changeset
167 return (_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:
diff changeset
168 }
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:
diff changeset
169
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:
diff changeset
170 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:
diff changeset
171 g_return_val_if_fail(_TXTRecordGetValuePtr != NULL, NULL);
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:
diff changeset
172 return (_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:
diff changeset
173 }
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:
diff changeset
174
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:
diff changeset
175 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:
diff changeset
176 g_return_val_if_fail(_TXTRecordSetValue != NULL, kDNSServiceErr_Unknown);
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:
diff changeset
177 return (_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:
diff changeset
178 }
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:
diff changeset
179
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:
diff changeset
180 #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:
diff changeset
181