1 /* 2 Init VFS plugins. 3 4 Copyright (C) 2011-2024 5 Free Software Foundation, Inc. 6 7 Written by: 8 Slava Zanko <slavazanko@gmail.com>, 2011. 9 10 This file is part of the Midnight Commander. 11 12 The Midnight Commander is free software: you can redistribute it 13 and/or modify it under the terms of the GNU General Public License as 14 published by the Free Software Foundation, either version 3 of the License, 15 or (at your option) any later version. 16 17 The Midnight Commander is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 GNU General Public License for more details. 21 22 You should have received a copy of the GNU General Public License 23 along with this program. If not, see <http://www.gnu.org/licenses/>. 24 */ 25 26 /** \file 27 * \brief This is a template file (here goes brief description). 28 * \author Author1 29 * \author Author2 30 * \date 20xx 31 * 32 * Detailed description. 33 */ 34 35 #include <config.h> 36 37 #include "lib/global.h" 38 39 #include "local/local.h" 40 41 #ifdef ENABLE_VFS_CPIO 42 #include "cpio/cpio.h" 43 #endif 44 45 #ifdef ENABLE_VFS_EXTFS 46 #include "extfs/extfs.h" 47 #endif 48 49 #ifdef ENABLE_VFS_SHELL 50 #include "shell/shell.h" 51 #endif 52 53 #ifdef ENABLE_VFS_FTP 54 #include "ftpfs/ftpfs.h" 55 #endif 56 57 #ifdef ENABLE_VFS_SFTP 58 #include "sftpfs/sftpfs.h" 59 #endif 60 61 #ifdef ENABLE_VFS_SFS 62 #include "sfs/sfs.h" 63 #endif 64 65 #ifdef ENABLE_VFS_TAR 66 #include "tar/tar.h" 67 #endif 68 69 #ifdef ENABLE_VFS_UNDELFS 70 #include "undelfs/undelfs.h" 71 #endif 72 73 #include "plugins_init.h" 74 75 /*** global variables ****************************************************************************/ 76 77 /*** file scope macro definitions ****************************************************************/ 78 79 /*** file scope type declarations ****************************************************************/ 80 81 /*** file scope variables ************************************************************************/ 82 83 /*** file scope functions ************************************************************************/ 84 /* --------------------------------------------------------------------------------------------- */ 85 86 /* --------------------------------------------------------------------------------------------- */ 87 /*** public functions ****************************************************************************/ 88 /* --------------------------------------------------------------------------------------------- */ 89 90 void 91 vfs_plugins_init (void) /* */ 92 { 93 /* localfs needs to be the first one */ 94 vfs_init_localfs (); 95 96 #ifdef ENABLE_VFS_CPIO 97 vfs_init_cpiofs (); 98 #endif /* ENABLE_VFS_CPIO */ 99 #ifdef ENABLE_VFS_TAR 100 vfs_init_tarfs (); 101 #endif /* ENABLE_VFS_TAR */ 102 #ifdef ENABLE_VFS_SFS 103 vfs_init_sfs (); 104 #endif /* ENABLE_VFS_SFS */ 105 #ifdef ENABLE_VFS_EXTFS 106 vfs_init_extfs (); 107 #endif /* ENABLE_VFS_EXTFS */ 108 #ifdef ENABLE_VFS_UNDELFS 109 vfs_init_undelfs (); 110 #endif /* ENABLE_VFS_UNDELFS */ 111 112 #ifdef ENABLE_VFS_FTP 113 vfs_init_ftpfs (); 114 #endif /* ENABLE_VFS_FTP */ 115 #ifdef ENABLE_VFS_SFTP 116 vfs_init_sftpfs (); 117 #endif /* ENABLE_VFS_SFTP */ 118 #ifdef ENABLE_VFS_SHELL 119 vfs_init_shell (); 120 #endif /* ENABLE_VFS_SHELL */ 121 } 122 123 /* --------------------------------------------------------------------------------------------- */