1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// SPDX-License-Identifier: GPL-2.0 #include "applicationstate.h" static ApplicationState appState = (ApplicationState)-1; // Set to an invalid value ApplicationState getAppState() { return appState; } void setAppState(ApplicationState state) { appState = state; }