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 kCupsAddManuallyConfiguredPrinter[] =
15     "CupsAddManuallyConfiguredPrinter";
16 const char kCupsAddAutoConfiguredPrinter[] = "CupsAddAutoConfiguredPrinter";
17 const char kCupsRemovePrinter[] = "CupsRemovePrinter";
18 const char kDumpDebugLogs[] = "DumpDebugLogs";
19 const char kGetInterfaces[] = "GetInterfaces";
20 const char kGetModemStatus[] = "GetModemStatus";
21 const char kGetNetworkStatus[] = "GetNetworkStatus";
22 const char kGetPerfOutput[] = "GetPerfOutput";
23 const char kGetPerfOutputFd[] = "GetPerfOutputFd";
24 const char kGetRoutes[] = "GetRoutes";
25 const char kGetWiMaxStatus[] = "GetWiMaxStatus";
26 const char kSetDebugMode[] = "SetDebugMode";
27 const char kSystraceStart[] = "SystraceStart";
28 const char kSystraceStop[] = "SystraceStop";
29 const char kSystraceStatus[] = "SystraceStatus";
30 const char kGetLog[] = "GetLog";
31 const char kGetAllLogs[] = "GetAllLogs";
32 const char kGetUserLogFiles[] = "GetUserLogFiles";
33 const char kGetFeedbackLogs[] = "GetFeedbackLogs";
34 const char kGetBigFeedbackLogs[] = "GetBigFeedbackLogs";
35 const char kTestICMP[] = "TestICMP";
36 const char kTestICMPWithOptions[] = "TestICMPWithOptions";
37 const char kLogKernelTaskStates[] = "LogKernelTaskStates";
38 const char kUploadCrashes[] = "UploadCrashes";
39 const char kRemoveRootfsVerification[] = "RemoveRootfsVerification";
40 const char kEnableChromeRemoteDebugging[] = "EnableChromeRemoteDebugging";
41 const char kEnableBootFromUsb[] = "EnableBootFromUsb";
42 const char kConfigureSshServer[] = "ConfigureSshServer";
43 const char kSetUserPassword[] = "SetUserPassword";
44 const char kEnableChromeDevFeatures[] = "EnableChromeDevFeatures";
45 const char kQueryDevFeatures[] = "QueryDevFeatures";
46 const char kSetOomScoreAdj[] = "SetOomScoreAdj";
47 const char kStartVmConcierge[] = "StartVmConcierge";
48 const char kStopVmConcierge[] = "StopVmConcierge";
49 const char kSetRlzPingSent[] = "SetRlzPingSent";
50 
51 // Values.
52 enum DevFeatureFlag {
53   DEV_FEATURES_DISABLED = 1 << 0,
54   DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED = 1 << 1,
55   DEV_FEATURE_BOOT_FROM_USB_ENABLED = 1 << 2,
56   DEV_FEATURE_SSH_SERVER_CONFIGURED = 1 << 3,
57   DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET = 1 << 4,
58   DEV_FEATURE_SYSTEM_ROOT_PASSWORD_SET = 1 << 5,
59   DEV_FEATURE_CHROME_REMOTE_DEBUGGING_ENABLED = 1 << 6,
60 };
61 
62 // CupsAdd* error codes
63 enum CupsResult {
64   CUPS_SUCCESS = 0,
65   CUPS_FATAL = 1,
66   CUPS_INVALID_PPD = 2,
67   CUPS_LPADMIN_FAILURE = 3,
68   CUPS_AUTOCONF_FAILURE = 4,
69 };
70 
71 // Debug log keys which should be substituted in the system info dialog.
72 const char kIwlwifiDumpKey[] = "iwlwifi_dump";
73 
74 }  // namespace debugd
75 
76 #endif  // SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_
77