1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
use crate;
use ;
/// A [`CFAllocator`](super::CFAllocator) function callback that retains the
/// given data.
///
/// See [documentation](https://developer.apple.com/documentation/corefoundation/cfallocatorretaincallback?language=objc).
pub type CFAllocatorRetainCallBack = unsafe extern "C" fn ;
// typedef const void *(*CFAllocatorRetainCallBack)(const void *info)
/// A [`CFAllocator`](super::CFAllocator) function callback that releases the
/// given data.
///
/// See [documentation](https://developer.apple.com/documentation/corefoundation/cfallocatorreleasecallback?language=objc).
pub type CFAllocatorReleaseCallBack = unsafe extern "C" fn;
/// A [`CFAllocator`](super::CFAllocator) function callback that provides a
/// description of the specified data.
///
/// See [documentation](https://developer.apple.com/documentation/corefoundation/cfallocatorcopydescriptioncallback?language=objc).
pub type CFAllocatorCopyDescriptionCallBack =
unsafe extern "C" fn ; // TODO: Return type `Arc<CFString>`.
/// A [`CFAllocator`](super::CFAllocator) function callback that allocates
/// memory of a requested size.
///
/// See [documentation](https://developer.apple.com/documentation/corefoundation/cfallocatorallocatecallback?language=objc).
pub type CFAllocatorAllocateCallBack = unsafe extern "C" fn ;
/// A [`CFAllocator`](super::CFAllocator) function callback that reallocates
/// memory of a requested size for an existing block of memory.
///
/// See [documentation](https://developer.apple.com/documentation/corefoundation/cfallocatorreallocatecallback?language=objc).
pub type CFAllocatorReallocateCallBack = unsafe extern "C" fn ;
/// A [`CFAllocator`](super::CFAllocator) function callback that deallocates a
/// block of memory.
///
/// See [documentation](https://developer.apple.com/documentation/corefoundation/cfallocatordeallocatecallback?language=objc).
pub type CFAllocatorDeallocateCallBack =
unsafe extern "C" fn;
/// A [`CFAllocator`](super::CFAllocator) function callback that gives the size
/// of memory likely to be allocated, given a certain request.
///
/// See [documentation](https://developer.apple.com/documentation/corefoundation/cfallocatorpreferredsizecallback?language=objc).
pub type CFAllocatorPreferredSizeCallBack =
unsafe extern "C" fn ;