github.com/c-darwin/mobile@v0.0.0-20160313183840-ff625c46f7c9/bind/objc/testpkg/objc_testpkg/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  @class GoTestpkgNode;
    12  
    13  @class GoTestpkgS;
    14  
    15  @protocol GoTestpkgI
    16  - (BOOL)Error:(BOOL)triggerError error:(NSError**)error;
    17  - (int64_t)Times:(int32_t)v;
    18  @end
    19  
    20  @interface GoTestpkgNode : NSObject {
    21  }
    22  @property(strong, readonly) id ref;
    23  
    24  - (id)initWithRef:(id)ref;
    25  - (NSString*)V;
    26  - (void)setV:(NSString*)v;
    27  - (NSString*)Err;
    28  - (void)setErr:(NSString*)v;
    29  @end
    30  
    31  @interface GoTestpkgS : NSObject {
    32  }
    33  @property(strong, readonly) id ref;
    34  
    35  - (id)initWithRef:(id)ref;
    36  - (double)X;
    37  - (void)setX:(double)v;
    38  - (double)Y;
    39  - (void)setY:(double)v;
    40  - (double)Sum;
    41  - (NSString*)TryTwoStrings:(NSString*)first second:(NSString*)second;
    42  @end
    43  
    44  FOUNDATION_EXPORT NSData* GoTestpkgBytesAppend(NSData* a, NSData* b);
    45  
    46  FOUNDATION_EXPORT BOOL GoTestpkgCallIError(id<GoTestpkgI> i, BOOL triggerError, NSError** error);
    47  
    48  FOUNDATION_EXPORT double GoTestpkgCallSSum(GoTestpkgS* s);
    49  
    50  FOUNDATION_EXPORT int GoTestpkgCollectS(int want, int timeoutSec);
    51  
    52  FOUNDATION_EXPORT void GoTestpkgGC();
    53  
    54  FOUNDATION_EXPORT NSString* GoTestpkgHello(NSString* s);
    55  
    56  FOUNDATION_EXPORT void GoTestpkgHi();
    57  
    58  FOUNDATION_EXPORT void GoTestpkgInt(int32_t x);
    59  
    60  FOUNDATION_EXPORT int64_t GoTestpkgMultiply(int32_t idx, int32_t val);
    61  
    62  FOUNDATION_EXPORT id<GoTestpkgI> GoTestpkgNewI();
    63  
    64  FOUNDATION_EXPORT GoTestpkgNode* GoTestpkgNewNode(NSString* name);
    65  
    66  FOUNDATION_EXPORT GoTestpkgS* GoTestpkgNewS(double x, double y);
    67  
    68  FOUNDATION_EXPORT void GoTestpkgRegisterI(int32_t idx, id<GoTestpkgI> i);
    69  
    70  FOUNDATION_EXPORT BOOL GoTestpkgReturnsError(BOOL b, NSString** ret0_, NSError** error);
    71  
    72  FOUNDATION_EXPORT int64_t GoTestpkgSum(int64_t x, int64_t y);
    73  
    74  FOUNDATION_EXPORT void GoTestpkgUnregisterI(int32_t idx);
    75  
    76  #endif