113498266Sopenharmony_ci#ifndef HEADER_CURL_TOOL_HELP_H 213498266Sopenharmony_ci#define HEADER_CURL_TOOL_HELP_H 313498266Sopenharmony_ci/*************************************************************************** 413498266Sopenharmony_ci * _ _ ____ _ 513498266Sopenharmony_ci * Project ___| | | | _ \| | 613498266Sopenharmony_ci * / __| | | | |_) | | 713498266Sopenharmony_ci * | (__| |_| | _ <| |___ 813498266Sopenharmony_ci * \___|\___/|_| \_\_____| 913498266Sopenharmony_ci * 1013498266Sopenharmony_ci * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 1113498266Sopenharmony_ci * 1213498266Sopenharmony_ci * This software is licensed as described in the file COPYING, which 1313498266Sopenharmony_ci * you should have received as part of this distribution. The terms 1413498266Sopenharmony_ci * are also available at https://curl.se/docs/copyright.html. 1513498266Sopenharmony_ci * 1613498266Sopenharmony_ci * You may opt to use, copy, modify, merge, publish, distribute and/or sell 1713498266Sopenharmony_ci * copies of the Software, and permit persons to whom the Software is 1813498266Sopenharmony_ci * furnished to do so, under the terms of the COPYING file. 1913498266Sopenharmony_ci * 2013498266Sopenharmony_ci * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 2113498266Sopenharmony_ci * KIND, either express or implied. 2213498266Sopenharmony_ci * 2313498266Sopenharmony_ci * SPDX-License-Identifier: curl 2413498266Sopenharmony_ci * 2513498266Sopenharmony_ci ***************************************************************************/ 2613498266Sopenharmony_ci#include "tool_setup.h" 2713498266Sopenharmony_ci 2813498266Sopenharmony_civoid tool_help(char *category); 2913498266Sopenharmony_civoid tool_list_engines(void); 3013498266Sopenharmony_civoid tool_version_info(void); 3113498266Sopenharmony_ci 3213498266Sopenharmony_citypedef unsigned int curlhelp_t; 3313498266Sopenharmony_ci 3413498266Sopenharmony_cistruct helptxt { 3513498266Sopenharmony_ci const char *opt; 3613498266Sopenharmony_ci const char *desc; 3713498266Sopenharmony_ci curlhelp_t categories; 3813498266Sopenharmony_ci}; 3913498266Sopenharmony_ci 4013498266Sopenharmony_ci/* 4113498266Sopenharmony_ci * The bitmask output is generated with the following command 4213498266Sopenharmony_ci ------------------------------------------------------------ 4313498266Sopenharmony_ci cd $srcroot/docs/cmdline-opts 4413498266Sopenharmony_ci ./gen.pl listcats *.d 4513498266Sopenharmony_ci */ 4613498266Sopenharmony_ci 4713498266Sopenharmony_ci#define CURLHELP_HIDDEN 1u << 0u 4813498266Sopenharmony_ci#define CURLHELP_AUTH 1u << 1u 4913498266Sopenharmony_ci#define CURLHELP_CONNECTION 1u << 2u 5013498266Sopenharmony_ci#define CURLHELP_CURL 1u << 3u 5113498266Sopenharmony_ci#define CURLHELP_DNS 1u << 4u 5213498266Sopenharmony_ci#define CURLHELP_FILE 1u << 5u 5313498266Sopenharmony_ci#define CURLHELP_FTP 1u << 6u 5413498266Sopenharmony_ci#define CURLHELP_HTTP 1u << 7u 5513498266Sopenharmony_ci#define CURLHELP_IMAP 1u << 8u 5613498266Sopenharmony_ci#define CURLHELP_IMPORTANT 1u << 9u 5713498266Sopenharmony_ci#define CURLHELP_IPFS 1u << 10u 5813498266Sopenharmony_ci#define CURLHELP_MISC 1u << 11u 5913498266Sopenharmony_ci#define CURLHELP_OUTPUT 1u << 12u 6013498266Sopenharmony_ci#define CURLHELP_POP3 1u << 13u 6113498266Sopenharmony_ci#define CURLHELP_POST 1u << 14u 6213498266Sopenharmony_ci#define CURLHELP_PROXY 1u << 15u 6313498266Sopenharmony_ci#define CURLHELP_SCP 1u << 16u 6413498266Sopenharmony_ci#define CURLHELP_SFTP 1u << 17u 6513498266Sopenharmony_ci#define CURLHELP_SMTP 1u << 18u 6613498266Sopenharmony_ci#define CURLHELP_SSH 1u << 19u 6713498266Sopenharmony_ci#define CURLHELP_TELNET 1u << 20u 6813498266Sopenharmony_ci#define CURLHELP_TFTP 1u << 21u 6913498266Sopenharmony_ci#define CURLHELP_TLS 1u << 22u 7013498266Sopenharmony_ci#define CURLHELP_UPLOAD 1u << 23u 7113498266Sopenharmony_ci#define CURLHELP_VERBOSE 1u << 24u 7213498266Sopenharmony_ci 7313498266Sopenharmony_ciextern const struct helptxt helptext[]; 7413498266Sopenharmony_ci 7513498266Sopenharmony_ci#endif /* HEADER_CURL_TOOL_HELP_H */ 76