Moved the declaration of the init_*fs functions into specialized headers (*fs.h or vfs-impl.h).
Этот коммит содержится в:
родитель
64aad2cda5
Коммит
acd63d7374
@ -14,6 +14,7 @@ extern int ftpfs_use_unix_list_options;
|
|||||||
extern int ftpfs_first_cd_then_ls;
|
extern int ftpfs_first_cd_then_ls;
|
||||||
|
|
||||||
void ftpfs_init_passwd (void);
|
void ftpfs_init_passwd (void);
|
||||||
|
void init_ftpfs (void);
|
||||||
|
|
||||||
#define OPT_FLUSH 1
|
#define OPT_FLUSH 1
|
||||||
#define OPT_IGNORE_ERROR 2
|
#define OPT_IGNORE_ERROR 2
|
||||||
|
@ -3,13 +3,18 @@
|
|||||||
|
|
||||||
#include "vfs-impl.h"
|
#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_close (void *data);
|
||||||
extern int local_read (void *data, char *buffer, int count);
|
extern int local_read (void *data, char *buffer, int count);
|
||||||
extern int local_fstat (void *data, struct stat *buf);
|
extern int local_fstat (void *data, struct stat *buf);
|
||||||
extern int local_errno (struct vfs_class *me);
|
extern int local_errno (struct vfs_class *me);
|
||||||
extern int local_lseek (void *data, off_t offset, int whence);
|
extern int local_lseek (void *data, off_t offset, int whence);
|
||||||
#ifdef HAVE_MMAP
|
#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);
|
extern int local_munmap (struct vfs_class *me, caddr_t addr, size_t len, void *data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ enum {
|
|||||||
MC_PASS
|
MC_PASS
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern void init_mcfs (void);
|
||||||
extern void tcp_invalidate_socket (int);
|
extern void tcp_invalidate_socket (int);
|
||||||
|
|
||||||
#endif /* __MCFS_H */
|
#endif /* __MCFS_H */
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/* smbfs.h */
|
#ifndef MC_VFS_SMBFS_H
|
||||||
|
#define MC_VFS_SMBFS_H
|
||||||
#if !defined(__SMBFS_H)
|
|
||||||
#define __SMBFS_H
|
|
||||||
|
|
||||||
|
void init_smbfs (void);
|
||||||
extern void smbfs_set_debug (int arg);
|
extern void smbfs_set_debug (int arg);
|
||||||
extern void smbfs_set_debugf (const char *filename);
|
extern void smbfs_set_debugf (const char *filename);
|
||||||
|
|
||||||
#endif /* __SMBFS_H*/
|
#endif /* MC_VFS_SMBFS_H */
|
||||||
|
@ -120,4 +120,11 @@ char *vfs_translate_url (const char *);
|
|||||||
extern int use_netrc;
|
extern int use_netrc;
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
@ -44,6 +44,10 @@
|
|||||||
#ifdef USE_NETCODE
|
#ifdef USE_NETCODE
|
||||||
# include "tcputil.h"
|
# include "tcputil.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "ftpfs.h"
|
||||||
|
#include "mcfs.h"
|
||||||
|
#include "smbfs.h"
|
||||||
|
#include "local.h"
|
||||||
|
|
||||||
/* They keep track of the current directory */
|
/* They keep track of the current directory */
|
||||||
static struct vfs_class *current_vfs;
|
static struct vfs_class *current_vfs;
|
||||||
|
11
vfs/vfs.h
11
vfs/vfs.h
@ -5,17 +5,6 @@
|
|||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#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_init (void);
|
||||||
void vfs_shut (void);
|
void vfs_shut (void);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user