28 #ifndef SYSTEM_CORE_INC_FS_RAMFS_OC_RAMFS_H_ 29 #define SYSTEM_CORE_INC_FS_RAMFS_OC_RAMFS_H_ 38 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 44 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 52 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 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 );
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 );
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);
82 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 90 #define _________________________________________VARIABLES_SECTION__________________________________________________________________________ 94 #undef _________________________________________VARIABLES_SECTION__________________________________________________________________________
oC_FileSystem_ModeFlags_t
The file with interface for file systems.