Merge branch 'upstreamedge' into update/gcc4.8
[clinton/Smoothieware.git] / src / libs / ChaNFS / FATDirHandle.h
1 /* mbed Microcontroller Library - FATDirHandle
2 * Copyright (c) 2008, sford
3 */
4
5 #ifndef MBED_FATDIRHANDLE_H
6 #define MBED_FATDIRHANDLE_H
7
8 #include "DirHandle.h"
9 #include "ff.h"
10
11 namespace mbed {
12
13 class FATDirHandle : public DirHandle {
14
15 public:
16 FATDirHandle(const DIR_t &the_dir);
17 virtual int closedir();
18 virtual struct dirent *readdir();
19 virtual void rewinddir();
20 virtual off_t telldir();
21 virtual void seekdir(off_t location);
22
23 private:
24 DIR_t dir;
25 struct dirent cur_entry;
26
27 };
28
29 }
30
31 #endif