libpurple/protocols/bonjour/dns_sd_proxy.h

Mon, 07 Oct 2019 20:24:55 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 07 Oct 2019 20:24:55 -0500
changeset 39964
5c43ee682be6
parent 39960
4a5610d858ef
child 40669
48dfed6f4f1f
permissions
-rw-r--r--

We don't need config.h so don't include it

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
23072
6e7c147d622a Bonjour build fixes for MSVC.
Daniel Atallah <datallah@pidgin.im>
parents: 20842
diff changeset
23 #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
24 #include <stdint.h>
23072
6e7c147d622a Bonjour build fixes for MSVC.
Daniel Atallah <datallah@pidgin.im>
parents: 20842
diff changeset
25 #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
26
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
27 /* 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
28 * 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
29 *
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
30 * 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
31 *
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 * 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
33 * 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
34 *
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 * 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
36 * 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
37 * 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
38 * 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
39 * 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
40 * 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
41 * 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
42 * 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
43 *
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 * 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
45 * 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
46 * 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
47 * 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
48 * 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
49 * (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
50 * 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
51 * 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
52 * (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
53 * 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
54 */
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
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 # 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
57 # 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
58 # 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
59 # 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
60 # 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
61
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 # 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
63 # 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
64
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 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
66 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
67 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
68 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
69 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
70
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
71 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
72 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
73 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
74 } 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
75
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 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
77 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
78 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
79 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
80 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
81 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
82 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
83 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
84 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
85 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
86 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
87 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
88 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
89
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 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
91 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
92 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
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
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 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
96 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
97 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
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
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 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
101 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
102 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
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
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 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
106 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
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 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
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
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
113
20200
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
114 gboolean dns_sd_available(void);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
115
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
116 DNSServiceErrorType _wpurple_DNSServiceAddRecord(DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
117 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
118 #define DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
119 _wpurple_DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
120
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
121 DNSServiceErrorType _wpurple_DNSServiceBrowse(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
122 const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
123 #define DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
124 _wpurple_DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
125
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
126 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
127 #define DNSServiceConstructFullName(fullName, service, regtype, domain) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
128 _wpurple_DNSServiceConstructFullName(fullName, service, regtype, domain)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
129
30824
5cdb0deaaa9b Use DNSServiceGetAddrInfo() from dns_sd.h to resolve the IP for remote bonjour
Daniel Atallah <datallah@pidgin.im>
parents: 23072
diff changeset
130 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
131 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
132 #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
133 _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
134
20200
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
135 DNSServiceErrorType _wpurple_DNSServiceProcessResult(DNSServiceRef sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
136 #define DNSServiceProcessResult(sdRef) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
137 _wpurple_DNSServiceProcessResult(sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
138
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
139 DNSServiceErrorType _wpurple_DNSServiceQueryRecord(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
140 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
141 #define DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
142 _wpurple_DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
143
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
144 void _wpurple_DNSServiceRefDeallocate(DNSServiceRef sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
145 #define DNSServiceRefDeallocate(sdRef) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
146 _wpurple_DNSServiceRefDeallocate(sdRef)
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 int _wpurple_DNSServiceRefSockFD(DNSServiceRef sdRef);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
149 #define DNSServiceRefSockFD(sdRef) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
150 _wpurple_DNSServiceRefSockFD(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 DNSServiceErrorType _wpurple_DNSServiceRegister(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
153 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
154 const void *txtRecord, DNSServiceRegisterReply callBack, void *context);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
155 #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
156 _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
157
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
158 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
159 const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
160 #define DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
161 _wpurple_DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
162
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
163 DNSServiceErrorType _wpurple_DNSServiceRemoveRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
164 #define DNSServiceRemoveRecord(sdRef, RecordRef, flags) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
165 _wpurple_DNSServiceRemoveRecord(sdRef, RecordRef, flags)
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_DNSServiceUpdateRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags,
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
168 uint16_t rdlen, const void *rdata, uint32_t ttl);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
169 #define DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
170 _wpurple_DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
171
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
172 void _wpurple_TXTRecordCreate(TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
173 #define TXTRecordCreate(txtRecord, bufferLen, buffer) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
174 _wpurple_TXTRecordCreate(txtRecord, bufferLen, buffer)
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_TXTRecordDeallocate(TXTRecordRef *txtRecord);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
177 #define TXTRecordDeallocate(txtRecord) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
178 _wpurple_TXTRecordDeallocate(txtRecord)
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 const void * _wpurple_TXTRecordGetBytesPtr(const TXTRecordRef *txtRecord);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
181 #define TXTRecordGetBytesPtr(txtRecord) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
182 _wpurple_TXTRecordGetBytesPtr(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 uint16_t _wpurple_TXTRecordGetLength(const TXTRecordRef *txtRecord);
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
185 #define TXTRecordGetLength(txtRecord) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
186 _wpurple_TXTRecordGetLength(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 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
189 #define TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
190 _wpurple_TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen)
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 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
193 #define TXTRecordSetValue(txtRecord, key, valueSize, value) \
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
194 _wpurple_TXTRecordSetValue(txtRecord, key, valueSize, value)
21898c919046 applied changes from fbb7ffaf4075cf690cc3ff9d171e56320e9af8da
Luke Schierer <lschiere@pidgin.im>
parents: 19387
diff changeset
195
39819
3554dac2991b Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36293
diff changeset
196 #endif /* PURPLE_BONJOUR_DNS_SD_PROXY_H */

mercurial