1 /* Virtual File System: SFTP file system.
2 The interface function
3
4 Copyright (C) 2011-2021
5 Free Software Foundation, Inc.
6
7 Written by:
8 Ilia Maslakov <il.smind@gmail.com>, 2011
9 Slava Zanko <slavazanko@gmail.com>, 2011, 2012
10
11 This file is part of the Midnight Commander.
12
13 The Midnight Commander is free software: you can redistribute it
14 and/or modify it under the terms of the GNU General Public License as
15 published by the Free Software Foundation, either version 3 of the License,
16 or (at your option) any later version.
17
18 The Midnight Commander is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 */
26
27 #include <config.h>
28
29 #include "lib/global.h"
30 #include "lib/vfs/netutil.h"
31
32 #include "init.h"
33 #include "internal.h"
34
35 /*** global variables ****************************************************************************/
36
37 struct vfs_s_subclass sftpfs_subclass;
38 struct vfs_class *sftpfs_class = VFS_CLASS (&sftpfs_subclass);
39
40 /*** file scope macro definitions ****************************************************************/
41
42 /*** file scope type declarations ****************************************************************/
43
44 /*** file scope variables ************************************************************************/
45
46 /*** file scope functions ************************************************************************/
47 /* --------------------------------------------------------------------------------------------- */
48
49 /* --------------------------------------------------------------------------------------------- */
50 /*** public functions ****************************************************************************/
51 /* --------------------------------------------------------------------------------------------- */
52 /**
53 * Initialization of SFTP Virtual File Sysytem.
54 */
55
56 void
vfs_init_sftpfs(void)57 vfs_init_sftpfs (void)
58 {
59 tcp_init ();
60
61 vfs_init_subclass (&sftpfs_subclass, "sftpfs", VFSF_NOLINKS | VFSF_REMOTE, "sftp");
62 sftpfs_init_class ();
63 sftpfs_init_subclass ();
64 vfs_register_class (sftpfs_class);
65 }
66
67 /* --------------------------------------------------------------------------------------------- */
68