aiie/nix/nix-filemanager.h

34 lines
813 B
C
Raw Normal View History

#ifndef __NIX_FILEMANAGER_H
#define __NIX_FILEMANAGER_H
#include "filemanager.h"
#include <stdint.h>
class NixFileManager : public FileManager {
public:
NixFileManager();
virtual ~NixFileManager();
2017-12-30 20:20:34 +00:00
virtual int8_t openFile(const char *name);
virtual void closeFile(int8_t fd);
virtual const char *fileName(int8_t fd);
virtual int8_t readDir(const char *where, const char *suffix, char *outputFN, int8_t startIdx, uint16_t maxlen);
void getRootPath(char *toWhere, int8_t maxLen);
virtual bool setSeekPosition(int8_t fd, uint32_t pos);
virtual void seekToEnd(int8_t fd);
2020-06-28 13:21:27 +00:00
virtual int write(int8_t fd, const void *buf, int nbyte);
virtual int read(int8_t fd, void *buf, int nbyte);
virtual int lseek(int8_t fd, int offset, int whence);
private:
int8_t numCached;
};
#endif