1 /*
2 Init VFS plugins.
3
4 Copyright (C) 2011-2025
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 <https://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 #include "plugins_init.h"
70
71 /*** global variables ****************************************************************************/
72
73 /*** file scope macro definitions ****************************************************************/
74
75 /*** file scope type declarations ****************************************************************/
76
77 /*** file scope variables ************************************************************************/
78
79 /*** file scope functions ************************************************************************/
80 /* --------------------------------------------------------------------------------------------- */
81
82 /* --------------------------------------------------------------------------------------------- */
83 /*** public functions ****************************************************************************/
84 /* --------------------------------------------------------------------------------------------- */
85
86 void
87 vfs_plugins_init (void)
/* ![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
*/
88 {
89 // localfs needs to be the first one
90 vfs_init_localfs ();
91
92 #ifdef ENABLE_VFS_CPIO
93 vfs_init_cpiofs ();
94 #endif
95 #ifdef ENABLE_VFS_TAR
96 vfs_init_tarfs ();
97 #endif
98 #ifdef ENABLE_VFS_SFS
99 vfs_init_sfs ();
100 #endif
101 #ifdef ENABLE_VFS_EXTFS
102 vfs_init_extfs ();
103 #endif
104
105 #ifdef ENABLE_VFS_FTP
106 vfs_init_ftpfs ();
107 #endif
108 #ifdef ENABLE_VFS_SFTP
109 vfs_init_sftpfs ();
110 #endif
111 #ifdef ENABLE_VFS_SHELL
112 vfs_init_shell ();
113 #endif
114 }
115
116 /* --------------------------------------------------------------------------------------------- */