1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5library banjo.examples.example9;
6
7enum EchoMe {
8    zero = 0;
9    one = 1;
10};
11
12struct EchoMore {
13    uint32 first;
14    uint64 second;
15};
16
17interface Echo {
18    Echo32(uint32 uint32) -> (uint32 response);
19    Echo64(uint64 uint64) -> (uint64 response);
20    EchoEnum(EchoMe req) -> (EchoMe response);
21    EchoHandle(handle req) -> (handle response);
22    EchoChannel(handle<channel> req) -> (handle<channel> response);
23    EchoStruct(EchoMore req) -> (EchoMore response);
24};
25
26const EchoMe favorite_echo = zero;
27