doc: sdl_opengl_player: fix build
[vlc.git] / modules / access / fs.c
blobdae8c871649e6e099455107ef344e5d5ca2f7c42
1 /*****************************************************************************
2 * fs.c: file system access plugin
3 *****************************************************************************
4 * Copyright (C) 2001-2006 VLC authors and VideoLAN
5 * Copyright © 2006-2007 Rémi Denis-Courmont
7 * Authors: Christophe Massiot <massiot@via.ecp.fr>
8 * Rémi Denis-Courmont
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * 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 vlc_module_begin ()
34 set_description( N_("File input") )
35 set_shortname( N_("File") )
36 set_category( CAT_INPUT )
37 set_subcategory( SUBCAT_INPUT_ACCESS )
38 add_obsolete_string( "file-cat" )
39 set_capability( "access", 50 )
40 add_shortcut( "file", "fd", "stream" )
41 set_callbacks( FileOpen, FileClose )
43 add_submodule()
44 set_section( N_("Directory" ), NULL )
45 set_capability( "access", 55 )
46 #ifndef HAVE_FDOPENDIR
47 add_shortcut( "file", "directory", "dir" )
48 #else
49 add_shortcut( "directory", "dir" )
50 #endif
51 set_callbacks( DirOpen, DirClose )
53 add_bool("list-special-files", false, N_("List special files"),
54 N_("Include devices and pipes when listing directories"), true)
55 add_obsolete_string("directory-sort") /* since 3.0.0 */
56 vlc_module_end ()