From ffccd5b2b05243e7976db80f90f453dccfae9886 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:22:03 +0200 Subject: Adding upstream version 3:4.8.30. Signed-off-by: Daniel Baumann --- src/vfs/plugins_init.c | 123 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 src/vfs/plugins_init.c (limited to 'src/vfs/plugins_init.c') 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 , 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 . + */ + +/** \file + * \brief This is a template file (here goes brief description). + * \author Author1 + * \author Author2 + * \date 20xx + * + * Detailed description. + */ + +#include + +#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 */ +} + +/* --------------------------------------------------------------------------------------------- */ -- cgit v1.2.3