| // Copyright 2022 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.examples.diagnostics; |
| |
| // [START profile_store_fidl] |
| @discoverable |
| closed protocol ProfileStore { |
| strict Open(resource struct { |
| key string:KEY_LENGTH; |
| channel server_end:Profile; |
| }); |
| |
| strict OpenReader(resource struct { |
| key string:KEY_LENGTH; |
| channel server_end:ProfileReader; |
| }); |
| |
| strict Delete(struct { |
| key string:KEY_LENGTH; |
| }) -> (struct { |
| success bool; |
| }); |
| |
| strict CreateOrOpen(resource struct { |
| key string:KEY_LENGTH; |
| channel server_end:Profile; |
| }); |
| }; |
| // [END profile_store_fidl] |