]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/dDNS.h
mDNSResponder-107.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 typedef struct IPAddrListElem
39 {
40 mDNSAddr addr;
41 struct IPAddrListElem *next;
42 } IPAddrListElem;
43
44 extern void dDNS_FreeIPAddrList( IPAddrListElem * list );
45
46
47 // ***************************************************************************
48 #if 0
49 #pragma mark - Main Client Functions
50 #endif
51
52 extern mStatus dDNS_Setup( mDNS *const m );
53 extern mStatus dDNS_InitDNSConfig( mDNS *const m );
54 extern mStatus dDNS_SetupAddr( mDNSAddr *ip, const struct sockaddr * const sa );
55
56
57 // ***************************************************************************
58 #if 0
59 #pragma mark - PlatformSupport interface
60 #endif
61
62 // This section defines the interface to the DynDNS Platform Support layer.
63
64 extern void dDNSPlatformGetConfig(domainname *const fqdn, domainname *const regDomain, DNameListElem ** browseDomains);
65 extern void dDNSPlatformSetNameStatus(domainname *const dname, mStatus status);
66 extern void dDNSPlatformSetSecretForDomain( mDNS *m, const domainname *domain );
67 extern DNameListElem * dDNSPlatformGetSearchDomainList( void );
68 extern DNameListElem * dDNSPlatformGetReverseMapSearchDomainList( void );
69 extern IPAddrListElem * dDNSPlatformGetDNSServers( void );
70 extern DNameListElem * dDNSPlatformGetDomainName( void );
71 extern mStatus dDNSPlatformRegisterSplitDNS( mDNS *m );
72 extern mStatus dDNSPlatformGetPrimaryInterface( mDNS * m, mDNSAddr * primary, mDNSAddr * router );
73 extern void dDNSPlatformDefaultBrowseDomainChanged( const domainname *d, mDNSBool add );
74 extern void dDNSPlatformDefaultRegDomainChanged(const domainname *d, mDNSBool add);
75
76 #endif
77