• Home
  • Raw
  • Download

Lines Matching refs:wildcard

3241       data->set.chunk_end(data->wildcard.customptr);  in ftp_done()
3772 struct WildcardData *wildcard = &(data->wildcard); in init_wc_data() local
3780 wildcard->state = CURLWC_CLEAN; in init_wc_data()
3784 wildcard->pattern = strdup(last_slash); in init_wc_data()
3785 if(!wildcard->pattern) in init_wc_data()
3791 wildcard->pattern = strdup(path); in init_wc_data()
3792 if(!wildcard->pattern) in init_wc_data()
3797 wildcard->state = CURLWC_CLEAN; in init_wc_data()
3820 wildcard->protdata = ftpwc; /* put it to the WildcardData tmp pointer */ in init_wc_data()
3821 wildcard->dtor = wc_data_dtor; in init_wc_data()
3833 wildcard->path = strdup(ftp->path); in init_wc_data()
3834 if(!wildcard->path) { in init_wc_data()
3856 Curl_safefree(wildcard->pattern); in init_wc_data()
3857 wildcard->dtor = ZERO_NULL; in init_wc_data()
3858 wildcard->protdata = NULL; in init_wc_data()
3864 struct WildcardData * const wildcard = &(data->wildcard); in wc_statemach() local
3869 switch(wildcard->state) { in wc_statemach()
3872 if(wildcard->state == CURLWC_CLEAN) in wc_statemach()
3875 wildcard->state = result ? CURLWC_ERROR : CURLWC_MATCHING; in wc_statemach()
3881 struct ftp_wc *ftpwc = wildcard->protdata; in wc_statemach()
3886 wildcard->state = CURLWC_DOWNLOADING; in wc_statemach()
3890 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3893 if(wildcard->filelist.size == 0) { in wc_statemach()
3895 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3904 struct curl_fileinfo *finfo = wildcard->filelist.head->ptr; in wc_statemach()
3907 char *tmp_path = aprintf("%s%s", wildcard->path, finfo->filename); in wc_statemach()
3920 finfo, wildcard->customptr, (int)wildcard->filelist.size); in wc_statemach()
3926 wildcard->state = CURLWC_SKIP; in wc_statemach()
3934 wildcard->state = CURLWC_SKIP; in wc_statemach()
3946 Curl_llist_remove(&wildcard->filelist, wildcard->filelist.head, NULL); in wc_statemach()
3948 if(wildcard->filelist.size == 0) { /* remains only one file to down. */ in wc_statemach()
3949 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3960 data->set.chunk_end(data->wildcard.customptr); in wc_statemach()
3963 Curl_llist_remove(&wildcard->filelist, wildcard->filelist.head, NULL); in wc_statemach()
3964 wildcard->state = (wildcard->filelist.size == 0) ? in wc_statemach()
3970 struct ftp_wc *ftpwc = wildcard->protdata; in wc_statemach()
3975 wildcard->state = result ? CURLWC_ERROR : CURLWC_DONE; in wc_statemach()
3982 if(wildcard->dtor) in wc_statemach()
3983 wildcard->dtor(wildcard->protdata); in wc_statemach()
4010 if(data->wildcard.state == CURLWC_SKIP || in ftp_do()
4011 data->wildcard.state == CURLWC_DONE) { in ftp_do()