blob: 85a674526cbc55460336f9a93dac959bba1fd117 [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
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]