figments: command: rewrite command api to use Task instances instead of static functions
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
class Platform : public Task {
|
||||
static int s_timezone;
|
||||
static char s_deviceID[15];
|
||||
|
||||
void doTaskList(Args& args, Print& out);
|
||||
void doTaskStop(Args& args, Print& out);
|
||||
void doTaskStart(Args& args, Print& out);
|
||||
__attribute__((noreturn)) void doSafeMode(Args& args, Print& out);
|
||||
__attribute__((noreturn)) void doReboot(Args& args, Print& out);
|
||||
public:
|
||||
Platform() : Task("Platform") {state = Task::Running;}
|
||||
static BootOptions bootopts;
|
||||
|
Reference in New Issue
Block a user