mirror of
https://github.com/curl/curl.git
synced 2026-07-28 15:33:08 +03:00
ftp wildcard: a new option CURLOPT_FNMATCH_DATA
This commit is contained in:
parent
027ceb37a1
commit
2ffe834bff
11 changed files with 27 additions and 10 deletions
|
|
@ -285,7 +285,8 @@ typedef long (*curl_chunk_end_callback)(void *ptr);
|
|||
|
||||
/* callback type for wildcard downloading pattern matching. If the
|
||||
string matches the pattern, return CURL_FNMATCHFUNC_MATCH value, etc. */
|
||||
typedef int (*curl_fnmatch_callback)(const char *pattern,
|
||||
typedef int (*curl_fnmatch_callback)(void *ptr,
|
||||
const char *pattern,
|
||||
const char *string);
|
||||
|
||||
/* These are the return codes for the seek callbacks */
|
||||
|
|
@ -1431,6 +1432,9 @@ typedef enum {
|
|||
/* Let the application define custom chunk data pointer */
|
||||
CINIT(CHUNK_DATA, OBJECTPOINT, 201),
|
||||
|
||||
/* FNMATCH_FUNCTION user pointer */
|
||||
CINIT(FNMATCH_DATA, OBJECTPOINT, 202),
|
||||
|
||||
CURLOPT_LASTENTRY /* the last unused */
|
||||
} CURLoption;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue