ccsidcurl.h 5.6 KB

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