picox  0.1
xfs.h
[詳解]
1 
14 /*
15  * License: MIT license
16  * Copyright (c) <2016> <MaskedW [maskedw00@gmail.com]>
17  *
18  * Permission is hereby granted, free of charge, to any person
19  * obtaining a copy of this software and associated documentation
20  * files (the "Software"), to deal in the Software without
21  * restriction, including without limitation the rights to use, copy,
22  * modify, merge, publish, distribute, sublicense, and/or sell copies
23  * of the Software, and to permit persons to whom the Software is
24  * furnished to do so, subject to the following conditions:
25  *
26  * The above copyright notice and this permission notice shall be
27  * included in all copies or substantial portions of the Software.
28  *
29  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
32  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
33  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
34  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
35  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36  * SOFTWARE.
37  */
38 
39 #ifndef picox_filesystem_xfs_h_
40 #define picox_filesystem_xfs_h_
41 
42 
57 #if X_XFS_TYPE == X_XFS_TYPE_UNION_FS
58 
60 
61  #define xfs_init_stream xunionfs_init_stream
62  #define xfs_deinit xunionfs_deinit
63  #define xfs_open xunionfs_open
64  #define xfs_close xunionfs_close
65  #define xfs_read xunionfs_read
66  #define xfs_write xunionfs_write
67  #define xfs_seek xunionfs_seek
68  #define xfs_tell xunionfs_tell
69  #define xfs_flush xunionfs_flush
70  #define xfs_mkdir xunionfs_mkdir
71  #define xfs_opendir xunionfs_opendir
72  #define xfs_readdir xunionfs_readdir
73  #define xfs_closedir xunionfs_closedir
74  #define xfs_chdir xunionfs_chdir
75  #define xfs_getcwd xunionfs_getcwd
76  #define xfs_remove xunionfs_remove
77  #define xfs_rename xunionfs_rename
78  #define xfs_stat xunionfs_stat
79  #define xfs_utime xunionfs_utime
80  #define xfs_putc xunionfs_putc
81  #define xfs_puts xunionfs_puts
82  #define xfs_printf xunionfs_printf
83  #define xfs_vprintf xunionfs_vprintf
84  #define xfs_getc xunionfs_getc
85  #define xfs_gets xunionfs_gets
86  #define xfs_copyfile xunionfs_copyfile
87  #define xfs_copyfile2 xunionfs_copyfile2
88  #define xfs_copytree xunionfs_copytree
89  #define xfs_rmtree xunionfs_rmtree
90  #define xfs_makedirs xunionfs_makedirs
91  #define xfs_walktree xunionfs_walktree
92  #define xfs_exists xunionfs_exists
93  #define xfs_is_directory xunionfs_is_directory
94  #define xfs_is_regular xunionfs_is_regular
95 
96 #elif X_XFS_TYPE == X_XFS_TYPE_UNION_FS
97 
99 
100  #define xfs_init_stream xsinglefs_init_stream
101  #define xfs_deinit xsinglefs_deinit
102  #define xfs_open xsinglefs_open
103  #define xfs_close xsinglefs_close
104  #define xfs_read xsinglefs_read
105  #define xfs_write xsinglefs_write
106  #define xfs_seek xsinglefs_seek
107  #define xfs_tell xsinglefs_tell
108  #define xfs_flush xsinglefs_flush
109  #define xfs_mkdir xsinglefs_mkdir
110  #define xfs_opendir xsinglefs_opendir
111  #define xfs_readdir xsinglefs_readdir
112  #define xfs_closedir xsinglefs_closedir
113  #define xfs_chdir xsinglefs_chdir
114  #define xfs_getcwd xsinglefs_getcwd
115  #define xfs_remove xsinglefs_remove
116  #define xfs_rename xsinglefs_rename
117  #define xfs_stat xsinglefs_stat
118  #define xfs_utime xsinglefs_utime
119  #define xfs_putc xsinglefs_putc
120  #define xfs_puts xsinglefs_puts
121  #define xfs_printf xsinglefs_printf
122  #define xfs_vprintf xsinglefs_vprintf
123  #define xfs_getc xsinglefs_getc
124  #define xfs_gets xsinglefs_gets
125  #define xfs_copyfile xsinglefs_copyfile
126  #define xfs_copyfile2 xsinglefs_copyfile2
127  #define xfs_copytree xsinglefs_copytree
128  #define xfs_rmtree xsinglefs_rmtree
129  #define xfs_makedirs xsinglefs_makedirs
130  #define xfs_walktree xsinglefs_walktree
131  #define xfs_exists xsinglefs_exists
132  #define xfs_is_directory xsinglefs_is_directory
133  #define xfs_is_regular xsinglefs_is_regular
134 
135 #else
136 
137  #error Invalid XFS_TYPE
138 
139 #endif
140 
141 
147 #endif /* picox_filesystem_xfs_h_ */