OSAPI  0.29
Open System API
fs_type_elementInfo.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: Element info type declarations
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_FS_TYPE_ELEMENTINFO_H_
11 #define OSAPI_FS_TYPE_ELEMENTINFO_H_
12 
13 // *****************************************************************************************
14 //
15 // Section: Import headers
16 //
17 // *****************************************************************************************
18 
19 // Standard C headers
20 
21 // General OSAPI headers
22 #include "common/common_types.h"
23 
24 // Import own headers
25 #include "fs/fs_platform.h"
26 #include "fs/type/fs_type_element_attributes.h"
27 #include "fs/type/fs_type_element_type.h"
28 
29 // *****************************************************************************************
30 //
31 // Section: Type definitions
32 //
33 // *****************************************************************************************
34 
37 {
38  t_fs_ostate state;
39  t_fs_eType type;
41  t_uid uid;
42  t_gid gid;
43  uint64_t size;
44  uint32_t block_size;
45  // Next field requires a Linux implementation using statx and not stat structure
50  uint64_t nlink;
52  bool compressed;
53  bool encrypted;
54  t_char fullpath [ OSAPI_PATH_MAX ];
55 };
56 
57 
59 
60 #endif /* OSAPI_FS_TYPE_ELEMENTINFO_H_ */
osapi_fs_element_info_S::compressed
bool compressed
Element compressed ?
Definition: fs_type_elementInfo.h:52
osapi_fs_element_info_S::fullpath
t_char fullpath[OSAPI_PATH_MAX]
The full and real path name to the element.
Definition: fs_type_elementInfo.h:54
osapi_fs_element_info_S::type
t_fs_eType type
Element type: File, directory, etc.
Definition: fs_type_elementInfo.h:39
osapi_fs_element_info_S::btime
t_time btime
Creation (birth) time.
Definition: fs_type_elementInfo.h:46
osapi_time_S
Structure supporting a time date.
Definition: common_type_time.h:65
osapi_fs_element_info_S::nlink
uint64_t nlink
Number of hard links to element.
Definition: fs_type_elementInfo.h:50
osapi_fs_element_info_S::gid
t_gid gid
Group ID.
Definition: fs_type_elementInfo.h:42
osapi_fs_element_permissions_S
Structure that defines a file system permissions.
Definition: fs_posix_type_element.h:32
osapi_fs_element_info_S::size
uint64_t size
Element size.
Definition: fs_type_elementInfo.h:43
osapi_fs_element_info_S::id
t_fs_eid id
Element identifier.
Definition: fs_type_elementInfo.h:40
osapi_fs_element_info_S::atime
t_time atime
Access time.
Definition: fs_type_elementInfo.h:48
osapi_fs_element_id_S
Structure that defines a an element ID.
Definition: fs_posix_type_element_id.h:33
osapi_fs_element_info_S::encrypted
bool encrypted
Element encrypted ?
Definition: fs_type_elementInfo.h:53
osapi_fs_element_info_S::block_size
uint32_t block_size
IO preferred block size.
Definition: fs_type_elementInfo.h:44
osapi_fs_element_info_S
Structure containing the file system element generic information.
Definition: fs_type_elementInfo.h:36
osapi_fs_element_info_S::state
t_fs_ostate state
Element state (closed/open)
Definition: fs_type_elementInfo.h:38
t_char
char t_char
Definition of own char type.
Definition: general_types.h:61
osapi_fs_element_info_S::mtime
t_time mtime
Modification time.
Definition: fs_type_elementInfo.h:49
osapi_fs_element_info_S::ctime
t_time ctime
Change time.
Definition: fs_type_elementInfo.h:47
osapi_fs_element_info_S::uid
t_uid uid
User ID.
Definition: fs_type_elementInfo.h:41
osapi_fs_element_info_S::perm
t_fs_perm perm
Permission set.
Definition: fs_type_elementInfo.h:51