|
GNUstep CoreBase Library
0.2
|
Data Structures | |
| struct | CFRuntimeClass |
| struct | CFRuntimeBase |
| struct | __CFRuntimeBase._flags |
Macros | |
| #define | INIT_CFRUNTIME_BASE(...) { 0, 0, { 1, 0, 0 } } |
| #define | CF_HAS_INIT_STATIC_INSTANCE 1 |
Enumerations | |
| enum | { _kCFRuntimeNotATypeID = 0 } |
| enum | { _kCFRuntimeScannedObject = (1UL<<0) , _kCFRuntimeResourcefulObject = (1UL<<2) , _kCFRuntimeCustomRefCount = (1UL<<3) } |
Functions | |
| CFTypeID | _CFRuntimeRegisterClass (const CFRuntimeClass *const cls) |
| const CFRuntimeClass * | _CFRuntimeGetClassWithTypeID (CFTypeID typeID) |
| void | _CFRuntimeUnregisterClassWithTypeID (CFTypeID typeID) |
| CFTypeRef | _CFRuntimeCreateInstance (CFAllocatorRef allocator, CFTypeID typeID, CFIndex extraBytes, unsigned char *category) |
| void | _CFRuntimeSetInstanceTypeID (CFTypeRef cf, CFTypeID typeID) |
| void | _CFRuntimeInitStaticInstance (void *memory, CFTypeID typeID) |
| struct __CFRuntimeBase |
| Data Fields | ||
|---|---|---|
| void * | _isa |
The Objective-C class for this object. Used for the Objective-C bridge. For internal use only. |
| SInt16 | _typeID | |
| struct __CFRuntimeBase | _flags | |
| CFTypeID _CFRuntimeRegisterClass | ( | const CFRuntimeClass *const | cls | ) |
Registers a new CF class with the runtime. This function locks the class table and so is thread-safe.
| cls | A constant CFRuntimeClass. |
| const CFRuntimeClass* _CFRuntimeGetClassWithTypeID | ( | CFTypeID | typeID | ) |
Gets the class structure associated with the typeID.
| typeID | A CFTypeID to look up. |
| void _CFRuntimeUnregisterClassWithTypeID | ( | CFTypeID | typeID | ) |
Unregisters a class.
| typeID | The CFTypeID to unregister. |
| CFTypeRef _CFRuntimeCreateInstance | ( | CFAllocatorRef | allocator, |
| CFTypeID | typeID, | ||
| CFIndex | extraBytes, | ||
| unsigned char * | category | ||
| ) |
Creates a new CF type instance.
| allocator | The CFAllocatorRef to use or NULL for the default allocator. |
| typeID | The CFTypeID of the class. |
| extraBytes | The amount of extra bytes over a CFRuntimeBase type needed by this instance. |
| category | Currently unused, use NULL. |
| void _CFRuntimeSetInstanceTypeID | ( | CFTypeRef | cf, |
| CFTypeID | typeID | ||
| ) |
Set the CFTypeID for an instance.
| cf | The object instance to set the type ID. |
| typeID | The new CFTypeID. |
| void _CFRuntimeInitStaticInstance | ( | void * | memory, |
| CFTypeID | typeID | ||
| ) |
Initializes a static CF object instance.
| memory | A pointer to a static CF object instance. |
| typeID | The CFTypeID of the instance. |