1 /** 2 * \file 3 * \brief Header: local FS 4 */ 5 6 #ifndef MC__VFS_LOCAL_H 7 #define MC__VFS_LOCAL_H 8 9 #include "lib/vfs/vfs.h" 10 11 /*** typedefs(not structures) and defined constants **********************************************/ 12 13 /*** enums ***************************************************************************************/ 14 15 /*** structures declarations (and typedefs of structures)*****************************************/ 16 17 /*** global variables defined in .c file *********************************************************/ 18 19 /*** declarations of public functions ************************************************************/ 20 21 extern void vfs_init_localfs (void); 22 23 /* these functions are used by other filesystems, so they are 24 * published here. */ 25 extern int local_close (void *data); 26 extern ssize_t local_read (void *data, char *buffer, size_t count); 27 extern int local_fstat (void *data, struct stat *buf); 28 extern int local_errno (struct vfs_class *me); 29 extern off_t local_lseek (void *data, off_t offset, int whence); 30 31 /*** inline functions ****************************************************************************/ 32 #endif