github.com/c-darwin/mobile@v0.0.0-20160313183840-ff625c46f7c9/bind/testdata/issue12328.objc.m.golden (about) 1 // Objective-C API for talking to issue12328 Go package. 2 // gobind -lang=objc issue12328 3 // 4 // File is generated by gobind. Do not edit. 5 6 #include "GoIssue12328.h" 7 #include <Foundation/Foundation.h> 8 #include "seq.h" 9 10 static NSString* errDomain = @"go.issue12328"; 11 12 @protocol goSeqRefInterface 13 -(GoSeqRef*) ref; 14 @end 15 16 #define _DESCRIPTOR_ "issue12328" 17 18 19 #define _GO_issue12328_T_DESCRIPTOR_ "go.issue12328.T" 20 #define _GO_issue12328_T_FIELD_Err_GET_ (0x00f) 21 #define _GO_issue12328_T_FIELD_Err_SET_ (0x01f) 22 23 @implementation GoIssue12328T { 24 } 25 26 - (id)initWithRef:(id)ref { 27 self = [super init]; 28 if (self) { _ref = ref; } 29 return self; 30 } 31 32 - (NSString*)Err { 33 GoSeq in_ = {}; 34 GoSeq out_ = {}; 35 go_seq_writeRef(&in_, self.ref); 36 go_seq_send(_GO_issue12328_T_DESCRIPTOR_, _GO_issue12328_T_FIELD_Err_GET_, &in_, &out_); 37 NSString* ret_ = go_seq_readUTF8(&out_); 38 go_seq_free(&in_); 39 go_seq_free(&out_); 40 return ret_; 41 } 42 43 - (void)setErr:(NSString*)v { 44 GoSeq in_ = {}; 45 GoSeq out_ = {}; 46 go_seq_writeRef(&in_, self.ref); 47 go_seq_writeUTF8(&in_, v); 48 go_seq_send(_GO_issue12328_T_DESCRIPTOR_, _GO_issue12328_T_FIELD_Err_SET_, &in_, &out_); 49 go_seq_free(&in_); 50 go_seq_free(&out_); 51 } 52 53 @end 54