blob: 9f920bfae20015c5c2c7b5b1e9178d168a8ed2eb [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
// fidl_experiment = output_index_json
package service
import (
_bindings "syscall/zx/fidl"
)
const (
FirstProtocolMethodOnFirstOrdinal uint64 = 0x5828c91b57492931
)
type FirstProtocolWithCtxInterface _bindings.ChannelProxy
func (p *FirstProtocolWithCtxInterface) MethodOnFirst(ctx_ _bindings.Context) error {
var req_ _bindings.Message
err_ := ((*_bindings.ChannelProxy)(p)).Send(FirstProtocolMethodOnFirstOrdinal, req_)
return err_
}
type FirstProtocolWithCtx interface {
MethodOnFirst(ctx_ _bindings.Context) error
}
type FirstProtocolWithCtxInterfaceRequest _bindings.InterfaceRequest
func NewFirstProtocolWithCtxInterfaceRequest() (FirstProtocolWithCtxInterfaceRequest, *FirstProtocolWithCtxInterface, error) {
req, cli, err := _bindings.NewInterfaceRequest()
return FirstProtocolWithCtxInterfaceRequest(req), (*FirstProtocolWithCtxInterface)(cli), err
}
type FirstProtocolWithCtxStub struct {
Impl FirstProtocolWithCtx
}
func (s_ *FirstProtocolWithCtxStub) Dispatch(args_ _bindings.DispatchArgs) (_bindings.Message, bool, error) {
switch args_.Ordinal {
case FirstProtocolMethodOnFirstOrdinal:
err_ := s_.Impl.MethodOnFirst(args_.Ctx)
return nil, false, err_
}
return nil, false, _bindings.ErrUnknownOrdinal
}
type FirstProtocolEventProxy _bindings.ChannelProxy
const (
SecondProtocolMethodOnSecondOrdinal uint64 = 0x70b439758de25c44
)
type SecondProtocolWithCtxInterface _bindings.ChannelProxy
func (p *SecondProtocolWithCtxInterface) MethodOnSecond(ctx_ _bindings.Context) error {
var req_ _bindings.Message
err_ := ((*_bindings.ChannelProxy)(p)).Send(SecondProtocolMethodOnSecondOrdinal, req_)
return err_
}
type SecondProtocolWithCtx interface {
MethodOnSecond(ctx_ _bindings.Context) error
}
type SecondProtocolWithCtxInterfaceRequest _bindings.InterfaceRequest
func NewSecondProtocolWithCtxInterfaceRequest() (SecondProtocolWithCtxInterfaceRequest, *SecondProtocolWithCtxInterface, error) {
req, cli, err := _bindings.NewInterfaceRequest()
return SecondProtocolWithCtxInterfaceRequest(req), (*SecondProtocolWithCtxInterface)(cli), err
}
type SecondProtocolWithCtxStub struct {
Impl SecondProtocolWithCtx
}
func (s_ *SecondProtocolWithCtxStub) Dispatch(args_ _bindings.DispatchArgs) (_bindings.Message, bool, error) {
switch args_.Ordinal {
case SecondProtocolMethodOnSecondOrdinal:
err_ := s_.Impl.MethodOnSecond(args_.Ctx)
return nil, false, err_
}
return nil, false, _bindings.ErrUnknownOrdinal
}
type SecondProtocolEventProxy _bindings.ChannelProxy