blob: 2491c4eb44036d53ed35acb936edba6da7f60b54 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
// fidl_experiment = output_index_json
package inheritance
import (
_bindings "syscall/zx/fidl"
)
type SuperFooRequest struct {
_ struct{} `fidl:"s" fidl_size_v2:"16" fidl_alignment_v2:"8"`
S string `fidl_offset_v2:"0" fidl_bounds:""`
}
var _mSuperFooRequest = _bindings.CreateLazyMarshaler(SuperFooRequest{})
func (msg *SuperFooRequest) Marshaler() _bindings.Marshaler {
return _mSuperFooRequest
}
type SuperFooResponse struct {
_ struct{} `fidl:"s" fidl_size_v2:"8" fidl_alignment_v2:"8"`
Y int64 `fidl_offset_v2:"0"`
}
var _mSuperFooResponse = _bindings.CreateLazyMarshaler(SuperFooResponse{})
func (msg *SuperFooResponse) Marshaler() _bindings.Marshaler {
return _mSuperFooResponse
}
const (
SubFooOrdinal uint64 = 0x68a61c2a230db8b8
)
type SubWithCtxInterface _bindings.ChannelProxy
func (p *SubWithCtxInterface) Foo(ctx_ _bindings.Context, s string) (int64, error) {
req_ := &SuperFooRequest{S: s}
resp_ := &SuperFooResponse{}
err_ := ((*_bindings.ChannelProxy)(p)).Call(SubFooOrdinal, req_, resp_)
return (*resp_).Y, err_
}
type SubWithCtx interface {
Foo(ctx_ _bindings.Context, s string) (int64, error)
}
type SubWithCtxInterfaceRequest _bindings.InterfaceRequest
func NewSubWithCtxInterfaceRequest() (SubWithCtxInterfaceRequest, *SubWithCtxInterface, error) {
req, cli, err := _bindings.NewInterfaceRequest()
return SubWithCtxInterfaceRequest(req), (*SubWithCtxInterface)(cli), err
}
type SubWithCtxStub struct {
Impl SubWithCtx
}
func (s_ *SubWithCtxStub) Dispatch(args_ _bindings.DispatchArgs) (_bindings.Message, bool, error) {
switch args_.Ordinal {
case SubFooOrdinal:
in_ := &SuperFooRequest{}
marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
if !ok {
return nil, false, _bindings.ErrMissingMarshalerContext
}
if err_ := _bindings.Unmarshal(marshalerCtx, args_.Bytes, args_.HandleInfos, in_); err_ != nil {
return nil, false, err_
}
y, err_ := s_.Impl.Foo(args_.Ctx, (*in_).S)
out_ := &SuperFooResponse{Y: y}
return out_, true, err_
}
return nil, false, _bindings.ErrUnknownOrdinal
}
type SubEventProxy _bindings.ChannelProxy
const (
SuperFooOrdinal uint64 = 0x68a61c2a230db8b8
)
type SuperWithCtxInterface _bindings.ChannelProxy
func (p *SuperWithCtxInterface) Foo(ctx_ _bindings.Context, s string) (int64, error) {
req_ := &SuperFooRequest{S: s}
resp_ := &SuperFooResponse{}
err_ := ((*_bindings.ChannelProxy)(p)).Call(SuperFooOrdinal, req_, resp_)
return (*resp_).Y, err_
}
type SuperWithCtx interface {
Foo(ctx_ _bindings.Context, s string) (int64, error)
}
type SuperWithCtxInterfaceRequest _bindings.InterfaceRequest
func NewSuperWithCtxInterfaceRequest() (SuperWithCtxInterfaceRequest, *SuperWithCtxInterface, error) {
req, cli, err := _bindings.NewInterfaceRequest()
return SuperWithCtxInterfaceRequest(req), (*SuperWithCtxInterface)(cli), err
}
type SuperWithCtxStub struct {
Impl SuperWithCtx
}
func (s_ *SuperWithCtxStub) Dispatch(args_ _bindings.DispatchArgs) (_bindings.Message, bool, error) {
switch args_.Ordinal {
case SuperFooOrdinal:
in_ := &SuperFooRequest{}
marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
if !ok {
return nil, false, _bindings.ErrMissingMarshalerContext
}
if err_ := _bindings.Unmarshal(marshalerCtx, args_.Bytes, args_.HandleInfos, in_); err_ != nil {
return nil, false, err_
}
y, err_ := s_.Impl.Foo(args_.Ctx, (*in_).S)
out_ := &SuperFooResponse{Y: y}
return out_, true, err_
}
return nil, false, _bindings.ErrUnknownOrdinal
}
type SuperEventProxy _bindings.ChannelProxy