Translate error type to NSError. Interface type is not supported yet. Change-Id: I54abba2360cff41ef8ca08063b0120e7edd65a47 Reviewed-on: https://go-review.googlesource.com/10793 Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
44 lines
975 B
Plaintext
44 lines
975 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 GoInterfaces_Add3(GoInterfaces_I* 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_;
|
|
}
|
|
|
|
GoInterfaces_I* GoInterfaces_Seven() {
|
|
GoSeq in_ = {};
|
|
GoSeq out_ = {};
|
|
go_seq_send(_DESCRIPTOR_, _CALL_Seven_, &in_, &out_);
|
|
GoSeqRef* ret0__ref = go_seq_readRef(&out_);
|
|
GoInterfaces_I* ret0_ = ret0__ref.obj;
|
|
if (ret0_ == NULL) {
|
|
ret0_ = [[GoInterfaces_I alloc] initWithRef:ret0__ref];
|
|
}
|
|
go_seq_free(&in_);
|
|
go_seq_free(&out_);
|
|
return ret0_;
|
|
}
|
|
|