diff options
author | Todd Poynor <toddpoynor@google.com> | 2013-09-09 12:09:08 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2013-09-17 14:41:07 -0700 |
commit | fea5b4d44b2f646a4befb6be92ddc3987b38bb36 (patch) | |
tree | 7d298cdbfbddcf59fd6ab4031bdff562fe4e62f1 /healthd/healthd.h | |
parent | c7464c9150eb63ad277cc5b5f704f4fd5e6678c5 (diff) | |
download | system_core-fea5b4d44b2f646a4befb6be92ddc3987b38bb36.zip system_core-fea5b4d44b2f646a4befb6be92ddc3987b38bb36.tar.gz system_core-fea5b4d44b2f646a4befb6be92ddc3987b38bb36.tar.bz2 |
healthd: move charger executable to healthd charger mode
* Add healthd charger mode ops
* Check for executable invocation as "charger", set charger mode if so
* Incorporate charger executable as healthd charger mode
Change-Id: I4a44e7a4c3a65ae9be94491f7f498aa48d4f8a84
Diffstat (limited to 'healthd/healthd.h')
-rw-r--r-- | healthd/healthd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/healthd/healthd.h b/healthd/healthd.h index 6e5f5a7..fb9504a 100644 --- a/healthd/healthd.h +++ b/healthd/healthd.h @@ -82,6 +82,14 @@ struct healthd_mode_ops { extern struct healthd_mode_ops *healthd_mode_ops; +// Charger mode + +void healthd_mode_charger_init(struct healthd_config *config); +int healthd_mode_charger_preparetowait(void); +void healthd_mode_charger_heartbeat(void); +void healthd_mode_charger_battery_update( + struct android::BatteryProperties *props); + // The following are implemented in libhealthd_board to handle board-specific // behavior. // |