comparison dstep/corefoundation/CFPropertyList.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 12, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.corefoundation.CFPropertyList;
8
9 import dstep.corefoundation.CFBase;
10 import dstep.corefoundation.CFData;
11 import dstep.corefoundation.CFStream;
12 import dstep.corefoundation.CFString;
13 import dstep.objc.bridge.Bridge;
14 import dstep.objc.objc : id;
15
16 alias uint CFPropertyListMutabilityOptions;
17 alias int CFPropertyListFormat;
18
19 enum
20 {
21 kCFPropertyListImmutable = 0,
22 kCFPropertyListMutableContainers,
23 kCFPropertyListMutableContainersAndLeaves
24 }
25
26 enum
27 {
28 kCFPropertyListOpenStepFormat = 1,
29 kCFPropertyListXMLFormat_v1_0 = 100,
30 kCFPropertyListBinaryFormat_v1_0 = 200
31 }
32
33 extern (C)
34 {
35 void* CFPropertyListCreateFromXMLData (CFAllocatorRef allocator, CFDataRef xmlData, uint mutabilityOption, CFStringRef* errorString);
36 CFDataRef CFPropertyListCreateXMLData (CFAllocatorRef allocator, void* propertyList);
37 void* CFPropertyListCreateDeepCopy (CFAllocatorRef allocator, void* propertyList, uint mutabilityOption);
38 ubyte CFPropertyListIsValid (void* plist, int format);
39 int CFPropertyListWriteToStream (void* propertyList, CFWriteStreamRef stream, int format, CFStringRef* errorString);
40 void* CFPropertyListCreateFromStream (CFAllocatorRef allocator, CFReadStreamRef stream, int streamLength, uint mutabilityOption, int* format, CFStringRef* errorString);
41 }