diff options
Diffstat (limited to 'src/system_fsm/service_locator.cpp')
| -rw-r--r-- | src/system_fsm/service_locator.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/system_fsm/service_locator.cpp b/src/system_fsm/service_locator.cpp new file mode 100644 index 00000000..1d4d8a65 --- /dev/null +++ b/src/system_fsm/service_locator.cpp @@ -0,0 +1,21 @@ +/* + * Copyright 2023 jacqueline <me@jacqueline.id.au> + * + * SPDX-License-Identifier: GPL-3.0-only + */ + +#include "service_locator.hpp" + +#include <memory> + +#include "nvs.hpp" +#include "touchwheel.hpp" + +namespace system_fsm { + +auto ServiceLocator::instance() -> ServiceLocator& { + static ServiceLocator sInstance{}; + return sInstance; +} + +} // namespace system_fsm |
