vfs_timeout and use_netrc variables were moved to vfs.h file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-04-17 12:06:09 +04:00
parent 54b38bd381
commit 873880edc2
5 changed files with 15 additions and 17 deletions

View File

@ -9,15 +9,14 @@
#include "vfs-impl.h"
struct vfs_stamping {
struct vfs_stamping
{
struct vfs_class *v;
vfsid id;
struct vfs_stamping *next;
struct timeval time;
};
extern int vfs_timeout;
void vfs_stamp (struct vfs_class *vclass, vfsid id);
void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
@ -29,4 +28,4 @@ void vfs_release_path (const char *dir);
vfsid vfs_getid (struct vfs_class *vclass, const char *dir);
void vfs_gc_done (void);
#endif /* __GC_H */
#endif /* MC_VFS_GC_H */

View File

@ -135,10 +135,6 @@ void vfs_fill_names (fill_names_f);
/* vfs/direntry.c: */
void *vfs_s_open (struct vfs_class *, const char *, int, int);
#ifdef USE_NETCODE
extern int use_netrc;
#endif
void init_cpiofs (void);
void init_extfs (void);
void init_fish (void);

View File

@ -18,6 +18,12 @@
#ifdef ENABLE_VFS
extern int vfs_timeout;
#ifdef USE_NETCODE
extern int use_netrc;
#endif
void vfs_init (void);
void vfs_shut (void);

View File

@ -42,12 +42,12 @@
#include "lib/mcconfig.h" /* Load/save user formats */
#include "lib/strutil.h"
#ifdef USE_NETCODE
# include "lib/vfs/mc-vfs/ftpfs.h"
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/vfs.h" /* vfs_timeout */
#endif
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#ifdef USE_NETCODE
# include "lib/vfs/mc-vfs/ftpfs.h"
#endif
#include "dialog.h" /* The nice dialog manager */

View File

@ -36,16 +36,13 @@
#include "lib/vfs/mc-vfs/vfs.h"
#include "lib/mcconfig.h"
#include "lib/fileloc.h"
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#endif
#include "lib/strutil.h" /* str_isutf8 () */
#ifdef USE_NETCODE
# include "lib/vfs/mc-vfs/ftpfs.h"
# include "lib/vfs/mc-vfs/fish.h"
#endif
#include "lib/strutil.h" /* str_isutf8 () */
#include "args.h"
#include "dir.h"