| // 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 kCupsAddManuallyConfiguredPrinter[] = |
| "CupsAddManuallyConfiguredPrinter"; |
| const char kCupsAddAutoConfiguredPrinter[] = "CupsAddAutoConfiguredPrinter"; |
| const char kCupsRemovePrinter[] = "CupsRemovePrinter"; |
| const char kDumpDebugLogs[] = "DumpDebugLogs"; |
| const char kGetInterfaces[] = "GetInterfaces"; |
| const char kGetNetworkStatus[] = "GetNetworkStatus"; |
| const char kGetPerfOutput[] = "GetPerfOutput"; |
| const char kGetPerfOutputFd[] = "GetPerfOutputFd"; |
| const char kStopPerf[] = "StopPerf"; |
| const char kGetIpAddrs[] = "GetIpAddrs"; |
| const char kGetRoutes[] = "GetRoutes"; |
| 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 kGetBigFeedbackLogs[] = "GetBigFeedbackLogs"; |
| const char kKstaledSetRatio[] = "KstaledSetRatio"; |
| const char kGetJournalLog[] = "GetJournalLog"; |
| const char kTestICMP[] = "TestICMP"; |
| const char kTestICMPWithOptions[] = "TestICMPWithOptions"; |
| const char kLogKernelTaskStates[] = "LogKernelTaskStates"; |
| const char kUploadCrashes[] = "UploadCrashes"; |
| const char kUploadSingleCrash[] = "UploadSingleCrash"; |
| 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"; |
| const char kSetOomScoreAdj[] = "SetOomScoreAdj"; |
| const char kStartVmPluginDispatcher[] = "StartVmPluginDispatcher"; |
| const char kStopVmPluginDispatcher[] = "StopVmPluginDispatcher"; |
| const char kSetRlzPingSent[] = "SetRlzPingSent"; |
| const char kSetU2fFlags[] = "SetU2fFlags"; |
| const char kGetU2fFlags[] = "GetU2fFlags"; |
| const char kSetSchedulerConfiguration[] = "SetSchedulerConfiguration"; |
| const char kSetSchedulerConfigurationV2[] = "SetSchedulerConfigurationV2"; |
| const char kSwapSetParameter[] = "SwapSetParameter"; |
| const char kBackupArcBugReport[] = "BackupArcBugReport"; |
| const char kDeleteArcBugReportBackup[] = "DeleteArcBugReportBackup"; |
| |
| // Properties. |
| const char kCrashSenderTestMode[] = "CrashSenderTestMode"; |
| |
| // 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, |
| }; |
| |
| // CupsAdd* error codes |
| enum CupsResult { |
| CUPS_SUCCESS = 0, |
| CUPS_FATAL = 1, |
| CUPS_INVALID_PPD = 2, |
| CUPS_LPADMIN_FAILURE = 3, |
| CUPS_AUTOCONF_FAILURE = 4, |
| CUPS_BAD_URI = 5, |
| CUPS_IO_ERROR = 6, |
| CUPS_MEMORY_ALLOC_ERROR = 7, |
| CUPS_PRINTER_UNREACHABLE = 8, |
| CUPS_PRINTER_WRONG_RESPONSE = 9, |
| CUPS_PRINTER_NOT_AUTOCONF = 10 |
| }; |
| |
| // Debug log keys which should be substituted in the system info dialog. |
| const char kIwlwifiDumpKey[] = "iwlwifi_dump"; |
| |
| namespace scheduler_configuration { |
| |
| // Keys which should be given to SetSchedulerConfiguration. |
| constexpr char kConservativeScheduler[] = "conservative"; |
| constexpr char kCoreIsolationScheduler[] = "core-scheduling"; |
| constexpr char kPerformanceScheduler[] = "performance"; |
| |
| } // namespace scheduler_configuration |
| |
| namespace u2f_flags { |
| constexpr char kU2f[] = "u2f"; |
| constexpr char kG2f[] = "g2f"; |
| constexpr char kVerbose[] = "verbose"; |
| constexpr char kUserKeys[] = "user_keys"; |
| constexpr char kAllowlistData[] = "allowlist_data"; |
| } // namespace u2f_flags |
| |
| } // namespace debugd |
| |
| #endif // SYSTEM_API_DBUS_DEBUGD_DBUS_CONSTANTS_H_ |