]>
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
38 typedef struct IPAddrListElem
41 struct IPAddrListElem
*next
;
44 extern void dDNS_FreeIPAddrList( IPAddrListElem
* list
);
47 // ***************************************************************************
49 #pragma mark - Main Client Functions
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
);
57 // ***************************************************************************
59 #pragma mark - PlatformSupport interface
62 // This section defines the interface to the DynDNS Platform Support layer.
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
);