27#ifndef __COREFOUNDATION_CFPROPERTYLIST_H__
28#define __COREFOUNDATION_CFPROPERTYLIST_H__
30#include <CoreFoundation/CFBase.h>
31#include <CoreFoundation/CFData.h>
32#include <CoreFoundation/CFError.h>
33#include <CoreFoundation/CFStream.h>
40#if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST)
43 kCFPropertyListOpenStepFormat = 1,
44 kCFPropertyListXMLFormat_v1_0 = 100,
45 kCFPropertyListBinaryFormat_v1_0 = 200
46} CFPropertyListFormat;
51 kCFPropertyListImmutable = 0,
52 kCFPropertyListMutableContainers = 1,
53 kCFPropertyListMutableContainersAndLeaves = 2
54} CFPropertyListMutabilityOptions;
56#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
59 kCFPropertyListReadCorruptError = 3840,
60 kCFPropertyListReadUnknownVersionError = 3841,
61 kCFPropertyListReadStreamError = 3842,
62 kCFPropertyListWriteStreamError = 3851,
66CF_EXPORT CFPropertyListRef
68 CFPropertyListRef propertyList,
71#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
74 CFPropertyListRef propertyList,
78CF_EXPORT CFPropertyListRef
79CFPropertyListCreateWithData (
CFAllocatorRef allocator, CFDataRef data,
81 CFPropertyListFormat *format,
84CF_EXPORT CFPropertyListRef
86 CFReadStreamRef stream,
88 CFPropertyListFormat *format,
92CFPropertyListWrite (CFPropertyListRef propertyList, CFWriteStreamRef stream,
97#if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST)
99CFPropertyListIsValid (CFPropertyListRef plist, CFPropertyListFormat format);
103CF_EXPORT CFPropertyListRef
104CFPropertyListCreateFromXMLData (
CFAllocatorRef allocator, CFDataRef xmlData,
106 CFStringRef *errorString);
110 CFPropertyListRef propertyList);
112#if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST)
113CF_EXPORT CFPropertyListRef
115 CFReadStreamRef stream,
118 CFPropertyListFormat *format,
119 CFStringRef *errorString);
122CFPropertyListWriteToStream (CFPropertyListRef propertyList,
123 CFWriteStreamRef stream,
124 CFPropertyListFormat format,
125 CFStringRef *errorString);
unsigned long CFOptionFlags
Definition CFBase.h:163
signed long CFIndex
Definition CFBase.h:165
const struct __CFAllocator * CFAllocatorRef
A reference to a CFAllocator object.
Definition CFBase.h:301