SCNetworkConfigurationInternal.h [plain text]
#ifndef _SCNETWORKCONFIGURATIONINTERNAL_H
#define _SCNETWORKCONFIGURATIONINTERNAL_H
#include <sys/cdefs.h>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFRuntime.h>
#include <SystemConfiguration/SystemConfiguration.h>
#include <SystemConfiguration/SCPreferencesPathKey.h>
#include <IOKit/IOKitLib.h>
#include "SCNetworkConfiguration.h"
typedef struct {
CFRuntimeBase cfBase;
CFStringRef setID;
SCPreferencesRef prefs;
} SCNetworkSetPrivate, *SCNetworkSetPrivateRef;
typedef struct {
CFRuntimeBase cfBase;
CFStringRef serviceID;
SCNetworkInterfaceRef interface;
SCPreferencesRef prefs;
} SCNetworkServicePrivate, *SCNetworkServicePrivateRef;
typedef struct {
CFRuntimeBase cfBase;
CFStringRef entityID;
SCNetworkServiceRef service;
} SCNetworkProtocolPrivate, *SCNetworkProtocolPrivateRef;
typedef struct {
CFRuntimeBase cfBase;
CFStringRef interface_type;
CFStringRef localized_name; CFStringRef localized_key;
CFStringRef localized_arg1;
CFStringRef localized_arg2;
SCNetworkInterfaceRef interface;
SCNetworkServiceRef service;
CFDictionaryRef unsaved;
CFStringRef entity_device; CFStringRef entity_hardware; CFStringRef entity_type; CFStringRef entity_subtype;
CFMutableArrayRef supported_interface_types;
CFMutableArrayRef supported_protocol_types;
CFStringRef address;
Boolean builtin;
CFStringRef location;
CFStringRef path;
Boolean supportsDeviceOnHold;
Boolean supportsBond;
Boolean supportsVLAN;
int sort_order;
} SCNetworkInterfacePrivate, *SCNetworkInterfacePrivateRef;
__BEGIN_DECLS
SCNetworkServicePrivateRef
__SCNetworkServiceCreatePrivate (CFAllocatorRef allocator,
CFStringRef serviceID,
SCNetworkInterfaceRef interface,
SCPreferencesRef prefs);
SCNetworkProtocolPrivateRef
__SCNetworkProtocolCreatePrivate (CFAllocatorRef allocator,
CFStringRef entityID,
SCNetworkServiceRef service);
Boolean
__SCNetworkProtocolIsValidType (CFStringRef protocolType);
SCNetworkInterfacePrivateRef
__SCNetworkInterfaceCreateCopy (CFAllocatorRef allocator,
SCNetworkInterfaceRef interface,
SCNetworkServiceRef service);
SCNetworkInterfacePrivateRef
__SCNetworkInterfaceCreatePrivate (CFAllocatorRef allocator,
SCNetworkInterfaceRef interface,
SCNetworkServiceRef service,
io_string_t path);
SCNetworkInterfaceRef
__SCNetworkInterfaceCreateWithEntity (CFAllocatorRef allocator,
CFDictionaryRef interface_entity,
SCNetworkServiceRef service);
CFArrayRef
__SCNetworkInterfaceCopyDeepConfiguration (SCNetworkInterfaceRef interface);
Boolean
__SCNetworkInterfaceSetConfiguration (SCNetworkInterfaceRef interface,
CFDictionaryRef config,
Boolean okToHold);
void
__SCNetworkInterfaceSetDeepConfiguration (SCNetworkInterfaceRef interface,
CFArrayRef configs);
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);
Boolean
__markInterfaceUp (int s,
CFStringRef interface);
__END_DECLS
#endif