2015-06-05 19:24:08 +00:00
|
|
|
// Objective-C API for talking to interfaces Go package.
|
|
|
|
// gobind -lang=objc interfaces
|
|
|
|
//
|
|
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
|
|
|
|
#include "GoInterfaces.h"
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
#include "seq.h"
|
|
|
|
|
|
|
|
static NSString *errDomain = @"go.interfaces";
|
|
|
|
|
|
|
|
#define _DESCRIPTOR_ "interfaces"
|
|
|
|
|
|
|
|
#define _CALL_Add3_ 1
|
|
|
|
#define _CALL_Seven_ 2
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-06 15:55:50 +00:00
|
|
|
int32_t GoInterfacesAdd3(GoInterfacesI* r) {
|
2015-06-05 19:24:08 +00:00
|
|
|
GoSeq in_ = {};
|
|
|
|
GoSeq out_ = {};
|
|
|
|
go_seq_writeRef(&in_, r.ref);
|
|
|
|
go_seq_send(_DESCRIPTOR_, _CALL_Add3_, &in_, &out_);
|
|
|
|
int32_t ret0_ = go_seq_readInt32(&out_);
|
|
|
|
go_seq_free(&in_);
|
|
|
|
go_seq_free(&out_);
|
|
|
|
return ret0_;
|
|
|
|
}
|
|
|
|
|
2015-07-06 15:55:50 +00:00
|
|
|
GoInterfacesI* GoInterfacesSeven() {
|
2015-06-05 19:24:08 +00:00
|
|
|
GoSeq in_ = {};
|
|
|
|
GoSeq out_ = {};
|
|
|
|
go_seq_send(_DESCRIPTOR_, _CALL_Seven_, &in_, &out_);
|
|
|
|
GoSeqRef* ret0__ref = go_seq_readRef(&out_);
|
2015-07-06 15:55:50 +00:00
|
|
|
GoInterfacesI* ret0_ = ret0__ref.obj;
|
2015-06-05 19:24:08 +00:00
|
|
|
if (ret0_ == NULL) {
|
2015-07-06 15:55:50 +00:00
|
|
|
ret0_ = [[GoInterfacesI alloc] initWithRef:ret0__ref];
|
2015-06-05 19:24:08 +00:00
|
|
|
}
|
|
|
|
go_seq_free(&in_);
|
|
|
|
go_seq_free(&out_);
|
|
|
|
return ret0_;
|
|
|
|
}
|
|
|
|
|