Choco OS  V.0.16.9.0
Join to the chocolate world
oc_ramfs.h
Go to the documentation of this file.
1 
28 #ifndef SYSTEM_CORE_INC_FS_RAMFS_OC_RAMFS_H_
29 #define SYSTEM_CORE_INC_FS_RAMFS_OC_RAMFS_H_
30 
31 #include <oc_fs.h>
32 
38 #define _________________________________________TYPES_SECTION______________________________________________________________________________
39 
42 typedef struct Context_t * oC_RamFs_Context_t;
43 
44 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
45 
52 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
53 
56 extern oC_ErrorCode_t oC_RamFs_init ( oC_RamFs_Context_t * outContext );
57 extern oC_ErrorCode_t oC_RamFs_deinit ( oC_RamFs_Context_t Context );
58 extern oC_ErrorCode_t oC_RamFs_fopen ( oC_RamFs_Context_t Context , oC_File_t * outFile , const char * Path , oC_FileSystem_ModeFlags_t Mode , oC_FileSystem_FileAttributes_t Attributes );
59 extern oC_ErrorCode_t oC_RamFs_fclose ( oC_RamFs_Context_t Context , oC_File_t File );
60 extern oC_ErrorCode_t oC_RamFs_fread ( oC_RamFs_Context_t Context , oC_File_t File , void * outBuffer , uint32_t * Size );
61 extern oC_ErrorCode_t oC_RamFs_fwrite ( oC_RamFs_Context_t Context , oC_File_t File , const void * Buffer , uint32_t * Size );
62 extern oC_ErrorCode_t oC_RamFs_lseek ( oC_RamFs_Context_t Context , oC_File_t File , uint32_t Offset );
63 extern oC_ErrorCode_t oC_RamFs_ioctl ( oC_RamFs_Context_t Context , oC_File_t File , oC_Ioctl_Command_t Command , void * Pointer);
64 extern oC_ErrorCode_t oC_RamFs_sync ( oC_RamFs_Context_t Context , oC_File_t File );
65 extern oC_ErrorCode_t oC_RamFs_getc ( oC_RamFs_Context_t Context , char * outCharacter , oC_File_t File );
66 extern oC_ErrorCode_t oC_RamFs_putc ( oC_RamFs_Context_t Context , char Character , oC_File_t File );
67 extern bool oC_RamFs_eof ( oC_RamFs_Context_t Context , oC_File_t File );
68 extern uint32_t oC_RamFs_size ( oC_RamFs_Context_t Context , oC_File_t File );
69 
70 extern oC_ErrorCode_t oC_RamFs_opendir ( oC_RamFs_Context_t Context , oC_Dir_t * outDir , const char * Path );
71 extern oC_ErrorCode_t oC_RamFs_closedir ( oC_RamFs_Context_t Context , oC_Dir_t Dir );
72 extern oC_ErrorCode_t oC_RamFs_readdir ( oC_RamFs_Context_t Context , oC_Dir_t Dir , oC_FileInfo_t * outFileInfo );
73 
74 extern oC_ErrorCode_t oC_RamFs_stat ( oC_RamFs_Context_t Context , const char * Path , oC_FileInfo_t * outFileInfo);
75 extern oC_ErrorCode_t oC_RamFs_unlink ( oC_RamFs_Context_t Context , const char * Path);
76 extern oC_ErrorCode_t oC_RamFs_rename ( oC_RamFs_Context_t Context , const char * OldName , const char * NewName);
77 extern oC_ErrorCode_t oC_RamFs_chmod ( oC_RamFs_Context_t Context , const char * Path, oC_FileSystem_FileAttributes_t Attributes , oC_FileSystem_FileAttributes_t Mask);
78 extern oC_ErrorCode_t oC_RamFs_utime ( oC_RamFs_Context_t Context , const char * Path , oC_Timestamp_t Timestamp );
79 extern oC_ErrorCode_t oC_RamFs_mkdir ( oC_RamFs_Context_t Context , const char * Path);
80 extern bool oC_RamFs_DirExists ( oC_RamFs_Context_t Context , const char * Path);
81 
82 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
83 
90 #define _________________________________________VARIABLES_SECTION__________________________________________________________________________
91 
92 extern const oC_FileSystem_Registration_t RamFs;
93 
94 #undef _________________________________________VARIABLES_SECTION__________________________________________________________________________
95 
96 
97 
98 #endif /* SYSTEM_CORE_INC_FS_RAMFS_OC_RAMFS_H_ */
oC_FileSystem_ModeFlags_t
Definition: oc_fs.h:54
The file with interface for file systems.
stores ETH context
Definition: oc_eth.c:97
Definition: oc_devfs.c:60