Accept ObjC API wrapper types as arguments and return values from bound Go package functions and methods. Also, allow Go structs to extend ObjC classes and implement ObjC protocols as well as override and implement methods. This is the third and final part of the implementation of the golang/go#17102 proposal. Fixes golang/go#17102 Change-Id: I601d90fb6d22b8d6f8b7d5fe0130daa1a4dd4734 Reviewed-on: https://go-review.googlesource.com/29175 Reviewed-by: David Crawshaw <crawshaw@golang.org>
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
// Objective-C API for talking to issue10788 Go package.
|
|
// gobind -lang=objc issue10788
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#ifndef __GoIssue10788_H__
|
|
#define __GoIssue10788_H__
|
|
|
|
@import Foundation;
|
|
#include "GoUniverse.h"
|
|
|
|
|
|
@class GoIssue10788TestStruct;
|
|
@protocol GoIssue10788TestInterface;
|
|
@class GoIssue10788TestInterface;
|
|
|
|
@interface GoIssue10788TestStruct : NSObject <goSeqRefInterface> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (id)initWithRef:(id)ref;
|
|
- (NSString*)value;
|
|
- (void)setValue:(NSString*)v;
|
|
@end
|
|
|
|
@protocol GoIssue10788TestInterface <NSObject>
|
|
- (void)doSomeWork:(GoIssue10788TestStruct*)s;
|
|
- (void)multipleUnnamedParams:(long)p0 p1:(NSString*)p1 日本:(int64_t)日本;
|
|
@end
|
|
|
|
@class GoIssue10788TestInterface;
|
|
|
|
@interface GoIssue10788TestInterface : NSObject <goSeqRefInterface, GoIssue10788TestInterface> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (instancetype)initWithRef:(id)ref;
|
|
- (void)doSomeWork:(GoIssue10788TestStruct*)s;
|
|
- (void)multipleUnnamedParams:(long)p0 p1:(NSString*)p1 日本:(int64_t)日本;
|
|
@end
|
|
|
|
#endif
|