libpurple/protocols/bonjour/dns_sd_proxy.h

Sat, 28 Sep 2019 03:28:30 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Sat, 28 Sep 2019 03:28:30 -0500
changeset 39960
4a5610d858ef
parent 39819
3554dac2991b
child 39964
5c43ee682be6
permissions
-rw-r--r--

update bonjour to just use purple.h

20842
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
1 /*
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
2 * Purple is the legal property of its developers, whose names are too numerous
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
3 * to list here. Please refer to the COPYRIGHT file distributed with this
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
4 * source distribution.
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
5 *
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
6 * This program is free software; you can redistribute it and/or modify
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
7 * it under the terms of the GNU General Public License as published by
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
9 * (at your option) any later version.
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
10 *
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
11 * This program is distributed in the hope that it will be useful,
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
14 * GNU Library General Public License for more details.
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
15 *
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
16 * You should have received a copy of the GNU General Public License
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
17 * along with this program; if not, write to the Free Software
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
d9b06f761ec8 rlaager noticed that these comments shouldn't be processed by doxygen.
Daniel Atallah <datallah@pidgin.im>
parents: 20200
diff changeset
19 */
39819
3554dac2991b Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36293
diff changeset
20 #ifndef PURPLE_BONJOUR_DNS_SD_PROXY_H
3554dac2991b Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36293
diff changeset
21 #define PURPLE_BONJOUR_DNS_SD_PROXY_H
17596
45f6190fe54a 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 <datallah@pidgin.im>
parents:
diff changeset
22
39960
4a5610d858ef update bonjour to just use purple.h
Gary Kramlich <grim@reaperworld.com>
parents: 39819
diff changeset
23 #if HAVE_CONFIG_H
4a5610d858ef update bonjour to just use purple.h
Gary Kramlich <grim@reaperworld.com>
parents: 39819
diff changeset
24 # include <config.h>
4a5610d858ef update bonjour to just use purple.h
Gary Kramlich <grim@reaperworld.com>
parents: 39819
diff changeset
25 #endif /* HAVE_CONFIG_H */
23072
6e7c147d622a Bonjour build fixes for MSVC.
Daniel Atallah <datallah@pidgin.im>
parents: 20842
diff changeset
26
6e7c147d622a Bonjour build fixes for MSVC.
Daniel Atallah <datallah@pidgin.im>
parents: 20842
diff changeset
27 #ifndef _MSC_VER
17596
45f6190fe54a 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 <datallah@pidgin.im>
parents:
diff changeset
28 #include <stdint.h>
23072
6e7c147d622a Bonjour build fixes for MSVC.
Daniel Atallah <datallah@pidgin.im>
parents: 20842
diff changeset
29 #endif
17596
45f6190fe54a 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 <datallah@pidgin.im>
parents:
diff changeset
30
36292
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
31 /* The following is a subset of Apple's dns_sd.h file
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
32 * http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-333.10/mDNSShared/dns_sd.h
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
33 *
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
34 * Copyright (c) 2003-2004, Apple Computer, Inc. All rights reserved.
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
35 *
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
36 * Redistribution and use in source and binary forms, with or without
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
37 * modification, are permitted provided that the following conditions are met:
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
38 *
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
39 * 1. Redistributions of source code must retain the above copyright notice,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
40 * this list of conditions and the following disclaimer.
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
41 * 2. Redistributions in binary form must reproduce the above copyright notice,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
42 * this list of conditions and the following disclaimer in the documentation
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
43 * and/or other materials provided with the distribution.
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
44 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of its
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
45 * contributors may be used to endorse or promote products derived from this
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
46 * software without specific prior written permission.
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
47 *
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
48 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
49 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
50 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
51 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
52 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
53 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
54 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
55 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
56 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
57 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
58 */
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
59
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
60 # if defined(_WIN32) && !defined(EFI32) && !defined(EFI64)
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
61 # define DNSSD_API __stdcall
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
62 # else
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
63 # define DNSSD_API
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
64 # endif
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
65
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
66 # define kDNSServiceInterfaceIndexAny 0
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
67 # define kDNSServiceMaxDomainName 1009
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
68
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
69 typedef gint32 DNSServiceErrorType;
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
70 typedef guint32 DNSServiceFlags;
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
71 typedef struct _DNSServiceRef_t *DNSServiceRef;
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
72 typedef struct _DNSRecordRef_t *DNSRecordRef;
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
73 typedef guint32 DNSServiceProtocol;
17596
45f6190fe54a 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 <datallah@pidgin.im>
parents:
diff changeset
74
36292
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
75 typedef union _TXTRecordRef_t {
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
76 gchar PrivateData[16];
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
77 gchar *ForceNaturalAlignment;
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
78 } TXTRecordRef;
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
79
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
80 typedef void (DNSSD_API *DNSServiceBrowseReply)();
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
81 typedef void (DNSSD_API *DNSServiceGetAddrInfoReply)();
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
82 typedef void (DNSSD_API *DNSServiceQueryRecordReply)(
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
83 DNSServiceRef sdRef, DNSServiceFlags flags, guint32 interfaceIndex,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
84 DNSServiceErrorType errorCode, const gchar *fullname,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
85 guint16 rrtype, guint16 rrclass, guint16 rdlen, const void *rdata,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
86 guint32 ttl, void *context);
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
87 typedef void (DNSSD_API *DNSServiceRegisterReply)();
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
88 typedef void (DNSSD_API *DNSServiceResolveReply)(
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
89 DNSServiceRef sdRef, DNSServiceFlags flags, guint32 interfaceIndex,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
90 DNSServiceErrorType errorCode, const gchar *fullname,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
91 const gchar *hosttarget, guint16 port, guint16 txtLen,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
92 const guchar *txtRecord, void *context);
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
93
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
94 enum {
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
95 kDNSServiceErr_NoError = 0,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
96 kDNSServiceErr_Unknown = -65537,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
97 };
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
98
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
99 enum {
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
100 kDNSServiceFlagsAdd = 0x2,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
101 kDNSServiceFlagsLongLivedQuery = 0x100,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
102 };
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
103
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
104 enum {
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
105 kDNSServiceType_NULL = 10,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
106 kDNSServiceType_TXT = 16,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
107 };
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
108
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
109 enum {
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
110 kDNSServiceClass_IN = 1,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
111 };
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
112
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
113 enum {
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
114 kDNSServiceProtocol_IPv4 = 0x01,
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
115 };
7012c84d4d3b Backport part of Tomasz' e5cc097d6c82 so that we don't need to pull dns_sd.h from Apple's hard to download SDK.
Daniel Atallah <datallah@pidgin.im>
parents: 30824
diff changeset
116
17596
45f6190fe54a 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 <datallah@pidgin.im>
parents:
diff changeset
117
20200
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
118 gboolean dns_sd_available(void);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
119
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
120 DNSServiceErrorType _wpurple_DNSServiceAddRecord(DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
121 uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
122 #define DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
123 _wpurple_DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
124
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
125 DNSServiceErrorType _wpurple_DNSServiceBrowse(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
126 const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
127 #define DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
128 _wpurple_DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
129
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
130 int _wpurple_DNSServiceConstructFullName(char *fullName, const char *service, const char *regtype, const char *domain);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
131 #define DNSServiceConstructFullName(fullName, service, regtype, domain) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
132 _wpurple_DNSServiceConstructFullName(fullName, service, regtype, domain)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
133
30824
5cdb0deaaa9b Use DNSServiceGetAddrInfo() from dns_sd.h to resolve the IP for remote bonjour
Daniel Atallah <datallah@pidgin.im>
parents: 23072
diff changeset
134 DNSServiceErrorType _wpurple_DNSServiceGetAddrInfo(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
5cdb0deaaa9b Use DNSServiceGetAddrInfo() from dns_sd.h to resolve the IP for remote bonjour
Daniel Atallah <datallah@pidgin.im>
parents: 23072
diff changeset
135 DNSServiceProtocol protocol, const char *hostname, DNSServiceGetAddrInfoReply callBack, void *context);
5cdb0deaaa9b Use DNSServiceGetAddrInfo() from dns_sd.h to resolve the IP for remote bonjour
Daniel Atallah <datallah@pidgin.im>
parents: 23072
diff changeset
136 #define DNSServiceGetAddrInfo(sdRef, flags, interfaceIndex, protocol, hostname, callBack, context) \
5cdb0deaaa9b Use DNSServiceGetAddrInfo() from dns_sd.h to resolve the IP for remote bonjour
Daniel Atallah <datallah@pidgin.im>
parents: 23072
diff changeset
137 _wpurple_DNSServiceGetAddrInfo(sdRef, flags, interfaceIndex, protocol, hostname, callBack, context)
5cdb0deaaa9b Use DNSServiceGetAddrInfo() from dns_sd.h to resolve the IP for remote bonjour
Daniel Atallah <datallah@pidgin.im>
parents: 23072
diff changeset
138
20200
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
139 DNSServiceErrorType _wpurple_DNSServiceProcessResult(DNSServiceRef sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
140 #define DNSServiceProcessResult(sdRef) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
141 _wpurple_DNSServiceProcessResult(sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
142
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
143 DNSServiceErrorType _wpurple_DNSServiceQueryRecord(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
144 const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
145 #define DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
146 _wpurple_DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
147
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
148 void _wpurple_DNSServiceRefDeallocate(DNSServiceRef sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
149 #define DNSServiceRefDeallocate(sdRef) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
150 _wpurple_DNSServiceRefDeallocate(sdRef)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
151
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
152 int _wpurple_DNSServiceRefSockFD(DNSServiceRef sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
153 #define DNSServiceRefSockFD(sdRef) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
154 _wpurple_DNSServiceRefSockFD(sdRef)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
155
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
156 DNSServiceErrorType _wpurple_DNSServiceRegister(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
157 const char *name, const char *regtype, const char *domain, const char *host, uint16_t port, uint16_t txtLen,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
158 const void *txtRecord, DNSServiceRegisterReply callBack, void *context);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
159 #define DNSServiceRegister(sdRef, flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, callBack, context) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
160 _wpurple_DNSServiceRegister(sdRef, flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, callBack, context)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
161
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
162 DNSServiceErrorType _wpurple_DNSServiceResolve(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
163 const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
164 #define DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
165 _wpurple_DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
166
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
167 DNSServiceErrorType _wpurple_DNSServiceRemoveRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
168 #define DNSServiceRemoveRecord(sdRef, RecordRef, flags) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
169 _wpurple_DNSServiceRemoveRecord(sdRef, RecordRef, flags)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
170
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
171 DNSServiceErrorType _wpurple_DNSServiceUpdateRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
172 uint16_t rdlen, const void *rdata, uint32_t ttl);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
173 #define DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
174 _wpurple_DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
175
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
176 void _wpurple_TXTRecordCreate(TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
177 #define TXTRecordCreate(txtRecord, bufferLen, buffer) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
178 _wpurple_TXTRecordCreate(txtRecord, bufferLen, buffer)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
179
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
180 void _wpurple_TXTRecordDeallocate(TXTRecordRef *txtRecord);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
181 #define TXTRecordDeallocate(txtRecord) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
182 _wpurple_TXTRecordDeallocate(txtRecord)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
183
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
184 const void * _wpurple_TXTRecordGetBytesPtr(const TXTRecordRef *txtRecord);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
185 #define TXTRecordGetBytesPtr(txtRecord) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
186 _wpurple_TXTRecordGetBytesPtr(txtRecord)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
187
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
188 uint16_t _wpurple_TXTRecordGetLength(const TXTRecordRef *txtRecord);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
189 #define TXTRecordGetLength(txtRecord) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
190 _wpurple_TXTRecordGetLength(txtRecord)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
191
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
192 const void * _wpurple_TXTRecordGetValuePtr(uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
193 #define TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
194 _wpurple_TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
195
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
196 DNSServiceErrorType _wpurple_TXTRecordSetValue(TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, const void *value);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
197 #define TXTRecordSetValue(txtRecord, key, valueSize, value) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
198 _wpurple_TXTRecordSetValue(txtRecord, key, valueSize, value)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
199
39819
3554dac2991b Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36293
diff changeset
200 #endif /* PURPLE_BONJOUR_DNS_SD_PROXY_H */

mercurial