| 1 |
// Code generated by gobind. DO NOT EDIT. |
| 2 |
|
| 3 |
// Package main is an autogenerated binder stub for package aliases. |
| 4 |
// |
| 5 |
// autogenerated by gobind -lang=go aliases |
| 6 |
package main |
| 7 |
|
| 8 |
/* |
| 9 |
#include <stdlib.h> |
| 10 |
#include <stdint.h> |
| 11 |
#include "seq.h" |
| 12 |
#include "aliases.h" |
| 13 |
|
| 14 |
*/ |
| 15 |
import "C" |
| 16 |
|
| 17 |
import ( |
| 18 |
_seq "golang.org/x/mobile/bind/seq" |
| 19 |
"aliases" |
| 20 |
) |
| 21 |
|
| 22 |
// suppress the error if seq ends up unused |
| 23 |
var _ = _seq.FromRefNum |
| 24 |
|
| 25 |
//export new_aliases_S |
| 26 |
func new_aliases_S() C.int32_t { |
| 27 |
return C.int32_t(_seq.ToRefNum(new(aliases.S))) |
| 28 |
} |
| 29 |
|
| 30 |
//export proxyaliases__TakesAByte |
| 31 |
func proxyaliases__TakesAByte(param_a C.uint8_t) { |
| 32 |
_param_a := byte(param_a) |
| 33 |
aliases.TakesAByte(_param_a) |
| 34 |
} |
| 35 |
|
| 36 |
//export proxyaliases__TakesAByteSlice |
| 37 |
func proxyaliases__TakesAByteSlice(param_a C.nbyteslice) { |
| 38 |
_param_a := toSlice(param_a, false) |
| 39 |
aliases.TakesAByteSlice(_param_a) |
| 40 |
} |
| 41 |
|
| 42 |
//export proxyaliases__TakesAByteSliceAlias |
| 43 |
func proxyaliases__TakesAByteSliceAlias(param_a C.nbyteslice) { |
| 44 |
_param_a := toSlice(param_a, false) |
| 45 |
aliases.TakesAByteSliceAlias(_param_a) |
| 46 |
} |
| 47 |
|
| 48 |
//export proxyaliases__TakesAStructPtr |
| 49 |
func proxyaliases__TakesAStructPtr(param_a C.int32_t) { |
| 50 |
// Must be a Go object |
| 51 |
var _param_a *aliases.S |
| 52 |
if _param_a_ref := _seq.FromRefNum(int32(param_a)); _param_a_ref != nil { |
| 53 |
_param_a = _param_a_ref.Get().(*aliases.S) |
| 54 |
} |
| 55 |
aliases.TakesAStructPtr(_param_a) |
| 56 |
} |
| 57 |
|
| 58 |
//export proxyaliases__TakesAStructPtrAlias |
| 59 |
func proxyaliases__TakesAStructPtrAlias(param_a C.int32_t) { |
| 60 |
// Must be a Go object |
| 61 |
var _param_a *aliases.S |
| 62 |
if _param_a_ref := _seq.FromRefNum(int32(param_a)); _param_a_ref != nil { |
| 63 |
_param_a = _param_a_ref.Get().(*aliases.S) |
| 64 |
} |
| 65 |
aliases.TakesAStructPtrAlias(_param_a) |
| 66 |
} |