52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
|
// Objective-C API for talking to issue10788 Go package.
|
||
|
// gobind -lang=objc issue10788
|
||
|
//
|
||
|
// File is generated by gobind. Do not edit.
|
||
|
|
||
|
#include "GoIssue10788.h"
|
||
|
#include <Foundation/Foundation.h>
|
||
|
#include "seq.h"
|
||
|
|
||
|
static NSString *errDomain = @"go.issue10788";
|
||
|
|
||
|
#define _DESCRIPTOR_ "issue10788"
|
||
|
|
||
|
|
||
|
|
||
|
#define _GO_issue10788_TestStruct_DESCRIPTOR_ "go.issue10788.TestStruct"
|
||
|
#define _GO_issue10788_TestStruct_FIELD_Value_GET_ (0x00f)
|
||
|
#define _GO_issue10788_TestStruct_FIELD_Value_SET_ (0x01f)
|
||
|
|
||
|
@implementation GoIssue10788_TestStruct {
|
||
|
}
|
||
|
|
||
|
- (id)initWithRef:(GoSeqRef*)ref {
|
||
|
self = [super init];
|
||
|
if (self) { _ref = ref; }
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
- (NSString*)Value {
|
||
|
GoSeq in_ = {};
|
||
|
GoSeq out_ = {};
|
||
|
go_seq_writeRef(&in_, self.ref);
|
||
|
go_seq_send(_GO_issue10788_TestStruct_DESCRIPTOR_, _GO_issue10788_TestStruct_FIELD_Value_GET_, &in_, &out_);
|
||
|
NSString* ret_ = go_seq_readUTF8(&out_);
|
||
|
go_seq_free(&in_);
|
||
|
go_seq_free(&out_);
|
||
|
return ret_;
|
||
|
}
|
||
|
|
||
|
- (void)setValue:(NSString*)v {
|
||
|
GoSeq in_ = {};
|
||
|
GoSeq out_ = {};
|
||
|
go_seq_writeRef(&in_, self.ref);
|
||
|
go_seq_writeUTF8(&in_, v);
|
||
|
go_seq_send(_GO_issue10788_TestStruct_DESCRIPTOR_, _GO_issue10788_TestStruct_FIELD_Value_SET_, &in_, &out_);
|
||
|
go_seq_free(&in_);
|
||
|
go_seq_free(&out_);
|
||
|
}
|
||
|
|
||
|
@end
|
||
|
|