quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

ccsidcurl.h (6667B)


      1 #ifndef CURLINC_CCSIDCURL_H
      2 #define CURLINC_CCSIDCURL_H
      3 /***************************************************************************
      4  *                                  _   _ ____  _
      5  *  Project                     ___| | | |  _ \| |
      6  *                             / __| | | | |_) | |
      7  *                            | (__| |_| |  _ <| |___
      8  *                             \___|\___/|_| \_\_____|
      9  *
     10  * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
     11  *
     12  * This software is licensed as described in the file COPYING, which
     13  * you should have received as part of this distribution. The terms
     14  * are also available at https://curl.se/docs/copyright.html.
     15  *
     16  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
     17  * copies of the Software, and permit persons to whom the Software is
     18  * furnished to do so, under the terms of the COPYING file.
     19  *
     20  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
     21  * KIND, either express or implied.
     22  *
     23  * SPDX-License-Identifier: curl
     24  *
     25  *
     26  ***************************************************************************/
     27 #include "curl.h"
     28 #include "easy.h"
     29 #include "multi.h"
     30 
     31 
     32 CURL_EXTERN char *curl_version_ccsid(unsigned int ccsid);
     33 CURL_EXTERN char *curl_easy_escape_ccsid(CURL *handle,
     34                                          const char *string, int length,
     35                                          unsigned int sccsid,
     36                                          unsigned int dccsid);
     37 CURL_EXTERN char *curl_easy_unescape_ccsid(CURL *handle, const char *string,
     38                                            int length, int *outlength,
     39                                            unsigned int sccsid,
     40                                            unsigned int dccsid);
     41 CURL_EXTERN struct curl_slist *curl_slist_append_ccsid(struct curl_slist *l,
     42                                                        const char *data,
     43                                                        unsigned int ccsid);
     44 CURL_EXTERN time_t curl_getdate_ccsid(const char *p, const time_t *unused,
     45                                       unsigned int ccsid);
     46 CURL_EXTERN curl_version_info_data *curl_version_info_ccsid(CURLversion stamp,
     47                                                             unsigned int cid);
     48 CURL_EXTERN const char *curl_easy_strerror_ccsid(CURLcode error,
     49                                                  unsigned int ccsid);
     50 CURL_EXTERN const char *curl_share_strerror_ccsid(CURLSHcode error,
     51                                                   unsigned int ccsid);
     52 CURL_EXTERN const char *curl_multi_strerror_ccsid(CURLMcode error,
     53                                                   unsigned int ccsid);
     54 CURL_EXTERN CURLcode curl_easy_getinfo_ccsid(CURL *curl, CURLINFO info, ...);
     55 CURL_EXTERN CURLFORMcode curl_formadd_ccsid(struct curl_httppost **httppost,
     56                                             struct curl_httppost **last_post,
     57                                             ...);
     58 CURL_EXTERN char *curl_form_long_value(long value);
     59 CURL_EXTERN int curl_formget_ccsid(struct curl_httppost *form, void *arg,
     60                                    curl_formget_callback append,
     61                                    unsigned int ccsid);
     62 CURL_EXTERN CURLcode curl_easy_setopt_ccsid(CURL *curl, CURLoption tag, ...);
     63 CURL_EXTERN void curl_certinfo_free_all(struct curl_certinfo *info);
     64 CURL_EXTERN char *curl_pushheader_bynum_cssid(struct curl_pushheaders *h,
     65                                               size_t num, unsigned int ccsid);
     66 CURL_EXTERN char *curl_pushheader_byname_ccsid(struct curl_pushheaders *h,
     67                                                const char *header,
     68                                                unsigned int ccsidin,
     69                                                unsigned int ccsidout);
     70 CURL_EXTERN CURLcode curl_mime_name_ccsid(curl_mimepart *part,
     71                                           const char *name,
     72                                           unsigned int ccsid);
     73 CURL_EXTERN CURLcode curl_mime_filename_ccsid(curl_mimepart *part,
     74                                               const char *filename,
     75                                               unsigned int ccsid);
     76 CURL_EXTERN CURLcode curl_mime_type_ccsid(curl_mimepart *part,
     77                                           const char *mimetype,
     78                                           unsigned int ccsid);
     79 CURL_EXTERN CURLcode curl_mime_encoder_ccsid(curl_mimepart *part,
     80                                              const char *encoding,
     81                                              unsigned int ccsid);
     82 CURL_EXTERN CURLcode curl_mime_filedata_ccsid(curl_mimepart *part,
     83                                               const char *filename,
     84                                               unsigned int ccsid);
     85 CURL_EXTERN CURLcode curl_mime_data_ccsid(curl_mimepart *part,
     86                                           const char *data, size_t datasize,
     87                                           unsigned int ccsid);
     88 CURL_EXTERN CURLUcode curl_url_get_ccsid(CURLU *handle, CURLUPart what,
     89                                          char **part, unsigned int flags,
     90                                          unsigned int ccsid);
     91 CURL_EXTERN CURLUcode curl_url_set_ccsid(CURLU *handle, CURLUPart what,
     92                                          const char *part, unsigned int flags,
     93                                          unsigned int ccsid);
     94 CURL_EXTERN const struct curl_easyoption *curl_easy_option_by_name_ccsid(
     95                                          const char *name, unsigned int ccsid);
     96 CURL_EXTERN const char *curl_easy_option_get_name_ccsid(
     97                                          const struct curl_easyoption *option,
     98                                          unsigned int ccsid);
     99 CURL_EXTERN const char *curl_url_strerror_ccsid(CURLUcode error,
    100                                                 unsigned int ccsid);
    101 CURL_EXTERN CURLHcode curl_easy_header_ccsid(CURL *easy, const char *name,
    102                                              size_t index, unsigned int origin,
    103                                              int request,
    104                                              struct curl_header **hout,
    105                                              unsigned int ccsid);
    106 CURL_EXTERN const char *curl_from_ccsid(const char *s, unsigned int ccsid);
    107 CURL_EXTERN const char *curl_to_ccsid(const char *s, unsigned int ccsid);
    108 CURL_EXTERN CURLcode curl_easy_setopt_RPGnum_(CURL *easy,
    109                                               CURLoption tag, curl_off_t arg);
    110 CURL_EXTERN CURLcode curl_multi_setopt_RPGnum_(CURLM *multi, CURLMoption tag,
    111                                                curl_off_t arg);
    112 
    113 #endif