4 // Copyright (C) 2005, 2006, 2007, Apple Inc. All rights reserved.
7 #import <CoreGraphics/CoreGraphics.h>
15 extern const CFArrayCallBacks WKCollectionArrayCallBacks
;
16 extern const CFSetCallBacks WKCollectionSetCallBacks
;
19 typedef void(*WKDeallocCallback
)(WKObjectRef object
);
21 typedef struct _WKClassInfo WKClassInfo
;
25 const WKClassInfo
*parent
;
27 WKDeallocCallback dealloc
;
30 extern WKClassInfo WKObjectClass
;
34 unsigned referenceCount
;
35 WKClassInfo
*classInfo
;
38 const void *WKCreateObjectWithSize (size_t size
, WKClassInfo
*info
);
39 const void *WKRetain(const void *object
);
40 void WKRelease(const void *object
);
42 const void *WKCollectionRetain (CFAllocatorRef allocator
, const void *value
);
43 void WKCollectionRelease (CFAllocatorRef allocator
, const void *value
);
45 void WKReportError(const char *file
, int line
, const char *function
, const char *format
, ...);
46 #define WKError(formatAndArgs...) WKReportError(__FILE__, __LINE__, __PRETTY_FUNCTION__, formatAndArgs)
48 CFIndex
WKArrayIndexOfValue (CFArrayRef array
, const void *value
);
50 WKClassInfo
*WKGetClassInfo (WKObjectRef object
);