2
0
mirror of synced 2025-02-24 07:18:15 +00:00
mobile/bind/testdata/issue12403.objc.h.golden
Elias Naur 1c49d29d1c bind,cmd: accept ObjC wrapper types in bound packages
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>
2016-10-17 10:37:16 +00:00

33 lines
750 B
Plaintext

// Objective-C API for talking to issue12403 Go package.
// gobind -lang=objc issue12403
//
// File is generated by gobind. Do not edit.
#ifndef __GoIssue12403_H__
#define __GoIssue12403_H__
@import Foundation;
#include "GoUniverse.h"
@protocol GoIssue12403Parsable;
@class GoIssue12403Parsable;
@protocol GoIssue12403Parsable <NSObject>
- (NSString*)fromJSON:(NSString*)jstr;
- (BOOL)toJSON:(NSString**)ret0_ error:(NSError**)error;
@end
@class GoIssue12403Parsable;
@interface GoIssue12403Parsable : NSObject <goSeqRefInterface, GoIssue12403Parsable> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
- (NSString*)fromJSON:(NSString*)jstr;
- (BOOL)toJSON:(NSString**)ret0_ error:(NSError**)error;
@end
#endif