github.com/acrespo/mobile@v0.0.0-20190107162257-dc0771356504/bind/testdata/structs.objc.h.golden (about) 1 // Objective-C API for talking to structs Go package. 2 // gobind -lang=objc structs 3 // 4 // File is generated by gobind. Do not edit. 5 6 #ifndef __Structs_H__ 7 #define __Structs_H__ 8 9 @import Foundation; 10 #include "Universe.objc.h" 11 12 13 @class StructsS; 14 @class StructsS2; 15 @class StructsStructs; 16 @protocol StructsI; 17 @class StructsI; 18 19 @protocol StructsI <NSObject> 20 - (void)m; 21 @end 22 23 @interface StructsS : NSObject <goSeqRefInterface> { 24 } 25 @property(strong, readonly) id _ref; 26 27 - (instancetype)initWithRef:(id)ref; 28 - (instancetype)init; 29 - (double)x; 30 - (void)setX:(double)v; 31 - (double)y; 32 - (void)setY:(double)v; 33 - (StructsS*)identity:(NSError**)error; 34 - (double)sum; 35 @end 36 37 @interface StructsS2 : NSObject <goSeqRefInterface, StructsI> { 38 } 39 @property(strong, readonly) id _ref; 40 41 - (instancetype)initWithRef:(id)ref; 42 - (instancetype)init; 43 - (void)m; 44 - (NSString*)string; 45 @end 46 47 /** 48 * Structs is a struct with the same name as its package. 49 */ 50 @interface StructsStructs : NSObject <goSeqRefInterface, StructsI> { 51 } 52 @property(strong, readonly) id _ref; 53 54 - (instancetype)initWithRef:(id)ref; 55 - (instancetype)init; 56 - (void)m; 57 @end 58 59 FOUNDATION_EXPORT StructsS* StructsIdentity(StructsS* s); 60 61 FOUNDATION_EXPORT StructsS* StructsIdentityWithError(StructsS* s, NSError** error); 62 63 @class StructsI; 64 65 @interface StructsI : NSObject <goSeqRefInterface, StructsI> { 66 } 67 @property(strong, readonly) id _ref; 68 69 - (instancetype)initWithRef:(id)ref; 70 - (void)m; 71 @end 72 73 #endif