• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 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 HDF_VNODE_ADAPTER_H
10 #define HDF_VNODE_ADAPTER_H
11 #include "hdf_dlist.h"
12 #include "osal_mutex.h"
13 #include "hdf_sbuf.h"
14 #include "hdf_io_service.h"
15 
16 struct OsalCdev;
17 
18 struct HdfVNodeAdapter {
19     struct HdfIoService ioService;
20     char *vNodePath;
21     struct OsalMutex mutex;
22     struct DListHead clientList;
23     struct OsalCdev *cdev;
24 };
25 
26 struct HdfDevEvent {
27     uint32_t id;
28     struct HdfSBuf *data;
29     struct DListHead listNode;
30 };
31 
32 #endif /* HDF_VNODE_ADAPTER_H */
33 
34