12 #ifndef INCLUDE_DISTORTOS_FILESYSTEM_DIRECTORY_HPP_ 13 #define INCLUDE_DISTORTOS_FILESYSTEM_DIRECTORY_HPP_ 54 virtual int close() = 0;
83 virtual void lock() = 0;
124 virtual int seek(off_t position) = 0;
136 virtual void unlock() = 0;
145 #endif // INCLUDE_DISTORTOS_FILESYSTEM_DIRECTORY_HPP_ virtual int seek(off_t position)=0
Moves position in the directory.
dirent.h, suitable for newlib, which does not provide one.
virtual void unlock()=0
Unlocks the directory which was previously locked by current thread.
Definition: Directory.hpp:28
virtual ~Directory()=default
Directory's destructor.
virtual std::pair< int, off_t > getPosition()=0
Returns current position in the directory.
virtual int close()=0
Closes directory.
Top-level namespace of distortos project.
Definition: buttons.hpp:33
virtual int read(dirent &entry)=0
Reads next entry from directory.
virtual void lock()=0
Locks the directory for exclusive use by current thread.
virtual int rewind()=0
Resets current position in the directory.