tool_libinfo.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef HEADER_CURL_TOOL_LIBINFO_H
  2. #define HEADER_CURL_TOOL_LIBINFO_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 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. #include "tool_setup.h"
  27. /* global variable declarations, for libcurl run-time info */
  28. extern curl_version_info_data *curlinfo;
  29. extern const char * const *built_in_protos;
  30. extern size_t proto_count;
  31. extern const char * const *feature_names;
  32. extern const char *proto_file;
  33. extern const char *proto_ftp;
  34. extern const char *proto_ftps;
  35. extern const char *proto_http;
  36. extern const char *proto_https;
  37. extern const char *proto_rtsp;
  38. extern const char *proto_scp;
  39. extern const char *proto_sftp;
  40. extern const char *proto_tftp;
  41. extern const char *proto_ipfs;
  42. extern const char *proto_ipns;
  43. extern bool feature_altsvc;
  44. extern bool feature_brotli;
  45. extern bool feature_hsts;
  46. extern bool feature_http2;
  47. extern bool feature_http3;
  48. extern bool feature_httpsproxy;
  49. extern bool feature_libz;
  50. extern bool feature_ntlm;
  51. extern bool feature_ntlm_wb;
  52. extern bool feature_spnego;
  53. extern bool feature_ssl;
  54. extern bool feature_tls_srp;
  55. extern bool feature_zstd;
  56. CURLcode get_libcurl_info(void);
  57. const char *proto_token(const char *proto);
  58. #endif /* HEADER_CURL_TOOL_LIBINFO_H */