summaryrefslogtreecommitdiff
path: root/common/command.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-07-01 04:02:10 +0900
committertmk <nobody@nowhere>2014-07-30 14:38:25 +0900
commit47bc3016d36cbfd83904fff5947acb6436dd37c3 (patch)
tree11aca2e377b5c6acb70508b471f9c3e0f90c0052 /common/command.h
parent4069776c022502f117b83b66c5a71700135acfbc (diff)
Ad hoc fix of command API
Diffstat (limited to 'common/command.h')
-rw-r--r--common/command.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/common/command.h b/common/command.h
index be739fafe8..b57a6c1ced 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/>.
#ifndef COMMAND_H
#define COMMAND
+/* TODO: Refactoring */
+typedef enum { ONESHOT, CONSOLE, MOUSEKEY } command_state_t;
+extern command_state_t command_state;
+
+/* This allows to extend commands. Return false when command is not processed. */
+bool command_extra(uint8_t code);
+bool command_console_extra(uint8_t code);
+
#ifdef COMMAND_ENABLE
bool command_proc(uint8_t code);
-/* This allows to extend commands. Return 0 when command is not processed. */
-bool command_extra(uint8_t code);
#else
#define command_proc(code) false
#endif