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.simple;
6
7using zx;
8
9struct Point {
10    int32 x;
11    int32 y;
12};
13
14enum Direction : uint32 {
15    Up = 0;
16    Down = 1;
17    Left = 2;
18    Right = 3;
19};
20
21[Layout = "Simple"]
22interface Drawing {
23    1: Draw(Point p, Direction d);
24    2: DrawLots(handle<vmo> commands) -> (int32 result, Point p);
25    3: DrawArray(array<Point>:4 points) -> (zx.status rv);
26    4: -> DrawSucceeded(uint32 draws);
27    5: Describe(string:64 one) -> (string:128 two);
28};
29