| // Code generated by gobind. DO NOT EDIT. |
| |
| // Package main is an autogenerated binder stub for package aliases. |
| // |
| // autogenerated by gobind -lang=go aliases |
| package main |
| |
| /* |
| #include <stdlib.h> |
| #include <stdint.h> |
| #include "seq.h" |
| #include "aliases.h" |
| |
| */ |
| import "C" |
| |
| import ( |
| _seq "golang.org/x/mobile/bind/seq" |
| "aliases" |
| ) |
| |
| // suppress the error if seq ends up unused |
| var _ = _seq.FromRefNum |
| |
| //export new_aliases_S |
| func new_aliases_S() C.int32_t { |
| return C.int32_t(_seq.ToRefNum(new(aliases.S))) |
| } |
| |
| //export proxyaliases__TakesAByte |
| func proxyaliases__TakesAByte(param_a C.uint8_t) { |
| _param_a := byte(param_a) |
| aliases.TakesAByte(_param_a) |
| } |
| |
| //export proxyaliases__TakesAByteSlice |
| func proxyaliases__TakesAByteSlice(param_a C.nbyteslice) { |
| _param_a := toSlice(param_a, false) |
| aliases.TakesAByteSlice(_param_a) |
| } |
| |
| //export proxyaliases__TakesAByteSliceAlias |
| func proxyaliases__TakesAByteSliceAlias(param_a C.nbyteslice) { |
| _param_a := toSlice(param_a, false) |
| aliases.TakesAByteSliceAlias(_param_a) |
| } |
| |
| //export proxyaliases__TakesAStructPtr |
| func proxyaliases__TakesAStructPtr(param_a C.int32_t) { |
| // Must be a Go object |
| var _param_a *aliases.S |
| if _param_a_ref := _seq.FromRefNum(int32(param_a)); _param_a_ref != nil { |
| _param_a = _param_a_ref.Get().(*aliases.S) |
| } |
| aliases.TakesAStructPtr(_param_a) |
| } |
| |
| //export proxyaliases__TakesAStructPtrAlias |
| func proxyaliases__TakesAStructPtrAlias(param_a C.int32_t) { |
| // Must be a Go object |
| var _param_a *aliases.S |
| if _param_a_ref := _seq.FromRefNum(int32(param_a)); _param_a_ref != nil { |
| _param_a = _param_a_ref.Get().(*aliases.S) |
| } |
| aliases.TakesAStructPtrAlias(_param_a) |
| } |