| // Copyright 2020 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 fidl.test.llcpp.basictypes; |
| |
| using zx; |
| |
| [ForDeprecatedCBindings] |
| resource struct SimpleStruct { |
| int32 field; |
| zx.handle:EVENTPAIR ep; |
| array<array<zx.handle:EVENTPAIR>:4>:5 arr; |
| }; |
| |
| /// Test interface implemented by both C and LLCPP |
| [ForDeprecatedCBindings] |
| protocol TestInterface { |
| /// Verifies that all the handles are valid channels, then returns |
| /// `ZX_OK` and loops back the field member. Otherwise, returns an error. |
| ConsumeSimpleStruct(SimpleStruct arg) -> (zx.status status, int32 field); |
| }; |