annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/curl/options.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 #ifndef CURLINC_OPTIONS_H
jpayne@69 2 #define CURLINC_OPTIONS_H
jpayne@69 3 /***************************************************************************
jpayne@69 4 * _ _ ____ _
jpayne@69 5 * Project ___| | | | _ \| |
jpayne@69 6 * / __| | | | |_) | |
jpayne@69 7 * | (__| |_| | _ <| |___
jpayne@69 8 * \___|\___/|_| \_\_____|
jpayne@69 9 *
jpayne@69 10 * Copyright (C) 2018 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
jpayne@69 11 *
jpayne@69 12 * This software is licensed as described in the file COPYING, which
jpayne@69 13 * you should have received as part of this distribution. The terms
jpayne@69 14 * are also available at https://curl.se/docs/copyright.html.
jpayne@69 15 *
jpayne@69 16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
jpayne@69 17 * copies of the Software, and permit persons to whom the Software is
jpayne@69 18 * furnished to do so, under the terms of the COPYING file.
jpayne@69 19 *
jpayne@69 20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
jpayne@69 21 * KIND, either express or implied.
jpayne@69 22 *
jpayne@69 23 * SPDX-License-Identifier: curl
jpayne@69 24 *
jpayne@69 25 ***************************************************************************/
jpayne@69 26
jpayne@69 27 #ifdef __cplusplus
jpayne@69 28 extern "C" {
jpayne@69 29 #endif
jpayne@69 30
jpayne@69 31 typedef enum {
jpayne@69 32 CURLOT_LONG, /* long (a range of values) */
jpayne@69 33 CURLOT_VALUES, /* (a defined set or bitmask) */
jpayne@69 34 CURLOT_OFF_T, /* curl_off_t (a range of values) */
jpayne@69 35 CURLOT_OBJECT, /* pointer (void *) */
jpayne@69 36 CURLOT_STRING, /* (char * to null-terminated buffer) */
jpayne@69 37 CURLOT_SLIST, /* (struct curl_slist *) */
jpayne@69 38 CURLOT_CBPTR, /* (void * passed as-is to a callback) */
jpayne@69 39 CURLOT_BLOB, /* blob (struct curl_blob *) */
jpayne@69 40 CURLOT_FUNCTION /* function pointer */
jpayne@69 41 } curl_easytype;
jpayne@69 42
jpayne@69 43 /* Flag bits */
jpayne@69 44
jpayne@69 45 /* "alias" means it is provided for old programs to remain functional,
jpayne@69 46 we prefer another name */
jpayne@69 47 #define CURLOT_FLAG_ALIAS (1<<0)
jpayne@69 48
jpayne@69 49 /* The CURLOPTTYPE_* id ranges can still be used to figure out what type/size
jpayne@69 50 to use for curl_easy_setopt() for the given id */
jpayne@69 51 struct curl_easyoption {
jpayne@69 52 const char *name;
jpayne@69 53 CURLoption id;
jpayne@69 54 curl_easytype type;
jpayne@69 55 unsigned int flags;
jpayne@69 56 };
jpayne@69 57
jpayne@69 58 CURL_EXTERN const struct curl_easyoption *
jpayne@69 59 curl_easy_option_by_name(const char *name);
jpayne@69 60
jpayne@69 61 CURL_EXTERN const struct curl_easyoption *
jpayne@69 62 curl_easy_option_by_id(CURLoption id);
jpayne@69 63
jpayne@69 64 CURL_EXTERN const struct curl_easyoption *
jpayne@69 65 curl_easy_option_next(const struct curl_easyoption *prev);
jpayne@69 66
jpayne@69 67 #ifdef __cplusplus
jpayne@69 68 } /* end of extern "C" */
jpayne@69 69 #endif
jpayne@69 70 #endif /* CURLINC_OPTIONS_H */