ftp wildcard: a new option CURLOPT_FNMATCH_DATA

This commit is contained in:
Kamil Dudka 2010-05-16 02:49:08 +02:00
parent 027ceb37a1
commit 2ffe834bff
11 changed files with 27 additions and 10 deletions

View file

@ -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;