From 2ffe834bffa893efcd8942736ab14e311a0087b3 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Sun, 16 May 2010 02:49:08 +0200 Subject: ftp wildcard: a new option CURLOPT_FNMATCH_DATA --- include/curl/curl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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; -- cgit v1.2.3