this repo has no description
1#include "DADissenter.h"
2#include <CoreFoundation/CFRuntime.h>
3
4struct _DADissenter
5{
6 CFRuntimeBase _parent;
7 const CFArrayCallBacks *_callBacks;
8};
9
10static CFTypeID _kDADissenterTypeID = 0;
11static void DADissenterFinalize(CFTypeRef cf);
12static Boolean DADissenterEqual(CFTypeRef cf1, CFTypeRef cf2);
13static CFHashCode DADissenterHash(CFTypeRef cf);
14static DADissenterRef DADissenterCreateCopy (CFAllocatorRef allocator, DADissenterRef disk);
15
16static CFRuntimeClass DADissenterClass = {
17 0,
18 "DADissenter",
19 NULL,
20 (CFTypeRef (*)(CFAllocatorRef, CFTypeRef)) DADissenterCreateCopy,
21 DADissenterFinalize,
22 DADissenterEqual,
23 DADissenterHash,
24 NULL,
25 NULL
26};
27
28__attribute__((constructor))
29void
30DADissenterInitialize (void)
31{
32 _kDADissenterTypeID = _CFRuntimeRegisterClass (&DADissenterClass);
33}
34
35#define DADISSENTER_SIZE sizeof(struct _DADissenter) - sizeof(CFRuntimeBase)
36
37static void
38DADissenterFinalize (CFTypeRef cf)
39{
40}
41
42static Boolean
43DADissenterEqual (CFTypeRef cf1, CFTypeRef cf2)
44{
45 return 0;
46}
47
48static CFHashCode
49DADissenterHash (CFTypeRef cf)
50{
51 return 0;
52}
53
54static DADissenterRef
55DADissenterCreateCopy (CFAllocatorRef allocator, DADissenterRef disk)
56{
57 return (DADissenterRef) CFRetain(disk);
58}
59
60CFTypeID DADissenterGetTypeID(void)
61{
62 return _kDADissenterTypeID;
63}
64
65DADissenterRef DADissenterCreate(CFAllocatorRef allocator, DAReturn status, CFStringRef string)
66{
67 DADissenterRef new;
68
69 new = (DADissenterRef) _CFRuntimeCreateInstance (allocator,
70 _kDADissenterTypeID,
71 DADISSENTER_SIZE, 0);
72
73 return new;
74}
75
76DAReturn DADissenterGetStatus(DADissenterRef dissenter)
77{
78 return 0;
79}
80
81CFStringRef DADissenterGetStatusString(DADissenterRef dissenter)
82{
83 return CFSTR("dummy");
84}