diff options
author | Alex Deymo <deymo@google.com> | 2015-10-23 17:37:27 -0700 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2016-01-06 14:53:24 -0800 |
commit | f7ead8100211e7a285b48b52f4a235647274ab6e (patch) | |
tree | adc7a4b7f229ebbcd09e2030b27e272c17619a2a /update_status_utils.h | |
parent | d81584673de3c888bde40b473bb2685ba1c5cc2d (diff) |
Implement update_engine weave commands
The new WeaveServiceInterface abstracs the registration and interaction
with weave whenever present. The compilation and usage of weave is
based on the BRILLO_USE_WEAVE flag.
When enabled, update_engine registers the "_updater" component with
methods to force-check for an update and change channels.
Bug: 24386758
Bug: 24386768
Test: Deployed on edison, weave commands and state available online.
Change-Id: Ic49111772e123b8a2b1971da92fe65785f186ccd
Diffstat (limited to 'update_status_utils.h')
-rw-r--r-- | update_status_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/update_status_utils.h b/update_status_utils.h index 30ae53b7..9d851441 100644 --- a/update_status_utils.h +++ b/update_status_utils.h @@ -25,6 +25,10 @@ namespace chromeos_update_engine { const char* UpdateStatusToString(const update_engine::UpdateStatus& status); +// Convert the UpdateStatus |status| to the string reported in the weave status. +const char* UpdateStatusToWeaveStatus( + const update_engine::UpdateStatus& status); + bool StringToUpdateStatus(const std::string& update_status_as_string, update_engine::UpdateStatus* status); |