2 * Copyright (c) 2000-2011 Apple 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@
26 * - generates System Configuration header/cfile
27 * - invoke with "header" to generate the header
28 * - invoke with "cfile" to generate the cfile
32 * Modification History
34 * 4 March 2004 Allan Nathanson (ajn@apple.com)
35 * - an alternate scheme to help facilitate access to the schema
36 * definitions for cross-compilation to earlier releases AND
37 * access to CFM applications.
39 * 16 July 2003 Allan Nathanson (ajn@apple.com)
40 * - changes to facilitate cross-compilation to earlier releases
42 * 5 May 2003 Allan Nathanson (ajn@apple.com)
43 * - switch back to "extern const CFStringRef ..."
45 * 1 June 2001 Allan Nathanson <ajn@apple.com>
46 * - public API conversion
48 * 27 Apr 2001 Allan Nathanson (ajn@apple.com)
49 * - switch from "extern const CFStringRef ..." to "#define ..."
51 * 3 Nov 2000 Dieter Siegmund (dieter@apple)
58 #include <mach/boolean.h>
60 char copyright_string
[] =
62 " * Copyright (c) 2000-2011 Apple Inc. All rights reserved.\n"
64 " * @APPLE_LICENSE_HEADER_START@\n"
66 " * This file contains Original Code and/or Modifications of Original Code\n"
67 " * as defined in and that are subject to the Apple Public Source License\n"
68 " * Version 2.0 (the 'License'). You may not use this file except in\n"
69 " * compliance with the License. Please obtain a copy of the License at\n"
70 " * http://www.opensource.apple.com/apsl/ and read it before using this\n"
73 " * The Original Code and all software distributed under the License are\n"
74 " * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER\n"
75 " * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,\n"
76 " * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,\n"
77 " * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.\n"
78 " * Please see the License for the specific language governing rights and\n"
79 " * limitations under the License.\n"
81 " * @APPLE_LICENSE_HEADER_END@\n"
93 SC_10_1_10_4
, // deprecated in 10.4
95 SC_10_1_10_5
, // deprecated in 10.5
97 SC_10_5_10_7
, // deprecated in 10.7
98 SC_10_1_10_6
, // deprecated in 10.6
99 SC_10_2_10_6
, // deprecated in 10.6
106 SC_10_6_IPHONE_2_0_PRIVATE
,
107 SC_10_6_IPHONE_3_0_PRIVATE
,
108 SC_10_7_IPHONE_4_0_PRIVATE
,
109 SC_10_7_IPHONE_5_0_PRIVATE
,
110 SC_IPHONE_2_0_PRIVATE
,
116 #define SC_SCHEMA_DECLARATION "SC_SCHEMA_DECLARATION"
117 #define SC_SCHEMA_KV "SC_SCHEMA_KV"
119 #define KEY_PREFIX "kSC"
122 #define DYNAMICSTORE "DynamicStore"
126 #define NETENT "EntNet"
127 #define NETPROP "PropNet"
128 #define NETVAL "ValNet"
129 #define SETUPENT "EntSetup"
130 #define SETUPPROP "PropSetup"
131 #define SYSTEMENT "EntSystem"
132 #define SYSTEMPROP "PropSystem"
134 #define USERSENT "EntUsers"
135 #define USERSPROP "PropUsers"
136 #define VERSION "Version"
137 #define VIRTUALPROP "PropVirtualNetworkInterfaces"
139 #define CFARRAY_CFDICTIONARY "CFArray[CFDictionary]"
140 #define CFARRAY_CFNUMBER "CFArray[CFNumber]"
141 #define CFARRAY_CFSTRING "CFArray[CFString]"
142 #define CFBOOLEAN "CFBoolean"
143 #define CFDATA "CFData"
144 #define CFDICTIONARY "CFDictionary"
145 #define CFNUMBER "CFNumber"
146 #define CFNUMBER_BOOL "CFNumber (0 or 1)"
147 #define CFSTRING "CFString"
149 #define ACCESSPOINTNAME "AccessPointName"
150 #define ACSP "ACSP" // Apple Client Server Protocol
151 #define ACTIVE "Active"
152 #define ADDRESS "Address"
153 #define ADDRESSES "Addresses"
154 #define AFTER "After"
155 #define AGGRESSIVE "Aggressive"
156 #define AIRPORT "AirPort"
157 #define ALERT "Alert"
158 #define ALLOWNETCREATION "AllowNetCreation"
159 #define ALTERNATE "Alternate"
160 #define ALWAYS "Always"
161 #define ANYREGEX "AnyRegex"
162 #define APPLETALK "AppleTalk"
164 #define AUTHENTICATIONMETHOD "AuthenticationMethod"
165 #define AUTOCONFIG "AutoConfig"
166 #define AUTODISCOVERY "AutoDiscovery"
167 #define AUTOMATIC "Automatic"
169 #define BEFORE "Before"
170 #define BINDINGMETHODS "BindingMethods"
172 #define BOOTP "BOOTP"
173 #define BRIDGE "Bridge"
174 #define BROADCAST "Broadcast"
175 #define CALLWAITINGAUDIBLEALERT "CallWaitingAudibleAlert"
176 #define CAPABILITY "Capability"
177 #define CAPABILITIES "Capabilities"
178 #define CAUSE "Cause"
181 #define CERTIFICATE "Certificate"
183 #define COMPATIBLE "Compatible"
184 #define COMPRESSIONACFIELD "CompressionACField"
185 #define COMPRESSIONPFIELD "CompressionPField"
186 #define COMPRESSIONVJ "CompressionVJ"
187 #define COMPUTERNAME "ComputerName"
188 #define CONFIGMETHOD "ConfigMethod"
189 #define CONNECTDELAY "ConnectDelay"
190 #define CONNECTION "Connection"
191 #define CONNECTSPEED "ConnectSpeed"
192 #define CONNECTTIME "ConnectTime"
193 #define CONSERVATIVE "Conservative"
194 #define CONSOLEUSER "ConsoleUser"
195 #define CONTEXTID "ContextID"
196 #define CURRENTSET "CurrentSet"
197 #define DATACOMPRESSION "DataCompression"
198 #define DEFAULT "Default"
199 #define DEFAULTZONE "DefaultZone"
201 #define DESTINATION "Destination"
202 #define DETACHING "Detaching"
203 #define DEVICE "Device"
204 #define DEVICENAME "DeviceName"
206 #define DHCPCLIENTID "DHCPClientID"
207 #define DIALMODE "DialMode"
208 #define DIALONDEMAND "DialOnDemand"
209 #define DISCONNECTONANSWER "DisconnectOnAnswer"
210 #define DISCONNECTONFASTUSERSWITCH "DisconnectOnFastUserSwitch"
211 #define DISCONNECTONIDLE "DisconnectOnIdle"
212 #define DISCONNECTONIDLETIMER "DisconnectOnIdleTimer"
213 #define DISCONNECTONLOGOUT "DisconnectOnLogout"
214 #define DISCONNECTONSLEEP "DisconnectOnSleep"
215 #define DISCONNECTTIME "DisconnectTime"
216 #define DISPLAYTERMINALWINDOW "DisplayTerminalWindow"
218 #define DOMAIN "Domain"
219 #define DOMAINS "Domains"
221 #define EAPOL "EAPOL"
223 #define ECHOFAILURE "EchoFailure"
224 #define ECHOINTERVAL "EchoInterval"
225 #define ENABLE "Enable"
226 #define ENABLED "Enabled"
227 #define ENCODING "Encoding"
228 #define ENCRYPTION "Encryption"
229 #define ERRORCORRECTION "ErrorCorrection"
230 #define ETHERNET "Ethernet"
231 #define EXCEPTIONSLIST "ExceptionsList"
232 #define EXCLUDED "Excluded"
233 #define EXCLUDESIMPLEHOSTNAMES "ExcludeSimpleHostnames"
234 #define FAILOVER "Failover"
236 #define FIREWIRE "FireWire"
237 #define FIRST "First"
238 #define FLAGS "Flags"
240 #define GATEWAY "Gateway"
242 #define GLOBAL "Global"
243 #define GOPHER "Gopher"
244 #define HARDWARE "Hardware"
247 #define HOSTNAME "HostName"
248 #define HOSTNAMES "HostNames"
250 #define HTTPS "HTTPS"
251 #define HYBRID "Hybrid"
252 #define IDLEREMINDER "IdleReminder"
253 #define IDLEREMINDERTIMER "IdleReminderTimer"
254 #define IGNOREDIALTONE "IgnoreDialTone"
255 #define IGNORELINKSTATUS "IgnoreLinkStatus"
256 #define INACTIVE "Inactive"
257 #define INCLUDED "Included"
258 #define INFORM "INFORM"
259 #define INTERFACE "Interface"
260 #define INTERFACENAME "InterfaceName"
261 #define INTERFACES "Interfaces"
266 #define IPSEC "IPSec"
267 #define JAVASCRIPT "JavaScript"
269 #define JUMBO_MTU "JUMBO_MTU"
270 #define KEYCHAIN "Keychain"
271 #define KEYID "KeyID"
276 #define LINKLOCAL "LinkLocal"
277 #define LOCALCERTIFICATE "LocalCertificate"
278 #define LOCALHOSTNAME "LocalHostName"
279 #define LOCALIDENTIFIER "LocalIdentifier"
280 #define LOGFILE "Logfile"
281 #define LOOPBACK "Loopback"
284 #define MACADDRESS "MACAddress"
285 #define MANUAL "Manual"
286 #define MATCH "Match"
287 #define MEDIA "Media"
288 #define MIXED "Mixed"
289 #define MODEL "Model"
291 #define MODEM "Modem"
292 #define MPPE40 "MPPE40"
293 #define MPPE128 "MPPE128"
295 #define MSCHAP1 "MSCHAP1"
296 #define MSCHAP2 "MSCHAP2"
299 #define NETBIOS "NetBIOS"
300 #define NETINFO "NetInfo"
301 #define NETWORK "Network"
302 #define NETWORKID "NetworkID"
303 #define NETWORKRANGE "NetworkRange"
304 #define NETWORKSERVICES "NetworkServices"
305 #define NEVER "Never"
307 #define NODEID "NodeID"
309 #define ONDEMAND "OnDemand"
310 #define ONRETRY "OnRetry"
311 #define OPTIONS "Options"
312 #define ORDER "Order"
313 #define ORDERS "Orders"
314 #define OVERRIDEPRIMARY "OverridePrimary"
316 #define PASSIVE "Passive"
317 #define PASSWORD "Password"
319 #define PERSONALITY "Personality"
320 #define PLUGIN "Plugin"
321 #define PLUGINS "Plugins"
322 #define POWER "Power"
325 #define PPPOE "PPPoE"
326 #define PPPSERIAL "PPPSerial"
328 #define PREFERRED "Preferred"
329 #define PREFIXLENGTH "PrefixLength"
330 #define PREFS "Prefs"
331 #define PRIMARYINTERFACE "PrimaryInterface"
332 #define PRIMARYRANK "PrimaryRank"
333 #define PRIMARYSERVICE "PrimaryService"
334 #define PRIORITY "Priority"
335 #define PROMPT "Prompt"
336 #define PROTOCOL "Protocol"
337 #define PROXIES "Proxies"
338 #define PROXY "Proxy"
339 #define PULSEDIAL "PulseDial"
340 #define RANKED "Ranked"
341 #define RECEIVEACCM "ReceiveACCM"
342 #define RECENT "Recent"
343 #define REDIALCOUNT "RedialCount"
344 #define REDIAL "Redial"
345 #define REDIALINTERVAL "RedialInterval"
346 #define REGION "Region"
347 #define RELAY "Relay"
348 #define REMINDER "Reminder"
349 #define REMINDERTIME "ReminderTime"
350 #define REMOTEADDRESS "RemoteAddress"
351 #define RETRYCONNECTTIME "RetryConnectTime"
352 #define ROOTSEPARATOR "RootSeparator"
353 #define ROUTE "Route"
354 #define ROUTER "Router"
355 #define ROUTES "Routes"
356 #define ROUTERADVERTISEMENT "RouterAdvertisement"
358 #define RXCSUM "RXCSUM"
359 #define SAVEPASSWORDS "SavePasswords"
360 #define SCOPE "Scope"
361 #define SCOPED "Scoped"
362 #define SCRIPT "Script"
363 #define SEARCH "Search"
364 #define SEEDNETWORKRANGE "SeedNetworkRange"
365 #define SEEDROUTER "SeedRouter"
366 #define SEEDZONES "SeedZones"
367 #define SERVER "Server"
368 #define SERVICE "Service"
369 #define SERVICEIDS "ServiceIDs"
370 #define SESSIONTIMER "SessionTimer"
372 #define SETUP "Setup"
373 #define SHAREDSECRET "SharedSecret"
375 #define SOCKS "SOCKS"
376 #define SORTLIST "SortList"
377 #define SPEAKER "Speaker"
378 #define SPEED "Speed"
379 #define STATE "State"
380 #define STATUS "Status"
382 #define STRONGEST "Strongest"
383 #define SUBNETMASK "SubnetMask"
384 #define SUBNETMASKS "SubnetMasks"
385 #define SUBTYPE "SubType"
386 #define SUPPLEMENTAL "Supplemental"
387 #define SUPPORTSMODEMONHOLD "SupportsModemOnHold"
388 #define SYSTEM "System"
391 #define TERMINALSCRIPT "TerminalScript"
392 #define TIMEOUT "Timeout"
393 #define TOKEN "Token"
394 #define TRANSMITACCM "TransmitACCM"
395 #define TRANSPORT "Transport"
399 #define TXCSUM "TXCSUM"
402 #define UPDATED "Updated"
403 #define URLSTRING "URLString"
404 #define USERDEFINEDNAME "UserDefinedName"
406 #define USERS "Users"
407 #define VENDOR "Vendor"
408 #define VERBOSELOGGING "VerboseLogging"
409 #define VIRTUALNETWORKINTERFACES "VirtualNetworkInterfaces"
411 #define VLAN_HWTAGGING "VLAN_HWTAGGING"
412 #define VLAN_MTU "VLAN_MTU"
414 #define WAITFORDIALTONE "WaitForDialTone"
416 #define WORKGROUP "Workgroup"
417 #define XAUTH "XAuth"
428 static schemaDefinition names
[] = {
430 { GROUP
, NULL
, "Reserved Keys", NULL
, NULL
},
432 { SC_10_1
, RESV
, LINK
, "__LINK__", CFSTRING
},
433 { SC_10_1
, RESV
, INACTIVE
, "__INACTIVE__", NULL
},
434 { COMMENT
, "", NULL
, NULL
, NULL
},
436 { GROUP
, NULL
, "Generic Keys", NULL
, NULL
},
438 { SC_10_1
, PROP
, INTERFACENAME
, NULL
, CFSTRING
},
439 { SC_10_1
, PROP
, MACADDRESS
, NULL
, CFSTRING
},
440 { SC_10_1
, PROP
, USERDEFINEDNAME
, NULL
, CFSTRING
},
441 { SC_10_1
, PROP
, VERSION
, NULL
, CFSTRING
},
442 { COMMENT
, "", NULL
, NULL
, NULL
},
444 { GROUP
, PREF
, "Preference Keys", NULL
, NULL
},
446 { SC_10_1
, PREF
, CURRENTSET
, NULL
, CFSTRING
},
447 { SC_10_1
, PREF
, NETWORKSERVICES
, NULL
, CFDICTIONARY
},
448 { SC_10_1
, PREF
, SETS
, NULL
, CFDICTIONARY
},
449 { SC_10_1
, PREF
, SYSTEM
, NULL
, CFDICTIONARY
},
450 { COMMENT
, "", NULL
, NULL
, NULL
},
452 { GROUP_PRIVATE
, PREF
, "Preference Keys", NULL
, NULL
},
454 { SC_10_5_PRIVATE
, PREF
, VIRTUALNETWORKINTERFACES
, NULL
, CFDICTIONARY
},
455 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
457 { GROUP
, COMP
, "Component Keys", NULL
, NULL
},
459 { SC_10_1
, COMP
, NETWORK
, NULL
, NULL
},
460 { SC_10_1
, COMP
, SERVICE
, NULL
, NULL
},
461 { SC_10_1
, COMP
, GLOBAL
, NULL
, NULL
},
462 { SC_10_2
, COMP
, HOSTNAMES
, NULL
, NULL
},
463 { SC_10_1
, COMP
, INTERFACE
, NULL
, NULL
},
464 { SC_10_1
, COMP
, SYSTEM
, NULL
, NULL
},
465 { SC_10_1
, COMP
, USERS
, NULL
, NULL
},
466 { COMMENT
, "", NULL
, NULL
, NULL
},
468 { COMMENT
, "--- Regex pattern which matches any component ---", NULL
},
469 { SC_10_1
, COMP
, ANYREGEX
, "[^/]+", NULL
},
470 { COMMENT
, "", NULL
, NULL
, NULL
},
472 { GROUP
, NETENT
, "Network Entity Keys", NULL
, NULL
},
474 { SC_10_1
, NETENT
, AIRPORT
, NULL
, CFDICTIONARY
},
475 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
476 { SC_10_1_10_6
, NETENT
, APPLETALK
, NULL
, CFDICTIONARY
},
477 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
478 { SC_10_1
, NETENT
, DHCP
, NULL
, CFDICTIONARY
},
479 { SC_10_1
, NETENT
, DNS
, NULL
, CFDICTIONARY
},
480 { SC_10_1
, NETENT
, ETHERNET
, NULL
, CFDICTIONARY
},
481 { SC_10_3
, NETENT
, FIREWIRE
, NULL
, CFDICTIONARY
},
482 { SC_10_1
, NETENT
, INTERFACE
, NULL
, CFDICTIONARY
},
483 { SC_10_5
, NETENT
, IPSEC
, NULL
, CFDICTIONARY
},
484 { SC_10_1
, NETENT
, IPV4
, NULL
, CFDICTIONARY
},
485 { SC_10_1
, NETENT
, IPV6
, NULL
, CFDICTIONARY
},
486 { SC_10_3
, NETENT
, L2TP
, NULL
, CFDICTIONARY
},
487 { SC_10_1
, NETENT
, LINK
, NULL
, CFDICTIONARY
},
488 { SC_10_1
, NETENT
, MODEM
, NULL
, CFDICTIONARY
},
489 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
490 { SC_10_1_10_5
, NETENT
, NETINFO
, NULL
, CFDICTIONARY
},
491 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
492 { SC_10_1
, NETENT
, PPP
, NULL
, CFDICTIONARY
},
493 { SC_10_1
, NETENT
, PPPOE
, NULL
, CFDICTIONARY
},
494 { SC_10_3
, NETENT
, PPPSERIAL
, NULL
, CFDICTIONARY
},
495 { SC_10_3
, NETENT
, PPTP
, NULL
, CFDICTIONARY
},
496 { SC_10_1
, NETENT
, PROXIES
, NULL
, CFDICTIONARY
},
497 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
498 { SC_10_5
, NETENT
, SMB
, NULL
, CFDICTIONARY
},
499 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
500 { SC_10_3
, NETENT
, STF
, NULL
, CFDICTIONARY
},
501 { COMMENT
, "", NULL
, NULL
, NULL
},
503 { GROUP_PRIVATE
, NETENT
, "Network Entity Keys", NULL
, NULL
},
505 { SC_10_5_PRIVATE
, NETENT
, EAPOL
, NULL
, CFDICTIONARY
},
506 { SC_10_7_IPHONE_4_0_PRIVATE
, NETENT
, LOOPBACK
, NULL
, CFDICTIONARY
},
507 { SC_10_6_IPHONE_3_0_PRIVATE
, NETENT
, ONDEMAND
, NULL
, CFDICTIONARY
},
508 { SC_10_6_IPHONE_2_0_PRIVATE
, NETENT
, SERVICE
, "__SERVICE__", CFDICTIONARY
},
509 { SC_10_7_IPHONE_4_0_PRIVATE
, NETENT
, VPN
, NULL
, CFDICTIONARY
},
510 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
512 { GROUP
, NETPROP
, KEY_PREFIX COMP NETWORK
" Properties", NULL
, NULL
},
514 { SC_10_2
, NETPROP
, OVERRIDEPRIMARY
, NULL
, CFNUMBER_BOOL
},
515 { SC_10_1
, NETPROP
, SERVICE ORDER
, NULL
, CFARRAY_CFSTRING
},
516 { SC_10_1
, NETPROP
, PPP OVERRIDEPRIMARY
, NULL
, CFNUMBER_BOOL
},
517 { COMMENT
, "", NULL
, NULL
, NULL
},
519 { GROUP_PRIVATE
, NETPROP
, KEY_PREFIX COMP NETWORK
" Properties", NULL
, NULL
},
521 { SC_10_5_PRIVATE
, NETPROP
, IGNORELINKSTATUS
, NULL
, CFBOOLEAN
},
522 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
524 { GROUP
, NETPROP AIRPORT
, KEY_PREFIX COMP NETWORK INTERFACE
" Properties", NULL
, NULL
},
526 { SC_10_2
, NETPROP
, INTERFACES
, NULL
, CFARRAY_CFSTRING
},
527 { COMMENT
, "", NULL
, NULL
, NULL
},
529 { GROUP
, NETPROP AIRPORT
, KEY_PREFIX COMP NETWORK HOSTNAMES
" Properties", NULL
, NULL
},
531 { SC_10_2
, NETPROP
, LOCALHOSTNAME
, NULL
, CFSTRING
},
532 { COMMENT
, "", NULL
, NULL
, NULL
},
534 { GROUP
, NETPROP AIRPORT
, KEY_PREFIX NETENT AIRPORT
" (Hardware) Entity Keys", NULL
, NULL
},
536 { SC_10_2
, NETPROP AIRPORT
, ALLOWNETCREATION
, NULL
, CFNUMBER_BOOL
},
537 { SC_10_1
, NETPROP AIRPORT
, AUTH PASSWORD
, NULL
, CFDATA
},
538 { SC_10_1
, NETPROP AIRPORT
, AUTH PASSWORD ENCRYPTION
, NULL
, CFSTRING
},
539 { SC_10_2
, NETPROP AIRPORT
, JOIN MODE
, NULL
, CFSTRING
},
540 { SC_10_1
, NETPROP AIRPORT
, POWER ENABLED
, NULL
, CFNUMBER_BOOL
},
541 { SC_10_1
, NETPROP AIRPORT
, PREFERRED NETWORK
, NULL
, CFSTRING
},
542 { SC_10_2
, NETPROP AIRPORT
, SAVEPASSWORDS
, NULL
, CFNUMBER_BOOL
},
543 { COMMENT
, "", NULL
, NULL
, NULL
},
544 { COMMENT
, "--- " KEY_PREFIX NETPROP AIRPORT JOIN MODE
" values ---", NULL
, NULL
, NULL
},
545 { SC_10_3
, NETVAL AIRPORT JOIN MODE
, AUTOMATIC
, NULL
, NULL
},
546 { SC_10_2
, NETVAL AIRPORT JOIN MODE
, PREFERRED
, NULL
, NULL
},
547 { SC_10_4
, NETVAL AIRPORT JOIN MODE
, RANKED
, NULL
, NULL
},
548 { SC_10_2
, NETVAL AIRPORT JOIN MODE
, RECENT
, NULL
, NULL
},
549 { SC_10_2
, NETVAL AIRPORT JOIN MODE
, STRONGEST
, NULL
, NULL
},
550 { COMMENT
, "", NULL
, NULL
, NULL
},
551 { COMMENT
, "--- " KEY_PREFIX NETPROP AIRPORT PASSWORD ENCRYPTION
" values ---", NULL
, NULL
, NULL
},
552 { SC_10_3
, NETVAL AIRPORT AUTH PASSWORD ENCRYPTION
, KEYCHAIN
, NULL
, NULL
},
553 { COMMENT
, "", NULL
, NULL
, NULL
},
555 { GROUP_DEPRECATED
, NETPROP APPLETALK
, KEY_PREFIX NETENT APPLETALK
" Entity Keys", NULL
, NULL
},
557 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
558 { SC_10_1_10_6
, NETPROP APPLETALK
, COMPUTERNAME
, NULL
, CFSTRING
},
559 { SC_10_1_10_6
, NETPROP APPLETALK
, COMPUTERNAME ENCODING
, NULL
, CFNUMBER
},
560 { SC_10_1_10_6
, NETPROP APPLETALK
, CONFIGMETHOD
, NULL
, CFSTRING
},
561 { SC_10_1_10_6
, NETPROP APPLETALK
, DEFAULTZONE
, NULL
, CFSTRING
},
562 { SC_10_1_10_6
, NETPROP APPLETALK
, NETWORKID
, NULL
, CFNUMBER
},
563 { SC_10_2_10_6
, NETPROP APPLETALK
, NETWORKRANGE
, NULL
, CFARRAY_CFNUMBER
},
564 { SC_10_1_10_6
, NETPROP APPLETALK
, NODEID
, NULL
, CFNUMBER
},
565 { SC_10_1_10_6
, NETPROP APPLETALK
, SEEDNETWORKRANGE
, NULL
, CFARRAY_CFNUMBER
},
566 { SC_10_1_10_6
, NETPROP APPLETALK
, SEEDZONES
, NULL
, CFARRAY_CFSTRING
},
567 { COMMENT_DEPRECATED
, "", NULL
, NULL
, NULL
},
568 { COMMENT_DEPRECATED
, "--- " KEY_PREFIX NETPROP APPLETALK CONFIGMETHOD
" values ---", NULL
, NULL
, NULL
},
569 { SC_10_1_10_6
, NETVAL APPLETALK CONFIGMETHOD
, NODE
, NULL
, NULL
},
570 { SC_10_1_10_6
, NETVAL APPLETALK CONFIGMETHOD
, ROUTER
, NULL
, NULL
},
571 { SC_10_1_10_6
, NETVAL APPLETALK CONFIGMETHOD
, SEEDROUTER
, NULL
, NULL
},
572 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
573 { COMMENT_DEPRECATED
, "", NULL
, NULL
, NULL
},
576 { GROUP
, NETPROP DNS
, KEY_PREFIX NETENT DNS
" Entity Keys", NULL
, NULL
},
578 { SC_10_1
, NETPROP DNS
, DOMAIN NAME
, NULL
, CFSTRING
},
579 { SC_10_4
, NETPROP DNS
, OPTIONS
, NULL
, CFSTRING
},
580 { SC_10_1
, NETPROP DNS
, SEARCH DOMAINS
, NULL
, CFARRAY_CFSTRING
},
581 { SC_10_4
, NETPROP DNS
, SEARCH ORDER
, NULL
, CFNUMBER
},
582 { SC_10_1
, NETPROP DNS
, SERVER ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
583 { SC_10_4
, NETPROP DNS
, SERVER PORT
, NULL
, CFNUMBER
},
584 { SC_10_4
, NETPROP DNS
, SERVER TIMEOUT
, NULL
, CFNUMBER
},
585 { SC_10_1
, NETPROP DNS
, SORTLIST
, NULL
, CFARRAY_CFSTRING
},
586 { SC_10_4
, NETPROP DNS
, SUPPLEMENTAL MATCH DOMAINS
, NULL
, CFARRAY_CFSTRING
},
587 { SC_10_4
, NETPROP DNS
, SUPPLEMENTAL MATCH ORDERS
, NULL
, CFARRAY_CFNUMBER
},
588 { COMMENT
, "", NULL
, NULL
, NULL
},
590 { GROUP
, NETPROP ETHERNET
, KEY_PREFIX NETENT ETHERNET
" (Hardware) Entity Keys", NULL
, NULL
},
592 { SC_10_2
, NETPROP ETHERNET
, MEDIA SUBTYPE
, NULL
, CFSTRING
},
593 { SC_10_2
, NETPROP ETHERNET
, MEDIA OPTIONS
, NULL
, CFARRAY_CFSTRING
},
594 { SC_10_2
, NETPROP ETHERNET
, MTU
, NULL
, CFNUMBER
},
595 { COMMENT
, "", NULL
, NULL
, NULL
},
597 { GROUP_PRIVATE
, NETPROP ETHERNET
, KEY_PREFIX NETENT ETHERNET
" (Hardware) Entity Keys", NULL
, NULL
},
599 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY AV
, AV
, CFNUMBER_BOOL
},
600 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY JUMBO_MTU
, JUMBO_MTU
, CFNUMBER_BOOL
},
601 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY LRO
, LRO
, CFNUMBER_BOOL
},
602 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY RXCSUM
, RXCSUM
, CFNUMBER_BOOL
},
603 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY TSO
, TSO
, CFNUMBER_BOOL
},
604 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY TSO4
, TSO4
, CFNUMBER_BOOL
},
605 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY TSO6
, TSO6
, CFNUMBER_BOOL
},
606 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY TXCSUM
, TXCSUM
, CFNUMBER_BOOL
},
607 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY VLAN_HWTAGGING
, VLAN_HWTAGGING
, CFNUMBER_BOOL
},
608 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP ETHERNET
, CAPABILITY VLAN_MTU
, VLAN_MTU
, CFNUMBER_BOOL
},
609 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
611 { GROUP
, NETPROP FIREWIRE
, KEY_PREFIX NETENT FIREWIRE
" (Hardware) Entity Keys", NULL
, NULL
},
613 { COMMENT
, "* RESERVED FOR FUTURE USE *", NULL
, NULL
, NULL
},
614 { COMMENT
, "", NULL
, NULL
, NULL
},
616 { GROUP
, NETPROP INTERFACE
, KEY_PREFIX NETENT INTERFACE
" Entity Keys", NULL
, NULL
},
618 { SC_10_1
, NETPROP INTERFACE
, DEVICENAME
, NULL
, CFSTRING
},
619 { SC_10_1
, NETPROP INTERFACE
, HARDWARE
, NULL
, CFSTRING
},
620 { SC_10_1
, NETPROP INTERFACE
, TYPE
, NULL
, CFSTRING
},
621 { SC_10_1
, NETPROP INTERFACE
, SUBTYPE
, NULL
, CFSTRING
},
622 { SC_10_2
, NETPROP INTERFACE
, SUPPORTSMODEMONHOLD
, NULL
, CFNUMBER_BOOL
},
623 { COMMENT
, "", NULL
, NULL
, NULL
},
624 { COMMENT
, "--- " KEY_PREFIX NETPROP INTERFACE TYPE
" values ---", NULL
, NULL
, NULL
},
625 { SC_10_1
, NETVAL INTERFACE TYPE
, ETHERNET
, NULL
, NULL
},
626 { SC_10_3
, NETVAL INTERFACE TYPE
, FIREWIRE
, NULL
, NULL
},
627 { SC_10_1
, NETVAL INTERFACE TYPE
, PPP
, NULL
, NULL
},
628 { SC_10_3
, NETVAL INTERFACE TYPE
, STF
, NULL
, NULL
},
629 { SC_10_6_IPHONE_2_0
, NETVAL INTERFACE TYPE
, IPSEC
, NULL
, NULL
},
630 { COMMENT
, "", NULL
, NULL
, NULL
},
631 { COMMENT
, "--- " KEY_PREFIX NETPROP SERVICE SUBTYPE
" values (for " PPP
") ---", NULL
, NULL
, NULL
},
632 { SC_10_1
, NETVAL INTERFACE SUBTYPE
, PPPOE
, NULL
, NULL
},
633 { SC_10_1
, NETVAL INTERFACE SUBTYPE
, PPPSERIAL
, NULL
, NULL
},
634 { SC_10_2
, NETVAL INTERFACE SUBTYPE
, PPTP
, NULL
, NULL
},
635 { SC_10_3
, NETVAL INTERFACE SUBTYPE
, L2TP
, NULL
, NULL
},
636 { COMMENT
, "", NULL
, NULL
, NULL
},
638 { GROUP_PRIVATE
, NETPROP INTERFACE
, KEY_PREFIX NETENT INTERFACE
" Entity Keys", NULL
, NULL
},
640 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP INTERFACE TYPE
" values ---", NULL
, NULL
, NULL
},
641 { SC_10_7_IPHONE_4_0_PRIVATE
, NETVAL INTERFACE TYPE
, LOOPBACK
, NULL
, NULL
},
642 { SC_10_7_IPHONE_4_0_PRIVATE
, NETVAL INTERFACE TYPE
, VPN
, NULL
, NULL
},
643 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
645 { GROUP
, NETPROP IPSEC
, KEY_PREFIX NETENT IPSEC
" Entity Keys", NULL
, NULL
},
647 { SC_10_5
, NETPROP IPSEC
, AUTHENTICATIONMETHOD
, NULL
, CFSTRING
},
648 { SC_10_5
, NETPROP IPSEC
, LOCALCERTIFICATE
, NULL
, CFDATA
},
649 { SC_10_5
, NETPROP IPSEC
, LOCALIDENTIFIER
, NULL
, CFSTRING
},
650 { SC_10_5
, NETPROP IPSEC
, LOCALIDENTIFIER TYPE
, NULL
, CFSTRING
},
651 { SC_10_5
, NETPROP IPSEC
, SHAREDSECRET
, NULL
, CFSTRING
},
652 { SC_10_5
, NETPROP IPSEC
, SHAREDSECRET ENCRYPTION
, NULL
, CFSTRING
},
653 { SC_10_6_IPHONE_2_0
, NETPROP IPSEC
, CONNECTTIME
, NULL
, CFNUMBER
},
654 { SC_10_6_IPHONE_2_0
, NETPROP IPSEC
, REMOTEADDRESS
, NULL
, CFSTRING
},
655 { SC_10_6_IPHONE_2_0
, NETPROP IPSEC
, STATUS
, STATUS
, CFNUMBER
},
656 { SC_10_6_IPHONE_2_0
, NETPROP IPSEC
, XAUTH ENABLED
, NULL
, CFNUMBER_BOOL
},
657 { SC_10_6_IPHONE_2_0
, NETPROP IPSEC
, XAUTH NAME
, NULL
, CFSTRING
},
658 { SC_10_6_IPHONE_2_0
, NETPROP IPSEC
, XAUTH PASSWORD
, NULL
, CFSTRING
},
659 { SC_10_6_IPHONE_2_0
, NETPROP IPSEC
, XAUTH PASSWORD ENCRYPTION
, NULL
, CFSTRING
},
660 { COMMENT
, "", NULL
, NULL
, NULL
},
661 { COMMENT
, "--- " KEY_PREFIX NETPROP IPSEC AUTHENTICATIONMETHOD
" values ---", NULL
, NULL
, NULL
},
662 { SC_10_5
, NETVAL IPSEC AUTHENTICATIONMETHOD
, SHAREDSECRET
, NULL
, NULL
},
663 { SC_10_5
, NETVAL IPSEC AUTHENTICATIONMETHOD
, CERTIFICATE
, NULL
, NULL
},
664 { SC_10_5
, NETVAL IPSEC AUTHENTICATIONMETHOD
, HYBRID
, NULL
, NULL
},
665 { COMMENT
, "", NULL
, NULL
, NULL
},
666 { COMMENT
, "--- " KEY_PREFIX NETPROP IPSEC LOCALIDENTIFIER TYPE
" values ---", NULL
, NULL
, NULL
},
667 { SC_10_5
, NETVAL IPSEC LOCALIDENTIFIER TYPE
, KEYID
, NULL
, NULL
},
668 { COMMENT
, "", NULL
, NULL
, NULL
},
669 { COMMENT
, "--- " KEY_PREFIX NETPROP IPSEC SHAREDSECRET ENCRYPTION
" values ---", NULL
, NULL
, NULL
},
670 { SC_10_5
, NETVAL IPSEC SHAREDSECRET ENCRYPTION
, KEYCHAIN
, NULL
, NULL
},
671 { COMMENT
, "", NULL
, NULL
, NULL
},
672 { COMMENT
, "--- " KEY_PREFIX NETPROP IPSEC XAUTH PASSWORD ENCRYPTION
" values ---", NULL
, NULL
, NULL
},
673 { SC_10_6_IPHONE_2_0
, NETVAL IPSEC XAUTH PASSWORD ENCRYPTION
, KEYCHAIN
, NULL
, NULL
},
674 { SC_10_6_IPHONE_3_0
, NETVAL IPSEC XAUTH PASSWORD ENCRYPTION
, PROMPT
, NULL
, NULL
},
675 { COMMENT
, "", NULL
, NULL
, NULL
},
677 { GROUP_PRIVATE
, NETPROP IPSEC
, KEY_PREFIX NETENT IPSEC
" Entity Keys", NULL
, NULL
},
679 { SC_10_6_IPHONE_3_0_PRIVATE
, NETPROP IPSEC
, LAST CAUSE
, NULL
, CFNUMBER
},
680 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
681 { COMMENT_PRIVATE
, "--- " ONDEMAND
": ---", NULL
, NULL
, NULL
},
682 { SC_10_6_IPHONE_3_0_PRIVATE
, NETPROP IPSEC
, ONDEMAND ENABLED
, NULL
, CFNUMBER_BOOL
},
683 { SC_10_6_IPHONE_3_0_PRIVATE
, NETPROP IPSEC
, ONDEMAND MATCH DOMAINS ALWAYS
, NULL
, CFARRAY_CFSTRING
},
684 { SC_10_6_IPHONE_3_0_PRIVATE
, NETPROP IPSEC
, ONDEMAND MATCH DOMAINS ONRETRY
, NULL
, CFARRAY_CFSTRING
},
685 { SC_10_6_IPHONE_3_0_PRIVATE
, NETPROP IPSEC
, ONDEMAND MATCH DOMAINS NEVER
, NULL
, CFARRAY_CFSTRING
},
686 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
688 { GROUP
, NETPROP IPV4
, KEY_PREFIX NETENT IPV4
" Entity Keys", NULL
, NULL
},
690 { SC_10_1
, NETPROP IPV4
, ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
691 { SC_10_1
, NETPROP IPV4
, CONFIGMETHOD
, NULL
, CFSTRING
},
692 { SC_10_1
, NETPROP IPV4
, DHCPCLIENTID
, NULL
, CFSTRING
},
693 { SC_10_1
, NETPROP IPV4
, ROUTER
, NULL
, CFSTRING
},
694 { SC_10_1
, NETPROP IPV4
, SUBNETMASKS
, NULL
, CFARRAY_CFSTRING
},
695 { SC_10_1
, NETPROP IPV4
, DEST ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
696 { SC_10_1
, NETPROP IPV4
, BROADCAST ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
697 { COMMENT
, "", NULL
, NULL
, NULL
},
698 { COMMENT
, "--- " KEY_PREFIX NETPROP IPV4 CONFIGMETHOD
" values ---", NULL
, NULL
, NULL
},
699 { SC_10_6_IPHONE_2_0
, NETVAL IPV4 CONFIGMETHOD
, AUTOMATIC
, NULL
, NULL
},
700 { SC_10_1
, NETVAL IPV4 CONFIGMETHOD
, BOOTP
, NULL
, NULL
},
701 { SC_10_1
, NETVAL IPV4 CONFIGMETHOD
, DHCP
, NULL
, NULL
},
702 { SC_10_1
, NETVAL IPV4 CONFIGMETHOD
, INFORM
, NULL
, NULL
},
703 { SC_10_2
, NETVAL IPV4 CONFIGMETHOD
, LINKLOCAL
, NULL
, NULL
},
704 { SC_10_1
, NETVAL IPV4 CONFIGMETHOD
, MANUAL
, NULL
, NULL
},
705 { SC_10_1
, NETVAL IPV4 CONFIGMETHOD
, PPP
, NULL
, NULL
},
706 { COMMENT
, "", NULL
, NULL
, NULL
},
708 { GROUP_PRIVATE
, NETPROP IPV4
, KEY_PREFIX NETENT IPV4
" Entity Keys", NULL
, NULL
},
709 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV4
, EXCLUDED ROUTES
, NULL
, CFARRAY_CFDICTIONARY
},
710 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV4
, INCLUDED ROUTES
, NULL
, CFARRAY_CFDICTIONARY
},
711 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
712 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP IPV4 CONFIGMETHOD
" values ---", NULL
, NULL
, NULL
},
713 { SC_10_5_PRIVATE
, NETVAL IPV4 CONFIGMETHOD
, FAILOVER
, NULL
, NULL
},
714 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
715 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP IPV4 INCLUDED ROUTES
", "
716 KEY_PREFIX NETPROP IPV4 EXCLUDED ROUTES
" [CFDictionary] keys ---", NULL
, NULL
, NULL
},
717 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV4 ROUTE
, DESTINATION ADDRESS
, NULL
, CFSTRING
},
718 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV4 ROUTE
, SUBNETMASK
, NULL
, CFSTRING
},
719 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV4 ROUTE
, GATEWAY ADDRESS
, NULL
, CFSTRING
},
720 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
722 { GROUP
, NETPROP IPV6
, KEY_PREFIX NETENT IPV6
" Entity Keys", NULL
, NULL
},
724 { SC_10_1
, NETPROP IPV6
, ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
725 { SC_10_1
, NETPROP IPV6
, CONFIGMETHOD
, NULL
, CFSTRING
},
726 { SC_10_3
, NETPROP IPV6
, DEST ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
727 { SC_10_3
, NETPROP IPV6
, FLAGS
, NULL
, CFNUMBER
},
728 { SC_10_3
, NETPROP IPV6
, PREFIXLENGTH
, NULL
, CFARRAY_CFNUMBER
},
729 { SC_10_3
, NETPROP IPV6
, ROUTER
, NULL
, CFSTRING
},
730 { COMMENT
, "", NULL
, NULL
, NULL
},
731 { COMMENT
, "--- " KEY_PREFIX NETPROP IPV6 CONFIGMETHOD
" values ---", NULL
, NULL
, NULL
},
732 { SC_10_3
, NETVAL IPV6 CONFIGMETHOD
, AUTOMATIC
, NULL
, NULL
},
733 { SC_10_7_IPHONE_4_0
, NETVAL IPV6 CONFIGMETHOD
, LINKLOCAL
, NULL
, NULL
},
734 { SC_10_3
, NETVAL IPV6 CONFIGMETHOD
, MANUAL
, NULL
, NULL
},
735 { SC_10_3
, NETVAL IPV6 CONFIGMETHOD
, ROUTERADVERTISEMENT
, NULL
, NULL
},
736 { SC_10_3
, NETVAL IPV6 CONFIGMETHOD
, STF
, NULL
, NULL
},
737 { COMMENT
, "", NULL
, NULL
, NULL
},
739 { GROUP_PRIVATE
, NETPROP IPV6
, KEY_PREFIX NETENT IPV6
" Entity Keys", NULL
, NULL
},
740 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV6
, EXCLUDED ROUTES
, NULL
, CFARRAY_CFDICTIONARY
},
741 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV6
, INCLUDED ROUTES
, NULL
, CFARRAY_CFDICTIONARY
},
742 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
743 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP IPV6 INCLUDED ROUTES
", "
744 KEY_PREFIX NETPROP IPV6 EXCLUDED ROUTES
" [CFDictionary] keys ---", NULL
, NULL
, NULL
},
745 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV6 ROUTE
, DESTINATION ADDRESS
, NULL
, CFSTRING
},
746 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV6 ROUTE
, PREFIXLENGTH
, NULL
, CFNUMBER
},
747 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP IPV6 ROUTE
, GATEWAY ADDRESS
, NULL
, CFSTRING
},
748 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
750 { GROUP
, NETPROP STF
, KEY_PREFIX NETENT STF
" Entity Keys", NULL
, NULL
},
752 { SC_10_3
, NETPROP STF
, RELAY
, NULL
, CFSTRING
},
753 { COMMENT
, "", NULL
, NULL
, NULL
},
755 { GROUP
, NETPROP LINK
, KEY_PREFIX NETENT LINK
" Entity Keys", NULL
, NULL
},
757 { SC_10_1
, NETPROP LINK
, ACTIVE
, NULL
, CFBOOLEAN
},
758 { SC_10_2
, NETPROP LINK
, DETACHING
, NULL
, CFBOOLEAN
},
759 { COMMENT
, "", NULL
, NULL
, NULL
},
761 { GROUP
, NETPROP MODEM
, KEY_PREFIX NETENT MODEM
" (Hardware) Entity Keys", NULL
, NULL
},
763 { SC_10_5
, NETPROP MODEM
, ACCESSPOINTNAME
, NULL
, CFSTRING
},
764 { SC_10_5
, NETPROP MODEM
, CONNECTION PERSONALITY
, NULL
, CFSTRING
},
765 { SC_10_1
, NETPROP MODEM
, CONNECTION SCRIPT
, NULL
, CFSTRING
},
766 { SC_10_2
, NETPROP MODEM
, CONNECTSPEED
, NULL
, CFNUMBER
},
767 { SC_10_1
, NETPROP MODEM
, DATACOMPRESSION
, NULL
, CFNUMBER_BOOL
},
768 { SC_10_5
, NETPROP MODEM
, DEVICE CONTEXTID
, NULL
, CFSTRING
},
769 { SC_10_5
, NETPROP MODEM
, DEVICE MODEL
, NULL
, CFSTRING
},
770 { SC_10_5
, NETPROP MODEM
, DEVICE VENDOR
, NULL
, CFSTRING
},
771 { SC_10_1
, NETPROP MODEM
, DIALMODE
, NULL
, CFSTRING
},
772 { SC_10_1
, NETPROP MODEM
, ERRORCORRECTION
, NULL
, CFNUMBER_BOOL
},
773 { SC_10_2
, NETPROP MODEM
, HOLD CALLWAITINGAUDIBLEALERT
, NULL
, CFNUMBER_BOOL
},
774 { SC_10_2
, NETPROP MODEM
, HOLD DISCONNECTONANSWER
, NULL
, CFNUMBER_BOOL
},
775 { SC_10_2
, NETPROP MODEM
, HOLD ENABLED
, NULL
, CFNUMBER_BOOL
},
776 { SC_10_2
, NETPROP MODEM
, HOLD REMINDER
, NULL
, CFNUMBER_BOOL
},
777 { SC_10_2
, NETPROP MODEM
, HOLD REMINDERTIME
, NULL
, CFNUMBER
},
778 { SC_10_2
, NETPROP MODEM
, NOTE
, NULL
, CFSTRING
},
779 { SC_10_1
, NETPROP MODEM
, PULSEDIAL
, NULL
, CFNUMBER_BOOL
},
780 { SC_10_1
, NETPROP MODEM
, SPEAKER
, NULL
, CFNUMBER_BOOL
},
781 { SC_10_1
, NETPROP MODEM
, SPEED
, NULL
, CFNUMBER
},
782 { COMMENT
, "", NULL
, NULL
, NULL
},
783 { COMMENT
, "--- " KEY_PREFIX NETPROP MODEM DIALMODE
" values ---", NULL
, NULL
, NULL
},
784 { SC_10_1
, NETVAL MODEM DIALMODE
, IGNOREDIALTONE
, NULL
, NULL
},
785 { SC_10_1
, NETVAL MODEM DIALMODE
, MANUAL
, NULL
, NULL
},
786 { SC_10_1
, NETVAL MODEM DIALMODE
, WAITFORDIALTONE
, NULL
, NULL
},
787 { COMMENT
, "", NULL
, NULL
, NULL
},
789 { GROUP_DEPRECATED
, NETPROP NETINFO
, KEY_PREFIX NETENT NETINFO
" Entity Keys", NULL
, NULL
},
791 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
792 { SC_10_1_10_5
, NETPROP NETINFO
, BINDINGMETHODS
, NULL
, CFSTRING
},
793 { SC_10_1_10_5
, NETPROP NETINFO
, SERVER ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
794 { SC_10_1_10_5
, NETPROP NETINFO
, SERVER TAGS
, NULL
, CFARRAY_CFSTRING
},
795 { SC_10_1_10_5
, NETPROP NETINFO
, BROADCAST SERVER TAG
, NULL
, CFSTRING
},
796 { COMMENT_DEPRECATED
, "", NULL
, NULL
, NULL
},
797 { COMMENT_DEPRECATED
, "--- " KEY_PREFIX NETPROP NETINFO BINDINGMETHODS
" values ---", NULL
, NULL
, NULL
},
798 { SC_10_1_10_5
, NETVAL NETINFO BINDINGMETHODS
, BROADCAST
, NULL
, NULL
},
799 { SC_10_1_10_5
, NETVAL NETINFO BINDINGMETHODS
, DHCP
, NULL
, NULL
},
800 { SC_10_1_10_5
, NETVAL NETINFO BINDINGMETHODS
, MANUAL
, NULL
, NULL
},
801 { COMMENT_DEPRECATED
, "", NULL
, NULL
, NULL
},
802 { COMMENT_DEPRECATED
, "--- " KEY_PREFIX NETPROP NETINFO BROADCAST SERVER TAG
" default value ---", NULL
, NULL
, NULL
},
803 { SC_10_1_10_5
, NETVAL NETINFO
, DEFAULT SERVER TAG
, "network", NULL
},
804 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
805 { COMMENT_DEPRECATED
, "", NULL
, NULL
, NULL
},
807 { GROUP
, NETPROP PPP
, KEY_PREFIX NETENT PPP
" Entity Keys", NULL
, NULL
},
809 { SC_10_3
, NETPROP PPP
, ACSP ENABLED
, NULL
, CFNUMBER_BOOL
},
810 { SC_10_2
, NETPROP PPP
, CONNECTTIME
, NULL
, CFNUMBER
},
811 { SC_10_2
, NETPROP PPP
, DEVICE LAST CAUSE
, NULL
, CFNUMBER
},
812 { SC_10_1
, NETPROP PPP
, DIALONDEMAND
, NULL
, CFNUMBER_BOOL
},
813 { SC_10_4
, NETPROP PPP
, DISCONNECTONFASTUSERSWITCH
, NULL
, CFNUMBER_BOOL
},
814 { SC_10_1
, NETPROP PPP
, DISCONNECTONIDLE
, NULL
, CFNUMBER_BOOL
},
815 { SC_10_1
, NETPROP PPP
, DISCONNECTONIDLETIMER
, NULL
, CFNUMBER
},
816 { SC_10_1
, NETPROP PPP
, DISCONNECTONLOGOUT
, NULL
, CFNUMBER_BOOL
},
817 { SC_10_2
, NETPROP PPP
, DISCONNECTONSLEEP
, NULL
, CFNUMBER_BOOL
},
818 { SC_10_3
, NETPROP PPP
, DISCONNECTTIME
, NULL
, CFNUMBER
},
819 { SC_10_1
, NETPROP PPP
, IDLEREMINDERTIMER
, NULL
, CFNUMBER
},
820 { SC_10_1
, NETPROP PPP
, IDLEREMINDER
, NULL
, CFNUMBER_BOOL
},
821 { SC_10_2
, NETPROP PPP
, LAST CAUSE
, NULL
, CFNUMBER
},
822 { SC_10_1
, NETPROP PPP
, LOGFILE
, NULL
, CFSTRING
},
823 { SC_10_2
, NETPROP PPP
, PLUGINS
, NULL
, CFARRAY_CFSTRING
},
824 { SC_10_3
, NETPROP PPP
, RETRYCONNECTTIME
, NULL
, CFNUMBER
},
825 { SC_10_1
, NETPROP PPP
, SESSIONTIMER
, NULL
, CFNUMBER
},
826 { SC_10_2
, NETPROP PPP
, STATUS
, NULL
, CFNUMBER
},
827 { SC_10_2
, NETPROP PPP
, USE SESSIONTIMER
, NULL
, CFNUMBER_BOOL
},
828 { SC_10_1
, NETPROP PPP
, VERBOSELOGGING
, NULL
, CFNUMBER_BOOL
},
829 { COMMENT
, "", NULL
, NULL
, NULL
},
831 { COMMENT
, "--- " AUTH
": ---", NULL
, NULL
, NULL
},
832 { SC_10_3
, NETPROP PPP
, AUTH EAP PLUGINS
, NULL
, CFARRAY_CFSTRING
},
833 { SC_10_1
, NETPROP PPP
, AUTH NAME
, NULL
, CFSTRING
},
834 { SC_10_1
, NETPROP PPP
, AUTH PASSWORD
, NULL
, CFSTRING
},
835 { SC_10_1
, NETPROP PPP
, AUTH PASSWORD ENCRYPTION
, NULL
, CFSTRING
},
836 { SC_10_3
, NETPROP PPP
, AUTH PROMPT
, NULL
, CFSTRING
},
837 { SC_10_1
, NETPROP PPP
, AUTH PROTOCOL
, NULL
, CFARRAY_CFSTRING
},
838 { COMMENT
, "", NULL
, NULL
, NULL
},
839 { COMMENT
, "--- " KEY_PREFIX NETPROP PPP AUTH PASSWORD ENCRYPTION
" values ---", NULL
, NULL
, NULL
},
840 { SC_10_3
, NETVAL PPP AUTH PASSWORD ENCRYPTION
, KEYCHAIN
, NULL
, NULL
},
841 { SC_10_5
, NETVAL PPP AUTH PASSWORD ENCRYPTION
, TOKEN
, NULL
, NULL
},
842 { COMMENT
, "", NULL
, NULL
, NULL
},
843 { COMMENT
, "--- " KEY_PREFIX NETPROP PPP AUTH PROMPT
" values ---", NULL
, NULL
, NULL
},
844 { SC_10_3
, NETVAL PPP AUTH PROMPT
, BEFORE
, NULL
, CFSTRING
},
845 { SC_10_3
, NETVAL PPP AUTH PROMPT
, AFTER
, NULL
, CFSTRING
},
846 { COMMENT
, "", NULL
, NULL
, NULL
},
847 { COMMENT
, "--- " KEY_PREFIX NETPROP PPP AUTH PROTOCOL
" values ---", NULL
, NULL
, NULL
},
848 { SC_10_1
, NETVAL PPP AUTH PROTOCOL
, CHAP
, NULL
, CFSTRING
},
849 { SC_10_3
, NETVAL PPP AUTH PROTOCOL
, EAP
, NULL
, CFSTRING
},
850 { SC_10_3
, NETVAL PPP AUTH PROTOCOL
, MSCHAP1
, NULL
, CFSTRING
},
851 { SC_10_3
, NETVAL PPP AUTH PROTOCOL
, MSCHAP2
, NULL
, CFSTRING
},
852 { SC_10_1
, NETVAL PPP AUTH PROTOCOL
, PAP
, NULL
, CFSTRING
},
853 { COMMENT
, "", NULL
, NULL
, NULL
},
855 { COMMENT
, "--- " COMM
": ---", NULL
, NULL
, NULL
},
856 { SC_10_1
, NETPROP PPP
, COMM ALTERNATE REMOTEADDRESS
, NULL
, CFSTRING
},
857 { SC_10_1
, NETPROP PPP
, COMM CONNECTDELAY
, NULL
, CFNUMBER
},
858 { SC_10_1
, NETPROP PPP
, COMM DISPLAYTERMINALWINDOW
, NULL
, CFNUMBER_BOOL
},
859 { SC_10_1
, NETPROP PPP
, COMM REDIALCOUNT
, NULL
, CFNUMBER
},
860 { SC_10_1
, NETPROP PPP
, COMM REDIAL ENABLED
, NULL
, CFNUMBER_BOOL
},
861 { SC_10_1
, NETPROP PPP
, COMM REDIALINTERVAL
, NULL
, CFNUMBER
},
862 { SC_10_1
, NETPROP PPP
, COMM REMOTEADDRESS
, NULL
, CFSTRING
},
863 { SC_10_1
, NETPROP PPP
, COMM TERMINALSCRIPT
, NULL
, CFSTRING
},
864 { SC_10_2
, NETPROP PPP
, COMM USE TERMINALSCRIPT
, NULL
, CFNUMBER_BOOL
},
865 { COMMENT
, "", NULL
, NULL
, NULL
},
867 { COMMENT
, "--- " CCP
": ---", NULL
, NULL
, NULL
},
868 { SC_10_2
, NETPROP PPP
, CCP ENABLED
, NULL
, CFNUMBER_BOOL
},
869 { SC_10_4
, NETPROP PPP
, CCP MPPE40 ENABLED
, NULL
, CFNUMBER_BOOL
},
870 { SC_10_4
, NETPROP PPP
, CCP MPPE128 ENABLED
, NULL
, CFNUMBER_BOOL
},
871 { COMMENT
, "", NULL
, NULL
, NULL
},
873 { COMMENT
, "--- " IPCP
": ---", NULL
, NULL
, NULL
},
874 { SC_10_1
, NETPROP PPP
, IPCP COMPRESSIONVJ
, NULL
, CFNUMBER_BOOL
},
875 { SC_10_4
, NETPROP PPP
, IPCP USE PEER DNS
, NULL
, CFNUMBER_BOOL
},
876 { COMMENT
, "", NULL
, NULL
, NULL
},
878 { COMMENT
, "--- " LCP
": ---", NULL
, NULL
, NULL
},
879 { SC_10_1
, NETPROP PPP
, LCP ECHO ENABLED
, NULL
, CFNUMBER_BOOL
},
880 { SC_10_1
, NETPROP PPP
, LCP ECHOFAILURE
, NULL
, CFNUMBER
},
881 { SC_10_1
, NETPROP PPP
, LCP ECHOINTERVAL
, NULL
, CFNUMBER
},
882 { SC_10_1
, NETPROP PPP
, LCP COMPRESSIONACFIELD
, NULL
, CFNUMBER_BOOL
},
883 { SC_10_1
, NETPROP PPP
, LCP COMPRESSIONPFIELD
, NULL
, CFNUMBER_BOOL
},
884 { SC_10_1
, NETPROP PPP
, LCP MRU
, NULL
, CFNUMBER
},
885 { SC_10_1
, NETPROP PPP
, LCP MTU
, NULL
, CFNUMBER
},
886 { SC_10_1
, NETPROP PPP
, LCP RECEIVEACCM
, NULL
, CFNUMBER
},
887 { SC_10_1
, NETPROP PPP
, LCP TRANSMITACCM
, NULL
, CFNUMBER
},
888 { COMMENT
, "", NULL
, NULL
, NULL
},
890 { GROUP_PRIVATE
, NETPROP PPP
, KEY_PREFIX NETENT PPP
" Entity Keys", NULL
, NULL
},
892 { COMMENT_PRIVATE
, "--- " ONDEMAND
": ---", NULL
, NULL
, NULL
},
893 { SC_10_5_PRIVATE
, NETPROP PPP
, ONDEMAND DOMAINS
, NULL
, CFARRAY_CFSTRING
},
894 { SC_10_5_PRIVATE
, NETPROP PPP
, ONDEMAND ENABLED
, NULL
, CFNUMBER_BOOL
},
895 { SC_10_5_PRIVATE
, NETPROP PPP
, ONDEMAND HOSTNAME
, NULL
, CFSTRING
}, // DEPRECATED, use kSCNetworkConnectionSelectionOptionOnDemandHostName
896 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PPP
, ONDEMAND MATCH DOMAINS ALWAYS
, NULL
, CFARRAY_CFSTRING
},
897 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PPP
, ONDEMAND MATCH DOMAINS ONRETRY
, NULL
, CFARRAY_CFSTRING
},
898 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PPP
, ONDEMAND MATCH DOMAINS NEVER
, NULL
, CFARRAY_CFSTRING
},
899 { SC_10_5_PRIVATE
, NETPROP PPP
, ONDEMAND MODE
, NULL
, CFSTRING
},
900 { SC_10_5_PRIVATE
, NETPROP PPP
, ONDEMAND PRIORITY
, NULL
, CFSTRING
},
901 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
902 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP PPP ONDEMAND MODE
" values ---", NULL
, NULL
, NULL
},
903 { SC_10_5_PRIVATE
, NETVAL PPP ONDEMAND MODE
, AGGRESSIVE
, NULL
, NULL
},
904 { SC_10_5_PRIVATE
, NETVAL PPP ONDEMAND MODE
, CONSERVATIVE
, NULL
, NULL
},
905 { SC_10_5_PRIVATE
, NETVAL PPP ONDEMAND MODE
, COMPATIBLE
, NULL
, NULL
},
906 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
907 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP PPP ONDEMAND PRIORITY
" values ---", NULL
, NULL
, NULL
},
908 { SC_10_5_PRIVATE
, NETVAL PPP ONDEMAND PRIORITY
, DEFAULT
, NULL
, NULL
},
909 { SC_10_5_PRIVATE
, NETVAL PPP ONDEMAND PRIORITY
, HIGH
, NULL
, NULL
},
910 { SC_10_5_PRIVATE
, NETVAL PPP ONDEMAND PRIORITY
, LOW
, NULL
, NULL
},
911 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
913 { GROUP
, NETPROP PPPOE
, KEY_PREFIX NETENT PPPOE
" Entity Keys", NULL
, NULL
},
915 { COMMENT
, "* RESERVED FOR FUTURE USE *", NULL
, NULL
, NULL
},
916 { COMMENT
, "", NULL
, NULL
, NULL
},
918 { GROUP
, NETPROP PPPSERIAL
, KEY_PREFIX NETENT PPPSERIAL
" Entity Keys", NULL
, NULL
},
920 { COMMENT
, "* RESERVED FOR FUTURE USE *", NULL
, NULL
, NULL
},
921 { COMMENT
, "", NULL
, NULL
, NULL
},
923 { GROUP
, NETPROP PPTP
, KEY_PREFIX NETENT PPTP
" Entity Keys", NULL
, NULL
},
925 { COMMENT
, "* RESERVED FOR FUTURE USE *", NULL
, NULL
, NULL
},
926 { COMMENT
, "", NULL
, NULL
, NULL
},
928 { GROUP
, NETPROP L2TP
, KEY_PREFIX NETENT L2TP
" Entity Keys", NULL
, NULL
},
930 { SC_10_3
, NETPROP L2TP
, IPSEC SHAREDSECRET
, NULL
, CFSTRING
},
931 { SC_10_3
, NETPROP L2TP
, IPSEC SHAREDSECRET ENCRYPTION
, NULL
, CFSTRING
},
932 { SC_10_3
, NETPROP L2TP
, TRANSPORT
, NULL
, CFSTRING
},
933 { COMMENT
, "", NULL
, NULL
, NULL
},
934 { COMMENT
, "--- " KEY_PREFIX NETPROP L2TP IPSEC SHAREDSECRET ENCRYPTION
" values ---", NULL
, NULL
, NULL
},
935 { SC_10_3
, NETVAL L2TP IPSEC SHAREDSECRET ENCRYPTION
, KEYCHAIN
, NULL
, NULL
},
936 { COMMENT
, "", NULL
, NULL
, NULL
},
937 { COMMENT
, "--- " KEY_PREFIX NETPROP L2TP TRANSPORT
" values ---", NULL
, NULL
, NULL
},
938 { SC_10_3
, NETVAL L2TP TRANSPORT
, IP
, NULL
, NULL
},
939 { SC_10_3
, NETVAL L2TP TRANSPORT
, IPSEC
, NULL
, NULL
},
940 { COMMENT
, "", NULL
, NULL
, NULL
},
942 { GROUP
, NETPROP PROXIES
, KEY_PREFIX NETENT PROXIES
" Entity Keys", NULL
, NULL
},
944 { SC_10_1
, NETPROP PROXIES
, EXCEPTIONSLIST
, NULL
, CFARRAY_CFSTRING
},
945 { SC_10_4
, NETPROP PROXIES
, EXCLUDESIMPLEHOSTNAMES
, NULL
, CFNUMBER_BOOL
},
946 { SC_10_1
, NETPROP PROXIES
, FTP ENABLE
, NULL
, CFNUMBER_BOOL
},
947 { SC_10_1
, NETPROP PROXIES
, FTP PASSIVE
, NULL
, CFNUMBER_BOOL
},
948 { SC_10_1
, NETPROP PROXIES
, FTP PORT
, NULL
, CFNUMBER
},
949 { SC_10_1
, NETPROP PROXIES
, FTP PROXY
, NULL
, CFSTRING
},
950 { SC_10_1
, NETPROP PROXIES
, GOPHER ENABLE
, NULL
, CFNUMBER_BOOL
},
951 { SC_10_1
, NETPROP PROXIES
, GOPHER PORT
, NULL
, CFNUMBER
},
952 { SC_10_1
, NETPROP PROXIES
, GOPHER PROXY
, NULL
, CFSTRING
},
953 { SC_10_1
, NETPROP PROXIES
, HTTP ENABLE
, NULL
, CFNUMBER_BOOL
},
954 { SC_10_1
, NETPROP PROXIES
, HTTP PORT
, NULL
, CFNUMBER
},
955 { SC_10_1
, NETPROP PROXIES
, HTTP PROXY
, NULL
, CFSTRING
},
956 { SC_10_1
, NETPROP PROXIES
, HTTPS ENABLE
, NULL
, CFNUMBER_BOOL
},
957 { SC_10_1
, NETPROP PROXIES
, HTTPS PORT
, NULL
, CFNUMBER
},
958 { SC_10_1
, NETPROP PROXIES
, HTTPS PROXY
, NULL
, CFSTRING
},
959 { SC_10_1
, NETPROP PROXIES
, RTSP ENABLE
, NULL
, CFNUMBER_BOOL
},
960 { SC_10_1
, NETPROP PROXIES
, RTSP PORT
, NULL
, CFNUMBER
},
961 { SC_10_1
, NETPROP PROXIES
, RTSP PROXY
, NULL
, CFSTRING
},
962 { SC_10_1
, NETPROP PROXIES
, SOCKS ENABLE
, NULL
, CFNUMBER_BOOL
},
963 { SC_10_1
, NETPROP PROXIES
, SOCKS PORT
, NULL
, CFNUMBER
},
964 { SC_10_1
, NETPROP PROXIES
, SOCKS PROXY
, NULL
, CFSTRING
},
965 { SC_10_4
, NETPROP PROXIES
, PROXY AUTOCONFIG ENABLE
, NULL
, CFNUMBER_BOOL
},
966 { SC_10_7_IPHONE_4_0
, NETPROP PROXIES
, PROXY AUTOCONFIG JAVASCRIPT
, NULL
, CFSTRING
},
967 { SC_10_4
, NETPROP PROXIES
, PROXY AUTOCONFIG URLSTRING
, NULL
, CFSTRING
},
968 { SC_10_4
, NETPROP PROXIES
, PROXY AUTODISCOVERY ENABLE
, NULL
, CFNUMBER_BOOL
},
969 { COMMENT
, "", NULL
, NULL
, NULL
},
971 { GROUP_PRIVATE
, NETPROP PROXIES
, KEY_PREFIX NETENT PROXIES
" Entity Keys", NULL
, NULL
},
973 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PROXIES
, SUPPLEMENTAL MATCH DOMAINS
, NULL
, CFARRAY_CFSTRING
},
974 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PROXIES
, SUPPLEMENTAL MATCH ORDERS
, NULL
, CFARRAY_CFNUMBER
},
975 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
976 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PROXIES
, SCOPED
, "__SCOPED__", CFDICTIONARY
},
977 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PROXIES
, SUPPLEMENTAL
, "__SUPPLEMENTAL__", CFARRAY_CFDICTIONARY
},
978 { SC_10_7_IPHONE_5_0_PRIVATE
, NETPROP PROXIES
, SUPPLEMENTAL MATCH DOMAIN
, "__MATCH_DOMAIN__", CFSTRING
},
979 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
981 { GROUP_PRIVATE
, NETPROP SERVICE
, KEY_PREFIX NETENT SERVICE
" Entity Keys", NULL
, NULL
},
983 { SC_10_6_IPHONE_2_0_PRIVATE
, NETPROP SERVICE
, PRIMARYRANK
, NULL
, CFSTRING
},
984 { SC_10_6_IPHONE_2_0_PRIVATE
, NETPROP SERVICE
, USERDEFINEDNAME
, NULL
, CFSTRING
},
985 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
986 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP SERVICE PRIMARYRANK
" values ---", NULL
, NULL
, NULL
},
987 { SC_10_6_IPHONE_2_0_PRIVATE
, NETVAL SERVICE PRIMARYRANK
, FIRST
, NULL
},
988 { SC_10_6_IPHONE_2_0_PRIVATE
, NETVAL SERVICE PRIMARYRANK
, LAST
, NULL
},
989 { SC_10_6_IPHONE_2_0_PRIVATE
, NETVAL SERVICE PRIMARYRANK
, NEVER
, NULL
},
990 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
992 { GROUP
, NETPROP SMB
, KEY_PREFIX NETENT SMB
" Entity Keys", NULL
, NULL
},
994 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
995 { SC_10_5
, NETPROP SMB
, NETBIOS NAME
, NULL
, CFSTRING
},
996 { SC_10_5
, NETPROP SMB
, NETBIOS NODE TYPE
, NULL
, CFSTRING
},
997 { SC_10_5_10_7
, NETPROP SMB
, NETBIOS SCOPE
, NULL
, CFSTRING
},
998 { SC_10_5
, NETPROP SMB
, WINS ADDRESSES
, NULL
, CFARRAY_CFSTRING
},
999 { SC_10_5
, NETPROP SMB
, WORKGROUP
, NULL
, CFSTRING
},
1000 { COMMENT
, "", NULL
, NULL
, NULL
},
1001 { COMMENT
, "--- " KEY_PREFIX NETPROP SMB NETBIOS NODE TYPE
" values ---", NULL
, NULL
, NULL
},
1002 { SC_10_5
, NETVAL SMB NETBIOS NODE TYPE
, BROADCAST
, NULL
},
1003 { SC_10_5
, NETVAL SMB NETBIOS NODE TYPE
, PEER
, NULL
},
1004 { SC_10_5
, NETVAL SMB NETBIOS NODE TYPE
, MIXED
, NULL
},
1005 { SC_10_5
, NETVAL SMB NETBIOS NODE TYPE
, HYBRID
, NULL
},
1006 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
1007 { COMMENT
, "", NULL
, NULL
, NULL
},
1009 { GROUP_PRIVATE
, NETPROP VPN
, KEY_PREFIX NETENT VPN
" Entity Keys", NULL
, NULL
},
1011 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, AUTH NAME
, NULL
, CFSTRING
},
1012 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, AUTH PASSWORD
, NULL
, CFSTRING
},
1013 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, AUTH PASSWORD ENCRYPTION
, NULL
, CFSTRING
},
1014 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, AUTHENTICATIONMETHOD
, NULL
, CFSTRING
},
1015 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, CONNECTTIME
, NULL
, CFSTRING
},
1016 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, DISCONNECTONFASTUSERSWITCH
, NULL
, CFNUMBER_BOOL
},
1017 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, DISCONNECTONIDLE
, NULL
, CFNUMBER_BOOL
},
1018 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, DISCONNECTONIDLETIMER
, NULL
, CFNUMBER
},
1019 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, DISCONNECTONLOGOUT
, NULL
, CFNUMBER_BOOL
},
1020 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, DISCONNECTONSLEEP
, NULL
, CFNUMBER_BOOL
},
1021 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, LOCALCERTIFICATE
, NULL
, CFDATA
},
1022 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, LOGFILE
, NULL
, CFSTRING
},
1023 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, MTU
, NULL
, CFNUMBER
},
1024 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, ONDEMAND ENABLED
, NULL
, CFNUMBER_BOOL
},
1025 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, ONDEMAND MATCH DOMAINS ALWAYS
, NULL
, CFARRAY_CFSTRING
},
1026 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, ONDEMAND MATCH DOMAINS ONRETRY
, NULL
, CFARRAY_CFSTRING
},
1027 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, ONDEMAND MATCH DOMAINS NEVER
, NULL
, CFARRAY_CFSTRING
},
1028 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, REMOTEADDRESS
, NULL
, CFSTRING
},
1029 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, STATUS
, NULL
, CFNUMBER
},
1030 { SC_10_7_IPHONE_4_0_PRIVATE
, NETPROP VPN
, VERBOSELOGGING
, NULL
, CFNUMBER_BOOL
},
1031 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
1032 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP VPN AUTHENTICATIONMETHOD
" values ---", NULL
, NULL
, NULL
},
1033 { SC_10_7_IPHONE_4_0_PRIVATE
, NETVAL VPN AUTHENTICATIONMETHOD
, PASSWORD
, NULL
, NULL
},
1034 { SC_10_7_IPHONE_4_0_PRIVATE
, NETVAL VPN AUTHENTICATIONMETHOD
, CERTIFICATE
, NULL
, NULL
},
1035 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
1036 { COMMENT_PRIVATE
, "--- " KEY_PREFIX NETPROP VPN AUTH PASSWORD ENCRYPTION
" values ---", NULL
, NULL
, NULL
},
1037 { SC_10_7_IPHONE_4_0_PRIVATE
, NETVAL VPN AUTH PASSWORD ENCRYPTION
, KEYCHAIN
, NULL
, NULL
},
1038 { SC_10_7_IPHONE_4_0_PRIVATE
, NETVAL VPN AUTH PASSWORD ENCRYPTION
, PROMPT
, NULL
, NULL
},
1039 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
1041 { GROUP
, USERSENT CONSOLEUSER
, KEY_PREFIX COMP USERS
" Entity Keys", NULL
, NULL
},
1043 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
1044 { SC_10_1
, USERSENT
, CONSOLEUSER
, NULL
, NULL
},
1045 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
1046 { COMMENT
, "", NULL
, NULL
, NULL
},
1048 { GROUP
, SYSTEMPROP COMPUTERNAME
, KEY_PREFIX COMP SYSTEM
" Properties", NULL
, NULL
},
1050 { SC_10_1
, SYSTEMPROP
, COMPUTERNAME
, NULL
, CFSTRING
},
1051 { SC_10_1
, SYSTEMPROP
, COMPUTERNAME ENCODING
, NULL
, CFNUMBER
},
1052 { COMMENT
, "", NULL
, NULL
, NULL
},
1054 { GROUP_PRIVATE
, SYSTEMPROP COMPUTERNAME
, KEY_PREFIX COMP SYSTEM
" Properties", NULL
, NULL
},
1056 { SC_10_5_PRIVATE
, SYSTEMPROP
, COMPUTERNAME REGION
, NULL
, CFNUMBER
},
1057 { SC_10_5_PRIVATE
, SYSTEMPROP
, HOSTNAME
, NULL
, CFSTRING
},
1058 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
1060 { GROUP
, DYNAMICSTORE DOMAIN
, "SCDynamicStore \"domain\" prefixes", NULL
, NULL
},
1062 { SC_10_1
, DYNAMICSTORE DOMAIN
, FILE, "File:", NULL
},
1063 { SC_10_1
, DYNAMICSTORE DOMAIN
, PLUGIN
, "Plugin:", NULL
},
1064 { SC_10_1
, DYNAMICSTORE DOMAIN
, SETUP
, "Setup:", NULL
},
1065 { SC_10_1
, DYNAMICSTORE DOMAIN
, STATE
, "State:", NULL
},
1066 { SC_10_1
, DYNAMICSTORE DOMAIN
, PREFS
, "Prefs:", NULL
},
1067 { COMMENT
, "", NULL
, NULL
, NULL
},
1069 { GROUP
, DYNAMICSTORE SETUPPROP
, "Preference (\"location\") Keys", NULL
, NULL
},
1071 { SC_10_1
, DYNAMICSTORE SETUPPROP
, CURRENTSET
, NULL
, CFSTRING
},
1072 { SC_10_1
, DYNAMICSTORE SETUPPROP
, LAST UPDATED
, NULL
, NULL
},
1073 { COMMENT
, "", NULL
, NULL
, NULL
},
1075 { GROUP
, DYNAMICSTORE NETPROP
, "Common/shared Keys", NULL
, NULL
},
1077 { SC_10_1
, DYNAMICSTORE NETPROP
, INTERFACES
, NULL
, CFARRAY_CFSTRING
},
1078 { SC_10_1
, DYNAMICSTORE NETPROP
, PRIMARYINTERFACE
, NULL
, CFSTRING
},
1079 { SC_10_1
, DYNAMICSTORE NETPROP
, PRIMARYSERVICE
, NULL
, CFSTRING
},
1080 { SC_10_1
, DYNAMICSTORE NETPROP
, SERVICEIDS
, NULL
, CFARRAY_CFSTRING
},
1081 // { COMMENT, "", NULL, NULL, NULL },
1083 { GROUP_PRIVATE
, VIRTUALNETWORKINTERFACES
, "Virtual Network Interface Keys", NULL
, NULL
},
1085 { SC_10_5_PRIVATE
, VIRTUALPROP BOND
, INTERFACES
, NULL
, CFARRAY_CFSTRING
},
1086 { SC_10_5_PRIVATE
, VIRTUALPROP BOND
, MODE
, NULL
, CFNUMBER
},
1087 { SC_10_5_PRIVATE
, VIRTUALPROP BOND
, OPTIONS
, NULL
, CFDICTIONARY
},
1088 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
1089 { SC_10_7_IPHONE_4_0_PRIVATE
, VIRTUALPROP BRIDGE
, INTERFACES
, NULL
, CFARRAY_CFSTRING
},
1090 { SC_10_7_IPHONE_4_0_PRIVATE
, VIRTUALPROP BRIDGE
, OPTIONS
, NULL
, CFDICTIONARY
},
1091 { COMMENT_PRIVATE
, "", NULL
, NULL
, NULL
},
1092 { SC_10_5_PRIVATE
, VIRTUALPROP VLAN
, INTERFACE
, NULL
, CFSTRING
},
1093 { SC_10_5_PRIVATE
, VIRTUALPROP VLAN
, TAG
, NULL
, CFNUMBER
},
1094 { SC_10_5_PRIVATE
, VIRTUALPROP VLAN
, OPTIONS
, NULL
, CFDICTIONARY
},
1095 // { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1097 //{ GROUP, "DEPRECATED", "Deprecated schema definition keys", NULL, NULL },
1099 { DEFINE
, "#if", "!TARGET_OS_IPHONE", NULL
, NULL
},
1100 { SC_10_1_10_4
, USERSPROP CONSOLEUSER
, NAME
, NULL
, CFSTRING
},
1101 { SC_10_1_10_4
, USERSPROP CONSOLEUSER
, UID
, NULL
, CFNUMBER
},
1102 { SC_10_1_10_4
, USERSPROP CONSOLEUSER
, GID
, NULL
, CFNUMBER
},
1103 { DEFINE
, "#endif", "// !TARGET_OS_IPHONE", NULL
, NULL
},
1104 // { COMMENT, "", NULL, NULL, NULL },
1106 { END
, NULL
, NULL
, NULL
, NULL
},
1109 static int maxkbuf
= 0;
1110 static char *maxkstr
= NULL
;
1111 static int maxvbuf
= 0;
1112 static char *maxvstr
= NULL
;
1114 static __inline__
void
1115 setmax(int *max
, char **maxstr
, char *str
)
1121 if (*maxstr
) free(*maxstr
);
1122 *maxstr
= strdup(str
);
1131 gen_comments_private_e
,
1133 gen_headerdoc_private_e
,
1135 gen_hfile_private_e
,
1140 print_comment(schemaDefinition
*def
)
1145 snprintf(kbuf
, sizeof(kbuf
), KEY_PREFIX
"%s%s",
1146 def
->prefix
, def
->key
);
1147 snprintf(vbuf
, sizeof(vbuf
), "\"%s\"",
1148 def
->value
? def
->value
: def
->key
);
1151 printf(" * %-50s %-30s %s\n",
1152 kbuf
, vbuf
, def
->type
);
1154 printf(" * %-50s %s\n",
1161 print_define(schemaDefinition
*def
)
1163 printf("%s %s\n", def
->prefix
, def
->key
);
1168 print_headerdoc(schemaDefinition
*def
)
1173 snprintf(kbuf
, sizeof(kbuf
), KEY_PREFIX
"%s%s",
1174 def
->prefix
, def
->key
);
1175 setmax(&maxkbuf
, &maxkstr
, kbuf
);
1177 snprintf(vbuf
, sizeof(vbuf
), "\"%s\"",
1178 def
->value
? def
->value
: def
->key
);
1179 setmax(&maxvbuf
, &maxvstr
, vbuf
);
1184 printf(" @const %s\n", kbuf
);
1185 switch (def
->control
) {
1187 printf(" @availability Introduced in Mac OS X 10.1.\n");
1190 printf(" @availability Introduced in Mac OS X 10.2.\n");
1193 printf(" @availability Introduced in Mac OS X 10.3.\n");
1196 printf(" @availability Introduced in Mac OS X 10.1, but later deprecated in Mac OS X 10.4.\n");
1199 printf(" @availability Introduced in Mac OS X 10.4.\n");
1202 printf(" @availability Introduced in Mac OS X 10.1, but later deprecated in Mac OS X 10.5.\n");
1205 printf(" @availability Introduced in Mac OS X 10.5.\n");
1208 printf(" @availability Introduced in Mac OS X 10.5, but later deprecated in Mac OS X 10.7.\n");
1210 case SC_10_5_PRIVATE
:
1211 printf(" @availability Introduced in Mac OS X 10.5.\n");
1214 printf(" @availability Introduced in Mac OS X 10.1, but later deprecated in Mac OS X 10.6.\n");
1217 printf(" @availability Introduced in Mac OS X 10.2, but later deprecated in Mac OS X 10.6.\n");
1219 case SC_10_6_IPHONE_2_0
:
1220 case SC_10_6_IPHONE_2_0_PRIVATE
:
1221 printf(" @availability Introduced in Mac OS X 10.6.\n");
1223 case SC_10_6_IPHONE_3_0
:
1224 case SC_10_6_IPHONE_3_0_PRIVATE
:
1225 printf(" @availability Introduced in Mac OS X 10.6.\n");
1227 case SC_10_7_IPHONE_4_0
:
1228 case SC_10_7_IPHONE_4_0_PRIVATE
:
1229 case SC_10_7_IPHONE_5_0_PRIVATE
:
1230 printf(" @availability Introduced in Mac OS X 10.7.\n");
1232 case SC_IPHONE_2_0_PRIVATE
:
1233 printf(" @availability Introduced in iPhone OS 2.0.\n");
1237 printf("extern const CFStringRef %s;\n", kbuf
);
1243 print_hfile(schemaDefinition
*def
)
1248 snprintf(kbuf
, sizeof(kbuf
), KEY_PREFIX
"%s%s",
1249 def
->prefix
, def
->key
);
1250 setmax(&maxkbuf
, &maxkstr
, kbuf
);
1252 snprintf(vbuf
, sizeof(vbuf
), "\"%s\"",
1253 def
->value
? def
->value
: def
->key
);
1254 setmax(&maxvbuf
, &maxvstr
, vbuf
);
1258 switch (def
->control
) {
1260 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1263 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1266 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1269 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_4,__IPHONE_NA,__IPHONE_NA))\n", kbuf
);
1272 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1275 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA))\n", kbuf
);
1278 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1281 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_7,__IPHONE_NA,__IPHONE_NA))\n", kbuf
);
1283 case SC_10_5_PRIVATE
:
1284 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1287 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_6,__IPHONE_NA,__IPHONE_NA))\n", kbuf
);
1290 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_2,__MAC_10_6,__IPHONE_NA,__IPHONE_NA))\n", kbuf
);
1292 case SC_10_6_IPHONE_2_0
:
1293 case SC_10_6_IPHONE_2_0_PRIVATE
:
1294 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1296 case SC_10_6_IPHONE_3_0
:
1297 case SC_10_6_IPHONE_3_0_PRIVATE
:
1298 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_3_0/*SPI*/))\n", kbuf
);
1300 case SC_10_7_IPHONE_4_0
:
1301 case SC_10_7_IPHONE_4_0_PRIVATE
:
1302 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_0/*SPI*/))\n", kbuf
);
1304 case SC_10_7_IPHONE_5_0_PRIVATE
:
1305 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_5_0/*SPI*/))\n", kbuf
);
1307 case SC_IPHONE_2_0_PRIVATE
:
1308 printf(" " SC_SCHEMA_DECLARATION
"(%s, __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_2_0/*SPI*/))\n", kbuf
);
1311 printf(" " SC_SCHEMA_DECLARATION
"(%s,)\n", kbuf
);
1315 printf(" #define %-48s \\\n",
1317 printf(" " SC_SCHEMA_KV
"(%-48s \\\n",
1319 printf(" ,%-48s \\\n",
1321 printf(" ,%-48s )\n",
1322 def
->type
? def
->type
: "");
1328 dump_names(int type
)
1332 for (i
= 0; TRUE
; i
++) {
1333 switch (names
[i
].control
) {
1340 case gen_comments_e
:
1341 if (names
[i
].prefix
)
1342 if (strlen(names
[i
].prefix
) > 0)
1343 printf(" * %s\n", names
[i
].prefix
);
1353 case COMMENT_PRIVATE
: {
1355 case gen_comments_private_e
:
1356 if (names
[i
].prefix
)
1357 if (strlen(names
[i
].prefix
) > 0)
1358 printf(" * %s\n", names
[i
].prefix
);
1368 case COMMENT_DEPRECATED
: {
1376 print_define(&names
[i
]);
1379 if ((strcmp(names
[i
].prefix
, "#if") == 0) ||
1380 (strcmp(names
[i
].prefix
, "#ifdef") == 0) ||
1381 (strcmp(names
[i
].prefix
, "#ifndef") == 0))
1383 print_define(&names
[i
]);
1384 if (strcmp(names
[i
].prefix
, "#endif") == 0)
1393 case DEFINE_PRIVATE
: {
1395 case gen_hfile_private_e
:
1397 print_define(&names
[i
]);
1400 if ((strcmp(names
[i
].prefix
, "#if") == 0) ||
1401 (strcmp(names
[i
].prefix
, "#ifdef") == 0) ||
1402 (strcmp(names
[i
].prefix
, "#ifndef") == 0))
1404 print_define(&names
[i
]);
1405 if (strcmp(names
[i
].prefix
, "#endif") == 0)
1415 case GROUP_DEPRECATED
: {
1417 case gen_comments_e
:
1418 if (names
[i
].control
== GROUP
) {
1420 printf(" * %s\n *\n", names
[i
].key
);
1423 case gen_headerdoc_e
:
1424 if (names
[i
].prefix
)
1425 printf("\n/*!\n @group %s\n */\n", names
[i
].key
);
1433 case GROUP_PRIVATE
: {
1435 case gen_comments_private_e
:
1437 printf(" * %s\n *\n", names
[i
].key
);
1439 case gen_headerdoc_private_e
:
1440 if (names
[i
].prefix
)
1441 printf("\n/*!\n @group %s\n */\n", names
[i
].key
);
1455 snprintf(kbuf
, sizeof(kbuf
), KEY_PREFIX
"%s%s",
1456 names
[i
].prefix
, names
[i
].key
);
1459 snprintf(vbuf
, sizeof(vbuf
), "SCSTR(\"%s\")",
1462 snprintf(vbuf
, sizeof(vbuf
), "SCSTR(\"%s\")",
1465 printf("#define %-50s %s\n",
1469 case gen_comments_e
:
1470 switch (names
[i
].control
) {
1475 // don't report deprecated keys
1477 case SC_10_5_PRIVATE
:
1478 case SC_10_6_IPHONE_2_0_PRIVATE
:
1479 case SC_10_6_IPHONE_3_0_PRIVATE
:
1480 case SC_10_7_IPHONE_4_0_PRIVATE
:
1481 case SC_10_7_IPHONE_5_0_PRIVATE
:
1482 case SC_IPHONE_2_0_PRIVATE
:
1483 // don't report private definitions
1486 print_comment(&names
[i
]);
1490 case gen_comments_private_e
:
1491 switch (names
[i
].control
) {
1496 // don't report deprecated keys
1498 case SC_10_5_PRIVATE
:
1499 case SC_10_6_IPHONE_2_0_PRIVATE
:
1500 case SC_10_6_IPHONE_3_0_PRIVATE
:
1501 case SC_10_7_IPHONE_4_0_PRIVATE
:
1502 case SC_10_7_IPHONE_5_0_PRIVATE
:
1503 case SC_IPHONE_2_0_PRIVATE
:
1504 print_comment(&names
[i
]);
1507 // don't report public definitions
1512 case gen_headerdoc_e
:
1513 switch (names
[i
].control
) {
1514 case SC_10_5_PRIVATE
:
1515 case SC_10_6_IPHONE_2_0_PRIVATE
:
1516 case SC_10_6_IPHONE_3_0_PRIVATE
:
1517 case SC_10_7_IPHONE_4_0_PRIVATE
:
1518 case SC_10_7_IPHONE_5_0_PRIVATE
:
1519 case SC_IPHONE_2_0_PRIVATE
:
1520 // don't report private definitions
1523 print_headerdoc(&names
[i
]);
1527 case gen_headerdoc_private_e
:
1528 switch (names
[i
].control
) {
1529 case SC_10_5_PRIVATE
:
1530 case SC_10_6_IPHONE_2_0_PRIVATE
:
1531 case SC_10_6_IPHONE_3_0_PRIVATE
:
1532 case SC_10_7_IPHONE_4_0_PRIVATE
:
1533 case SC_10_7_IPHONE_5_0_PRIVATE
:
1534 case SC_IPHONE_2_0_PRIVATE
:
1535 print_headerdoc(&names
[i
]);
1538 // don't report public definitions
1544 switch (names
[i
].control
) {
1545 case SC_10_5_PRIVATE
:
1546 case SC_10_6_IPHONE_2_0_PRIVATE
:
1547 case SC_10_6_IPHONE_3_0_PRIVATE
:
1548 case SC_10_7_IPHONE_4_0_PRIVATE
:
1549 case SC_10_7_IPHONE_5_0_PRIVATE
:
1550 case SC_IPHONE_2_0_PRIVATE
:
1552 // don't report private definitions
1554 print_hfile(&names
[i
]);
1558 case gen_hfile_private_e
:
1559 switch (names
[i
].control
) {
1560 case SC_10_5_PRIVATE
:
1561 case SC_10_6_IPHONE_2_0_PRIVATE
:
1562 case SC_10_6_IPHONE_3_0_PRIVATE
:
1563 case SC_10_7_IPHONE_4_0_PRIVATE
:
1564 case SC_10_7_IPHONE_5_0_PRIVATE
:
1565 case SC_IPHONE_2_0_PRIVATE
:
1566 print_hfile(&names
[i
]);
1569 // don't report public definitions
1575 snprintf(kbuf
, sizeof(kbuf
), KEY_PREFIX
"%s%s",
1576 names
[i
].prefix
, names
[i
].key
);
1579 printf("const CFStringRef %-48s = CFSTR(\"%s\");\n",
1580 kbuf
, names
[i
].value
);
1582 printf("const CFStringRef %-48s = CFSTR(\"%s\");\n",
1583 kbuf
, names
[i
].key
);
1595 fprintf(stderr
, "max key: length = %2d, string = %s\n", maxkbuf
, maxkstr
);
1596 fprintf(stderr
, "max val: length = %2d, string = %s\n", maxvbuf
, maxvstr
);
1603 main(int argc
, char * argv
[])
1610 if (strcmp(type
, "header") == 0) {
1611 printf("%s\n", copyright_string
);
1612 printf("/*\n * This file is automatically generated\n * DO NOT EDIT!\n */\n\n");
1615 dump_names(gen_comments_e
);
1616 printf(" */\n\n\n");
1619 printf(" * Note: The MACOSX_DEPLOYMENT_TARGET environment variable should be used\n");
1620 printf(" * when building an application targeted for an earlier version of\n");
1621 printf(" * Mac OS X. Please reference Technical Note TN2064 for more details.\n");
1625 printf(" * Note: For Cocoa/Obj-C/Foundation applications accessing these preference\n");
1626 printf(" * keys you may want to consider the following :\n");
1628 printf(" * #define " SC_SCHEMA_DECLARATION
"(k,q)\textern NSString * k;\n");
1629 printf(" * #import <SystemConfiguration/SystemConfiguration.h>\n");
1633 printf(" * Note: For CFM applications using these schema keys you may want to\n");
1634 printf(" * consider the following :\n");
1636 printf(" * #define " SC_SCHEMA_DECLARATION
"(k,q)\n");
1637 printf(" * #define " SC_SCHEMA_KV
"(k,v,t)\tlookup_SC_key( CFSTR( #k ) )\n");
1638 printf(" * #include <SystemConfiguration/SystemConfiguration.h>\n");
1640 printf(" * CFStringRef lookup_SC_key(CFStringRef key)\n");
1642 printf(" * // this function should [dynamically, on-demand] load the\n");
1643 printf(" * // SystemConfiguration.framework, look up the provided key,\n");
1644 printf(" * // and return the associated value.\n");
1649 printf(" * Note: Earlier versions of this header file defined a \"SCSTR\" macro\n");
1650 printf(" * which helped to facilitate Obj-C development. Use of this macro\n");
1651 printf(" * has been deprecated (in Mac OS X 10.4) in favor of the newer\n");
1652 printf(" * \"" SC_SCHEMA_DECLARATION
"\" and \"" SC_SCHEMA_KV
"\" macros\n");
1653 printf(" */\n\n\n");
1655 printf("#ifndef\t_SCSCHEMADEFINITIONS_H\n");
1656 printf("#ifdef\tUSE_SYSTEMCONFIGURATION_PRIVATE_HEADERS\n");
1657 printf("#include <SystemConfiguration/_SCSchemaDefinitions.h>\n");
1658 printf("#else\t/* USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS */\n");
1659 printf("#define\t_SCSCHEMADEFINITIONS_H\n");
1662 printf("/* -------------------- Macro declarations -------------------- */\n\n");
1664 printf("#include <Availability.h>\n");
1665 printf("#include <TargetConditionals.h>\n");
1669 printf(" * Define a schema key/value/type tuple\n");
1671 printf("#ifndef " SC_SCHEMA_KV
"\n");
1672 printf(" #define " SC_SCHEMA_KV
"(k,v,t)\tk\n");
1673 printf("#endif\n\n");
1676 printf(" * Provide an \"extern\" for the key/value\n");
1678 printf("#ifndef " SC_SCHEMA_DECLARATION
"\n");
1679 printf(" #ifndef SCSTR\n");
1680 printf(" #include <CoreFoundation/CFString.h>\n");
1681 printf(" #define " SC_SCHEMA_DECLARATION
"(k,q)\textern const CFStringRef k q;\n");
1683 printf(" #import <Foundation/NSString.h>\n");
1684 printf(" #define " SC_SCHEMA_DECLARATION
"(k,q)\textern NSString * k q;\n");
1685 printf(" #endif\n");
1688 printf("/* -------------------- HeaderDoc comments -------------------- */\n\n\n");
1691 printf(" *\t@header SCSchemaDefinitions\n");
1693 dump_names(gen_headerdoc_e
);
1695 printf("#endif\t/* 0 */\n\n\n");
1697 printf("/* -------------------- Schema declarations -------------------- */\n\n");
1698 dump_names(gen_hfile_e
);
1701 printf("#endif\t/* USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS */\n");
1702 printf("#endif\t/* _SCSCHEMADEFINITIONS_H */\n");
1704 else if (strcmp(type
, "private") == 0) {
1705 printf("%s\n", copyright_string
);
1706 printf("/*\n * This file is automatically generated\n * DO NOT EDIT!\n */\n\n");
1709 dump_names(gen_comments_private_e
);
1710 printf(" */\n\n\n");
1712 printf("#ifndef _SCSCHEMADEFINITIONSPRIVATE_H\n");
1713 printf("#define _SCSCHEMADEFINITIONSPRIVATE_H\n");
1716 printf("/* -------------------- Macro declarations -------------------- */\n\n");
1718 printf("#include <SystemConfiguration/SCSchemaDefinitions.h>\n\n");
1720 printf("/* -------------------- HeaderDoc comments -------------------- */\n\n\n");
1723 printf(" *\t@header SCSchemaDefinitionsPrivate\n");
1725 dump_names(gen_headerdoc_private_e
);
1727 printf("#endif\t/* 0 */\n\n\n");
1729 printf("/* -------------------- Schema declarations -------------------- */\n\n");
1730 dump_names(gen_hfile_private_e
);
1733 printf("#endif /* _SCSCHEMADEFINITIONSPRIVATE_H */\n");
1735 else if (strcmp(type
, "cfile") == 0) {
1737 printf(" * This file is automatically generated\n");
1738 printf(" * DO NOT EDIT!\n");
1741 printf("#include <Availability.h>\n");
1742 printf("#include <TargetConditionals.h>\n");
1743 printf("#include <CoreFoundation/CFString.h>\n");
1745 dump_names(gen_cfile_e
);