28 #ifndef INC_FS_DEVFS_OC_DEVFS_H_ 29 #define INC_FS_DEVFS_OC_DEVFS_H_ 38 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 44 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 52 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 56 extern oC_ErrorCode_t oC_DevFs_init ( oC_DevFs_Context_t * outContext );
57 extern oC_ErrorCode_t oC_DevFs_deinit ( oC_DevFs_Context_t Context );
58 extern oC_ErrorCode_t oC_DevFs_fopen ( oC_DevFs_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_DevFs_fclose ( oC_DevFs_Context_t Context ,
oC_File_t File );
60 extern oC_ErrorCode_t oC_DevFs_fread ( oC_DevFs_Context_t Context ,
oC_File_t File ,
void * outBuffer , uint32_t * Size );
61 extern oC_ErrorCode_t oC_DevFs_fwrite ( oC_DevFs_Context_t Context ,
oC_File_t File ,
const void * Buffer , uint32_t * Size );
62 extern oC_ErrorCode_t oC_DevFs_lseek ( oC_DevFs_Context_t Context ,
oC_File_t File , uint32_t Offset );
63 extern oC_ErrorCode_t oC_DevFs_ioctl ( oC_DevFs_Context_t Context ,
oC_File_t File , oC_Ioctl_Command_t Command ,
void * Pointer);
64 extern oC_ErrorCode_t oC_DevFs_sync ( oC_DevFs_Context_t Context ,
oC_File_t File );
65 extern oC_ErrorCode_t oC_DevFs_getc ( oC_DevFs_Context_t Context ,
char * outCharacter ,
oC_File_t File );
66 extern oC_ErrorCode_t oC_DevFs_putc ( oC_DevFs_Context_t Context ,
char Character ,
oC_File_t File );
67 extern int32_t oC_DevFs_tell ( oC_DevFs_Context_t Context ,
oC_File_t File );
68 extern bool oC_DevFs_eof ( oC_DevFs_Context_t Context ,
oC_File_t File );
69 extern uint32_t oC_DevFs_size ( oC_DevFs_Context_t Context ,
oC_File_t File );
71 extern oC_ErrorCode_t oC_DevFs_opendir ( oC_DevFs_Context_t Context ,
oC_Dir_t * outDir ,
const char * Path );
72 extern oC_ErrorCode_t oC_DevFs_closedir ( oC_DevFs_Context_t Context ,
oC_Dir_t Dir );
73 extern oC_ErrorCode_t oC_DevFs_readdir ( oC_DevFs_Context_t Context ,
oC_Dir_t Dir ,
oC_FileInfo_t * outFileInfo );
75 extern oC_ErrorCode_t oC_DevFs_stat ( oC_DevFs_Context_t Context ,
const char * Path ,
oC_FileInfo_t * outFileInfo);
76 extern oC_ErrorCode_t oC_DevFs_unlink ( oC_DevFs_Context_t Context ,
const char * Path);
77 extern oC_ErrorCode_t oC_DevFs_rename ( oC_DevFs_Context_t Context ,
const char * OldName ,
const char * NewName);
78 extern oC_ErrorCode_t oC_DevFs_chmod ( oC_DevFs_Context_t Context ,
const char * Path, oC_FileSystem_FileAttributes_t Attributes , oC_FileSystem_FileAttributes_t Mask);
79 extern oC_ErrorCode_t oC_DevFs_utime ( oC_DevFs_Context_t Context ,
const char * Path , oC_Timestamp_t Timestamp );
80 extern oC_ErrorCode_t oC_DevFs_mkdir ( oC_DevFs_Context_t Context ,
const char * Path);
81 extern bool oC_DevFs_DirExists ( oC_DevFs_Context_t Context ,
const char * Path);
83 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 91 #define _________________________________________VARIABLES_SECTION__________________________________________________________________________ 95 #undef _________________________________________VARIABLES_SECTION__________________________________________________________________________
oC_FileSystem_ModeFlags_t
The file with interface for file systems.