| 1 |
// Code generated by gobind. DO NOT EDIT. |
| 2 |
|
| 3 |
// Package main is an autogenerated binder stub for package issue12328. |
| 4 |
// |
| 5 |
// autogenerated by gobind -lang=go issue12328 |
| 6 |
package main |
| 7 |
|
| 8 |
/* |
| 9 |
#include <stdlib.h> |
| 10 |
#include <stdint.h> |
| 11 |
#include "seq.h" |
| 12 |
#include "issue12328.h" |
| 13 |
|
| 14 |
*/ |
| 15 |
import "C" |
| 16 |
|
| 17 |
import ( |
| 18 |
_seq "golang.org/x/mobile/bind/seq" |
| 19 |
"issue12328" |
| 20 |
) |
| 21 |
|
| 22 |
// suppress the error if seq ends up unused |
| 23 |
var _ = _seq.FromRefNum |
| 24 |
|
| 25 |
//export proxyissue12328_T_Err_Set |
| 26 |
func proxyissue12328_T_Err_Set(refnum C.int32_t, v C.int32_t) { |
| 27 |
ref := _seq.FromRefNum(int32(refnum)) |
| 28 |
var _v error |
| 29 |
_v_ref := _seq.FromRefNum(int32(v)) |
| 30 |
if _v_ref != nil { |
| 31 |
if v < 0 { // go object |
| 32 |
_v = _v_ref.Get().(error) |
| 33 |
} else { // foreign object |
| 34 |
_v = (*proxy_error)(_v_ref) |
| 35 |
} |
| 36 |
} |
| 37 |
ref.Get().(*issue12328.T).Err = _v |
| 38 |
} |
| 39 |
|
| 40 |
//export proxyissue12328_T_Err_Get |
| 41 |
func proxyissue12328_T_Err_Get(refnum C.int32_t) C.int32_t { |
| 42 |
ref := _seq.FromRefNum(int32(refnum)) |
| 43 |
v := ref.Get().(*issue12328.T).Err |
| 44 |
var _v C.int32_t = _seq.NullRefNum |
| 45 |
if v != nil { |
| 46 |
_v = C.int32_t(_seq.ToRefNum(v)) |
| 47 |
} |
| 48 |
return _v |
| 49 |
} |
| 50 |
|
| 51 |
//export new_issue12328_T |
| 52 |
func new_issue12328_T() C.int32_t { |
| 53 |
return C.int32_t(_seq.ToRefNum(new(issue12328.T))) |
| 54 |
} |