static void setup (void) { str_init_strings("KOI8-R"); vfs_init (); init_localfs (); }
/* @Before */ static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); test_subclass1.flags = VFS_S_REMOTE; vfs_s_init_class (&vfs_test_ops1, &test_subclass1); vfs_test_ops1.name = "testfs1"; vfs_test_ops1.flags = VFSF_NOLINKS; vfs_test_ops1.prefix = "test1"; vfs_test_ops1.chdir = test_chdir; vfs_register_class (&vfs_test_ops1); mc_global.sysconfig_dir = (char *) TEST_SHARE_DIR; vfs_local_ops.chdir = test_chdir; test_chdir__init (); }
/* @Before */ static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); vfs_s_init_class (&vfs_test_ops1, &test_subclass1); vfs_test_ops1.name = "testfs1"; vfs_test_ops1.flags = VFSF_NOLINKS; vfs_test_ops1.prefix = "test1"; vfs_register_class (&vfs_test_ops1); test_subclass2.flags = VFS_S_REMOTE; vfs_s_init_class (&vfs_test_ops2, &test_subclass2); vfs_test_ops2.name = "testfs2"; vfs_test_ops2.prefix = "test2"; vfs_register_class (&vfs_test_ops2); vfs_s_init_class (&vfs_test_ops3, &test_subclass3); vfs_test_ops3.name = "testfs3"; vfs_test_ops3.prefix = "test3"; vfs_register_class (&vfs_test_ops3); #ifdef HAVE_CHARSET mc_global.sysconfig_dir = (char *) TEST_SHARE_DIR; load_codepages_list (); #endif /* HAVE_CHARSET */ }
static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); test_subclass1.flags = VFS_S_REMOTE; vfs_s_init_class (&vfs_test_ops1, &test_subclass1); vfs_test_ops1.name = "testfs1"; vfs_test_ops1.flags = VFSF_NOLINKS; vfs_test_ops1.prefix = "test1:"; vfs_register_class (&vfs_test_ops1); vfs_s_init_class (&vfs_test_ops2, &test_subclass2); vfs_test_ops2.name = "testfs2"; vfs_test_ops2.prefix = "test2:"; vfs_register_class (&vfs_test_ops2); vfs_s_init_class (&vfs_test_ops3, &test_subclass3); vfs_test_ops3.name = "testfs3"; vfs_test_ops3.prefix = "test3:"; vfs_register_class (&vfs_test_ops3); }
/* @Before */ static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); }
/* @Before */ static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); do_cd__new_dir_vpath__captured = NULL; }
static void test_init_vfs(const char *encoding) { str_init_strings (encoding); vfs_init (); init_localfs (); vfs_setup_work_dir (); mc_global.sysconfig_dir = (char *) TEST_SHARE_DIR; mc_global.sysconfig_dir = (char *) TEST_SHARE_DIR; load_codepages_list (); }
/* @Before */ static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); mc_global.sysconfig_dir = (char *) TEST_SHARE_DIR; #ifdef HAVE_CHARSET load_codepages_list (); #endif }
/* @Before */ static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); vfs_s_init_class (&vfs_test_ops, &test_subclass); vfs_test_ops.name = "testfs"; vfs_test_ops.prefix = "test"; vfs_test_ops.chdir = test_chdir; }
static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); mc_global.mc_run_mode = MC_RUN_FULL; current_panel = g_new0 (WPanel, 1); current_panel->cwd_vpath = vfs_path_from_str ("/home"); current_panel->dir.size = DIR_LIST_MIN_SIZE; current_panel->dir.list = g_new0 (file_entry_t, current_panel->dir.size); current_panel->dir.len = 0; }
/* @Before */ static void setup (void) { str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); vfs_init_class (&vfs_test_ops1, "testfs1", VFS_NOLINKS | VFS_REMOTE, "test1"); vfs_register_class (&vfs_test_ops1); vfs_init_class (&vfs_test_ops2, "testfs2", VFS_UNKNOWN, "test2"); vfs_register_class (&vfs_test_ops2); vfs_init_class (&vfs_test_ops3, "testfs3", VFS_UNKNOWN, "test3"); vfs_register_class (&vfs_test_ops3); mc_global.sysconfig_dir = (char *) TEST_SHARE_DIR; #ifdef HAVE_CHARSET load_codepages_list (); #endif }
/* @Before */ static void setup (void) { static struct stat initstat; str_init_strings (NULL); vfs_init (); init_localfs (); vfs_setup_work_dir (); test_subclass1.flags = VFS_S_REMOTE; vfs_s_init_class (&vfs_test_ops1, &test_subclass1); vfs_test_ops1.name = "testfs1"; vfs_test_ops1.flags = VFSF_NOLINKS; vfs_test_ops1.prefix = "test1:"; vfs_register_class (&vfs_test_ops1); vfs_test_super = g_new0 (struct vfs_s_super, 1); vfs_test_super->me = &vfs_test_ops1; vfs_root_inode = vfs_s_new_inode (&vfs_test_ops1, vfs_test_super, &initstat); vfs_root_entry = vfs_s_new_entry (&vfs_test_ops1, "/", vfs_root_inode); }
void vfs_plugins_init (void) { /* localfs needs to be the first one */ init_localfs (); #ifdef ENABLE_VFS_CPIO init_cpiofs (); #endif /* ENABLE_VFS_CPIO */ #ifdef ENABLE_VFS_TAR init_tarfs (); #endif /* ENABLE_VFS_TAR */ #ifdef ENABLE_VFS_SFS init_sfs (); #endif /* ENABLE_VFS_SFS */ #ifdef ENABLE_VFS_EXTFS init_extfs (); #endif /* ENABLE_VFS_EXTFS */ #ifdef ENABLE_VFS_UNDELFS init_undelfs (); #endif /* ENABLE_VFS_UNDELFS */ #ifdef ENABLE_VFS_FTP init_ftpfs (); #endif /* ENABLE_VFS_FTP */ #ifdef ENABLE_VFS_SFTP init_sftpfs (); #endif /* ENABLE_VFS_SFTP */ #ifdef ENABLE_VFS_FISH init_fish (); #endif /* ENABLE_VFS_FISH */ #ifdef ENABLE_VFS_SMB init_smbfs (); #endif /* ENABLE_VFS_SMB */ }