Using the new ObjC type analyzer API, scan the bound packages for references to ObjC classes and protocols and generate Go wrappers for them. This is the second part of the implementation of proposal golang/go#17102. For golang/go#17102 Change-Id: I773db7b0362a7ff526d0a0fd6da5b2fa33301144 Reviewed-on: https://go-review.googlesource.com/29174 Reviewed-by: David Crawshaw <crawshaw@golang.org>
120 lines
2.7 KiB
Plaintext
120 lines
2.7 KiB
Plaintext
//File is generated by gobind. Do not edit.
|
|
|
|
package ObjC
|
|
|
|
// Used to silence this package not used errors
|
|
const Dummy = 0
|
|
|
|
type Foundation_NSString interface {
|
|
Super() Foundation_NSString
|
|
}
|
|
|
|
type Foundation_NSDate interface {
|
|
Super() Foundation_NSDate
|
|
}
|
|
|
|
type Foundation_NSObjectC interface {
|
|
Super() Foundation_NSObjectC
|
|
}
|
|
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
package gomobile_bind
|
|
|
|
// #cgo CFLAGS: -fobjc-arc -fmodules -fblocks
|
|
// #include "interfaces.h"
|
|
import "C"
|
|
|
|
import "ObjC"
|
|
import _seq "golang.org/x/mobile/bind/seq"
|
|
|
|
type proxy interface { Bind_proxy_refnum__() int32 }
|
|
|
|
// Suppress unused package error
|
|
|
|
var _ = _seq.FromRefNum
|
|
const _ = ObjC.Dummy
|
|
|
|
func init() {
|
|
}
|
|
|
|
type proxy_class_NSString _seq.Ref
|
|
|
|
func (p *proxy_class_NSString) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
|
|
|
|
func (p *proxy_class_NSString) Super() ObjC.Foundation_NSString {
|
|
return &super_NSString{p}
|
|
}
|
|
|
|
type super_NSString struct {*proxy_class_NSString}
|
|
|
|
func init() {
|
|
}
|
|
|
|
type proxy_class_NSDate _seq.Ref
|
|
|
|
func (p *proxy_class_NSDate) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
|
|
|
|
func (p *proxy_class_NSDate) Super() ObjC.Foundation_NSDate {
|
|
return &super_NSDate{p}
|
|
}
|
|
|
|
type super_NSDate struct {*proxy_class_NSDate}
|
|
|
|
func init() {
|
|
}
|
|
|
|
type proxy_class_NSObjectC _seq.Ref
|
|
|
|
func (p *proxy_class_NSObjectC) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
|
|
|
|
func (p *proxy_class_NSObjectC) Super() ObjC.Foundation_NSObjectC {
|
|
return &super_NSObjectC{p}
|
|
}
|
|
|
|
type super_NSObjectC struct {*proxy_class_NSObjectC}
|
|
|
|
// Package gomobile_bind is an autogenerated binder stub for package objc.
|
|
// gobind -lang=go objc
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
package gomobile_bind
|
|
|
|
/*
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include "seq.h"
|
|
#include "objc.h"
|
|
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
_seq "golang.org/x/mobile/bind/seq"
|
|
)
|
|
|
|
// suppress the error if seq ends up unused
|
|
var _ = _seq.FromRefNum
|
|
|
|
// skipped method D.Super with unsupported parameter or return types
|
|
|
|
type proxyobjc_D _seq.Ref
|
|
|
|
func (p *proxyobjc_D) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
|
|
|
|
// skipped method D.Super with unsupported parameter or result types
|
|
// skipped method O.Super with unsupported parameter or return types
|
|
|
|
type proxyobjc_O _seq.Ref
|
|
|
|
func (p *proxyobjc_O) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
|
|
|
|
// skipped method O.Super with unsupported parameter or result types
|
|
// skipped method S.Super with unsupported parameter or return types
|
|
|
|
type proxyobjc_S _seq.Ref
|
|
|
|
func (p *proxyobjc_S) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
|
|
|
|
// skipped method S.Super with unsupported parameter or result types
|