ccsidcurl.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #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. CURL_EXTERN char *curl_version_ccsid(unsigned int ccsid);
  31. CURL_EXTERN char *curl_easy_escape_ccsid(CURL *handle,
  32. const char *string, int length,
  33. unsigned int sccsid,
  34. unsigned int dccsid);
  35. CURL_EXTERN char *curl_easy_unescape_ccsid(CURL *handle, const char *string,
  36. int length, int *outlength,
  37. unsigned int sccsid,
  38. unsigned int dccsid);
  39. CURL_EXTERN struct curl_slist *curl_slist_append_ccsid(struct curl_slist *l,
  40. const char *data,
  41. unsigned int ccsid);
  42. CURL_EXTERN time_t curl_getdate_ccsid(const char *p, const time_t *unused,
  43. unsigned int ccsid);
  44. CURL_EXTERN curl_version_info_data *curl_version_info_ccsid(CURLversion stamp,
  45. unsigned int cid);
  46. CURL_EXTERN const char *curl_easy_strerror_ccsid(CURLcode error,
  47. unsigned int ccsid);
  48. CURL_EXTERN const char *curl_share_strerror_ccsid(CURLSHcode error,
  49. unsigned int ccsid);
  50. CURL_EXTERN const char *curl_multi_strerror_ccsid(CURLMcode error,
  51. unsigned int ccsid);
  52. CURL_EXTERN CURLcode curl_easy_getinfo_ccsid(CURL *curl, CURLINFO info, ...);
  53. CURL_EXTERN CURLFORMcode curl_formadd_ccsid(struct curl_httppost **httppost,
  54. struct curl_httppost **last_post,
  55. ...);
  56. CURL_EXTERN char *curl_form_long_value(long value);
  57. CURL_EXTERN int curl_formget_ccsid(struct curl_httppost *form, void *arg,
  58. curl_formget_callback append,
  59. unsigned int ccsid);
  60. CURL_EXTERN CURLcode curl_easy_setopt_ccsid(CURL *curl, CURLoption tag, ...);
  61. CURL_EXTERN void curl_certinfo_free_all(struct curl_certinfo *info);
  62. CURL_EXTERN char *curl_pushheader_bynum_cssid(struct curl_pushheaders *h,
  63. size_t num, unsigned int ccsid);
  64. CURL_EXTERN char *curl_pushheader_byname_ccsid(struct curl_pushheaders *h,
  65. const char *header,
  66. unsigned int ccsidin,
  67. unsigned int ccsidout);
  68. CURL_EXTERN CURLcode curl_mime_name_ccsid(curl_mimepart *part,
  69. const char *name,
  70. unsigned int ccsid);
  71. CURL_EXTERN CURLcode curl_mime_filename_ccsid(curl_mimepart *part,
  72. const char *filename,
  73. unsigned int ccsid);
  74. CURL_EXTERN CURLcode curl_mime_type_ccsid(curl_mimepart *part,
  75. const char *mimetype,
  76. unsigned int ccsid);
  77. CURL_EXTERN CURLcode curl_mime_encoder_ccsid(curl_mimepart *part,
  78. const char *encoding,
  79. unsigned int ccsid);
  80. CURL_EXTERN CURLcode curl_mime_filedata_ccsid(curl_mimepart *part,
  81. const char *filename,
  82. unsigned int ccsid);
  83. CURL_EXTERN CURLcode curl_mime_data_ccsid(curl_mimepart *part,
  84. const char *data, size_t datasize,
  85. unsigned int ccsid);
  86. CURL_EXTERN CURLUcode curl_url_get_ccsid(CURLU *handle, CURLUPart what,
  87. char **part, unsigned int flags,
  88. unsigned int ccsid);
  89. CURL_EXTERN CURLUcode curl_url_set_ccsid(CURLU *handle, CURLUPart what,
  90. const char *part, unsigned int flags,
  91. unsigned int ccsid);
  92. CURL_EXTERN const struct curl_easyoption *curl_easy_option_by_name_ccsid(
  93. const char *name, unsigned int ccsid);
  94. CURL_EXTERN const char *curl_easy_option_get_name_ccsid(
  95. const struct curl_easyoption *option,
  96. unsigned int ccsid);
  97. #endif