2021-12-05 00:50:37 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2022-02-18 01:21:54 +01:00
|
|
|
// system includes
|
|
|
|
|
#include <optional>
|
|
|
|
|
|
2021-12-05 00:50:37 +01:00
|
|
|
// 3rdparty lib includes
|
|
|
|
|
#include <arrayview.h>
|
2022-02-18 01:21:54 +01:00
|
|
|
#include <tl/expected.hpp>
|
2021-12-05 00:50:37 +01:00
|
|
|
|
2022-01-17 13:01:09 +01:00
|
|
|
// local includes
|
|
|
|
|
#include "bobbyschedulertask.h"
|
2021-12-05 00:50:37 +01:00
|
|
|
|
2022-01-17 13:01:09 +01:00
|
|
|
extern cpputils::ArrayView<BobbySchedulerTask> schedulerTasks;
|
2021-12-05 00:50:37 +01:00
|
|
|
|
2022-01-17 13:01:09 +01:00
|
|
|
extern const BobbySchedulerTask &drivingModeTask;
|
2021-12-19 23:25:52 +01:00
|
|
|
|
2021-12-05 00:50:37 +01:00
|
|
|
void sched_pushStats(bool printTasks);
|
2022-02-18 01:21:54 +01:00
|
|
|
|
|
|
|
|
tl::expected<bool, std::string> checkInitializedByName(std::string name);
|
|
|
|
|
|
|
|
|
|
bool checkEnabledByName(std::string name);
|