2
0
mirror of synced 2025-02-23 23:08:14 +00:00
mobile/bind/testdata/structs.objc.h.golden
Elias Naur b2ece8c621 bind: declare implemented ObjC protocols
Declare all implemented interfaces in the protocol list of a bound
struct. This is the ObjC equivalent of similar functionality for
Java.

Change-Id: Ibaea881f57fecf8a0716d25ec925de43974fe0fe
Reviewed-on: https://go-review.googlesource.com/52010
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2017-08-22 15:31:44 +00:00

61 lines
1.1 KiB
Plaintext

// Objective-C API for talking to structs Go package.
// gobind -lang=objc structs
//
// File is generated by gobind. Do not edit.
#ifndef __Structs_H__
#define __Structs_H__
@import Foundation;
#include "Universe.objc.h"
@class StructsS;
@class StructsS2;
@protocol StructsI;
@class StructsI;
@protocol StructsI <NSObject>
- (void)m;
@end
@interface StructsS : NSObject <goSeqRefInterface> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
- (instancetype)init;
- (double)x;
- (void)setX:(double)v;
- (double)y;
- (void)setY:(double)v;
- (StructsS*)identity:(NSError**)error;
- (double)sum;
@end
@interface StructsS2 : NSObject <goSeqRefInterface, StructsI> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
- (instancetype)init;
- (void)m;
- (NSString*)string;
@end
FOUNDATION_EXPORT StructsS* StructsIdentity(StructsS* s);
FOUNDATION_EXPORT StructsS* StructsIdentityWithError(StructsS* s, NSError** error);
@class StructsI;
@interface StructsI : NSObject <goSeqRefInterface, StructsI> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
- (void)m;
@end
#endif