Fix doc path
[opentx.git] / companion / src / storage / mountlist.h
blobcf0418a19c10a704d20b5bb98d5cd93881abdcb5
1 /*
2 * Copyright (C) OpenTX
4 * Based on code named
5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
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.
21 /* mountlist.h -- declarations for list of mounted file systems
23 Copyright (C) 1991, 1992, 1998, 2000, 2001, 2002, 2003, 2004, 2005
24 Free Software Foundation, Inc.
26 This program is free software; you can redistribute it and/or modify
27 it under the terms of the GNU General Public License as published by
28 the Free Software Foundation; either version 2, or (at your option)
29 any later version.
31 This program is distributed in the hope that it will be useful,
32 but WITHOUT ANY WARRANTY; without even the implied warranty of
33 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 GNU General Public License for more details.
36 You should have received a copy of the GNU General Public License
37 along with this program; if not, see <http://www.gnu.org/licenses/>.
40 //////////////////////////////////////////////////////////////////////////////
41 ///@file mountlist.h
42 /// A function to enumerate the mounting points in the filesystem.
43 /// Used to display them in fileselectors.
44 //////////////////////////////////////////////////////////////////////////////
46 #ifndef MOUNTLIST_H_
47 # define MOUNTLIST_H_
49 #if defined __GNUC__
50 # include <stdbool.h>
51 #endif
53 #include <sys/types.h>
55 /* A mount table entry. */
56 struct mount_entry
58 char *me_devname; /* Device node name, including "/dev/". */
59 char *me_mountdir; /* Mount point directory name. */
60 char *me_type; /* "nfs", "4.2", etc. */
61 dev_t me_dev; /* Device number of me_mountdir. */
62 unsigned int me_dummy : 1; /* Nonzero for dummy file systems. */
63 unsigned int me_remote : 1; /* Nonzero for remote fileystems. */
64 unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */
65 struct mount_entry *me_next;
68 struct mount_entry *read_file_system_list (bool need_fs_type);
70 void free_file_system_list(struct mount_entry * mount_list);
72 #endif