SCNetworkConfigurationInternal.h [plain text]
#ifndef _SCNETWORKCONFIGURATIONINTERNAL_H
#define _SCNETWORKCONFIGURATIONINTERNAL_H
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFRuntime.h>
#include <SystemConfiguration/SystemConfiguration.h>
#include <SystemConfiguration/SCPreferencesPathKey.h>
#include <IOKit/IOKitLib.h>
typedef struct {
CFRuntimeBase cfBase;
CFStringRef setID;
SCPreferencesRef prefs;
CFStringRef name;
Boolean established;
} SCNetworkSetPrivate, *SCNetworkSetPrivateRef;
typedef struct {
CFRuntimeBase cfBase;
CFStringRef serviceID;
SCNetworkInterfaceRef interface;
SCPreferencesRef prefs;
SCDynamicStoreRef store;
CFStringRef name;
} SCNetworkServicePrivate, *SCNetworkServicePrivateRef;
typedef struct {
CFRuntimeBase cfBase;
CFStringRef entityID;
SCNetworkServiceRef service;
} SCNetworkProtocolPrivate, *SCNetworkProtocolPrivateRef;
typedef struct {
CFRuntimeBase cfBase;
CFStringRef interface_type;
CFStringRef name;
CFStringRef localized_name; CFStringRef localized_key;
CFStringRef localized_arg1;
CFStringRef localized_arg2;
SCNetworkInterfaceRef interface;
SCPreferencesRef prefs;
CFStringRef serviceID;
CFMutableDictionaryRef unsaved;
CFStringRef entity_device; CFStringRef entity_device_unique; CFStringRef entity_type; CFStringRef entity_subtype;
CFMutableArrayRef supported_interface_types;
CFMutableArrayRef supported_protocol_types;
CFDataRef address;
CFStringRef addressString;
Boolean builtin;
CFStringRef configurationAction;
Boolean hidden;
CFStringRef location;
CFStringRef path;
CFMutableDictionaryRef overrides;
Boolean modemIsV92;
CFNumberRef type;
CFNumberRef unit;
struct {
CFStringRef name;
CFNumberRef vid;
CFNumberRef pid;
} usb;
int sort_order;
Boolean supportsBond;
struct {
CFArrayRef interfaces;
CFDictionaryRef options;
CFNumberRef mode;
} bond;
Boolean supportsBridge;
struct {
CFArrayRef interfaces;
CFDictionaryRef options;
} bridge;
Boolean supportsVLAN;
struct {
SCNetworkInterfaceRef interface;
CFNumberRef tag; CFDictionaryRef options;
} vlan;
} SCNetworkInterfacePrivate, *SCNetworkInterfacePrivateRef;
__BEGIN_DECLS
#pragma mark -
#pragma mark SCNetworkInterface configuration (internal)
CFArrayRef
__SCNetworkInterfaceCopyAll_IONetworkInterface (void);
SCNetworkInterfacePrivateRef
__SCNetworkInterfaceCreateCopy (CFAllocatorRef allocator,
SCNetworkInterfaceRef interface,
SCPreferencesRef prefs,
CFStringRef serviceID);
SCNetworkInterfacePrivateRef
__SCNetworkInterfaceCreatePrivate (CFAllocatorRef allocator,
SCNetworkInterfaceRef interface,
SCPreferencesRef prefs,
CFStringRef serviceID,
io_string_t path);
SCNetworkInterfacePrivateRef
_SCBondInterfaceCreatePrivate (CFAllocatorRef allocator,
CFStringRef bond_if);
SCNetworkInterfacePrivateRef
_SCBridgeInterfaceCreatePrivate (CFAllocatorRef allocator,
CFStringRef bridge_if);
SCNetworkInterfacePrivateRef
_SCVLANInterfaceCreatePrivate (CFAllocatorRef allocator,
CFStringRef vlan_if);
CFDictionaryRef
__SCNetworkInterfaceCopyInterfaceEntity (SCNetworkInterfaceRef interface);
CFArrayRef
__SCNetworkInterfaceCopyDeepConfiguration (SCNetworkSetRef set,
SCNetworkInterfaceRef interface);
#if !TARGET_OS_EMBEDDED && !TARGET_IPHONE_SIMULATOR
CFStringRef
__SCNetworkInterfaceCopyXLocalizedDisplayName (SCNetworkInterfaceRef interface);
CFStringRef
__SCNetworkInterfaceCopyXNonLocalizedDisplayName(SCNetworkInterfaceRef interface);
#endif // !TARGET_OS_EMBEDDED && !TARGET_IPHONE_SIMULATOR
int
__SCNetworkInterfaceCreateCapabilities (SCNetworkInterfaceRef interface,
int capability_base,
CFDictionaryRef capability_options);
int
__SCNetworkInterfaceCreateMediaOptions (SCNetworkInterfaceRef interface,
CFDictionaryRef media_options);
CFStringRef
__SCNetworkInterfaceGetDefaultConfigurationType (SCNetworkInterfaceRef interface);
CFStringRef
__SCNetworkInterfaceGetNonLocalizedDisplayName (SCNetworkInterfaceRef interface);
Boolean
__SCNetworkInterfaceIsMember (SCPreferencesRef prefs,
SCNetworkInterfaceRef interface);
Boolean
__SCNetworkInterfaceIsValidExtendedConfigurationType
(SCNetworkInterfaceRef interface,
CFStringRef extendedType,
Boolean requirePerInterface);
CFDictionaryRef
__SCNetworkInterfaceGetTemplateOverrides (SCNetworkInterfaceRef interface,
CFStringRef overrideType);
int
__SCNetworkInterfaceOrder (SCNetworkInterfaceRef interface);
Boolean
__SCNetworkInterfaceSetConfiguration (SCNetworkInterfaceRef interface,
CFStringRef extendedType,
CFDictionaryRef config,
Boolean okToHold);
void
__SCNetworkInterfaceSetDeepConfiguration (SCNetworkSetRef set,
SCNetworkInterfaceRef interface,
CFArrayRef configs);
Boolean
__SCNetworkInterfaceSupportsVLAN (CFStringRef bsd_if);
void
__SCBondInterfaceListCollectMembers (CFArrayRef interfaces,
CFMutableSetRef set);
void
__SCBridgeInterfaceListCollectMembers (CFArrayRef interfaces,
CFMutableSetRef set);
#pragma mark -
#pragma mark SCNetworkProtocol configuration (internal)
SCNetworkProtocolPrivateRef
__SCNetworkProtocolCreatePrivate (CFAllocatorRef allocator,
CFStringRef entityID,
SCNetworkServiceRef service);
Boolean
__SCNetworkProtocolIsValidType (CFStringRef protocolType);
#pragma mark -
#pragma mark SCNetworkService configuration (internal)
CFArrayRef
__SCNetworkServiceCopyAllEnabled (SCPreferencesRef prefs);
SCNetworkServicePrivateRef
__SCNetworkServiceCreatePrivate (CFAllocatorRef allocator,
SCPreferencesRef prefs,
CFStringRef serviceID,
SCNetworkInterfaceRef interface);
Boolean
__SCNetworkServiceExistsForInterface (CFArrayRef services,
SCNetworkInterfaceRef interface);
CFStringRef
__SCNetworkServiceNextName (SCNetworkServiceRef service);
#pragma mark -
#pragma mark SCNetworkSet configuration (internal)
#pragma mark -
#pragma mark Miscellaneous (internal)
CFDictionaryRef
__copyInterfaceTemplate (CFStringRef interfaceType,
CFStringRef childInterfaceType);
CFDictionaryRef
__copyProtocolTemplate (CFStringRef interfaceType,
CFStringRef childInterfaceType,
CFStringRef protocolType);
CFDictionaryRef
__getPrefsConfiguration (SCPreferencesRef prefs,
CFStringRef path);
Boolean
__setPrefsConfiguration (SCPreferencesRef prefs,
CFStringRef path,
CFDictionaryRef config,
Boolean keepInactive);
Boolean
__getPrefsEnabled (SCPreferencesRef prefs,
CFStringRef path);
Boolean
__setPrefsEnabled (SCPreferencesRef prefs,
CFStringRef path,
Boolean enabled);
Boolean
__createInterface (int s,
CFStringRef interface);
Boolean
__destroyInterface (int s,
CFStringRef interface);
CFStringRef
__SCPreferencesPathCreateUniqueChild_WithMoreSCFCompatibility
(SCPreferencesRef prefs,
CFStringRef prefix);
Boolean
__extract_password (SCPreferencesRef prefs,
CFDictionaryRef config,
CFStringRef passwordKey,
CFStringRef encryptionKey,
CFStringRef encryptionKeyChainValue,
CFStringRef unique_id,
CFDataRef *password);
Boolean
__remove_password (SCPreferencesRef prefs,
CFDictionaryRef config,
CFStringRef passwordKey,
CFStringRef encryptionKey,
CFStringRef encryptionKeyChainValue,
CFStringRef unique_id,
CFDictionaryRef *newConfig);
__END_DECLS
#endif