diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-05-03 13:43:13 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-03 13:43:13 +0200 |
commit | 2a34cf9de1888aa728874e7adab6e973a0fec604 (patch) | |
tree | 8848dc50933968add3f5f8d33aea63d8dc0b54b7 /docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3 | |
parent | bdb2dbc1032e7ca33cfc161fd1d5bfbabdf65841 (diff) | |
download | curl-2a34cf9de1888aa728874e7adab6e973a0fec604.tar.gz |
CURLOPT_CHUNK_BGN_FUNCTION.3: document the struct and time valuebagder/chunk-callback-no-time
The time field in the curl_fileinfo struct will always be zero. No code
was ever implemented to actually convert the date string to a time_t.
Fixes #3829
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3 | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3 b/docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3 index 8a7afb620..8ddd35ea7 100644 --- a/docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_CHUNK_BGN_FUNCTION.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -27,6 +27,33 @@ CURLOPT_CHUNK_BGN_FUNCTION \- callback before a transfer with FTP wildcardmatch .nf #include <curl/curl.h> +struct curl_fileinfo { + char *filename; + curlfiletype filetype; + time_t time; /* always zero! */ + unsigned int perm; + int uid; + int gid; + curl_off_t size; + long int hardlinks; + + struct { + /* If some of these fields is not NULL, it is a pointer to b_data. */ + char *time; + char *perm; + char *user; + char *group; + char *target; /* pointer to the target filename of a symlink */ + } strings; + + unsigned int flags; + + /* used internally */ + char *b_data; + size_t b_size; + size_t b_used; +}; + long chunk_bgn_callback(const void *transfer_info, void *ptr, int remains); |