gc.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * \file
  3. * \brief Header: Virtual File System: garbage collection code
  4. */
  5. #ifndef MC__VFS_GC_H
  6. #define MC__VFS_GC_H
  7. #include "vfs.h"
  8. /*** typedefs(not structures) and defined constants **********************************************/
  9. /*** enums ***************************************************************************************/
  10. /*** structures declarations (and typedefs of structures)*****************************************/
  11. struct vfs_stamping
  12. {
  13. struct vfs_class *v;
  14. vfsid id;
  15. struct vfs_stamping *next;
  16. struct timeval time;
  17. };
  18. /*** global variables defined in .c file *********************************************************/
  19. /*** declarations of public functions ************************************************************/
  20. void vfs_stamp (struct vfs_class *vclass, vfsid id);
  21. void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
  22. void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
  23. void vfs_gc_done (void);
  24. /*** inline functions ****************************************************************************/
  25. #endif /* MC_VFS_GC_H */