blob: 1b6791b6b0edac0e525912679d448cc5530e87d6 [file] [log] [blame] [edit]
// Copyright 2022 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 test.driverhandle;
using zx;
@transport("Driver")
closed protocol DriverProtocol {};
@bindings_denylist("rust, cpp, hlcpp, dart, go, libfuzzer")
type ClientEndWrapper = resource struct {
value client_end:DriverProtocol;
};
@bindings_denylist("rust, cpp, hlcpp, dart, go, libfuzzer")
type ServerEndWrapper = resource struct {
value server_end:DriverProtocol;
};
@transport("Driver")
@bindings_denylist("rust, cpp, hlcpp, dart, go, libfuzzer")
closed protocol HandlesInProtocol {
strict SendHandles(resource struct {
t resource table {
1: zircon_handle zx.Handle:EVENT;
2: fdf_handle client_end:DriverProtocol;
};
});
};