Current generated headers work because they require `ref.h` to be loaded beforehand by the bridging header. However, in some cases where the bridging header is generated by another tool (such as Bazel), the order can't be guaranteed. Fix that by explicitly importing `ref.h` in the headers that need it. Change-Id: I444453a0ebdf53e14ba1b5290f7cc7084eaf2c07 GitHub-Last-Rev: e1e1e915bf0428d871cb1a268c8456cf7051d383 GitHub-Pull-Request: golang/mobile#28 Reviewed-on: https://go-review.googlesource.com/c/159758 Reviewed-by: Elias Naur <mail@eliasnaur.com>
134 lines
1.9 KiB
Plaintext
134 lines
1.9 KiB
Plaintext
// Objective-C API for talking to doc Go package.
|
|
// gobind -lang=objc doc
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#ifndef __Doc_H__
|
|
#define __Doc_H__
|
|
|
|
@import Foundation;
|
|
#include "ref.h"
|
|
#include "Universe.objc.h"
|
|
|
|
|
|
@class DocNoDoc;
|
|
@class DocS;
|
|
@class DocS2;
|
|
@protocol DocI;
|
|
@class DocI;
|
|
|
|
@protocol DocI <NSObject>
|
|
- (void)im;
|
|
@end
|
|
|
|
/**
|
|
* A generic comment with <HTML>.
|
|
*/
|
|
@interface DocNoDoc : NSObject <goSeqRefInterface> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (instancetype)initWithRef:(id)ref;
|
|
- (instancetype)init;
|
|
@end
|
|
|
|
/**
|
|
* S is a struct.
|
|
*/
|
|
@interface DocS : NSObject <goSeqRefInterface> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (instancetype)initWithRef:(id)ref;
|
|
/**
|
|
* NewS is a constructor.
|
|
*/
|
|
- (instancetype)init;
|
|
/**
|
|
* SF is a field.
|
|
*/
|
|
@property (nonatomic) NSString* sf;
|
|
/**
|
|
* Anonymous field.
|
|
*/
|
|
@property (nonatomic) DocS2* s2;
|
|
/**
|
|
* Multiple fields.
|
|
*/
|
|
@property (nonatomic) NSString* f1;
|
|
/**
|
|
* Multiple fields.
|
|
*/
|
|
@property (nonatomic) NSString* f2;
|
|
/**
|
|
* After is another method.
|
|
*/
|
|
- (void)after;
|
|
- (void)before;
|
|
@end
|
|
|
|
/**
|
|
* S2 is a struct.
|
|
*/
|
|
@interface DocS2 : NSObject <goSeqRefInterface> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (instancetype)initWithRef:(id)ref;
|
|
- (instancetype)init;
|
|
@end
|
|
|
|
/**
|
|
* C is a constant.
|
|
*/
|
|
FOUNDATION_EXPORT const BOOL DocC;
|
|
|
|
@interface Doc : NSObject
|
|
/**
|
|
* A group of vars.
|
|
*/
|
|
+ (double) noDocVar;
|
|
+ (void) setNoDocVar:(double)v;
|
|
|
|
/**
|
|
* A specific var.
|
|
*/
|
|
+ (NSString*) specific;
|
|
+ (void) setSpecific:(NSString*)v;
|
|
|
|
/**
|
|
* V is a var.
|
|
*/
|
|
+ (NSString*) v;
|
|
+ (void) setV:(NSString*)v;
|
|
|
|
@end
|
|
|
|
/**
|
|
* F is a function.
|
|
*/
|
|
FOUNDATION_EXPORT void DocF(void);
|
|
|
|
/**
|
|
* NewS is a constructor.
|
|
*/
|
|
FOUNDATION_EXPORT DocS* DocNewS(void);
|
|
|
|
@class DocI;
|
|
|
|
/**
|
|
* I is an interface.
|
|
*/
|
|
@interface DocI : NSObject <goSeqRefInterface, DocI> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (instancetype)initWithRef:(id)ref;
|
|
/**
|
|
* IM is a method.
|
|
*/
|
|
- (void)im;
|
|
@end
|
|
|
|
#endif
|