44 lines
969 B
Plaintext
44 lines
969 B
Plaintext
// 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
|
|
|
|
|
|
|
|
int32_t GoInterfacesAdd3(GoInterfacesI* r) {
|
|
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_;
|
|
}
|
|
|
|
GoInterfacesI* GoInterfacesSeven() {
|
|
GoSeq in_ = {};
|
|
GoSeq out_ = {};
|
|
go_seq_send(_DESCRIPTOR_, _CALL_Seven_, &in_, &out_);
|
|
GoSeqRef* ret0__ref = go_seq_readRef(&out_);
|
|
GoInterfacesI* ret0_ = ret0__ref.obj;
|
|
if (ret0_ == NULL) {
|
|
ret0_ = [[GoInterfacesI alloc] initWithRef:ret0__ref];
|
|
}
|
|
go_seq_free(&in_);
|
|
go_seq_free(&out_);
|
|
return ret0_;
|
|
}
|
|
|