github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/mobile/bind/objc/testpkg/objc_testpkg/GoTestpkg.h (about)

     1  // Objective-C API for talking to golang.org/x/mobile/bind/objc/testpkg Go package.
     2  //   gobind -lang=objc golang.org/x/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  @class GoTestpkgS;
    13  @class GoTestpkgStructThatStartsWithLetterBeforeZ;
    14  @protocol GoTestpkgI;
    15  @class GoTestpkgI;
    16  @protocol GoTestpkgZ;
    17  @class GoTestpkgZ;
    18  
    19  @interface GoTestpkgNode : NSObject {
    20  }
    21  @property(strong, readonly) id _ref;
    22  
    23  - (id)initWithRef:(id)ref;
    24  - (NSString*)v;
    25  - (void)setV:(NSString*)v;
    26  - (NSString*)err;
    27  - (void)setErr:(NSString*)v;
    28  @end
    29  
    30  @interface GoTestpkgS : NSObject {
    31  }
    32  @property(strong, readonly) id _ref;
    33  
    34  - (id)initWithRef:(id)ref;
    35  - (double)x;
    36  - (void)setX:(double)v;
    37  - (double)y;
    38  - (void)setY:(double)v;
    39  - (double)sum;
    40  - (NSString*)tryTwoStrings:(NSString*)first second:(NSString*)second;
    41  @end
    42  
    43  @interface GoTestpkgStructThatStartsWithLetterBeforeZ : NSObject {
    44  }
    45  @property(strong, readonly) id _ref;
    46  
    47  - (id)initWithRef:(id)ref;
    48  - (id<GoTestpkgZ>)value;
    49  - (void)setValue:(id<GoTestpkgZ>)v;
    50  @end
    51  
    52  @protocol GoTestpkgI
    53  - (BOOL)error:(BOOL)triggerError error:(NSError**)error;
    54  - (BOOL)stringError:(NSString*)s ret0_:(NSString**)ret0_ error:(NSError**)error;
    55  - (int64_t)times:(int32_t)v;
    56  @end
    57  
    58  @protocol GoTestpkgZ
    59  @end
    60  
    61  FOUNDATION_EXPORT const BOOL GoTestpkgABool;
    62  FOUNDATION_EXPORT const double GoTestpkgAFloat;
    63  FOUNDATION_EXPORT NSString* const GoTestpkgAString;
    64  FOUNDATION_EXPORT const int64_t GoTestpkgAnInt;
    65  FOUNDATION_EXPORT const double GoTestpkgLog2E;
    66  FOUNDATION_EXPORT const float GoTestpkgMaxFloat32;
    67  FOUNDATION_EXPORT const double GoTestpkgMaxFloat64;
    68  FOUNDATION_EXPORT const int32_t GoTestpkgMaxInt32;
    69  FOUNDATION_EXPORT const int64_t GoTestpkgMaxInt64;
    70  FOUNDATION_EXPORT const int32_t GoTestpkgMinInt32;
    71  FOUNDATION_EXPORT const int64_t GoTestpkgMinInt64;
    72  FOUNDATION_EXPORT const float GoTestpkgSmallestNonzeroFloat32;
    73  FOUNDATION_EXPORT const double GoTestpkgSmallestNonzeroFloat64;
    74  
    75  @interface GoTestpkg : NSObject 
    76  + (int) intVar;
    77  + (void) setIntVar:(int)v;
    78  
    79  + (id<GoTestpkgI>) interfaceVar;
    80  + (void) setInterfaceVar:(id<GoTestpkgI>)v;
    81  
    82  + (NSString*) stringVar;
    83  + (void) setStringVar:(NSString*)v;
    84  
    85  + (GoTestpkgNode*) structVar;
    86  + (void) setStructVar:(GoTestpkgNode*)v;
    87  
    88  @end
    89  
    90  FOUNDATION_EXPORT NSData* GoTestpkgBytesAppend(NSData* a, NSData* b);
    91  
    92  FOUNDATION_EXPORT BOOL GoTestpkgCallIError(id<GoTestpkgI> i, BOOL triggerError, NSError** error);
    93  
    94  FOUNDATION_EXPORT BOOL GoTestpkgCallIStringError(id<GoTestpkgI> i, NSString* s, NSString** ret0_, NSError** error);
    95  
    96  FOUNDATION_EXPORT double GoTestpkgCallSSum(GoTestpkgS* s);
    97  
    98  FOUNDATION_EXPORT int GoTestpkgCollectS(int want, int timeoutSec);
    99  
   100  FOUNDATION_EXPORT NSString* GoTestpkgEcho(NSString* s);
   101  
   102  FOUNDATION_EXPORT void GoTestpkgGC();
   103  
   104  FOUNDATION_EXPORT NSString* GoTestpkgHello(NSString* s);
   105  
   106  FOUNDATION_EXPORT void GoTestpkgHi();
   107  
   108  FOUNDATION_EXPORT void GoTestpkgInt(int32_t x);
   109  
   110  FOUNDATION_EXPORT int64_t GoTestpkgMultiply(int32_t idx, int32_t val);
   111  
   112  FOUNDATION_EXPORT id<GoTestpkgI> GoTestpkgNewI();
   113  
   114  FOUNDATION_EXPORT GoTestpkgNode* GoTestpkgNewNode(NSString* name);
   115  
   116  FOUNDATION_EXPORT GoTestpkgS* GoTestpkgNewS(double x, double y);
   117  
   118  FOUNDATION_EXPORT void GoTestpkgRegisterI(int32_t idx, id<GoTestpkgI> i);
   119  
   120  FOUNDATION_EXPORT BOOL GoTestpkgReturnsError(BOOL b, NSString** ret0_, NSError** error);
   121  
   122  FOUNDATION_EXPORT int64_t GoTestpkgSum(int64_t x, int64_t y);
   123  
   124  FOUNDATION_EXPORT void GoTestpkgUnregisterI(int32_t idx);
   125  
   126  #endif