blob: bc2efa0c2ff586e8ea1c1fd4f2882c61abc58b4b [file]
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
deprecated_syntax;
library bindingstest;
using zx;
protocol Test1 {
Echo(string? in) -> (string? out);
NoResponse();
EmptyResponse() -> ();
TooManyBytesInResponse() -> (vector<uint8>:MAX out);
TooManyHandlesInResponse() -> (vector<zx.handle>:MAX out);
-> Surprise(string foo);
EchoHandleRights(zx.handle:<PORT, zx.rights.READ | zx.rights.TRANSFER | zx.rights.DUPLICATE> h) -> (uint32 rights);
};