diff options
Diffstat (limited to 'firmware/export/hostfs.h')
-rw-r--r-- | firmware/export/hostfs.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/firmware/export/hostfs.h b/firmware/export/hostfs.h new file mode 100644 index 0000000000..d6f571a929 --- /dev/null +++ b/firmware/export/hostfs.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright © 2013 by Thomas Martitz | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License | ||
13 | * as published by the Free Software Foundation; either version 2 | ||
14 | * of the License, or (at your option) any later version. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | /* hosted storage driver | ||
22 | * | ||
23 | * Small functions to support storage_* api on hosted targets | ||
24 | * where we don't use raw access to storage devices but run on OS-mounted | ||
25 | * file systems */ | ||
26 | |||
27 | #ifndef HOSTFS_H | ||
28 | #define HOSTFS_H | ||
29 | |||
30 | #include <stdbool.h> | ||
31 | #ifdef __unix__ | ||
32 | #include <unistd.h> | ||
33 | #endif | ||
34 | #include "config.h" | ||
35 | |||
36 | extern void hostfs_init(void); | ||
37 | extern int hostfs_flush(void); | ||
38 | |||
39 | #ifdef HAVE_HOTSWAP | ||
40 | extern bool hostfs_removable(int drive); | ||
41 | extern bool hostfs_present(int drive); | ||
42 | #endif | ||
43 | |||
44 | #endif /* HOSTFS_H */ | ||