-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
robbie.tu
committed
Dec 21, 2021
1 parent
f407915
commit 70da347
Showing
14,017 changed files
with
2,813,649 additions
and
2,516 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#ifndef CURLINC_CURLVER_H | ||
#define CURLINC_CURLVER_H | ||
/*************************************************************************** | ||
* _ _ ____ _ | ||
* Project ___| | | | _ \| | | ||
* / __| | | | |_) | | | ||
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2020, 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 | ||
* are also available at https://curl.haxx.se/docs/copyright.html. | ||
* | ||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
* copies of the Software, and permit persons to whom the Software is | ||
* furnished to do so, under the terms of the COPYING file. | ||
* | ||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
* KIND, either express or implied. | ||
* | ||
***************************************************************************/ | ||
|
||
/* This header file contains nothing but libcurl version info, generated by | ||
a script at release-time. This was made its own header file in 7.11.2 */ | ||
|
||
/* This is the global package copyright */ | ||
#define LIBCURL_COPYRIGHT "1996 - 2020 Daniel Stenberg, <daniel@haxx.se>." | ||
|
||
/* This is the version number of the libcurl package from which this header | ||
file origins: */ | ||
#define LIBCURL_VERSION "7.69.1" | ||
|
||
/* The numeric version number is also available "in parts" by using these | ||
defines: */ | ||
#define LIBCURL_VERSION_MAJOR 7 | ||
#define LIBCURL_VERSION_MINOR 69 | ||
#define LIBCURL_VERSION_PATCH 1 | ||
|
||
/* This is the numeric version of the libcurl version number, meant for easier | ||
parsing and comparions by programs. The LIBCURL_VERSION_NUM define will | ||
always follow this syntax: | ||
0xXXYYZZ | ||
Where XX, YY and ZZ are the main version, release and patch numbers in | ||
hexadecimal (using 8 bits each). All three numbers are always represented | ||
using two digits. 1.2 would appear as "0x010200" while version 9.11.7 | ||
appears as "0x090b07". | ||
This 6-digit (24 bits) hexadecimal number does not show pre-release number, | ||
and it is always a greater number in a more recent release. It makes | ||
comparisons with greater than and less than work. | ||
Note: This define is the full hex number and _does not_ use the | ||
CURL_VERSION_BITS() macro since curl's own configure script greps for it | ||
and needs it to contain the full number. | ||
*/ | ||
#define LIBCURL_VERSION_NUM 0x074501 | ||
|
||
/* | ||
* This is the date and time when the full source package was created. The | ||
* timestamp is not stored in git, as the timestamp is properly set in the | ||
* tarballs by the maketgz script. | ||
* | ||
* The format of the date follows this template: | ||
* | ||
* "2007-11-23" | ||
*/ | ||
#define LIBCURL_TIMESTAMP "2020-03-11" | ||
|
||
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z)) | ||
#define CURL_AT_LEAST_VERSION(x,y,z) \ | ||
(LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z)) | ||
|
||
#endif /* CURLINC_CURLVER_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
#ifndef CURLINC_EASY_H | ||
#define CURLINC_EASY_H | ||
/*************************************************************************** | ||
* _ _ ____ _ | ||
* Project ___| | | | _ \| | | ||
* / __| | | | |_) | | | ||
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* 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 | ||
* are also available at https://curl.haxx.se/docs/copyright.html. | ||
* | ||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
* copies of the Software, and permit persons to whom the Software is | ||
* furnished to do so, under the terms of the COPYING file. | ||
* | ||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
* KIND, either express or implied. | ||
* | ||
***************************************************************************/ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
CURL_EXTERN CURL *curl_easy_init(void); | ||
CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...); | ||
CURL_EXTERN CURLcode curl_easy_perform(CURL *curl); | ||
CURL_EXTERN void curl_easy_cleanup(CURL *curl); | ||
|
||
/* | ||
* NAME curl_easy_getinfo() | ||
* | ||
* DESCRIPTION | ||
* | ||
* Request internal information from the curl session with this function. The | ||
* third argument MUST be a pointer to a long, a pointer to a char * or a | ||
* pointer to a double (as the documentation describes elsewhere). The data | ||
* pointed to will be filled in accordingly and can be relied upon only if the | ||
* function returns CURLE_OK. This function is intended to get used *AFTER* a | ||
* performed transfer, all results from this function are undefined until the | ||
* transfer is completed. | ||
*/ | ||
CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...); | ||
|
||
|
||
/* | ||
* NAME curl_easy_duphandle() | ||
* | ||
* DESCRIPTION | ||
* | ||
* Creates a new curl session handle with the same options set for the handle | ||
* passed in. Duplicating a handle could only be a matter of cloning data and | ||
* options, internal state info and things like persistent connections cannot | ||
* be transferred. It is useful in multithreaded applications when you can run | ||
* curl_easy_duphandle() for each new thread to avoid a series of identical | ||
* curl_easy_setopt() invokes in every thread. | ||
*/ | ||
CURL_EXTERN CURL *curl_easy_duphandle(CURL *curl); | ||
|
||
/* | ||
* NAME curl_easy_reset() | ||
* | ||
* DESCRIPTION | ||
* | ||
* Re-initializes a CURL handle to the default values. This puts back the | ||
* handle to the same state as it was in when it was just created. | ||
* | ||
* It does keep: live connections, the Session ID cache, the DNS cache and the | ||
* cookies. | ||
*/ | ||
CURL_EXTERN void curl_easy_reset(CURL *curl); | ||
|
||
/* | ||
* NAME curl_easy_recv() | ||
* | ||
* DESCRIPTION | ||
* | ||
* Receives data from the connected socket. Use after successful | ||
* curl_easy_perform() with CURLOPT_CONNECT_ONLY option. | ||
*/ | ||
CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, | ||
size_t *n); | ||
|
||
/* | ||
* NAME curl_easy_send() | ||
* | ||
* DESCRIPTION | ||
* | ||
* Sends data over the connected socket. Use after successful | ||
* curl_easy_perform() with CURLOPT_CONNECT_ONLY option. | ||
*/ | ||
CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer, | ||
size_t buflen, size_t *n); | ||
|
||
|
||
/* | ||
* NAME curl_easy_upkeep() | ||
* | ||
* DESCRIPTION | ||
* | ||
* Performs connection upkeep for the given session handle. | ||
*/ | ||
CURL_EXTERN CURLcode curl_easy_upkeep(CURL *curl); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#ifndef CURLINC_MPRINTF_H | ||
#define CURLINC_MPRINTF_H | ||
/*************************************************************************** | ||
* _ _ ____ _ | ||
* Project ___| | | | _ \| | | ||
* / __| | | | |_) | | | ||
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* 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 | ||
* are also available at https://curl.haxx.se/docs/copyright.html. | ||
* | ||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
* copies of the Software, and permit persons to whom the Software is | ||
* furnished to do so, under the terms of the COPYING file. | ||
* | ||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
* KIND, either express or implied. | ||
* | ||
***************************************************************************/ | ||
|
||
#include <stdarg.h> | ||
#include <stdio.h> /* needed for FILE */ | ||
#include "curl.h" /* for CURL_EXTERN */ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
CURL_EXTERN int curl_mprintf(const char *format, ...); | ||
CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...); | ||
CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...); | ||
CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength, | ||
const char *format, ...); | ||
CURL_EXTERN int curl_mvprintf(const char *format, va_list args); | ||
CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args); | ||
CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args); | ||
CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength, | ||
const char *format, va_list args); | ||
CURL_EXTERN char *curl_maprintf(const char *format, ...); | ||
CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* CURLINC_MPRINTF_H */ |
Oops, something went wrong.