diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:22:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:22:03 +0000 |
commit | ffccd5b2b05243e7976db80f90f453dccfae9886 (patch) | |
tree | 39a43152d27f7390d8f7a6fb276fa6887f87c6e8 /src/vfs/plugins_init.c | |
parent | Initial commit. (diff) | |
download | mc-upstream/3%4.8.30.tar.xz mc-upstream/3%4.8.30.zip |
Adding upstream version 3:4.8.30.upstream/3%4.8.30
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/vfs/plugins_init.c | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/src/vfs/plugins_init.c b/src/vfs/plugins_init.c new file mode 100644 index 0000000..767e284 --- /dev/null +++ b/src/vfs/plugins_init.c @@ -0,0 +1,123 @@ +/* + Init VFS plugins. + + Copyright (C) 2011-2023 + Free Software Foundation, Inc. + + Written by: + Slava Zanko <slavazanko@gmail.com>, 2011. + + This file is part of the Midnight Commander. + + The Midnight Commander is free software: you can redistribute it + and/or modify it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. + + The Midnight Commander is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** \file + * \brief This is a template file (here goes brief description). + * \author Author1 + * \author Author2 + * \date 20xx + * + * Detailed description. + */ + +#include <config.h> + +#include "lib/global.h" + +#include "local/local.h" + +#ifdef ENABLE_VFS_CPIO +#include "cpio/cpio.h" +#endif + +#ifdef ENABLE_VFS_EXTFS +#include "extfs/extfs.h" +#endif + +#ifdef ENABLE_VFS_FISH +#include "fish/fish.h" +#endif + +#ifdef ENABLE_VFS_FTP +#include "ftpfs/ftpfs.h" +#endif + +#ifdef ENABLE_VFS_SFTP +#include "sftpfs/sftpfs.h" +#endif + +#ifdef ENABLE_VFS_SFS +#include "sfs/sfs.h" +#endif + +#ifdef ENABLE_VFS_TAR +#include "tar/tar.h" +#endif + +#ifdef ENABLE_VFS_UNDELFS +#include "undelfs/undelfs.h" +#endif + +#include "plugins_init.h" + +/*** global variables ****************************************************************************/ + +/*** file scope macro definitions ****************************************************************/ + +/*** file scope type declarations ****************************************************************/ + +/*** file scope variables ************************************************************************/ + +/*** file scope functions ************************************************************************/ +/* --------------------------------------------------------------------------------------------- */ + +/* --------------------------------------------------------------------------------------------- */ +/*** public functions ****************************************************************************/ +/* --------------------------------------------------------------------------------------------- */ + +void +vfs_plugins_init (void) +{ + /* localfs needs to be the first one */ + vfs_init_localfs (); + +#ifdef ENABLE_VFS_CPIO + vfs_init_cpiofs (); +#endif /* ENABLE_VFS_CPIO */ +#ifdef ENABLE_VFS_TAR + vfs_init_tarfs (); +#endif /* ENABLE_VFS_TAR */ +#ifdef ENABLE_VFS_SFS + vfs_init_sfs (); +#endif /* ENABLE_VFS_SFS */ +#ifdef ENABLE_VFS_EXTFS + vfs_init_extfs (); +#endif /* ENABLE_VFS_EXTFS */ +#ifdef ENABLE_VFS_UNDELFS + vfs_init_undelfs (); +#endif /* ENABLE_VFS_UNDELFS */ + +#ifdef ENABLE_VFS_FTP + vfs_init_ftpfs (); +#endif /* ENABLE_VFS_FTP */ +#ifdef ENABLE_VFS_SFTP + vfs_init_sftpfs (); +#endif /* ENABLE_VFS_SFTP */ +#ifdef ENABLE_VFS_FISH + vfs_init_fish (); +#endif /* ENABLE_VFS_FISH */ +} + +/* --------------------------------------------------------------------------------------------- */ |