diff options
author | Alex Deymo <deymo@chromium.org> | 2015-09-01 13:42:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-02 22:08:02 -0700 |
commit | 0b175578c8150c7ee0e7e4fd6d4dc7480979e248 (patch) | |
tree | 17d7ac1490c5ade7fcded2f2501ed30cef5db710 /dbus/update_engine/dbus-constants.h | |
parent | 17296bf6034afd5dab4989b539e71cdeb25a4150 (diff) | |
download | system_api-0b175578c8150c7ee0e7e4fd6d4dc7480979e248.tar.gz |
update_engine: Add missing constants in the DBus api.
update_engine client library currently installs
update_engine/dbus_constants.h from the source code with almost the
same constants as this file. To avoid duplication, this patch adds the
missing constants, to the update_engine/dbus-constants.h file so we can
deprecate update_engine/dbus_constants.h
BUG=None
TEST=emerge-link system_api update_engine
Change-Id: I38746d07d3356b9f3dfe2e7592e1a1ea6c8f2f8a
Reviewed-on: https://chromium-review.googlesource.com/296778
Commit-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'dbus/update_engine/dbus-constants.h')
-rw-r--r-- | dbus/update_engine/dbus-constants.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/update_engine/dbus-constants.h b/dbus/update_engine/dbus-constants.h index a580bd0..aa64046 100644 --- a/dbus/update_engine/dbus-constants.h +++ b/dbus/update_engine/dbus-constants.h @@ -10,6 +10,10 @@ const char kUpdateEngineInterface[] = "org.chromium.UpdateEngineInterface"; const char kUpdateEngineServicePath[] = "/org/chromium/UpdateEngine"; const char kUpdateEngineServiceName[] = "org.chromium.UpdateEngine"; +// Generic UpdateEngine D-Bus error. +const char kUpdateEngineServiceErrorFailed[] = + "org.chromium.UpdateEngine.Error.Failed"; + // Methods. const char kAttemptUpdate[] = "AttemptUpdate"; const char kGetStatus[] = "GetStatus"; @@ -22,6 +26,11 @@ const char kCanRollback[] = "CanRollback"; // Signals. const char kStatusUpdate[] = "StatusUpdate"; +// Flags used in the AttemptUpdateWithFlags() D-Bus method. +typedef enum { + kAttemptUpdateFlagNonInteractive = (1 << 0) +} AttemptUpdateFlags; + // Operations contained in StatusUpdate signals. const char kUpdateStatusIdle[] = "UPDATE_STATUS_IDLE"; const char kUpdateStatusCheckingForUpdate[] = |