aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/sys_defs.h
diff options
context:
space:
mode:
authorpashamray <pashamray@gmail.com>2014-07-02 13:02:01 +0300
committerpashamray <pashamray@gmail.com>2014-07-02 13:02:01 +0300
commite67fbb3e6b82742eae4096faff2a1e47e25804e3 (patch)
tree35df6e920e377ac05ba37c9479de47e8522cee75 /src/gfile/sys_defs.h
parent2127c61eeeea920ba79923bc6f29a1e2de80d61d (diff)
parent2b141cea7f30cb45f559db5949dcfbf0ebb7c613 (diff)
downloaduGFX-e67fbb3e6b82742eae4096faff2a1e47e25804e3.tar.gz
uGFX-e67fbb3e6b82742eae4096faff2a1e47e25804e3.tar.bz2
uGFX-e67fbb3e6b82742eae4096faff2a1e47e25804e3.zip
Tectu/ugfx слито с master
Diffstat (limited to 'src/gfile/sys_defs.h')
-rw-r--r--src/gfile/sys_defs.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/gfile/sys_defs.h b/src/gfile/sys_defs.h
index e4bced67..4280f7fe 100644
--- a/src/gfile/sys_defs.h
+++ b/src/gfile/sys_defs.h
@@ -197,9 +197,52 @@ extern "C" {
*/
bool_t gfileEOF(GFILE *f);
+ /**
+ * @brief Mount a logical drive (aka partition)
+ *
+ * @details Not supported by every file system
+ * @details Currently just one drive at one is supported.
+ *
+ * @param[in] fs The file system (F for FatFS)
+ * @param[in] drive The logical drive prefix
+ *
+ * @return TRUE on success, FALSE otherwise
+ *
+ * @api
+ */
+ bool_t gfileMount(char fs, const char *drive);
+
+ /**
+ * @brief Unmount a logical drive (aka partition)
+ *
+ * @details Does have no effect if @p gfileMount() as been called before hand
+ *
+ * @param[in] fs The file system (F for FatFS)
+ * @param[in] drive The logical drive prefix
+ *
+ * @return TRUE on success, FALSE otherwise
+ *
+ * @api
+ */
+ bool_t gfileUnmount(char fs, const char *drive);
+
+ /**
+ * @brief Syncs the file object (flushes the buffer)
+ *
+ * @details Not supported by every file system
+ *
+ * @param[in] f The file
+ *
+ * @return TRUE on success, FALSE otherwise
+ *
+ * @api
+ */
+ bool_t gfileSync(GFILE *f);
+
#if GFILE_NEED_CHIBIOSFS && GFX_USE_OS_CHIBIOS
GFILE * gfileOpenBaseFileStream(void *BaseFileStreamPtr, const char *mode);
#endif
+
#if GFILE_NEED_MEMFS
GFILE * gfileOpenMemory(void *memptr, const char *mode);
#endif