mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
configure: added --disable-get-easy-options
To allow disabling of the curl_easy_option APIs in a build. Closes #5365
This commit is contained in:
parent
6ebe63fac2
commit
ad691b191a
3 changed files with 45 additions and 0 deletions
|
|
@ -24,6 +24,8 @@
|
|||
#include "strcase.h"
|
||||
#include "easyoptions.h"
|
||||
|
||||
#ifndef CURL_DISABLE_GETOPTIONS
|
||||
|
||||
/* Lookups easy options at runtime */
|
||||
static struct curl_easyoption *lookup(const char *name, CURLoption id)
|
||||
{
|
||||
|
|
@ -71,3 +73,23 @@ curl_easy_option_next(const struct curl_easyoption *prev)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#else
|
||||
const struct curl_easyoption *curl_easy_option_by_name(const char *name)
|
||||
{
|
||||
(void)name;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const struct curl_easyoption *curl_easy_option_by_id (CURLoption id)
|
||||
{
|
||||
(void)id;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const struct curl_easyoption *
|
||||
curl_easy_option_next(const struct curl_easyoption *prev)
|
||||
{
|
||||
(void)prev;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue