ADC Home > Reference Library > Reference > Networking > System Configuration Framework Reference
|
SCDynamicStoreKey |
Includes: | <sys/cdefs.h> <CoreFoundation/CoreFoundation.h> |
The SCDynamicStoreKey API provides convenience functions that an application can use to create a correctly formatted dynamic store key for accessing specific items in the dynamic store. An application can then use the resulting string in any function that requires a dynamic store key.
SCDynamicStoreKeyCreate |
CFStringRef SCDynamicStoreKeyCreate ( CFAllocatorRef allocator, CFStringRef fmt, ... );
allocator
fmt
Returns a string containing the formatted key.
Creates a dynamic store key using the given format.
SCDynamicStoreKeyCreateComputerName |
CFStringRef SCDynamicStoreKeyCreateComputerName ( CFAllocatorRef allocator );
allocator
Returns a notification string for the current computer or host name.
Creates a key that can be used in conjuntion with SCDynamicStoreSetNotificationKeys function to receive notifications when the current computer name changes.
SCDynamicStoreKeyCreateConsoleUser |
CFStringRef SCDynamicStoreKeyCreateConsoleUser ( CFAllocatorRef allocator );
allocator
Returns a notification string for the current console user.
Creates a key that can be used in conjunction with SCDynamicStoreSetNotificationKeys function to receive notifications when the current console user changes.
SCDynamicStoreKeyCreateHostNames |
CFStringRef SCDynamicStoreKeyCreateHostNames ( CFAllocatorRef allocator );
allocator
Returns a notification string for the HostNames entity.
Creates a key that can be used in conjunction with the SCDynamicStoreSetNotificationKeys function to receive notifications when the HostNames entity changes. The HostNames entity includes the local host name.
SCDynamicStoreKeyCreateLocation |
CFStringRef SCDynamicStoreKeyCreateLocation ( CFAllocatorRef allocator );
allocator
Returns a notification string for the current location identifier.
Creates a key that can be used in conjunction with the SCDynamicStoreSetNotificationKeys function to receive notifications when the location identifier changes.
SCDynamicStoreKeyCreateNetworkGlobalEntity |
CFStringRef SCDynamicStoreKeyCreateNetworkGlobalEntity ( CFAllocatorRef allocator, CFStringRef domain, CFStringRef entity );
allocator
domain
entity
Returns a string containing the formatted key.
Creates a dynamic store key that can be used to access a specific global (as opposed to a per-service or per-interface) network configuration entity.
SCDynamicStoreKeyCreateNetworkInterface |
CFStringRef SCDynamicStoreKeyCreateNetworkInterface ( CFAllocatorRef allocator, CFStringRef domain );
allocator
domain
Returns a string containing the formatted key.
Creates a dynamic store key that can be used to access the network interface configuration information stored in the dynamic store.
SCDynamicStoreKeyCreateNetworkInterfaceEntity |
CFStringRef SCDynamicStoreKeyCreateNetworkInterfaceEntity ( CFAllocatorRef allocator, CFStringRef domain, CFStringRef ifname, CFStringRef entity );
allocator
domain
ifname
entity
Returns a string containing the formatted key.
Creates a dynamic store key that can be used to access the per-interface network configuration information stored in the dynamic store.
SCDynamicStoreKeyCreateNetworkServiceEntity |
CFStringRef SCDynamicStoreKeyCreateNetworkServiceEntity ( CFAllocatorRef allocator, CFStringRef domain, CFStringRef serviceID, CFStringRef entity );
allocator
domain
serviceID
entity
Returns a string containing the formatted key.
Creates a dynamic store key that can be used to access the per-service network configuration information stored in the dynamic store.
SCDynamicStoreKeyCreateProxies |
CFStringRef SCDynamicStoreKeyCreateProxies ( CFAllocatorRef allocator );
allocator
Returns a notification string for the current proxy settings.
Creates a key that can be used in conjunction with the SCDynamicStoreSetNotificationKeys function to receive notifications when the current network proxy settings (such as HTTP or FTP) are changed.
|