blob: 170ee41de5297ac3d92059739e0b4e36fdf9c68e [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.bluetooth.component;
/// States that a component can be in.
type LifecycleState = strict enum {
INITIALIZING = 0;
READY = 1;
};
/// Protocol for querying the lifecycle of a component beyond that which
/// is provided by zircon primitives.
@discoverable
closed protocol Lifecycle {
/// Hanging Get method for querying the `LifecycleState` of a component
strict GetState() -> (struct {
state LifecycleState;
});
};