Mercurial > projects > dstep
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dstep/corefoundation/CFPropertyList.d Sat Aug 01 15:03:28 2009 +0200 @@ -0,0 +1,41 @@ +/** + * Copyright: Copyright (c) 2009 Jacob Carlborg. + * Authors: Jacob Carlborg + * Version: Initial created: Jul 12, 2009 + * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) + */ +module dstep.corefoundation.CFPropertyList; + +import dstep.corefoundation.CFBase; +import dstep.corefoundation.CFData; +import dstep.corefoundation.CFStream; +import dstep.corefoundation.CFString; +import dstep.objc.bridge.Bridge; +import dstep.objc.objc : id; + +alias uint CFPropertyListMutabilityOptions; +alias int CFPropertyListFormat; + +enum +{ + kCFPropertyListImmutable = 0, + kCFPropertyListMutableContainers, + kCFPropertyListMutableContainersAndLeaves +} + +enum +{ + kCFPropertyListOpenStepFormat = 1, + kCFPropertyListXMLFormat_v1_0 = 100, + kCFPropertyListBinaryFormat_v1_0 = 200 +} + +extern (C) +{ + void* CFPropertyListCreateFromXMLData (CFAllocatorRef allocator, CFDataRef xmlData, uint mutabilityOption, CFStringRef* errorString); + CFDataRef CFPropertyListCreateXMLData (CFAllocatorRef allocator, void* propertyList); + void* CFPropertyListCreateDeepCopy (CFAllocatorRef allocator, void* propertyList, uint mutabilityOption); + ubyte CFPropertyListIsValid (void* plist, int format); + int CFPropertyListWriteToStream (void* propertyList, CFWriteStreamRef stream, int format, CFStringRef* errorString); + void* CFPropertyListCreateFromStream (CFAllocatorRef allocator, CFReadStreamRef stream, int streamLength, uint mutabilityOption, int* format, CFStringRef* errorString); +} \ No newline at end of file