github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/objc.go.golden (about)

     1  // Code generated by gobind. DO NOT EDIT.
     2  
     3  package ObjC
     4  
     5  // Used to silence this package not used errors
     6  const Dummy = 0
     7  
     8  type Foundation_NSString interface {
     9  }
    10  
    11  type Foundation_NSDate interface {
    12  }
    13  
    14  type Foundation_NSObjectC interface {
    15  }
    16  // Code generated by gobind. DO NOT EDIT.
    17  
    18  package main
    19  
    20  // #include "interfaces.h"
    21  import "C"
    22  
    23  import "ObjC"
    24  import _seq "github.com/F4RD1N/gomobile/bind/seq"
    25  
    26  type proxy interface{ Bind_proxy_refnum__() int32 }
    27  
    28  // Suppress unused package error
    29  
    30  var _ = _seq.FromRefNum
    31  
    32  const _ = ObjC.Dummy
    33  
    34  func init() {
    35  }
    36  
    37  type proxy_class_NSString _seq.Ref
    38  
    39  func (p *proxy_class_NSString) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
    40  
    41  func init() {
    42  }
    43  
    44  type proxy_class_NSDate _seq.Ref
    45  
    46  func (p *proxy_class_NSDate) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
    47  
    48  func init() {
    49  }
    50  
    51  type proxy_class_NSObjectC _seq.Ref
    52  
    53  func (p *proxy_class_NSObjectC) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
    54  // Code generated by gobind. DO NOT EDIT.
    55  
    56  // Package main is an autogenerated binder stub for package objc.
    57  //
    58  //   autogenerated by gobind -lang=go objc
    59  package main
    60  
    61  /*
    62  #include <stdlib.h>
    63  #include <stdint.h>
    64  #include "seq.h"
    65  #include "objc.h"
    66  
    67  */
    68  import "C"
    69  
    70  import (
    71  	_seq "github.com/F4RD1N/gomobile/bind/seq"
    72  )
    73  
    74  // suppress the error if seq ends up unused
    75  var _ = _seq.FromRefNum
    76  
    77  type proxyobjc_D _seq.Ref
    78  
    79  func (p *proxyobjc_D) Bind_proxy_refnum__() int32 {
    80  	return (*_seq.Ref)(p).Bind_IncNum()
    81  }
    82  
    83  type proxyobjc_O _seq.Ref
    84  
    85  func (p *proxyobjc_O) Bind_proxy_refnum__() int32 {
    86  	return (*_seq.Ref)(p).Bind_IncNum()
    87  }
    88  
    89  type proxyobjc_S _seq.Ref
    90  
    91  func (p *proxyobjc_S) Bind_proxy_refnum__() int32 {
    92  	return (*_seq.Ref)(p).Bind_IncNum()
    93  }