Lines Matching refs:dire
85 struct dir_entry *dire; member
123 pss->dire = pss->vhd->dire_head; in start_sending_dir()
135 struct dir_entry *dire; in scan_upload_dir() local
206 dire = lwsac_use(&lwsac_head, sizeof(*dire) + m, 0); in scan_upload_dir()
207 if (!dire) { in scan_upload_dir()
213 dire->next = NULL; in scan_upload_dir()
214 dire->size = s.st_size; in scan_upload_dir()
215 dire->mtime = s.st_mtime; in scan_upload_dir()
216 dire->user[0] = '\0'; in scan_upload_dir()
219 lws_strncpy(dire->user, subdir[1], sizeof(dire->user)); in scan_upload_dir()
224 memcpy(&dire[1], filepath + initial, m); in scan_upload_dir()
226 lws_list_ptr_insert(&sorted_head, &dire->next, de_mtime_sort); in scan_upload_dir()
494 if (pss->lwsac_head && !pss->dire) in callback_deaddrop()
506 while (m-- && pss->dire) { in callback_deaddrop()
513 (const char *)&pss->dire[1], in callback_deaddrop()
514 pss->dire->size, in callback_deaddrop()
515 (unsigned long long)pss->dire->mtime, in callback_deaddrop()
516 !strcmp(pss->user, pss->dire->user) && in callback_deaddrop()
519 pss->dire = lp_to_dir_entry(pss->dire->next, next); in callback_deaddrop()
522 if (!pss->dire) { in callback_deaddrop()
533 !pss->dire)); in callback_deaddrop()
538 if (pss->dire) { in callback_deaddrop()