Lines Matching refs:wildcard
3744 struct WildcardData *wildcard = data->wildcard; in init_wc_data() local
3752 wildcard->state = CURLWC_CLEAN; in init_wc_data()
3755 wildcard->pattern = strdup(last_slash); in init_wc_data()
3756 if(!wildcard->pattern) in init_wc_data()
3762 wildcard->pattern = strdup(path); in init_wc_data()
3763 if(!wildcard->pattern) in init_wc_data()
3768 wildcard->state = CURLWC_CLEAN; in init_wc_data()
3790 wildcard->ftpwc = ftpwc; /* put it to the WildcardData tmp pointer */ in init_wc_data()
3791 wildcard->dtor = wc_data_dtor; in init_wc_data()
3803 wildcard->path = strdup(ftp->path); in init_wc_data()
3804 if(!wildcard->path) { in init_wc_data()
3826 Curl_safefree(wildcard->pattern); in init_wc_data()
3827 wildcard->dtor = ZERO_NULL; in init_wc_data()
3828 wildcard->ftpwc = NULL; in init_wc_data()
3834 struct WildcardData * const wildcard = data->wildcard; in wc_statemach() local
3839 switch(wildcard->state) { in wc_statemach()
3842 if(wildcard->state == CURLWC_CLEAN) in wc_statemach()
3845 wildcard->state = result ? CURLWC_ERROR : CURLWC_MATCHING; in wc_statemach()
3851 struct ftp_wc *ftpwc = wildcard->ftpwc; in wc_statemach()
3856 wildcard->state = CURLWC_DOWNLOADING; in wc_statemach()
3860 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3863 if(Curl_llist_count(&wildcard->filelist) == 0) { in wc_statemach()
3865 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3874 struct Curl_llist_node *head = Curl_llist_head(&wildcard->filelist); in wc_statemach()
3878 char *tmp_path = aprintf("%s%s", wildcard->path, finfo->filename); in wc_statemach()
3892 (int)Curl_llist_count(&wildcard->filelist)); in wc_statemach()
3898 wildcard->state = CURLWC_SKIP; in wc_statemach()
3906 wildcard->state = CURLWC_SKIP; in wc_statemach()
3918 Curl_node_remove(Curl_llist_head(&wildcard->filelist)); in wc_statemach()
3920 if(Curl_llist_count(&wildcard->filelist) == 0) { in wc_statemach()
3922 wildcard->state = CURLWC_CLEAN; in wc_statemach()
3936 Curl_node_remove(Curl_llist_head(&wildcard->filelist)); in wc_statemach()
3937 wildcard->state = (Curl_llist_count(&wildcard->filelist) == 0) ? in wc_statemach()
3943 struct ftp_wc *ftpwc = wildcard->ftpwc; in wc_statemach()
3948 wildcard->state = result ? CURLWC_ERROR : CURLWC_DONE; in wc_statemach()
3955 if(wildcard->dtor) { in wc_statemach()
3956 wildcard->dtor(wildcard->ftpwc); in wc_statemach()
3957 wildcard->ftpwc = NULL; in wc_statemach()
4003 if(data->wildcard->state == CURLWC_SKIP || in ftp_do()
4004 data->wildcard->state == CURLWC_DONE) { in ftp_do()