summaryrefslogtreecommitdiffstats
path: root/healthd/healthd.h
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-09-10 12:40:00 -0700
committerTodd Poynor <toddpoynor@google.com>2013-09-17 14:41:07 -0700
commitc7464c9150eb63ad277cc5b5f704f4fd5e6678c5 (patch)
tree06aff1135a7ef66a7a3b64f1c478fe010f696ac6 /healthd/healthd.h
parent98c23d82f03fede6f434ad8800a7b3bb9175e348 (diff)
downloadsystem_core-c7464c9150eb63ad277cc5b5f704f4fd5e6678c5.zip
system_core-c7464c9150eb63ad277cc5b5f704f4fd5e6678c5.tar.gz
system_core-c7464c9150eb63ad277cc5b5f704f4fd5e6678c5.tar.bz2
healthd: move Android communication code to separate source
* add ops for different "modes" of healthd operation: android vs. recovery * recovery mode selected by runstring options -r * binder/Android communication moved to android mode * recovery mode ops avoiding binder service registration * "no service manager" flag removed; now handled by android vs. other modes Change-Id: I3d8c89bf96a18a6a00cc85306f9a07d3f408f2a0
Diffstat (limited to 'healthd/healthd.h')
-rw-r--r--healthd/healthd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/healthd/healthd.h b/healthd/healthd.h
index 41dde13..6e5f5a7 100644
--- a/healthd/healthd.h
+++ b/healthd/healthd.h
@@ -73,6 +73,15 @@ void healthd_battery_update();
android::status_t healthd_get_property(int id,
struct android::BatteryProperty *val);
+struct healthd_mode_ops {
+ void (*init)(struct healthd_config *config);
+ int (*preparetowait)(void);
+ void (*heartbeat)(void);
+ void (*battery_update)(struct android::BatteryProperties *props);
+};
+
+extern struct healthd_mode_ops *healthd_mode_ops;
+
// The following are implemented in libhealthd_board to handle board-specific
// behavior.
//