diff options
author | Kamil Dudka <kdudka@redhat.com> | 2010-05-16 02:49:08 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2010-05-16 02:52:33 +0200 |
commit | 2ffe834bffa893efcd8942736ab14e311a0087b3 (patch) | |
tree | f05892e9d30c465ebf990bd1a8e01fc517e156fa /include | |
parent | 027ceb37a1075bb585c8f5917a26f37cdfa352d6 (diff) |
ftp wildcard: a new option CURLOPT_FNMATCH_DATA
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index a2e26bad0..83ba078cb 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -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; |