Altered signature of callback functions

pull/4697/head
Thomas Baart 6 years ago
parent 754350cc34
commit 3cf4965ec7

@ -62,12 +62,12 @@ void oneshot_locked_mods_set_kb(uint8_t mods) {
/** \brief Callback which is called when the one shot modifiers have been locked. /** \brief Callback which is called when the one shot modifiers have been locked.
*/ */
__attribute__((weak)) __attribute__((weak))
void oneshot_locked_mods_cleared_user() { } void oneshot_locked_mods_cleared_user(void) { }
/** \brief Callback which is called when the locked one shot modifiers have been locked. /** \brief Callback which is called when the locked one shot modifiers have been locked.
*/ */
__attribute__((weak)) __attribute__((weak))
void oneshot_locked_mods_cleared_kb() { void oneshot_locked_mods_cleared_kb(void) {
oneshot_locked_mods_cleared_user(); oneshot_locked_mods_cleared_user();
} }
@ -79,7 +79,7 @@ void oneshot_mods_set_user(uint8_t mods) { }
/** \brief Callback which is called when the one shot modifiers have been cleared. /** \brief Callback which is called when the one shot modifiers have been cleared.
*/ */
__attribute__((weak)) __attribute__((weak))
void oneshot_mods_cleared_user() { } void oneshot_mods_cleared_user(void) { }
/** \brief Callback which is called when the one shot modifiers have been set. /** \brief Callback which is called when the one shot modifiers have been set.
*/ */

@ -30,12 +30,12 @@ void send_keyboard_report(void);
void oneshot_locked_mods_set_user(uint8_t mods); void oneshot_locked_mods_set_user(uint8_t mods);
void oneshot_locked_mods_set_kb(uint8_t mods); void oneshot_locked_mods_set_kb(uint8_t mods);
void oneshot_locked_mods_cleared_user(); void oneshot_locked_mods_cleared_user(void);
void oneshot_locked_mods_cleared_kb(); void oneshot_locked_mods_cleared_kb(void);
void oneshot_mods_set_user(uint8_t mods); void oneshot_mods_set_user(uint8_t mods);
void oneshot_mods_set_kb(uint8_t mods); void oneshot_mods_set_kb(uint8_t mods);
void oneshot_mods_cleared_user(); void oneshot_mods_cleared_user(void);
void oneshot_mods_cleared_kb(); void oneshot_mods_cleared_kb(void);
/* key */ /* key */
inline void add_key(uint8_t key) { inline void add_key(uint8_t key) {

Loading…
Cancel
Save