Home | History | Annotate | Download | only in debugd
      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 kGetDebugLogs[] = "GetDebugLogs";
     20 const char kGetInterfaces[] = "GetInterfaces";
     21 const char kGetModemStatus[] = "GetModemStatus";
     22 const char kGetNetworkStatus[] = "GetNetworkStatus";
     23 const char kGetPerfOutput[] = "GetPerfOutput";
     24 const char kGetPerfOutputFd[] = "GetPerfOutputFd";
     25 const char kGetRoutes[] = "GetRoutes";
     26 const char kGetWiMaxStatus[] = "GetWiMaxStatus";
     27 const char kSetDebugMode[] = "SetDebugMode";
     28 const char kSystraceStart[] = "SystraceStart";
     29 const char kSystraceStop[] = "SystraceStop";
     30 const char kSystraceStatus[] = "SystraceStatus";
     31 const char kGetLog[] = "GetLog";
     32 const char kGetAllLogs[] = "GetAllLogs";
     33 const char kGetUserLogFiles[] = "GetUserLogFiles";
     34 const char kGetFeedbackLogs[] = "GetFeedbackLogs";
     35 const char kGetBigFeedbackLogs[] = "GetBigFeedbackLogs";
     36 const char kTestICMP[] = "TestICMP";
     37 const char kTestICMPWithOptions[] = "TestICMPWithOptions";
     38 const char kLogKernelTaskStates[] = "LogKernelTaskStates";
     39 const char kUploadCrashes[] = "UploadCrashes";
     40 const char kRemoveRootfsVerification[] = "RemoveRootfsVerification";
     41 const char kEnableChromeRemoteDebugging[] = "EnableChromeRemoteDebugging";
     42 const char kEnableBootFromUsb[] = "EnableBootFromUsb";
     43 const char kConfigureSshServer[] = "ConfigureSshServer";
     44 const char kSetUserPassword[] = "SetUserPassword";
     45 const char kEnableChromeDevFeatures[] = "EnableChromeDevFeatures";
     46 const char kQueryDevFeatures[] = "QueryDevFeatures";
     47 const char kSetOomScoreAdj[] = "SetOomScoreAdj";
     48 
     49 // Values.
     50 enum DevFeatureFlag {
     51   DEV_FEATURES_DISABLED = 1 << 0,
     52   DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED = 1 << 1,
     53   DEV_FEATURE_BOOT_FROM_USB_ENABLED = 1 << 2,
     54   DEV_FEATURE_SSH_SERVER_CONFIGURED = 1 << 3,
     55   DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET = 1 << 4,
     56   DEV_FEATURE_SYSTEM_ROOT_PASSWORD_SET = 1 << 5,
     57   DEV_FEATURE_CHROME_REMOTE_DEBUGGING_ENABLED = 1 << 6,
     58 };
     59 
     60 // CupsAdd* error codes
     61 enum CupsResult {
     62   CUPS_SUCCESS = 0,
     63   CUPS_FATAL = 1,
     64   CUPS_INVALID_PPD = 2,
     65   CUPS_LPADMIN_FAILURE = 3,
     66   CUPS_AUTOCONF_FAILURE = 4,
     67 };
     68 
     69 }  // namespace debugd
     70 
     71 #endif  // SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_
     72