blob: 1edac3efd6d124977f41bf468e31c3722827a8d2 [file] [log] [blame]
// 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.
/// This library is for types only supported on fuchsia.
/// Where possible, new definitions should go into extra_messages.test.fidl
/// instead.
library fidl.test.coding.fuchsia;
using zx;
protocol LinearizerTest {
VectorOfUint32(struct {
v vector<uint32>;
});
VectorOfString(struct {
v vector<string>;
});
};
type StructWithHandle = resource struct {
h zx.handle;
foo int32;
};
type StructWithManyHandles = resource struct {
h1 zx.handle;
h2 zx.handle;
hs vector<zx.handle>:2;
};
type TableOfStructWithHandle = resource table {
1: a StructWithHandle;
2: b StructWithManyHandles;
};
type SmallerTableOfStructWithHandle = resource table {
1: reserved;
2: b StructWithManyHandles;
};