blob: b4717e89c1961ce263ccf2914ded376979323a93 [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 test.benchmarkfidl;
// Based on fuchsia.media.StreamSource.StreamPacket, used in
// AudioCapturerOnPacketProducedEvent:
type StreamPacket = struct {
@allow_deprecated_struct_defaults
pts int64 = 0x7fffffffffffffff;
payload_buffer_id uint32;
payload_offset uint64;
payload_size uint64;
@allow_deprecated_struct_defaults
flags uint32 = 0;
@allow_deprecated_struct_defaults
buffer_config uint64 = 0;
@allow_deprecated_struct_defaults
stream_segment_id uint64 = 0;
};
closed protocol StreamPacketEventProtocol {
strict -> Send(struct {
val StreamPacket;
});
};
closed protocol StreamPacketEchoCall {
strict Echo(struct {
val StreamPacket;
}) -> (struct {
val StreamPacket;
});
};
@transport("Driver")
closed protocol StreamPacketEchoCallDriver {
strict Echo(struct {
val StreamPacket;
}) -> (struct {
val StreamPacket;
});
};