Choco OS  V.0.16.9.0
Join to the chocolate world
oc_devfs.h
Go to the documentation of this file.
1 
28 #ifndef INC_FS_DEVFS_OC_DEVFS_H_
29 #define INC_FS_DEVFS_OC_DEVFS_H_
30 
31 #include <oc_fs.h>
32 
38 #define _________________________________________TYPES_SECTION______________________________________________________________________________
39 
42 typedef struct Context_t * oC_DevFs_Context_t;
43 
44 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
45 
52 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
53 
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 );
70 
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 );
74 
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);
82 
83 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
84 
91 #define _________________________________________VARIABLES_SECTION__________________________________________________________________________
92 
93 extern const oC_FileSystem_Registration_t DevFs;
94 
95 #undef _________________________________________VARIABLES_SECTION__________________________________________________________________________
96 
97 
98 #endif /* INC_FS_DEVFS_OC_DEVFS_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