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