blob: fc3866029c701fbf3e606196b102cb97c2c64384 [file] [log] [blame]
// Copyright 2021 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 fuchsia.starnix.developer;
using fuchsia.url;
using zx;
type ShellParams = resource table {
1: stdin zx.handle:SOCKET;
2: stdout zx.handle:SOCKET;
3: stderr zx.handle:SOCKET;
};
protocol ShellController {
-> OnTerminated(struct {
return_code int32;
});
};
@discoverable
protocol Manager {
Start(struct {
url fuchsia.url.Url;
}) -> ();
StartShell(resource struct {
params ShellParams;
controller server_end:ShellController;
});
};