Coverage Report

Created: 2023-03-26 07:08

/src/vlc/modules/access/fs.c
Line
Count
Source
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
6
 *
7
 * Authors: Christophe Massiot <massiot@via.ecp.fr>
8
 *          Rémi Denis-Courmont
9
 *
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.
14
 *
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.
19
 *
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
 *****************************************************************************/
24
25
#ifdef HAVE_CONFIG_H
26
# include "config.h"
27
#endif
28
29
#include <vlc_common.h>
30
#include "fs.h"
31
#include <vlc_plugin.h>
32
33
4
vlc_module_begin ()
34
2
    set_description( N_("File input") )
35
2
    set_shortname( N_("File") )
36
2
    set_subcategory( SUBCAT_INPUT_ACCESS )
37
2
    set_capability( "access", 50 )
38
2
    add_shortcut( "file", "fd", "stream" )
39
4
    set_callbacks( FileOpen, FileClose )
40
41
2
    add_submodule()
42
2
    set_section( N_("Directory" ), NULL )
43
2
    set_capability( "access", 55 )
44
#ifndef HAVE_FDOPENDIR
45
    add_shortcut( "file", "directory", "dir" )
46
#else
47
2
    add_shortcut( "directory", "dir" )
48
2
#endif
49
4
    set_callbacks( DirOpen, DirClose )
50
51
2
    add_bool("list-special-files", false, N_("List special files"),
52
2
             N_("Include devices and pipes when listing directories"))
53
    add_obsolete_string("directory-sort") /* since 3.0.0 */
54
2
vlc_module_end ()