2 * Copyright (c) 2006 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@
24 #ifndef _SCNETWORKCONNECTIONPRIVATE_H
25 #define _SCNETWORKCONNECTIONPRIVATE_H
27 #include <AvailabilityMacros.h>
28 #include <sys/cdefs.h>
29 #include <CoreFoundation/CoreFoundation.h>
30 #include <SystemConfiguration/SystemConfiguration.h>
31 #include <SystemConfiguration/SCNetworkConfigurationPrivate.h>
33 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
36 typedef const struct __SCUserPreferencesRef
* SCUserPreferencesRef
;
43 #pragma mark SCNetworkConnection SPIs
46 CFArrayRef
/* of SCNetworkServiceRef's */
47 SCNetworkConnectionCopyAvailableServices (SCNetworkSetRef set
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
49 SCNetworkConnectionRef
50 SCNetworkConnectionCreateWithService (CFAllocatorRef allocator
,
51 SCNetworkServiceRef service
,
52 SCNetworkConnectionCallBack callout
,
53 SCNetworkConnectionContext
*context
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
56 SCNetworkConnectionGetService (SCNetworkConnectionRef connection
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
58 CFArrayRef
/* of SCUserPreferencesRef's */
59 SCNetworkConnectionCopyAllUserPreferences (SCNetworkConnectionRef connection
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
62 SCNetworkConnectionCopyCurrentUserPreferences (SCNetworkConnectionRef connection
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
65 SCNetworkConnectionCreateUserPreferences (SCNetworkConnectionRef connection
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
69 #pragma mark SCUserPreferences SPIs
73 SCUserPreferencesRemove (SCUserPreferencesRef userPreferences
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
76 SCUserPreferencesSetCurrent (SCUserPreferencesRef userPreferences
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
79 SCUserPreferencesCopyName (SCUserPreferencesRef userPreferences
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
82 SCUserPreferencesGetTypeID (void) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
85 SCUserPreferencesGetUniqueID (SCUserPreferencesRef userPreferences
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
88 SCUserPreferencesIsForced (SCUserPreferencesRef userPreferences
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
91 SCUserPreferencesSetName (SCUserPreferencesRef userPreferences
,
92 CFStringRef newName
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
95 SCNetworkConnectionSelectService (CFDictionaryRef selectionOptions
,
96 SCNetworkServiceRef
*service
,
97 SCUserPreferencesRef
*userPreferences
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
100 SCNetworkConnectionStartWithUserPreferences (SCNetworkConnectionRef connection
,
101 SCUserPreferencesRef userPreferences
,
102 Boolean linger
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
105 SCUserPreferencesCopyInterfaceConfiguration (SCUserPreferencesRef userPreferences
,
106 SCNetworkInterfaceRef interface
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
109 SCUserPreferencesSetInterfaceConfiguration (SCUserPreferencesRef userPreferences
,
110 SCNetworkInterfaceRef interface
,
111 CFDictionaryRef newOptions
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
114 SCUserPreferencesCopyExtendedInterfaceConfiguration
115 (SCUserPreferencesRef userPreferences
,
116 SCNetworkInterfaceRef interface
,
117 CFStringRef extendedType
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
120 SCUserPreferencesSetExtendedInterfaceConfiguration
121 (SCUserPreferencesRef userPreferences
,
122 SCNetworkInterfaceRef interface
,
123 CFStringRef extendedType
,
124 CFDictionaryRef newOptions
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
128 #pragma mark SCUserPreferences + SCNetworkInterface Password SPIs
132 SCUserPreferencesCheckInterfacePassword (SCUserPreferencesRef userPreferences
,
133 SCNetworkInterfaceRef interface
,
134 SCNetworkInterfacePasswordType passwordType
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
137 SCUserPreferencesCopyInterfacePassword (SCUserPreferencesRef userPreferences
,
138 SCNetworkInterfaceRef interface
,
139 SCNetworkInterfacePasswordType passwordType
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
142 SCUserPreferencesRemoveInterfacePassword (SCUserPreferencesRef userPreferences
,
143 SCNetworkInterfaceRef interface
,
144 SCNetworkInterfacePasswordType passwordType
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
147 SCUserPreferencesSetInterfacePassword (SCUserPreferencesRef userPreferences
,
148 SCNetworkInterfaceRef interface
,
149 SCNetworkInterfacePasswordType passwordType
,
151 CFDictionaryRef options
) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
;
155 #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 */
157 #endif /* _SCNETWORKCONNECTIONPRIVATE_H */