Working on command line processing.
This commit is contained in:
12
include/Commander.h
Normal file
12
include/Commander.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef KIMODEM_COMMANDER_H
|
||||
#define KIMODEM_COMMANDER_H
|
||||
|
||||
#include "Mode.h"
|
||||
|
||||
|
||||
#define MAX_COMMAND_LENGTH 80
|
||||
|
||||
|
||||
void CommandMode();
|
||||
|
||||
#endif
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef KIMODEM_PREFS_H
|
||||
#define KIMODEM_PREFS_H
|
||||
#ifndef KIMODEM_CONFIG_H
|
||||
#define KIMODEM_CONFIG_H
|
||||
|
||||
|
||||
namespace Config {
|
||||
|
||||
11
include/Mode.h
Normal file
11
include/Mode.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef KIMODEM_MODE_H
|
||||
#define KIMODEM_MODE_H
|
||||
|
||||
|
||||
static struct Mode {
|
||||
bool (*Process)();
|
||||
bool (*Update)();
|
||||
} *currentMode(nullptr);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user