2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/bind/testdata/structs.objc.h.golden
Juan Pablo Civile 28c689b77b bind: annotate all remaining ObjC types for nullability
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>
2019-04-12 20:20:09 +00:00

73 lines
1.6 KiB
Plaintext

// Objective-C API for talking to structs Go package.
// gobind -lang=objc structs
//
// File is generated by gobind. Do not edit.
#ifndef __Structs_H__
#define __Structs_H__
@import Foundation;
#include "ref.h"
#include "Universe.objc.h"
@class StructsS;
@class StructsS2;
@class StructsStructs;
@protocol StructsI;
@class StructsI;
@protocol StructsI <NSObject>
- (void)m;
@end
@interface StructsS : NSObject <goSeqRefInterface> {
}
@property(strong, readonly) _Nonnull id _ref;
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- (nonnull instancetype)init;
@property (nonatomic) double x;
@property (nonatomic) double y;
- (StructsS* _Nullable)identity:(NSError* _Nullable* _Nullable)error;
- (double)sum;
@end
@interface StructsS2 : NSObject <goSeqRefInterface, StructsI> {
}
@property(strong, readonly) _Nonnull id _ref;
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- (nonnull instancetype)init;
- (void)m;
- (NSString* _Nonnull)string;
@end
/**
* Structs is a struct with the same name as its package.
*/
@interface StructsStructs : NSObject <goSeqRefInterface, StructsI> {
}
@property(strong, readonly) _Nonnull id _ref;
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- (nonnull instancetype)init;
- (void)m;
@end
FOUNDATION_EXPORT StructsS* _Nullable StructsIdentity(StructsS* _Nullable s);
FOUNDATION_EXPORT StructsS* _Nullable StructsIdentityWithError(StructsS* _Nullable s, NSError* _Nullable* _Nullable error);
@class StructsI;
@interface StructsI : NSObject <goSeqRefInterface, StructsI> {
}
@property(strong, readonly) _Nonnull id _ref;
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- (void)m;
@end
#endif