gc.h 650 B

1234567891011121314151617181920212223242526
  1. #ifndef MC_VFS_GC_H
  2. #define MC_VFS_GC_H
  3. #include "vfs-impl.h"
  4. struct vfs_stamping {
  5. struct vfs_class *v;
  6. vfsid id;
  7. struct vfs_stamping *next;
  8. struct timeval time;
  9. };
  10. extern int vfs_timeout;
  11. void vfs_stamp (struct vfs_class *vclass, vfsid id);
  12. void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
  13. void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
  14. void vfs_add_current_stamps (void);
  15. void vfs_timeout_handler (void);
  16. void vfs_expire (int now);
  17. int vfs_timeouts (void);
  18. void vfs_release_path (const char *dir);
  19. vfsid vfs_getid (struct vfs_class *vclass, const char *dir);
  20. void vfs_gc_done (void);
  21. #endif /* __GC_H */