]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/dnssd_object.h
mDNSResponder-1310.40.42.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / dnssd_object.h
1 /*
2 * Copyright (c) 2019-2020 Apple Inc. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef __DNSSD_OBJECT_H__
18 #define __DNSSD_OBJECT_H__
19
20 #include "dnssd_private.h"
21
22 //======================================================================================================================
23 // MARK: - Object Private Method Declarations
24
25 char *
26 dnssd_object_copy_description(dnssd_any_t object, bool debug, bool privacy);
27
28 void
29 dnssd_object_finalize(dnssd_any_t object);
30
31 #define DNSSD_OBJECT_ALLOC_DECLARE(NAME) \
32 dnssd_ ## NAME ## _t \
33 dnssd_object_ ## NAME ## _alloc(size_t size)
34
35 DNSSD_OBJECT_ALLOC_DECLARE(getaddrinfo);
36 DNSSD_OBJECT_ALLOC_DECLARE(getaddrinfo_result);
37 DNSSD_OBJECT_ALLOC_DECLARE(cname_array);
38
39 #endif // __DNSSD_OBJECT_H__