]>
git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/dDNS.h
2 * Copyright (c) 2002-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):
31 #include "mDNSEmbeddedAPI.h"
35 #pragma mark - DynDNS structures
39 // named type definition in parentheses
40 # pragma warning( disable: 4115 )
43 typedef struct IPAddrListElem
46 struct IPAddrListElem
*next
;
49 extern void dDNS_FreeIPAddrList( IPAddrListElem
* list
);
52 // ***************************************************************************
54 #pragma mark - Main Client Functions
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
);
62 // ***************************************************************************
64 #pragma mark - PlatformSupport interface
67 // This section defines the interface to the DynDNS Platform Support layer.
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
);