2005-02-19 00:15:37 +03:00
|
|
|
#ifndef MC_VFS_GC_H
|
|
|
|
#define MC_VFS_GC_H
|
2003-11-08 02:43:55 +03:00
|
|
|
|
2004-08-17 03:18:42 +04:00
|
|
|
#include "vfs-impl.h"
|
|
|
|
|
2003-11-08 02:43:55 +03:00
|
|
|
struct vfs_stamping {
|
|
|
|
struct vfs_class *v;
|
|
|
|
vfsid id;
|
|
|
|
struct vfs_stamping *next;
|
|
|
|
struct timeval time;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int vfs_timeout;
|
|
|
|
|
2003-11-27 00:25:30 +03:00
|
|
|
void vfs_stamp (struct vfs_class *vclass, vfsid id);
|
|
|
|
void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
|
2003-11-27 00:10:42 +03:00
|
|
|
void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
|
2003-11-08 02:43:55 +03:00
|
|
|
void vfs_add_current_stamps (void);
|
|
|
|
void vfs_timeout_handler (void);
|
2003-11-27 00:10:42 +03:00
|
|
|
void vfs_expire (int now);
|
2003-11-08 02:43:55 +03:00
|
|
|
int vfs_timeouts (void);
|
|
|
|
void vfs_release_path (const char *dir);
|
2003-11-27 00:25:30 +03:00
|
|
|
vfsid vfs_getid (struct vfs_class *vclass, const char *dir);
|
2003-11-08 02:43:55 +03:00
|
|
|
void vfs_gc_done (void);
|
|
|
|
|
|
|
|
#endif /* __GC_H */
|