github.com/cyrilou242/gomobile-java@v0.0.0-20220215185836-09daef25a210/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 "ref.h"
    11  #include "Universe.objc.h"
    12  
    13  
    14  @class StructsS;
    15  @class StructsS2;
    16  @class StructsStructs;
    17  @protocol StructsI;
    18  @class StructsI;
    19  
    20  @protocol StructsI <NSObject>
    21  - (void)m;
    22  @end
    23  
    24  @interface StructsS : NSObject <goSeqRefInterface> {
    25  }
    26  @property(strong, readonly) _Nonnull id _ref;
    27  
    28  - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
    29  - (nonnull instancetype)init;
    30  @property (nonatomic) double x;
    31  @property (nonatomic) double y;
    32  - (StructsS* _Nullable)identity:(NSError* _Nullable* _Nullable)error;
    33  - (double)sum;
    34  @end
    35  
    36  @interface StructsS2 : NSObject <goSeqRefInterface, StructsI> {
    37  }
    38  @property(strong, readonly) _Nonnull id _ref;
    39  
    40  - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
    41  - (nonnull instancetype)init;
    42  - (void)m;
    43  - (NSString* _Nonnull)string;
    44  @end
    45  
    46  /**
    47   * Structs is a struct with the same name as its package.
    48   */
    49  @interface StructsStructs : NSObject <goSeqRefInterface, StructsI> {
    50  }
    51  @property(strong, readonly) _Nonnull id _ref;
    52  
    53  - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
    54  - (nonnull instancetype)init;
    55  - (void)m;
    56  @end
    57  
    58  FOUNDATION_EXPORT StructsS* _Nullable StructsIdentity(StructsS* _Nullable s);
    59  
    60  FOUNDATION_EXPORT StructsS* _Nullable StructsIdentityWithError(StructsS* _Nullable s, NSError* _Nullable* _Nullable error);
    61  
    62  @class StructsI;
    63  
    64  @interface StructsI : NSObject <goSeqRefInterface, StructsI> {
    65  }
    66  @property(strong, readonly) _Nonnull id _ref;
    67  
    68  - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
    69  - (void)m;
    70  @end
    71  
    72  #endif