• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef OHOS_DM_DFX_CONSTANTS_H
16 #define OHOS_DM_DFX_CONSTANTS_H
17 
18 #include "dm_device_info.h"
19 
20 #include <string>
21 #include <unordered_map>
22 
23 namespace OHOS {
24 namespace DistributedHardware {
25 // HisysEvent Type
26 enum HisysEventType {
27     DM_HISYEVENT_FAULT = 1,
28     DM_HISYEVENT_STATISTIC = 2,
29     DM_HISYEVENT_SECURITY = 3,
30     DM_HISYEVENT_BEHAVIOR = 4
31 };
32 
33 // HiDumper Flag
34 enum class HidumperFlag {
35     HIDUMPER_UNKNOWN = 0,
36     HIDUMPER_GET_HELP,
37     HIDUMPER_GET_TRUSTED_LIST,
38     HIDUMPER_GET_DEVICE_STATE,
39 };
40 
41 // HiDumper device type
42 typedef struct DumperInfo {
43     DmDeviceType deviceTypeId;
44     std::string deviceTypeInfo;
45 } DumperInfo;
46 } // namespace DistributedHardware
47 } // namespace OHOS
48 #endif // OHOS_DM_DFX_CONSTANTS_H
49