gc.h 709 B

12345678910111213141516171819202122232425262728293031
  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-impl.h"
  8. struct vfs_stamping
  9. {
  10. struct vfs_class *v;
  11. vfsid id;
  12. struct vfs_stamping *next;
  13. struct timeval time;
  14. };
  15. void vfs_stamp (struct vfs_class *vclass, vfsid id);
  16. void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
  17. void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
  18. void vfs_add_current_stamps (void);
  19. void vfs_timeout_handler (void);
  20. void vfs_expire (int now);
  21. int vfs_timeouts (void);
  22. void vfs_release_path (const char *dir);
  23. vfsid vfs_getid (struct vfs_class *vclass, const char *dir);
  24. void vfs_gc_done (void);
  25. #endif /* MC_VFS_GC_H */