Moved the declaration of the init_*fs functions into specialized headers (*fs.h or vfs-impl.h).

This commit is contained in:
Roland Illig 2004-08-17 09:17:43 +00:00
parent 64aad2cda5
commit acd63d7374
7 changed files with 23 additions and 17 deletions

View File

@ -14,6 +14,7 @@ extern int ftpfs_use_unix_list_options;
extern int ftpfs_first_cd_then_ls;
void ftpfs_init_passwd (void);
void init_ftpfs (void);
#define OPT_FLUSH 1
#define OPT_IGNORE_ERROR 2

View File

@ -3,13 +3,18 @@
#include "vfs-impl.h"
extern void init_localfs (void);
/* these functions are used by other filesystems, so they are
* published here. */
extern int local_close (void *data);
extern int local_read (void *data, char *buffer, int count);
extern int local_fstat (void *data, struct stat *buf);
extern int local_errno (struct vfs_class *me);
extern int local_lseek (void *data, off_t offset, int whence);
#ifdef HAVE_MMAP
extern caddr_t local_mmap (struct vfs_class *me, caddr_t addr, size_t len, int prot, int flags, void *data, off_t offset);
extern caddr_t local_mmap (struct vfs_class *me, caddr_t addr, size_t len,
int prot, int flags, void *data, off_t offset);
extern int local_munmap (struct vfs_class *me, caddr_t addr, size_t len, void *data);
#endif

View File

@ -50,6 +50,7 @@ enum {
MC_PASS
};
extern void init_mcfs (void);
extern void tcp_invalidate_socket (int);
#endif /* __MCFS_H */

View File

@ -1,9 +1,8 @@
/* smbfs.h */
#if !defined(__SMBFS_H)
#define __SMBFS_H
#ifndef MC_VFS_SMBFS_H
#define MC_VFS_SMBFS_H
void init_smbfs (void);
extern void smbfs_set_debug (int arg);
extern void smbfs_set_debugf (const char *filename);
#endif /* __SMBFS_H*/
#endif /* MC_VFS_SMBFS_H */

View File

@ -120,4 +120,11 @@ char *vfs_translate_url (const char *);
extern int use_netrc;
#endif
void init_cpiofs (void);
void init_extfs (void);
void init_fish (void);
void init_sfs (void);
void init_tarfs (void);
void init_undelfs (void);
#endif

View File

@ -44,6 +44,10 @@
#ifdef USE_NETCODE
# include "tcputil.h"
#endif
#include "ftpfs.h"
#include "mcfs.h"
#include "smbfs.h"
#include "local.h"
/* They keep track of the current directory */
static struct vfs_class *current_vfs;

View File

@ -5,17 +5,6 @@
#include <sys/mman.h>
#endif
void init_cpiofs (void);
void init_extfs (void);
void init_fish (void);
void init_ftpfs (void);
void init_localfs (void);
void init_mcfs (void);
void init_sfs (void);
void init_smbfs (void);
void init_tarfs (void);
void init_undelfs (void);
void vfs_init (void);
void vfs_shut (void);