2021-04-20 21:46:48 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace hex::init {
|
|
|
|
|
|
|
|
struct Task {
|
|
|
|
std::string name;
|
|
|
|
std::function<bool()> function;
|
2022-09-19 16:54:19 +02:00
|
|
|
bool async;
|
2021-04-20 21:46:48 +02:00
|
|
|
};
|
|
|
|
|
2023-10-11 22:38:54 +02:00
|
|
|
/**
|
|
|
|
* @brief Runs the exit tasks and print them to console
|
|
|
|
*/
|
|
|
|
void runExitTasks();
|
|
|
|
|
2021-04-20 21:46:48 +02:00
|
|
|
std::vector<Task> getInitTasks();
|
|
|
|
std::vector<Task> getExitTasks();
|
|
|
|
}
|