diff options
author | Xiaoyin Hu <xiaoyinh@chromium.org> | 2016-06-08 13:11:17 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-06-09 13:50:54 -0700 |
commit | 2f7d2849ad7d9fb8f82a19cedb1b972fda6be98c (patch) | |
tree | 67b45da35df607579c240753db22c6dd99896ce5 /dbus/update_engine/dbus-constants.h | |
parent | 1929dfe2052827b3fee0974844cfbfff4f22cca3 (diff) | |
download | system_api-2f7d2849ad7d9fb8f82a19cedb1b972fda6be98c.tar.gz |
Expose the update engine function GetEolStatus to dbus client
Chrome side will use this method to check the end of life status of
the device and show notifications corresponding to each status.
BUG=chromium:611816
TEST=chrome compile
Change-Id: I237caaaebe60c9ddc72d111a545a612f8d7e676a
Reviewed-on: https://chromium-review.googlesource.com/350874
Commit-Ready: Xiaoyin Hu <xiaoyinh@chromium.org>
Tested-by: Xiaoyin Hu <xiaoyinh@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Diffstat (limited to 'dbus/update_engine/dbus-constants.h')
-rw-r--r-- | dbus/update_engine/dbus-constants.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dbus/update_engine/dbus-constants.h b/dbus/update_engine/dbus-constants.h index 93c955c..86c60dd 100644 --- a/dbus/update_engine/dbus-constants.h +++ b/dbus/update_engine/dbus-constants.h @@ -23,6 +23,7 @@ const char kSetChannel[] = "SetChannel"; const char kGetChannel[] = "GetChannel"; const char kAttemptRollback[] = "AttemptRollback"; const char kCanRollback[] = "CanRollback"; +const char kGetEolStatus[] = "GetEolStatus"; // Signals. const char kStatusUpdate[] = "StatusUpdate"; @@ -32,6 +33,13 @@ typedef enum { kAttemptUpdateFlagNonInteractive = (1 << 0) } AttemptUpdateFlags; +// End of Life status used in the GetEolStatus() D-Bus method. +typedef enum { + kSupported = 0, + kSecurityOnly = 1, + kEol = 2, +} EndOfLifeStatus; + // Operations contained in StatusUpdate signals. const char kUpdateStatusIdle[] = "UPDATE_STATUS_IDLE"; const char kUpdateStatusCheckingForUpdate[] = |