wut
1.0.0-alpha
Wii U Toolchain
|
#include "curlver.h"
#include "curlbuild.h"
#include "curlrules.h"
#include <stdio.h>
#include <limits.h>
#include <sys/types.h>
#include <time.h>
#include "easy.h"
#include "multi.h"
Go to the source code of this file.
Data Structures | |
struct | curl_httppost |
struct | curl_fileinfo |
struct | curl_sockaddr |
struct | curl_khkey |
struct | curl_forms |
struct | curl_slist |
struct | curl_certinfo |
struct | curl_version_info_data |
struct | curl_fileinfo.strings |
Typedefs | |
typedef void | CURL |
typedef int | curl_socket_t |
typedef int(* | curl_progress_callback) (void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) |
typedef size_t(* | curl_write_callback) (char *buffer, size_t size, size_t nitems, void *outstream) |
typedef long(* | curl_chunk_bgn_callback) (const void *transfer_info, void *ptr, int remains) |
typedef long(* | curl_chunk_end_callback) (void *ptr) |
typedef int(* | curl_fnmatch_callback) (void *ptr, const char *pattern, const char *string) |
typedef int(* | curl_seek_callback) (void *instream, curl_off_t offset, int origin) |
typedef size_t(* | curl_read_callback) (char *buffer, size_t size, size_t nitems, void *instream) |
typedef int(* | curl_sockopt_callback) (void *clientp, curl_socket_t curlfd, curlsocktype purpose) |
typedef curl_socket_t(* | curl_opensocket_callback) (void *clientp, curlsocktype purpose, struct curl_sockaddr *address) |
typedef int(* | curl_closesocket_callback) (void *clientp, curl_socket_t item) |
typedef curlioerr(* | curl_ioctl_callback) (CURL *handle, int cmd, void *clientp) |
typedef void *(* | curl_malloc_callback) (size_t size) |
typedef void(* | curl_free_callback) (void *ptr) |
typedef void *(* | curl_realloc_callback) (void *ptr, size_t size) |
typedef char *(* | curl_strdup_callback) (const char *str) |
typedef void *(* | curl_calloc_callback) (size_t nmemb, size_t size) |
typedef int(* | curl_debug_callback) (CURL *handle, curl_infotype type, char *data, size_t size, void *userptr) |
typedef CURLcode(* | curl_conv_callback) (char *buffer, size_t length) |
typedef CURLcode(* | curl_ssl_ctx_callback) (CURL *curl, void *ssl_ctx, void *userptr) |
typedef int(* | curl_sshkeycallback) (CURL *easy, const struct curl_khkey *knownkey, const struct curl_khkey *foundkey, enum curl_khmatch, void *clientp) |
typedef size_t(* | curl_formget_callback) (void *arg, const char *buf, size_t len) |
typedef void(* | curl_lock_function) (CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr) |
typedef void(* | curl_unlock_function) (CURL *handle, curl_lock_data data, void *userptr) |
typedef void | CURLSH |
struct curl_httppost |
Data Fields | ||
---|---|---|
struct curl_httppost * | next | |
char * | name | |
long | namelength | |
char * | contents | |
long | contentslength | |
char * | buffer | |
long | bufferlength | |
char * | contenttype | |
struct curl_slist * | contentheader | |
struct curl_httppost * | more | |
long | flags | |
char * | showfilename | |
void * | userp |
struct curl_fileinfo |
Data Fields | ||
---|---|---|
char * | filename | |
curlfiletype | filetype | |
time_t | time | |
unsigned int | perm | |
int | uid | |
int | gid | |
curl_off_t | size | |
long int | hardlinks | |
struct curl_fileinfo | strings | |
unsigned int | flags | |
char * | b_data | |
size_t | b_size | |
size_t | b_used |
struct curl_sockaddr |
struct curl_forms |
Data Fields | ||
---|---|---|
CURLformoption | option | |
const char * | value |
struct curl_slist |
Data Fields | ||
---|---|---|
char * | data | |
struct curl_slist * | next |
struct curl_certinfo |
Data Fields | ||
---|---|---|
int | num_of_certs | |
struct curl_slist ** | certinfo |
struct curl_version_info_data |
Data Fields | ||
---|---|---|
CURLversion | age | |
const char * | version | |
unsigned int | version_num | |
const char * | host | |
int | features | |
const char * | ssl_version | |
long | ssl_version_num | |
const char * | libz_version | |
const char *const * | protocols | |
const char * | ares | |
int | ares_num | |
const char * | libidn | |
int | iconv_ver_num | |
const char * | libssh_version |
struct curl_fileinfo.strings |
#define HTTPPOST_FILENAME (1<<0) /* specified content is a file name */ |
#define HTTPPOST_READFILE (1<<1) /* specified content is a file name */ |
#define HTTPPOST_PTRNAME |
#define HTTPPOST_PTRCONTENTS |
#define HTTPPOST_PTRBUFFER (1<<5) /* upload file from pointer contents */ |
#define HTTPPOST_CALLBACK |
#define CURL_CHUNK_BGN_FUNC_FAIL 1 /* tell the lib to end the task */ |
#define CURL_CHUNK_BGN_FUNC_SKIP 2 /* skip this chunk over */ |
#define CURL_CHUNK_END_FUNC_FAIL 1 /* tell the lib to end the task */ |
#define CURL_FNMATCHFUNC_MATCH 0 /* string corresponds to the pattern */ |
#define CURL_FNMATCHFUNC_NOMATCH 1 /* pattern doesn't match the string */ |
#define CURL_SEEKFUNC_CANTSEEK |
#define CURL_SOCKOPT_ERROR |
#define CURLE_UNKNOWN_TELNET_OPTION CURLE_UNKNOWN_OPTION |
#define CURLE_SSL_PEER_CERTIFICATE CURLE_PEER_FAILED_VERIFICATION |
#define CURLE_OBSOLETE CURLE_OBSOLETE50 /* no one should be using this! */ |
#define CURLE_BAD_PASSWORD_ENTERED CURLE_OBSOLETE46 |
#define CURLE_BAD_CALLING_ORDER CURLE_OBSOLETE44 |
#define CURLE_FTP_USER_PASSWORD_INCORRECT CURLE_OBSOLETE10 |
#define CURLE_FTP_CANT_RECONNECT CURLE_OBSOLETE16 |
#define CURLE_FTP_COULDNT_GET_SIZE CURLE_OBSOLETE32 |
#define CURLE_FTP_COULDNT_SET_ASCII CURLE_OBSOLETE29 |
#define CURLE_FTP_WEIRD_USER_REPLY CURLE_OBSOLETE12 |
#define CURLE_FTP_WRITE_ERROR CURLE_OBSOLETE20 |
#define CURLE_LIBRARY_NOT_FOUND CURLE_OBSOLETE40 |
#define CURLE_MALFORMAT_USER CURLE_OBSOLETE24 |
#define CURLE_SHARE_IN_USE CURLE_OBSOLETE57 |
#define CURLE_URL_MALFORMAT_USER CURLE_NOT_BUILT_IN |
#define CURLE_FTP_ACCESS_DENIED CURLE_REMOTE_ACCESS_DENIED |
#define CURLE_FTP_COULDNT_SET_BINARY CURLE_FTP_COULDNT_SET_TYPE |
#define CURLE_FTP_QUOTE_ERROR CURLE_QUOTE_ERROR |
#define CURLE_TFTP_DISKFULL CURLE_REMOTE_DISK_FULL |
#define CURLE_TFTP_EXISTS CURLE_REMOTE_FILE_EXISTS |
#define CURLE_HTTP_RANGE_ERROR CURLE_RANGE_ERROR |
#define CURLE_FTP_SSL_FAILED CURLE_USE_SSL_FAILED |
#define CURLE_OPERATION_TIMEOUTED CURLE_OPERATION_TIMEDOUT |
#define CURLE_HTTP_NOT_FOUND CURLE_HTTP_RETURNED_ERROR |
#define CURLE_HTTP_PORT_FAILED CURLE_INTERFACE_FAILED |
#define CURLE_FTP_COULDNT_STOR_FILE CURLE_UPLOAD_FAILED |
#define CURLE_FTP_PARTIAL_FILE CURLE_PARTIAL_FILE |
#define CURLE_FTP_BAD_DOWNLOAD_RESUME CURLE_BAD_DOWNLOAD_RESUME |
#define CURLAUTH_DIGEST_IE (1<<4) /* Digest with IE flavour */ |
#define CURLAUTH_ONLY |
#define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE) /* all fine types set */ |
#define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE)) |
#define CURLSSH_AUTH_ANY ~0 /* all types supported by the server */ |
#define CURLSSH_AUTH_NONE 0 /* none allowed, silly but complete */ |
#define CURLSSH_AUTH_PUBLICKEY (1<<0) /* public/private key files */ |
#define CURLSSH_AUTH_KEYBOARD (1<<3) /* keyboard interactive */ |
#define CURLSSH_AUTH_DEFAULT CURLSSH_AUTH_ANY |
#define CURLFTPSSL_NONE CURLUSESSL_NONE |
#define CURLFTPSSL_TRY CURLUSESSL_TRY |
#define CURLFTPSSL_CONTROL CURLUSESSL_CONTROL |
#define CURLFTPSSL_ALL CURLUSESSL_ALL |
#define CURLFTPSSL_LAST CURLUSESSL_LAST |
#define curl_ftpssl curl_usessl |
#define CINIT | ( | na, | |
t, | |||
nu | |||
) | CURLOPT_ ## na = CURLOPTTYPE_ ## t + nu |
#define CURLOPT_SERVER_RESPONSE_TIMEOUT CURLOPT_FTP_RESPONSE_TIMEOUT |
#define CURL_IPRESOLVE_WHATEVER |
#define CURL_REDIR_POST_ALL (CURL_REDIR_POST_301|CURL_REDIR_POST_302) |
#define CURLINFO_HTTP_CODE CURLINFO_RESPONSE_CODE |
#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32) |
#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL |
#define CURLVERSION_NOW CURLVERSION_FOURTH |
#define CURL_VERSION_KERBEROS4 (1<<1) /* kerberos auth is supported */ |
#define CURL_VERSION_SSL (1<<2) /* SSL options are present */ |
#define CURL_VERSION_LIBZ (1<<3) /* libz features are present */ |
#define CURL_VERSION_NTLM (1<<4) /* NTLM auth is supported */ |
#define CURL_VERSION_GSSNEGOTIATE (1<<5) /* Negotiate auth support */ |
#define CURL_VERSION_DEBUG (1<<6) /* built with debug capabilities */ |
#define CURL_VERSION_ASYNCHDNS (1<<7) /* asynchronous dns resolves */ |
#define CURL_VERSION_LARGEFILE (1<<9) /* supports files bigger than 2GB */ |
#define CURL_VERSION_IDN (1<<10) /* International Domain Names support */ |
#define CURL_VERSION_CONV (1<<12) /* character conversions supported */ |
#define CURL_VERSION_CURLDEBUG (1<<13) /* debug memory tracking supported */ |
#define CURL_VERSION_TLSAUTH_SRP (1<<14) /* TLS-SRP auth is supported */ |
#define CURLPAUSE_ALL (CURLPAUSE_RECV|CURLPAUSE_SEND) |
#define CURLPAUSE_CONT (CURLPAUSE_RECV_CONT|CURLPAUSE_SEND_CONT) |
typedef int curl_socket_t |
typedef int(* curl_progress_callback) (void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) |
typedef size_t(* curl_write_callback) (char *buffer, size_t size, size_t nitems, void *outstream) |
typedef long(* curl_chunk_bgn_callback) (const void *transfer_info, void *ptr, int remains) |
typedef int(* curl_fnmatch_callback) (void *ptr, const char *pattern, const char *string) |
typedef int(* curl_seek_callback) (void *instream, curl_off_t offset, int origin) |
typedef size_t(* curl_read_callback) (char *buffer, size_t size, size_t nitems, void *instream) |
typedef int(* curl_sockopt_callback) (void *clientp, curl_socket_t curlfd, curlsocktype purpose) |
typedef curl_socket_t(* curl_opensocket_callback) (void *clientp, curlsocktype purpose, struct curl_sockaddr *address) |
typedef int(* curl_closesocket_callback) (void *clientp, curl_socket_t item) |
typedef void*(* curl_realloc_callback) (void *ptr, size_t size) |
typedef void*(* curl_calloc_callback) (size_t nmemb, size_t size) |
typedef int(* curl_debug_callback) (CURL *handle, curl_infotype type, char *data, size_t size, void *userptr) |
typedef CURLcode(* curl_conv_callback) (char *buffer, size_t length) |
typedef int(* curl_sshkeycallback) (CURL *easy, const struct curl_khkey *knownkey, const struct curl_khkey *foundkey, enum curl_khmatch, void *clientp) |
typedef size_t(* curl_formget_callback) (void *arg, const char *buf, size_t len) |
typedef void(* curl_lock_function) (CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr) |
typedef void(* curl_unlock_function) (CURL *handle, curl_lock_data data, void *userptr) |
enum curlfiletype |
enum curlsocktype |
enum curlioerr |
enum curliocmd |
enum curl_infotype |
enum CURLcode |
enum curl_proxytype |
enum curl_khstat |
enum curl_khmatch |
enum curl_usessl |
enum curl_ftpccc |
enum curl_ftpauth |
enum curl_ftpcreatedir |
enum curl_ftpmethod |
enum CURLoption |
anonymous enum |
anonymous enum |
enum CURL_NETRC_OPTION |
anonymous enum |
enum CURL_TLSAUTH |
enum curl_TimeCond |
enum CURLformoption |
enum CURLFORMcode |
enum CURLINFO |
enum curl_closepolicy |
enum curl_lock_data |
enum curl_lock_access |
enum CURLSHcode |
enum CURLSHoption |
enum CURLversion |
CURL_EXTERN int() curl_strequal | ( | const char * | s1, |
const char * | s2 | ||
) |
CURL_EXTERN int() curl_strnequal | ( | const char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
CURL_EXTERN CURLFORMcode curl_formadd | ( | struct curl_httppost ** | httppost, |
struct curl_httppost ** | last_post, | ||
... | |||
) |
CURL_EXTERN int curl_formget | ( | struct curl_httppost * | form, |
void * | arg, | ||
curl_formget_callback | append | ||
) |
CURL_EXTERN void curl_formfree | ( | struct curl_httppost * | form | ) |
CURL_EXTERN char* curl_getenv | ( | const char * | variable | ) |
CURL_EXTERN char* curl_version | ( | void | ) |
CURL_EXTERN char* curl_easy_escape | ( | CURL * | handle, |
const char * | string, | ||
int | length | ||
) |
CURL_EXTERN char* curl_escape | ( | const char * | string, |
int | length | ||
) |
CURL_EXTERN char* curl_easy_unescape | ( | CURL * | handle, |
const char * | string, | ||
int | length, | ||
int * | outlength | ||
) |
CURL_EXTERN char* curl_unescape | ( | const char * | string, |
int | length | ||
) |
CURL_EXTERN void curl_free | ( | void * | p | ) |
CURL_EXTERN CURLcode curl_global_init | ( | long | flags | ) |
CURL_EXTERN CURLcode curl_global_init_mem | ( | long | flags, |
curl_malloc_callback | m, | ||
curl_free_callback | f, | ||
curl_realloc_callback | r, | ||
curl_strdup_callback | s, | ||
curl_calloc_callback | c | ||
) |
CURL_EXTERN void curl_global_cleanup | ( | void | ) |
CURL_EXTERN struct curl_slist* curl_slist_append | ( | struct curl_slist * | , |
const char * | |||
) |
CURL_EXTERN void curl_slist_free_all | ( | struct curl_slist * | ) |
CURL_EXTERN time_t curl_getdate | ( | const char * | p, |
const time_t * | unused | ||
) |
CURL_EXTERN CURLSH* curl_share_init | ( | void | ) |
CURL_EXTERN CURLSHcode curl_share_setopt | ( | CURLSH * | , |
CURLSHoption | option, | ||
... | |||
) |
CURL_EXTERN CURLSHcode curl_share_cleanup | ( | CURLSH * | ) |
CURL_EXTERN curl_version_info_data* curl_version_info | ( | CURLversion | ) |
CURL_EXTERN const char* curl_easy_strerror | ( | CURLcode | ) |
CURL_EXTERN const char* curl_share_strerror | ( | CURLSHcode | ) |
CURL_EXTERN CURLcode curl_easy_pause | ( | CURL * | handle, |
int | bitmask | ||
) |