cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: List available curl options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 13 Dec 2014 23:32:07 +0100 (CET)

On Sat, 13 Dec 2014, Jeroen Ooms wrote:

> And is there a way to test if particular CURLOPT_ value is present in the
> CURLoption enum form curl.h when compiling? How does autoconf figure this
> out?

I'm not sure it answers your question exactly, but...

We offer docs/libcurl/symbols-in-versions that describes exactly in which
versions which symbols exist.

In addition to that, we provide docs/libcurl/symbols.pl, with which you can
generate a header file that allows you to then do "queries" like this:

#if LIBCURL_HAS(CURLOPT_MUTE)
# has mute
# #else
# no mute
# #endif

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-13