1 // Copyright 2015 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_
6 #define SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_
7 
8 namespace debugd {
9 const char kDebugdInterface[] = "org.chromium.debugd";
10 const char kDebugdServicePath[] = "/org/chromium/debugd";
11 const char kDebugdServiceName[] = "org.chromium.debugd";
12 
13 // Methods.
14 const char kDumpDebugLogs[] = "DumpDebugLogs";
15 const char kGetDebugLogs[] = "GetDebugLogs";
16 const char kGetInterfaces[] = "GetInterfaces";
17 const char kGetModemStatus[] = "GetModemStatus";
18 const char kGetNetworkStatus[] = "GetNetworkStatus";
19 const char kGetPerfOutput[] = "GetPerfOutput";
20 const char kGetRoutes[] = "GetRoutes";
21 const char kGetWiMaxStatus[] = "GetWiMaxStatus";
22 const char kSetDebugMode[] = "SetDebugMode";
23 const char kSystraceStart[] = "SystraceStart";
24 const char kSystraceStop[] = "SystraceStop";
25 const char kSystraceStatus[] = "SystraceStatus";
26 const char kGetLog[] = "GetLog";
27 const char kGetAllLogs[] = "GetAllLogs";
28 const char kGetUserLogFiles[] = "GetUserLogFiles";
29 const char kGetFeedbackLogs[] = "GetFeedbackLogs";
30 const char kTestICMP[] = "TestICMP";
31 const char kTestICMPWithOptions[] = "TestICMPWithOptions";
32 const char kLogKernelTaskStates[] = "LogKernelTaskStates";
33 const char kUploadCrashes[] = "UploadCrashes";
34 const char kRemoveRootfsVerification[] = "RemoveRootfsVerification";
35 const char kEnableChromeRemoteDebugging[] = "EnableChromeRemoteDebugging";
36 const char kEnableBootFromUsb[] = "EnableBootFromUsb";
37 const char kConfigureSshServer[] = "ConfigureSshServer";
38 const char kSetUserPassword[] = "SetUserPassword";
39 const char kEnableChromeDevFeatures[] = "EnableChromeDevFeatures";
40 const char kQueryDevFeatures[] = "QueryDevFeatures";
41 
42 // Values.
43 enum DevFeatureFlag {
44   DEV_FEATURES_DISABLED = 1 << 0,
45   DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED = 1 << 1,
46   DEV_FEATURE_BOOT_FROM_USB_ENABLED = 1 << 2,
47   DEV_FEATURE_SSH_SERVER_CONFIGURED = 1 << 3,
48   DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET = 1 << 4,
49   DEV_FEATURE_SYSTEM_ROOT_PASSWORD_SET = 1 << 5,
50   DEV_FEATURE_CHROME_REMOTE_DEBUGGING_ENABLED = 1 << 6,
51 };
52 }  // namespace debugd
53 
54 #endif  // SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_
55