More mailmap fixes
[vlc.git] / modules / access / fs.c
blob5fb16dc507a553dfbb8dc9f7ae2a6f02ca83c64c
1 /*****************************************************************************
2 * fs.c: file system access plugin
3 *****************************************************************************
4 * Copyright (C) 2001-2006 the VideoLAN team
5 * Copyright © 2006-2007 Rémi Denis-Courmont
7 * Authors: Christophe Massiot <massiot@via.ecp.fr>
8 * Rémi Denis-Courmont <rem # videolan # org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
29 #include <vlc_common.h>
30 #include "fs.h"
31 #include <vlc_plugin.h>
33 #define RECURSIVE_TEXT N_("Subdirectory behavior")
34 #define RECURSIVE_LONGTEXT N_( \
35 "Select whether subdirectories must be expanded.\n" \
36 "none: subdirectories do not appear in the playlist.\n" \
37 "collapse: subdirectories appear but are expanded on first play.\n" \
38 "expand: all subdirectories are expanded.\n" )
40 static const char *const psz_recursive_list[] = { "none", "collapse", "expand" };
41 static const char *const psz_recursive_list_text[] = {
42 N_("none"), N_("collapse"), N_("expand") };
44 #define IGNORE_TEXT N_("Ignored extensions")
45 #define IGNORE_LONGTEXT N_( \
46 "Files with these extensions will not be added to playlist when " \
47 "opening a directory.\n" \
48 "This is useful if you add directories that contain playlist files " \
49 "for instance. Use a comma-separated list of extensions." )
51 vlc_module_begin ()
52 set_description( N_("File input") )
53 set_shortname( N_("File") )
54 set_category( CAT_INPUT )
55 set_subcategory( SUBCAT_INPUT_ACCESS )
56 add_obsolete_string( "file-cat" )
57 set_capability( "access", 50 )
58 add_shortcut( "file", "fd", "stream" )
59 set_callbacks( FileOpen, FileClose )
61 add_submodule()
62 set_section( N_("Directory" ), NULL )
63 set_capability( "access", 55 )
64 add_string( "recursive", "expand" , RECURSIVE_TEXT,
65 RECURSIVE_LONGTEXT, false )
66 change_string_list( psz_recursive_list, psz_recursive_list_text, 0 )
67 add_string( "ignore-filetypes", "m3u,db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv,txt,sub,idx,srt,cue,ssa",
68 IGNORE_TEXT, IGNORE_LONGTEXT, false )
69 #ifndef HAVE_FDOPENDIR
70 add_shortcut( "file", "directory", "dir" )
71 #else
72 add_shortcut( "directory", "dir" )
73 #endif
74 set_callbacks( DirOpen, DirClose )
75 vlc_module_end ()