// 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 llcpptest.dispatcher.handle.ownership.test; | |
using zx; | |
type Resource = resource table { | |
1: handle zx.Handle:EVENTPAIR; | |
}; | |
closed protocol Protocol { | |
strict SendResource(resource struct { | |
r Resource; | |
}); | |
strict GetResource() -> (resource struct { | |
r Resource; | |
}); | |
strict -> ResourceEvent(resource struct { | |
r Resource; | |
}); | |
}; |