github.com/c-darwin/mobile@v0.0.0-20160313183840-ff625c46f7c9/bind/objc/testpkg/objc_testpkg/reference/GoTestpkg.h (about) 1 // Objective-C API for talking to github.com/c-darwin/mobile/bind/objc/testpkg Go package. 2 // gobind -lang=objc github.com/c-darwin/mobile/bind/objc/testpkg 3 // 4 // File is generated by gobind. Do not edit. 5 6 #ifndef __GoTestpkg_H__ 7 #define __GoTestpkg_H__ 8 9 #include <Foundation/Foundation.h> 10 11 @protocol GoTestpkgI 12 - (void)Fn:(int32_t)v; 13 @end 14 15 @interface GoTestpkgI : NSObject { 16 } 17 @property (strong, readonly) id ref; 18 @property (weak, readonly, nonatomic) id delegate; 19 20 - (void)call:(int)code in:(void *)in out:(void *)out; 21 @end 22 23 @class GoTestpkgS; 24 25 @interface GoTestpkgS : NSObject { 26 } 27 @property(strong, readonly) id ref; 28 29 - (id)initWithRef:(id)ref; 30 - (double)X; 31 - (void)setX:(double)v; 32 - (double)Y; 33 - (void)setY:(double)v; 34 - (double)Sum; 35 @end 36 37 FOUNDATION_EXPORT NSData* GoTestpkgBytesAppend(NSData* a, NSData* b); 38 39 FOUNDATION_EXPORT void GoTestpkgCallI(GoTestpkgI* i, int32_t v); 40 41 FOUNDATION_EXPORT double GoTestpkgCallSSum(GoTestpkgS* s); 42 43 FOUNDATION_EXPORT int GoTestpkgCollectS(int want, int timeoutSec); 44 45 FOUNDATION_EXPORT NSString* GoTestpkgHello(NSString* s); 46 47 FOUNDATION_EXPORT void GoTestpkgHi(); 48 49 FOUNDATION_EXPORT void GoTestpkgInt(int32_t x); 50 51 FOUNDATION_EXPORT GoTestpkgS* GoTestpkgNewS(double x, double y); 52 53 FOUNDATION_EXPORT BOOL GoTestpkgReturnsError(BOOL b, NSString** ret0_, NSError** error); 54 55 FOUNDATION_EXPORT int64_t GoTestpkgSum(int64_t x, int64_t y); 56 57 #endif