Lines Matching refs:dir_p
30 HANDLE dir_p; member
33 DIR * dir_p;
47 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn);
48 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p);
213 handle->dir_p = opendir(buf); in fs_dir_open()
214 if(handle->dir_p == NULL) { in fs_dir_open()
220 handle->dir_p = INVALID_HANDLE_VALUE; in fs_dir_open()
228 handle->dir_p = FindFirstFileA(buf, &fdata); in fs_dir_open()
242 } while(FindNextFileA(handle->dir_p, &fdata)); in fs_dir_open()
244 if(handle->dir_p == INVALID_HANDLE_VALUE) { in fs_dir_open()
260 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn) in fs_dir_read() argument
263 dir_handle_t * handle = (dir_handle_t *)dir_p; in fs_dir_read()
267 entry = readdir(handle->dir_p); in fs_dir_read()
282 if(FindNextFileA(handle->dir_p, &fdata) == false) return LV_FS_RES_OK; in fs_dir_read()
296 } while(FindNextFileA(handle->dir_p, &fdata)); in fs_dir_read()
308 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p) in fs_dir_close() argument
311 dir_handle_t * handle = (dir_handle_t *)dir_p; in fs_dir_close()
313 closedir(handle->dir_p); in fs_dir_close()
315 FindClose(handle->dir_p); in fs_dir_close()