OSAPI  0.29
Open System API
fs_type_file.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: Type declarations for a file Element
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_FS_TYPE_FILE_H_
11 #define OSAPI_FS_TYPE_FILE_H_
12 
13 // *****************************************************************************************
14 //
15 // Section: Import headers
16 //
17 // *****************************************************************************************
18 
19 // Standard C headers
20 #include <stdio.h>
21 
22 // General OSAPI headers
23 #include "common/common_types.h"
24 
25 // Import own headers
26 #include "fs/fs_platform.h"
27 #include "fs/type/fs_type_element.h"
28 
29 
30 // *****************************************************************************************
31 //
32 // Section: Type definitions
33 //
34 // *****************************************************************************************
35 
37 enum osapi_fs_file_position_E
38 {
39  osapi_fs_file_position_none = SEEK_CUR,
40  osapi_fs_file_position_set = SEEK_SET,
41  osapi_fs_file_position_begin = SEEK_SET,
42  osapi_fs_file_position_end = SEEK_END
43 };
44 
45 typedef enum osapi_fs_file_position_E t_file_location;
46 
49 {
52 };
53 
54 typedef struct osapi_fs_file_S t_file;
55 
56 
57 
58 
59 #endif /* OSAPI_FS_TYPE_FILE_H_ */
osapi_fs_file_S::file
t_fs_fileInfo file
File element specific information.
Definition: fs_type_file.h:51
osapi_fs_element_info_S
Structure containing the file system element generic information.
Definition: fs_type_elementInfo.h:36
osapi_fs_file_S::element
t_element element
General element information.
Definition: fs_type_file.h:50
osapi_fs_file_info_S
Structure containing the C/POSIX file pointer/handler information.
Definition: fs_posix_type_file.h:34
osapi_fs_file_S
Structure that holds all file system element information.
Definition: fs_type_file.h:48