2015-06-05 15:24:08 -04:00
|
|
|
// Objective-C API for talking to structs Go package.
|
|
|
|
// gobind -lang=objc structs
|
|
|
|
//
|
|
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
|
2016-12-23 11:18:18 +01:00
|
|
|
#ifndef __Structs_H__
|
|
|
|
#define __Structs_H__
|
2015-06-05 15:24:08 -04:00
|
|
|
|
2016-09-13 06:11:15 +02:00
|
|
|
@import Foundation;
|
2019-01-26 17:25:49 +00:00
|
|
|
#include "ref.h"
|
2016-12-23 11:18:18 +01:00
|
|
|
#include "Universe.objc.h"
|
2015-06-05 15:24:08 -04:00
|
|
|
|
2016-09-13 06:11:15 +02:00
|
|
|
|
2016-12-23 11:18:18 +01:00
|
|
|
@class StructsS;
|
|
|
|
@class StructsS2;
|
2018-01-13 13:16:51 +01:00
|
|
|
@class StructsStructs;
|
2016-12-23 11:18:18 +01:00
|
|
|
@protocol StructsI;
|
|
|
|
@class StructsI;
|
2015-06-05 15:24:08 -04:00
|
|
|
|
2017-07-30 13:20:52 +02:00
|
|
|
@protocol StructsI <NSObject>
|
|
|
|
- (void)m;
|
|
|
|
@end
|
|
|
|
|
2016-12-23 11:18:18 +01:00
|
|
|
@interface StructsS : NSObject <goSeqRefInterface> {
|
2015-06-05 15:24:08 -04:00
|
|
|
}
|
2019-04-12 18:55:54 +00:00
|
|
|
@property(strong, readonly) _Nonnull id _ref;
|
2015-06-05 15:24:08 -04:00
|
|
|
|
2019-04-12 18:55:54 +00:00
|
|
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
2019-03-05 15:08:40 +00:00
|
|
|
- (nonnull instancetype)init;
|
2019-01-25 14:26:00 +00:00
|
|
|
@property (nonatomic) double x;
|
|
|
|
@property (nonatomic) double y;
|
2019-04-12 18:55:54 +00:00
|
|
|
- (StructsS* _Nullable)identity:(NSError* _Nullable* _Nullable)error;
|
2015-10-12 15:50:24 -04:00
|
|
|
- (double)sum;
|
2015-06-05 15:24:08 -04:00
|
|
|
@end
|
|
|
|
|
2017-07-30 13:20:52 +02:00
|
|
|
@interface StructsS2 : NSObject <goSeqRefInterface, StructsI> {
|
2016-02-10 19:37:20 +01:00
|
|
|
}
|
2019-04-12 18:55:54 +00:00
|
|
|
@property(strong, readonly) _Nonnull id _ref;
|
2016-02-10 19:37:20 +01:00
|
|
|
|
2019-04-12 18:55:54 +00:00
|
|
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
2019-03-05 15:08:40 +00:00
|
|
|
- (nonnull instancetype)init;
|
2016-02-10 19:37:20 +01:00
|
|
|
- (void)m;
|
2019-03-05 15:08:40 +00:00
|
|
|
- (NSString* _Nonnull)string;
|
2016-02-10 19:37:20 +01:00
|
|
|
@end
|
|
|
|
|
2018-01-13 13:16:51 +01:00
|
|
|
/**
|
|
|
|
* Structs is a struct with the same name as its package.
|
|
|
|
*/
|
|
|
|
@interface StructsStructs : NSObject <goSeqRefInterface, StructsI> {
|
|
|
|
}
|
2019-04-12 18:55:54 +00:00
|
|
|
@property(strong, readonly) _Nonnull id _ref;
|
2018-01-13 13:16:51 +01:00
|
|
|
|
2019-04-12 18:55:54 +00:00
|
|
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
2019-03-05 15:08:40 +00:00
|
|
|
- (nonnull instancetype)init;
|
2018-01-13 13:16:51 +01:00
|
|
|
- (void)m;
|
|
|
|
@end
|
|
|
|
|
2019-03-05 15:08:40 +00:00
|
|
|
FOUNDATION_EXPORT StructsS* _Nullable StructsIdentity(StructsS* _Nullable s);
|
2015-06-05 15:24:08 -04:00
|
|
|
|
2019-04-12 18:55:54 +00:00
|
|
|
FOUNDATION_EXPORT StructsS* _Nullable StructsIdentityWithError(StructsS* _Nullable s, NSError* _Nullable* _Nullable error);
|
2015-06-09 17:36:16 -07:00
|
|
|
|
2016-12-23 11:18:18 +01:00
|
|
|
@class StructsI;
|
2016-03-11 11:52:33 +01:00
|
|
|
|
2016-12-23 11:18:18 +01:00
|
|
|
@interface StructsI : NSObject <goSeqRefInterface, StructsI> {
|
2016-03-11 11:52:33 +01:00
|
|
|
}
|
2019-04-12 18:55:54 +00:00
|
|
|
@property(strong, readonly) _Nonnull id _ref;
|
2016-03-11 11:52:33 +01:00
|
|
|
|
2019-04-12 18:55:54 +00:00
|
|
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
2016-03-11 11:52:33 +01:00
|
|
|
- (void)m;
|
|
|
|
@end
|
|
|
|
|
2015-06-05 15:24:08 -04:00
|
|
|
#endif
|