diff --git a/mongoose.h b/mongoose.h index 58724f25..cf35386b 100644 --- a/mongoose.h +++ b/mongoose.h @@ -555,6 +555,22 @@ int gettimeofday(struct timeval *t, void *tz); long int random(void); +#ifdef CC3200_ENABLE_SPIFFS +#include + +typedef struct { + spiffs_DIR dh; + struct spiffs_dirent de; +} DIR; + +#define d_name name +#define dirent spiffs_dirent + +DIR *opendir(const char *dir_name); +int closedir(DIR *dir); +struct dirent *readdir(DIR *dir); +#endif + #endif /* CS_PLATFORM == CS_P_CC3200 */ #endif /* CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ */ /*