2009-02-07 15:54:58 +03:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \brief Header: Virtual File System: garbage collection code
|
|
|
|
*/
|
|
|
|
|
2010-11-08 13:21:45 +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"
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
2010-04-17 12:06:09 +04:00
|
|
|
struct vfs_stamping
|
|
|
|
{
|
2003-11-08 02:43:55 +03:00
|
|
|
struct vfs_class *v;
|
|
|
|
vfsid id;
|
|
|
|
struct vfs_stamping *next;
|
|
|
|
struct timeval time;
|
|
|
|
};
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
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-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);
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2010-04-17 12:06:09 +04:00
|
|
|
#endif /* MC_VFS_GC_H */
|