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>
68 lines
1.4 KiB
Plaintext
68 lines
1.4 KiB
Plaintext
// Objective-C API for talking to ignore Go package.
|
|
// gobind -lang=objc ignore
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#include <Foundation/Foundation.h>
|
|
#include "seq.h"
|
|
#include "_cgo_export.h"
|
|
#include "GoIgnore.h"
|
|
|
|
|
|
@implementation GoIgnoreS {
|
|
}
|
|
|
|
- (id)initWithRef:(id)ref {
|
|
self = [super init];
|
|
if (self) { __ref = ref; }
|
|
return self;
|
|
}
|
|
|
|
// skipped unsupported field F with type *types.Var
|
|
|
|
// skipped method S.Argument with unsupported parameter or return types
|
|
|
|
// skipped method S.Result with unsupported parameter or return types
|
|
|
|
@end
|
|
|
|
|
|
@implementation GoIgnoreI {
|
|
}
|
|
|
|
- (instancetype)initWithRef:(id)ref {
|
|
self = [super init];
|
|
if (self) { __ref = ref; }
|
|
return self;
|
|
}
|
|
|
|
// skipped method I.Argument with unsupported parameter or return types
|
|
|
|
// skipped method I.Result with unsupported parameter or return types
|
|
|
|
@end
|
|
|
|
|
|
// skipped const NamedConst with unsupported type: *types.Const
|
|
|
|
|
|
@implementation GoIgnore
|
|
// skipped variable V with unsupported type: *types.Interface
|
|
|
|
// skipped variable Var with unsupported type: *types.Interface
|
|
|
|
@end
|
|
|
|
|
|
// skipped function Argument with unsupported parameter or return types
|
|
|
|
// skipped function Result with unsupported parameter or return types
|
|
|
|
// skipped method I.Argument with unsupported parameter or return types
|
|
|
|
// skipped method I.Result with unsupported parameter or return types
|
|
|
|
__attribute__((constructor)) static void init() {
|
|
init_seq();
|
|
}
|