gc.h 732 B

1234567891011121314151617181920212223242526272829303132
  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. struct vfs_class *v;
  10. vfsid id;
  11. struct vfs_stamping *next;
  12. struct timeval time;
  13. };
  14. extern int vfs_timeout;
  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 /* __GC_H */