syntax: cleanups
This commit is contained in:
parent
0825cd80a6
commit
d62ce21249
@ -474,41 +474,41 @@ This is the stream that will be passed to \fICURLOPT_INTERLEAVEFUNCTION\fP when
|
|||||||
interleaved RTP data is received. (Added in 7.20.0)
|
interleaved RTP data is received. (Added in 7.20.0)
|
||||||
.IP CURLOPT_CHUNK_BGN_FUNCTION
|
.IP CURLOPT_CHUNK_BGN_FUNCTION
|
||||||
Function pointer that should match the following prototype: \fBlong function
|
Function pointer that should match the following prototype: \fBlong function
|
||||||
(const void *transfer_info, void *ptr, int remains)\fR. This function
|
(const void *transfer_info, void *ptr, int remains)\fP. This function gets
|
||||||
gets called by libcurl before a part of the stream is going to be transferred
|
called by libcurl before a part of the stream is going to be transferred (if
|
||||||
(if the transfer supports chunks).
|
the transfer supports chunks).
|
||||||
|
|
||||||
This callback makes sense only when using the \fICURLOPT_WILDCARDMATCH\fR
|
This callback makes sense only when using the \fICURLOPT_WILDCARDMATCH\fP
|
||||||
option for now.
|
option for now.
|
||||||
|
|
||||||
The target of transfer_info parameter is a "feature depended" structure. For the
|
The target of transfer_info parameter is a "feature depended" structure. For
|
||||||
FTP wildcard download, the target is curl_fileinfo structure (see
|
the FTP wildcard download, the target is curl_fileinfo structure (see
|
||||||
\fIcurl/curl.h\fR).
|
\fIcurl/curl.h\fP). The parameter ptr is a pointer given by
|
||||||
The parameter ptr is a pointer given by \fICURLOPT_CHUNK_DATA\fR. The parameter
|
\fICURLOPT_CHUNK_DATA\fP. The parameter remains contains number of chunks
|
||||||
remains contains number of chunks remaining per the transfer. If the feature is
|
remaining per the transfer. If the feature is not available, the parameter has
|
||||||
not available, the parameter has zero value.
|
zero value.
|
||||||
|
|
||||||
Return \fICURL_CHUNK_BGN_FUNC_OK\fR if everything is fine,
|
Return \fICURL_CHUNK_BGN_FUNC_OK\fP if everything is fine,
|
||||||
\fICURL_CHUNK_BGN_FUNC_SKIP\fR if you want to skip the concrete chunk or
|
\fICURL_CHUNK_BGN_FUNC_SKIP\fP if you want to skip the concrete chunk or
|
||||||
\fICURL_CHUNK_BGN_FUNC_FAIL\fR to tell libcurl to stop if some error occurred.
|
\fICURL_CHUNK_BGN_FUNC_FAIL\fP to tell libcurl to stop if some error occurred.
|
||||||
.IP CURLOPT_CHUNK_END_FUNCTION
|
.IP CURLOPT_CHUNK_END_FUNCTION
|
||||||
Function pointer that should match the following prototype:
|
Function pointer that should match the following prototype: \fBlong
|
||||||
\fBlong function(void *ptr)\fR. This function gets called by libcurl as soon as
|
function(void *ptr)\fP. This function gets called by libcurl as soon as a part
|
||||||
a part of the stream has been transferred (or skipped).
|
of the stream has been transferred (or skipped).
|
||||||
|
|
||||||
Return \fICURL_CHUNK_END_FUNC_OK\fR if everything is fine or
|
Return \fICURL_CHUNK_END_FUNC_OK\fP if everything is fine or
|
||||||
\fBCURL_CHUNK_END_FUNC_FAIL\fR to tell the lib to stop if some error occurred.
|
\fBCURL_CHUNK_END_FUNC_FAIL\fP to tell the lib to stop if some error occurred.
|
||||||
.IP CURLOPT_CHUNK_DATA
|
.IP CURLOPT_CHUNK_DATA
|
||||||
Pass a pointer that will be untouched by libcurl and passed as the ptr argument
|
Pass a pointer that will be untouched by libcurl and passed as the ptr
|
||||||
to the \fICURL_CHUNK_BGN_FUNTION\fR and \fICURL_CHUNK_END_FUNTION\fR.
|
argument to the \fICURL_CHUNK_BGN_FUNTION\fP and \fICURL_CHUNK_END_FUNTION\fP.
|
||||||
.IP CURLOPT_FNMATCH_FUNCTION
|
.IP CURLOPT_FNMATCH_FUNCTION
|
||||||
Function pointer that should match \fBint function(const char *pattern, const
|
Function pointer that should match \fBint function(const char *pattern, const
|
||||||
char *string)\fR prototype (see \fIcurl/curl.h\fR). It is used internally for
|
char *string)\fP prototype (see \fIcurl/curl.h\fP). It is used internally for
|
||||||
the wildcard matching feature.
|
the wildcard matching feature.
|
||||||
|
|
||||||
Return \fICURL_FNMATCHFUNC_MATCH\fR if pattern matches the string,
|
Return \fICURL_FNMATCHFUNC_MATCH\fP if pattern matches the string,
|
||||||
\fICURL_FNMATCHFUNC_NOMATCH\fR if not or \fICURL_FNMATCHFUNC_FAIL\fR if an error
|
\fICURL_FNMATCHFUNC_NOMATCH\fP if not or \fICURL_FNMATCHFUNC_FAIL\fP if an
|
||||||
occurred.
|
error occurred.
|
||||||
.SH ERROR OPTIONS
|
.SH ERROR OPTIONS
|
||||||
.IP CURLOPT_ERRORBUFFER
|
.IP CURLOPT_ERRORBUFFER
|
||||||
Pass a char * to a buffer that the libcurl may store human readable error
|
Pass a char * to a buffer that the libcurl may store human readable error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user