1 /*************************************************************************** 2 * _ _ ____ _ 3 * Project ___| | | | _ \| | 4 * / __| | | | |_) | | 5 * | (__| |_| | _ <| |___ 6 * \___|\___/|_| \_\_____| 7 * 8 * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. 9 * 10 * This software is licensed as described in the file COPYING, which 11 * you should have received as part of this distribution. The terms 12 * are also available at https://curl.haxx.se/docs/copyright.html. 13 * 14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 * copies of the Software, and permit persons to whom the Software is 16 * furnished to do so, under the terms of the COPYING file. 17 * 18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 * KIND, either express or implied. 20 * 21 * 22 ***************************************************************************/ 23 24 #ifndef __CURL_CCSIDCURL_H 25 #define __CURL_CCSIDCURL_H 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 95 #endif 96