1 /* 2 * Copyright (c) 2023 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 16 #ifndef EVENT_FORM_ENUM_H 17 #define EVENT_FORM_ENUM_H 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #define SOFTBUS_DEFAULT_STAGE 1 24 25 typedef enum { 26 EVENT_STAGE_RESULT_OK = 1, 27 EVENT_STAGE_RESULT_FAILED = 2, 28 EVENT_STAGE_RESULT_CANCELED = 3, 29 } SoftbusEventStageResult; 30 31 typedef enum { 32 MANAGE_ALARM_TYPE = 1, 33 CONTROL_ALARM_TYPE = 2, 34 } SoftbusAlarmEventType; 35 36 typedef enum { 37 NETWORK_INTERRUPTION_ALARM, 38 HEARTBEAT_BROADCAST_ALARM, 39 CONNECTION_FAIL_ALARM, 40 BANDWIDTH_INSUFFICIANT_ALARM, 41 DELAY_JITTER_ALARM, 42 NO_PERMISSION_ALARM, 43 SPEED_LIMIT_ALARM, 44 PREEMPTION_ALARM, 45 FORBID_BACKGROUND_SYNC_ALARM, 46 BUSINESS_CONFLICT_ALARM, 47 DELAY_FREQUENT_RETRY_ALARM, 48 OPEN_SESSION_FAIL_ALARM, 49 } SoftbusAlarmEvent; 50 51 typedef enum { 52 AUDIT_EVENT_MSG_ERROR = 1, 53 AUDIT_EVENT_REPLAY, 54 AUDIT_EVENT_PACKETS_ERROR, 55 AUDIT_EVENT_CONN_ERROR, 56 AUDIT_EVENT_IO_ERROR, 57 AUDIT_EVENT_DOS_ATTACK, 58 AUDIT_EVENT_DATA_LIMIT, 59 AUDIT_EVENT_HB_FREQ_ERROR, 60 AUDIT_EVENT_HB_MSG_ERROR, 61 } SoftbusAuditType; 62 63 #ifdef __cplusplus 64 } 65 #endif /* __cplusplus */ 66 #endif // EVENT_FORM_ENUM_H 67