2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/bind/testdata/issue12328.objc.m.golden
David Crawshaw 11fe695b54 bind: support fields with type error
Fixes golang/go#12328

Change-Id: I42872d26acb1c44522a64405cfa2d0f10fb24485
Reviewed-on: https://go-review.googlesource.com/13919
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2015-08-26 20:25:55 +00:00

55 lines
1.2 KiB
Plaintext

// Objective-C API for talking to issue12328 Go package.
// gobind -lang=objc issue12328
//
// File is generated by gobind. Do not edit.
#include "GoIssue12328.h"
#include <Foundation/Foundation.h>
#include "seq.h"
static NSString* errDomain = @"go.issue12328";
@protocol goSeqRefInterface
-(GoSeqRef*) ref;
@end
#define _DESCRIPTOR_ "issue12328"
#define _GO_issue12328_T_DESCRIPTOR_ "go.issue12328.T"
#define _GO_issue12328_T_FIELD_Err_GET_ (0x00f)
#define _GO_issue12328_T_FIELD_Err_SET_ (0x01f)
@implementation GoIssue12328T {
}
- (id)initWithRef:(id)ref {
self = [super init];
if (self) { _ref = ref; }
return self;
}
- (NSString*)Err {
GoSeq in_ = {};
GoSeq out_ = {};
go_seq_writeRef(&in_, self.ref);
go_seq_send(_GO_issue12328_T_DESCRIPTOR_, _GO_issue12328_T_FIELD_Err_GET_, &in_, &out_);
NSString* ret_ = go_seq_readUTF8(&out_);
go_seq_free(&in_);
go_seq_free(&out_);
return ret_;
}
- (void)setErr:(NSString*)v {
GoSeq in_ = {};
GoSeq out_ = {};
go_seq_writeRef(&in_, self.ref);
go_seq_writeUTF8(&in_, v);
go_seq_send(_GO_issue12328_T_DESCRIPTOR_, _GO_issue12328_T_FIELD_Err_SET_, &in_, &out_);
go_seq_free(&in_);
go_seq_free(&out_);
}
@end