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>
135 lines
2.2 KiB
Plaintext
135 lines
2.2 KiB
Plaintext
// Objective-C API for talking to keywords Go package.
|
|
// gobind -lang=objc keywords
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#ifndef __GoKeywords_H__
|
|
#define __GoKeywords_H__
|
|
|
|
@import Foundation;
|
|
#include "GoUniverse.h"
|
|
|
|
|
|
@protocol GoKeywordsKeywordCaller;
|
|
@class GoKeywordsKeywordCaller;
|
|
|
|
@protocol GoKeywordsKeywordCaller <NSObject>
|
|
- (void)abstract;
|
|
- (void)assert;
|
|
- (void)boolean;
|
|
- (void)break;
|
|
- (void)byte;
|
|
- (void)case;
|
|
- (void)catch;
|
|
- (void)char_;
|
|
- (void)class;
|
|
- (void)const_;
|
|
- (void)continue;
|
|
- (void)default;
|
|
- (void)do;
|
|
- (void)double_;
|
|
- (void)else;
|
|
- (void)enum;
|
|
- (void)extends;
|
|
- (void)false;
|
|
- (void)final;
|
|
- (void)finally;
|
|
- (void)float_;
|
|
- (void)for;
|
|
- (void)goto;
|
|
- (void)if;
|
|
- (void)implements;
|
|
- (void)import;
|
|
- (void)instanceof;
|
|
- (void)int_;
|
|
- (void)interface;
|
|
- (void)long_;
|
|
- (void)native;
|
|
- (void)new;
|
|
- (void)null;
|
|
- (void)package;
|
|
- (void)private;
|
|
- (void)protected;
|
|
- (void)public;
|
|
- (void)return;
|
|
- (void)short_;
|
|
- (void)static;
|
|
- (void)strictfp;
|
|
- (void)super_;
|
|
- (void)switch;
|
|
- (void)synchronized;
|
|
- (void)this;
|
|
- (void)throw;
|
|
- (void)throws;
|
|
- (void)transient;
|
|
- (void)true;
|
|
- (void)try;
|
|
- (void)void_;
|
|
- (void)volatile_;
|
|
- (void)while;
|
|
@end
|
|
|
|
@class GoKeywordsKeywordCaller;
|
|
|
|
@interface GoKeywordsKeywordCaller : NSObject <goSeqRefInterface, GoKeywordsKeywordCaller> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (instancetype)initWithRef:(id)ref;
|
|
- (void)abstract;
|
|
- (void)assert;
|
|
- (void)boolean;
|
|
- (void)break;
|
|
- (void)byte;
|
|
- (void)case;
|
|
- (void)catch;
|
|
- (void)char_;
|
|
- (void)class;
|
|
- (void)const_;
|
|
- (void)continue;
|
|
- (void)default;
|
|
- (void)do;
|
|
- (void)double_;
|
|
- (void)else;
|
|
- (void)enum;
|
|
- (void)extends;
|
|
- (void)false;
|
|
- (void)final;
|
|
- (void)finally;
|
|
- (void)float_;
|
|
- (void)for;
|
|
- (void)goto;
|
|
- (void)if;
|
|
- (void)implements;
|
|
- (void)import;
|
|
- (void)instanceof;
|
|
- (void)int_;
|
|
- (void)interface;
|
|
- (void)long_;
|
|
- (void)native;
|
|
- (void)new;
|
|
- (void)null;
|
|
- (void)package;
|
|
- (void)private;
|
|
- (void)protected;
|
|
- (void)public;
|
|
- (void)return;
|
|
- (void)short_;
|
|
- (void)static;
|
|
- (void)strictfp;
|
|
- (void)super_;
|
|
- (void)switch;
|
|
- (void)synchronized;
|
|
- (void)this;
|
|
- (void)throw;
|
|
- (void)throws;
|
|
- (void)transient;
|
|
- (void)true;
|
|
- (void)try;
|
|
- (void)void_;
|
|
- (void)volatile_;
|
|
- (void)while;
|
|
@end
|
|
|
|
#endif
|