]>
git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOS9/mDNSPrefix.h
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 Change History (most recent first):
27 $Log: mDNSPrefix.h,v $
28 Revision 1.2 2004/05/21 01:57:08 cheshire
29 Add macros for malloc() and free() so that dnssd_clientlib.c can use them
31 Revision 1.1 2004/03/12 21:30:26 cheshire
32 Build a System-Context Shared Library from mDNSCore, for the benefit of developers
33 like Muse Research who want to be able to use mDNS/DNS-SD from GPL-licensed code.
37 // Global definitions that apply to all source files
39 // Symbols that are defined here are available within all source files.
40 // This is the equivalent of using using "-d SYMBOL=VALUE" in a Makefile
41 // in command-line build environments.
43 // For normal DeferredTask time execution, set MDNS_ONLYSYSTEMTASK to 0
44 // For easier debugging, set MDNS_ONLYSYSTEMTASK to 1, and OT Notifier executions
45 // will be deferred until SystemTask time. (This option is available only for building
46 // the standalone application samples that have their own event loop -- don't try
47 // to build the System Extension with MDNS_ONLYSYSTEMTASK set because it won't work.)
49 #if __ide_target("Standalone TestResponder") || __ide_target("Standalone TestSearcher")
50 #define TARGET_API_MAC_CARBON 1
51 #define OTCARBONAPPLICATION 1
52 #define MDNS_ONLYSYSTEMTASK 0
53 #define MDNS_DEBUGMSGS 0
54 #elif __ide_target("Standalone TestResponder (Debug)") || __ide_target("Standalone TestSearcher (Debug)")
55 #define TARGET_API_MAC_CARBON 1
56 #define OTCARBONAPPLICATION 1
57 #define MDNS_ONLYSYSTEMTASK 1
58 #define MDNS_DEBUGMSGS 1
59 #elif __ide_target("Standalone TestResponder (Classic)") || __ide_target("Standalone TestSearcher (Classic)")
60 #define MDNS_ONLYSYSTEMTASK 0
61 #define MDNS_DEBUGMSGS 0
62 #elif __ide_target("CFM Library for Extensions Folder")
63 #define MDNS_BUILDINGSHAREDLIBRARY 2
64 #elif __ide_target("CFM Library for Extensions (Debug)")
65 #define MDNS_DEBUGMSGS 0
66 #define MDNS_BUILDINGSHAREDLIBRARY 1
67 #elif __ide_target("CFM Stub for clients to link against")
68 #define MDNS_BUILDINGSTUBLIBRARY 1
70 #error Options for this target not found in prefix file
73 // dnssd_clientlib.c assumes malloc() and free(), so we #define them here to be the OT equivalents
74 #if MDNS_BUILDINGSHAREDLIBRARY || MDNS_BUILDINGSTUBLIBRARY
75 #define malloc(x) OTAllocMem(x)
76 #define free(x) OTFreeMem(x)