| // Code generated by fidlgen; DO NOT EDIT. |
| |
| package name |
| |
| import ( |
| _bindings "syscall/zx/fidl" |
| ) |
| |
| const ( |
| FirstProtocolMethodOnFirstOrdinal uint64 = 0x2838a83100000000 |
| FirstProtocolMethodOnFirstGenOrdinal uint64 = 0x580cbd0d43ccbe3b |
| ) |
| |
| type FirstProtocolWithCtxInterface _bindings.ChannelProxy |
| |
| func (p *FirstProtocolWithCtxInterface) MethodOnFirst(ctx_ _bindings.Context) error { |
| var req_ _bindings.Message |
| err_ := ((*_bindings.ChannelProxy)(p)).Send(FirstProtocolMethodOnFirstGenOrdinal, req_) |
| return err_ |
| } |
| |
| type FirstProtocolWithCtx interface { |
| MethodOnFirst(ctx_ _bindings.Context) error |
| } |
| |
| type FirstProtocolWithCtxTransitionalBase struct{} |
| |
| 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: |
| fallthrough |
| case FirstProtocolMethodOnFirstGenOrdinal: |
| err_ := s_.Impl.MethodOnFirst(args_.Ctx) |
| return nil, false, err_ |
| } |
| return nil, false, _bindings.ErrUnknownOrdinal |
| } |
| |
| type FirstProtocolService struct { |
| _bindings.BindingSet |
| } |
| |
| func (s *FirstProtocolService) EventProxyFor(key _bindings.BindingKey) (*FirstProtocolEventProxy, bool) { |
| pxy, err := s.BindingSet.ProxyFor(key) |
| return (*FirstProtocolEventProxy)(pxy), err |
| } |
| |
| type FirstProtocolEventProxy _bindings.ChannelProxy |
| |
| const ( |
| SecondProtocolMethodOnSecondOrdinal uint64 = 0xd09c00f00000000 |
| SecondProtocolMethodOnSecondGenOrdinal uint64 = 0x5785f9c1f2aece21 |
| ) |
| |
| type SecondProtocolWithCtxInterface _bindings.ChannelProxy |
| |
| func (p *SecondProtocolWithCtxInterface) MethodOnSecond(ctx_ _bindings.Context) error { |
| var req_ _bindings.Message |
| err_ := ((*_bindings.ChannelProxy)(p)).Send(SecondProtocolMethodOnSecondGenOrdinal, req_) |
| return err_ |
| } |
| |
| type SecondProtocolWithCtx interface { |
| MethodOnSecond(ctx_ _bindings.Context) error |
| } |
| |
| type SecondProtocolWithCtxTransitionalBase struct{} |
| |
| 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: |
| fallthrough |
| case SecondProtocolMethodOnSecondGenOrdinal: |
| err_ := s_.Impl.MethodOnSecond(args_.Ctx) |
| return nil, false, err_ |
| } |
| return nil, false, _bindings.ErrUnknownOrdinal |
| } |
| |
| type SecondProtocolService struct { |
| _bindings.BindingSet |
| } |
| |
| func (s *SecondProtocolService) EventProxyFor(key _bindings.BindingKey) (*SecondProtocolEventProxy, bool) { |
| pxy, err := s.BindingSet.ProxyFor(key) |
| return (*SecondProtocolEventProxy)(pxy), err |
| } |
| |
| type SecondProtocolEventProxy _bindings.ChannelProxy |