]> git.ipfire.org Git - thirdparty/curl.git/commit
options: API for meta-data about easy options
authorDaniel Stenberg <daniel@haxx.se>
Wed, 26 Aug 2020 06:30:38 +0000 (08:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Aug 2020 12:17:36 +0000 (14:17 +0200)
commit6ebe63fac23f38df911edc348e8ccc72280f9434
treec1bb753c9f971a177e8fa02d4d630d81d1bac924
parent9ee5701f12818e455c898c1a660cfd11d7e46518
options: API for meta-data about easy options

 const struct curl_easyoption *curl_easy_option_by_name(const char *name);

 const struct curl_easyoption *curl_easy_option_by_id (CURLoption id);

 const struct curl_easyoption *
 curl_easy_option_next(const struct curl_easyoption *prev);

The purpose is to provide detailed enough information to allow for
example libcurl bindings to get option information at run-time about
what easy options that exist and what arguments they expect.

Assisted-by: Jeroen Ooms
Closes #5365
22 files changed:
docs/libcurl/Makefile.inc
docs/libcurl/curl_easy_option_by_id.3 [new file with mode: 0644]
docs/libcurl/curl_easy_option_by_name.3 [new file with mode: 0644]
docs/libcurl/curl_easy_option_next.3 [new file with mode: 0644]
docs/libcurl/symbols-in-versions
include/curl/Makefile.am
include/curl/curl.h
include/curl/options.h [new file with mode: 0644]
lib/Makefile.am
lib/Makefile.inc
lib/easygetopt.c [new file with mode: 0644]
lib/easyoptions.c [new file with mode: 0644]
lib/easyoptions.h [new file with mode: 0644]
lib/optiontable.pl [new file with mode: 0644]
lib/setopt.c
tests/data/Makefile.inc
tests/data/test1119
tests/data/test1911 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1911.c [new file with mode: 0644]
tests/libtest/mk-lib1521.pl
tests/symbol-scan.pl