blob: 2de8232765595e9d1faa129ce09ae383ea102fcf [file] [log] [blame]
// 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
protocol ProfileStore {
Open(resource struct {
key string:KEY_LENGTH;
channel server_end:Profile;
});
OpenReader(resource struct {
key string:KEY_LENGTH;
channel server_end:ProfileReader;
});
Delete(struct {
key string:KEY_LENGTH;
}) -> (struct {
success bool;
});
CreateOrOpen(resource struct {
key string:KEY_LENGTH;
channel server_end:Profile;
});
};
// [END profile_store_fidl]