diff options
Diffstat (limited to 'common/command.h')
| -rw-r--r-- | common/command.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/common/command.h b/common/command.h index be739fafe..b57a6c1ce 100644 --- a/common/command.h +++ b/common/command.h | |||
| @@ -18,10 +18,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | #ifndef COMMAND_H | 18 | #ifndef COMMAND_H |
| 19 | #define COMMAND | 19 | #define COMMAND |
| 20 | 20 | ||
| 21 | /* TODO: Refactoring */ | ||
| 22 | typedef enum { ONESHOT, CONSOLE, MOUSEKEY } command_state_t; | ||
| 23 | extern command_state_t command_state; | ||
| 24 | |||
| 25 | /* This allows to extend commands. Return false when command is not processed. */ | ||
| 26 | bool command_extra(uint8_t code); | ||
| 27 | bool command_console_extra(uint8_t code); | ||
| 28 | |||
| 21 | #ifdef COMMAND_ENABLE | 29 | #ifdef COMMAND_ENABLE |
| 22 | bool command_proc(uint8_t code); | 30 | bool command_proc(uint8_t code); |
| 23 | /* This allows to extend commands. Return 0 when command is not processed. */ | ||
| 24 | bool command_extra(uint8_t code); | ||
| 25 | #else | 31 | #else |
| 26 | #define command_proc(code) false | 32 | #define command_proc(code) false |
| 27 | #endif | 33 | #endif |
