summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-02-23 22:16:15 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-23 22:16:15 +0100
commit3575372e0169009f1fcf3adb164c5221903d7d3c (patch)
treed768ffa075629cf4b4bc37546e7c169f5f950756
parentf6c26d33a4e15d966597bc9d66c1f33328a750af (diff)
downloadrockbox-3575372e0169009f1fcf3adb164c5221903d7d3c.tar.gz
rockbox-3575372e0169009f1fcf3adb164c5221903d7d3c.zip
Add forgotten file.
Change-Id: Ibd17bba201427b4bc0e45f29b246c20bd493c7d6
-rw-r--r--firmware/export/hostfs.h44
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
36extern void hostfs_init(void);
37extern int hostfs_flush(void);
38
39#ifdef HAVE_HOTSWAP
40extern bool hostfs_removable(int drive);
41extern bool hostfs_present(int drive);
42#endif
43
44#endif /* HOSTFS_H */