Lines Matching refs:Ddir
212 DilloDir *Ddir; in File_dillodir_new() local
220 Ddir = dNew(DilloDir, 1); in File_dillodir_new()
221 Ddir->dirname = dStrdup(dirname); in File_dillodir_new()
222 Ddir->flist = dList_new(512); in File_dillodir_new()
224 dirname_len = strlen(Ddir->dirname); in File_dillodir_new()
240 fname = dStrconcat(Ddir->dirname, de->d_name, NULL); in File_dillodir_new()
253 dList_append(Ddir->flist, finfo); in File_dillodir_new()
259 dList_sort(Ddir->flist, (dCompareFunc)File_comp); in File_dillodir_new()
261 return Ddir; in File_dillodir_new()
267 static void File_dillodir_free(DilloDir *Ddir) in File_dillodir_free() argument
272 dReturn_if (Ddir == NULL); in File_dillodir_free()
274 for (i = 0; i < dList_length(Ddir->flist); ++i) { in File_dillodir_free()
275 finfo = dList_nth_data(Ddir->flist, i); in File_dillodir_free()
280 dList_free(Ddir->flist); in File_dillodir_free()
281 dFree(Ddir->dirname); in File_dillodir_free()
282 dFree(Ddir); in File_dillodir_free()
413 DilloDir *Ddir = client->d_dir; in File_send_dir() local
427 Udirname = Escape_uri_str(Ddir->dirname, NULL); in File_send_dir()
429 Hdirname = Escape_html_str(Ddir->dirname); in File_send_dir()
449 File_print_parent_dir(client, Ddir->dirname); in File_send_dir()
455 if (dList_length(Ddir->flist)) { in File_send_dir()
477 for (n = 0; n < dList_length(Ddir->flist); ++n) { in File_send_dir()
478 File_info2html(client, dList_nth_data(Ddir->flist,n), n+1); in File_send_dir()
483 } else if (dList_length(Ddir->flist)) { in File_send_dir()
611 DilloDir *Ddir; in File_prepare_send_dir() local
619 Ddir = File_dillodir_new(ds_dirname->str); in File_prepare_send_dir()
621 if (Ddir) { in File_prepare_send_dir()
624 client->d_dir = Ddir; in File_prepare_send_dir()