blob: 3d8f160e2313f90d1387d55bd242209620c54494 [file]
// Copyright 2021 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.handles;
using zx;
type Container = resource struct {
a_handle zx.handle:CHANNEL;
another_handle zx.handle:CHANNEL;
};
@transport("Banjo")
protocol Doer {
DoSomething(resource struct {
the_handle zx.handle:CHANNEL;
}) -> ();
DoSomethingElse(resource struct {
the_handle_too zx.handle:CHANNEL;
}) -> ();
};