Path: blob/master/Utilities/cmcurl/include/curl/options.h
3158 views
#ifndef CURLINC_OPTIONS_H1#define CURLINC_OPTIONS_H2/***************************************************************************3* _ _ ____ _4* Project ___| | | | _ \| |5* / __| | | | |_) | |6* | (__| |_| | _ <| |___7* \___|\___/|_| \_\_____|8*9* Copyright (C) Daniel Stenberg, <[email protected]>, et al.10*11* This software is licensed as described in the file COPYING, which12* you should have received as part of this distribution. The terms13* are also available at https://curl.se/docs/copyright.html.14*15* You may opt to use, copy, modify, merge, publish, distribute and/or sell16* copies of the Software, and permit persons to whom the Software is17* furnished to do so, under the terms of the COPYING file.18*19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY20* KIND, either express or implied.21*22* SPDX-License-Identifier: curl23*24***************************************************************************/2526#ifdef __cplusplus27extern "C" {28#endif2930typedef enum {31CURLOT_LONG, /* long (a range of values) */32CURLOT_VALUES, /* (a defined set or bitmask) */33CURLOT_OFF_T, /* curl_off_t (a range of values) */34CURLOT_OBJECT, /* pointer (void *) */35CURLOT_STRING, /* (char * to null-terminated buffer) */36CURLOT_SLIST, /* (struct curl_slist *) */37CURLOT_CBPTR, /* (void * passed as-is to a callback) */38CURLOT_BLOB, /* blob (struct curl_blob *) */39CURLOT_FUNCTION /* function pointer */40} curl_easytype;4142/* Flag bits */4344/* "alias" means it is provided for old programs to remain functional,45we prefer another name */46#define CURLOT_FLAG_ALIAS (1<<0)4748/* The CURLOPTTYPE_* id ranges can still be used to figure out what type/size49to use for curl_easy_setopt() for the given id */50struct curl_easyoption {51const char *name;52CURLoption id;53curl_easytype type;54unsigned int flags;55};5657CURL_EXTERN const struct curl_easyoption *58curl_easy_option_by_name(const char *name);5960CURL_EXTERN const struct curl_easyoption *61curl_easy_option_by_id(CURLoption id);6263CURL_EXTERN const struct curl_easyoption *64curl_easy_option_next(const struct curl_easyoption *prev);6566#ifdef __cplusplus67} /* end of extern "C" */68#endif69#endif /* CURLINC_OPTIONS_H */707172