blob: 993d66e8107c9a3144081dcd111fcad5977cef8f [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library banjo.examples.example9;
enum EchoMe {
zero = 0;
one = 1;
};
struct EchoMore {
uint32 first;
uint64 second;
};
interface Echo {
Echo32(uint32 uint32) -> (uint32 response);
Echo64(uint64 uint64) -> (uint64 response);
EchoEnum(EchoMe req) -> (EchoMe response);
EchoHandle(handle req) -> (handle response);
EchoChannel(handle<channel> req) -> (handle<channel> response);
EchoStruct(EchoMore req) -> (EchoMore response);
};
const EchoMe favorite_echo = zero;