2009-02-07 14:54:58 +02:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \brief Header: Virtual File System: garbage collection code
|
|
|
|
*/
|
|
|
|
|
2010-11-08 12:21:45 +02:00
|
|
|
#ifndef MC__VFS_GC_H
|
|
|
|
#define MC__VFS_GC_H
|
2003-11-07 23:43:55 +00:00
|
|
|
|
2011-02-15 15:44:17 +02:00
|
|
|
#include "vfs.h"
|
2004-08-16 23:18:42 +00:00
|
|
|
|
2010-11-08 12:21:45 +02: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-07 23:43:55 +00:00
|
|
|
struct vfs_class *v;
|
|
|
|
vfsid id;
|
|
|
|
struct vfs_stamping *next;
|
|
|
|
struct timeval time;
|
|
|
|
};
|
|
|
|
|
2010-11-08 12:21:45 +02:00
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2003-11-26 21:25:30 +00:00
|
|
|
void vfs_stamp (struct vfs_class *vclass, vfsid id);
|
|
|
|
void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
|
2003-11-26 21:10:42 +00:00
|
|
|
void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
|
2003-11-07 23:43:55 +00:00
|
|
|
void vfs_gc_done (void);
|
|
|
|
|
2010-11-08 12:21:45 +02:00
|
|
|
/*** inline functions ****************************************************************************/
|
2010-04-17 12:06:09 +04:00
|
|
|
#endif /* MC_VFS_GC_H */
|