1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5library fidl.examples.example5;
6
7struct Point {
8    uint64 x;
9};
10
11union NotAPoint {
12    uint64 x;
13    uint32 y;
14    uint16 z;
15};
16
17enum Enum {
18    x = 23;
19};
20
21enum Enum2 : uint64 {
22    enum_0 = 0;
23    enum_1 = 23;
24};
25
26enum Enum23 : int32 {
27    enum_3 = 0;
28    enum_4 = -23;
29};
30
31[Discoverable]
32interface Thing {
33    1: one_function(string s, bool b) -> ();
34    0x2: two_function(string s, bool b);
35    3: three_function(string s, request<Thing> r);
36    4: four_function(string s, request<Thing> r) -> (handle<channel> r);
37};
38