mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
4b5a2a0b62
* gc.c (vfs_stamp_create): ... here. Use whenever possible.
32 lines
885 B
C
32 lines
885 B
C
#ifndef __GC_H
|
|
#define __GC_H
|
|
|
|
struct vfs_stamping {
|
|
struct vfs_class *v;
|
|
vfsid id;
|
|
struct vfs_stamping *parent;
|
|
struct vfs_stamping *next;
|
|
struct timeval time;
|
|
};
|
|
|
|
extern int vfs_timeout;
|
|
|
|
void vfs_stamp (struct vfs_class *, vfsid);
|
|
void vfs_rmstamp (struct vfs_class *, vfsid, int);
|
|
void vfs_add_noncurrent_stamps (struct vfs_class *, vfsid,
|
|
struct vfs_stamping *);
|
|
void vfs_stamp_create (struct vfs_class *vclass, vfsid id,
|
|
const char *parent_name);
|
|
void vfs_add_current_stamps (void);
|
|
void vfs_timeout_handler (void);
|
|
void vfs_expire (int);
|
|
int vfs_timeouts (void);
|
|
void vfs_release_path (const char *dir);
|
|
vfsid vfs_getid (struct vfs_class *vclass, const char *path,
|
|
struct vfs_stamping **parent);
|
|
vfsid vfs_ncs_getid (struct vfs_class *nvfs, const char *dir,
|
|
struct vfs_stamping **par);
|
|
void vfs_gc_done (void);
|
|
|
|
#endif /* __GC_H */
|