Lines Matching defs:next
977 static int ftp_parse_entry_nlst(char *line, AVIODirEntry *next)
979 next->name = av_strdup(line);
983 static int ftp_parse_entry_mlsd(char *mlsd, AVIODirEntry *next)
991 next->name = av_strdup(&fact[1]);
1001 next->type = AVIO_ENTRY_DIRECTORY;
1003 next->type = AVIO_ENTRY_FILE;
1005 next->type = AVIO_ENTRY_SYMBOLIC_LINK;
1007 next->modification_timestamp = ftp_parse_date(value);
1009 next->filemode = strtoumax(value, NULL, 8);
1011 next->user_id = strtoumax(value, NULL, 10);
1013 next->group_id = strtoumax(value, NULL, 10);
1015 next->size = strtoll(value, NULL, 10);
1023 static int ftp_parse_entry(URLContext *h, char *line, AVIODirEntry *next)
1029 return ftp_parse_entry_mlsd(line, next);
1031 return ftp_parse_entry_nlst(line, next);
1038 static int ftp_read_dir(URLContext *h, AVIODirEntry **next)
1058 *next = NULL;
1071 *next = ff_alloc_dir_entry();
1072 if (!*next)
1074 (*next)->utf8 = s->utf8;
1075 ret = ftp_parse_entry(h, start, *next);
1077 avio_free_directory_entry(next);