ccsidcurl.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /***************************************************************************
  2. * _ _ ____ _
  3. * Project ___| | | | _ \| |
  4. * / __| | | | |_) | |
  5. * | (__| |_| | _ <| |___
  6. * \___|\___/|_| \_\_____|
  7. *
  8. * Copyright (C) 1998 - 2013, 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. #ifndef __CURL_CCSIDCURL_H
  24. #define __CURL_CCSIDCURL_H
  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. #endif