xref: /curl/src/tool_libinfo.h (revision 469f5368)
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 
28 /* global variable declarations, for libcurl runtime info */
29 
30 
31 extern curl_version_info_data *curlinfo;
32 
33 extern const char * const *built_in_protos;
34 extern size_t proto_count;
35 
36 extern const char * const *feature_names;
37 extern size_t feature_count;
38 
39 extern const char *proto_file;
40 extern const char *proto_ftp;
41 extern const char *proto_ftps;
42 extern const char *proto_http;
43 extern const char *proto_https;
44 extern const char *proto_rtsp;
45 extern const char *proto_scp;
46 extern const char *proto_sftp;
47 extern const char *proto_tftp;
48 extern const char *proto_ipfs;
49 extern const char *proto_ipns;
50 
51 extern bool feature_altsvc;
52 extern bool feature_brotli;
53 extern bool feature_hsts;
54 extern bool feature_http2;
55 extern bool feature_http3;
56 extern bool feature_httpsproxy;
57 extern bool feature_libz;
58 extern bool feature_ntlm;
59 extern bool feature_ntlm_wb;
60 extern bool feature_spnego;
61 extern bool feature_ssl;
62 extern bool feature_tls_srp;
63 extern bool feature_zstd;
64 extern bool feature_ech;
65 
66 CURLcode get_libcurl_info(void);
67 const char *proto_token(const char *proto);
68 
69 #endif /* HEADER_CURL_TOOL_LIBINFO_H */
70