github.com/acrespo/mobile@v0.0.0-20190107162257-dc0771356504/bind/testdata/underscores.go.golden (about)

     1  // Package main is an autogenerated binder stub for package underscore_pkg.
     2  //   gobind -lang=go underscores
     3  //
     4  // File is generated by gobind. Do not edit.
     5  package main
     6  
     7  /*
     8  #include <stdlib.h>
     9  #include <stdint.h>
    10  #include "seq.h"
    11  #include "underscore_pkg.h"
    12  
    13  */
    14  import "C"
    15  
    16  import (
    17  	_seq "golang.org/x/mobile/bind/seq"
    18  	"underscores"
    19  )
    20  
    21  // suppress the error if seq ends up unused
    22  var _ = _seq.FromRefNum
    23  
    24  //export proxyunderscore_pkg_Underscore_struct_Underscore_field_Set
    25  func proxyunderscore_pkg_Underscore_struct_Underscore_field_Set(refnum C.int32_t, v C.nstring) {
    26  	ref := _seq.FromRefNum(int32(refnum))
    27  	_v := decodeString(v)
    28  	ref.Get().(*underscore_pkg.Underscore_struct).Underscore_field = _v
    29  }
    30  
    31  //export proxyunderscore_pkg_Underscore_struct_Underscore_field_Get
    32  func proxyunderscore_pkg_Underscore_struct_Underscore_field_Get(refnum C.int32_t) C.nstring {
    33  	ref := _seq.FromRefNum(int32(refnum))
    34  	v := ref.Get().(*underscore_pkg.Underscore_struct).Underscore_field
    35  	_v := encodeString(v)
    36  	return _v
    37  }
    38  
    39  //export new_underscore_pkg_Underscore_struct
    40  func new_underscore_pkg_Underscore_struct() C.int32_t {
    41  	return C.int32_t(_seq.ToRefNum(new(underscore_pkg.Underscore_struct)))
    42  }
    43  
    44  //export var_setunderscore_pkg_Underscore_var
    45  func var_setunderscore_pkg_Underscore_var(v C.nint) {
    46  	_v := int(v)
    47  	underscore_pkg.Underscore_var = _v
    48  }
    49  
    50  //export var_getunderscore_pkg_Underscore_var
    51  func var_getunderscore_pkg_Underscore_var() C.nint {
    52  	v := underscore_pkg.Underscore_var
    53  	_v := C.nint(v)
    54  	return _v
    55  }
    56  
    57  //export proxyunderscore_pkg__Underscore_func
    58  func proxyunderscore_pkg__Underscore_func() {
    59  	underscore_pkg.Underscore_func()
    60  }