VSF Documented
vsf_winfs.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_WINFS_H__
19#define __VSF_WINFS_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../vsf_fs_cfg.h"
24
25#if VSF_USE_FS == ENABLED && VSF_FS_USE_WINFS == ENABLED
26
27#if defined(__VSF_WINFS_CLASS_IMPLEMENT)
28# undef __VSF_WINFS_CLASS_IMPLEMENT
29# define __VSF_CLASS_IMPLEMENT__
30#endif
31
32#include "utilities/ooc_class.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/*============================ MACROS ========================================*/
39/*============================ MACROFIED FUNCTIONS ===========================*/
40/*============================ TYPES =========================================*/
41
45
47 public_member(
48 implement(vk_file_t)
49 )
50
51 private_member(
52 union {
53 struct {
54 VSF_WIN_HANDLE hFile;
55 } f;
56 struct {
57 VSF_WIN_HANDLE hFind;
58 } d;
59 };
60 char *fullpath;
61 )
62};
63
64typedef struct vk_winfs_info_t {
67
68/*============================ GLOBAL VARIABLES ==============================*/
69
70extern const vk_fs_op_t vk_winfs_op;
71
72/*============================ PROTOTYPES ====================================*/
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif // VSF_USE_FS && VSF_FS_USE_WINFS
79#endif // __VSF_WINFS_H__
Definition vsf_fs.h:114
Definition vsf_fs.h:92
Definition vsf_winfs.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_winfs.h:64
vk_winfs_file_t root
Definition vsf_winfs.h:65
@ VSF_FILE_ATTR_EXT
Definition vsf_fs_cfg.h:108
const vk_fs_op_t vk_winfs_op
vk_winfs_file_attr_t
Definition vsf_winfs.h:42
@ VSF_WINFS_FILE_ATTR_ARCHIVE
Definition vsf_winfs.h:43
void * VSF_WIN_HANDLE
Definition win_generic.h:140