• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 SOFTBUS_EVENT_H
17 #define SOFTBUS_EVENT_H
18 
19 #include "form/softbus_event_form.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #define CONN_EVENT_NAME  "CONNECTION_BEHAVIOR"
26 #define DISC_EVENT_NAME  "DISCOVER_BEHAVIOR"
27 #define LNN_EVENT_NAME   "BUSCENTER_BEHAVIOR"
28 #define TRANS_EVENT_NAME "TRANSPORT_BEHAVIOR"
29 #define MANAGE_ALARM_EVENT_NAME "SOFTBUS_MANAGE_ALERT"
30 #define CONTROL_ALARM_EVENT_NAME "SOFTBUS_CONTROL_ALERT"
31 #define STATS_EVENT_NAME "SOFTBUS_STATISTIC"
32 
33 #define CONN_AUDIT_NAME  "CONNECTION_AUDIT"
34 #define DISC_AUDIT_NAME  "DISCOVER_AUDIT"
35 #define LNN_AUDIT_NAME   "BUSCENTER_AUDIT"
36 #define TRANS_AUDIT_NAME "TRANSPORT_AUDIT"
37 
38 typedef enum {
39     EVENT_MODULE_CONN,
40     EVENT_MODULE_DISC,
41     EVENT_MODULE_LNN,
42     EVENT_MODULE_TRANS,
43     EVENT_MODULE_TRANS_ALARM,
44     EVENT_MODULE_CONN_ALARM,
45     EVENT_MODULE_LNN_ALARM,
46     EVENT_MODULE_DISC_ALARM,
47     EVENT_MODULE_STATS,
48     EVENT_MODULE_MAX,
49 } SoftbusEventModule;
50 
51 void SoftbusEventInner(SoftbusEventModule module, SoftbusEventForm *form);
52 
53 void SoftbusAuditInner(SoftbusEventModule module, SoftbusEventForm *form);
54 
55 #ifdef __cplusplus
56 }
57 #endif /* __cplusplus */
58 #endif // SOFTBUS_EVENT_H
59