]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/command.h
Use a single endpoint for HID reports (#3951)
[qmk_firmware.git] / tmk_core / common / command.h
index 92b18849bf31dcaeac1918084c0cb93503af8259..c38f2b9e809d19efe656a8fde299e64d955013fc 100644 (file)
@@ -15,8 +15,9 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef COMMAND_H
-#define COMMAND
+#pragma once
+
+/* FIXME: Add doxygen comments for the behavioral defines in here. */
 
 /* TODO: Refactoring */
 typedef enum { ONESHOT, CONSOLE, MOUSEKEY } command_state_t;
@@ -27,6 +28,7 @@ bool command_extra(uint8_t code);
 bool command_console_extra(uint8_t code);
 
 #ifdef COMMAND_ENABLE
+uint8_t numkey2num(uint8_t code);
 bool command_proc(uint8_t code);
 #else
 #define command_proc(code)      false
@@ -152,5 +154,3 @@ bool command_proc(uint8_t code);
 
 #define XMAGIC_KC(key) KC_##key
 #define MAGIC_KC(key) XMAGIC_KC(key)
-
-#endif
\ No newline at end of file