diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/hooks.h | 7 | ||||
-rw-r--r-- | include/link_defs.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h index 59f982eaee..1481a756a0 100644 --- a/include/hooks.h +++ b/include/hooks.h @@ -116,6 +116,13 @@ enum hook_type { HOOK_POWER_BUTTON_CHANGE, /* + * Charge state machine status changed. + * + * Hook routines are called from the charger task. + */ + HOOK_CHARGE_STATE_CHANGE, + + /* * Periodic tick, every HOOK_TICK_INTERVAL. * * Hook routines will be called from the TICK task. diff --git a/include/link_defs.h b/include/link_defs.h index a8c54d4afe..a9c9e97e41 100644 --- a/include/link_defs.h +++ b/include/link_defs.h @@ -40,6 +40,8 @@ extern const struct hook_data __hooks_lid_change[]; extern const struct hook_data __hooks_lid_change_end[]; extern const struct hook_data __hooks_pwrbtn_change[]; extern const struct hook_data __hooks_pwrbtn_change_end[]; +extern const struct hook_data __hooks_charge_state_change[]; +extern const struct hook_data __hooks_charge_state_change_end[]; extern const struct hook_data __hooks_tick[]; extern const struct hook_data __hooks_tick_end[]; extern const struct hook_data __hooks_second[]; |