blob: 1cbcda00e3f8c2bb923a9bcd9b3128fd12cec493 [file] [log] [blame]
// Copyright 2020 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.validate.logs;
using fuchsia.mem;
using fuchsia.diagnostics.stream;
enum ValidateError {
UnsupportedRecord = 1;
};
[Discoverable]
protocol Validate {
/// Log takes a record and converts it into a buffer.
/// Returns an error if record contains unsupported type
Log(fuchsia.diagnostics.stream.Record record) -> (fuchsia.mem.Buffer result) error ValidateError;
};