• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
48 // Values.
49 enum DevFeatureFlag {
50   DEV_FEATURES_DISABLED = 1 << 0,
51   DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED = 1 << 1,
52   DEV_FEATURE_BOOT_FROM_USB_ENABLED = 1 << 2,
53   DEV_FEATURE_SSH_SERVER_CONFIGURED = 1 << 3,
54   DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET = 1 << 4,
55   DEV_FEATURE_SYSTEM_ROOT_PASSWORD_SET = 1 << 5,
56   DEV_FEATURE_CHROME_REMOTE_DEBUGGING_ENABLED = 1 << 6,
57 };
58 
59 // CupsAdd* error codes
60 enum CupsResult {
61   CUPS_SUCCESS = 0,
62   CUPS_FATAL = 1,
63   CUPS_INVALID_PPD = 2,
64   CUPS_LPADMIN_FAILURE = 3,
65   CUPS_AUTOCONF_FAILURE = 4,
66 };
67 
68 }  // namespace debugd
69 
70 #endif  // SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_
71