2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
2018-03-07 22:51:37 +01:00
|
|
|
// Package main is an autogenerated binder stub for package universe.
|
2017-01-09 22:35:14 +01:00
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=go
|
2018-03-07 22:51:37 +01:00
|
|
|
package main
|
2017-01-09 22:35:14 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "seq.h"
|
|
|
|
#include "universe.h"
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
_seq "golang.org/x/mobile/bind/seq"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress the error if seq ends up unused
|
|
|
|
var _ = _seq.FromRefNum
|
|
|
|
|
|
|
|
//export proxy_error_Error
|
|
|
|
func proxy_error_Error(refnum C.int32_t) C.nstring {
|
|
|
|
ref := _seq.FromRefNum(int32(refnum))
|
|
|
|
v := ref.Get().(error)
|
|
|
|
res_0 := v.Error()
|
|
|
|
_res_0 := encodeString(res_0)
|
|
|
|
return _res_0
|
|
|
|
}
|
|
|
|
|
|
|
|
type proxy_error _seq.Ref
|
|
|
|
|
2019-10-01 18:24:44 -04:00
|
|
|
func (p *proxy_error) Bind_proxy_refnum__() int32 {
|
|
|
|
return (*_seq.Ref)(p).Bind_IncNum()
|
|
|
|
}
|
2017-01-09 22:35:14 +01:00
|
|
|
|
|
|
|
func (p *proxy_error) Error() string {
|
|
|
|
res := C.cproxy_error_Error(C.int32_t(p.Bind_proxy_refnum__()))
|
|
|
|
_res := decodeString(res)
|
|
|
|
return _res
|
|
|
|
}
|