26 #ifndef __objc_runtime_INCLUDE_GNU
27 #define __objc_runtime_INCLUDE_GNU
47 typedef struct objc_ivar *
Ivar;
96 #define _C_LNG_LNG 'q'
97 #define _C_ULNG_LNG 'Q'
100 #define _C_LNG_DBL 'D'
106 #define _C_CHARPTR '*'
109 #define _C_UNION_B '('
110 #define _C_UNION_E ')'
111 #define _C_STRUCT_B '{'
112 #define _C_STRUCT_E '}'
113 #define _C_VECTOR '!'
114 #define _C_COMPLEX 'j'
126 #define _C_BYCOPY 'O'
128 #define _C_ONEWAY 'V'
129 #define _C_GCINVISIBLE '|'
132 #define _F_CONST 0x01
135 #define _F_INOUT 0x03
136 #define _F_BYCOPY 0x04
137 #define _F_BYREF 0x08
138 #define _F_ONEWAY 0x10
139 #define _F_GCINVISIBLE 0x20
156 return object->class_pointer;
216 unsigned int *numberOfReturnedSelectors);
365 unsigned char log_2_of_alignment,
const char *type);
396 (
Class class_,
unsigned int *numberOfReturnedProperties);
680 const char *method_types);
691 const char *method_types);
762 size_t returnValueSize);
776 char *returnValue,
size_t returnValueSize);
850 BOOL instanceMethod);
869 unsigned int *numberOfReturnedMethods);
886 BOOL requiredProperty,
BOOL instanceProperty);
1031 const char* ivarname,
1133 unsigned int *align);
1135 unsigned int *offset,
1136 unsigned int *align,
objc_EXPORT Ivar class_getInstanceVariable(Class class_, const char *name)
objc_EXPORT int class_getVersion(Class class_)
struct objc_category * Category
Definition: runtime.h:65
objc_EXPORT const char * class_getIvarLayout(Class class_)
objc_EXPORT Property * protocol_copyPropertyList(Protocol *protocol, unsigned int *numberOfReturnedProperties)
objc_EXPORT const char * objc_skip_argspec(const char *type)
objc_EXPORT int objc_sizeof_type(const char *type)
#define Nil
Definition: objc.h:117
objc_EXPORT BOOL class_conformsToProtocol(Class class_, Protocol *protocol)
objc_EXPORT objc_get_unknown_class_handler objc_setGetUnknownClassHandler(objc_get_unknown_class_handler new_handler)
objc_EXPORT BOOL sel_isEqual(SEL first_selector, SEL second_selector)
objc_EXPORT Ivar object_getInstanceVariable(id object, const char *name, void **returnValue)
objc_EXPORT int objc_alignof_type(const char *type)
struct objc_property * Property
Definition: runtime.h:55
objc_EXPORT id object_dispose(id object)
objc_EXPORT Property protocol_getProperty(Protocol *protocol, const char *propertyName, BOOL requiredProperty, BOOL instanceProperty)
objc_EXPORT SEL sel_registerName(const char *name)
objc_EXPORT Ivar * class_copyIvarList(Class class_, unsigned int *numberOfReturnedIvars)
objc_EXPORT Class objc_getClass(const char *name)
objc_EXPORT const char * objc_skip_typespec(const char *type)
objc_EXPORT Property class_getProperty(Class class_, const char *propertyName)
struct objc_ivar * Ivar
Definition: runtime.h:47
objc_EXPORT Class objc_getMetaClass(const char *name)
id(* IMP)(id, SEL,...)
Definition: objc.h:106
struct objc_class * Class
Definition: objc.h:78
Definition: runtime.h:1119
objc_EXPORT BOOL protocol_isEqual(Protocol *protocol, Protocol *anotherProtocol)
objc_EXPORT void class_setWeakIvarLayout(Class class_, const char *layout)
Class(* objc_get_unknown_class_handler)(const char *class_name)
Definition: runtime.h:435
objc_EXPORT const char * property_getName(Property property)
objc_EXPORT Class objc_getRequiredClass(const char *name)
objc_EXPORT Method class_getInstanceMethod(Class class_, SEL selector)
objc_EXPORT void * objc_atomic_malloc(size_t size)
objc_EXPORT const char * objc_skip_offset(const char *type)
objc_EXPORT id object_getIvar(id object, Ivar variable)
objc_EXPORT void(* _objc_load_callback)(Class _class, struct objc_category *category)
Definition: runtime.h:919
struct objc_property * objc_property_t
Definition: runtime.h:56
objc_EXPORT const char * ivar_getTypeEncoding(Ivar variable)
objc_EXPORT void method_getArgumentType(Method method, unsigned int argumentNumber, char *returnValue, size_t returnValueSize)
static Class object_getClass(id object)
Definition: runtime.h:153
objc_EXPORT const char * sel_getName(SEL selector)
objc_EXPORT void class_setIvarLayout(Class class_, const char *layout)
objc_EXPORT unsigned int method_getNumberOfArguments(Method method)
objc_EXPORT const char * class_getWeakIvarLayout(Class class_)
objc_EXPORT const char * protocol_getName(Protocol *protocol)
objc_EXPORT struct objc_method_description * protocol_copyMethodDescriptionList(Protocol *protocol, BOOL requiredMethod, BOOL instanceMethod, unsigned int *numberOfReturnedMethods)
objc_EXPORT void objc_layout_structure_get_info(struct objc_struct_layout *layout, unsigned int *offset, unsigned int *align, const char **type)
objc_EXPORT const char * sel_getTypeEncoding(SEL selector)
objc_EXPORT Protocol ** class_copyProtocolList(Class class_, unsigned int *numberOfReturnedProtocols)
objc_EXPORT int objc_promoted_size(const char *type)
objc_EXPORT char * method_copyReturnType(Method method)
objc_EXPORT void objc_enumerationMutation(id collection)
objc_EXPORT void * objc_malloc(size_t size)
objc_EXPORT const char * property_getAttributes(Property property)
objc_EXPORT void * objc_realloc(void *mem, size_t size)
objc_EXPORT IMP class_replaceMethod(Class class_, SEL selector, IMP implementation, const char *method_types)
objc_EXPORT struct objc_method_description protocol_getMethodDescription(Protocol *protocol, SEL selector, BOOL requiredMethod, BOOL instanceMethod)
struct objc_method * Method
Definition: runtime.h:60
objc_EXPORT void method_exchangeImplementations(Method method_a, Method method_b)
unsigned int record_align
Definition: runtime.h:1125
objc_EXPORT const char * method_getTypeEncoding(Method method)
objc_EXPORT Method * class_copyMethodList(Class class_, unsigned int *numberOfReturnedMethods)
objc_EXPORT BOOL class_addProtocol(Class class_, Protocol *protocol)
objc_EXPORT Class object_setClass(id object, Class class_)
objc_EXPORT BOOL protocol_conformsToProtocol(Protocol *protocol, Protocol *anotherProtocol)
objc_EXPORT IMP class_getMethodImplementation(Class class_, SEL selector)
objc_EXPORT Protocol ** protocol_copyProtocolList(Protocol *protocol, unsigned int *numberOfReturnedProtocols)
objc_EXPORT void objc_setEnumerationMutationHandler(void(*handler)(id))
#define objc_EXPORT
Definition: objc-decls.h:41
objc_EXPORT void * objc_calloc(size_t nelem, size_t size)
objc_EXPORT struct objc_method_description * method_getDescription(Method method)
objc_EXPORT void method_getReturnType(Method method, char *returnValue, size_t returnValueSize)
objc_EXPORT void objc_free(void *mem)
const char * original_type
Definition: runtime.h:1121
objc_EXPORT SEL sel_getTypedSelector(const char *name)
objc_EXPORT size_t class_getInstanceSize(Class class_)
objc_EXPORT Method class_getClassMethod(Class class_, SEL selector)
objc_EXPORT id class_createInstance(Class class_, size_t extraBytes)
objc_EXPORT const char * ivar_getName(Ivar variable)
objc_EXPORT void objc_disposeClassPair(Class class_)
objc_EXPORT Protocol * objc_getProtocol(const char *name)
objc_EXPORT const char * objc_skip_type_qualifiers(const char *type)
objc_EXPORT SEL method_getName(Method method)
objc_EXPORT SEL sel_getUid(const char *name)
objc_EXPORT Ivar class_getClassVariable(Class class_, const char *name)
objc_EXPORT SEL * sel_copyTypedSelectorList(const char *name, unsigned int *numberOfReturnedSelectors)
objc_EXPORT void objc_registerClassPair(Class class_)
objc_EXPORT const char * object_getClassName(id object)
objc_EXPORT void objc_layout_structure(const char *type, struct objc_struct_layout *layout)
objc_EXPORT const char * class_getName(Class class_)
objc_EXPORT void class_ivar_set_gcinvisible(Class _class, const char *ivarname, BOOL gcInvisible)
SEL name
Definition: runtime.h:79
objc_EXPORT Class class_getSuperclass(Class class_)
#define nil
Definition: objc.h:110
objc_EXPORT Ivar object_setInstanceVariable(id object, const char *name, void *newValue)
objc_EXPORT Class objc_allocateClassPair(Class super_class, const char *class_name, size_t extraBytes)
objc_EXPORT BOOL class_addIvar(Class class_, const char *ivar_name, size_t size, unsigned char log_2_of_alignment, const char *type)
objc_EXPORT unsigned objc_get_type_qualifiers(const char *type)
const char * type
Definition: runtime.h:1122
__PTRDIFF_TYPE__ ptrdiff_t
Definition: stddef.h:147
objc_EXPORT Property * class_copyPropertyList(Class class_, unsigned int *numberOfReturnedProperties)
objc_EXPORT void * object_getIndexedIvars(id object)
unsigned int record_size
Definition: runtime.h:1124
objc_EXPORT char * method_copyArgumentType(Method method, unsigned int argumentNumber)
objc_EXPORT Protocol ** objc_copyProtocolList(unsigned int *numberOfReturnedProtocols)
objc_EXPORT void class_setVersion(Class class_, int version)
unsigned char BOOL
Definition: objc.h:55
objc_EXPORT void object_setIvar(id object, Ivar variable, id value)
objc_EXPORT Class objc_lookUpClass(const char *name)
objc_EXPORT int objc_getClassList(Class *returnValue, int maxNumberOfClassesToReturn)
Definition: Protocol.h:35
objc_EXPORT ptrdiff_t ivar_getOffset(Ivar variable)
objc_EXPORT IMP method_getImplementation(Method method)
const char * prev_type
Definition: runtime.h:1123
objc_EXPORT IMP method_setImplementation(Method method, IMP implementation)
objc_EXPORT BOOL objc_layout_structure_next_member(struct objc_struct_layout *layout)
objc_EXPORT BOOL class_respondsToSelector(Class class_, SEL selector)
objc_EXPORT int objc_aligned_size(const char *type)
objc_EXPORT BOOL class_addMethod(Class class_, SEL selector, IMP implementation, const char *method_types)
objc_EXPORT SEL sel_registerTypedName(const char *name, const char *type)
objc_EXPORT BOOL class_isMetaClass(Class class_)
objc_EXPORT id object_copy(id object, size_t extraBytes)
char * types
Definition: runtime.h:80
objc_EXPORT void objc_layout_finish_structure(struct objc_struct_layout *layout, unsigned int *size, unsigned int *align)