blob: 9bd2ae7dd0f950231385dd1cc2ec53738aa47357 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001#ifndef CURLINC_CCSIDCURL_H
2#define CURLINC_CCSIDCURL_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 1998 - 2022, 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
32CURL_EXTERN char *curl_version_ccsid(unsigned int ccsid);
33CURL_EXTERN char *curl_easy_escape_ccsid(CURL *handle,
34 const char *string, int length,
35 unsigned int sccsid,
36 unsigned int dccsid);
37CURL_EXTERN char *curl_easy_unescape_ccsid(CURL *handle, const char *string,
38 int length, int *outlength,
39 unsigned int sccsid,
40 unsigned int dccsid);
41CURL_EXTERN struct curl_slist *curl_slist_append_ccsid(struct curl_slist *l,
42 const char *data,
43 unsigned int ccsid);
44CURL_EXTERN time_t curl_getdate_ccsid(const char *p, const time_t *unused,
45 unsigned int ccsid);
46CURL_EXTERN curl_version_info_data *curl_version_info_ccsid(CURLversion stamp,
47 unsigned int cid);
48CURL_EXTERN const char *curl_easy_strerror_ccsid(CURLcode error,
49 unsigned int ccsid);
50CURL_EXTERN const char *curl_share_strerror_ccsid(CURLSHcode error,
51 unsigned int ccsid);
52CURL_EXTERN const char *curl_multi_strerror_ccsid(CURLMcode error,
53 unsigned int ccsid);
54CURL_EXTERN CURLcode curl_easy_getinfo_ccsid(CURL *curl, CURLINFO info, ...);
55CURL_EXTERN CURLFORMcode curl_formadd_ccsid(struct curl_httppost **httppost,
56 struct curl_httppost **last_post,
57 ...);
58CURL_EXTERN char *curl_form_long_value(long value);
59CURL_EXTERN int curl_formget_ccsid(struct curl_httppost *form, void *arg,
60 curl_formget_callback append,
61 unsigned int ccsid);
62CURL_EXTERN CURLcode curl_easy_setopt_ccsid(CURL *curl, CURLoption tag, ...);
63CURL_EXTERN void curl_certinfo_free_all(struct curl_certinfo *info);
64CURL_EXTERN char *curl_pushheader_bynum_cssid(struct curl_pushheaders *h,
65 size_t num, unsigned int ccsid);
66CURL_EXTERN char *curl_pushheader_byname_ccsid(struct curl_pushheaders *h,
67 const char *header,
68 unsigned int ccsidin,
69 unsigned int ccsidout);
70CURL_EXTERN CURLcode curl_mime_name_ccsid(curl_mimepart *part,
71 const char *name,
72 unsigned int ccsid);
73CURL_EXTERN CURLcode curl_mime_filename_ccsid(curl_mimepart *part,
74 const char *filename,
75 unsigned int ccsid);
76CURL_EXTERN CURLcode curl_mime_type_ccsid(curl_mimepart *part,
77 const char *mimetype,
78 unsigned int ccsid);
79CURL_EXTERN CURLcode curl_mime_encoder_ccsid(curl_mimepart *part,
80 const char *encoding,
81 unsigned int ccsid);
82CURL_EXTERN CURLcode curl_mime_filedata_ccsid(curl_mimepart *part,
83 const char *filename,
84 unsigned int ccsid);
85CURL_EXTERN CURLcode curl_mime_data_ccsid(curl_mimepart *part,
86 const char *data, size_t datasize,
87 unsigned int ccsid);
88CURL_EXTERN CURLUcode curl_url_get_ccsid(CURLU *handle, CURLUPart what,
89 char **part, unsigned int flags,
90 unsigned int ccsid);
91CURL_EXTERN CURLUcode curl_url_set_ccsid(CURLU *handle, CURLUPart what,
92 const char *part, unsigned int flags,
93 unsigned int ccsid);
94CURL_EXTERN const struct curl_easyoption *curl_easy_option_by_name_ccsid(
95 const char *name, unsigned int ccsid);
96CURL_EXTERN const char *curl_easy_option_get_name_ccsid(
97 const struct curl_easyoption *option,
98 unsigned int ccsid);
99
100#endif