diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-02-23 22:16:15 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-02-23 22:16:15 +0100 |
commit | 3575372e0169009f1fcf3adb164c5221903d7d3c (patch) | |
tree | d768ffa075629cf4b4bc37546e7c169f5f950756 | |
parent | f6c26d33a4e15d966597bc9d66c1f33328a750af (diff) | |
download | rockbox-3575372.tar.gz rockbox-3575372.zip |
Add forgotten file.
Change-Id: Ibd17bba201427b4bc0e45f29b246c20bd493c7d6
-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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * + * Copyright © 2013 by Thomas Martitz + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +/* hosted storage driver + * + * Small functions to support storage_* api on hosted targets + * where we don't use raw access to storage devices but run on OS-mounted + * file systems */ + +#ifndef HOSTFS_H +#define HOSTFS_H + +#include <stdbool.h> +#ifdef __unix__ +#include <unistd.h> +#endif +#include "config.h" + +extern void hostfs_init(void); +extern int hostfs_flush(void); + +#ifdef HAVE_HOTSWAP +extern bool hostfs_removable(int drive); +extern bool hostfs_present(int drive); +#endif + +#endif /* HOSTFS_H */ |