Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: LocalFileSystem.h
- Revision:
- 32:3b05dd009342
- Parent:
- 27:7110ebee3484
- Child:
- 43:e2ed12d17f06
diff -r a7ef757f598c -r 3b05dd009342 LocalFileSystem.h
--- a/LocalFileSystem.h Fri Jan 06 12:02:19 2012 +0000
+++ b/LocalFileSystem.h Fri Jan 06 16:40:24 2012 +0000
@@ -9,6 +9,32 @@
namespace mbed {
+FILEHANDLE local_file_open(const char* name, int flags);
+
+class LocalFileHandle : public FileHandle {
+
+public:
+ LocalFileHandle(FILEHANDLE fh);
+
+ virtual int close();
+
+ virtual ssize_t write(const void *buffer, size_t length);
+
+ virtual ssize_t read(void *buffer, size_t length);
+
+ virtual int isatty();
+
+ virtual off_t lseek(off_t position, int whence);
+
+ virtual int fsync();
+
+ virtual off_t flen();
+
+protected:
+ FILEHANDLE _fh;
+ int pos;
+};
+
/* Class: LocalFileSystem
* A filesystem for accessing the local mbed Microcontroller USB disk drive
*
