blob: 17459f9ad69345af449c0d006f9a9a2098ac6f46 [file] [log] [blame]
// Copyright 2019 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.blobfs;
using zx;
protocol Blobfs {
/// Assign the handler for blob corruption callbacks. Only one handler will receive callbacks at
/// any given time.
SetCorruptBlobHandler(resource struct {
handler client_end:CorruptBlobHandler;
}) -> (struct {
status zx.status;
protocol CorruptBlobHandler {
/// Notify that a particular blob is corrupted to the CorruptBlobHandler service.
CorruptBlob(struct {
merkleroot vector<uint8>:64;