summaryrefslogtreecommitdiffstats
path: root/healthd/healthd.h
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-09-06 15:14:24 -0700
committerTodd Poynor <toddpoynor@google.com>2013-09-17 11:18:36 -0700
commit7b27f27d3de9e39d0de86c6e592d49bd4cc89158 (patch)
tree52c8fb62ebcd0c458a1ad86a8f5d410a7d6be1e4 /healthd/healthd.h
parentc2c5a2410a2d7861d3c4f07f039eb8c471741cfa (diff)
downloadsystem_core-7b27f27d3de9e39d0de86c6e592d49bd4cc89158.zip
system_core-7b27f27d3de9e39d0de86c6e592d49bd4cc89158.tar.gz
system_core-7b27f27d3de9e39d0de86c6e592d49bd4cc89158.tar.bz2
healthd: break link between BatteryMonitor and BatteryPropertiesRegistrar
Make it easier to later separate out binder-related code. Add helper functions healthd_battery_update(), healthd_get_property() to allow these operations without needing references to the BatteryMonitor object. Change-Id: Ie584bf53e5178ce0a098d0d940d6c311fdff62d4
Diffstat (limited to 'healthd/healthd.h')
-rw-r--r--healthd/healthd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/healthd/healthd.h b/healthd/healthd.h
index 5a1ad18..dc3f67e 100644
--- a/healthd/healthd.h
+++ b/healthd/healthd.h
@@ -18,6 +18,7 @@
#define _HEALTHD_H_
#include <batteryservice/BatteryService.h>
+#include <utils/Errors.h>
#include <utils/String8.h>
// periodic_chores_interval_fast, periodic_chores_interval_slow: intervals at
@@ -65,6 +66,12 @@ struct healthd_config {
android::String8 batteryChargeCounterPath;
};
+// Global helper functions
+
+void healthd_battery_update();
+android::status_t healthd_get_property(int id,
+ struct android::BatteryProperty *val);
+
// The following are implemented in libhealthd_board to handle board-specific
// behavior.
//