| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
|---|---|
| 2 | |
| 3 | #pragma once |
| 4 | |
| 5 | #include <mos/mos_global.h> |
| 6 | |
| 7 | enum class UnitStatus |
| 8 | { |
| 9 | // Starting = 0, // default initial state, do not report |
| 10 | Started = 1, |
| 11 | Failed = 2, |
| 12 | Stopping = 3, |
| 13 | Stopped = 4, |
| 14 | }; |
| 15 | |
| 16 | MOSAPI bool ReportServiceState(UnitStatus status, const char *message); |
| 17 |