Initial directory changes

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2016-12-30 18:22:44 +00:00
parent dec4618e5a
commit 91b55285f2
3 changed files with 97 additions and 48 deletions

View File

@@ -7,6 +7,16 @@
* LICENSE file.
*/
/**
* List directory.
*
* \param dir Path of directory.
* \param from First entry in directory to list.
* \param max Maximum number of entries to list. Must be > 0.
* \return Number of entries listed or negative on error.
*/
int listDir(const char *dir, int from, int max);
/**
* Obtains file type.
*
@@ -14,11 +24,3 @@
* \return File type, else negative.
*/
int getFileType(const char *file);
/**
* Plays a WAV file.
*
* \param file File location of WAV file.
* \return Zero if successful, else failure.
*/
int playWav(const char *wav);