github.com/coming-chat/gomobile@v0.0.0-20220601074111-56995f7d7aba/bind/testdata/interfaces.objc.h.golden (about) 1 // Objective-C API for talking to interfaces Go package. 2 // gobind -lang=objc interfaces 3 // 4 // File is generated by gobind. Do not edit. 5 6 #ifndef __Interfaces_H__ 7 #define __Interfaces_H__ 8 9 @import Foundation; 10 #include "ref.h" 11 #include "Universe.objc.h" 12 13 14 @protocol InterfacesError; 15 @class InterfacesError; 16 @protocol InterfacesI; 17 @class InterfacesI; 18 @protocol InterfacesI1; 19 @protocol InterfacesI2; 20 @protocol InterfacesI3; 21 @class InterfacesI3; 22 @protocol InterfacesInterfaces; 23 @class InterfacesInterfaces; 24 @protocol InterfacesLargerI; 25 @class InterfacesLargerI; 26 @protocol InterfacesSameI; 27 @class InterfacesSameI; 28 @protocol InterfacesWithParam; 29 @class InterfacesWithParam; 30 31 @protocol InterfacesError <NSObject> 32 - (BOOL)err:(NSError* _Nullable* _Nullable)error; 33 @end 34 35 @protocol InterfacesI <NSObject> 36 - (int32_t)rand; 37 @end 38 39 /** 40 * not implementable 41 */ 42 @interface InterfacesI1 : NSObject <goSeqRefInterface> { 43 } 44 @property(strong, readonly) _Nonnull id _ref; 45 46 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 47 - (void)j; 48 @end 49 50 /** 51 * not implementable 52 */ 53 @interface InterfacesI2 : NSObject <goSeqRefInterface> { 54 } 55 @property(strong, readonly) _Nonnull id _ref; 56 57 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 58 - (void)g; 59 @end 60 61 @protocol InterfacesI3 <NSObject> 62 - (InterfacesI1* _Nullable)f; 63 @end 64 65 @protocol InterfacesInterfaces <NSObject> 66 - (void)someMethod; 67 @end 68 69 @protocol InterfacesLargerI <NSObject> 70 - (void)anotherFunc; 71 - (int32_t)rand; 72 @end 73 74 @protocol InterfacesSameI <NSObject> 75 - (int32_t)rand; 76 @end 77 78 @protocol InterfacesWithParam <NSObject> 79 - (void)hasParam:(BOOL)p0; 80 @end 81 82 FOUNDATION_EXPORT int32_t InterfacesAdd3(id<InterfacesI> _Nullable r); 83 84 FOUNDATION_EXPORT BOOL InterfacesCallErr(id<InterfacesError> _Nullable e, NSError* _Nullable* _Nullable error); 85 86 FOUNDATION_EXPORT id<InterfacesI> _Nullable InterfacesSeven(void); 87 88 @class InterfacesError; 89 90 @class InterfacesI; 91 92 @class InterfacesI3; 93 94 @class InterfacesInterfaces; 95 96 @class InterfacesLargerI; 97 98 @class InterfacesSameI; 99 100 @class InterfacesWithParam; 101 102 @interface InterfacesError : NSObject <goSeqRefInterface, InterfacesError> { 103 } 104 @property(strong, readonly) _Nonnull id _ref; 105 106 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 107 - (BOOL)err:(NSError* _Nullable* _Nullable)error; 108 @end 109 110 @interface InterfacesI : NSObject <goSeqRefInterface, InterfacesI> { 111 } 112 @property(strong, readonly) _Nonnull id _ref; 113 114 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 115 - (int32_t)rand; 116 @end 117 118 /** 119 * implementable 120 (the implementor has to find a source of I1s) 121 */ 122 @interface InterfacesI3 : NSObject <goSeqRefInterface, InterfacesI3> { 123 } 124 @property(strong, readonly) _Nonnull id _ref; 125 126 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 127 - (InterfacesI1* _Nullable)f; 128 @end 129 130 /** 131 * Interfaces is an interface with the same name as its package. 132 */ 133 @interface InterfacesInterfaces : NSObject <goSeqRefInterface, InterfacesInterfaces> { 134 } 135 @property(strong, readonly) _Nonnull id _ref; 136 137 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 138 - (void)someMethod; 139 @end 140 141 @interface InterfacesLargerI : NSObject <goSeqRefInterface, InterfacesLargerI> { 142 } 143 @property(strong, readonly) _Nonnull id _ref; 144 145 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 146 - (void)anotherFunc; 147 - (int32_t)rand; 148 @end 149 150 @interface InterfacesSameI : NSObject <goSeqRefInterface, InterfacesSameI> { 151 } 152 @property(strong, readonly) _Nonnull id _ref; 153 154 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 155 - (int32_t)rand; 156 @end 157 158 @interface InterfacesWithParam : NSObject <goSeqRefInterface, InterfacesWithParam> { 159 } 160 @property(strong, readonly) _Nonnull id _ref; 161 162 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 163 - (void)hasParam:(BOOL)p0; 164 @end 165 166 #endif