local.h 1.1 KB

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