1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef CAN_MANAGER_H
10 #define CAN_MANAGER_H
11 
12 #include "hdf_base.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17 
18 struct CanCntlr;
19 
20 // CAN BUS controller manage
21 int32_t CanCntlrAdd(struct CanCntlr *cntlr);
22 
23 int32_t CanCntlrDel(struct CanCntlr *cntlr);
24 
25 struct CanCntlr *CanCntlrGetByName(const char *name);
26 
27 struct CanCntlr *CanCntlrGetByNumber(int32_t number);
28 
29 void CanCntlrPut(struct CanCntlr *cntlr);
30 
31 #ifdef __cplusplus
32 }
33 #endif /* __cplusplus */
34 
35 #endif
36