1 /*
2  * Copyright (C) 2021 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 HCI_DEF_H
17 #define HCI_DEF_H
18 
19 #include "packet.h"
20 
21 #include "hci_def_cmd.h"
22 #include "hci_def_common.h"
23 #include "hci_def_evt.h"
24 #include "hci_def_feature.h"
25 #include "hci_def_le_cmd.h"
26 #include "hci_def_le_evt.h"
27 #include "hci_def_le_feature.h"
28 #include "hci_def_supported_cmds.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 typedef enum {
35     H2C_CMD,
36     H2C_ACLDATA,
37     H2C_SCODATA,
38     C2H_ACLDATA,
39     C2H_SCODATA,
40     C2H_EVENT,
41 } HciPacketType;
42 
43 typedef struct {
44     HciPacketType type;
45     Packet *packet;
46 } HciPacket;
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif