From Xcode 10.2 onwards, these annotations are required in all interface declarations. The behaviour can be disabled, but since we were already annotated most types it made sense to just annotate the rest. Change-Id: Iacd09a2fea4dfb3e22fec97cf4ca22966fc783bf GitHub-Last-Rev: a431572a83ea8b29f55813bcdafc9a00f8d15972 GitHub-Pull-Request: golang/mobile#29 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/171957 Reviewed-by: Elias Naur <mail@eliasnaur.com>
78 lines
1.4 KiB
Plaintext
78 lines
1.4 KiB
Plaintext
// Objective-C API for talking to vars Go package.
|
|
// gobind -lang=objc vars
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#ifndef __Vars_H__
|
|
#define __Vars_H__
|
|
|
|
@import Foundation;
|
|
#include "ref.h"
|
|
#include "Universe.objc.h"
|
|
|
|
|
|
@class VarsS;
|
|
@protocol VarsI;
|
|
@class VarsI;
|
|
|
|
@protocol VarsI <NSObject>
|
|
@end
|
|
|
|
@interface VarsS : NSObject <goSeqRefInterface, VarsI> {
|
|
}
|
|
@property(strong, readonly) _Nonnull id _ref;
|
|
|
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
- (nonnull instancetype)init;
|
|
@end
|
|
|
|
@interface Vars : NSObject
|
|
+ (BOOL) aBool;
|
|
+ (void) setABool:(BOOL)v;
|
|
|
|
+ (double) aFloat;
|
|
+ (void) setAFloat:(double)v;
|
|
|
|
+ (float) aFloat32;
|
|
+ (void) setAFloat32:(float)v;
|
|
|
|
+ (double) aFloat64;
|
|
+ (void) setAFloat64:(double)v;
|
|
|
|
+ (NSString* _Nonnull) aString;
|
|
+ (void) setAString:(NSString* _Nonnull)v;
|
|
|
|
+ (VarsS* _Nullable) aStructPtr;
|
|
+ (void) setAStructPtr:(VarsS* _Nullable)v;
|
|
|
|
+ (long) anInt;
|
|
+ (void) setAnInt:(long)v;
|
|
|
|
+ (int16_t) anInt16;
|
|
+ (void) setAnInt16:(int16_t)v;
|
|
|
|
+ (int32_t) anInt32;
|
|
+ (void) setAnInt32:(int32_t)v;
|
|
|
|
+ (int64_t) anInt64;
|
|
+ (void) setAnInt64:(int64_t)v;
|
|
|
|
+ (int8_t) anInt8;
|
|
+ (void) setAnInt8:(int8_t)v;
|
|
|
|
+ (id<VarsI> _Nullable) anInterface;
|
|
+ (void) setAnInterface:(id<VarsI> _Nullable)v;
|
|
|
|
@end
|
|
|
|
@class VarsI;
|
|
|
|
@interface VarsI : NSObject <goSeqRefInterface, VarsI> {
|
|
}
|
|
@property(strong, readonly) _Nonnull id _ref;
|
|
|
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
@end
|
|
|
|
#endif
|