22 lines
385 B
C
22 lines
385 B
C
#ifndef COMMAND_PROCESSOR_H
|
|
#define COMMAND_PROCESSOR_H
|
|
|
|
enum CommandAction {
|
|
CMD_NONE,
|
|
CMD_REFRESH,
|
|
CMD_CLEAR,
|
|
CMD_SCAN,
|
|
CMD_CONNECT,
|
|
CMD_STATUS,
|
|
CMD_IMAGE,
|
|
CMD_UNKNOWN
|
|
};
|
|
|
|
/**
|
|
* Parses a string to check if it is a command.
|
|
* Returns the corresponding CommandAction.
|
|
*/
|
|
CommandAction parse_command(const char* input);
|
|
|
|
#endif // COMMAND_PROCESSOR_H
|