blob: 3a6096ffa2b73b4109406c0cf6fa75df55bd3168 [file]
// 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.
deprecated_syntax;
library fuchsia.component.test;
/// A 32-bit counter.
protocol Counter {
/// Return the current counter value, then increment it.
GetAndIncrement() -> (uint32 response);
};
/// A new, 64-bit counter.
protocol CounterV2 {
/// Return the current counter value, then increment it.
GetAndIncrement() -> (uint64 response);
};
/// Provides the old legacy 32-bit counter as well as a new 64-bit counter.
service CounterService {
Counter counter;
CounterV2 counter_v2;
};