]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/dDNS.h
mDNSResponder-107.5.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / dDNS.h
1 /*
2 * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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
11 * file.
12 *
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.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22
23 Change History (most recent first):
24
25 */
26
27
28 #ifndef __dDNS_h
29 #define __dDNS_h
30
31 #include "mDNSEmbeddedAPI.h"
32 #include "dns_sd.h"
33
34 #if 0
35 #pragma mark - DynDNS structures
36 #endif
37
38 #if WIN32
39 // named type definition in parentheses
40 # pragma warning( disable: 4115 )
41 #endif
42
43 typedef struct IPAddrListElem
44 {
45 mDNSAddr addr;
46 struct IPAddrListElem *next;
47 } IPAddrListElem;
48
49 extern void dDNS_FreeIPAddrList( IPAddrListElem * list );
50
51
52 // ***************************************************************************
53 #if 0
54 #pragma mark - Main Client Functions
55 #endif
56
57 extern mStatus dDNS_Setup( mDNS *const m );
58 extern mStatus dDNS_InitDNSConfig( mDNS *const m );
59 extern mStatus dDNS_SetupAddr( mDNSAddr *ip, const struct sockaddr * const sa );
60
61
62 // ***************************************************************************
63 #if 0
64 #pragma mark - PlatformSupport interface
65 #endif
66
67 // This section defines the interface to the DynDNS Platform Support layer.
68
69 extern void dDNSPlatformGetConfig(domainname *const fqdn, domainname *const regDomain, DNameListElem ** browseDomains);
70 extern void dDNSPlatformSetNameStatus(domainname *const dname, mStatus status);
71 extern void dDNSPlatformSetSecretForDomain( mDNS *m, const domainname *domain );
72 extern DNameListElem * dDNSPlatformGetSearchDomainList( void );
73 extern DNameListElem * dDNSPlatformGetReverseMapSearchDomainList( void );
74 extern IPAddrListElem * dDNSPlatformGetDNSServers( void );
75 extern DNameListElem * dDNSPlatformGetDomainName( void );
76 extern mStatus dDNSPlatformRegisterSplitDNS( mDNS *m );
77 extern mStatus dDNSPlatformGetPrimaryInterface( mDNS * m, mDNSAddr * primary, mDNSAddr * router );
78 extern void dDNSPlatformDefaultBrowseDomainChanged( const domainname *d, mDNSBool add );
79 extern void dDNSPlatformDefaultRegDomainChanged(const domainname *d, mDNSBool add);
80
81 #endif
82