]>
git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/dnssd_object.h
2 * Copyright (c) 2019-2020 Apple Inc. All rights reserved.
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
8 * https://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __DNSSD_OBJECT_H__
18 #define __DNSSD_OBJECT_H__
20 #include "dnssd_private.h"
22 //======================================================================================================================
23 // MARK: - Object Private Method Declarations
26 dnssd_object_copy_description(dnssd_any_t object
, bool debug
, bool privacy
);
29 dnssd_object_finalize(dnssd_any_t object
);
31 #define DNSSD_OBJECT_ALLOC_DECLARE(NAME) \
32 dnssd_ ## NAME ## _t \
33 dnssd_object_ ## NAME ## _alloc(size_t size)
35 DNSSD_OBJECT_ALLOC_DECLARE(getaddrinfo
);
36 DNSSD_OBJECT_ALLOC_DECLARE(getaddrinfo_result
);
37 DNSSD_OBJECT_ALLOC_DECLARE(cname_array
);
39 #endif // __DNSSD_OBJECT_H__