#ifndef _S_MYCFUTIL_H
#define _S_MYCFUTIL_H
#include <CoreFoundation/CFString.h>
#include <mach/mach.h>
Boolean
my_CFEqual(CFTypeRef val1, CFTypeRef val2);
void
my_CFRelease(void * t);
char *
my_CFStringToCString(CFStringRef cfstr, CFStringEncoding encoding);
CFStringRef
my_CFStringCreateWithCString(const char * cstr);
CFPropertyListRef
my_CFPropertyListCreateFromFile(const char * filename);
int
my_CFPropertyListWriteFile(CFPropertyListRef plist, const char * filename);
Boolean
my_CFDictionaryGetBooleanValue(CFDictionaryRef properties, CFStringRef propname,
Boolean def_value);
CFPropertyListRef
my_CFPropertyListCreateWithBytePtrAndLength(const void * data, int data_len);
CFStringRef
my_CFUUIDStringCreate(CFAllocatorRef alloc);
CFStringRef
my_CFStringCreateWithData(CFDataRef data);
CFDataRef
my_CFDataCreateWithString(CFStringRef str);
void
my_FieldSetRetainedCFType(void * field_p, const void * v);
CFStringRef
my_CFPropertyListCopyAsXMLString(CFPropertyListRef plist);
#define STRING_APPEND(__string, __format, ...) \
CFStringAppendFormat(__string, NULL, \
CFSTR(__format), \
## __VA_ARGS__)
vm_address_t
my_CFPropertyListCreateVMData(CFPropertyListRef plist,
mach_msg_type_number_t * ret_data_len);
CFStringRef
my_CFStringCopyComponent(CFStringRef path, CFStringRef separator,
CFIndex component_index);
#endif