diff options
author | Alex Deymo <deymo@chromium.org> | 2015-08-26 19:38:43 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-08-27 21:27:43 -0700 |
commit | 9bbde1b1afee1529c6ed7b6569630b591c60ddb4 (patch) | |
tree | 8a1437afe3720f1f6405d2527748b77bf19e50c4 /dbus/debugd/dbus-constants.h | |
parent | 383376f7a551a823d4300188c5d41f19dc16dc00 (diff) | |
download | system_api-9bbde1b1afee1529c6ed7b6569630b591c60ddb4.tar.gz |
Split DBus constants per daemon.
The service_constants.h file defines the DBus method names, property
names, signal names, property values and other DBus string constants
that define the API from Chromium to the Chromium OS system. It was
also the main way daemons in Chromium OS could talk to other daemons,
by sending DBus method calls using the method and interface names
defined here.
We are moving towards generated proxies for DBus communication packaged
in client libraries. Each daemon should expose a client library use to
talk to that daemon. The code generated from the .xml description
covers the interface names, methods names and property names, but
doesn't include property values and other required constants involved
in the interface but not expressed in the .xml file.
This patch splits the DBus constants used by Chromium and other daemons
in one file per daemon, that will eventually be part of the client
library presented by that daemon.
CQ-DEPEND=CL:295757
BUG=b:23560718
TEST=emerge-link system_api update_engine
Change-Id: I726633454ef248d280e0a21c534da6c42b1d53ab
Reviewed-on: https://chromium-review.googlesource.com/295756
Commit-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Diffstat (limited to 'dbus/debugd/dbus-constants.h')
-rw-r--r-- | dbus/debugd/dbus-constants.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dbus/debugd/dbus-constants.h b/dbus/debugd/dbus-constants.h new file mode 100644 index 0000000..3427a99 --- /dev/null +++ b/dbus/debugd/dbus-constants.h @@ -0,0 +1,56 @@ +// Copyright 2015 The Chromium OS Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_ +#define SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_ + +namespace debugd { +const char kDebugdInterface[] = "org.chromium.debugd"; +const char kDebugdServicePath[] = "/org/chromium/debugd"; +const char kDebugdServiceName[] = "org.chromium.debugd"; + +// Methods. +const char kDumpDebugLogs[] = "DumpDebugLogs"; +const char kGetDebugLogs[] = "GetDebugLogs"; +const char kGetInterfaces[] = "GetInterfaces"; +const char kGetModemStatus[] = "GetModemStatus"; +const char kGetNetworkStatus[] = "GetNetworkStatus"; +const char kGetPerfOutput[] = "GetPerfOutput"; +const char kGetRandomPerfOutput[] = "GetRandomPerfOutput"; +const char kGetRichPerfData[] = "GetRichPerfData"; +const char kGetRoutes[] = "GetRoutes"; +const char kGetWiMaxStatus[] = "GetWiMaxStatus"; +const char kSetDebugMode[] = "SetDebugMode"; +const char kSystraceStart[] = "SystraceStart"; +const char kSystraceStop[] = "SystraceStop"; +const char kSystraceStatus[] = "SystraceStatus"; +const char kGetLog[] = "GetLog"; +const char kGetAllLogs[] = "GetAllLogs"; +const char kGetUserLogFiles[] = "GetUserLogFiles"; +const char kGetFeedbackLogs[] = "GetFeedbackLogs"; +const char kTestICMP[] = "TestICMP"; +const char kTestICMPWithOptions[] = "TestICMPWithOptions"; +const char kLogKernelTaskStates[] = "LogKernelTaskStates"; +const char kUploadCrashes[] = "UploadCrashes"; +const char kRemoveRootfsVerification[] = "RemoveRootfsVerification"; +const char kEnableChromeRemoteDebugging[] = "EnableChromeRemoteDebugging"; +const char kEnableBootFromUsb[] = "EnableBootFromUsb"; +const char kConfigureSshServer[] = "ConfigureSshServer"; +const char kSetUserPassword[] = "SetUserPassword"; +const char kEnableChromeDevFeatures[] = "EnableChromeDevFeatures"; +const char kQueryDevFeatures[] = "QueryDevFeatures"; + +// Values. +enum DevFeatureFlag { + DEV_FEATURES_DISABLED = 1 << 0, + DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED = 1 << 1, + DEV_FEATURE_BOOT_FROM_USB_ENABLED = 1 << 2, + DEV_FEATURE_SSH_SERVER_CONFIGURED = 1 << 3, + DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET = 1 << 4, + DEV_FEATURE_SYSTEM_ROOT_PASSWORD_SET = 1 << 5, + DEV_FEATURE_CHROME_REMOTE_DEBUGGING_ENABLED = 1 << 6, +}; +} // namespace debugd + +#endif // SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_ |