1/* 2 * Copyright (c) 1998-2013 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 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 11 * file. 12 * 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. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23 24#ifndef __DISKARBITRATIOND_DABASE__ 25#define __DISKARBITRATIOND_DABASE__ 26 27#include <CoreFoundation/CoreFoundation.h> 28#include <IOKit/IOKitLib.h> 29#include <SystemConfiguration/SystemConfiguration.h> 30 31#ifdef __cplusplus 32extern "C" { 33#endif /* __cplusplus */ 34 35#define ___kCFUUIDNull CFUUIDGetConstantUUIDWithBytes( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) 36 37#define ___ATTR_INVISIBLE 0x4000 38 39#define ___EDIRTY EILSEQ 40 41#define ___PREFS_DEFAULT_DIR "/Library/Preferences/SystemConfiguration" 42 43typedef uint16_t ___attr_t; 44 45typedef char ___io_path_t[1024]; 46 47__private_extern__ int ___chattr( const char * path, ___attr_t attr, ___attr_t noattr ); 48__private_extern__ int ___isautofs( const char * path ); 49__private_extern__ int ___mkdir( const char * path, mode_t mode ); 50__private_extern__ void ___vproc_transaction_begin( void ); 51__private_extern__ void ___vproc_transaction_end( void ); 52__private_extern__ const void * ___CFArrayGetValue( CFArrayRef array, const void * value ); 53__private_extern__ void ___CFArrayIntersect( CFMutableArrayRef array1, CFArrayRef array2 ); 54__private_extern__ CFStringRef ___CFBundleCopyLocalizedStringInDirectory( CFURLRef bundleURL, CFStringRef key, CFStringRef value, CFStringRef table ); 55__private_extern__ CFURLRef ___CFBundleCopyResourceURLInDirectory( CFURLRef bundleURL, CFStringRef resourcePath ); 56__private_extern__ CFDataRef ___CFDataCreateFromString( CFAllocatorRef allocator, CFStringRef string ); 57__private_extern__ CFDictionaryRef ___CFDictionaryCreateFromXMLString( CFAllocatorRef allocator, CFStringRef string ); 58__private_extern__ const void * ___CFDictionaryGetAnyValue( CFDictionaryRef dictionary ); 59__private_extern__ char * ___CFStringCreateCStringWithFormatAndArguments( const char * format, va_list arguments ); 60__private_extern__ Boolean ___CFStringGetCString( CFStringRef string, char * buffer, CFIndex length ); 61__private_extern__ void ___CFStringInsertFormat( CFMutableStringRef string, CFIndex index, CFStringRef format, ... ); 62__private_extern__ void ___CFStringInsertFormatAndArguments( CFMutableStringRef string, CFIndex index, CFStringRef format, va_list arguments ); 63__private_extern__ void ___CFStringPad( CFMutableStringRef string, CFStringRef pad, CFIndex length, CFIndex index ); 64__private_extern__ CFUUIDRef ___CFUUIDCreateFromName( CFAllocatorRef allocator, CFUUIDRef space, CFDataRef name ); 65__private_extern__ CFUUIDRef ___CFUUIDCreateFromString( CFAllocatorRef allocator, CFStringRef string ); 66__private_extern__ CFStringRef ___CFURLCopyRawDeviceFileSystemPath( CFURLRef url, CFURLPathStyle pathStyle ); 67__private_extern__ kern_return_t ___IORegistryEntryGetPath( io_registry_entry_t entry, const io_name_t plane, ___io_path_t path ); 68__private_extern__ CFArrayRef ___SCDynamicStoreCopyConsoleInformation( SCDynamicStoreRef store ); 69__private_extern__ CFStringRef ___SCDynamicStoreCopyConsoleUser( SCDynamicStoreRef store, uid_t * uid, gid_t * gid ); 70 71#ifdef __cplusplus 72} 73#endif /* __cplusplus */ 74 75#endif /* !__DISKARBITRATIOND_DABASE__ */ 76