Lines Matching refs:miter
879 static bool storage_file_list_buf_full(struct storage_file_list_state* miter) { in storage_file_list_buf_full() argument
880 if (miter->max_count && miter->count >= miter->max_count) { in storage_file_list_buf_full()
884 return !miter->can_record_path(miter->callback_data, in storage_file_list_buf_full()
885 FS_PATH_MAX - miter->prefix_len); in storage_file_list_buf_full()
888 static void storage_file_list_add(struct storage_file_list_state* miter, in storage_file_list_add() argument
891 assert(!storage_file_list_buf_full(miter)); in storage_file_list_add()
893 assert(path_len <= FS_PATH_MAX - miter->prefix_len); in storage_file_list_add()
894 miter->record_path(miter->callback_data, flags, path, path_len); in storage_file_list_add()
895 miter->count++; in storage_file_list_add()
903 struct storage_file_list_state* miter = in storage_file_list_iter() local
915 if (strncmp(file_info->path, miter->prefix, miter->prefix_len) == 0) { in storage_file_list_iter()
916 storage_file_list_add(miter, in storage_file_list_iter()
920 file_info->path + miter->prefix_len); in storage_file_list_iter()
925 return storage_file_list_buf_full(miter); in storage_file_list_iter()