]> git.saurik.com Git - cycript.git/blob - Bridge.def.in
Also use CXType walker to for function prototypes.
[cycript.git] / Bridge.def.in
1 IMP|0"(typedef void (*)())"
2
3 malloc|0"*(typedef void*(*)(unsigned long int))(dlsym(RTLD_DEFAULT,'malloc'))"
4 free|0"*(typedef void(*)(void*))(dlsym(RTLD_DEFAULT,'free'))"
5
6 class_addIvar|0"*(typedef bool(*)(Class,const char*,unsigned long int,unsigned char,const char*))(dlsym(RTLD_DEFAULT,'class_addIvar'))"
7 class_addMethod|0"*(typedef bool(*)(Class,SEL,IMP,const char*))(dlsym(RTLD_DEFAULT,'class_addMethod'))"
8 class_addProtocol|0"*(typedef bool(*)(Class,id))(dlsym(RTLD_DEFAULT,'class_addProtocol'))"
9 class_conformsToProtocol|0"*(typedef bool(*)(Class,id))(dlsym(RTLD_DEFAULT,'class_conformsToProtocol'))"
10 class_copyIvarList|0"*(typedef struct objc_ivar**(*)(Class,unsigned int*))(dlsym(RTLD_DEFAULT,'class_copyIvarList'))"
11 class_copyMethodList|0"*(typedef struct objc_method**(*)(Class,unsigned int*))(dlsym(RTLD_DEFAULT,'class_copyMethodList'))"
12 class_copyPropertyList|0"*(typedef struct objc_property**(*)(Class,unsigned int*))(dlsym(RTLD_DEFAULT,'class_copyPropertyList'))"
13 class_copyProtocolList|0"*(typedef id*(*)(Class,unsigned int*))(dlsym(RTLD_DEFAULT,'class_copyProtocolList'))"
14 class_createInstance|0"*(typedef id(*)(Class,unsigned long int))(dlsym(RTLD_DEFAULT,'class_createInstance'))"
15 class_getClassMethod|0"*(typedef struct objc_method*(*)(Class,SEL))(dlsym(RTLD_DEFAULT,'class_getClassMethod'))"
16 class_getClassVariable|0"*(typedef struct objc_ivar*(*)(Class,const char*))(dlsym(RTLD_DEFAULT,'class_getClassVariable'))"
17 class_getInstanceMethod|0"*(typedef struct objc_method*(*)(Class,SEL))(dlsym(RTLD_DEFAULT,'class_getInstanceMethod'))"
18 class_getInstanceSize|0"*(typedef unsigned long int(*)(Class))(dlsym(RTLD_DEFAULT,'class_getInstanceSize'))"
19 class_getInstanceVariable|0"*(typedef struct objc_ivar*(*)(Class,const char*))(dlsym(RTLD_DEFAULT,'class_getInstanceVariable'))"
20 class_getIvarLayout|0"*(typedef const char*(*)(Class))(dlsym(RTLD_DEFAULT,'class_getIvarLayout'))"
21 class_getMethodImplementation|0"*(typedef IMP(*)(Class,SEL))(dlsym(RTLD_DEFAULT,'class_getMethodImplementation'))"
22 class_getMethodImplementation_stret|0"*(typedef IMP(*)(Class,SEL))(dlsym(RTLD_DEFAULT,'class_getMethodImplementation_stret'))"
23 class_getName|0"*(typedef const char*(*)(Class))(dlsym(RTLD_DEFAULT,'class_getName'))"
24 class_getProperty|0"*(typedef struct objc_property*(*)(Class,const char*))(dlsym(RTLD_DEFAULT,'class_getProperty'))"
25 class_getSuperclass|0"*(typedef Class(*)(Class))(dlsym(RTLD_DEFAULT,'class_getSuperclass'))"
26 class_getVersion|0"*(typedef int(*)(Class))(dlsym(RTLD_DEFAULT,'class_getVersion'))"
27 class_getWeakIvarLayout|0"*(typedef const char*(*)(Class))(dlsym(RTLD_DEFAULT,'class_getWeakIvarLayout'))"
28 class_isMetaClass|0"*(typedef bool(*)(Class))(dlsym(RTLD_DEFAULT,'class_isMetaClass'))"
29 class_replaceMethod|0"*(typedef IMP(*)(Class,SEL,IMP,const char*))(dlsym(RTLD_DEFAULT,'class_replaceMethod'))"
30 class_respondsToSelector|0"*(typedef bool(*)(Class,SEL))(dlsym(RTLD_DEFAULT,'class_respondsToSelector'))"
31 class_setIvarLayout|0"*(typedef void(*)(Class,const char*))(dlsym(RTLD_DEFAULT,'class_setIvarLayout'))"
32 class_setSuperclass|0"*(typedef Class(*)(Class,Class))(dlsym(RTLD_DEFAULT,'class_setSuperclass'))"
33 class_setVersion|0"*(typedef void(*)(Class,int))(dlsym(RTLD_DEFAULT,'class_setVersion'))"
34 class_setWeakIvarLayout|0"*(typedef void(*)(Class,const char*))(dlsym(RTLD_DEFAULT,'class_setWeakIvarLayout'))"
35
36 ivar_getName|0"*(typedef const char*(*)(struct objc_ivar*))(dlsym(RTLD_DEFAULT,'ivar_getName'))"
37 ivar_getOffset|0"*(typedef int(*)(struct objc_ivar*))(dlsym(RTLD_DEFAULT,'ivar_getOffset'))"
38 ivar_getTypeEncoding|0"*(typedef const char*(*)(struct objc_ivar*))(dlsym(RTLD_DEFAULT,'ivar_getTypeEncoding'))"
39
40 method_copyArgumentType|0"*(typedef char*(*)(struct objc_method*,unsigned int))(dlsym(RTLD_DEFAULT,'method_copyArgumentType'))"
41 method_copyReturnType|0"*(typedef char*(*)(struct objc_method*))(dlsym(RTLD_DEFAULT,'method_copyReturnType'))"
42 method_exchangeImplementations|0"*(typedef void(*)(struct objc_method*,struct objc_method*))(dlsym(RTLD_DEFAULT,'method_exchangeImplementations'))"
43 method_getArgumentType|0"*(typedef void(*)(struct objc_method*,unsigned int,char*,unsigned long int))(dlsym(RTLD_DEFAULT,'method_getArgumentType'))"
44 method_getImplementation|0"*(typedef IMP(*)(struct objc_method*))(dlsym(RTLD_DEFAULT,'method_getImplementation'))"
45 method_getName|0"*(typedef SEL(*)(struct objc_method*))(dlsym(RTLD_DEFAULT,'method_getName'))"
46 method_getNumberOfArguments|0"*(typedef unsigned int(*)(struct objc_method*))(dlsym(RTLD_DEFAULT,'method_getNumberOfArguments'))"
47 method_getReturnType|0"*(typedef void(*)(struct objc_method*,char*,unsigned long int))(dlsym(RTLD_DEFAULT,'method_getReturnType'))"
48 method_getTypeEncoding|0"*(typedef const char*(*)(struct objc_method*))(dlsym(RTLD_DEFAULT,'method_getTypeEncoding'))"
49 method_setImplementation|0"*(typedef IMP(*)(struct objc_method*,IMP))(dlsym(RTLD_DEFAULT,'method_setImplementation'))"
50
51 objc_allocateClassPair|0"*(typedef Class(*)(Class,const char*,unsigned long int))(dlsym(RTLD_DEFAULT,'objc_allocateClassPair'))"
52 objc_copyProtocolList|0"*(typedef id*(*)(unsigned int*))(dlsym(RTLD_DEFAULT,'objc_copyProtocolList'))"
53 objc_duplicateClass|0"*(typedef Class(*)(Class,const char*,unsigned long int))(dlsym(RTLD_DEFAULT,'objc_duplicateClass'))"
54 objc_getClass|0"*(typedef Class(*)(const char*))(dlsym(RTLD_DEFAULT,'objc_getClass'))"
55 objc_getClassList|0"*(typedef int(*)(Class*,int))(dlsym(RTLD_DEFAULT,'objc_getClassList'))"
56 objc_getFutureClass|0"*(typedef Class(*)(const char*))(dlsym(RTLD_DEFAULT,'objc_getFutureClass'))"
57 objc_getMetaClass|0"*(typedef id(*)(const char*))(dlsym(RTLD_DEFAULT,'objc_getMetaClass'))"
58 objc_getProtocol|0"*(typedef id(*)(const char*))(dlsym(RTLD_DEFAULT,'objc_getProtocol'))"
59 objc_getRequiredClass|0"*(typedef id(*)(const char*))(dlsym(RTLD_DEFAULT,'objc_getRequiredClass'))"
60 objc_lookUpClass|0"*(typedef id(*)(const char*))(dlsym(RTLD_DEFAULT,'objc_lookUpClass'))"
61 objc_registerClassPair|0"*(typedef void(*)(Class))(dlsym(RTLD_DEFAULT,'objc_registerClassPair'))"
62 objc_setFutureClass|0"*(typedef void(*)(Class,const char*))(dlsym(RTLD_DEFAULT,'objc_setFutureClass'))"
63
64 object_copy|0"*(typedef id(*)(id,unsigned long int))(dlsym(RTLD_DEFAULT,'object_copy'))"
65 object_dispose|0"*(typedef id(*)(id))(dlsym(RTLD_DEFAULT,'object_dispose'))"
66 object_getClass|0"*(typedef Class(*)(id))(dlsym(RTLD_DEFAULT,'object_getClass'))"
67 object_getClassName|0"*(typedef const char*(*)(id))(dlsym(RTLD_DEFAULT,'object_getClassName'))"
68 object_getIndexedIvars|0"*(typedef void*(*)(id))(dlsym(RTLD_DEFAULT,'object_getIndexedIvars'))"
69 object_getInstanceVariable|0"*(typedef struct objc_ivar*(*)(id,const char*,void**))(dlsym(RTLD_DEFAULT,'object_getInstanceVariable'))"
70 object_getIvar|0"*(typedef id(*)(id,struct objc_ivar*))(dlsym(RTLD_DEFAULT,'object_getIvar'))"
71 object_setClass|0"*(typedef Class(*)(id,Class))(dlsym(RTLD_DEFAULT,'object_setClass'))"
72 object_setInstanceVariable|0"*(typedef struct objc_ivar*(*)(id,const char*,void*))(dlsym(RTLD_DEFAULT,'object_setInstanceVariable'))"
73 object_setIvar|0"*(typedef void(*)(id,struct objc_ivar*,id))(dlsym(RTLD_DEFAULT,'object_setIvar'))"
74
75 property_getAttributes|0"*(typedef const char*(*)(struct objc_property*))(dlsym(RTLD_DEFAULT,'property_getAttributes'))"
76 property_getName|0"*(typedef const char*(*)(struct objc_property*))(dlsym(RTLD_DEFAULT,'property_getName'))"
77 protocol_conformsToProtocol|0"*(typedef bool(*)(id,id))(dlsym(RTLD_DEFAULT,'protocol_conformsToProtocol'))"
78 protocol_copyMethodDescriptionList|0"*(typedef struct objc_method_description*(*)(id,bool,bool,unsigned int*))(dlsym(RTLD_DEFAULT,'protocol_copyMethodDescriptionList'))"
79 protocol_copyPropertyList|0"*(typedef struct objc_property**(*)(id,unsigned int*))(dlsym(RTLD_DEFAULT,'protocol_copyPropertyList'))"
80 protocol_copyProtocolList|0"*(typedef id*(*)(id,unsigned int*))(dlsym(RTLD_DEFAULT,'protocol_copyProtocolList'))"
81 protocol_getMethodDescription|0"*(typedef struct objc_method_description(*)(id,SEL,bool,bool))(dlsym(RTLD_DEFAULT,'protocol_getMethodDescription'))"
82 protocol_getName|0"*(typedef const char*(*)(id))(dlsym(RTLD_DEFAULT,'protocol_getName'))"
83 protocol_getProperty|0"*(typedef struct objc_property*(*)(id,const char*,bool,bool))(dlsym(RTLD_DEFAULT,'protocol_getProperty'))"
84 protocol_isEqual|0"*(typedef bool(*)(id,id))(dlsym(RTLD_DEFAULT,'protocol_isEqual'))"
85
86 sel_getName|0"*(typedef const char*(*)(SEL))(dlsym(RTLD_DEFAULT,'sel_getName'))"
87 sel_getUid|0"*(typedef SEL(*)(const char*))(dlsym(RTLD_DEFAULT,'sel_getUid'))"
88 sel_isEqual|0"*(typedef bool(*)(SEL,SEL))(dlsym(RTLD_DEFAULT,'sel_isEqual'))"
89 sel_registerName|0"*(typedef SEL(*)(const char*))(dlsym(RTLD_DEFAULT,'sel_registerName'))"