KallistiOS  2.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
fs_iso9660.h
Go to the documentation of this file.
1 /* KallistiOS 2.0.0
2 
3  dc/fs/iso9660.h
4  (c)2000-2001 Dan Potter
5 
6 */
7 
8 /** \file dc/fs_iso9660.h
9  \brief ISO9660 (CD-ROM) filesystem driver.
10 
11  This driver implements support for reading files from a CD-ROM or CD-R in
12  the Dreamcast's disc drive. This filesystem mounts itself on /cd.
13 
14  This driver supports Rock Ridge, thanks to Andrew Kieschnick. The driver
15  also supports the Joliet extensions thanks to Bero.
16 
17  The implementation was originally based on a simple ISO9660 implementation
18  by Marcus Comstedt.
19 
20  \author Dan Potter
21  \author Andrew Kieschnick
22  \author Bero
23 */
24 
25 #ifndef __DC_FS_ISO9660_H
26 #define __DC_FS_ISO9660_H
27 
28 #include <sys/cdefs.h>
29 __BEGIN_DECLS
30 
31 #include <arch/types.h>
32 #include <kos/limits.h>
33 #include <kos/fs.h>
34 
35 /** \brief The maximum number of files that can be open at once. */
36 #define MAX_ISO_FILES 8
37 
38 /** \brief Reset the internal ISO9660 cache.
39 
40  This function resets the cache of the ISO9660 driver, breaking connections
41  to all files. This generally assumes that a new disc has been or will be
42  inserted.
43 
44  \retval 0 On success.
45 */
46 int iso_reset();
47 
48 /* \cond */
49 int fs_iso9660_init();
50 int fs_iso9660_shutdown();
51 /* \endcond */
52 
53 __END_DECLS
54 
55 #endif /* __DC_FS_ISO9660_H */
56